AANet: Adaptive Aggregation Network for Efficient Stereo Matching

Haofei Xu, Juyong Zhang

Abstract

Despite the remarkable progress made by learning based stereo matching algorithms, one key challenge remains unsolved. Current state-of-the-art stereo models are mostly based on costly 3D convolutions, the cubic computational complexity and high memory consumption make it quite expensive to deploy in real-world applications. In this paper, we aim at completely replacing the commonly used 3D convolutions to achieve fast inference speed while maintaining comparable accuracy. To this end, we first propose a sparse points based intra-scale cost aggregation method to alleviate the well-known edge-fattening issue at disparity discontinuities. Further, we approximate traditional cross-scale cost aggregation algorithm with neural network layers to handle large textureless regions. Both modules are simple, lightweight, and complementary, leading to an effective and efficient architecture for cost aggregation. With these two modules, we can not only significantly speed up existing top-performing models (e.g., 41x than GC-Net, 4x than PSMNet and 38x than GA-Net), but also improve the performance of fast stereo models (e.g., StereoNet). We also achieve competitive results on Scene Flow and KITTI datasets while running at 62ms, demonstrating the versatility and high efficiency of the proposed method. Our full framework is available at https://github.com/haofeixu/aanet.

Introduction

Stereo matching—the process of estimating depth by comparing two slightly offset images—is a cornerstone of computer vision, essential for autonomous driving and augmented reality. For years, the field has been dominated by architectures utilizing 3D convolutions to regularize 4D cost volumes. While accurate, these models are computationally expensive, requiring massive memory and power. AANet (Adaptive Aggregation Network) addresses this bottleneck by replacing costly 3D convolutions with lightweight, adaptive 2D modules without sacrificing performance.

Methods

The AANet architecture relies on two novel modules to replace 3D CNNs, processing a 3D cost volume built via simple correlation to keep computations in the efficient 2D domain.

Adaptive Intra-Scale Aggregation (ISA)

Traditional aggregation methods often suffer from "edge-fattening," where object boundaries are blurred. ISA addresses this by using deformable convolutions to learn a sparse set of sampling points. Instead of a fixed square window, the network learns to sample points that likely belong to the same object, avoiding sampling across depth boundaries. This approach effectively modernizes the traditional concept of "adaptive support weights" within a deep learning framework.

Comparison of standard grid sampling (b) and AANet's adaptive sampling (c) on a reference image (a).

Adaptive Cross-Scale Aggregation (CSA)

Stereo matching faces significant challenges in textureless regions where local features are ambiguous. CSA addresses this by aggregating cost volumes across multiple scales (1/3, 1/6, and 1/12 resolution) simultaneously. This multi-scale approach allows the network to leverage global context from coarser resolutions to resolve ambiguities at finer scales, effectively mimicking traditional cross-scale algorithms to handle large, featureless areas.

Experimental Results

AANet was evaluated on industry-standard benchmarks including Scene Flow, KITTI 2012/2015, and Middlebury 2014. The results highlight a dramatic improvement in efficiency:

  • Speed: AANet runs in just 62ms on an NVIDIA V100 GPU.
  • Efficiency: It is 41x faster than GC-Net, 38x faster than GA-Net, and 4x faster than PSMNet.
  • Accuracy: On the Scene Flow dataset, AANet achieved an End-Point Error (EPE) of 0.87, outperforming the much heavier PSMNet (1.09).
  • Generalization: When tested on the Middlebury dataset without fine-tuning, AANet produced significantly sharper object boundaries than its 3D-based competitors, demonstrating superior robustness to unseen environments.

Conclusion

AANet demonstrates that intelligent, adaptive 2D sampling can achieve the regularization effects of 3D convolutions at a fraction of the computational cost. By replacing cubic-complexity 3D kernels with efficient adaptive aggregation, AANet makes high-quality real-time depth estimation feasible on standard hardware, offering a versatile solution for real-world robotics and vision tasks.

Summary updated

BibTeX
@inproceedings{xu2020aanet,
  author = {Haofei Xu and Juyong Zhang},
  title = {{AANet: Adaptive Aggregation Network for Efficient Stereo Matching}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  url = {https://openreview.net/forum?id=cRjmdDy4Nl},
}
Figure