Abstract
This paper introduces DSNet, a novel architecture that bridges the gap between ResNet and DenseNet using "dense weighted normalized shortcuts." By replacing DenseNet’s memory-heavy concatenation with a smarter, weighted summation, DSNet achieves DenseNet-level performance with the computational efficiency and speed of a standard ResNet.
Introduction
In the development of deep learning backbones, researchers often face a "dilemma of choice" between the speed of ResNet and the accuracy of DenseNet. ResNet uses identity shortcuts (simple addition) to stabilize training, but this simplicity can limit representation power—a phenomenon known as the "collapsing domain" problem. Conversely, DenseNet concatenates features from all preceding layers, offering massive capacity but at a high cost: it is a "memory hog" and results in many small convolution operations that are slow on modern hardware. DSNet seeks a middle ground, offering the best of both worlds.
Methodology: A Unified Perspective
The core innovation of DSNet is a unified perspective showing that DenseNet’s concatenation is essentially a specific form of weighted summation.
As illustrated above, concatenation followed by a convolution is mathematically equivalent to a series of individual convolutions whose results are summed. Based on this, the authors introduce Dense Shortcuts:
- Dense Weighted Normalized Shortcuts: Instead of concatenating previous layers, DSNet sums them. To prevent features from earlier layers from overwhelming later ones, Group Normalization (GN) is applied to maintain feature scale.
- Channel-wise Learnable Weights: Learnable parameters allow the network to dynamically "decide" the importance of each preceding feature map during the summation.
- DS2Net: An evolved version where these dense shortcuts are integrated not just between blocks, but also within the $3 \times 3$ convolutional layers themselves, adding almost zero computational overhead while boosting accuracy.
Experimental Results
The authors validated their approach across several industry-standard benchmarks, including CIFAR-10/100, ImageNet, and MS COCO 2014.
Performance on ImageNet
DSNet demonstrates significant improvements in both accuracy and efficiency. On ImageNet, DS2Net50 achieved a 22.03% Top-1 error, outperforming the much deeper ResNet152 (22.16%) despite having significantly fewer layers and parameters.
Efficiency and Speed
Because DSNet uses summation rather than concatenation, the input dimensions to the convolutional layers remain constant, avoiding the memory explosion seen in DenseNet. On ImageNet, DSNet50 required roughly 4.7 GB of GPU memory, compared to 9.9 GB for a comparable DenseNet264. Furthermore, DSNet50 clocked in at 0.37s per iteration, nearly twice as fast as DenseNet264 (0.60s) on the same hardware.
Object Detection
When used as a backbone for Faster R-CNN on the MS COCO dataset, DSNet50 improved the mean Average Precision (mAP) from 31.4% (standard ResNet) to 33.7%.
Key Insights
- Normalization is Mandatory: A naive "dense ResNet" (just adding all previous layers) actually performs worse than a standard ResNet. Normalization is required to keep features on a similar scale so the gradient doesn't vanish or explode during the dense summation.
- Hardware Efficiency: DenseNet is slow because it uses many "thin" convolutions. DSNet uses "thick," compact convolutions, which are much better optimized for GPU kernels (cuDNN), leading to significantly faster training and inference times.
Conclusion and Future Work
DSNet successfully combines the representational power of dense connections with the efficiency of additive shortcuts. While the authors primarily adapted the standard ResNet backbone, they acknowledge that designing a new backbone from scratch specifically for dense shortcuts could likely yield even higher performance. Future work will also explore the optimal configuration of normalization and weighting for non-vision tasks like NLP.
Summary updated