Abstract
Self-supervised AutoFlow (S-AF) eliminates the need for ground-truth labels when training optical flow models for new domains. By using self-supervised losses as a "search metric" to optimize a synthetic data renderer, the system generates high-quality, domain-specific training data from scratch. This approach outperforms standard synthetic datasets and rivals supervised methods on real-world video benchmarks.
Introduction
Optical flow—the task of tracking the motion of every pixel between video frames—is notoriously difficult to supervise. Manually labeling "ground truth" (GT) for real-world video is nearly impossible, leading researchers to rely on synthetic datasets like FlyingChairs. However, a significant "domain gap" exists between these simulations and real-world footage.
A previous breakthrough, AutoFlow, addressed this by learning to "render" better synthetic data through a search for optimal rendering hyperparameters (e.g., fog levels or object speeds). However, AutoFlow required GT labels for the target dataset to evaluate its progress. This research introduces Self-supervised AutoFlow (S-AF), which optimizes a data renderer for a new domain using only raw, unlabeled video.
Methods
The core innovation of S-AF is replacing the supervised search metric (Average End-Point Error) with a combination of self-supervised losses.
To find the best rendering parameters ($\lambda$), the system trains a model on a candidate synthetic dataset and evaluates it on unlabeled target video using a "proxy" loss. This loss includes:
- Photometric Loss: Measures how well predicted flow aligns pixels between frames.
- Smoothness Loss: Ensures the motion field lacks unrealistic, jagged jumps.
- Distillation Loss: A "teacher-student" approach where the model learns from its own augmented predictions.
To prevent the search from converging on poor local minima, the authors mix the top three hyperparameter sets found during the search to create the final training set. The final model is pre-trained on this custom S-AF synthetic data and then fine-tuned on the target domain using standard self-supervised techniques.
Key Insights: The Correlation "Aha" Moment
A pivotal discovery in this work is the strong correlation (up to 0.83) between total self-supervised loss and actual ground-truth error. This demonstrates that self-supervision is a reliable compass for navigating the space of data generation, rather than just a secondary training method.
The researchers found that individual losses (like distillation alone) were poor search metrics. Only when combined did they provide a stable signal for optimizing the renderer. Furthermore, the rendering pipeline acts as an "inductive bias," providing the model with clean GT for difficult scenarios like complex occlusions that pure self-supervised learning often struggles to resolve in raw video.
Experimental Results
The researchers evaluated S-AF on standard benchmarks including Sintel, KITTI, and DAVIS.
- Competitive with Supervision: On KITTI, S-AF achieved an error rate (AEPE) of 4.22, remarkably close to the 3.86 achieved by supervised AutoFlow, and significantly better than the 7.63 of the standard Chairs dataset.
- Superior on Real-World Data: On the DAVIS dataset, S-AF outperformed supervised AutoFlow in keypoint propagation accuracy (51.9 vs 50.4). This suggests that exposure to the target domain—even without labels—is more valuable than labels from a different domain.
- State-of-the-Art Performance: When combined with supervised fine-tuning, S-AF pre-trained models (RAFT-S-AF) achieved top-tier results on the Sintel and KITTI public leaderboards.
Conclusion and Future Work
While S-AF successfully bridges the domain gap, the underlying rendering engine remains relatively simple (2D layers). Future improvements could involve moving to realistic 3D rendering engines or incorporating sophisticated lighting models. Additionally, while training costs were reduced by 60% compared to the original AutoFlow, the process still requires significant compute power for parallel model training during hyperparameter optimization.
Summary updated