TL;DR
VAR-Depth is the first monocular depth estimation method adapted from a pre-trained text-to-image Visual Autoregressive (VAR) model. By replacing traditional diffusion loops with a 10-stage hierarchical generation process, it achieves state-of-the-art indoor depth accuracy using a fraction of the pretraining data and only 74K synthetic fine-tuning samples.
What Problem Does This Paper Address?
Monocular depth estimation (MDE)—predicting 3D depth from a single 2D image—is a fundamentally ill-posed computer vision problem due to scale ambiguities, perspective distortions, and occlusions.
Recently, generative approaches have dominated the field by repurposing large diffusion models (like Stable Diffusion) as conditional image generators. However, these diffusion priors rely on massive pretraining datasets (billions of image-text pairs) and suffer from high computational overhead due to their iterative denoising process during inference. The authors tackle this efficiency and data-scalability bottleneck by exploring Visual Autoregressive (VAR) models as a powerful, data-thrifty alternative for geometry-aware tasks.
Methods
The authors build on Switti, a 2-billion parameter text-to-image VAR model pretrained on a relatively modest 100 million image-text pairs. To adapt it for affine-invariant depth estimation, they introduce three key innovations:
- Conditional Fine-Tuning: They replace the standard text encoder with a projection MLP that maps RGB image encodings directly into the VAR transformer's conditioning space (see Figure 1).
- Scale-Wise Conditional Upsampling: Standard VAR models struggle to propagate complex geometric context across resolution scales because the default upsampling layers compress or lose spatial context. The authors replace these layers with a lightweight, timestep-aware U-Net module $U(\cdot)$ that operates directly on continuous token encodings to predict the next scale's tokens (see Figure 2).
- Upsampling Guidance & Re-encoding: They implement a custom classifier-free guidance (CFG) schedule to balance the autoregressive prior and the conditional upsampler. To avoid training separate upsamplers for every single scale, a clever re-encoding strategy runs a forward pass through the VAR encoder to extract intermediate token representations on the fly.
Datasets
- Training: Fine-tuning is performed entirely on 74K synthetic images from two datasets: Hypersim (461 photorealistic indoor scenes) and vKITTI (virtual KITTI, synthetic driving sequences).
- Evaluation: The model's generalization capability is tested across five real-world benchmarks:
- Indoor: NYUv2 (654 Kinect images) and ScanNet (1512 validation samples).
- Outdoor: KITTI (Eigen test split via LiDAR) and ETH3D (high-fidelity multi-view stereo ground truth).
- Mixed: DIODE (dense indoor/outdoor scenes).
Key Insights and Ideas
- The Power of Few-Step Hierarchical Generation: Unlike diffusion models that require dozens of denoising steps over the same resolution space, VAR models generate images scale-by-scale in a fixed number of steps (10 stages here). This inherently bounds inference latency.
- Geometry Demands Explicit Upsampling: Standard transformer conditioning works well for text prompts but fails for dense geometric tasks because spatial context gets compressed across scales. Switching to an image-to-image U-Net upsampler preserves critical spatial structure.
- Data Efficiency is Real: A generative prior trained on 100M images (Switti) can match or outperform priors trained on 5B images (Stable Diffusion) when adapted for downstream geometry tasks, proving that massive web-scale datasets aren't always necessary for robust visual priors.
Key Results
- State-of-the-Art Indoor Accuracy: Under constrained training conditions (priors $\le$ 100M samples, fine-tuning $\le$ 3M samples), VAR-Depth outperforms competitive baselines on indoor datasets. On NYUv2, it achieves an Absolute Relative Error (AbsRel) of 6.4 and a $\delta_1$ accuracy of 94.8, outperforming Marigold variants under the same fine-tuning regime.
- Impressive Speed: Inference takes just 53 ms on a single NVIDIA A100 GPU at $512 \times 512$ resolution. This is on par with feedforward baselines (DepthAnything v2 at 55 ms) and drastically faster than standard iterative diffusion (Marigold v1.0 at 4008 ms).
- Qualitative Fidelity: The model captures fine structural details (like chair armrests and room layouts) exceptionally well in indoor environments, as shown in Figure 3.
Limitations and Future Work
- Outdoor Domain Gap: While highly competitive indoors, the model lags slightly behind the strongest feedforward CNN/ViT baselines (like DPT) in outdoor scenarios (KITTI, ETH3D). The authors attribute this to the domain gap of relying purely on synthetic training data (Hypersim and vKITTI).
- Loss of Ultra-Fine Details: Very fine structures, such as thin window frames, are occasionally missed during the hierarchical token upsampling process.
- Future Directions: Future work could explore training on larger, more diverse real-world datasets or scaling the VAR architecture to better handle high-frequency outdoor details.
Summary updated