NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

FA-Depth: Toward Fast and Accurate Self-supervised Monocular Depth Estimation

Fei Wang, Jun Cheng · DOI

Abstract

Most existing methods often rely on complex models to predict scene depth with high accuracy, resulting in slow inference that is not conducive to deployment. To better balance precision and speed, we first designed SmallDepth based on sparsity. Second, to enhance the feature representation ability of SmallDepth during training under the condition of equal complexity during inference, we propose an equivalent transformation module (ETM). Third, to improve the ability of each layer in the case of a fixed SmallDepth to perceive different context information and improve the robustness of SmallDepth to the left-right direction and illumination changes, we propose pyramid loss. Fourth, to further improve the accuracy of SmallDepth, we utilized the proposed function approximation loss (APX) to transfer knowledge in the pretrained HQDecv2, obtained by optimizing the previous HQDec to address grid artifacts in some regions, to SmallDepth. Extensive experiments demonstrate that each proposed component improves the precision of SmallDepth without changing the complexity of SmallDepth during inference, and the developed approach achieves state-of-the-art results on KITTI at an inference speed of more than 500 frames per second and with approximately 2 M parameters. The code and models are available at https://github.com/fwucas/FA-Depth.

Introduction

Monocular depth estimation—the task of predicting 3D depth from a single 2D image—is a critical component for robotics and autonomous driving. However, researchers typically face a significant "speed-accuracy trade-off." High-accuracy models are often too computationally heavy for real-time deployment on edge devices, while lightweight models typically suffer from poor feature representation and "grid artifacts" (unnatural patterns in the output). Furthermore, self-supervised methods often struggle with robustness to lighting changes and maintaining consistency when an image is flipped. FA-Depth addresses these challenges by introducing SmallDepth, a lightweight model optimized through advanced training-time techniques that do not increase inference complexity.

Methodology

The FA-Depth framework employs several novel components to break the speed-accuracy barrier by shifting complexity from inference to the training phase.

SmallDepth and Equivalent Transformation Module (ETM)

The core architecture, SmallDepth, is a redesigned "sparse" backbone that uses sparse downsampling and double-scale sparse residual modules. This reduces parameters and computational load (FLOPs) while maintaining a large receptive field. To enhance its capability, the authors introduce the Equivalent Transformation Module (ETM). This is a re-parameterization trick: during training, the model uses multiple filters of different shapes in parallel to learn complex features. Before deployment, these are mathematically collapsed into a single, standard filter, meaning the model gets "smarter" during training without getting "heavier" during inference.

Pyramid Loss and Knowledge Distillation

To improve robustness, the model is trained using a Pyramid Loss. It processes multiple versions of the same image simultaneously—low-resolution (for global context), high-resolution (for fine details), flipped, and color-enhanced—and enforces a consistency loss.

Furthermore, the authors utilize Function Approximation Loss (APX) to distill knowledge from a high-quality "teacher" model, HQDecv2, into the SmallDepth "student." HQDecv2 is an improved version of a previous high-quality decoder designed to eliminate grid artifacts. The APX loss includes a smart masking scheme to ignore unreliable pseudo-depths, such as those in occluded areas, ensuring the student only learns valid features.

Overview of the FA-Depth training pipeline, showing the interaction between SmallDepth, the teacher network (BigDepthNet/HQDecv2), and the various loss functions including Pyramid and APX losses.

Results and Discussion

The researchers evaluated FA-Depth on the KITTI RAW and DDAD benchmarks, demonstrating top-tier efficiency and accuracy.

Performance and Efficiency

SmallDepth achieves a blistering inference speed of 557 FPS on an RTX 4090. It uses only 2.35 million parameters and 0.42 GFLOPs, making it roughly 6x smaller than the popular Monodepth2. Despite its size, it achieves an AbsRel of 0.094 on KITTI, outperforming many larger models. The teacher model, HQDecv2, achieves an AbsRel of 0.087, setting a new state-of-the-art for self-supervised methods.

Qualitative Analysis

Visual results confirm that HQDecv2 successfully removes the "checkerboard" grid artifacts that plagued previous high-quality decoders. The APX position mask identifies "black holes" in the teacher's predictions (like occlusions or reflective surfaces) and prevents the student from learning these errors.

Qualitative depth estimation results on the KITTI dataset, illustrating the input images, predicted depth maps, and the masks used for selective distillation to ensure high-fidelity knowledge transfer.

Conclusion

FA-Depth provides a robust solution for real-time autonomous systems by successfully bridging the gap between speed and accuracy. By utilizing ETM, Pyramid Loss, and selective distillation via APX, the model achieves state-of-the-art performance with minimal inference overhead. While training requires more resources, the resulting lightweight model is ideal for edge deployment. Future work will address the "sky problem"—where models struggle with infinite depth—and further optimize training memory constraints.

Summary updated

BibTeX
@misc{wang2024fa,
  author = {Fei Wang and Jun Cheng},
  title = {{FA-Depth: Toward Fast and Accurate Self-supervised Monocular Depth Estimation}},
  year = {2024},
  eprint = {2405.10885},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.10885},
}
Figure