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

Multi-Frame Self-Supervised Depth with Transformers

Vitor Guizilini, Rares Ambrus, Dian Chen, Sergey Zakharov, Adrien GaidonCVPR 2022

Overview

Estimating depth from a single moving camera—monocular depth estimation—is a fundamental challenge in computer vision. While single-frame models rely on appearance cues like vanishing points, multi-frame models leverage the geometric relationships between consecutive video frames. DepthFormer introduces a novel transformer-based architecture that significantly improves this process by replacing traditional, hand-crafted similarity metrics with learned cross-attention layers. This approach achieves a new state-of-the-art on major benchmarks and even rivals supervised methods.

The Matching Challenge

The standard approach for multi-frame models involves building a cost volume: for a pixel in a target frame, the model searches for its match along the epipolar line in a context frame. Traditionally, this matching relies on fixed mathematical formulas like SSIM (Structural Similarity) or SAD (Sum of Absolute Differences). However, these metrics are brittle; they struggle with textureless regions, repeating patterns, or lighting changes, often leading to ambiguous probability distributions and noisy depth maps.

DepthFormer Architecture

DepthFormer reimagines cost volume generation by utilizing the strengths of Transformers to learn a more robust matching function. The pipeline consists of four primary components:

  1. Epipolar Sampling: Candidate matches are sampled along the epipolar line for every pixel in the target image.
  2. Cross-Attention Matching: Instead of a fixed formula, DepthFormer uses self- and cross-attention layers. This allows the model to "attend" to relevant features across frames, learning to ignore noise and focus on true geometric correspondences.
  3. High-Response Decoding: To convert matching probabilities into final depth values, the model employs a localized "high-response window." This focuses on the peak probability while maintaining sub-pixel accuracy, providing robustness against multi-modal distributions where a model might otherwise oscillate between two possible depths.
  4. Multi-Scale Fusion: To handle scenarios where geometric matching is impossible (e.g., a static camera with zero parallax), the model fuses multi-frame geometric features with features from a standard single-frame appearance encoder.
The DepthFormer architecture combines a multi-frame transformer-based branch with a single-frame branch for robust depth estimation.

Key Insights and Results

Sharper Matching Distributions

A core insight of the paper is the superiority of learned attention over traditional metrics. While SSIM often produces broad, ambiguous distributions, the cross-attention mechanism produces sharp peaks, effectively eliminating the ambiguity that leads to errors in previous models.

Comparison of matching distributions: Cross-attention produces a sharp, accurate peak at the ground truth depth bin, whereas SSIM is broad and ambiguous.

Geometric Transferability

The authors discovered that the learned matching function is remarkably modular. A cross-attention module trained on synthetic data (like TartanAir) can be "hot-swapped" into a model for real-world datasets like KITTI with minimal performance loss. This suggests the model learns fundamental geometric principles rather than just memorizing specific textures.

Benchmark Performance

DepthFormer sets new records for self-supervised monocular depth:

  • KITTI: Achieves an AbsRel of 0.090, significantly outperforming previous leaders like ManyDepth (0.098).
  • DDAD: Reaches an AbsRel of 0.135, establishing a new state-of-the-art on this challenging long-range dataset.
  • Competitive with Supervised Models: Remarkably, DepthFormer performs on par with specialized supervised architectures, despite never seeing ground-truth depth during training.

Conclusion and Limitations

While DepthFormer represents a significant leap forward, challenges remain. The model currently assumes a static world, which can lead to errors around independently moving objects. Additionally, like all monocular methods, it faces scale ambiguity without external height or velocity data. Finally, the computational intensity of Transformers suggests that future work should explore more efficient variants, such as Swin Transformers, for real-time deployment.

Summary updated

BibTeX
@inproceedings{guizilini2022multi,
  author = {Vitor Guizilini and Rares Ambrus and Dian Chen and Sergey Zakharov and Adrien Gaidon},
  title = {{Multi-Frame Self-Supervised Depth with Transformers}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  url = {https://openreview.net/forum?id=CyiJ0qn0gnf},
}
Figure