{"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/diverse-branch-block-building-a-convolution","title":"Diverse Branch Block: Building a Convolution as an Inception-like Unit","arxiv_id":"2103.13425","date":"2021-03-24","proceeding":"CVPR 2021 1","authors":["Xiaohan Ding","Xiangyu Zhang","Jungong Han","Guiguang Ding"],"abstract":"We propose a universal building block of Convolutional Neural Network (ConvNet) to improve the performance without any inference-time costs. The block is named Diverse Branch Block (DBB), which enhances the representational capacity of a single convolution by combining diverse branches of different scales and complexities to enrich the feature space, including sequences of convolutions, multi-scale convolutions, and average pooling. After training, a DBB can be equivalently converted into a single conv layer for deployment. Unlike the advancements of novel ConvNet architectures, DBB complicates the training-time microstructure while maintaining the macro architecture, so that it can be used as a drop-in replacement for regular conv layers of any architecture. In this way, the model can be trained to reach a higher level of performance and then transformed into the original inference-time structure for inference. DBB improves ConvNets on image classification (up to 1.9% higher top-1 accuracy on ImageNet), object detection and semantic segmentation. The PyTorch code and models are released at https://github.com/DingXiaoH/DiverseBranchBlock.","url_abs":"https://arxiv.org/abs/2103.13425v2","url_pdf":"https://arxiv.org/pdf/2103.13425v2.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":"diverse-branch-block-building-a-convolution","repo_url":"https://github.com/DingXiaoH/DiverseBranchBlock","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"diverse-branch-block-building-a-convolution","repo_url":"https://github.com/hunto/image_classification_sota","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"diverse-branch-block-building-a-convolution","repo_url":"https://github.com/xdhe1216/ACNet","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":null}],"tasks":[{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"object-detection","task_name":"Object Detection"},{"task_slug":"semantic-segmentation","task_name":"Semantic Segmentation"},{"task_slug":"image-classification","task_name":"image-classification"},{"task_slug":"object-detection-1","task_name":"object-detection"}],"methods":[{"method_slug":"convolution","method_name":"Convolution"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2103.13425","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2103.13425"}},"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/DingXiaoH/DiverseBranchBlock","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/hunto/image_classification_sota","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/xdhe1216/ACNet","reach":null}],"summary":{"ran":3,"ran_draft_wrong":6,"ran_fixture":1,"ran_honours":1,"unverified":9},"by_repo_kind":{"official":{"samples":4,"ran":2,"repositories":1},"listed":{"samples":16,"ran":9,"repositories":2}},"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":6,"samples":[{"code_sha256_prefix":"f8ecece04e49713f","entry":"BNAndPad","repo":"hunto/image_classification_sota","repo_kind":"listed","path":"lib/models/utils/dbb/dbb_block.py","file_url":"https://github.com/hunto/image_classification_sota/blob/HEAD/lib/models/utils/dbb/dbb_block.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":"f8ecece04e49713f"}},{"code_sha256_prefix":"0ef8b858982058a3","entry":"BNAndPadLayer","repo":"DingXiaoH/DiverseBranchBlock","repo_kind":"official","path":"diversebranchblock.py","file_url":"https://github.com/DingXiaoH/DiverseBranchBlock/blob/HEAD/diversebranchblock.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0ef8b858982058a3"}},{"code_sha256_prefix":"9dfb66e9d6efe79c","entry":"ConvBN","repo":"hunto/image_classification_sota","repo_kind":"listed","path":"lib/models/utils/dbb/dbb_block.py","file_url":"https://github.com/hunto/image_classification_sota/blob/HEAD/lib/models/utils/dbb/dbb_block.py","link_basis":"first_harvest_node","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":"9dfb66e9d6efe79c"}},{"code_sha256_prefix":"2d0d8fe75cfed19e","entry":"conv_bn","repo":"DingXiaoH/DiverseBranchBlock","repo_kind":"official","path":"diversebranchblock.py","file_url":"https://github.com/DingXiaoH/DiverseBranchBlock/blob/HEAD/diversebranchblock.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2d0d8fe75cfed19e"}},{"code_sha256_prefix":"39738c9934012420","entry":"transIII_1x1_kxk","repo":"hunto/image_classification_sota","repo_kind":"listed","path":"lib/models/utils/dbb/dbb_block.py","file_url":"https://github.com/hunto/image_classification_sota/blob/HEAD/lib/models/utils/dbb/dbb_block.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"39738c9934012420"}},{"code_sha256_prefix":"0ebbd01db07e9acb","entry":"transII_addbranch","repo":"hunto/image_classification_sota","repo_kind":"listed","path":"lib/models/utils/dbb/dbb_block.py","file_url":"https://github.com/hunto/image_classification_sota/blob/HEAD/lib/models/utils/dbb/dbb_block.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0ebbd01db07e9acb"}},{"code_sha256_prefix":"e8825a840b343a27","entry":"transIV_depthconcat","repo":"hunto/image_classification_sota","repo_kind":"listed","path":"lib/models/utils/dbb/dbb_block.py","file_url":"https://github.com/hunto/image_classification_sota/blob/HEAD/lib/models/utils/dbb/dbb_block.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e8825a840b343a27"}},{"code_sha256_prefix":"f89847a21ac13751","entry":"transIX_bn_to_1x1","repo":"hunto/image_classification_sota","repo_kind":"listed","path":"lib/models/utils/dbb/dbb_block.py","file_url":"https://github.com/hunto/image_classification_sota/blob/HEAD/lib/models/utils/dbb/dbb_block.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f89847a21ac13751"}},{"code_sha256_prefix":"e28e80243880eb6f","entry":"transI_fusebn","repo":"hunto/image_classification_sota","repo_kind":"listed","path":"lib/models/utils/dbb/dbb_block.py","file_url":"https://github.com/hunto/image_classification_sota/blob/HEAD/lib/models/utils/dbb/dbb_block.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e28e80243880eb6f"}},{"code_sha256_prefix":"a803f4daf16c141d","entry":"transVI_multiscale","repo":"hunto/image_classification_sota","repo_kind":"listed","path":"lib/models/utils/dbb/dbb_block.py","file_url":"https://github.com/hunto/image_classification_sota/blob/HEAD/lib/models/utils/dbb/dbb_block.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a803f4daf16c141d"}},{"code_sha256_prefix":"cfc36fe1d39f88c2","entry":"transV_avg","repo":"hunto/image_classification_sota","repo_kind":"listed","path":"lib/models/utils/dbb/dbb_block.py","file_url":"https://github.com/hunto/image_classification_sota/blob/HEAD/lib/models/utils/dbb/dbb_block.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cfc36fe1d39f88c2"}},{"code_sha256_prefix":"3651747acdf99893","entry":"DBB","repo":"xdhe1216/ACNet","repo_kind":"listed","path":"acnet_repvgg_dbb_block_utils.py","file_url":"https://github.com/xdhe1216/ACNet/blob/HEAD/acnet_repvgg_dbb_block_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3651747acdf99893"}},{"code_sha256_prefix":"f5bd3fa9f5408fcc","entry":"DiverseBranchBlock","repo":"DingXiaoH/DiverseBranchBlock","repo_kind":"official","path":"diversebranchblock.py","file_url":"https://github.com/DingXiaoH/DiverseBranchBlock/blob/HEAD/diversebranchblock.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":"f5bd3fa9f5408fcc"}},{"code_sha256_prefix":"27501fd33648e839","entry":"DiverseBranchBlock","repo":"hunto/image_classification_sota","repo_kind":"listed","path":"lib/models/utils/dbb/dbb_block.py","file_url":"https://github.com/hunto/image_classification_sota/blob/HEAD/lib/models/utils/dbb/dbb_block.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":"27501fd33648e839"}},{"code_sha256_prefix":"4982742829c08cfa","entry":"IdentityBasedConv1x1","repo":"DingXiaoH/DiverseBranchBlock","repo_kind":"official","path":"diversebranchblock.py","file_url":"https://github.com/DingXiaoH/DiverseBranchBlock/blob/HEAD/diversebranchblock.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":"4982742829c08cfa"}},{"code_sha256_prefix":"e9b84f15940445d7","entry":"fusion_1x1_kxk_down","repo":"xdhe1216/ACNet","repo_kind":"listed","path":"acnet_repvgg_dbb_block_utils.py","file_url":"https://github.com/xdhe1216/ACNet/blob/HEAD/acnet_repvgg_dbb_block_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e9b84f15940445d7"}},{"code_sha256_prefix":"128e0f508f439f6e","entry":"fusion_asym","repo":"xdhe1216/ACNet","repo_kind":"listed","path":"acnet_repvgg_dbb_block_utils.py","file_url":"https://github.com/xdhe1216/ACNet/blob/HEAD/acnet_repvgg_dbb_block_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"128e0f508f439f6e"}},{"code_sha256_prefix":"e27f3303da04b980","entry":"fusion_dbb","repo":"xdhe1216/ACNet","repo_kind":"listed","path":"acnet_repvgg_dbb_block_utils.py","file_url":"https://github.com/xdhe1216/ACNet/blob/HEAD/acnet_repvgg_dbb_block_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e27f3303da04b980"}},{"code_sha256_prefix":"1083b50ad0a305af","entry":"fusion_diff_kernel_size","repo":"xdhe1216/ACNet","repo_kind":"listed","path":"acnet_repvgg_dbb_block_utils.py","file_url":"https://github.com/xdhe1216/ACNet/blob/HEAD/acnet_repvgg_dbb_block_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1083b50ad0a305af"}},{"code_sha256_prefix":"87e546f4e96feae1","entry":"fusion_same_kernel_size","repo":"xdhe1216/ACNet","repo_kind":"listed","path":"acnet_repvgg_dbb_block_utils.py","file_url":"https://github.com/xdhe1216/ACNet/blob/HEAD/acnet_repvgg_dbb_block_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"87e546f4e96feae1"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}