Robust Synthetic-to-Real Transfer for Stereo Matching

Jiawei Zhang, Jiahe Li, Lei Huang, Xiaohan Yu, Lin Gu, Jin Zheng, Xiao Bai · DOI

Abstract

Fine-tuning stereo matching models on real-world data often leads to domain degradation, where models lose their ability to generalize to unseen environments. We present DKT-Stereo, a framework that utilizes "dark knowledge" from pseudo-labels within a teacher-student architecture. By filtering and ensembling information from ground truth (GT) and pseudo-labels (PL), DKT-Stereo enhances performance on target real-world domains while preserving the robustness gained from synthetic pre-training.

Introduction

Stereo matching—estimating 3D depth from a pair of 2D images—is a cornerstone of computer vision, essential for autonomous driving and robotics. Because high-quality real-world depth labels are expensive to collect, researchers typically pre-train models on massive synthetic datasets. While these models are robust, they often require fine-tuning on specific real-world datasets like KITTI to achieve peak performance. However, this process frequently causes the model to "forget" its general knowledge, leading to catastrophic failure when it encounters a different domain (e.g., rainy streets or indoor scenes).

The DKT Framework

The Dark Knowledge to Transfer (DKT) framework addresses this by leveraging the predictions of the pre-trained model as "dark knowledge." The core insight is that while GT labels provide high accuracy for the target domain, pseudo-labels (PL) from the pre-trained model help anchor the network to its original, robust state.

Teacher-Student Architecture

DKT employs a three-network setup:

  1. Frozen Teacher: A static copy of the pre-trained model that provides initial pseudo-labels.
  2. EMA Teacher: An Exponential Moving Average of the student’s weights, acting as a dynamic repository of learned knowledge.
  3. Student: The active network undergoing training.

Filter and Ensemble (F&E) Module

The F&E module manages the interaction between GT and PL. It identifies "consistent" regions where both labels agree and "inconsistent" regions where they diverge. To prevent overfitting, the module randomly filters inconsistent GT regions and applies fine-grained permutations from the EMA teacher to consistent regions. Simultaneously, it progressively refines pseudo-labels using the EMA teacher to improve their accuracy throughout training.

Qualitative comparison of depth estimation on target and unseen domains. Note how standard GT fine-tuning (GT-ft) fails on unseen scenes compared to DKT-ft.

Experimental Results

The framework was evaluated using SceneFlow for pre-training and various real-world datasets for fine-tuning and testing. Target domains included KITTI (outdoor) and Booster (indoor with challenging surfaces). Generalization was tested on Middlebury, ETH3D, and DrivingStereo.

DKT-Stereo demonstrates superior robustness compared to standard fine-tuning methods. A key finding was the dramatic reduction in error rates for cross-domain scenarios. For instance, when fine-tuned on the Booster dataset, a standard model's error on the ETH3D dataset reached 93.31%, whereas DKT maintained an error rate of only 2.60%.

Radar charts showing performance across multiple domains for KITTI (a) and Booster (b) fine-tuning. DKT (green) maintains a much smaller error profile across unseen domains compared to GT Fine-tuning (red).

As shown in the radar charts, standard GT fine-tuning (red area) leads to massive error spikes in non-target domains. DKT (green area) effectively matches the target performance of GT fine-tuning while keeping the error profile close to the robust pre-trained baseline (gray area). Furthermore, DKT-fine-tuned models showed significantly higher resilience to adverse weather conditions like fog and rain when tested on the DrivingStereo dataset.

Conclusion

DKT-Stereo effectively bridges the gap between target-domain adaptation and general-purpose robustness. By treating pseudo-labels as a regularizer and carefully filtering ground truth data, the framework prevents the catastrophic forgetting typical of standard fine-tuning. Future research may explore applying these consistency-based filtering techniques to other dense prediction tasks such as semantic segmentation or optical flow.

Summary updated

BibTeX
@misc{zhang2024robust,
  author = {Jiawei Zhang and Jiahe Li and Lei Huang and Xiaohan Yu and Lin Gu and Jin Zheng and Xiao Bai},
  title = {{Robust Synthetic-to-Real Transfer for Stereo Matching}},
  year = {2024},
  eprint = {2403.07705},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.07705},
}
Figure