{"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/kernelwarehouse-rethinking-the-design-of","title":"KernelWarehouse: Rethinking the Design of Dynamic Convolution","arxiv_id":"2406.07879","date":"2024-06-12","proceeding":null,"authors":["Chao Li","Anbang Yao"],"abstract":"Dynamic convolution learns a linear mixture of n static kernels weighted with their input-dependent attentions, demonstrating superior performance than normal convolution. However, it increases the number of convolutional parameters by n times, and thus is not parameter efficient. This leads to no research progress that can allow researchers to explore the setting n>100 (an order of magnitude larger than the typical setting n<10) for pushing forward the performance boundary of dynamic convolution while enjoying parameter efficiency. To fill this gap, in this paper, we propose KernelWarehouse, a more general form of dynamic convolution, which redefines the basic concepts of ``kernels\", ``assembling kernels\" and ``attention function\" through the lens of exploiting convolutional parameter dependencies within the same layer and across neighboring layers of a ConvNet. We testify the effectiveness of KernelWarehouse on ImageNet and MS-COCO datasets using various ConvNet architectures. Intriguingly, KernelWarehouse is also applicable to Vision Transformers, and it can even reduce the model size of a backbone while improving the model accuracy. For instance, KernelWarehouse (n=4) achieves 5.61%|3.90%|4.38% absolute top-1 accuracy gain on the ResNet18|MobileNetV2|DeiT-Tiny backbone, and KernelWarehouse (n=1/4) with 65.10% model size reduction still achieves 2.29% gain on the ResNet18 backbone. The code and models are available at https://github.com/OSVAI/KernelWarehouse.","url_abs":"https://arxiv.org/abs/2406.07879v1","url_pdf":"https://arxiv.org/pdf/2406.07879v1.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":"kernelwarehouse-rethinking-the-design-of","repo_url":"https://github.com/osvai/kernelwarehouse","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[],"methods":[{"method_slug":"convolution","method_name":"Convolution"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2406.07879","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2406.07879"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/osvai/kernelwarehouse","reach":null}],"summary":{"ran_fixture":1,"ran_honours":1,"unverified":7},"by_repo_kind":{"official":{"samples":9,"ran":2,"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":"f2bf9f878ee4c85c","entry":"parse","repo":"OSVAI/KernelWarehouse","repo_kind":"official","path":"detection/mmdet/models/backbones/kernel_warehouse.py","file_url":"https://github.com/OSVAI/KernelWarehouse/blob/HEAD/detection/mmdet/models/backbones/kernel_warehouse.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f2bf9f878ee4c85c"}},{"code_sha256_prefix":"0ef7571bb962c569","entry":"parse","repo":"osvai/kernelwarehouse","repo_kind":"official","path":"modules/kernel_warehouse.py","file_url":"https://github.com/osvai/kernelwarehouse/blob/HEAD/modules/kernel_warehouse.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0ef7571bb962c569"}},{"code_sha256_prefix":"42f32503fc92ca6f","entry":"Attention","repo":"osvai/kernelwarehouse","repo_kind":"official","path":"modules/kernel_warehouse.py","file_url":"https://github.com/osvai/kernelwarehouse/blob/HEAD/modules/kernel_warehouse.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":"42f32503fc92ca6f"}},{"code_sha256_prefix":"2e14f48ede92ffd4","entry":"KWConv1d","repo":"osvai/kernelwarehouse","repo_kind":"official","path":"modules/kernel_warehouse.py","file_url":"https://github.com/osvai/kernelwarehouse/blob/HEAD/modules/kernel_warehouse.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":"2e14f48ede92ffd4"}},{"code_sha256_prefix":"d950b3e607ed5ebd","entry":"KWConv2d","repo":"osvai/kernelwarehouse","repo_kind":"official","path":"modules/kernel_warehouse.py","file_url":"https://github.com/osvai/kernelwarehouse/blob/HEAD/modules/kernel_warehouse.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":"d950b3e607ed5ebd"}},{"code_sha256_prefix":"16d9b67ac07b0493","entry":"KWConv3d","repo":"osvai/kernelwarehouse","repo_kind":"official","path":"modules/kernel_warehouse.py","file_url":"https://github.com/osvai/kernelwarehouse/blob/HEAD/modules/kernel_warehouse.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":"16d9b67ac07b0493"}},{"code_sha256_prefix":"5eca72cdef291bc6","entry":"KWLinear","repo":"osvai/kernelwarehouse","repo_kind":"official","path":"modules/kernel_warehouse.py","file_url":"https://github.com/osvai/kernelwarehouse/blob/HEAD/modules/kernel_warehouse.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":"5eca72cdef291bc6"}},{"code_sha256_prefix":"d58b0e25f334e8da","entry":"KWconvNd","repo":"osvai/kernelwarehouse","repo_kind":"official","path":"modules/kernel_warehouse.py","file_url":"https://github.com/osvai/kernelwarehouse/blob/HEAD/modules/kernel_warehouse.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":"d58b0e25f334e8da"}},{"code_sha256_prefix":"2367e140baf68fbd","entry":"Warehouse_Manager","repo":"osvai/kernelwarehouse","repo_kind":"official","path":"modules/kernel_warehouse.py","file_url":"https://github.com/osvai/kernelwarehouse/blob/HEAD/modules/kernel_warehouse.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":"2367e140baf68fbd"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}