Abstract
Capturing long-range dependencies is fundamental to semantic segmentation. While self-attention mechanisms like Non-Local (NL) blocks are widely used, they typically prioritize either spatial or channel dependencies at the expense of the other. This "attention missing" phenomenon leads to inconsistent labeling or loss of fine details. We introduce the Fully Attentional Network (FLANet), featuring a novel Fully Attentional (FLA) block that captures both spatial and channel dependencies within a single similarity map. FLANet achieves state-of-the-art results on major benchmarks while reducing FLOPs by 83% compared to dual-attention baselines.
Introduction: The "Attention Missing" Problem
In semantic segmentation, identifying an object often requires context from distant pixels. For instance, recognizing a "train" requires understanding the full extent of the object across the image. Current state-of-the-art models utilize Non-Local (NL) blocks to model these dependencies. However, these blocks are generally bifurcated into two types:
- Channel NL: Models relationships between channels but compresses spatial information, often missing thin objects like poles.
- Spatial NL: Models pixel-to-pixel relationships but compresses channel information, leading to inconsistent classification within large objects like buses.
The authors identify this as "attention missing." Even stacking these blocks (Dual NL) fails to fully recover the lost 3D context ($C \times H \times W$) and incurs high computational costs.
Methodology: The Fully Attentional (FLA) Block
The core contribution of this work is the Fully Attentional (FLA) block, which integrates spatial and channel attention into a unified operation without the prohibitive cost of standard 3D attention.
The FLA block operates in two primary stages:
- Construction Phase: To maintain efficiency, the model generates "global context priors." It utilizes global average pooling across horizontal and vertical axes to summarize the spatial layout.
- Affinity Map Generation: These spatial priors are merged with channel information to create a "fully attentional" similarity map. This map describes the relationship between each channel at a specific location and all other channels across their respective spatial positions.
By leveraging pooled priors, FLANet is significantly more efficient than previous methods. Compared to DANet, FLA reduces FLOPs by 83% and GPU memory usage by 34%.
Key Results and Insights
FLANet was evaluated on Cityscapes, ADE20K, and PASCAL VOC datasets, achieving state-of-the-art performance across all three. Specifically, it reached 83.6% mIoU on Cityscapes and 46.99% on ADE20K.
The experimental results highlight several key insights:
- Complementarity: Spatial NL excels at identifying "thin" categories (e.g., poles, riders), whereas Channel NL is more effective for "large" categories (e.g., trucks, buses).
- Integrity of 3D Context: Stacking blocks sequentially does not solve the information loss inherent in compression. True scene understanding requires harvesting spatial responses during the channel interaction phase, which the FLA block achieves.
- Qualitative Improvements: Visualizations demonstrate that FLANet successfully eliminates "holes" in large object segmentations and accurately identifies distant, thin structures that baseline models overlook.
Conclusion
FLANet addresses the limitations of traditional self-attention in semantic segmentation by providing a unified, efficient mechanism for capturing full 3D context. While it offers substantial efficiency gains over dual-attention methods, future research will focus on further optimizing channel-wise interactions for real-time applications.
Summary updated