Abstract
Deep convolutional neural networks trained end-to-end are the state-of-the-art methods to regress dense disparity maps from stereo pairs. These models, however, suffer from a notable decrease in accuracy when exposed to scenarios significantly different from the training set (e.g., real vs synthetic images). We propose to perform unsupervised and continuous online adaptation of a deep stereo network, which allows for preserving its accuracy in any environment. We address the computational demand of this strategy by introducing a new lightweight architecture, Modularly ADaptive Network (MADNet), and a Modular ADaptation (MAD) algorithm, which independently trains sub-portions of the network. This system enables the first real-time self-adaptive deep stereo system with competitive performance on heterogeneous datasets.
Introduction: The Challenge of Domain Shift
Stereo matching—the process of estimating depth by comparing images from two side-by-side cameras—has been revolutionized by deep learning. However, these models face a major hurdle known as domain shift. A network trained on perfect synthetic data often fails when deployed in real-world environments like dusty roads or rainy cities.
Standard solutions involve fine-tuning the model on the target environment, but this typically requires ground-truth depth data (often from expensive LiDAR sensors) and significant offline computation. For autonomous systems, we need a solution that can "learn" and adapt to new surroundings instantly, without human intervention, while maintaining real-time processing speeds.
Methodology: MADNet and Modular Adaptation
To address the domain shift problem, we propose a two-part solution: a lightweight architecture and an efficient online training algorithm.
MADNet: A Lightweight Pyramidal Architecture
MADNet is a modular deep stereo architecture designed for efficiency. It breaks the disparity estimation process into six different resolutions, from 1/64th to full scale. By optimizing for speed, MADNet uses only one-tenth the parameters of standard models like DispNetC, making it ideal for embedded platforms.
The MAD Algorithm
The Modular ADaptation (MAD) algorithm is the core innovation that enables real-time learning. Instead of updating the entire network for every new frame—which would be computationally prohibitive—MAD selects only one sub-portion (module) of the network to train at each step.
The network trains itself using an unsupervised loss based on photometric consistency. It asks: "If I use my predicted depth to warp the right image onto the left, how well do they match?" A reward/punishment heuristic tracks which modules are most effective at reducing this error. Research indicates that the middle layers (operating at 1/16th resolution) are often the most critical to adapt, as a solid coarse disparity map is easier to refine than a broken high-resolution one.
Experimental Results
The system was evaluated across several diverse datasets, including KITTI (2012 & 2015) for real-world autonomous driving and KITTI Raw for long-term continuous adaptation.
Continuous Adaptation Performance
The impact of online adaptation is dramatic. On the KITTI dataset, a model with "No Adaptation" starts with a high error rate (D1-all ~37%). As shown in the figure below, the MAD algorithm allows the error to plummet rapidly as the system encounters more frames.
Within a few hundred frames, the error rate drops to under 3%, eventually rivaling models that were fine-tuned offline with expensive ground-truth labels.
Real-Time Efficiency
MADNet achieves a pure inference speed of 40 FPS. When the MAD adaptation algorithm is active, the system maintains a healthy 25 FPS. In contrast, traditional full-network adaptation drops the speed to about 15 FPS, which is insufficient for many real-time applications.
Discussion and Future Work
While MADNet and the MAD algorithm provide a breakthrough in real-time self-adaptation, challenges remain. The reliance on photometric consistency can be problematic in scenes with heavy reflections (e.g., wet floors or glass), which can provide misleading gradients. Future work may involve combining multiple unsupervised cues or exploring more sophisticated reinforcement learning strategies for module selection. Nonetheless, this work represents the first real-time self-adaptive deep stereo system capable of maintaining high accuracy across heterogeneous environments.
Summary updated