Self-Supervised Learning for Stereo Matching with Self-Improving Ability

Yiran Zhong, Yuchao Dai, Hongdong Li

Abstract

Stereo matching is a fundamental task in computer vision, traditionally dominated by supervised deep learning models that require vast amounts of ground-truth depth data. This paper presents a self-supervised approach that leverages image warping error and a novel loop consistency loss to train a deep convolutional neural network without ground truth. A key feature of this method is its "self-improving" capability, allowing the network to adapt to new environments in real-time through online fine-tuning.

Introduction

The challenge of stereo matching—estimating depth from a pair of images—has seen significant advances through deep learning. However, the reliance on expensive and often noisy ground-truth data (like LiDAR) limits the scalability and generalizability of supervised models. Models trained on specific datasets, such as KITTI, often fail when applied to different domains like indoor scenes. This research introduces an end-to-end self-supervised network that not only matches the performance of supervised methods but also possesses the unique ability to continuously improve itself when exposed to new, unseen data.

Methodology

The proposed framework treats stereo matching as a geometric reconstruction problem. By predicting a disparity map, the network can warp one image to reconstruct its stereo counterpart. The difference between the original and reconstructed images (photometric error) provides the primary self-supervised signal.

The overall architecture of the self-supervised stereo matching network, highlighting the five main modules from feature extraction to image warping.

The architecture is composed of five primary modules:

  1. Feature Extraction: Uses a shared-weight CNN to capture local image features from both stereo inputs.
  2. Feature Volume Construction: Concatenates these features across potential disparities into a 3D volume.
  3. 3D Feature Matching: Employs a Residually connected Top-Down Module (Res-TDM) with 3D convolutions for regularization and context extraction.
  4. Soft-Argmin: A differentiable operation that projects the 3D volume into a 2D disparity map.
  5. Image Warping: Computes the photometric error used for backpropagation.

Loss Functions and Self-Improvement

To ensure robust learning, especially in challenging textureless regions, the authors introduce two critical components: a novel Loop Consistency Loss and a Maximum-Depth Heuristic (MDH).

The image warping process and loop consistency constraint, which ensures the left and right disparity maps are mathematically consistent by warping images back and forth.

The Loop Consistency Loss forces the network to maintain symmetry by warping images back and forth, preventing the model from converging on trivial, decoupled solutions. The MDH acts as a regularizer in ambiguous areas by encouraging the network to favor larger depths (smaller disparities).

Perhaps the most significant innovation is the "self-improving" mode. Unlike static supervised models, this network can keep its weights unfrozen during inference. By minimizing the self-supervised loss on new frames, the model adapts to changing lighting, camera parameters, or entirely new environments on the fly.

Key Results and Discussion

The network was trained on the KITTI raw dataset and evaluated on KITTI 2012, 2015, and Middlebury benchmarks.

  • Performance: The self-supervised model outperforms several traditional methods (like SPS-St) and even some supervised deep learning baselines (like MC-CNN).
  • Adaptability: The "self-improving" ability solves the domain shift problem. When transitioning from outdoor (KITTI) to indoor (Middlebury) scenes, the initial error rate was 21.17%. After just 100 iterations of online self-improvement, the error dropped significantly to 13.67%.
  • Efficiency: Standard inference takes approximately 0.8 seconds per stereo pair, while the self-improving mode requires about 1.6 seconds, making real-time adaptation feasible.

Conclusion

This work demonstrates that photometric consistency, augmented by loop consistency, is a powerful enough signal to train high-performance stereo matching networks without ground truth. While visual occlusion remains a hurdle for future research, the ability to perform online domain adaptation marks a significant step toward more versatile and autonomous depth estimation systems.

Summary updated

BibTeX
@misc{zhong2017self,
  author = {Yiran Zhong and Yuchao Dai and Hongdong Li},
  title = {{Self-Supervised Learning for Stereo Matching with Self-Improving Ability}},
  year = {2017},
  eprint = {1709.00930},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1709.00930},
}
Figure