FlashSSM-3D: A Distilled State Space Model for Lightning-Fast Dense 3D Reconstruction

Nyle Siddiqui, Mubarak ShahNeurIPS 2026

TL;DR

Reconstructing 3D worlds from hundreds of 2D photos used to mean choosing between painstakingly slow geometric optimization or massive, quadratically-scaling Transformers. FlashSSM-3D breaks this bottleneck by replacing attention entirely with linear-time State Space Models (Mamba), reconstructing scenes from 500+ views in under 10 seconds. Better yet, by introducing a clever geometry-aware distillation recipe, the authors trained it using less than 10% of the compute and 25% of the data required by its Transformer teacher.

What Problem Does This Paper Address?

Imagine handing a computer 500 unordered photos of a cathedral and asking for a dense 3D point cloud and exact camera positions for every shot. Classical pipelines like Structure-from-Motion (SfM) do this via brittle feature matching and slow iterative post-processing. Recently, deep feed-forward models (like DUSt3R and VGGT) changed the game by predicting 3D geometry directly from pixels in a single pass.

However, these modern marvels are built on Transformers, creating two massive headaches:

  1. The Quadratic Wall: Self-attention compares every image token to every other token. Feed a Transformer 300+ high-res images, and inference slows to minutes—or flat-out crashes with Out-Of-Memory (OOM) errors.
  2. Prohibitive Training Costs: State-of-the-art 3D Transformers like VGGT require industry-scale resources (13,000+ H100 GPU hours across 16+ datasets). If you want to swap out the architecture for something faster, training from scratch on an academic budget is virtually impossible.

The authors ask: Can we ditch attention altogether for 3D reconstruction, using fast State Space Models (SSMs) instead, without losing geometric accuracy or needing a supercomputer to train it?

Figure 1: FlashSSM-3D: a fast and training-efficient 3D reconstruction SSM. FlashSSM-3D scales efficiently to hundreds of input views and requires significantly less compute and data to train than previous models.

Methods

FlashSSM-3D keeps the visual encoder (DINO) and prediction heads of its Transformer teacher (VGGT), but performs open-heart surgery on the backbone: every local and global self-attention layer is replaced with Mamba-based selective scan state-space layers, which process token sequences in linear time.

Because attention (explicit pairwise token matching) and SSMs (recurrent latent state updates) process information fundamentally differently, training from scratch is too costly, and naive knowledge distillation fails to preserve 3D spatial structure. To bridge this gap, the authors pair an existing two-stage representation alignment technique with a novel third stage:

  1. Stage 1 & 2 (Standard Subquadratic Alignment): First, Matrix Mixer Orientation forces the SSM’s selective scan outputs to mimic the Transformer's attention (KQV) outputs. Second, Hidden-State Alignment trains full Mamba blocks to match the outputs of corresponding Transformer blocks.
  2. Stage 3 (Novel Geometry-Aware Knowledge Distillation): Alongside standard point-wise regression, the authors introduce two physics-and-geometry-inspired losses:
  3. Procrustes Alignment Loss: Uses the differentiable Umeyama algorithm to find the optimal 3D scale, rotation, and translation between student and teacher point clouds before penalizing differences. This ensures global structural consistency without getting tripped up by arbitrary coordinate frames.
  4. Camera Reprojection Loss: Global 3D points can look right even if camera poses are slightly off. To isolate camera errors, the authors take the teacher's fixed 3D points, project them onto 2D image planes using both student and teacher camera parameters, and penalize pixel-level discrepancies.
Figure 2: Distilling VGGT into FlashSSM-3D occurs over 3 stages: (1): Matrix Mixer Orientation - Aligns the student’s internal selective scan output with the teacher’s self-attention KQV output. (2): Hidden-State Alignment - Matches block-level representations between teacher and student by training all block components (e.g. linear layers) simultaneously. (3): Geometry-Aware Knowledge Distillation - Directly supervises 3D points and camera predictions using Procrustes alignment and reprojection losses. Collectively, this transfers VGGT’s geometric reasoning into our student model.

Datasets

