NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

ZipMap: Linear-Time Stateful 3D Reconstruction via Test-Time Training

Haian Jin, Rundi Wu, Tianyuan Zhang, Ruiqi Gao, Jonathan T. Barron, Noah Snavely, Aleksander Holynski · DOI

Abstract

Feed-forward transformer models have driven rapid progress in 3D vision, but state-of-the-art methods such as VGGT and $\pi^3$ have a computational cost that scales quadratically with the number of input images, making them inefficient when applied to large image collections. Sequential-reconstruction approaches reduce this cost but sacrifice reconstruction quality. We introduce ZipMap, a stateful feed-forward model that achieves linear-time, bidirectional 3D reconstruction while matching or surpassing the accuracy of quadratic-time methods. ZipMap employs test-time training layers to zip an entire image collection into a compact hidden scene state in a single forward pass, enabling reconstruction of over 700 frames in under 10 seconds on a single H100 GPU, more than $20\times$ faster than state-of-the-art methods such as VGGT. Moreover, we demonstrate the benefits of having a stateful representation in real-time scene-state querying and its extension to sequential streaming reconstruction.

Introduction

Reconstructing a 3D scene from a collection of 2D images, often referred to as Structure-from-Motion (SfM), is a fundamental challenge in computer vision. Recently, feed-forward transformer models like VGGT and $\pi^3$ have achieved impressive results by leveraging global self-attention. However, these models face a significant scalability hurdle: their computational complexity grows quadratically ($O(N^2)$) with the number of input images $N$. This bottleneck limits their utility for long-form video or large-scale scene captures.

While sequential models like Recurrent Neural Networks (RNNs) offer linear scaling ($O(N)$), they often suffer from "drift" and lower reconstruction quality because they lack the global coherence provided by transformers. ZipMap addresses this by introducing a stateful feed-forward architecture that provides the global consistency of transformers with the efficiency of linear scaling.

Methodology

The core innovation of ZipMap is the replacement of standard global self-attention with Large-Chunk Test-Time Training (TTT) layers. This architecture allows the model to "zip" visual information into a compact, queryable state.

1. Input Tokenization and Backbone

ZipMap utilizes a pre-trained DINOv2 encoder to transform input images into patches. To incorporate geometric priors, the model integrates "ray maps" that inform the backbone about camera poses. The backbone interleaves local window attention, which captures spatial details within individual frames, with global TTT layers that handle inter-frame relationships.

2. Test-Time Training (TTT) Layers

In a standard transformer, all image tokens must be stored in memory to compute global attention. ZipMap instead treats the weights of a small internal Multi-Layer Perceptron (MLP) as a "hidden scene state." During the forward pass, the model performs a single step of gradient descent to "train" these weights to memorize the mapping between the keys and values of the input images. This process effectively compresses the entire sequence into a fixed-size representation.

3. Bidirectional and Stateful Processing

Unlike traditional sequential models that only process information in one direction, ZipMap’s TTT layers allow for bidirectional information flow. This ensures that the reconstruction of early frames benefits from visual data appearing much later in the sequence. Furthermore, because the scene is stored in MLP weights, the representation is stateful and can be updated as new images arrive in a streaming fashion.

Experimental Results

ZipMap was evaluated against a massive suite of 29 datasets, including static environments (ScanNet, Matterport3D) and dynamic video sequences (KITTI, Waymo).

ZipMap achieves linear scaling in both runtime and Absolute Trajectory Error (ATE), enabling high-fidelity 3D reconstruction of long sequences significantly faster than quadratic-time baselines.

Efficiency and Scaling

The most striking result is ZipMap's scalability. On a single H100 GPU, ZipMap processes 750 frames in just 9.9 seconds. In contrast, the previous state-of-the-art, VGGT, requires over 200 seconds for the same task. As shown in the performance plots, ZipMap’s runtime scales linearly, whereas quadratic models experience an exponential increase in computational cost as the frame count grows.

Accuracy

Despite the significant speedup, ZipMap does not sacrifice precision. On the ScanNet benchmark, ZipMap achieved a lower Absolute Trajectory Error (ATE) than VGGT. The model maintains global coherence across long sequences, avoiding the drift typically associated with linear-time sequential models.

Real-Time Querying

The implicit scene representation stored in the TTT layers can be queried at approximately 100 FPS. This allows for real-time generation of novel views and depth maps, enabling smooth navigation of the reconstructed 3D space regardless of the number of input frames used to build the state.

Discussion and Limitations

While ZipMap sets a new bar for efficient 3D reconstruction, some challenges remain. The RGB images generated from the implicit state can exhibit blurring in high-frequency regions with fine textures. Additionally, while the model scales linearly, training on sequences exceeding several thousand frames may require advanced context parallelism to manage GPU memory constraints. Future work may involve combining this feed-forward approach with traditional global alignment techniques like bundle adjustment to further refine precision.

Conclusion

ZipMap demonstrates that $O(N^2)$ global attention is not a prerequisite for high-fidelity 3D reconstruction. By utilizing Test-Time Training to create a compressed, stateful scene representation, ZipMap achieves linear-time performance that is over $20\times$ faster than existing state-of-the-art methods, paving the way for real-time, city-scale 3D vision.

Summary updated

BibTeX
@inproceedings{jin2026zipmap,
  author = {Haian Jin and Rundi Wu and Tianyuan Zhang and Ruiqi Gao and Jonathan T. Barron and Noah Snavely and Aleksander Holynski},
  title = {{ZipMap: Linear-Time Stateful 3D Reconstruction via Test-Time Training}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=JHCJP174zm},
}
Figure