EDNet: Efficient Disparity Estimation With Cost Volume Combination and Attention-Based Spatial Residual

Songyan Zhang, Zhicheng Wang, Qiang Wang, Jinshuo Zhang, Gang Wei, Xiaowen Chu

Abstract

EDNet is a novel deep learning architecture designed for high-accuracy stereo matching with superior computational efficiency. By integrating a "squeezed" context volume with an attention-guided spatial residual learning mechanism, EDNet achieves state-of-the-art results while being significantly faster and more memory-efficient than traditional 3D CNN-based models. This makes it highly suitable for real-time applications such as autonomous driving and robotics.

Introduction

Stereo matching is a fundamental task in computer vision, essential for depth perception in autonomous systems. Current state-of-the-art models typically utilize 4D concatenation volumes processed by deep 3D Convolutional Neural Networks (CNNs). While these models achieve high accuracy, they are computationally intensive and memory-heavy, hindering real-time deployment on resource-constrained hardware. Conversely, faster models often rely on correlation layers that sacrifice contextual information, leading to errors in challenging regions like glass or repetitive patterns. EDNet addresses this trade-off by achieving 3D CNN-level accuracy with the efficiency of 2D CNN-based architectures.

Methods

The EDNet architecture introduces two core innovations to optimize the stereo matching pipeline: Cost Volume Combination and the Attention-based Spatial Residual (AR) Module.

Cost Volume Combination

Rather than choosing between context-rich 4D volumes and fast correlation volumes, EDNet leverages both. It constructs a combined volume by taking a 4D concatenation volume and "squeezing" it through a series of 3D convolutions into a compact representation. This squeezed volume is then merged with a 1D correlation volume. This approach allows the network to utilize efficient 2D convolutions for final disparity regression while retaining critical global context.

Attention-based Spatial Residual (AR) Module

Standard refinement modules often lack awareness of specific error locations. EDNet’s AR module incorporates an explicit error-aware mechanism. It generates an error map by warping the right image onto the left based on the current disparity estimate. A spatial attention mechanism then highlights regions with high errors, such as object boundaries, directing the network's learning capacity toward the most inaccurate areas. This refinement process is applied across multiple scales, progressively sharpening the disparity map.

Overview of the EDNet architecture and the AR module.

Experimental Results

The model was evaluated on standard benchmarks including Scene Flow, KITTI 2012 & 2015, and Middlebury 2014.

Performance and Efficiency

EDNet demonstrates a significant leap in efficiency. It is approximately 45x faster than GANet and 7.5x faster than PSMNet, achieving ~20 FPS on an NVIDIA RTX 2080Ti. Furthermore, it consumes less than 25% of the memory required by heavy-duty models like Bi3D (2.52 GB vs 10.74 GB).

Accuracy and Generalization

On the Scene Flow dataset, EDNet achieved an End-Point Error (EPE) of 0.63, outperforming several significantly slower models. Qualitative evaluations on the Middlebury dataset show that EDNet produces smoother disparity maps and sharper object boundaries, indicating strong generalization capabilities.

Qualitative comparison of disparity estimation results across different models.

Conclusion

EDNet successfully bridges the gap between high-accuracy 3D CNN models and high-efficiency 2D CNN models for stereo matching. By utilizing context compression and explicit error feedback, it provides a robust solution for real-time depth estimation. Future work may extend this architecture to related domains such as multi-view stereo and 3D reconstruction.

Summary updated

BibTeX
@inproceedings{zhang2021ednet,
  author = {Songyan Zhang and Zhicheng Wang and Qiang Wang and Jinshuo Zhang and Gang Wei and Xiaowen Chu},
  title = {{EDNet: Efficient Disparity Estimation With Cost Volume Combination and Attention-Based Spatial Residual}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00539},
}
Figure