TL;DR
MTMamba++ introduces a highly efficient, Mamba-based decoder architecture for multi-task dense scene understanding, overcoming the quadratic computational bottleneck of Transformers. By leveraging state-space models (SSMs), it captures long-range spatial dependencies and enables semantic-aware cross-task interactions with linear complexity. The resulting model achieves state-of-the-art performance across major benchmarks while significantly reducing parameter counts and computational overhead.
What Problem Does This Paper Address?
In multi-task dense scene understanding, a single model is trained to simultaneously predict multiple pixel-wise outputs, such as semantic segmentation, depth estimation, and object boundary detection. Doing this successfully requires solving two fundamental challenges:
- Modeling long-range spatial relationships to capture global context.
- Enhancing cross-task interactions to facilitate knowledge sharing between tasks.
While Convolutional Neural Networks (CNNs) excel at local feature extraction, they struggle with global context. Transformers solve this by using self-attention mechanisms to capture long-range dependencies, but they suffer from quadratic computational complexity ($O(L^2)$) relative to sequence length. This makes Transformers computationally prohibitive for high-resolution, pixel-level dense prediction tasks.
To bridge this gap, the authors introduce MTMamba++, utilizing State Space Models (SSMs) to achieve global context modeling and cross-task communication with linear computational complexity ($O(L)$).
Methods
MTMamba++ features a shared encoder (e.g., a Swin Transformer) paired with a novel three-stage Mamba-based decoder and task-specific prediction heads.
The core innovation lies within the decoder stages, which consist of three main components:
- ECR (Expand, Concatenate, and Reduce) Block: Upsamples features and fuses them with multi-scale skip connections from the encoder to recover high-resolution spatial details.
- Self-Task Mamba (STM) Block: Uses a 2D-selective-scan (SS2D) module to unfold feature maps along four distinct directions, allowing an SSM to process them and capture global context for each individual task efficiently.
- Cross-Task Mamba (CTM) Block: Facilitates information exchange across tasks. The authors propose two variants:
- F-CTM (Feature-Level): Uses a task-shared fusion block and input-dependent gating to adaptively blend task-specific features with a global representation.
- S-CTM (Semantic-Aware): Introduces a novel Cross SSM (CSSM) mechanism. Instead of simple feature fusion, the task-shared sequence is used to dynamically generate the SSM parameters ($\mathbf{B}, \mathbf{C}, \Delta$) that guide the processing of the task-specific query sequence.
Additionally, the authors introduce LiteHead, a lightweight prediction head that applies convolutions at a lower resolution before interpolating to the final output size, significantly cutting down computational costs compared to standard upsampling heads.
Datasets
The architecture was evaluated on three standard multi-task dense prediction benchmarks:
- NYUDv2: An indoor scene dataset evaluated on four tasks: semantic segmentation, monocular depth estimation, surface normal estimation, and object boundary detection.
- PASCAL-Context: An indoor/outdoor dataset evaluated on semantic segmentation, human parsing, saliency detection, surface normal estimation, and object boundary detection.
- Cityscapes: An urban scene understanding dataset evaluated on semantic segmentation and disparity estimation.
Key Insights and Ideas
- Linear-Time Global Context: MTMamba++ proves that attention mechanisms are not strictly necessary for high-performing dense decoders. SSMs can deliver comparable or superior global context modeling at a fraction of the computational cost.
- Conditioning via Cross SSMs: Rather than just concatenating or adding features from different tasks (as in F-CTM), S-CTM uses the shared multi-task representation to parameterize the state space equations of individual tasks. This allows for a much more dynamic, context-aware interaction.
- Task Conflict vs. Model Capacity: The optimal channel expansion factor ($\alpha$) in the Mamba blocks correlates with task conflict. For low-conflict task pairs (like segmentation and depth), a smaller expansion factor ($\alpha=1$) suffices. When highly conflicting tasks (like surface normals) are added, increasing the capacity to $\alpha=2$ becomes essential to resolve the conflict.
Key Results
MTMamba++ consistently outperforms CNN, Transformer, and diffusion-based multi-task architectures.
Quantitative Performance
- PASCAL-Context: MTMamba++ achieves state-of-the-art results across tasks while using only 343MB of parameters and 609GB FLOPs. This represents a massive efficiency gain, requiring only 30.6% of the computational resources demanded by the Transformer-based TSP-Transformer (1991GB FLOPs).
- NYUDv2: It significantly outperforms its predecessor, MTMamba, boosting semantic segmentation mIoU from 55.82 to 57.01 and reducing depth RMSE from 0.5066 to 0.4818.
- Cityscapes: MTMamba++ achieves the highest performance on both semantic segmentation (79.13 mIoU) and disparity estimation.
Qualitative Performance
Visualizations demonstrate that MTMamba++ produces sharper object boundaries, fewer misclassification errors in complex backgrounds, and significantly higher precision when detecting small or distant objects (such as street lamps and distant pedestrians) that Transformer baselines completely miss.
Limitations and Future Work
Not discussed in the paper.
Summary updated