Deep learning has witnessed a massive convergence toward sequence-based architectures. Models like Transformers and State Space Models (SSMs) excel at processing one-dimensional arrays of tokens, leveraging linear or near-linear scaling to handle massive contexts. However, the physical world and medical modalities are inherently multi-dimensional, consisting of 3D point clouds, voxel grids, and volumetric CT or MRI scans.
To process this high-dimensional spatial data using sequence models, the data must first be serialized—flattened into a 1D sequence. A naive serialization strategy introduces a devastating phenomenon known as spatial tearing or serialization-induced information loss. When multi-dimensional data is flattened linearly, local spatial neighborhoods are broken; elements that sit immediately adjacent to one another in 3D space frequently end up separated by thousands of tokens in the 1D sequence.
Naive Raster Scan:
(0,0,0) -> (1,0,0) -> ... -> (N,0,0) -> (0,1,0)
Spatial neighbors along the Y or Z axes are separated by N or N^2 steps!
As noted by Raghavendra Selvan et al. in Patch-based Medical Image Segmentation using Matrix Product State Tensor Networks, this structural degradation strips away local spatial correlations, making it exceptionally difficult for sequential architectures to capture the geometric relationships necessary for precise downstream tasks. To bridge this gap, a major research direction focuses on topology-preserving serialization: designing mappings that ensure points close in multi-dimensional space remain close in a 1D sequence.
The Cost of Spatial Tearing in Modern Backbones
Why does spatial tearing degrade model performance so severely? The answer lies in how modern sequence backbones process context.
For Transformers, self-attention theoretically allows any token to communicate with any other token regardless of distance. However, global self-attention incurs a quadratic computational cost. To process large 3D volumes efficiently, models must employ localized attention windows. If spatial locality is lost during serialization, these local windows end up processing tokens that are spatially unrelated, while failing to see true physical neighbors. Mingyue Cui et al. highlight this in OctFormer: Efficient Octree-Based Transformer for Point Cloud Compression with Local Enhancement, demonstrating that standard attention mechanisms lose translation invariance and local spatial awareness without specialized spatial encodings. Similarly, Qikui Zhu et al. show in Class-consistent Contrastive Learning Driven Cross-dimensional Transformer for 3D Medical Image Classification that flattening volumetric data prevents the model from accurately interpreting complex anatomical geometry.
For State Space Models (SSMs) like Mamba, which process tokens sequentially via a continuous hidden state, ordering is even more critical. Mamba relies on its sequence order to build a coherent causal context. When adjacent 3D voxels are scattered across a sequence, the model's recurrent state is forced to store long-range dependencies unnecessarily, exhausting its memory capacity. As Dingkang Liang et al. point out in PointMamba: A Simple State Space Model for Point Cloud Analysis, if the serialization process fails to preserve spatial locality, the model fails to recognize basic geometric patterns. This challenge is echoed across applications ranging from point cloud completion (Jingjing Lu et al. in Self-Supervised Point Cloud Completion based on Multi-View Augmentations of Single Partial Point Cloud) to 3D object detection (Guowen Zhang et al. in Voxel Mamba: Group-Free State Space Models for Point Cloud based 3D Object Detection).
Preserving Locality via Space-Filling Curves
The first line of defense against spatial tearing is the use of mathematical space-filling curves, which are designed to traverse a multi-dimensional grid while minimizing spatial jumps.
Fractal Hilbert Curves
A Hilbert curve is a continuous fractal space-filling curve. Its core advantage is that it snakes through a 2D or 3D space pseudo-locally, ensuring that the mapping from $N$ dimensions to 1 dimension minimizes the maximum distance between spatial neighbors.
Wanli Chen et al. exploit this property in Efficient Point Cloud Analysis Using Hilbert Curve, using the curve to flatten 3D voxels into 2D structures without creating artificial boundaries. In medical imaging, Chengliang Liu et al. apply 3D Hilbert curves in Hierarchical Information Aggregation for Incomplete Multimodal Alzheimer's Disease Diagnosis to prevent spatial tearing, allowing sequence learners to capture subtle anatomical textures critical for diagnosis. To adapt this to autonomous driving scenes where the vertical axis behaves differently than the horizontal plane, Heng Li et al. introduce a height-prioritized 2D Hilbert expansion in OccMamba: Semantic Occupancy Prediction with State Space Models, demonstrating how domain-specific priors can refine fractal serialization.
Hierarchical Tree Sorting
Another approach leverages space-partitioning trees, such as octrees or kd-trees. By recursively subdividing 3D space into hierarchical blocks, a depth-first traversal of the tree naturally groups sub-regions together in the final 1D sequence.
Matheus Gadelha et al. demonstrate the utility of this approach in Multiresolution Tree Networks for 3D Point Cloud Processing, using spatially-sorted 1D lists derived from trees to recover original 3D neighborhoods. For generative tasks, Si-Tong Wei et al. show in OctGPT: Octree-based Multiscale Autoregressive Models for 3D Shape Generation that structuring 3D shapes as serialized, multiscale octrees allows autoregressive language models to learn local geometric patterns effectively, bypassing the lack of a natural sequential order in 3D space.
Dynamic and Multi-Directional Serialization
While fixed curves like the Hilbert curve significantly reduce spatial tearing, no single 1D path can perfectly preserve all 3D neighborhoods; a continuous line traversing a cube must inevitably make a jump that separates some adjacent points. To overcome this fundamental mathematical limitation, researchers have turned to multi-directional scanning and learnable sorting mechanisms.
Instead of forcing the model to learn from a single static sequence, architectures can scan the 3D space from multiple directions or shuffle the sequence order to ensure that every spatial relationship is captured in at least one pass. Kanglin Qu et al. introduce a "shuffle" serialization strategy in HydraMamba: Multi-Head State Space Model for Global Point Cloud Learning to prevent the model from becoming overly sensitive to a specific sequence order. Similarly, Wenxi He et al. utilize a specialized "P-Shift" serialization strategy in RWKV-PCSSC: Exploring RWKV Model for Point Cloud Semantic Scene Completion to better preserve spatial topology for linear attention mechanisms.
Taking this concept further, serialization can be treated as a data-dependent, learnable operation. Rather than relying on geometric heuristics, the model itself determines the optimal token order based on the input features. Zheyu Zhang et al. propose this in Incomplete Multi-modal Brain Tumor Segmentation via Learnable Sorting State Space Model, where a learnable sorting mechanism dynamically reorders 3D data into sequences that optimize both spatial and semantic relationships, proving highly robust when certain imaging modalities are missing.
Static Curve: [Fixed Geometric Path] -> Rigid 1D Sequence
Learnable Sort: [3D Features] -> [Sorting Network] -> Dynamically Optimized 1D Sequence
Hybrid Architectures and Compressive Tokenization
A final complementary strategy involves absorbing the impact of serialization loss by using hybrid architectures or grouping data into localized tokens before flattening occurs.
Local-Global Fusion
By placing a local structural operator (such as a Convolutional Neural Network or a Graph Neural Network) before or alongside the sequence model, the network can capture immediate neighborhoods in their native high-dimensional format. The sequence model is then responsible only for long-range global context.
Sheng Wu et al. implement this hybrid approach in EventMG: Efficient Multilevel Mamba-Graph Learning for Spatiotemporal Event Representation, combining Mamba with Graph Neural Networks to retain spatiotemporal topological context. For LiDAR-based object detection, Haisheng Su et al. develop UniMamba: Unified Spatial-Channel Representation Learning with Group-Efficient Mamba for LiDAR-based 3D Object Detection, marrying 3D convolutions with Mamba to preserve local geometric context while maintaining linear processing efficiency.
Compressive Tokenization
Instead of serializing individual points or voxels, data can be grouped into patches or compressed tokens. This bakes the local topology directly into the token embedding itself and drastically shortens the sequence length, reducing the likelihood of long-range spatial tearing.
Biwen Lei demonstrates the power of this technique in Scaling Mesh Generation via Compressive Tokenization. By introducing a "Blocked and Patchified Tokenization" (BPT), the author compresses the sequence length of 3D meshes by 75%. This compression allows autoregressive Transformers to generate high-fidelity meshes while maintaining strict structural relationships and topological consistency, demonstrating that solving the spatial-to-sequential mapping problem is key to scaling up 3D deep learning.
Key Foundational Work
Multiresolution Tree Networks for 3D Point Cloud Processing (2018) — contributed 2 concept elements to this direction.
Efficient Point Cloud Analysis Using Hilbert Curve (2022) — contributed 1 concept elements to this direction.
Patch-based Medical Image Segmentation using Matrix Product State Tensor Networks (2022) — contributed 1 concept elements to this direction.