DCANet: Dense Context-Aware Network for Semantic Segmentation

Yifu Liu, Chenfeng Xu, Xinyu JinarXiv 2021

Abstract

Semantic segmentation requires a delicate balance between fine-grained local details and broad global context. Traditional Fully Convolutional Networks (FCNs) often fail to maintain consistency across large objects or distinguish between visually similar classes. This paper introduces the Dense Context-Aware (DCA) module, a novel component designed to adaptively integrate pixel-level features with global scene dependencies. By employing a progressive attention mechanism and semantic supervision, DCANet achieves state-of-the-art results on major benchmarks, including PASCAL VOC 2012 and Cityscapes.

Addressing the Limitations of FCNs

Semantic segmentation involves assigning a category label to every pixel in an image. In complex scenes, standard FCNs encounter two primary hurdles:

  1. Intra-class Inconsistency: Large objects (e.g., a bus or a truck) may be segmented into multiple different categories because the network lacks a unified global view.
  2. Inter-class Indistinguishability: Objects with similar textures or shapes (e.g., a horse vs. a cow) are frequently confused when the network relies solely on local features without considering the surrounding environment.
Figure 3: Comparison between original images, FCN base model predictions, and ground truth. Note the intra-class inconsistency in the FCN's horse segmentation (b, top) and the noisy classification of the truck (b, bottom).

While multi-scale fusion techniques like pyramid pooling exist, they often use simple operations like concatenation that fail to capture the intricate relationships between objects. DCANet addresses this by using global information to actively guide local feature extraction.

The Dense Context-Aware (DCA) Module

The core of the proposed architecture is the DCA module, which utilizes two distinct pathways to bridge the gap between local and global information:

  • The Contextual Pathway: This pathway performs "context pooling" (global average pooling at multiple scales) to extract broad scene descriptors. These descriptors are then used to generate an attention mask that encapsulates the contextual awareness of the entire scene.
  • The Spatial Pathway: This pathway preserves high-resolution local features. The attention mask from the contextual pathway is applied to these features, effectively "gating" them so the network prioritizes local details that are most relevant to the identified global context.

Architectural Variants

The authors propose two ways to organize these modules:

  • Cascade-DCA: Modules are arranged sequentially, progressively increasing pooling sizes (from 1x1 to 16x16). This allows for a global-to-local refinement of spatial relationships.
  • Pyramid-DCA: Modules operate in parallel across different scales (1x1, 2x2, 3x3, 6x6) and are fused at the end, providing a robust multi-scale representation enhanced by the DCA attention mechanism.

Additionally, the network incorporates Semantic Supervision (SS). By applying an auxiliary loss function directly to the contextual pathway, the model is forced to learn meaningful, category-level features rather than abstract noise, significantly improving the quality of the resulting attention maps.

Experimental Results

DCANet was evaluated on three prominent datasets: PASCAL VOC 2012, Cityscapes (urban street scenes), and ADE20K (complex scene parsing).

  • PASCAL VOC 2012: The model achieved 84.4% mIoU, surpassing established models like DANet (82.6%) and APCNet (84.2%).
  • Cityscapes: Utilizing a ResNet-101 backbone, DCANet reached 80.13% mIoU, a substantial improvement over the FCN baseline.
  • ADE20K: On this highly challenging 150-class dataset, the model achieved a competitive 45.49% mIoU.

Qualitatively, DCANet produces significantly cleaner object boundaries and eliminates the "speckled" misclassifications often seen in standard FCN outputs. By interpreting fine-grained details through the lens of the overall scene, the network ensures that different parts of the same object remain consistent.

Conclusion and Future Work

DCANet demonstrates that attention-based context integration is a powerful tool for semantic segmentation. While the Pyramid-DCA structure offers superior accuracy, it comes with a higher computational cost. Future research will focus on optimizing these modules to reduce their parameter count, aiming to bring the high-performance benefits of DCANet to real-time applications such as autonomous vehicle navigation.

Summary updated

BibTeX
@misc{liu2021dcanet,
  author = {Yifu Liu and Chenfeng Xu and Xinyu Jin},
  title = {{DCANet: Dense Context-Aware Network for Semantic Segmentation}},
  year = {2021},
  eprint = {2104.02533},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.02533},
}
Figure