TL;DR
Modern AI models that estimate real-world distances from a single photo often fail a basic geometric test: digital zoom. Instead of recognizing that a crop-and-resize operation just changes the focal length, these models mistake it for the camera physically moving closer to the scene. The authors provide a label-free way to audit and fix this "zoom-squash" error, significantly improving model consistency.
What Problem Does This Paper Address?
Estimating "metric depth"—the distance to objects in meters—from a single 2D image is a core task for robotics, autonomous driving, and mobile photography. However, a single photo is inherently ambiguous: a small object close to a wide-angle lens can look identical to a large object far away through a telephoto lens.
To solve this, models must either be told the camera's settings (intrinsics) or "guess" them from the pixels. This paper reveals that even state-of-the-art models like Depth Anything V2 and Depth Pro are easily fooled by digital zoom (cropping an image and enlarging it). Because these models often rely on the "apparent size" of familiar objects (like cars or doors) to judge distance, they incorrectly predict that objects in a digitally zoomed photo are much closer than they actually are, even though nothing in the physical scene has moved.
Methods
The authors introduce a simple, label-free "digital zoom test" based on two exponents:
- $\alpha$ (Depth Exponent): Measures how much the estimated depth changes with a zoom factor $s$. Ideally, $\alpha = 0$ (depth shouldn't change).
- $\beta$ (Focal Exponent): Measures how much the model's estimate of the focal length grows. Ideally, $\beta = 1$ (focal length should scale linearly with zoom).
The paper explores three groups of models:
- Pixels-only: Models that ignore camera settings entirely.
- Camera-predicting: Models that try to estimate the focal length from the image.
- Camera-taking: Models that are given the camera settings as input.
To fix the failures, they propose:
- FocalUnshrink: A training-free mathematical correction for camera-predicting models that "un-biases" their conservative focal length estimates.
- EFT+B (Equivariance Fine-Tuning + Blur invariance): A self-supervised fine-tuning method that forces a model to be consistent across different zoom levels while preventing it from using image blur as a "shortcut" to detect zoom.
Datasets
The audit was performed on 800 images across four diverse sets:
- KITTI: Outdoor driving scenes (LiDAR ground truth).
- NYUv2: Indoor home/office scenes (Kinect ground truth).
- DIODE: High-resolution indoor and outdoor scans.
- SR-RAW: Used for control tests involving real optical zoom lenses to ensure the findings weren't just artifacts of digital resizing.
Key Insights and Ideas
- The Zoom-Squash Ambiguity: A zoomed photo is, pixel-for-pixel, identical to a photo of a scene that has been physically "squashed" along the viewing axis. Models that judge distance by size alone cannot distinguish between the two.
- The $\alpha + \beta = 1$ Signature: Most models fall on this line. It represents a "natural failure mode" where the model preserves the lateral size of objects but fails to scale depth correctly. If a model doesn't update its focal estimate ($\beta=0$), it must change its depth estimate ($\alpha=1$) to keep the geometry consistent with what it sees.
- Regression "Plays it Safe": Focal length estimators trained by standard regression tend to stay close to the average camera seen during training. This causes them to under-scale when faced with high zoom factors ($\beta < 1$).
- Blur is a Shortcut: When fine-tuning for zoom consistency, models often learn that "blurry = zoomed" because digital zoom involves upscaling. The authors had to add a specific blur-invariance term to force the model to learn actual geometry instead of just detecting resolution loss.
Key Results
- Depth Anything V2 (S) failed the test significantly with $\alpha = 0.95$. A $3\times$ zoom made the model think the scene was nearly $3\times$ closer.
- Depth Pro performed better ($\alpha \approx 0.31$) because it predicts the camera, but its focal estimate only grew by $\sim 2\times$ for a $3\times$ zoom ($\beta \approx 0.65$).
- Geometric Consistency: When given the true zoomed camera intrinsics, models like Depth Pro and DA3-Nested achieved near-perfect consistency ($\alpha \approx 0$), proving the error lies in the camera estimation, not the depth network itself.
- Effective Fixes: The proposed EFT+B fine-tuning reduced $\alpha$ to $0.05$ on KITTI and $0.07$ on NYUv2, making the models significantly more robust to cropping and zooming in real-world applications.
Limitations and Future Work
- Generalization Cost: While fine-tuning improves zoom consistency, it can slightly degrade absolute accuracy on "normal" (unzoomed) or unseen photos.
- FocalUnshrink Requirements: This correction requires a reliable focal cue and a small sample of unlabeled images from the target domain to calibrate the "prior" focal length.
- Optical vs. Digital: While the digital zoom test is a powerful proxy, real optical zoom involves complex lens effects (like changing distortion or bokeh) that digital cropping doesn't perfectly replicate.
The authors conclude that the "digital zoom test" should become a routine sanity check for any new metric depth model to ensure it truly understands 3D geometry rather than just memorizing object sizes.
Summary updated