Deformable Mamba for Wide Field of View Segmentation

Jie Hu, Junwei Zheng, Jiale Wei, Jiaming Zhang, Rainer StiefelhagenarXiv 2024 · DOI

Abstract

Standard computer vision models are optimized for the rectilinear projections of pinhole cameras, often failing to handle the geometric distortions inherent in wide field-of-view (FoV) imaging such as fisheye and panoramic photography. We present Deformable Mamba (DMamba), a novel architecture featuring a distortion-aware decoder that integrates the linear computational efficiency of State Space Models (Mamba) with the geometric flexibility of Deformable Convolutions. DMamba achieves state-of-the-art results on panoramic and fisheye benchmarks while significantly reducing computational overhead, offering a flexible, plug-and-play solution for wide-FoV semantic segmentation.

Introduction

As autonomous driving and 360° VR applications expand, the limitations of traditional "flat-world" computer vision models become apparent. In wide-FoV images, straight lines become curves and objects undergo non-uniform stretching. Most existing solutions attempt to embed distortion-awareness into the entire model, leading to architectural rigidity and incompatibility with modern, high-performance backbones. Researchers from KIT and ETH Zurich address these challenges with Deformable Mamba, a decoder-centric approach that decouples feature extraction from geometric adaptation.

Methods

The authors propose the Deformable Mamba Decoder, a modular component that can be attached to any standard backbone (CNN, Transformer, or Mamba). The core of this system is the Deformable Mamba Fusion (DMF) Block.

Architecture of the Deformable Mamba model and the detailed structure of the Deformable Mamba Fusion (DMF) block.

As illustrated in the architecture diagram, the DMF block utilizes a dual-branch strategy to process features:

  • The DCN Branch: Employs Deformable Convolutions (DCNv2) to adaptively sample pixels based on local distortion, allowing the kernel to "stretch" with the image content.
  • The 2D Scan Branch: Uses Mamba’s 2D selective scan (SS2D) to capture long-range global context across the entire image with linear complexity.

By placing distortion-awareness exclusively in the decoder, the encoder can focus on general feature extraction, making the system highly flexible and compatible with pre-trained general-purpose backbones.

Results and Performance

DMamba was evaluated across five diverse wide-FoV benchmarks, including real-world automotive fisheye data (WoodScape) and indoor/outdoor panoramas (Stanford2D3D, Matterport3D, SynPASS).

Performance comparison across camera models (top) and efficiency analysis against standard decoder heads (bottom).

The results demonstrate that DMamba consistently outperforms or matches specialized models across different modalities. On the Stanford2D3D benchmark, DMamba achieved a +2.5% mIoU improvement over the previous state-of-the-art VMamba model.

Beyond accuracy, the efficiency gains are substantial. Compared to the widely used UperHead decoder, DMamba reduced parameters by 72% and FLOPs by a staggering 97% (as noted in the study's benchmarks). This efficiency-to-accuracy trade-off makes it a highly practical solution for real-time applications.

Key Insights and Future Work

  • Decoder-Only Adaptation: A primary finding is that a lightweight, distortion-aware decoder can effectively compensate for geometric warping, negating the need for complex, sensor-specific encoders.
  • Mamba + DCN Synergy: The combination of Mamba for global context and DCN for local geometric adaptation provides a balanced approach to handling wide-FoV data.
  • PixelShuffle Superiority: The researchers found that PixelShuffle preserved significantly more detail in distorted regions compared to standard bilinear interpolation.

While the decoder-only approach is highly flexible, the authors acknowledge a potential theoretical ceiling compared to fully distortion-aware end-to-end models. Future work may explore integrating Multimodal Large Language Models (LLMs) to combine geometric vision with high-level semantic understanding.

Code availability: https://github.com/JieHu1996/DeformableMamba

Summary updated

Abstract

Recent advancements in the Mamba architecture, with its linear computational complexity, being a promising alternative to transformer architectures suffering from quadratic complexity. While existing works primarily focus on adapting Mamba as vision encoders, the critical role of task-specific Mamba decoders remains under-explored, particularly for distortion-prone dense prediction tasks. This paper addresses two interconnected challenges: (1) The design of a Mamba-based decoder that seamlessly adapts to various architectures (e.g., CNN-, Transformer-, and Mamba-based backbones), and (2) The performance degradation in decoders lacking distortion-aware capability when processing wide-FoV images (e.g., 180° fisheye and 360° panoramic settings). We propose the Deformable Mamba Decoder, an efficient distortion-aware decoder that integrates Mamba's computational efficiency with adaptive distortion awareness. Comprehensive experiments on five wide-FoV segmentation benchmarks validate its effectiveness. Notably, our decoder achieves a +2.5% performance improvement on the 360° Stanford2D3D segmentation benchmark while reducing 72% parameters and 97% FLOPs, as compared to the widely-used decoder heads.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
SynPASSDMamba-TmIoU42.78360° SynPASS segmentation; synthetic outdoor dataset.
Source quote
L310: DMamba-T(Ours) │ 42.78 │ 84.24 │ 22.57 │ 00.25 │ 49.20 │ 33.25 │ 76.85 │ 98.56 │ 62.05 │ 68.79 │ 82.91 │ 02.11 │ 32.35 │ 98.52 │ 02.42 │ 01.73 │ 30.68 │ 50.46 │ 37.40 │ 32.04 │ 05.85 │ 21.59 │ 46.32
SynPASS360SFUDA-B3† (re-implementation)mIoU41.33360° SynPASS segmentation; synthetic outdoor dataset. † denotes re-implementation.
Source quote
L306: 360SFUDA-B3^\dag~\cite{zheng2024semantics} {\fontsize{8pt}{10pt}\selectfont (CVPR24)} │ 41.33 │ 82.91 │ 32.33 │ 00.23 │ 41.87 │ 27.21 │ 75.13 │ 97.37 │ 62.90 │ 69.34 │ 82.95 │ 01.66 │ 26.03 │ 97.56 │ 00.95 │ 00.10 │ 41.39 │ 64.02 │ 32.30 │ 26.74 │ 03.48 │ 16.76 │ 48.14
WoodScapeDMamba-TmIoU83.90Semantic Segmentation
Source quote
L348: DMamba-T (Ours) │ \ding{55} │ \ding{51} │ 83.90
WoodScape360SFUDA-B3† (re-implementation)mIoU82.43Semantic Segmentation
Source quote
L345: 360SFUDA-B3^\dag~\cite{zheng2024semantics} {\fontsize{8pt}{10pt}\selectfont (CVPR24)} │ \ding{55} │ \ding{51} │ 82.43
SynWoodScapeDMamba-MmIoU69.20180° SynWoodScape segmentation; synthetic data.
Source quote
L371: DMamba-M (Ours) │ 69.20
SynWoodScape360SFUDA-B3† (re-implementation)mIoU67.47180° SynWoodScape segmentation; synthetic data. † denotes re-implementation.
Source quote
L369: 360SFUDA-B3^\dag~\cite{zheng2024semantics} {\fontsize{8pt}{10pt}\selectfont (CVPR24)} │ 67.47
BibTeX
@misc{hu2024deformable,
  author = {Jie Hu and Junwei Zheng and Jiale Wei and Jiaming Zhang and Rainer Stiefelhagen},
  title = {{Deformable Mamba for Wide Field of View Segmentation}},
  year = {2024},
  eprint = {2411.16481},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.16481},
}
Figure