Abstract
WaveSeg is a novel decoder architecture designed to bridge the gap between high-level semantic understanding and fine-grained boundary preservation in semantic segmentation. Traditional decoders often fail to recover structural details lost during encoder downsampling. WaveSeg addresses this by leveraging Discrete Wavelet Transforms (DWT) to extract high-frequency priors directly from the input image and employing Mamba-based State Space Models for efficient global modeling. This dual-domain approach achieves superior segmentation accuracy on benchmarks like ADE20K and Cityscapes while maintaining linear computational complexity, offering a significant improvement over standard Transformer-based decoders.
Introduction
In the field of semantic segmentation, the primary focus has historically been on the encoder (backbone) to extract robust semantic features. However, the decoder's role in reconstructing spatial resolution is equally critical. Standard "vanilla" decoders often rely on simple convolutional layers or MLPs, which struggle to recover the fine-grained structural information—such as sharp object boundaries—discarded during the encoder's downsampling process.
Existing solutions, such as context-prior architectures, attempt to guide the decoder using affinity maps derived from ground truth or learned features. While helpful, these methods often overlook the raw structural information present in the original input image. WaveSeg proposes a paradigm shift by treating segmentation as a multi-frequency problem, explicitly guiding the decoder with high-frequency priors extracted via wavelets.
The WaveSeg Architecture
The core innovation of WaveSeg lies in its ability to operate simultaneously in the spatial and frequency domains. The architecture is built around three primary components designed to integrate global context with local structural details.
High-Frequency Prior Guidance (HPG)
Unlike traditional decoders that only process features from the encoder, the HPG module "short-circuits" high-frequency information directly from the original input image. By applying a Discrete Wavelet Transform (DWT), the model extracts edges and textures (LH, HL, and HH components) which are then injected into the decoder stages. This acts as an explicit structural guide, ensuring that boundaries remain sharp even after multiple upsampling steps.
Spectrum Decomposition Attention (SDA) Block
The SDA block serves as the functional engine of the decoder. It decomposes feature maps into high- and low-frequency components for specialized processing:
- High-Frequency Branch: Utilizes a Mamba-based module (Visual State Space Model or VSSM) to provide global modeling of structural details. Mamba's linear complexity allows for a wide receptive field without the quadratic memory overhead of standard Self-Attention.
- Low-Frequency Branch: Employs reparameterized convolutions (RepBlocks) to strengthen the semantic representations of the object's interior.
Dual Domain Operation (DDO)
The DDO mechanism facilitates multi-scale fusion, progressively refining features across different resolutions. It ensures that the global context captured by the Mamba modules and the local details provided by the wavelet priors are integrated effectively into the final dense prediction.
Experimental Evaluation
The authors evaluated WaveSeg across four large-scale benchmarks to demonstrate its versatility and robustness:
- ADE20K: A complex scene parsing dataset with 150 categories.
- Cityscapes: High-resolution urban driving scenes.
- COCO-Stuff 164K: Diverse pixel-level background and object annotations.
- PASCAL VOC2012: A standard object-centric benchmark.
To ensure the results were not backbone-dependent, WaveSeg was tested with various encoders, including MiT (SegFormer), MSCAN (SegNeXt), and LVT.
Key Results and Insights
WaveSeg consistently outperformed state-of-the-art (SOTA) methods like SegFormer and FeedFormer in both accuracy and efficiency:
- Accuracy Gains: On the ADE20K benchmark using a MiT-B0 backbone, WaveSeg achieved 42.8% mIoU, representing a 5.4% improvement over the baseline SegFormer.
- Computational Efficiency: On high-resolution Cityscapes images, WaveSeg reduced computational costs (GFLOPs) by over 50% compared to competitive Transformer-based decoders while delivering higher precision.
- Qualitative Superiority: Visual analysis confirms that WaveSeg produces significantly sharper delineations for thin or complex structures, such as bicycle spokes, slender poles, and human limbs, where traditional models often produce blurry or disconnected masks.
Conclusion and Future Work
WaveSeg demonstrates that frequency-domain information is a powerful, underutilized resource in semantic segmentation. By combining wavelet-based priors with the efficient long-range modeling of Mamba, the architecture achieves a superior balance of detail preservation and semantic coherence.
Future research will focus on addressing the limitations of the fixed Mamba selective-scan order. The authors propose developing adaptive or learnable scan orders to better capture the 2D correlations inherent in image data, potentially further enhancing the model's ability to handle complex geometric structures.
Summary updated