NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

OCTOPUS: Enhancing the Spatial-Awareness of Vision SSMs with Multi-Dimensional Scans and Traversal Selection

Kunal Mahatha, Ali Bahri, Pierre Marza, Sahar Dastani, Maria Vakalopoulou, Stergios Christodoulidis, Jose Dolz, Christian DesrosiersarXiv 2026

TL;DR

Octopus is a novel architecture that fixes the spatial awareness issues of Vision State Space Models (VSSMs) by introducing discrete, independent scans across eight principal directions. By combining this multi-directional scanning with a normalized transition kernel and a dynamic traversal selection mechanism, Octopus captures precise 2D spatial context with linear complexity. This design yields massive performance leaps in dense prediction tasks, outperforming previous VSSM baselines by up to 15% mIoU in semantic segmentation.

What Problem Does This Paper Address?

State Space Models (SSMs), like Mamba, have gained immense popularity as a linear-complexity alternative to the quadratic complexity of Transformers. However, adapting them to computer vision has proven tricky. SSMs are inherently causal and sequential, designed for 1D text streams.

To process a 2D image, standard Vision SSMs (like VMamba) flatten the image into a 1D sequence using continuous raster scans. As shown in Figure 1, this continuous flattening creates a severe "spatial discrepancy." It inadvertently links pixels that are spatially far apart (like the end of one row and the start of the next) while failing to connect pixels that are physically adjacent but sit diagonally from one another. Naively adding more continuous scan directions doesn't solve this; it simply creates longer 1D paths, leading to numerical instability ("diagonal blow-up") and degraded performance.

Comparing directional scanning in VMamba and Octopus

Methods

The authors introduce Octopus, an architecture built around three core innovations designed to restore true 2D spatial relationships:

  1. O-Scan (Discrete Multi-line Scans): Instead of a single continuous snake-like scan, Octopus breaks the image into independent, discrete scan-lines along eight canonical directions (horizontal, vertical, and both diagonals, forward and backward). Crucially, the model resets its hidden state at the end of each line, ensuring that information only propagates between truly adjacent neighbors.
  2. Structured Normalization: To prevent the mathematical instability that occurs when aggregating eight different directional matrices, Octopus scales the transition matrix ($A_k = A/8$). This keeps the system stable and ensures that no single direction dominates the feature propagation.
  3. O-Merge & Traversal Selection (O-Attention): Once the scans are complete, Octopus doesn't just average them out. It uses a lightweight, data-dependent selection module inspired by squeeze-and-excitation networks. This "O-Attention" mechanism learns patch-wise directional relevance, dynamically weighting the paths that matter most for local geometry (e.g., favoring diagonal scans along an object's edge).
Overview of the Octopus pipeline showing O-Scan and Traversal Selection

Datasets

The architecture was evaluated on two standard computer vision benchmarks:

  • miniImageNet: Used to benchmark image classification performance (50,000 training images, 10,000 validation images across 100 categories).
  • ADE20K: Used to evaluate dense semantic segmentation performance (20,000 training, 2,000 validation, and 3,000 test images across 150 fine-grained categories).

Key Insights and Ideas

  • Discontinuity is a Virtue: The breakthrough insight here is that continuity in 1D scanning is actually harmful for 2D images. By explicitly introducing boundaries (resets) between scan lines, Octopus forces the SSM to respect spatial geometry.
  • Isotropic Receptive Fields: Standard VSSMs suffer from directional bias due to their raster-scan nature. As visualized through Effective Receptive Fields (ERFs), Octopus develops a highly symmetric, star-like ERF pattern along its eight canonical directions, demonstrating balanced, isotropic spatial reasoning.
  • Dynamic Routing Beats Uniform Fusion: Not all directions are equally useful everywhere in an image. The inclusion of the Traversal Selection Mechanism allows the network to dynamically adapt its scanning focus based on the visual content of each specific patch.

Key Results

Octopus demonstrates substantial improvements over existing VSSM and Transformer baselines, particularly in dense prediction tasks where spatial awareness is critical.

  • Semantic Segmentation (ADE20K): Octopus-T achieved a single-scale mIoU of 37.93, representing a massive +15.16% absolute improvement over VMamba-T and outperforming the stronger SpectralVMamba-B by +11.41%. Qualitative results show significantly sharper object boundaries and fewer fragmented predictions.
  • Image Classification (miniImageNet): Octopus-T reached a Top-1 accuracy of 86.60% (+0.78% over VMamba-T), while Octopus-S reached 86.89% (+0.41% over VMamba-S), proving that the spatial enhancements do not come at the cost of global classification accuracy.
Qualitative comparison of segmentation results between VMamba and Octopus

Limitations and Future Work

While Octopus maintains the linear-time complexity inherent to SSMs, the paper's quantitative tables reveal a slight computational overhead: Octopus-T requires 6.1G FLOPs compared to VMamba-T's 4.9G FLOPs. The authors suggest that future work could explore even richer geometric traversal designs or investigate hybrid SSM-attention models to further optimize the balance between computational efficiency and spatial awareness.

Summary updated

BibTeX
@misc{mahatha2026octopus,
  author = {Kunal Mahatha and Ali Bahri and Pierre Marza and Sahar Dastani and Maria Vakalopoulou and Stergios Christodoulidis and Jose Dolz and Christian Desrosiers},
  title = {{OCTOPUS: Enhancing the Spatial-Awareness of Vision SSMs with Multi-Dimensional Scans and Traversal Selection}},
  year = {2026},
  eprint = {2602.00904},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.00904},
}
Figure