TL;DR
This paper introduces the Bidirectional Interaction Mamba (BIM), a novel framework that enhances multi-task dense prediction by improving cross-task feature interaction while maintaining linear computational complexity. BIM achieves this through a Bidirectional Interaction Scan (BI-Scan) and a Multi-Scale Scan (MS-Scan) mechanism, leading to superior performance on challenging benchmarks.
What Problem Does This Paper Address?
Multi-task dense prediction aims to simultaneously perform multiple pixel-level tasks, such as semantic segmentation and depth estimation, from a single input image. The key to success in these tasks lies in effective cross-task interaction, where information from one task can inform and improve predictions for others. However, existing methods often face a trade-off: either they achieve comprehensive interaction at the cost of high computational complexity (e.g., quadratic complexity with the number of tasks), or they opt for linear complexity but sacrifice crucial interaction information, leading to suboptimal performance. This paper tackles this challenge by proposing a method that achieves both comprehensive interaction and linear complexity.
Methods
The proposed framework, Bidirectional Interaction Mamba (BIM), builds upon the Mamba architecture, known for its efficient long-range dependency modeling. BIM consists of three main components:
- Task-Shared Encoder: A pretrained Swin Transformer is used to extract general image features.
- Mamba Decoder with Interaction Modules: This is the core of the proposed method. It refines task-generic features into task-specific representations.
- Bidirectional Interaction Scan (BI-Scan): This novel mechanism is designed to preserve task information integrity during interaction with linear complexity. It constructs task representations as bidirectional sequences and employs two scanning modes:
- Task-First Mode: Serializes features for each task and then aggregates them based on task order.
-
Position-First Mode: Aggregates spatially aligned tokens across tasks and then serializes them based on scan patterns. Both modes are processed by a State Space Model (SSM) and fused.
-
Multi-Scale Scan (MS-Scan): This mechanism captures scene structure information at multiple scales. It splits the input image into multiple branches, each with a distinct scanning scale, to model scene structure at various resolutions. This addresses the diverse granularity needs of different tasks.
- Task-Specific Heads: These generate the final predictions for each individual task.
The BIM framework integrates these components into a Mamba Feature Refinement (MFR) block, which includes task-shared Bidirectional Cross-Task Feature Refine (BCFR) and Multi-Scale Single-task (MSST) blocks.
Datasets
The paper evaluates BIM on two widely-used multi-task dense prediction benchmarks:
- NYUD-v2: Focuses on indoor scenes and includes tasks like semantic segmentation, monocular depth estimation, surface normal estimation, and object boundary detection.
- PASCAL-Context: Encompasses both indoor and outdoor scenes, offering tasks such as semantic segmentation, parsing, saliency detection, surface normal estimation, and object boundary detection.
Key Insights and Ideas
- Bridging the Interaction Complexity Gap: The paper effectively demonstrates that it's possible to achieve rich cross-task interaction without incurring prohibitive computational costs, a long-standing challenge in multi-task learning.
- Bidirectional Scanning for Information Preservation: The BI-Scan mechanism's dual-mode approach (Task-First and Position-First) is crucial for maintaining the integrity of task-specific information during interaction, preventing information loss that plagues simpler linear complexity methods.
- Multi-Scale Representation for Diverse Tasks: The MS-Scan's ability to capture scene structure at multiple scales is vital for tasks with varying spatial resolution requirements, leading to more nuanced and effective feature representations.
- Mamba's Suitability for Visual Tasks: The work further validates the applicability of Mamba's efficient sequential modeling capabilities to dense prediction tasks in computer vision, extending its success beyond natural language processing.
Key Results
- State-of-the-Art Performance: BIM achieves superior performance compared to existing state-of-the-art methods on both NYUD-v2 and PASCAL-Context datasets across multiple tasks. For instance, on NYUD-v2, BIM boosts semantic segmentation accuracy from 55.82% to 57.40%.
- Efficiency: The proposed BI-Scan and MS-Scan mechanisms maintain linear interaction complexity, making BIM computationally efficient.
- Ablation Studies:
- BI-Scan significantly improves performance over baseline models, highlighting the importance of bidirectional interaction.
- MS-Scan also contributes to enhanced performance by enabling multi-granularity scene modeling.
- Combining both Task-First and Position-First modes in BI-Scan yields the best results.
- The method shows robustness to task order during interaction.
Limitations and Future Work
- Model Size: While BIM shows improved performance, the paper notes that models with larger capacities (e.g., Swin-Large Transformer encoder) generally exhibit superior results, suggesting potential for further gains with more powerful backbones.
- Future Work: The paper implicitly suggests that exploring more advanced scanning patterns or fusion strategies within BI-Scan and MS-Scan could lead to further improvements. Additionally, applying BIM to other dense prediction tasks or exploring its use with different backbone architectures could be promising future directions.
Summary updated