EGA-Depth: Efficient Guided Attention for Self-Supervised Multi-Camera Depth Estimation

Yunxiao Shi, Hong Cai, Amin Ansari, Fatih Porikli

Introduction

In the field of autonomous driving, achieving a consistent 360-degree understanding of the environment is a fundamental requirement for safe navigation. While monocular depth estimation has seen significant progress, individual camera estimates often lack spatial consistency when stitched together. Recent multi-camera methods have attempted to address this by employing Transformers to facilitate cross-view communication. However, standard self-attention mechanisms suffer from quadratic computational complexity relative to the number of pixels. This bottleneck forces models to operate on low-resolution feature maps, resulting in blurry depth predictions and the loss of critical fine-grained details.

EGA-Depth (Efficient Guided Attention) addresses these challenges by introducing a novel attention mechanism that optimizes both spatial and temporal feature integration, enabling high-resolution processing within a manageable computational budget.

Methodology

Guided Attention Mechanism

The core innovation of EGA-Depth is the Guided Attention module. In a standard self-attention setup, every pixel in every camera view attends to every other pixel across all cameras. This is computationally wasteful because, in a typical surround-view camera rig, a front-facing camera shares no visual overlap with a rear-facing camera.

EGA-Depth constrains the attention mechanism by treating the current camera view as the Query ($Q$) and only its immediate spatial neighbors as the Key ($K$) and Value ($V$). By focusing computation only on overlapping views, the model reduces redundant calculations while maintaining the necessary cross-view context for depth consistency.

Linear Complexity and Scaling

To further improve efficiency, the authors adopt a projection strategy inspired by the Linformer architecture. The $K$ and $V$ matrices are projected into a lower, fixed dimension ($k_s$), transforming the complexity from quadratic to linear. This efficiency gain allows the model to:

  1. Process High-Resolution Features: EGA-Depth can handle feature maps up to 4x larger than previous state-of-the-art (SOTA) models, capturing sharper object boundaries.
  2. Integrate Temporal Data: The reduced memory footprint allows the model to incorporate features from previous frames into the $K$ and $V$ sets, leveraging temporal correlations to improve depth accuracy over time.

Experimental Setup

The model was evaluated on two primary autonomous driving benchmarks:

  • nuScenes: A large-scale dataset containing 1.4 million images from 1,000 scenes, featuring a 6-camera setup and diverse environmental conditions (e.g., rain, night).
  • DDAD (Dense Depth for Autonomous Driving): A dataset focused on long-range depth estimation (up to 250m) in complex urban environments across the U.S. and Japan.

Key Results and Insights

Performance and Efficiency

EGA-Depth establishes a new state-of-the-art for self-supervised multi-camera depth estimation. On the nuScenes benchmark, the high-resolution variant (EGA-Depth-HR) achieved a 35% reduction in Squared Relative Error compared to the previous leading model, SurroundDepth.

Furthermore, the model demonstrates a superior Pareto frontier between accuracy and efficiency. The light version (EGA-Depth-LR) outperforms existing SOTA models while requiring 51% less computation (64.9 GFLOPs compared to 132.3 GFLOPs).

Qualitative Improvements

Beyond numerical metrics, EGA-Depth produces qualitatively superior depth maps. The ability to process higher resolutions results in significantly sharper object boundaries and improved robustness in adverse weather conditions, such as rain, where traditional monocular methods frequently struggle with reflections and visibility issues.

Discussion and Limitations

While EGA-Depth represents a significant step forward, it shares some common limitations with the broader class of self-supervised depth estimators. The model predicts relative depth and requires median-scaling with ground truth data to obtain absolute metric distances. Additionally, the benefits of temporal integration were somewhat constrained on the nuScenes dataset due to its low frame rate (2Hz), which limits the overlap between consecutive frames.

Future research directions include exploring more sophisticated temporal fusion techniques and moving toward "metric" self-supervised learning to eliminate the need for external scaling factors.

Summary updated

BibTeX
@inproceedings{shi2023ega,
  author = {Yunxiao Shi and Hong Cai and Amin Ansari and Fatih Porikli},
  title = {{EGA-Depth: Efficient Guided Attention for Self-Supervised Multi-Camera Depth Estimation}},
  booktitle = {Workshops @ CVPR},
  year = {2023},
}
Figure