TL;DR
The Dual Frequency-Aware (DFA) framework overcomes a major bottleneck in Weakly Supervised Semantic Segmentation (WSSS) by separately refining low- and high-frequency affinities from Vision Transformers. By combining these complementary frequency signals into an Optimal Transport formulation, DFA generates highly accurate Class Activation Maps (CAMs) with sharp boundaries and coherent interiors in a single step, setting a new state-of-the-art on PASCAL VOC and MS COCO.
What Problem Does This Paper Address?
Training semantic segmentation models typically requires labor-intensive, pixel-level annotations. Weakly Supervised Semantic Segmentation (WSSS) bypasses this by training models using only cheap image-level labels (e.g., "this image contains a bus").
To bridge the gap between image labels and pixel masks, WSSS relies on Class Activation Maps (CAMs). However, standard CAMs tend to focus only on the most discriminative parts of an object (like a bird's beak instead of its entire body). While researchers use "affinity learning" (modeling pairwise pixel relationships via Vision Transformers) to spread these activations across the whole object, Vision Transformers (ViTs) naturally act as low-pass filters. This inherent smoothing property blurs object boundaries and causes over-activation into the background. Conversely, high-pass alternatives capture sharp edges but fail to maintain uniform activation inside the object.
Methods
The authors introduce the Dual Frequency-Aware (DFA) framework to capture both uniform object interiors and sharp structural boundaries without relying on complex, multi-stage post-processing pipelines.
Key components include:
- Affinity Generation: The self-attention matrix from a frozen CLIP image encoder is split into a smoothed affinity ($A_s$, via low-pass filtering) and an inverse affinity ($A_{inv}$, via high-pass filtering in the frequency domain using Fourier Transforms).
- Low-Frequency-Aware Alignment (LFAA): This module aligns the smoothed affinity with dense semantic relations from the decoder using a supervised distribution alignment loss (KL divergence), ensuring object interiors remain semantically consistent.
- High-Frequency-Aware Rectification (HFAR): This module uses a supervised rectification loss to amplify true boundary relations and suppress background noise in the high-frequency inverse affinity, aided by a shifted window approach to handle ambiguous regions.
- Frequency-Guided (FG) CAM Generation: Instead of generating a coarse CAM and refining it iteratively, DFA unifies both refined affinities into a single score matrix. It formulates CAM generation as an Optimal Transport (OT) problem, using the Sinkhorn algorithm to optimally allocate token features to target semantic classes in a single step.
Datasets
The framework was evaluated on two standard WSSS benchmarks:
- PASCAL VOC 2012: Augmented with the Semantic Boundaries Dataset (SBD), containing 10,582 training, 1,449 validation, and 1,456 test images across 21 semantic categories.
- MS COCO 2014: A larger, more challenging dataset with 81 object classes, containing 82,081 training images and 40,137 validation images.
Key Insights and Ideas
- The Frequency Split: Self-attention matrices in ViTs are inherently biased toward low frequencies, explaining why previous WSSS methods struggled with crisp boundaries. Explicitly separating the high-frequency components via spectral inversion provides the missing structural boundary details.
- Complementary Strengths: Low-pass filters excel at uniform region activation but over-activate backgrounds; high-pass filters preserve fine details but fail to maintain coherent internal activations. Merging them intelligently solves both issues simultaneously.
- One-Step Refinement via Optimal Transport: Traditional pipelines suffer from error accumulation across multiple sequential refinement stages (e.g., Grad-CAM followed by AffinityNet followed by DenseCRF). Replacing the standard cost matrix in an Optimal Transport formulation with a frequency-aware score matrix allows for simultaneous CAM generation and refinement.
Key Results
DFA achieves top-tier performance for single-stage WSSS methods:
- CAM & Pseudo-Label Quality: On the PASCAL VOC train split, DFA achieved 79.1% mIoU on CAM seeds and 80.8% mIoU on pseudo-labels, outperforming the previous state-of-the-art (ExCEL) by 1.1%.
- Segmentation Performance:
- PASCAL VOC 2012: Achieved an mIoU of 79.3% on the validation set and 79.8% on the test set.
- MS COCO 2014: Achieved 51.5% mIoU on the validation set, outperforming multi-stage methods like PSDPM by 4.3%.
Limitations and Future Work
While DFA simplifies the WSSS pipeline into a single stage and significantly improves boundary precision, it still relies heavily on a frozen CLIP backbone, meaning its performance is partially bound to the quality of the underlying vision-language pre-training. The authors note that future work will continue to explore even more powerful CAM generation mechanisms within the weakly supervised paradigm.
Summary updated