Abstract
Stereo matching models trained on synthetic data often struggle with domain adaptation, producing multimodal probability distributions in real-world scenarios. We present CMD (Constrain Multimodal Distribution), a method that enforces unimodality through uncertainty-regularized loss and an anisotropic soft argmin operation. Our approach significantly improves performance on real-world benchmarks like KITTI and ETH3D without requiring target-domain labels.
Introduction
Stereo matching is a fundamental task in computer vision, essential for depth perception in autonomous systems. While deep learning has pushed the boundaries of performance, these models typically rely on large-scale synthetic datasets like SceneFlow for training. When transitioned to real-world data, models often fail due to the domain gap. A key observation in this work is that while models produce sharp, unimodal distributions on synthetic source data, they often generate messy, multimodal distributions on real-world target data.
The Problem: Multimodality and Uncertainty
In the source domain, the cost volume typically yields a single, clear peak at the correct disparity. However, in the target domain, factors like lighting changes, reflections, and different textures cause the model to produce multiple competing peaks. Standard soft argmin operations aggregate these peaks, often resulting in a final prediction that lies between two peaks—a value that may not correspond to any physical depth. Standard training objectives like smooth L1 loss only constrain the final disparity value, ignoring the underlying probability distribution's shape.
Proposed Method: CMD
The CMD framework introduces three primary components to address multimodality without requiring ground-truth labels in the target domain.
Uncertainty-Regularized Minimization (URM)
CMD introduces an unsupervised loss term that penalizes "flat" or "messy" distributions. By minimizing metrics such as Entropy or the Perturbation Measure (PER), the network is incentivized to concentrate its probability mass into a single, sharp peak, effectively "picking a lane" in the face of uncertainty.
Anisotropic Soft Argmin
The standard soft argmin uses a softmax function to convert matching costs into probabilities. CMD modifies this by introducing a temperature parameter $t > 1$. This "Anisotropic" version sharpens the distribution, increasing the gradient penalty for incorrect, low-probability regions and forcing the model toward a decisive, unimodal output.
Pseudo-Label-based Self-Distillation
To further refine the model, CMD uses its own uncertainty metrics to filter out unreliable predictions. Only the most confident, unimodal predictions are retained as pseudo-labels for a second stage of supervised fine-tuning on the target data.
Experiments and Results
The CMD approach was evaluated using several baseline architectures, including GWCNet and PCWNet, across the KITTI 2012, KITTI 2015, and ETH3D datasets. The results demonstrate a significant performance boost. For instance, applying CMD to GWCNet reduced the D1_all error rate on KITTI 2015 from 15.8% to 6.1%. With the addition of self-distillation, the error further dropped to 4.1%. Qualitatively, CMD-enhanced models show significantly reduced noise in textureless regions and sharper object boundaries.
Conclusion
By focusing on the "shape" of the probability distribution rather than just the final numerical output, CMD provides a robust mechanism for unsupervised domain adaptation in stereo matching. The use of uncertainty as a proxy for correctness allows models to learn meaningful features in the target domain, bridging the gap between synthetic training and real-world deployment.
Summary updated