ZipDepth: Bringing Lightweight Zero-Shot Monocular Depth Anywhere, on Any Device

Fabio Tosi, Luca Bartolomei, Matteo Poggi

TL;DR

ZipDepth bridges the massive gap between heavy depth foundation models and lightweight networks by introducing a compact, 6.1M-parameter monocular depth network optimized for edge devices. By combining a hardware-compatible, reparameterizable encoder-decoder architecture with large-scale multi-domain knowledge distillation, ZipDepth achieves robust zero-shot generalization while running at real-time frame rates (up to 77 FPS on an embedded Jetson Orin NX and over 700 FPS on mobile NPUs).

What Problem Does This Paper Address?

Monocular depth estimation—predicting 3D scene depth from a single 2D image—is a foundational block for autonomous driving, robotics, and mobile augmented reality (AR). Recently, massive "foundation models" (like Depth Anything v2 or Marigold) have achieved remarkable success in zero-shot generalization, meaning they perform exceptionally well in entirely unseen environments. However, these models are computational monsters, often containing 300M to 900M parameters and requiring high-end server GPUs just to run at a few frames per second.

On the flip side, existing lightweight depth networks (1M to 8M parameters) are highly efficient but suffer from a fatal flaw: they are almost exclusively trained via self-supervision on single domains (like the KITTI driving dataset). When exposed to a domain shift (e.g., moving from an outdoor street to an indoor living room), their performance degrades catastrophically. ZipDepth addresses this stark dichotomy, proving that efficiency and zero-shot cross-domain accuracy do not have to be mutually exclusive.

Methods

The authors achieve this balance through a combination of data-scale distillation and hardware-aware architectural design:

  1. Large-Scale Knowledge Distillation: Instead of training from scratch on limited ground-truth data, ZipDepth acts as a student network, distilling cross-domain knowledge from a powerful teacher model (Depth Anything v2-Large). Remarkably, the authors optimized the training pipeline to require only two consumer-grade NVIDIA RTX 3090 GPUs over three days.
  2. Reparameterizable Backbone: The encoder utilizes structural reparameterization (similar to RepVGG). During training, the network maintains multiple parallel convolutional branches to learn rich representations. At inference time, these branches are mathematically fused into clean, single $3\times3$ convolutions. This keeps the inference graph simple and natively supported by standard runtimes (TensorRT, CoreML, ONNX) without custom operators.
  3. Efficiency Modules: To expand the network's receptive field without the heavy overhead of standard dilated convolutions or self-attention, ZipDepth integrates lightweight modules like Strip-Pooling Attention and Global Context (GC) blocks, maintaining an $O(N)$ computational complexity.
  4. Hardware-Adaptive Convex Upsampling: To generate sharp depth boundaries at full resolution, ZipDepth introduces a dual-path upsampling strategy tailored to the deployment target:
  5. GPU/TensorRT path: Uses an unfold-and-softmax combination optimized for desktop and embedded GPUs.
  6. NPU/Mobile path: Avoids complex operators that bottleneck mobile chips, instead utilizing standard convolutions and a learned gate that intelligently blends nearest-neighbor and bilinear interpolations.
Overview of the ZipDepth architecture showing the encoder stream, progressive decoder, and hardware-adaptive upsampling paths.

Datasets

  • Training Data: ZipDepth was trained on a massive aggregated pool of 17 in-the-wild datasets totaling approximately 14.1 million images. This includes diverse sources such as Object365, ADE20K, COCO, SA-1B, MegaDepth, Cityscapes, and BDD100K.
  • Evaluation Benchmarks: To test true zero-shot generalization, the model was evaluated on five entirely unseen real-world datasets:
  • NYUv2 & ScanNet (Indoor environments)
  • KITTI (Outdoor driving scenes)
  • ETH3D (High-resolution real-world captures)
  • DIODE (Mixed indoor/outdoor sensor data)
  • UnrealStereo4K (Synthetic dataset used specifically to evaluate edge/boundary accuracy)

Key Insights and Ideas

  • Decoupling Capacity from Generalization: The paper demonstrates that a model's ability to generalize across domains is heavily driven by the diversity of its training data, not just its parameter count. By leveraging a foundation model as a teacher, a 6.1M parameter network can inherit robust zero-shot capabilities.
  • Upsampling is a Hardware Bottleneck: A major "aha moment" is that standard mathematical upsampling techniques (like unfold operators) that run efficiently on server GPUs can severely cripple mobile NPUs due to memory layout constraints. Providing a hardware-adaptive path is essential for true cross-platform deployment.
  • The Power of the Split Stem: Retaining an intermediate $\frac{1}{2}$-resolution activation skip connection directly from the initial stem to the final decoder stages preserves crucial high-frequency boundary details that are otherwise lost in aggressively downsampled lightweight backbones.

Key Results

ZipDepth establishes a new state-of-the-art trade-off between accuracy and efficiency among lightweight models:

  • Embedded Efficiency: On an NVIDIA Jetson Orin NX (configured to a strict 15W power mode), ZipDepth achieves 34.4 FPS in FP32 precision and consumes just 396.6 mJ per frame. This represents a 17× energy reduction compared to Depth Anything v2-Small and a 137× reduction compared to the Large variant.
  • Zero-Shot Accuracy: ZipDepth ranks first or second among all lightweight competitors across every single benchmark, significantly narrowing the accuracy gap to foundation models that possess 50× more parameters.
  • Mobile Speed: Thanks to the NPU-friendly upsampling path, ZipDepth clocks an astonishing 375 FPS on an iPhone 12 and 715 FPS on an iPad Pro M4 using CoreML.
Energy vs. Accuracy trade-off plot highlighting ZipDepth's superior performance in the embedded regime.
Qualitative depth estimation examples across diverse and challenging real-world scenes.

Limitations and Future Work

Despite its strengths, the authors note a few limitations:

  • The Foundation Gap: While ZipDepth represents a massive leap for lightweight networks, it still cannot fully match the absolute pixel-level accuracy of 300M+ parameter foundation models in highly complex scenes.
  • Temporal Flickering: Because ZipDepth processes images frame-by-frame, it suffers from temporal inconsistency (flickering) when applied directly to video sequences.

Future work will focus on closing the remaining accuracy gap through advanced distillation techniques, integrating lightweight temporal modules for video consistency, and extending the architecture to support absolute metric depth and 3D point-map predictions.

Summary updated

BibTeX
@misc{tosi2026zipdepth,
  author = {Fabio Tosi and Luca Bartolomei and Matteo Poggi},
  title = {{ZipDepth: Bringing Lightweight Zero-Shot Monocular Depth Anywhere, on Any Device}},
  year = {2026},
  eprint = {2607.08771},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.08771},
}
Figure