Abstract
Optical flow estimation remains a fundamental challenge in computer vision, particularly in the presence of occlusions where pixels lack direct correspondences between frames. SelFlow introduces a novel self-supervised distillation framework that addresses this by "hallucinating" occlusions. By training a model to predict flow for artificially obscured superpixels using its own reliable predictions from non-occluded regions, and leveraging temporal information across multiple frames, SelFlow sets new state-of-the-art benchmarks for unsupervised learning. Furthermore, it provides a superior starting point for supervised fine-tuning, outperforming models pre-trained on synthetic datasets.
Introduction
Optical flow—the task of tracking the motion of every pixel between video frames—is a cornerstone of computer vision. However, it faces a major hurdle: occlusion. When an object moves behind another, pixels disappear, leaving the model with no target to match in the next frame.
Traditional supervised deep learning requires massive amounts of labeled data (ground truth flow), which is nearly impossible to capture in the real world. Unsupervised methods try to solve this by minimizing "photometric loss" (ensuring the warped target image matches the reference), but this logic fails at occlusions. Previous attempts to "hallucinate" occlusions used simple random crops, which do not reflect the complex shapes of real-world objects.
Methods
The authors propose a two-step self-supervised pipeline called SelFlow. The process begins with the NOC-Model (Non-Occluded), which is trained using standard unsupervised techniques, focusing only on pixels that remain visible across frames as determined via a forward-backward consistency check.
To teach the model how to handle occlusions, the authors introduce Occlusion Hallucination & Distillation. They take the target image and inject noise into randomly selected superpixels—clusters of pixels sharing similar colors and textures. Because these superpixels follow object boundaries, they create realistic "fake" occlusions. The OCC-Model is then tasked with predicting the flow for these noisy regions. Crucially, the "ground truth" for these noisy regions comes from the NOC-Model's predictions on the original, clean images. This distillation step allows the model to use its knowledge of visible pixels to "fill in the blanks" for occluded ones.
Architecture and Temporal Context
The network architecture is based on PWC-Net but extended to a multi-frame formulation. By processing three frames ($I_{t-1}, I_t, I_{t+1}$) instead of just two, the model can leverage information from the past to resolve occlusions in the future. If a pixel is covered in the next frame but was visible in the previous one, the multi-frame CNN can utilize that temporal history to maintain an accurate motion vector.
Datasets and Evaluation
SelFlow was evaluated on industry-standard optical flow benchmarks, including MPI Sintel (Clean and Final) and KITTI 2012 & 2015. For initial self-supervised learning, the researchers used approximately 10,000 unlabeled images from the Sintel movie and multi-view extensions of KITTI. This pre-training on real, unlabeled data provides a better initialization for fine-tuning than synthetic datasets like FlyingChairs, as it avoids the "domain gap" between synthetic and real-world imagery.
Key Results
SelFlow achieved dominant results across several benchmarks at the time of publication:
- Unsupervised SOTA: On Sintel Final, it reduced the Average Endpoint Error (EPE) from 7.40 to 6.57 (an 11.2% improvement). On KITTI 2012, it improved EPE by 28.1%.
- Competitive Performance: The unsupervised version of SelFlow outperformed several older fully supervised methods, such as FlowNetS and SpyNet.
- Supervised Fine-tuning: When fine-tuned with labels, SelFlow achieved an EPE of 4.26 on the Sintel benchmark, becoming the top-performing method on the leaderboard.
Conclusion
SelFlow demonstrates the power of self-supervised distillation and realistic occlusion hallucination. While computationally expensive due to the multi-model training and multi-frame consistency checks, it proves that superpixel-based self-supervision can effectively bridge the gap between unsupervised and supervised learning. Future work may involve extending this approach to longer temporal sequences or integrating it with tasks like depth estimation and semantic segmentation.
Summary updated