Abstract
Our goal is to significantly speed up the runtime of current state-of-the-art stereo algorithms to enable real-time inference. Towards this goal, we developed a differentiable PatchMatch module that allows us to discard most disparities without requiring full cost volume evaluation. We then exploit this representation to learn which range to prune for each pixel. By progressively reducing the search space and effectively propagating such information, we are able to efficiently compute the cost volume for high likelihood hypotheses and achieve savings in both memory and computation. Finally, an image guided refinement module is exploited to further improve the performance. Since all our components are differentiable, the full network can be trained end-to-end. Our experiments show that our method achieves competitive results on KITTI and SceneFlow datasets while running in real-time at 62ms.
Introduction
Stereo matching—estimating depth by comparing a pair of images—is a cornerstone of autonomous driving and robotics. While deep learning has pushed accuracy to new heights, most top-performing models (like PSM-Net) are computationally heavy. They build a massive 3D "cost volume" that evaluates every possible depth (disparity) for every single pixel. This approach is memory-intensive and often takes hundreds of milliseconds to run, making it impractical for real-time applications. Conversely, existing "fast" models usually skip the cost volume entirely, leading to a significant drop in accuracy. DeepPruner aims to bridge this gap: achieving the accuracy of heavy-duty models with the speed of real-time systems.
Methodology
The core philosophy of DeepPruner is "learning to prune." Instead of searching the entire range of possible depths, the network identifies a narrow, high-probability window for each pixel.
Differentiable PatchMatch
The authors implement the classic PatchMatch algorithm—which uses random sampling and neighbor propagation to find correspondences—as a series of neural network layers. Because it is differentiable, the network can learn exactly how to sample and propagate information to find the best depth candidates.
Confidence Range Prediction
Sparse candidates from the PatchMatch module are fed into an encoder-decoder sub-network. This predicts a per-pixel "confidence range" (an upper and lower bound). To train this, a unique "boomerang-shaped" loss function was designed to encourage tight ranges while ensuring the true depth remains safely "sandwiched" inside the bounds.
Reduced 3D Cost Aggregation
The model builds a 3D cost volume only within the predicted narrow ranges. This volume is more than 10 times smaller than those used in traditional deep stereo networks, leading to significant memory and computation savings.
Experimental Results
The model was evaluated on industry-standard benchmarks including SceneFlow and KITTI (2012 & 2015).
- Speed and Efficiency: The "Fast" version of DeepPruner runs in just 62ms. It uses less than 1/4 of the memory required by previous state-of-the-art models (1.1GB vs 4.3GB for a full KITTI image).
- Accuracy: On SceneFlow, DeepPruner ranked 2nd overall while being 8 times faster than the top method. It also took 1st place in the Robust Vision Stereo Challenge (comprising KITTI, ETH3D, and MiddleburyV3), demonstrating strong generalization across diverse environments.
Key Insights
DeepPruner demonstrates that classic computer vision algorithms like PatchMatch can be re-imagined as differentiable layers to combine geometric intuition with end-to-end learning. The predicted confidence range also acts as a built-in uncertainty map, where wider ranges correlate with potential errors at occlusions or object boundaries.
Conclusion
While the "Best" version of DeepPruner takes 182ms, the "Fast" version achieves real-time performance without sacrificing significant accuracy. The success of this "differentiable pruning" logic suggests potential applications in other domains such as optical flow and scene flow estimation.
Summary updated