TL;DR
This paper introduces a lightweight, highly generalizable stereo matching framework that effectively leverages monocular depth priors as "soft constraints." By fusing monocular depth boundaries into feature extraction and using depth gradients to guide iterative GRU updates, the method achieves state-of-the-art zero-shot generalization on real-world benchmarks with only 11.23M parameters.
What Problem Does This Paper Address?
Stereo matching (SM)—estimating dense disparity maps from a pair of rectified images—is geometrically precise but notoriously struggles in ambiguous regions like textureless surfaces, occlusions, and repetitive patterns. Conversely, monocular depth models trained on massive datasets excel at capturing global context and boundaries but lack absolute geometric accuracy.
While combining these two paradigms seems intuitive, previous attempts often enforce strict alignment or expand network width. This frequently leads to "shortcut learning," where the network overfits to the training domain by relying on spurious correlations. Furthermore, if the monocular cues contain errors, hard-coupling them into the stereo pipeline can catastrophically degrade performance. The authors tackle the challenge of embedding monocular priors into stereo matching in a way that improves robustness and generalization without architectural over-coupling.
Methods
The authors adopt the iterative optimization framework of RAFT-Stereo as their baseline and introduce three novel, lightweight components designed to act as soft constraints:
- Depth-Guided Image Augmentation (DGIA): To sharpen depth boundary perception, the input RGB images are fused with monocular depth maps (generated via a frozen Depth Anything V2 base model) using Deformable Convolutions (DCN). This constructs an enhanced feature space that helps narrow down the valid disparity search range for each pixel.
- Gradient-Guided GRU Refinement: Absolute monocular depth values can be unreliable. However, the relative ordinal relationships between neighboring pixels are usually accurate. The authors extract horizontal, vertical, and magnitude gradient maps from the monocular depth and use them to guide the hidden-state updates of the ConvGRU. This helps the model escape local oscillations in tricky regions without forcing a hard dependency on absolute monocular scale.
- Edge-Aware Loss Suppression (EALS): Spatial data augmentations like random scaling are standard for teaching models scale invariance. However, bilinear interpolation inherently blurs disparity edges in the ground truth, providing corrupt supervision. EALS detects these blurred boundaries by calculating the discrepancy between bilinear and nearest-neighbor interpolations and masks out the loss at these unreliable edges during training.
Datasets
- Training: The model is trained exclusively on the synthetic SceneFlow dataset (~35,000 stereo image pairs).
- Evaluation (Zero-Shot Generalization): To evaluate how well the model generalizes to unseen environments without fine-tuning, it is tested on four real-world benchmarks:
- Middlebury-H: High-resolution indoor scenes.
- KITTI 2015: Real-world driving scenes with sparse LiDAR ground truth.
- ETH3D: Low-texture indoor and outdoor scenarios.
- DrivingStereo: A large-scale driving dataset evaluated across four weather conditions (Sunny, Cloudy, Foggy, Rainy).
Key Insights and Ideas
- Soft Constraints > Hard Alignment: Absolute monocular depth maps are prone to scale errors, but their structural gradients are highly reliable. Treating monocular cues as soft guidance for hidden states rather than hard constraints on the final disparity prevents monocular errors from corrupting the stereo geometry.
- Loosening Branch Coupling Prevents Shortcuts: Tightly coupling independent modules (like attention maps optimized alongside GRUs) often causes the network to learn dataset-specific shortcuts. Keeping the core GRU architecture clean and introducing monocular features purely as biases preserves zero-shot generalization.
- Masking Bad Labels Improves Edges: Counterintuitively, masking out edge regions during training because of interpolation artifacts doesn't prevent the model from learning edges. Instead, it encourages the model to cleanly generalize its disparity knowledge from non-edge areas to the boundaries, significantly reducing edge artifacts.
Key Results
- State-of-the-Art Generalization: When evaluated zero-shot, the proposed method consistently achieves top or second-best performance. On Middlebury-H, it reduces the End-Point Error (EPE) to 1.01, outperforming the RAFT-Stereo baseline (1.43) and competing monocular-assisted models like MGStereo (1.16).
- High Efficiency: Unlike competing models that rely on the large version of Depth Anything V2 (~335.3M parameters), this method uses the base version (~97.5M) and adds only a tiny fraction of trainable parameters to RAFT-Stereo (bringing the total trainable parameters to 11.23M). It maintains a lower FLOP count and faster runtime than most generalized SM models.
- Faster Convergence: The model demonstrates exceptional stability, reaching competitive performance by the 7th GRU iteration, whereas alternative methods like DEFOM-Stereo require over 20 iterations to converge.
Limitations and Future Work
The authors note that the gradient-GRU module exhibits some sensitivity to severe image degradation, showing a slight performance dip under heavy rainy conditions.
For future work, they plan to move away from the hard binary mask used in EALS and explore adaptive soft weights for edge disparity supervision to better preserve fine-grained structures while suppressing noise. They also intend to investigate the integration of even stronger monocular foundation models to handle extreme cross-domain gaps.
Summary updated