Mamba Learns in Context: Structure-Aware Domain Generalization for Multi-Task Point Cloud Understanding

Jincen Jiang, Qianyu Zhou, Yuhang Li, Kui Su, Meili Wang, Jian Chang, Jian Jun Zhang, Xuequan Lu

TL;DR

This paper introduces Structure-Aware Domain Generalization (SADG), the first Mamba-based In-Context Learning framework for multi-task point cloud understanding. By replacing fragile coordinate-based serialization with intrinsic geometric and topological spectra, SADG achieves robust generalization across unseen domains and tasks while maintaining linear-time computational efficiency.

What Problem Does This Paper Address?

While deep learning has excelled at processing 3D point clouds for tasks like reconstruction, denoising, and registration, most models are brittle when deployed in the real world. Variations in sensors, viewpoints, and occlusions create a severe "domain gap" between training data (often synthetic) and real-world scans.

Recently, In-Context Learning (ICL) frameworks like DG-PIC attempted to solve multi-task domain generalization by using Transformers. However, Transformers suffer from quadratic computational complexity. State-Space Models (SSMs) like Mamba offer a linear-time alternative but introduce a new problem: they require 3D point clouds to be flattened into a 1D sequence (serialized). Standard serialization techniques (like Axis Scanning or Hilbert Curves) rely on absolute spatial coordinates. If an object is rotated or partially occluded, its serialized sequence changes completely. This causes "structural drift," breaking Mamba’s recurrent state propagation and degrading its ability to generalize to unseen domains.

Methods

The authors propose SADG (Structure-Aware Domain Generalization) to make Mamba robust to domain shifts by ensuring the serialized sequence preserves the object's underlying structure regardless of its orientation or completeness.

Figure 1. Overview of our SADG. (a) During training, point clouds from multiple source domains are partitioned into local patches and serialized into structure-aware sequences using the Centroid Distance Spectrum (CDS) and Geodesic Curvature Spectrum (GCS), which preserve global topology and local geometric continuity. The serialized sequences are then processed by Mamba blocks under the Hierarchical Domain-Aware Modeling (HDM) mechanism, which stabilizes intra-domain structure and fuses inter-domain relations. (b) At test time, the Spectral Graph Alignment (SGA) performs structure-aware shifting that guides target features toward source prototypes in the spectral domain without updating model parameters, enabling robust generalization to unseen target domains across multiple tasks.

SADG consists of three primary components:

  1. Structure-Aware Serialization (SAS): Instead of coordinate sorting, SAS orders tokens using two intrinsic, transformation-invariant spectra:
  2. Centroid Distance Spectrum (CDS): Measures global topology by calculating distances to a global centroid, but traverses the points using a Breadth-First Search on a local affinity graph to maintain spatial continuity.
  3. Geodesic Curvature Spectrum (GCS): Models local surface geometry by simulating heat diffusion on a geodesic graph, capturing curvature implicitly and robustly even on noisy or incomplete surfaces.
  4. Hierarchical Domain-Aware Modeling (HDM): To prevent cross-domain data from disrupting Mamba's sequential dynamics, HDM splits processing into two stages. First, Intra-domain Structural Modeling (ISM) processes prompt and query domains in parallel Mamba branches. Second, Inter-domain Relational Fusion (IRF) interleaves the tokens based on their shared structural order, allowing smooth feature exchange.
  5. Spectral Graph Alignment (SGA): A lightweight test-time module that treats target features as graph signals. Using the Graph Fourier Transform, it shifts target features toward source prototypes in the spectral domain without updating any model parameters.
Figure 2. Comparison of different serialization strategies. The proposed CDS and GCS maintain transformation invariance and structural consistency across unaligned real-scan objects, provid- ing a stable foundation for domain-generalized 3D understanding.

Datasets

The framework was evaluated on a comprehensive multi-domain, multi-task benchmark consisting of five datasets across seven categories (chair, table, sofa, bed, cabinet, shelf, monitor):

  • Synthetic Domains: ModelNet40, ShapeNet.
  • Real-Scan Domains: ScanNet, ScanObjectNN.
  • New Dataset (MP3DObject): The authors introduced this object-level dataset derived from Matterport3D indoor scans. It contains 4,015 training and 1,003 testing samples featuring realistic sensor noise, occlusions, and unaligned poses, serving as a rigorous synthetic-to-real generalization testbed.

Key Insights and Ideas

  • Intrinsic Geometry Over Spatial Coordinates: For order-sensitive sequence models like Mamba, spatial coordinates are a liability in 3D vision. Anchoring sequences to intrinsic properties like geodesic curvature and topological connectivity makes the sequence invariant to rigid transformations (rotations and translations).
  • Interleaving Preserves Sequential Dynamics: Simply concatenating prompt and query sequences (as done in Transformers) breaks Mamba's hidden state transitions. Interleaving them based on a shared structural order allows the recurrent model to map cross-domain correspondences seamlessly.
  • Frequency-Domain Alignment at Test Time: Shifting features in the spectral domain (frequency space) acts as a structural anchor, mitigating domain discrepancies without requiring expensive test-time model fine-tuning.

Key Results

SADG consistently outperformed general point cloud baselines and state-of-the-art domain generalization methods across all tasks, measured by Chamfer Distance (CD).

  • Performance on Real Scans: On the challenging new MP3DObject dataset, SADG achieved CD scores of 3.55 (Reconstruction), 6.61 (Denoising), and 2.84 (Registration), significantly outperforming the previous state-of-the-art Transformer-based ICL method, DG-PIC (5.91 / 10.40 / 5.64).
  • Efficiency Gains: SADG achieved an inference speed of 0.75s with 18.87M parameters and 14.89G FLOPs, delivering superior accuracy while being faster and lighter than DG-PIC (0.94s, 27.57M parameters, 21.07G FLOPs).
Figure 5. Qualitative results on synthetic (ModelNet) and real-scan (MP3DObject) targets. Our method recovers both detailed geometry and smooth surfaces. For visualization, MP3DObject instances are rendered after aligning their non-canonical orientations.

Limitations and Future Work

The authors note that while SADG provides excellent structural fidelity and efficiency, calculating the intrinsic spectra requires constructing local KNN graphs, geodesic paths, and heat kernels. This graph-construction step introduces a preprocessing overhead that could scale poorly to massive, un-sampled scene-level point clouds. Future work includes scaling this structure-aware Mamba architecture to large-scale scene understanding and exploring multi-modal extensions (e.g., language-guided 3D manipulation).

Summary updated

BibTeX
@inproceedings{jiang2026mamba,
  author = {Jincen Jiang and Qianyu Zhou and Yuhang Li and Kui Su and Meili Wang and Jian Chang and Jian Jun Zhang and Xuequan Lu},
  title = {{Mamba Learns in Context: Structure-Aware Domain Generalization for Multi-Task Point Cloud Understanding}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=WtEFJCVNSP},
}
Figure