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

TL;DR

EDNet is a novel stereo matching framework that achieves state-of-the-art accuracy while being significantly faster and more memory-efficient than traditional 3D CNN-based models. It achieves this by replacing heavy 3D convolutions with a "combined cost volume" and using an attention-based spatial residual module to guide the refinement of disparity maps across multiple scales.

What Problem Does This Paper Address?

Stereo matching—estimating the depth of a scene by comparing two slightly offset images—is a cornerstone of autonomous driving and robotics. Current top-performing models typically rely on 4D concatenation volumes processed by deep 3D Convolutional Neural Networks (CNNs).

While accurate, these 3D CNNs are computational gluttons: they require massive amounts of memory and are often too slow for real-time applications. Conversely, faster methods using simple correlation volumes (which measure feature similarity) often struggle with accuracy because they lack the rich contextual information found in concatenation volumes. The authors of EDNet set out to bridge this gap, seeking a "best of both worlds" approach that is both fast and precise.

Methods

The authors introduce two primary innovations to the standard stereo matching pipeline:

  1. Cost Volume Combination: Instead of choosing between a correlation volume or a concatenation volume, EDNet uses both. It constructs a 4D concatenation volume but immediately "squeezes" it using a few 3D convolutions into a 3D volume. This is then concatenated with a standard 1D correlation volume. This hybrid "Combined Volume" preserves both feature similarity and contextual information but can be processed using much faster 2D convolutions.
  2. Attention-based Spatial Residual (AR) Module: Disparity estimation usually follows a coarse-to-fine strategy, where a rough initial map is iteratively refined. Standard residual learning often lacks guidance on where to fix errors. The AR module uses an attention mechanism—fed by the stereo images, the current disparity estimate, and an error map (the difference between the left image and the warped right image)—to tell the network which pixels (like object boundaries or textureless regions) need the most correction.
Fig. 2: An overview of our proposed EDNet. We exploit the architecture of DispNetC as the backbone. The attention-based spatial residual module and combined volume are proposed for accuracy and efficiency improvement. In order to provide better visualization, the skip connections between the encoder and decoder networks in DispNetC and some other data flow are omitted here.

Datasets

The model was trained and evaluated on several industry-standard benchmarks:

  • Scene Flow: A large-scale synthetic dataset (39,824 image pairs) used for initial training.
  • KITTI 2012 & 2015: Real-world datasets captured from a moving car, featuring sparse ground truth from LiDAR.
  • Middlebury 2014: Used to evaluate how well the model generalizes to completely unseen indoor environments.

Key Insights and Ideas

  • Efficiency through Squeezing: By using 3D convolutions only to compress the 4D volume early on, the authors avoid the memory bottleneck of deep 3D CNNs while retaining the benefits of concatenation-based features.
  • Spatial Guidance Matters: Residual learning is significantly more effective when the model is explicitly shown its own mistakes. The error map acts as a "cheat sheet," highlighting areas where the initial disparity guess was wrong.
  • Multi-scale Error Feedback: Providing updated error maps at every resolution scale (rather than just at the final output) leads to faster convergence and higher accuracy. As shown in Figure 4, increasing the number of scales with error maps directly correlates to lower End-Point Error (EPE).
Fig. 4: Comparison among models with different numbers of error maps. The multi-scale error maps speed up the convergence and achieve a lower loss. “n scale(s)” indicates that the error map is applied to the residual features from scale 0 to scale n.

Key Results

EDNet demonstrates a remarkable balance of speed and accuracy:

  • Accuracy: On the Scene Flow dataset, EDNet achieved an EPE of 0.63, outperforming established models like PSMNet (1.09) and GwcNet (0.76).
  • Speed: It is approximately 7.5× faster than PSMNet and a staggering 45× faster than GANet.
  • Memory: It requires up to 76.5% less runtime memory compared to 3D CNN-based competitors.
  • Qualitative: The model produces much sharper object boundaries and handles "textureless" regions (like flat walls or roads) better than previous state-of-the-art methods.
Fig. 1: The first row is the visualization of residual learning process from scale 3 to scale 2. The residual scale2 is learned from the disparity scale3 for correcting the disparity scale2. With our proposed modules, sharp edges and overall structures can be recovered. Other state-of-the-art methods fail to generate the accurate disparity estimation in low-texture regions as shown in the second row. Please pay more attention to regions pointed by the red arrow.

Limitations and Future Work

While the paper demonstrates excellent generalization on the Middlebury dataset, the authors note that there is still room for improvement in extremely challenging "ill-posed" regions. Future work will involve applying the EDNet architecture to other depth-related tasks, such as full 3D reconstruction and more complex robot navigation scenarios. Specific failure cases or limitations of the 2D-aggregation approach compared to full 3D-aggregation were not discussed in detail.

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