TL;DR
Pamba adapts the Mamba State Space Model (SSM) for 3D point cloud semantic segmentation, overcoming the quadratic scaling limitations of Transformers. By introducing a multi-path serialization strategy and a hybrid "ConvMamba" block, the model achieves state-of-the-art global modeling with linear complexity, significantly expanding the effective receptive field in large 3D scenes.
What Problem Does This Paper Address?
3D point cloud semantic segmentation—the task of labeling every point in a 3D scan (e.g., "chair," "wall," "floor")—is computationally expensive. While Transformers have set the standard for performance, their self-attention mechanism scales quadratically ($O(N^2)$) with the number of points. To manage this, researchers often split point clouds into small patches, which unfortunately limits the model's ability to capture long-range interactions between distant objects.
Furthermore, recent State Space Models (SSMs) like Mamba offer linear scaling ($O(N)$) but are designed for 1D causal sequences (like text). Applying Mamba directly to 3D point clouds is difficult because:
- Permutation Sensitivity: Point clouds are unordered; changing the input order changes the Mamba output.
- Weak Local Modeling: Mamba excels at global context but can struggle with fine-grained local geometry.
- Unidirectionality: Standard Mamba scans in one direction, preventing points from "seeing" information that appears later in the sequence.
Methods
The authors propose Pamba, a framework built on the PTv3 backbone but replacing attention with a novel Mamba-based approach.
Multi-path Serialization
To feed 3D points into a 1D Mamba layer, the points must be serialized. Pamba uses space-filling curves (like Hilbert and Z-order curves) to ensure that points near each other in 3D space remain close in the 1D sequence. The authors introduce a new hz curve that integrates both Hilbert and Z-order patterns, capturing spatial relationships from multiple perspectives within a single layer.
The ConvMamba Block
To address Mamba's inherent weaknesses, the authors designed the ConvMamba block, which consists of two stages:
- Local Aggregation: Uses sparse submanifold convolutions to explicitly capture local geometric details.
- Global Aggregation: Employs a Bidirectional Mamba mechanism. By scanning the point sequence in both forward and backward directions using shared parameters, the model ensures each point can interact with every other point in the scene, regardless of their position in the sequence.
Unlike Transformer-based methods that process patches, Pamba processes the entire point cloud (often 100k+ points) as a single sequence, enabling a massive Effective Receptive Field (ERF).
Datasets
Pamba was evaluated on four major benchmarks:
- ScanNet v2 & ScanNet200: Indoor scene datasets. ScanNet200 is particularly challenging due to its 200 semantic categories.
- S3DIS: An indoor dataset consisting of 271 rooms across six areas.
- nuScenes: A large-scale outdoor dataset for autonomous driving, featuring LiDAR scans.
Key Insights and Ideas
- Global Context is Crucial: As shown in Figure 1, Pamba exhibits a much larger ERF than previous methods like PTv3. This allows the model to learn that a "desk" is likely to be near a "chair," even if they are far apart in the raw data stream.
- Linear Complexity Works: Pamba proves that SSMs can handle massive point clouds (100k+ points) globally without the memory explosion seen in Transformers.
- Hybridization is Necessary: Mamba alone isn't enough for 3D vision; the addition of sparse convolutions for local geometry is essential for high accuracy.
- Serialization Diversity: Using multiple serialization paths (the hz curve) provides the model with different "views" of the 3D space, making it more robust to the specific order of points.
Key Results
- ScanNet200: Pamba achieved a state-of-the-art 36.3% mIoU, surpassing the previous best (PTv3) by 1.1%.
- Generalization: The model showed competitive or superior performance across all datasets, including a 73.5% mIoU on S3DIS (Area 5) and 80.4% mIoU on nuScenes.
- Efficiency: Pamba maintains a low memory footprint (5.2G during training), which is significantly lower than older Transformer models like Swin3D (10.3G).
Limitations and Future Work
While Pamba is memory-efficient, it is slightly slower in terms of latency compared to the most optimized Transformers (like PTv3). This is because Mamba processes sequences serially, whereas Transformers can parallelize across patches. The authors suggest that future work should focus on improving the hardware-level parallelism of SSMs for 3D data. Additionally, they plan to extend Pamba to other tasks like 3D instance segmentation and object detection.
Summary updated