Abstract
Semantic segmentation models often struggle with mixing features from different objects when attempting to capture global context. This paper introduces BCANet, a network that explicitly utilizes object boundaries to guide context aggregation. By constraining pixels to gather context primarily from their corresponding boundary regions, the model enhances intra-class consistency and reduces inter-class dependency. BCANet achieves state-of-the-art results on standard benchmarks, including Cityscapes and ADE20K, demonstrating the effectiveness of boundary-aware feature learning.
Introduction
In semantic segmentation, assigning a class label to every pixel requires a deep understanding of "context"—the relationship between a pixel and its surroundings. Current state-of-the-art methods typically gather this context using spatial pyramids (like ASPP) or global attention mechanisms (like Non-local networks).
However, these methods often lack explicit geometric constraints. Without knowing where one object ends and another begins, they can inadvertently pull in context from unrelated objects (inter-class dependency). Furthermore, they struggle with "intra-class ambiguity," where local texture variations—such as a colorful advertisement on a bus—confuse the model into misclassifying parts of a single object. BCANet addresses these issues by using physical object boundaries as a strict guide for information sharing.
The BCANet Architecture
BCANet is built on a standard ResNet-101 backbone and introduces two novel components designed to integrate boundary information into the feature extraction process:
- Multi-Scale Boundary (MSB) Extractor: Rather than predicting boundaries as a post-processing step, the MSB pulls features from multiple stages of the backbone to predict a binary boundary map in parallel with the main segmentation task.
- Boundary guided Context Aggregation (BCA) Module: This is the core innovation. Unlike standard self-attention that compares every pixel to every other pixel, the BCA module calculates cross-attention between mainstream semantic features and boundary features.
This mechanism creates an attention map where the boundary regions of a specific object are highly activated. Contextual information along these boundaries is then aggregated and distributed back to the inner pixels of the object. The network is optimized using a combination of standard segmentation loss, boundary prediction loss, and a specialized boundary-aware loss ($L_{att}$).
Experimental Results
The model was evaluated on two highly competitive benchmarks:
- Cityscapes: BCANet achieved 81.7% mIoU on the test set, outperforming standard context modules like ASPP by 0.74% and standard Non-local attention by 1.43%.
- ADE20K: The model reached 82.35% pixel accuracy and 45.62% mIoU, placing it among the top-performing models for diverse indoor and outdoor scenes.
Ablation studies confirmed that the BCA module is the primary driver of performance, providing a 3.54% mIoU improvement over the baseline network.
Key Insights
- Boundaries as Context Sources: Traditionally, boundaries were used to sharpen final outputs. BCANet flips this paradigm, using boundaries as the primary source of semantic context to unify the representation of an entire object.
- Solving Intra-class Ambiguity: By tying internal pixels to the object's boundary, pixels with different textures (like windows vs. walls) are forced to share the same semantic representation because they are enclosed by the same boundary.
- Robustness to Imperfect Boundaries: Unlike previous propagation methods that "leaked" features through gaps in predicted boundaries, BCANet's attention-based similarity map is robust to unclosed or imperfect boundary predictions.
Conclusion
BCANet demonstrates that explicit geometric guidance can significantly improve the quality of context aggregation in semantic segmentation. While the authors note a potential limitation in cases where foreground and background share massive overlapping boundary areas, the model's performance on Cityscapes and ADE20K highlights its robustness in complex, real-world environments.
Summary updated