Depth Completion as Parameter-Efficient Test-Time Adaptation

Bingxin Ke, Qunjie Zhou, Jiahui Huang, Xuanchi Ren, Tianchang Shen, Konrad Schindler, Laura Leal-Taixé, Shengyu HuangarXiv 2026

TL;DR

CAPA reframes depth completion as a parameter-efficient test-time adaptation problem, leveraging the rich geometric priors of frozen 3D foundation models. By updating less than 0.4% of the model's parameters (via LoRA or VPT) using sparse depth measurements at inference time, it effectively eliminates structural distortions and generalizes seamlessly across diverse environments. Furthermore, its sequence-level parameter sharing provides a powerful mechanism for enforcing temporal consistency in video depth completion without explicit post-processing.

What Problem Does This Paper Address?

Monocular depth estimation has advanced significantly with large 3D foundation models (FMs). While these models possess strong geometric and semantic priors, they are prone to metric inaccuracies, scaling ambiguities, and affine distortions when deployed in unseen environments. To achieve metrically accurate results, their predictions must be grounded using sparse external geometric cues (e.g., from LiDAR or Structure-from-Motion).

Traditional depth completion methods typically train task-specific encoders to fuse these sparse depth inputs with RGB images. However, this approach suffers from two major flaws:

  1. Overfitting to Sparsity Patterns: Models overfit to the specific sensor configurations or density patterns seen during training, leading to poor generalization on unfamiliar inputs.
  2. High Computational Cost: Fine-tuning or retraining massive foundation models for every new sensor setup degrades their generic representations and is computationally prohibitive.

CAPA addresses this by adapting a frozen foundation model directly at test time using only the sparse depth data available during inference.

Methods

Instead of offline training, CAPA introduces a Parameter-Efficient Test-Time Adaptation (PEFT-TTA) framework. The core architecture of the 3D foundation model remains completely frozen, preserving its global geometric understanding.

Figure 2. Method overview of CAPA. CAPA adapts 3D founda- tion models given sparse conditional depth (C) by efficiently tun- ing its image encoder while keeping all pre-trained weights frozen. This is achieved by manipulating the attention layers via two meth- ods: 1) CAPALoRA, which adds low-rank adapters to the projection weights, or 2) CAPAVPT, which prepends tunable prompt tokens to the image token sequence before each attention layer.

The authors explore two complementary PEFT strategies injected into the attention layers of a Vision Transformer (ViT) backbone:

  • CAPA-LoRA: Adds low-rank adapters to the query, key, and value projection weights.
  • CAPA-VPT: Prepends a small set of learnable prompt tokens to the input token sequence of each transformer layer.

Optimization Objective

At each test-time iteration, the model predicts a dense depth map. To resolve scale ambiguity, a robust $L_1$ minimization step computes an affine transformation (scale $s$ and shift $t$) to align the raw prediction with the sparse ground-truth cues. The gradients from the aligned $L_1$ loss are then backpropagated to update only the lightweight PEFT parameters ($\approx 0.39\text{M}$ parameters, or $\approx 0.04\%$ of the total model).

Sequence-Level Adaptation for Video

For video inputs, rather than optimizing each frame independently, CAPA shares the same set of learnable PEFT parameters across the entire sequence. A mini-batch strategy randomly samples a subset of frames at each optimization step. This design aggregates sparse geometric cues across multiple viewpoints, smoothing out local gradient noise and inherently enforcing multi-frame consistency.

Datasets

The authors evaluated CAPA across four distinct datasets spanning indoor and outdoor environments with varied sparse conditioning patterns (SIFT keypoints, random points, limited-range points, and simulated LiDAR scan lines):

  • ScanNet & 7-Scenes: Indoor RGB-D video datasets used to evaluate multi-frame and SfM/SIFT-conditioned completion.
  • iBims: A single-image indoor dataset featuring challenging geometry.
  • Mapillary Metropolis: A city-scale outdoor dataset used to simulate automotive LiDAR scanning patterns (8, 16, and 32 scan lines).

Key Insights and Ideas

  • Mitigating the Generalization Gap: Traditional depth completion networks overfit to the sparse points, causing errors to spike outside the conditioned zones. Because CAPA optimizes the adaptation parameters globally via the attention mechanism, the performance gap between conditioned and unconditioned regions is drastically minimized.
  • Model-Agnostic Versatility: CAPA is not tied to a single architecture. The authors successfully integrated it with three distinct base models (VGGT, MoGe-2, and UniDepthV2), achieving consistent performance boosts across all of them.
  • Implicit Temporal Regularization: Sequence-level parameter sharing acts as a powerful regularizer. By forcing a single set of prompts or adapters to satisfy the geometry of multiple frames, the network naturally resolves temporal flickering and structural warping without needing explicit optical flow or pose estimation modules.

Key Results

CAPA achieved state-of-the-art performance across all four datasets, securing the top rank against both feed-forward depth completion networks and diffusion-based test-time optimization methods.

Qualitative comparison demonstrating how CAPA corrects global geometry and recovers fine details
  • Error Reduction: CAPA reduced the absolute relative error (AbsRel) of the base VGGT model by $2\times$ to $3\times$.
  • Efficiency: Compared to full-model fine-tuning, CAPA achieves competitive accuracy while updating $\approx 2500\times$ fewer parameters.
  • Speedup over TTA Baselines: CAPA is highly efficient compared to diffusion-based test-time adaptation methods (like Marigold-DC), delivering a $>10\times$ speedup in total processing time and significantly lower VRAM usage, making it viable for consumer-grade GPUs.

Limitations and Future Work

Despite its efficiency gains over other test-time optimization methods, CAPA still requires iterative gradient steps (typically 100 steps per sample/sequence), making it slower than pure feed-forward, single-pass networks.

Additionally, CAPA remains bound by the fundamental capabilities of the underlying foundation model. In extreme failure modes where the base model fails completely—such as handling perfect mirrors, complex non-Lambertian reflections, or when sparse sensors physically penetrate surfaces (like LiDAR passing through glass)—the sparse cues may be insufficient to fully recover the correct geometry. The authors suggest exploring trained optimizers in future work to accelerate convergence speeds.

Summary updated

BibTeX
@misc{ke2026depth,
  author = {Bingxin Ke and Qunjie Zhou and Jiahui Huang and Xuanchi Ren and Tianchang Shen and Konrad Schindler and Laura Leal-Taixé and Shengyu Huang},
  title = {{Depth Completion as Parameter-Efficient Test-Time Adaptation}},
  year = {2026},
  eprint = {2602.14751},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.14751},
}
Figure