No new benchmarks are introduced; instead, the story here is data efficiency:

  • Training: Trained on just 5 datasets—MegaDepth, ScanNet, CO3Dv2, ARKitScenes, and BlendedMVS (roughly 25% of VGGT's 16+ dataset corpus).
  • Evaluation: Tested for 3D reconstruction on DTU, 7-Scenes, Neural-RGBD, ScanNet, and TUM-RGBD, and for camera pose estimation on RealEstate10K (unseen) and CO3Dv2.

Key Insights and Ideas

  • Pairwise attention isn't strictly necessary for multi-view geometry: It is easy to assume 3D correspondence requires explicit all-to-all token matching. FlashSSM-3D proves that compressing multi-view context into a recurrently updated latent state works remarkably well.
  • Distilling 3D space requires geometric rules, not just feature matching: Small representation errors between a Transformer and an SSM compound across layers, warping 3D outputs. Explicitly supervising 3D similarity transforms (Procrustes) and 2D perspective geometry (reprojection) acts as geometric guardrails—and ablations show the two losses are strictly complementary.
  • Linear scaling unlocks "more views = better accuracy" in practice: Feed-forward models make better predictions when given more viewpoints. While Transformers choke on dense views, SSMs let you throw hundreds of frames at a scene with minimal runtime penalty.

Key Results

  • Massive Speedups at Scale: On 300+ views for dense 3D reconstruction, FlashSSM-3D runs in 3.5 seconds compared to VGGT’s ~130 seconds (~37x faster), while pairwise methods like DUSt3R run out of memory. On 500 views in RealEstate10K, VGGT hits OOM, whereas FlashSSM-3D finishes in 5.9 seconds with a stellar 95.2 AUC@30.
  • Competitive Accuracy: Despite running orders of magnitude faster on dense sequences, reconstruction error stays right on VGGT's heels (e.g., 0.100 vs. VGGT's 0.074 on TUM-RGBD 300+ views, beating fast Transformer baselines like Fast3R at 0.698).
  • Frugal Training: FlashSSM-3D required ~1,300 H100 GPU hours (on 4 GPUs), less than 10% of VGGT’s 13,000 H100 hours.

Limitations and Future Work

Not explicitly discussed in a dedicated section in the paper. However, looking at the quantitative tables, a clear trade-off is visible: while FlashSSM-3D trounces other fast baselines, it generally trails its VGGT teacher by a slight margin in raw accuracy when view counts are equal (e.g., 83.3 vs. 85.3 AUC@30 on 10-frame Rel10K), and its ceiling is inherently tied to the capabilities of the teacher model it distills from. Exploring attention-free architectures as a scalable path forward for 3D vision remains the primary future direction highlighted by the authors.

Summary updated

Abstract

3D geometric understanding is undergoing a major transition where rigid, deterministic, optimization-based pipelines are being replaced by large-scale, deep learning models. While recent methods achieve impressive performance on tasks such as multi-view 3D reconstruction and camera pose estimation, they suffer from two critical limitations: $\textbf{(i):}$ current state-of-the-art (SOTA) models require industry-level compute and training corpora, severely limiting accessibility, and $\textbf{(ii):}$ recent approaches remain constrained to modifying existing pretrained transformer models, since substantially changing their architecture would require retraining from scratch. We instead study a complementary direction: training an attention-free state space model for dense 3D understanding. We introduce $\textbf{FlashSSM-3D}$, the first large-scale, multi-view, 3D reconstruction state space model capable of performing accurate geometric reasoning over hundreds of images with linear computational complexity. However, training such a model from scratch with competitive performance is impractical under typical academic compute constraints. To address this, we train FlashSSM-3D by distilling knowledge from VGGT, avoiding the need to learn 3D geometric priors entirely from scratch. However, standard distillation losses are poorly suited for dense 3D reconstruction, where preserving real-world spatial structure is essential. We therefore propose a $\textbf{geometry-aware knowledge distillation}$ method specifically tailored for large-scale 3D reconstruction models. Our method introduces two novel losses: a Procrustes-based alignment loss that enforces global structural consistency between student and teacher 3D point predictions, and a camera reprojection loss that directly supervises view-consistent camera geometry between teacher and student. Extensive experiments across multi-view 3D reconstruction and camera pose estimation benchmarks demonstrate that FlashSSM-3D achieves competitive performance while requiring only $\sim25\\%$ of the training data and less than $10\\%$ of the training compute used by VGGT. At inference time, FlashSSM-3D benefits from the practical efficiency of state space models, reconstructing scenes from 500+ views in under 10 seconds while maintaining competitive accuracy.
BibTeX
@inproceedings{siddiqui2026flashssm,
  author = {Nyle Siddiqui and Mubarak Shah},
  title = {{FlashSSM-3D: A Distilled State Space Model for Lightning-Fast Dense 3D Reconstruction}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=qrND6erSwi},
}
Figure