[Paper Review] Diverse Branch Block: Building a Convolution as an Inception-like Unit
The paper proposes Diverse Branch Block (DBB), a universal convolutional building block that enhances feature representation by combining multi-scale, multi-complexity branches (e.g., 1×1 conv, 3×3 conv, average pooling) during training, then converting the entire block into a single equivalent convolution for inference. This enables performance gains without increasing inference cost, achieving up to 1.9% higher top-1 accuracy on ImageNet.
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.
Motivation & Objective
- Address the performance-inference cost trade-off in ConvNets by enabling complex training-time structures without inference overhead.
- Overcome the limitation of standard convolutional layers in capturing diverse receptive fields and hierarchical features.
- Develop a plug-and-play building block that can be seamlessly integrated into existing architectures like ResNet without altering their macro-structure.
- Enable performance improvements through structural re-parameterization, where complex training-time microstructures are converted into efficient inference-time single convolutions.
- Demonstrate that diverse connections and training-time nonlinearity significantly enhance representational capacity beyond mere parameter count.
Proposed method
- Design a multi-branch architecture within a single block combining 1×1 convolutions, K×K convolutions, average pooling, and skip connections to enrich feature space.
- Introduce structural re-parameterization to convert the multi-branch DBB into a single equivalent convolution layer post-training, preserving inference efficiency.
- Utilize batch normalization before branch addition to introduce training-time nonlinearity, enhancing model capacity during optimization.
- Apply six transformation rules (summarized in the paper) to systematically convert any DBB configuration into a single-convolution equivalent.
- Train the model with the full DBB structure while deploying only the re-parameterized single-convolution version, ensuring no runtime cost increase.
- Use ablation studies to validate the contribution of diverse connections and BN-induced nonlinearity by comparing with duplicate or purely linear variants.
Experimental results
Research questions
- RQ1Can a complex, multi-branch convolutional block be trained effectively and then converted into a single-convolution layer without inference cost?
- RQ2To what extent do diverse connections (different kernel sizes, pooling, sequential convolutions) improve model performance compared to identical or linearly combined branches?
- RQ3Does training-time nonlinearity from batch normalization significantly enhance the representational capacity of a DBB compared to a linear combination of branches?
- RQ4Can DBB be used as a drop-in replacement in existing architectures like ResNet without architectural changes, while achieving consistent performance gains?
- RQ5Is the performance gain from DBB due to better initialization or inherent structural advantages in connectivity diversity?
Key findings
- DBB achieves up to 1.9% higher top-1 accuracy on ImageNet compared to standard ResNet-18, demonstrating significant performance gains.
- Removing any branch from the DBB leads to a drop in accuracy, confirming that each component contributes uniquely to the model’s representational capacity.
- A DBB with (K×K + 1×1 + 1×1-AVG) outperforms a triple K×K block (70.40% vs. 70.29%) despite having 2.3× fewer training-time parameters, proving that connectivity diversity matters more than parameter count.
- A weak-capacity component (1×1 conv) combined with a strong one (K×K conv) outperforms two strong components (double K×K), indicating that structural diversity enhances learning beyond mere parameter increase.
- Moving batch normalization from before to after the branch addition reduces performance gain (69.54% → 69.59%), showing that training-time nonlinearity is crucial for DBB’s effectiveness.
- The baseline model initialized with DBB weights (without training) achieved only 69.67% accuracy, indicating that the performance gain is due to the training process and structure, not initialization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.