Group-Wise Correlation Stereo Network

Xiaoyang Guo, Kai Yang, Wukui Yang, Xiaogang Wang, Hongsheng Li

Abstract

Stereo matching estimates the disparity between a rectified image pair, which is of great importance to depth sensing, autonomous driving, and other related tasks. Previous works built cost volumes with cross-correlation or concatenation of left and right features across all disparity levels, and then a 2D or 3D convolutional neural network is utilized to regress the disparity maps. In this paper, we propose to construct the cost volume by group-wise correlation. The left features and the right features are divided into groups along the channel dimension, and correlation maps are computed among each group to obtain multiple matching cost proposals, which are then packed into a cost volume. Group-wise correlation provides efficient representations for measuring feature similarities and will not lose too much information like full correlation. It also preserves better performance when reducing parameters compared with previous methods. The 3D stacked hourglass network proposed in previous works is improved to boost the performance and decrease the inference computational cost. Experiment results show that our method outperforms previous methods on Scene Flow, KITTI 2012, and KITTI 2015 datasets.

Introduction: The Cost Volume Challenge

Stereo matching—the process of estimating depth by comparing horizontal shifts (disparities) between a pair of rectified images—hinges on the construction of a cost volume. This volume acts as a lookup table, representing the matching cost for every pixel at every possible disparity level.

Historically, deep learning architectures have relied on two extremes to build these volumes:

  1. Full Correlation: This method computes a single dot product between feature vectors. While computationally efficient, it collapses rich feature information into a single scalar, losing significant discriminative power.
  2. Concatenation: This approach stacks left and right features together. While it preserves all semantic information, it forces the subsequent 3D Convolutional Neural Network (CNN) to learn the concept of "similarity" from scratch, leading to high parameter counts and memory usage.

Methods: Group-Wise Correlation

The proposed GwcNet (Group-wise Correlation Stereo Network) introduces a middle ground that captures the benefits of both approaches.

Overview of the GwcNet architecture showing the construction of the combined cost volume and the 3D aggregation stage.

Group-wise Correlation Volume

Instead of a single correlation or a raw concatenation, GwcNet splits the extracted feature channels into $N_g$ groups (e.g., 40 groups). A correlation map is computed independently for each group, and these maps are then packed into a 4D cost volume. This provides the network with multiple "matching cost proposals" based on different feature subsets, effectively acting as a similarity prior for the 3D CNN.

Combined Volume and Improved Aggregation

To ensure no semantic information is lost, the authors concatenate a compressed version of the original unary features onto the group-wise correlation volume (the "GwcNet-gc" variant). Furthermore, the 3D stacked hourglass architecture used for cost aggregation is refined with $1\times1\times1$ 3D convolutions in shortcut connections, improving performance with minimal overhead.

Key Insights: Efficiency and Robustness

A major advantage of GwcNet is its robustness to model downscaling. In real-time applications where computational budgets are limited, reducing the number of channels in the 3D aggregation network is a common strategy.

Comparison of End-Point Error (EPE) against the number of channels in the 3D network. GwcNet (Gwc-Cat) maintains significantly better performance than concatenation-only (Cat) models as capacity is reduced.

As shown in the evaluation, GwcNet maintains high accuracy even when the 3D network's capacity is significantly reduced. This makes it a superior candidate for deployment on hardware with restricted resources compared to previous state-of-the-art models like PSMNet.

Results

GwcNet-gc achieved state-of-the-art performance across several benchmarks:

  • KITTI 2015: Reduced the D1-all error from 2.32% (PSMNet) to 2.11%.
  • Scene Flow: Improved the End-Point Error (EPE) from 0.887 pixels to 0.765 pixels.
  • Inference Speed: The model processes a $480\times640$ image in approximately 210ms on a Titan Xp, outperforming PSMNet in both accuracy and speed.

Conclusion

By treating unary features as groups of structured vectors, GwcNet provides a more efficient and informative representation for stereo matching. The group-wise correlation layer serves as an effective prior that simplifies the learning task for the 3D aggregation network, leading to better accuracy and greater robustness in resource-constrained scenarios.

Summary updated

BibTeX
@inproceedings{guo2019group,
  author = {Xiaoyang Guo and Kai Yang and Wukui Yang and Xiaogang Wang and Hongsheng Li},
  title = {{Group-Wise Correlation Stereo Network}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  url = {https://openreview.net/forum?id=sDF4IX2pz-S},
}
Figure