Introduction
Stereo matching—the process of finding corresponding pixels between two images to calculate depth—is a cornerstone of computer vision. Traditionally, this relies on hand-crafted "matching costs" like Sum of Absolute Differences (SAD) or Census transforms. However, these methods often struggle with sensor noise, lighting changes, and textureless regions.
While early deep learning models (like MC-CNN) demonstrated that Convolutional Neural Networks (CNNs) could outperform hand-crafted costs, they were computationally expensive. Those models treated matching as a binary classification problem for every possible pixel pair, requiring the network to re-run its heaviest layers for every disparity level. This paper introduces a deep learning-based matching cost that maps image patches into a discriminative feature embedding space, achieving state-of-the-art accuracy while running 100x faster than previous deep-learning approaches.
Methodology
The Embedding Architecture
The authors propose a Deep Visual Correspondence Embedding Model. Instead of training a network to classify pairs of patches as matches or non-matches, they train it to map any single patch into a high-dimensional feature vector (an embedding). Similarity is then measured by a simple dot product between the feature vectors of the left and right patches.
To balance the need for fine detail and broad context, the model processes patches at two scales: the original resolution and a 2x down-sampled version. These are fused using a weighted ensemble (a 1x1x2 convolutional layer). This allows the model to maintain sharp edges while remaining robust in difficult, textureless regions.
Computational Efficiency
Because the similarity measure is a dot product, the CNN features for the entire image can be extracted once. The matching scores for all potential disparities are then calculated using a sliding-window inner product, which can be implemented as a highly parallelized matrix multiplication. By shifting from a "comparison" network to an "embedding" network, the authors decoupled feature extraction from the matching process, enabling a massive speedup.
Experimental Results
Accuracy and Speed
The model was primarily benchmarked on the KITTI (2012) dataset of outdoor driving scenes. At the time of publication, the method ranked Top 3 among all two-frame algorithms. On the KITTI training set, the multi-scale embedding achieved an error rate of 11.1%, vastly outperforming traditional costs like Census (25.1%) and Normalized Cross-Correlation (21.8%).
In terms of efficiency, the model processes a KITTI-resolution image in about 3 seconds (1s for the CNN, 2s for the SGM refinement). This is two orders of magnitude faster than the previous state-of-the-art MC-CNN, which took approximately 100 seconds per frame.
Generalization
To prove the model learned fundamental visual features rather than just memorizing road scenes, the authors tested it on the high-resolution indoor Middlebury dataset. Even without retraining or fine-tuning, the model significantly outperformed traditional methods on complex indoor objects.
Conclusion
While 3 seconds per frame is not yet real-time for autonomous driving, this work represents a major leap in making deep-learning-based stereo matching practical. The shift toward embedding-based correspondence provides a scalable framework that can be extended to other vision tasks, such as optical flow. Future speed gains are likely to come from optimizing the global optimization framework (like SGM), which now accounts for the majority of the processing time.
Summary updated