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 Desrosiers
TL;DR
OCTOPUS introduces an eight-direction discrete scanning framework for Vision State-Space Models (VSSMs) to restore isotropic spatial propagation in 2D images while preserving linear complexity. By partitioning the image into independent scan-lines per direction (O-Scan), normalizing directional transitions (Normalized Transition Kernel), and fusing directional evidence with a Traversal Selection mechanism (O-Attention) and O-Merge, the method achieves improved segmentation accuracy and robust boundary delineation with competitive classification performance. Empirical results on ADE20K and miniImageNet demonstrate significant gains in dense prediction tasks and strong, consistent performance in classification, underscoring the value of geometry-aligned, multi-directional recurrence for scalable vision models.
Abstract
State space models (SSMs) have recently emerged as an alternative to transformers due to their unique ability of modeling global relationships in text with linear complexity. However, their success in vision tasks has been limited due to their causal formulation, which is suitable for sequential text but detrimental in the spatial domain where causality breaks the inherent spatial relationships among pixels or patches. As a result, standard SSMs fail to capture local spatial coherence, often linking non-adjacent patches while ignoring neighboring ones that are visually correlated. To address these limitations, we introduce OCTOPUS , a novel architecture that preserves both global context and local spatial structure within images, while maintaining the linear complexity of SSMs. OCTOPUS performs discrete reoccurrence along eight principal orientations, going forward or backward in the horizontal, vertical, and diagonal directions, allowing effective information exchange across all spatially connected regions while maintaining independence among unrelated patches. This design enables multi-directional recurrence, capturing both global context and local spatial structure with SSM-level efficiency. In our classification and segmentation benchmarks, OCTOPUS demonstrates notable improvements in boundary preservation and region consistency, as evident from the segmentation results, while maintaining relatively better classification accuracy compared to existing V-SSM based models. These results suggest that OCTOPUS appears as a foundation method for multi-directional recurrence as a scalable and effective mechanism for building spatially aware and computationally efficient vision architectures.
