TL;DR
MetricAnything introduces a simple, scalable pretraining framework that successfully unlocks scaling laws for metric (absolute) depth estimation. By using a minimalist "Sparse Metric Prompt" interface, the model trains on 20 million noisy, heterogeneous image-depth pairs across 10,000+ camera models without task-specific architectures. The resulting models demonstrate a clear scaling trend and achieve state-of-the-art performance across ten diverse downstream tasks, including monocular depth estimation, robotic planning, and multimodal spatial reasoning.
What Problem Does This Paper Address?
While relative depth estimation has scaled remarkably well by training on massive "data soups" of synthetic and pseudo-labeled imagery, metric depth estimation—predicting absolute, physically meaningful distances—has historically struggled to show similar scaling trends.
The core bottleneck is data heterogeneity. Real-world 3D annotations are collected from vastly different sensors (LiDAR, ToF, RGB-D) or reconstruction algorithms (SfM, MVS, SLAM). Each source introduces unique noise patterns, hardware-specific artifacts, and camera-dependent biases. Simply mixing these datasets creates severe domain gaps, noisy supervision, and metric ambiguities due to varying camera intrinsics. Consequently, prior metric depth methods have been restricted to carefully curated, small-scale, clean datasets or complex, hand-crafted pipelines that limit generalization.
Methods
MetricAnything bypasses complex, hand-crafted prompt engineering in favor of a data-driven approach built on two core stages: prompt-based pretraining and prompt-free distillation.
1. Pretraining via Sparse Metric Prompts
Instead of designing specialized architectures for different sensors, the authors introduce the Sparse Metric Prompt. They randomly mask depth maps, keeping only a tiny fraction (~1%) of valid pixels (between 2,000 and 40,000 points). This sparse depth map is aligned with a prior depth map using Pixel-wise Depth Scale Alignment (PDSA) and Global Metric Depth Recovery (GMDR) to create a regularized input.
This minimalist interface acts as a universal coordinator: it forces the foundational Vision Transformer (ViT) backbone to learn how to propagate sparse metric constraints across the entire image, effectively decoupling spatial reasoning from sensor-specific biases and noise.
2. Prompt-Free Model Distillation
To make the model practical for scenarios where sparse depth prompts are unavailable at inference, the pretrained "teacher" model is distilled into a prompt-free "student" model. The authors introduce two key modifications to optimize this process:
- Distance-Balanced Inverse-Depth Loss: Standard losses either blur fine details or fail at long distances. This new loss operates in log-space to balance supervision across both near and far regions.
- Inverse Skip-Connections: Conventional architectures use U-Net style skip connections to pass low-level features (like color and texture) to the decoder to stabilize noisy training. Because the teacher's distilled pseudo-labels are already highly consistent and clean, the authors invert this scheme—injecting deep, high-level semantic ViT features into the final decoding layers—to maximize semantic reasoning.
Datasets
The authors assembled a massive pretraining dataset of approximately 20 million image-depth pairs spanning over 10,000 distinct camera models. The data is categorized into three streams:
- Reconstructed 3D Data: SfM, SLAM, and MVS datasets (e.g., ARKitScenes, Cityscapes).
- Captured 3D Data: Raw point clouds from LiDAR, ToF, and RGB-D sensors (e.g., NYUv2, SUN RGB-D, KITTI, Waymo).
- Rendered 3D Data: Noise-free synthetic data providing clean geometric supervision (e.g., Hypersim, Synscapes).
Downstream evaluation was performed entirely zero-shot across multiple standard benchmarks, including ETH3D, Booster, nuScenes, Sun-RGBD, Sintel, Middlebury, iBims-1, and DIODE.
Key Insights and Ideas
- The Bitter Lesson holds true for metric depth: Rather than engineering better prompts or building sensor-specific network heads, minimizing human priors and scaling up raw, noisy data allows the model to naturally learn robust structural and metric representations.
- Sparsity as a regularizer: Randomly masking the depth maps prevents the network from memorizing hardware artifacts or camera biases, forcing it to master the underlying geometry and spatial propagation.
- Inverting skip-connections for clean data: U-Net skip connections are a crutch for noisy data. When training on clean, high-fidelity pseudo-labels generated by a powerful teacher, feeding deep semantic features into the final prediction stages yields significantly sharper and more accurate geometry.
Key Results
Demonstrated Scaling Law
For the first time in metric depth estimation, the paper demonstrates a clear, monotonic scaling trend. As the pretraining data scales from 2M to 20M samples, the zero-shot $\delta_1$ accuracy on the challenging Middlebury benchmark improves consistently, outperforming all existing specialized models.
Downstream Performance
- Monocular Depth Estimation: The prompt-free student model achieved an average rank of 1.50 across six diverse zero-shot benchmarks, consistently placing 1st or 2nd against heavyweights like DepthPro and Metric3D v2.
- Robotic VLA Planning: When distilled into a Vision-Language-Action model on the LIBERO benchmark, MetricAnything achieved an average success rate of 87.7%, outperforming models utilizing Depth Anything v2.
- Spatial Intelligence in MLLMs: Using the pretrained ViT from MetricAnything as a frozen visual encoder for a Multimodal LLM boosted its score on the VSI-Bench spatial reasoning benchmark to 58.3, significantly higher than the previous state-of-the-art open-source baseline (48.4).
Limitations and Future Work
Despite its strong generalization, the framework currently operates under the central projection camera assumption (pinhole model). It has not yet been explicitly extended or optimized for specialized camera configurations, such as non-central or non-pinhole setups (e.g., catadioptric systems), even though it shows decent zero-shot handling of fisheye and panoramic distortions. Additionally, while the paper thoroughly explores data scaling, the scalability of the model architecture itself (e.g., moving to multi-billion parameter ViTs) remains an open direction for future research.
Summary updated