Transport-Based Loop Closure for Streaming 3D Reconstruction

Streaming 3D reconstruction models turn a video into a 3D point cloud one frame at a time. They are fast because they only look at a short window of recent frames. That same design makes them drift: small errors compound, straight corridors bend, and when the camera returns to a room it has already seen, the new geometry lands beside the old copy instead of on top of it. Classical pipelines fix this with loop closure, which means recognizing a revisit and pulling the map back into agreement. That fix assumes the accumulated error is a rigid shift and rotation. The errors of learned reconstruction networks are not rigid. They warp, stretch, and change scale across the map.

We propose to close loops in a streaming reconstructor with a single linear-time optimal-transport solver. Optimal transport (OT) is a way of matching two point sets by moving "mass" from one to the other at minimal total cost. The solver we use constrains the matching to pass through a small number of hub points. It lets unmatched points drop out, and it compares internal distances within each set as well as appearance features. Each new fragment of the stream is matched against a compressed memory of past fragments. One quantity from that match, the fraction of mass the solver chooses to transport, serves as the revisit detector. The soft correspondences from the same match then drive a smooth, non-rigid correction spread back along the trajectory. The hubs double as the compressed memory, so both the cost of each match and the size of the memory stay linear.

Core Claim

The claim is that one unbalanced, low-rank, fused Gromov–Wasserstein problem can do both jobs that rigid loop closure splits across two components, recognizing a revisit and correcting the map, and do them better. Gromov–Wasserstein (GW) is a variant of OT that matches points by comparing distances within each set rather than coordinates across sets. The "fused" version adds a feature-matching term. "Unbalanced" means mass does not have to be conserved.

For a current fragment with points $x_i$ and a stored fragment with points $y_j$, we solve

$$ \min_{\Pi = A\,\mathrm{diag}(1/g)\,B^\top} \;(1-\alpha)\langle F, \Pi\rangle + \alpha\,\mathrm{GW}(D_X, D_Y, \Pi) + \tau\,\mathrm{KL}(\Pi\mathbf{1}\,|\,a) + \tau\,\mathrm{KL}(\Pi^\top\mathbf{1}\,|\,b). $$

The symbols are as follows:

  • $\Pi$ is the coupling, meaning how much mass moves from each $x_i$ to each $y_j$.
  • $A$ and $B$ are nonnegative factors of rank $r$, and $g$ is the mass held at each of the $r$ hubs.
  • $F$ is a matrix of feature distances taken from the reconstructor's own tokens.
  • $D_X$ and $D_Y$ are within-fragment distance matrices, which have low-rank form for squared Euclidean distances.
  • $\alpha$ trades features against geometry.
  • $\tau$ sets how cheaply mass may be discarded relative to the marginals $a$ and $b$.

The overlap score is $s = \|\Pi\|_1 / \min(\|a\|_1, \|b\|_1)$. The GW term compares distances and not coordinates, so the score does not depend on the drifted global frame. It also tolerates the smooth warps that make rigid alignment fail at loop closure.

Where This Sits in Prior Work

The solver comes directly from the low-rank OT line.

We reuse this last solver essentially unchanged. Its STARmap result is what motivates our detector: it moved only 44.3% of the mass while beating balanced solvers that forced "ghost matches." That result was on static tissue sections, and nobody has used the transported fraction as a signal in a sequential system. Our contribution is the sequential use, not the solver.

The drift side supplies both the gap and the constraints.

  • STream3R: Scalable Sequential 3D Reconstruction with Causal Transformer is a causal transformer with a cached memory that runs at over 32 FPS in sliding-window mode. Its authors state that it has no loop closure and drifts over long streams. We treat it as the host system.
  • Elastic Fragments for Dense Scene Reconstruction showed that sensor warping makes rigid loop closure produce double surfaces. It fixed this offline, taking hours, by deforming a coarse lattice per fragment. We adopt its lattice deformation as the correction model, but drive it with OT correspondences inside an online loop.
  • Structure-from-Motion Revisited remains the reference for global correction by joint optimization (bundle adjustment). It is accurate but too slow for streaming rates.

The closest existing work is Accurate Point Cloud Registration with Robust Optimal Transport. It shows that an unbalanced OT layer brings KITTI scene-flow error from 7.63 cm with PointPWC-Net down to 2.23 cm, and it uses symbolic kernels for linear memory. However, it registers isolated pairs in shared Euclidean coordinates with a full-kernel coupling. It does not detect revisits, keep a memory, or reason about drift along a chain. We differ on all three points. We also replace coordinate costs with within-fragment distances, which matters exactly when the two fragments sit in different drifted frames.

Research Program

The system cuts the output of STream3R-W into fragments of about 50–100 frames, following the Elastic Fragments granularity. When a fragment closes, we compute a rank-$r$ unbalanced fused-GW self-summary and store only three things: the $r$ hub positions, the hub masses $g$, and the pooled tokens at each hub. This hub memory is $O(r)$ per fragment regardless of point count.

Each new fragment is matched in two stages:

  1. Cheap screen. The new fragment is matched against every stored hub summary, which costs linear time in total hubs.
  2. Full match. For the top few candidates by overlap score $s$, we re-solve at the point level against the raw points of the stored fragment, which are kept on disk.

A revisit is declared when $s$ exceeds a threshold that is calibrated once on held-out scenes.

The correction step uses the soft correspondences $\Pi$ to set target displacements on the lattice nodes of each fragment since the matched one. It then solves a sparse system that balances agreement with those targets against a strain penalty on the lattice, as in Elastic Fragments. The system is restricted to the fragments inside the loop, so its size grows with loop length and not with the full map.

