Introduction
Weakly Supervised Semantic Segmentation (WSSS) aims to train pixel-level labeling models using only image-level tags, significantly reducing annotation costs. Modern WSSS approaches increasingly rely on Vision Transformers (ViTs) due to their superior global context modeling. However, ViTs suffer from an "over-smoothing" phenomenon. Their self-attention mechanism effectively acts as a low-pass filter, suppressing high-frequency signals that contain critical boundary and fine-detail information. This results in blurred segmentations that often bleed into the background.
Frequency Feature Rectification (FFR)
To address this, the Frequency Feature Rectification (FFR) framework is proposed. FFR identifies and corrects distorted features by operating in the frequency domain.
The pipeline consists of several key components:
- Frequency Features Masking (FFM): Using Discrete Fourier Transform (DFT), ViT features are decomposed into high and low frequencies. This allows the model to separate reliable low-frequency object cores from potentially noisy or attenuated high-frequency boundaries.
- False Segmentation Tokens Selection (FSTS): By utilizing class prototypes (representative feature vectors), the model identifies specific patches (tokens) where high-frequency attenuation has led to incorrect activations.
- Tokens Rectification: A dedicated loss function ($\mathcal{L}_r$) encourages the model to rectify these misleading tokens by aligning them with more reliable low-frequency representations.
Additionally, FFR employs a Dual-Branch Segmentation Head. One branch uses high dilation to capture global structure, while the other uses low dilation to preserve high-frequency boundary details.
Key Insights: The Role of Frequency
Empirical analysis reveals that while low-frequency features provide the most stable class information, the attenuation of high-frequency signals is the primary cause of false activations at object boundaries.
As shown in the performance variations, segmentation mIoU peaks when focusing on specific low-frequency areas. FFR leverages this by selectively filtering distorted high-frequency components rather than discarding them entirely, preserving the sharp edges necessary for accurate masks.
Experimental Results
FFR was evaluated on the PASCAL VOC 2012 and MS COCO 2014 benchmarks, setting new state-of-the-art records for single-stage WSSS:
- PASCAL VOC 2012: Achieved 76.0% mIoU on the validation set and 75.5% on the test set, a 2.3% improvement over previous leaders like DuPL.
- MS COCO 2014: Reached 46.8% mIoU, outperforming other ViT-based methods such as SeCo and ToCo.
Qualitatively, FFR produces significantly cleaner boundaries, successfully isolating thin structures like bird legs or airplane wings from complex backgrounds where previous methods typically failed.
Conclusion
FFR effectively mitigates the over-smoothing issue in ViT-based WSSS by rectifying features in the frequency domain. While it achieves impressive boundary accuracy, future work may explore advanced frequency-domain reconstruction techniques to further recover lost high-frequency details from smoothed encoders.
Summary updated