LongStream: Long-Sequence Streaming Autoregressive Visual Geometry

Chong Cheng, Xianda Chen, Tao Xie, Wei Yin, Weiqiang Ren, Qian Zhang, Xiaoyang Guo, Hao Wang

TL;DR

LongStream introduces a "gauge-decoupled" streaming autoregressive framework for real-time, kilometer-scale 3D visual reconstruction. By predicting keyframe-relative poses and completely separating metric scale estimation from geometry learning, it eliminates the catastrophic drift and memory explosion typical of existing streaming models. The system achieves stable, metric-accurate tracking over thousands of frames at 18 FPS.

What Problem Does This Paper Address?

Streaming 3D reconstruction—estimating camera poses and dense 3D structures frame-by-frame from a continuous video stream—is critical for autonomous driving, AR/VR, and robotics. While offline Transformer-based models achieve high accuracy, they require reprocessing the entire video sequence every time a new frame arrives, making them computationally prohibitive for real-time deployment.

To solve this, recent streaming models have adopted causal Transformers and KV-caching to build reconstructions incrementally. However, these models suffer from "short-horizon collapse," catastrophically failing and drifting within tens of meters. The authors identify two main culprits:

  1. Gauge Coupling: Current models anchor camera poses to the very first frame's coordinate system. As the sequence grows, the model must extrapolate to massive, unseen coordinate indices, leading to severe scale drift and tracking failure.
  2. Attention Bias and Cache Contamination: Streaming Transformers rely heavily on the first frame as an "attention sink." Over long sequences, the KV-cache becomes saturated and contaminated, causing severe temporal degradation.

Methods

LongStream addresses these issues through a novel architecture and training paradigm:

  • Gauge-Decoupled Formulation: Instead of regressing absolute poses anchored to a fixed origin, the model predicts keyframe-relative poses. This transforms an ill-posed, long-range extrapolation problem into a constant-difficulty local estimation task.
  • Orthogonal Scale Learning: Geometry learning is fully disentangled from metric scale estimation. The geometry branch optimizes shape in a scale-invariant space, while a dedicated Scale Head independently predicts a global scale factor ($s$) using a specialized scale token.
  • Cache-Consistent Training (CCT): To fix the train-inference mismatch, CCT explicitly passes and trims the KV-cache between chunks during training. This forces the model to operate effectively within a sliding window without relying on a persistent first-frame anchor.
  • Periodic Cache Refresh: The model periodically flushes the KV-cache every $N$ keyframes to clear degraded features and prevent memory saturation without breaking geometric continuity.
Figure 3. Overview of our proposed LongStream. Given streaming inputs, patch tokens are extracted by a ViT encoder and augmented with keyframe, normal-frame, and scale tokens. Tokens are fused via causal attention with a shared KV cache, which is consistently used in both training and inference for cache-consistent streaming modeling. The network predicts keyframe-relative poses Ti←k, depth, pointmap, and global scale, enabling stable metric-scale reconstruction over long sequences.

Datasets

  • Training: LongStream is trained on a massive multi-domain collection including Kubric, WildRGB, ScanNet, HyperSim, Mapillary, Replica, MVS-Synth, PointOdyssey, Virtual KITTI (vKITTI), Aria Synthetic Environments, Aria Digital Twin, Objaverse, Spring, and Waymo Open. Datasets lacking metric ground truth (e.g., BlendedMVS, Co3Dv2, MegaDepth, DL3DV) were excluded from scale training but utilized for geometry learning.
  • Evaluation: The model was evaluated on outdoor benchmarks (KITTI, vKITTI, Waymo) and indoor benchmarks (TUM-RGBD, ETH3D, 7Scenes, Oxford Spires).

Key Insights and Ideas

  • The First Frame is a Trap: Anchoring a streaming model to the first frame creates a severe domain gap ("train-short, test-long" bias). Shifting to keyframe-relative poses makes long-sequence tracking mathematically identical to local tracking.
  • Scale and Shape Don't Mix: Forcing a single network branch to learn both 3D structure and absolute metric scale causes chaotic scale entanglement. Decoupling them at the objective level ensures that scale drift doesn't corrupt the underlying geometry.
  • Attention Sinks Cause Drift: Standard streaming Transformers naturally develop a strong dependence on the first token (the attention sink). While this stabilizes short sequences, it causes catastrophic collapse when sliding windows remove or alter that first token. Cache-Consistent Training successfully suppresses this bias.
Figure 4. Cache-consistent training (CCT). We show attention maps (top) and Relative Pose Error (RPE) heatmaps (bottom) under different training–inference settings. Without CCT (left), causal inference develops a strong attention sink; windowed inference either amplifies this sink when it is kept or collapses when it is removed. With CCT (right), the sink is strongly suppressed in causal mode and likewise suppressed in both windowed modes, yielding stable and best accuracy. Light blue denotes attention to the keyframe.

Key Results

  • Kilometer-Scale Stability: LongStream successfully tracks trajectories over 2.4 kilometers without collapsing, whereas previous streaming baselines fail within the first 50 meters.
  • Superior Accuracy: On the KITTI dataset, LongStream achieves an Average Absolute Trajectory Error (ATE) of 51.90, vastly outperforming streaming baselines like Stream3R (227.77) and StreamVGGT (226.15).
  • Real-Time Efficiency: It maintains a stable processing speed of 18 FPS on a single GPU.
  • Bounded Memory Usage: Thanks to the periodic cache refresh, memory usage remains capped at a stable 20 GB over thousands of frames, while standard VGGT models quickly hit Out-Of-Memory (OOM) errors.
LongStream maintains stable trajectory estimation over long distances compared to collapsing baselines.

Limitations and Future Work

  • Static World Assumption: The model assumes a largely static environment; dynamic objects (like moving cars or pedestrians) can degrade tracking accuracy.
  • Heuristic Keyframe Selection: Keyframe intervals are currently determined by a fixed heuristic schedule rather than dynamically adapting to scene complexity or camera speed.
  • Pointmap Degradation: There is a mild degradation in pointmap consistency over exceptionally long temporal windows, indicating room for improvement in long-term geometric memory.

Summary updated

BibTeX
@inproceedings{cheng2026longstream,
  author = {Chong Cheng and Xianda Chen and Tao Xie and Wei Yin and Weiqiang Ren and Qian Zhang and Xiaoyang Guo and Hao Wang},
  title = {{LongStream: Long-Sequence Streaming Autoregressive Visual Geometry}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=4GIaXQCAUC},
}
Figure