[Paper Review] Scalable Visual State Space Model with Fractal Scanning
Proposes FractalMamba, a fractal-scanning based visual state-space model, to serialize image patches and scale SSMs efficiently for classification, detection, and segmentation with improved performance over linear-scanning counterparts.
Foundational models have significantly advanced in natural language processing (NLP) and computer vision (CV), with the Transformer architecture becoming a standard backbone. However, the Transformer's quadratic complexity poses challenges for handling longer sequences and higher resolution images. To address this challenge, State Space Models (SSMs) like Mamba have emerged as efficient alternatives, initially matching Transformer performance in NLP tasks and later surpassing Vision Transformers (ViTs) in various CV tasks. To improve the performance of SSMs, one crucial aspect is effective serialization of image patches. Existing methods, relying on linear scanning curves, often fail to capture complex spatial relationships and produce repetitive patterns, leading to biases. To address these limitations, we propose using fractal scanning curves for patch serialization. Fractal curves maintain high spatial proximity and adapt to different image resolutions, avoiding redundancy and enhancing SSMs' ability to model complex patterns accurately. We validate our method in image classification, detection, and segmentation tasks, and the superior performance validates its effectiveness.
Motivation & Objective
- Motivate and address the inefficiency of Transformer and ViT backbones for long sequences and high-resolution images by leveraging state-space models (SSMs).
- Improve patch serialization in SSM-based vision backbones through fractal scanning to preserve spatial relationships across scales.
- Mitigate limitations of fractal scanning (local adjacency/continuity) with a simple shift operation to enhance locality.
- Demonstrate the effectiveness of FractalMamba on image classification, object detection, and semantic segmentation.
- Show scalability of FractalMamba to high-resolution inputs while maintaining or improving performance.
Proposed method
- Adopts a Selective SSM as the core operator, enabling time-variant input-responsive B, C, and Delta parameters.
- Introduces fractal (Hilbert) scanning curves for 2D-to-1D serialization to preserve spatial locality and adapt to varying image resolutions.
- Implements a shift operation on fractal curves to improve local adjacency and continuity during serialization.
- Uses a global convolution kernel derived from discretized SSM (via zero-order hold) for sequence modeling of serialized patches.
- Evaluates FractalMamba across ImageNet-1K, COCO (object detection/segmentation), and ADE20K (semantic segmentation).
- Compared against CNN-, ViT-, and other SSM-based backbones (e.g., VMamba, LocalMamba, PlainMamba).
Experimental results
Research questions
- RQ1Can fractal scanning curves better preserve spatial relationships in serialized 1D sequences for SSM-based vision backbones compared to standard linear scans?
- RQ2Does the shift operation improve local adjacency and continuity in fractal serialization, leading to better downstream performance?
- RQ3How does FractalMamba perform on image classification, object detection, and semantic segmentation relative to CNN-, ViT-, and other SSM-based models, especially at higher input resolutions?
- RQ4Is FractalMamba scalable to large input resolutions with linear-like increases in FLOPs and maintained accuracy?
- RQ5What is the impact of fractal scanning on robustness across resolutions and tasks?
Key findings
- FractalMamba-T achieves 82.7% top-1 on ImageNet-1K at 224^2 with 31M params and 4.9G FLOPs, outperforming several baselines at similar FLOPs.
- Introducing a shifting operation to fractal curves improves classification accuracy across resolutions (e.g., 224: 82.9, 384: 82.7, 512: 81.6, 640: 80.5).
- On COCO, FractalMamba-T with 12-epoch fine-tuning yields APb 47.8 and APm 42.9, outperforming Swin-T, ConvNeXt-T, and VMamba-T in several metrics.
- FractalMamba-T achieves semantic segmentation mIoU of 48.9 (512 crop, single scale) and 49.8 with multi-scale testing on ADE20K, surpassing ResNet-50, DeiT-S+/MLN, Swin-T, and ConvNeXt-T.
- FractalMamba demonstrates strong scalability, maintaining competitive or superior accuracy as input resolution increases to 1024^2 while FLOPs grow linearly, unlike some ViT/Swin baselines.
- Ablation shows that fractal shifting consistently improves representation fidelity and performance across tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.