DefMamba: Deformable Visual State Space Model
Leiye Liu, Miao Zhang, Jihao Yin, Tingwei Liu, Wei Ji, Yongri Piao, Huchuan Lu
TL;DR
DefMamba introduces a deformable scanning strategy and a deformable state-space model to enable structure-aware feature extraction in vision SSM backbones. By learning deformable reference points and a content-adaptive token order, it preserves spatial information and prioritizes informative regions, improving efficiency and accuracy across ImageNet classification, COCO detection/segmentation, and ADE20K segmentation. Extensive experiments and ablations demonstrate that DefMamba outperforms prior SSM-based methods and remains competitive with CNN and Transformer baselines while reducing computational burden in several settings. This work advances visual foundation models by integrating deformable mechanisms with state-space dynamics to align feature processing with object structure and detail changes in diverse visual tasks.
Abstract
Recently, state space models (SSM), particularly Mamba, have attracted significant attention from scholars due to their ability to effectively balance computational efficiency and performance. However, most existing visual Mamba methods flatten images into 1D sequences using predefined scan orders, which results the model being less capable of utilizing the spatial structural information of the image during the feature extraction process. To address this issue, we proposed a novel visual foundation model called DefMamba. This model includes a multi-scale backbone structure and deformable mamba (DM) blocks, which dynamically adjust the scanning path to prioritize important information, thus enhancing the capture and processing of relevant input features. By combining a deformable scanning(DS) strategy, this model significantly improves its ability to learn image structures and detects changes in object details. Numerous experiments have shown that DefMamba achieves state-of-the-art performance in various visual tasks, including image classification, object detection, instance segmentation, and semantic segmentation. The code is open source on DefMamba.
