iDisc: Internal Discretization for Monocular Depth Estimation

Luigi Piccinelli, Christos Sakaridis, Fisher Yu

Abstract

Monocular depth estimation (MDE) is a fundamental yet ill-posed computer vision task where a single 2D image can correspond to an infinite number of 3D configurations. Traditional approaches often rely on rigid geometric priors or fixed depth bins, which can limit generalization and expressiveness. We present iDisc, a novel architecture that introduces an "Internal Discretization" bottleneck. By learning to represent complex 3D scenes as a small set of high-level patterns—without enforcing rigid priors—iDisc achieves state-of-the-art performance on NYU-Depth v2 and KITTI benchmarks and demonstrates superior zero-shot generalization to unseen environments.

Introduction

Predicting 3D distance from a single 2D image requires models to leverage strong contextual cues. Current state-of-the-art (SotA) methods typically rely on two types of constraints:

  1. Geometric Priors: Forcing the model to assume the world is composed of flat planes (piecewise planarity).
  2. Ordinal Regression: Discretizing the continuous depth range into fixed, pre-defined "bins."

While effective, these constraints limit a model's ability to represent arbitrary, complex shapes. Furthermore, such models often overfit to the specific geometry of their training sets, leading to poor performance in novel environments. iDisc addresses these limitations by discretizing internal feature representations rather than the final output.

Methodology: The Internal Discretization Module

The core of iDisc is the Internal Discretization (ID) module, which acts as a "continuous-discrete-continuous" bottleneck. Unlike previous methods, iDisc clusters internal features into a small set of Internal Discrete Representations (IDRs).

The iDisc pipeline: (a) Input image, (b) Predicted depth map, and (c-d) Visualizations of learned Internal Discrete Representations (IDRs) that partition the scene into high-level geometric patterns.

The process occurs in two main stages:

  • Adaptive Feature Partitioning (AFP): This "Continuous-to-Discrete" (C2D) step uses a transposed cross-attention mechanism to cluster millions of input pixels into a small set (e.g., 32) of IDRs. By applying softmax across the IDRs, the model forces a soft, exclusive clustering of the scene's features.
  • Internal Scene Discretization (ISD): This "Discrete-to-Continuous" (D2C) step maps the information from these learned IDRs back onto the continuous pixel space to produce the final depth map.

Crucially, this module is depth-agnostic. The IDRs are not pre-assigned to specific depth values; instead, they learn to represent high-level concepts—such as foreground objects or background planes—that best help the model minimize the final depth loss.

Experimental Results

iDisc was evaluated on standard benchmarks including NYU-Depth v2 (indoor) and KITTI (outdoor). To address the lack of diversity in outdoor benchmarks, the authors also introduced new splits for the Argoverse 1.1 and DDAD datasets.

High-fidelity depth map generated by iDisc, demonstrating its ability to capture sharp transitions and fine-grained details in complex indoor environments.

Key performance highlights include:

  • NYU-Depth v2: Improved RMS error by over 6% and Absolute Relative error by 9% compared to previous leaders.
  • KITTI: Achieved a 3% improvement in RMS and ranked 1st among all published methods on the official benchmark at the time of submission.
  • Zero-Shot Generalization: When trained on NYU and tested on SUN-RGBD or DIODE without fine-tuning, iDisc significantly outperformed competitors, proving that its learned internal patterns are more robust than fixed depth bins.

Key Insights

  • Scene Redundancy: While an image has millions of pixels, it typically contains only a few dozen high-level patterns. iDisc exploits this by compressing the scene into a handful of IDRs.
  • Implicit Structure Discovery: Instead of hard-coding geometric rules, iDisc allows the model to discover useful representations. As seen in the IDR visualizations, different representations naturally learn to focus on specific scene structures like floors, walls, or object boundaries.
  • Versatility: The same architecture achieved SotA results on surface normal estimation, demonstrating that the ID module is a general-purpose tool for dense prediction tasks.

Limitations and Conclusion

The primary trade-off for iDisc's performance is computational complexity. The inclusion of Multi-Scale Deformable Attention (MSDA) and the iterative ID module increases latency compared to simpler encoder-decoder models. While removing MSDA can increase throughput with minimal accuracy loss, real-time performance on edge devices remains a challenge. Future work may involve applying the ID module to other domains like semantic segmentation or optical flow.

Summary updated

BibTeX
@inproceedings{piccinelli2023idisc,
  author = {Luigi Piccinelli and Christos Sakaridis and Fisher Yu},
  title = {{iDisc: Internal Discretization for Monocular Depth Estimation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure