TL;DR
OCShell-Mamba reimagines how vision State Space Models (SSMs) process images by replacing standard grid-based scanning with an object-centric "shell" propagation strategy. By grouping pixels into concentric shells that expand from an object's center to its boundary, the model preserves structural coherence and achieves state-of-the-art performance across classification, detection, and segmentation tasks.
What Problem Does This Paper Address?
State Space Models (SSMs), particularly the Mamba architecture, have recently emerged as efficient alternatives to Transformers due to their linear-time complexity. However, SSMs are fundamentally 1D sequence models. To process a 2D image, the feature map must be "serialized" or flattened into a 1D line.
The authors argue that this serialization is not representation-invariant: the scan order determines which pixels become neighbors in the sequence, which in turn dictates how information accumulates in the model's recurrent state. Traditional scan paths (like row-by-row raster scans) often "break" objects, interleaving object pixels with background noise. Even recent adaptive scanning methods remain token-centric and fail to explicitly model the coherence of entire objects. This forces the model to repeatedly "re-learn" object-level evidence that was fragmented during the scan.
Methods
The paper introduces two primary innovations to solve the fragmentation problem:
- Shell-wise Object-Centric rOuting (SOCO): Instead of a global scan, SOCO identifies "object-like" regions using a lightweight, internal objectness field (learned without explicit labels). For each candidate object, it calculates a center and partitions the region into concentric shells. The scan then proceeds like "peeling an onion" from the inside out. This ensures that tokens belonging to the same object are processed contiguously, better aligning the sequence with the image's actual geometry.
- Persistent Topology Memory (PoMe): Hierarchical vision models typically downsample features as they go deeper, which can weaken object-level evidence. PoMe is a fixed-size memory bank that runs parallel to the main spatial stream. It maintains object-level representations across all stages, allowing deeper layers to "read" and "write" to a stable memory of the objects identified earlier in the network.
Datasets
The authors evaluated OCShell-Mamba on three industry-standard benchmarks:
- ImageNet-1K: For large-scale image classification.
- ADE20K: For semantic segmentation (pixel-level labeling).
- COCO 2017: For object detection and instance segmentation.
- mini-ImageNet: Used specifically for ablation studies to tune hyperparameters.
Key Insights and Ideas
- Scan Design as a Structural Prior: The paper shifts the perspective of scan design from a simple "data-layout choice" to a core component of visual state propagation. The order in which a model "sees" pixels is a powerful inductive bias.
- Emergent Objectness: Remarkably, the model learns to identify and group object-like regions (the objectness field) using only task-level supervision (e.g., "is this a dog?"). It doesn't require pre-existing masks or bounding boxes to decide how to route information.
- Contiguity Matters: By ensuring object tokens are contiguous in the 1D sequence, the recurrent state of the SSM can accumulate evidence more effectively, leading to sharper representations for dense prediction tasks like segmentation.
Key Results
OCShell-Mamba consistently outperformed the strong DAMamba baseline across all tasks:
- Classification: Achieved 83.9% top-1 accuracy on ImageNet-1K.
- Semantic Segmentation: Reached 50.8% mIoU on ADE20K, a +0.5 point improvement over the baseline.
- Object Detection/Segmentation: On COCO, it achieved 49.1% box AP and 43.7% mask AP, showing significant gains in localization and mask quality.
Qualitatively, visualizations show that the model successfully identifies even low-contrast objects (like a faint jellyfish) and routes them as independent units, preserving their structural integrity throughout the network.
Limitations and Future Work
The authors acknowledge several areas for improvement:
- Crowded Scenes: In very dense images, the thresholded objectness field might accidentally merge nearby objects into a single candidate.
- Geometric Constraints: The use of Euclidean distance for concentric shells might not perfectly align with highly irregular or elongated object boundaries.
- Computational Overhead: While accurate, the model is more computationally expensive than "efficiency-first" SSMs. The authors suggest that future work should focus on reducing the overhead of shell routing and memory communication to make the approach more applicable to mobile or real-time systems.
Summary updated