Test3R: Learning to Reconstruct 3D at Test Time

Yuheng Yuan, Qiuhong Shen, Shizun Wang, Xingyi Yang, Xinchao Wang

Abstract

Recent advancements in 3D reconstruction have shifted from complex, multi-stage Structure-from-Motion (SfM) pipelines toward end-to-end neural networks that regress 3D pointmaps directly from image pairs. However, these pairwise models often suffer from geometric inconsistencies when scaling to multiple views. We present Test3R, a "plug-and-play" test-time learning technique that enforces geometric consistency across image triplets. By optimizing lightweight visual prompts on-the-fly, Test3R resolves the inherent contradictions of pairwise matching models like DUSt3R, delivering state-of-the-art precision without requiring ground-truth data or expensive retraining.

Introduction

The field of 3D reconstruction has been transformed by models like DUSt3R, which simplify the reconstruction process by predicting 3D pointmaps from image pairs. Despite their power, these models operate within a pairwise paradigm that treats each pair of images in isolation. This local focus leads to two primary shortcomings:

  1. Geometric Inconsistency: When reconstructing a scene from multiple images (e.g., $I_1, I_2, I_3$), the geometry of $I_1$ predicted from the pair ($I_1, I_2$) may conflict with the geometry predicted from ($I_1, I_3$). These local disagreements result in significant alignment errors during global merging.
  2. Precision Limits: Pairwise models frequently struggle with "short-baseline" cases—where the camera displacement is minimal—resulting in noisy and inaccurate depth estimates.

Test3R addresses these issues by introducing a self-supervised objective applied at the moment of inference, forcing the model to maintain self-consistency across different views of the same scene.

Methodology

Triplet Consistency

The fundamental innovation of Test3R is the use of triplet consistency. Rather than processing isolated pairs, the method considers image triplets $(I_1, I_2, I_3)$. By treating $I_1$ as a reference view, the system generates two distinct 3D pointmaps for it:

  • $X_1$: Derived from the pair $(I_1, I_2)$
  • $X_2$: Derived from the pair $(I_1, I_3)$

Because both pointmaps represent the same physical space from the same viewpoint, they should, in theory, be identical. Test3R optimizes the network to minimize the discrepancy between $X_1$ and $X_2$, using multi-view redundancy as a free supervision signal.

Efficient Adaptation via Visual Prompt Tuning (VPT)

Optimizing a large Vision Transformer (ViT) backbone during inference is computationally prohibitive and risks "forgetting" generalizable features. To mitigate this, Test3R employs Visual Prompt Tuning (VPT). In this setup:

  • The core model weights remain frozen.
  • A small set of learnable "prompt tokens" (approximately 0.8M parameters) is integrated into each transformer layer.
  • Only these prompts are updated during the test-time optimization phase.

This approach ensures the process is fast, memory-efficient, and robust against overfitting to specific scene noise.

Experimental Setup

Test3R was evaluated across several rigorous benchmarks to test its reconstruction and generalization capabilities:

  • 3D Reconstruction: Evaluated on 7Scenes and NRGBD, datasets known for minimal view overlap and challenging geometric reasoning.
  • Multi-view Depth: Tested on DTU (object-centric) and ETH3D (diverse indoor/outdoor environments).
  • Generalization: The method was applied as a plugin for other state-of-the-art models, including MAST3R and MonST3R.

Key Insights

  • Redundancy as Supervision: Test3R demonstrates that explicit labels are unnecessary if one demands that a model does not contradict itself across different viewpoints.
  • Global Refinement from Local Constraints: By enforcing consistency on local triplets, the model implicitly improves global accuracy. This process effectively "pushes" noisy, short-baseline predictions toward the more stable geometry established by wider-baseline pairs.
  • Scene-Specific Adaptation: VPT allows the model to adapt to the unique lighting, textures, and distributions of a specific scene without collapsing the underlying 3D knowledge acquired during pre-training.

Results

Test3R consistently improves the performance of its base models across all metrics:

  • Depth Accuracy: On the DTU dataset, Test3R reduced the Absolute Relative Error by 1.3 and increased the Inlier Ratio by 14.2%.
  • Reconstruction Fidelity: Qualitative analysis shows that Test3R recovers fine-grained details—such as sharp edges on statues or complex internal structures of machinery—that standard pairwise models often blur.
  • Universal Compatibility: The method provided a consistent performance lift when integrated with MAST3R and MonST3R, confirming its utility as a generalizable enhancement for the "3R" model family.
  • Computational Overhead: The test-time optimization adds approximately 30 seconds of latency on a single RTX 4090, representing a manageable trade-off for significantly higher-fidelity results.

Limitations and Future Work

While Test3R represents a significant step forward, several challenges remain. The final output quality is still constrained by the quality of input images; extreme occlusions or drastic lighting changes can still hinder performance. Additionally, the current implementation only optimizes pointmaps from the reference view; future iterations could leverage source view pointmaps for further gains. Finally, selecting the optimal triplets in scenes with hundreds of images is a complex problem; moving beyond random sampling toward intelligent heuristics based on view overlap could further improve efficiency and scaling to dense video sequences.

Summary updated

BibTeX
@inproceedings{yuan2025test,
  author = {Yuheng Yuan and Qiuhong Shen and Shizun Wang and Xingyi Yang and Xinchao Wang},
  title = {{Test3R: Learning to Reconstruct 3D at Test Time}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=UcKYgtOIuX},
}
Figure