Introduction
Monocular depth estimation—the task of predicting 3D depth from a single 2D image—is a fundamental challenge in computer vision with applications ranging from robotics to augmented reality. Recent advancements have shifted toward "mix-dataset training" to improve the generalization of models across diverse environments. To manage the varying depth scales inherent in different datasets, researchers often employ Scale-and-Shift Invariant (SSI) losses.
However, while SSI losses simplify the training process, they introduce a significant geometric flaw: the resulting depth predictions are only accurate up to an unknown scale and an unknown shift. While a scale error merely affects the perceived size of a scene, a shift error physically distorts the geometry. This distortion can turn flat surfaces into curved ones or warp objects when viewed from alternative angles. Correcting these "shift" errors typically requires expensive 3D ground-truth data, which is difficult to obtain for "in-the-wild" imagery.
The Geometry-Preserving Framework
This paper introduces a novel framework that leverages differentiable rendering to enforce geometric consistency without requiring 3D labels. The core idea is that while a distorted 3D structure might appear plausible from the original camera viewpoint, its geometric inconsistencies become apparent when viewed from a different perspective.
The Pipeline
The proposed method follows a four-step process to ensure geometric integrity:
- Depth Prediction & Unprojection: The model predicts a depth map for an input image. Using an estimated focal length, this depth map is "unprojected" into a 3D point cloud.
- Differentiable Rendering: The framework virtually rotates and translates a camera to render a novel view (both an RGB image and a depth map) from the generated point cloud. Because the renderer is differentiable, gradients can flow back through the rendering process to the depth prediction network.
- Consistency Losses:
- Depth Consistency: The model predicts depth for the newly rendered view. This prediction is then compared against the depth map generated by the renderer; they must match for the geometry to be considered consistent.
- Image Consistency: The framework attempts to "re-render" the original view from the new viewpoint. If the underlying geometry is accurate, the re-rendered image should align perfectly with the original input.
- Multi-Focal-Length (MFL) Loss: Camera intrinsics, such as focal length, are often missing from web-scraped images. The authors address this by testing a discrete set of possible focal lengths and selecting the one that minimizes the consistency loss, effectively "discovering" the camera's properties during the training phase.
Experimental Setup and Results
The authors trained their model on a diverse mixture of datasets, including DIML (121K images), Taskonomy (114K), Holopix50K (48K), and HRWSI (20K). To test generalization, the model was evaluated in a zero-shot setting across various indoor and outdoor environments, including NYU V2, ScanNet, KITTI, and ETH3D.
Quantitative Performance
The proposed method demonstrated significant improvements over existing state-of-the-art (SOTA) models, particularly in preserving 3D structure:
- Indoor Accuracy: On the NYU V2 dataset, the model achieved an Absolute Relative Error (AbsRel) of 7.7, outperforming previous SOTA models like DPT (8.8) and Leres (9.0).
- Outdoor Generalization: The performance gains were even more substantial in outdoor settings. On the ETH3D dataset, the model surpassed the second-best result by 47% in terms of AbsRel.
Qualitative Impact
Beyond numerical metrics, the framework produces visible improvements in 3D reconstruction. While standard SSI-based models often produce "bent" or warped reconstructions of flat surfaces, this method yields sharp, linear, and realistic 3D point clouds. Furthermore, the framework can be used as a self-supervised refinement tool to recover domain-specific scale and shift coefficients for pre-trained models (like MiDaS) using only unlabeled images.
Limitations and Future Work
Despite its success, the framework faces certain challenges. Complex scenes with significant occlusions can be difficult for simple point-cloud rendering, as pixels that disappear during camera rotation must be handled with masks. Additionally, the current Multi-Focal-Length loss relies on a discrete set of options; moving toward a continuous optimization approach could further refine camera intrinsic estimation. Finally, the inclusion of a rendering pass and a second depth prediction step increases the computational overhead during training compared to standard supervised methods.
Conclusion
By using geometry itself as a supervisor, this framework provides a robust solution to the shift-error problem in monocular depth estimation. The ability to learn accurate 3D structures and camera intrinsics from unlabeled images marks a significant step toward truly generalizable and geometry-aware computer vision models.
Summary updated