{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/efficient-modulation-for-vision-networks","title":"Efficient Modulation for Vision Networks","arxiv_id":"2403.19963","date":"2024-03-29","proceeding":null,"authors":["Xu Ma","Xiyang Dai","Jianwei Yang","Bin Xiao","Yinpeng Chen","Yun Fu","Lu Yuan"],"abstract":"In this work, we present efficient modulation, a novel design for efficient vision networks. We revisit the modulation mechanism, which operates input through convolutional context modeling and feature projection layers, and fuses features via element-wise multiplication and an MLP block. We demonstrate that the modulation mechanism is particularly well suited for efficient networks and further tailor the modulation design by proposing the efficient modulation (EfficientMod) block, which is considered the essential building block for our networks. Benefiting from the prominent representational ability of modulation mechanism and the proposed efficient design, our network can accomplish better trade-offs between accuracy and efficiency and set new state-of-the-art performance in the zoo of efficient networks. When integrating EfficientMod with the vanilla self-attention block, we obtain the hybrid architecture which further improves the performance without loss of efficiency. We carry out comprehensive experiments to verify EfficientMod's performance. With fewer parameters, our EfficientMod-s performs 0.6 top-1 accuracy better than EfficientFormerV2-s2 and is 25% faster on GPU, and 2.9 better than MobileViTv2-1.0 at the same GPU latency. Additionally, our method presents a notable improvement in downstream tasks, outperforming EfficientFormerV2-s by 3.6 mIoU on the ADE20K benchmark. Code and checkpoints are available at https://github.com/ma-xu/EfficientMod.","url_abs":"https://arxiv.org/abs/2403.19963v1","url_pdf":"https://arxiv.org/pdf/2403.19963v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"efficient-modulation-for-vision-networks","repo_url":"https://github.com/ma-xu/efficientmod","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":null,"task_name":"GPU"}],"methods":[{"method_slug":"set","method_name":"SET"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2403.19963","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2403.19963"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/ma-xu/EfficientMod","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ma-xu/efficientmod","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":8,"unverified":2},"by_repo_kind":{"official":{"samples":10,"ran":8,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"2ff8225772081e35","entry":"AttMlp","repo":"ma-xu/efficientmod","repo_kind":"official","path":"models/EfficientMod.py","file_url":"https://github.com/ma-xu/efficientmod/blob/HEAD/models/EfficientMod.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2ff8225772081e35"}},{"code_sha256_prefix":"99bce211812fcf7a","entry":"Attention","repo":"ma-xu/efficientmod","repo_kind":"official","path":"models/EfficientMod.py","file_url":"https://github.com/ma-xu/efficientmod/blob/HEAD/models/EfficientMod.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"99bce211812fcf7a"}},{"code_sha256_prefix":"5ae73134f2b7e9b1","entry":"AttentionBlock","repo":"ma-xu/efficientmod","repo_kind":"official","path":"models/EfficientMod.py","file_url":"https://github.com/ma-xu/efficientmod/blob/HEAD/models/EfficientMod.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5ae73134f2b7e9b1"}},{"code_sha256_prefix":"6887a267109d28d9","entry":"BasicBlock","repo":"ma-xu/efficientmod","repo_kind":"official","path":"models/EfficientMod.py","file_url":"https://github.com/ma-xu/efficientmod/blob/HEAD/models/EfficientMod.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"6887a267109d28d9"}},{"code_sha256_prefix":"c1e8702680e54378","entry":"ContextLayer","repo":"ma-xu/efficientmod","repo_kind":"official","path":"models/EfficientMod.py","file_url":"https://github.com/ma-xu/efficientmod/blob/HEAD/models/EfficientMod.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c1e8702680e54378"}},{"code_sha256_prefix":"3e8438d23c4ccbd4","entry":"Mlp","repo":"ma-xu/efficientmod","repo_kind":"official","path":"models/EfficientMod.py","file_url":"https://github.com/ma-xu/efficientmod/blob/HEAD/models/EfficientMod.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"3e8438d23c4ccbd4"}},{"code_sha256_prefix":"3e63ec80a2ff03d6","entry":"PatchEmbed","repo":"ma-xu/efficientmod","repo_kind":"official","path":"models/EfficientMod.py","file_url":"https://github.com/ma-xu/efficientmod/blob/HEAD/models/EfficientMod.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"3e63ec80a2ff03d6"}},{"code_sha256_prefix":"029a68ef3211adb5","entry":"auto_resume_helper","repo":"ma-xu/EfficientMod","repo_kind":"official","path":"utils.py","file_url":"https://github.com/ma-xu/EfficientMod/blob/HEAD/utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"029a68ef3211adb5"}},{"code_sha256_prefix":"fe615e0ee7a65ace","entry":"BasicLayer","repo":"ma-xu/efficientmod","repo_kind":"official","path":"models/EfficientMod.py","file_url":"https://github.com/ma-xu/efficientmod/blob/HEAD/models/EfficientMod.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"fe615e0ee7a65ace"}},{"code_sha256_prefix":"82d62fad6aa593a2","entry":"EfficientMod","repo":"ma-xu/efficientmod","repo_kind":"official","path":"models/EfficientMod.py","file_url":"https://github.com/ma-xu/efficientmod/blob/HEAD/models/EfficientMod.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"82d62fad6aa593a2"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}