We analyze three questions:

  • how $s$ separates true from false revisits as a function of $\tau$ and $r$;
  • whether hub memories keep enough geometry for the screening stage (tested by recall at fixed memory);
  • how much of the gain comes from non-rigid correction versus better correspondences.

The rank-selection problem that low-rank OT leaves open is handled empirically here, by a sweep with one setting per dataset family. We do not claim an automatic rule.

Baselines

The naive reference point is STream3R-W exactly as released, with no correction. It measures how much drift there is to remove. It is run on the same frame streams and at the same resolution as every other system.

The strongest streaming competitor is a conventional rigid loop-closure bolt-on to the same STream3R-W output, with three parts:

  • revisits are retrieved by cosine similarity of pooled reconstructor tokens;
  • relative pose is estimated by a closed-form rigid-plus-scale fit on mutual nearest-neighbor pointmap correspondences inside RANSAC;
  • the result is spread by pose-graph optimization over fragment poses.

This baseline is the one most likely to be "good enough," which is why it is the main target. It gets the same fragment size, the same retrieval budget (top-$k$ candidates), and the same hyperparameter search budget as our method. To count as beating it, our method must reduce reconstruction error on loop-containing sequences and also reduce false loop closures at matched recall.

The strongest OT competitor is RobOT from Accurate Point Cloud Registration with Robust Optimal Transport. It is used in both its rigid and spline modes as the pairwise registration step inside the same retrieval and correction pipeline, so the only difference is the matcher. Its reported KITTI figure is EPE3D = 2.23 cm, but that is pairwise scene flow and not a streaming metric. We therefore re-run it and report wall-clock time per closure alongside accuracy. We beat it if we match its accuracy at lower closure latency, or exceed its accuracy when fragments sit in inconsistent drifted frames.

As an offline ceiling we report FastVGGT (FastVGGT: Fast Visual Geometry Transformer). It attends over the full sequence at once and reports a Chamfer distance of 0.425 on the ScanNet-50 1,000-frame benchmark, against 0.684 for Fast3R, at 180.7 s per 1,000 images. A streaming method approaching 0.425 while running online would be a strong result. Falling short of it is expected and is not a failure.

Four ablations isolate the key ingredients:

  • Balanced low-rank fused GW (no KL relaxation) tests whether mass discarding is what makes $s$ a usable detector.
  • Pure feature OT ($\alpha = 0$) tests whether the within-fragment distance term is what buys robustness to warped frames.
  • Rigid-only correction from our correspondences separates the value of the matcher from the value of the elastic correction.
  • Hub memory versus storing all points for screening measures what compression costs.

Why not just…?

Why not just use rigid pose-graph loop closure, as SLAM always has? This is the real threat. If the drift of learned pointmaps is mostly rigid plus scale, it will work about as well as our method and far more simply. The evidence against it is indirect. Elastic Fragments for Dense Scene Reconstruction found that low-frequency warping defeats rigid closure even with depth sensors, and we expect regressed geometry to warp more, not less. That expectation is not established. The rigid-only-correction ablation and the rigid baseline settle it directly. If rigid correction recovers most of the gain on real sequences, we will report that the contribution reduces to the detector and the correspondences.

Why not just run global bundle adjustment periodically? Structure-from-Motion Revisited shows that bundle adjustment stays the dominant cost even after its view-pruning speedups, and it depends on appearance tracks that break under repetitive texture. We include an offline bundle-adjusted reference on the sequences where it is feasible. Our claim is only that we approach it online.

Why not just run FastVGGT over the whole sequence? It is not causal: it needs all frames up front and minutes of compute. Its authors also report that aggressive token merging hurts short sequences. It serves as our ceiling, not our competitor.

Why not just use full-kernel robust OT instead of the low-rank solver? RobOT is linear in memory, but each match still evaluates the kernel over all point pairs, and it compares coordinates. The paired comparison inside an identical pipeline measures both the latency gap and the drifted-frame gap. If RobOT is equally accurate and only modestly slower, we will say the low-rank structure mainly buys memory compression.

Proposed Experiments

The main evaluation uses long, loop-rich indoor streams:

  • ScanNet-50 1,000-frame benchmark, with Chamfer distance to ground-truth meshes, directly comparable to FastVGGT's reported 0.425;
  • ScanNet++, as used by STream3R;
  • 7-Scenes and NRGBD, for trajectory error. No reported numbers were found on Lacuna for these datasets, so all baselines are re-run.

MPI Sintel serves as a short-sequence control. Its sequences contain few loops, so correction should do little, and our method must not degrade STream3R's depth error there (Lacuna reports no exact baseline value for Sintel). Across all systems we report Chamfer distance, absolute trajectory error, loop-detection precision and recall, per-closure latency, and sustained frames per second.

The decisive controlled check injects known smooth warps and scale drift into ground-truth ScanNet fragments at graded magnitudes, then measures residual misalignment after closure. If transport-based closure matters, its advantage over the rigid baseline should grow with warp magnitude. If the curves coincide, the non-rigid claim fails.

A second check plots false-closure rate against the overlap threshold for:

  • our unbalanced score $s$;
  • the balanced ablation;
  • the token-cosine retrieval score.

The proposal's central bet is that the transported fraction separates revisits better than either alternative. A last check fixes latency to within STream3R-W's frame budget and asks whether the system still sustains streaming rates on 1,000-frame and longer streams.