The transition from 2D images to 3D volumes—whether in medical imaging, video generation, or point cloud processing—introduces a massive computational hurdle. While Transformers have become the standard for modeling long-range dependencies, their self-attention mechanism scales quadratically ($O(N^2)$) with the number of tokens. In a 3D volume, where the number of voxels grows cubically with resolution, this bottleneck becomes prohibitive.
Recent research has converged on a solution: adapting State Space Models (SSMs), specifically the Mamba architecture, to 3D data. Unlike Transformers, SSMs scale linearly ($O(N)$), but they are inherently 1D sequential processors. The core innovation across this field is the development of multi-directional scanning strategies that serialize 3D structures into sequences without losing the underlying spatial context.
The Serialization Problem
As noted by Luoyao Kang and colleagues in nnMamba, standard 1D sequence processing does not inherently capture the complex spatial and channel-wise relationships found in volumetric data. If you simply flatten a 3D cube into a single long string, voxels that are physically adjacent in 3D space might end up thousands of tokens apart in the 1D sequence. Because SSMs process information "causally" (from one end of the sequence to the other), a single 1D pass cannot easily relate a voxel to its neighbors in all three dimensions simultaneously.
Multi-Axis and Omni-Directional Scanning
To bridge this gap, researchers have moved away from single-pass serialization. Instead, they employ multiple scanning paths that traverse the data along different physical axes.
For example, Rui Zhang and the team behind RFMamba introduced "omni-dimensional scanning" for radio frequency data. By processing sequences along time, distance, and spatial channels in both forward and backward directions, the model ensures that global context is captured across the entire data tensor. Similarly, Abdelrahman Elsayed in MMRINet partitions feature channels to scan 3D volumes across height, width, and depth axes independently.
The intuition is that while any single 1D scan is "blind" to some spatial relationships, the ensemble of scans—covering X, Y, and Z axes in both directions—allows the model's hidden state to accumulate a comprehensive "global receptive field." Jiaheng Zhou demonstrates this in E-ViM³ by performing scanning in six directions across three axes of a video cube, capturing spatio-temporal correlations that 1D flattening would otherwise destroy.
Anatomy and Geometry-Aware Patterns
Beyond simple grid-based axes, some researchers tailor the scanning pattern to the specific structure of the data:
- Clinical Planes: In medical imaging, Jun Zeng and the authors of SRMA-Mamba argue that scanning along anatomical planes—axial, coronal, and sagittal—is more effective than generic flattening. This preserves the structural relationships that human radiologists use for diagnosis.
- Space-Filling Curves: For sparse data like point clouds, Kai Hsiang Hsieh in MEGA-PCC utilizes Morton scanning (a Z-order curve) to serialize voxels. This ensures that points close in 3D space remain relatively close in the 1D sequence, which is then processed through forward, backward, and channel-flip directions.
- Varying Dilation: Li Liang and Li Liang 0006 suggest in Skip Mamba Diffusion that integrating varying dilation rates across these scanning directions allows the model to capture both fine-grained local geometric details and broad global scene layouts simultaneously.
Why It Works: The Hidden State as Spatial Memory
The reason these multi-directional scans are so effective lies in the nature of the SSM hidden state. In a Transformer, every token looks at every other token, which is why it costs $O(N^2)$. In a Mamba-based SSM, the model maintains a compressed "memory" (the hidden state) that it updates as it moves through the sequence.
By scanning from multiple directions, we essentially allow the model to "see" the volume from different perspectives. A forward scan along the X-axis builds a memory of everything to the "left" of a voxel; a reverse scan builds a memory of everything to the "right." When these hidden states are fused—as seen in the tri-directional modeling of Z. Y. Ren (FF-LSSM)—the model gains a holistic understanding of the 3D space.
This approach achieves the "best of both worlds": the global context of a Transformer with the linear efficiency of a recurrent model. As Hongjie Wang demonstrates in LinGen, this efficiency is what finally enables the generation of high-resolution, minute-long videos on a single GPU—a feat previously blocked by the quadratic bottleneck of self-attention.