TL;DR
Vision models based on State Space Models (like Mamba) process images by reading pixels in a 1D sequence, which makes how they scan an image just as important as what they look at. Foveal-Mamba teaches these models to look at images from the inside out—spiraling from the center to the periphery—while using past context along that path to dynamically steer where it samples next. The result is a faster, leaner visual backbone that doesn't lose the plot in cluttered or multi-object scenes.
What Problem Does This Paper Address?
Transformers are great at computer vision, but their self-attention mechanism scales quadratically with image size. Enter State Space Models (SSMs), notably Mamba, which process sequences in linear time by maintaining a running memory (a recurrent hidden state).
There’s a catch: images are 2D grids, not 1D sequences. Early visual Mamba models simply flattened images into fixed, rigid paths (like reading a book top-to-bottom), which breaks up spatial neighborhoods. To fix this, deformable Mamba models (like DAMamba) borrowed an idea from Deformable Convolutional Networks: they use a lightweight Offset Prediction Network (OPN) to shift sampling points toward interesting features before running the SSM.
However, existing OPNs suffer from tunnel vision. They predict each point's shift using only local, neighboring pixels, completely blind to the sequential path the SSM will actually take. In complex scenes with off-center or multiple competing objects, these independent local guesses scatter instead of forming a coherent trajectory. Foveal-Mamba asks: what if deciding where to look next depended on what you’ve already seen along your scan path?
Methods
Foveal-Mamba tightly couples spatial sampling with sequential state evolution using three main components:
- Inside-Out Ring Scan (Novel): Instead of standard raster scanning, the image grid is ordered deterministically from the geometric center outward in concentric rings (using $L_\infty$ distance), moving clockwise within each ring. Because these indices depend only on resolution, they are precomputed as fast lookup tables.
- Recurrent Scan-Path Offset Prediction Network / RS-OPN (Novel): Rather than predicting sampling offsets with a standard local convolution, RS-OPN extracts local features, orders them along the inside-out ring path, and passes them through an embedded, lightweight Mamba module. Offsets are predicted from the accumulated hidden states, turning independent point-wise regression into coherent trajectory prediction. These offsets then shift sampling grids via standard bilinear interpolation (DCNv3-style).
- Shared Ring-Ordered SSM Mixer & Path Regularization (Novel): After sampling the deformed features, the main visual Mamba backbone processes the tokens along the exact same inside-out ring path, aligning how features are sampled with how they are aggregated. During training, optional regularization losses penalize abrupt jumps ($\ell_1$ smoothness and curvature) and overly large drifts ($\ell_2$ magnitude) along the scan trajectory.
Datasets
The authors rely on four standard, established computer vision benchmarks (no new datasets are introduced):
- ImageNet-1K: Used for 300-epoch from-scratch pretraining and image classification (1.28M training, 50K validation images).
- mini-ImageNet: Used for component-wise ablation studies.
- ADE20K: Used to test dense semantic segmentation transferability with UPerNet.
- MS COCO (2017): Used to evaluate object detection and instance segmentation with Mask R-CNN (118K training, 5K validation images).
Key Insights and Ideas
- Center-first scanning doesn't trap you in the center: You might worry that an inside-out scan assumes objects are always centered. In practice, starting in the middle simply gives the recurrent state a stable geometric anchor to build initial context; RS-OPN then dynamically pulls peripheral sampling trajectories toward off-center or multiple objects as needed.
- Where you sample and how you read must match: Ablation studies show that adding ring ordering or RS-OPN individually gives modest bumps, but aligning both the offset predictor and the main SSM feature mixer along the same ring path unlocks compounding accuracy gains.
- Training-only trajectory smoothing pays off: Penalizing jagged offset jumps during training boosts accuracy by encouraging coherent object-following paths, with zero computational cost at inference time.
Key Results
Across all tasks, Foveal-Mamba beats CNNs, Vision Transformers, and 16 Vision Mamba variants—including its closest deformable cousin, DAMamba—while using slightly fewer parameters and FLOPs:
- ImageNet-1K Classification: Foveal-Mamba-Tiny hits 84.3% Top-1 accuracy (+0.5% over DAMamba-Tiny, +1.7% over VMamba) at 25M parameters and 4.6G FLOPs. The Small variant reaches 85.2% (+0.4% over DAMamba-Small).
- ADE20K Semantic Segmentation: Tiny and Small variants achieve 50.8 and 51.8 mIoU (single-scale), outperforming DAMamba by +0.5 and +0.6 mIoU, respectively.
- COCO Detection & Segmentation: Under the $1\times$ schedule, Tiny/Small models reach 48.9 / 50.2 box AP and 43.7 / 44.9 mask AP, showing particularly strong gains on strict localization metrics ($AP^b_{75}$).
Limitations and Future Work
- Fixed geometric prior: The inside-out ring order is still hardcoded to the image grid layout, which could be suboptimal for scenes packed with tiny, scattered objects.
- Throughput trade-off: Although Foveal-Mamba has fewer FLOPs than DAMamba, the extra sequence indexing and the recurrent SSM inside RS-OPN slightly reduce raw GPU throughput (e.g., 872 vs. 1018 images/sec for Tiny on an A100).
- Static hyperparameters: Path regularization weights are fixed manually and may not be optimal across every scale or dataset.
Future Work: The authors plan to explore content-conditioned, multi-center scan paths that adapt their starting anchors to the scene layout, alongside faster recurrent offset predictors and self-adapting regularization weights.
Summary updated