Introduction
Semantic segmentation—the task of assigning a category to every pixel in an image—requires a delicate balance: the model needs a large receptive field to understand global context (e.g., "this is a road") but must also preserve fine-grained details (e.g., the exact edge of a pedestrian).
While Vision Transformers (ViTs) have recently dominated this field due to their massive receptive fields, they are often computationally expensive. Convolutional Neural Networks (CNNs) usually use atrous convolutions (convolutions with gaps between kernel elements) to expand their receptive field without increasing parameter counts. However, researchers traditionally only use these in the deep, "bottleneck" layers of a network. When placed in shallow layers, atrous convolutions often suffer from the "gridding effect" (losing local information) and fail to benefit from ImageNet pretraining—a phenomenon the authors call the "Atrous Disaster."
Architecture and Methods
The authors propose DSNet (Dual-branch with Same-resolution Network), a novel architecture designed to integrate atrous convolutions effectively throughout the network. Unlike many models that downsample heavily and then upsample, DSNet maintains a consistent resolution across its branches, which helps preserve spatial accuracy for real-time applications.
Key Components:
- MFACB (Multi-scale Fusion Atrous Convolutional Block): The core building block of the context branch. It stacks atrous convolutions with different rates and fuses them to learn features at multiple scales simultaneously.
- MSAF (Multi-Scale Attention Fusion): A module that connects the spatial and context branches. It uses two types of attention: Region Attention (to understand the importance of different areas) and Pixel Attention (to refine specific pixel boundaries).
- SPASPP (Serial-Parallel Atrous Spatial Pyramid Pooling): An improvement over the standard ASPP module. It stacks atrous convolutions in a hybrid serial-parallel way to rapidly expand the receptive field at the end of the backbone.
The "Atrous Disaster" and Design Guidelines
The authors discovered that if the dilation rate is too high relative to the feature map size during pretraining, the kernel effectively "falls off" the data. This explains why previous attempts to use atrous convolutions in early layers failed—they weren't "learning" anything useful from ImageNet. To mitigate this, DSNet follows three empirical guidelines:
- Don’t go "all-in" on atrous: Mix atrous convolutions with dense ones to maintain local detail.
- Avoid the "Atrous Disaster": Keep atrous rates small in shallow layers. Large rates (e.g., >12) on small ImageNet input sizes ($224 \times 224$) cause the kernel to "skip" over the feature map entirely, ruining pretraining.
- Use smart fusion: Simple addition or concatenation isn't enough to merge spatial and contextual information; attention-based fusion is required.
Experimental Results
DSNet was evaluated on standard benchmarks including Cityscapes, ADE20K, and BDD100K. It achieves a superior balance of speed and accuracy compared to both Transformer-based and CNN-based competitors.
- Cityscapes: Achieved 80.4% mIoU at 81.9 FPS (on an RTX 4090). This outperforms popular models like PIDNet and DDRNet in the high-accuracy regime.
- ADE20K: The "head256" version reached 40.0% mIoU at a blistering 179.2 FPS, while the "Base" version reached 43.4% mIoU.
- BDD100K: Set a new state-of-the-art for real-time models with 62.8% mIoU.
- Efficiency: The model achieves these results with relatively few parameters (e.g., 6.8M for the head128 version), making it highly efficient for deployment.
Conclusion
DSNet demonstrates that atrous convolutions can be a lightweight alternative to large kernels, achieving similar receptive field benefits with significantly fewer parameters. While the model still relies heavily on ImageNet pretraining, it sets a new benchmark for real-time semantic segmentation. Future work may explore even larger atrous kernels or training these architectures from scratch effectively.
Summary updated