SelFlow: Self-Supervised Learning of Optical Flow

Pengpeng Liu, Michael R. Lyu, Irwin King, Jia Xu · DOI

TL;DR

This paper introduces SelFlow, a novel self-supervised learning method for optical flow estimation that tackles the challenge of occlusions. By distilling reliable flow from non-occluded regions and using this to train for occluded areas, SelFlow achieves state-of-the-art results in unsupervised learning and provides excellent initialization for supervised fine-tuning.

What Problem Does This Paper Address?

Estimating optical flow, which describes the motion of pixels between consecutive frames in a video, is a fundamental problem in computer vision. Traditional methods often struggle with occlusions – areas where objects are hidden from view in one frame but visible in another. While supervised learning approaches can achieve high accuracy, they require large amounts of manually labeled data, which is expensive and difficult to obtain, especially for occluded regions. Existing unsupervised methods often fall short of supervised methods due to their inability to robustly handle all types of occlusions. This paper aims to bridge this gap by developing a self-supervised approach that can learn accurate optical flow even in the presence of occlusions, without relying on external labeled data.

Methods

SelFlow employs a two-stage, self-supervised learning strategy:

  1. NOC-Model (Non-Occluded Confidence Model): This model is trained using a classical photometric loss, which measures the difference between the reference image and the warped target image. This loss is effective for pixels that are visible in both frames.
  2. OCC-Model (Occluded Confidence Model): This model is trained to predict optical flow for occluded pixels. The key innovation here is using the reliable flow estimations from the NOC-Model as "ground truth" for these occluded regions. To achieve this, the authors introduce a "hallucination" process:
  3. Occlusion Hallucination: They create synthetic occlusions by perturbing superpixels in the target image with random noise. This effectively simulates occluded regions.
  4. Self-Supervision Mask: A mask is generated to identify these newly hallucinated occluded pixels.
  5. Distillation: The flow predicted by the NOC-Model for these hallucinated occluded pixels is used to supervise the training of the OCC-Model.

The architecture is built upon PWC-Net, a strong two-frame optical flow network, and extended to handle multi-frame information. This involves estimating both forward and backward flows and using temporal consistency checks to improve occlusion estimation. The network leverages features from three consecutive frames (It-1, It, It+1) to better infer flow, especially in cases where a pixel is occluded in one direction but visible in another.

Datasets

  • Training (Unsupervised):
    • MPI Sintel movie (approximately 10,000 images)
    • KITTI 2012 and KITTI 2015 multi-view extensions
  • Evaluation:
    • MPI Sintel (Clean and Final versions)
    • KITTI 2012
    • KITTI 2015

The paper emphasizes that their method reduces reliance on synthetic datasets and can be fine-tuned directly on real-world annotated data.

Key Insights and Ideas

  • Distilling Knowledge from Non-Occluded to Occluded Regions: The core idea of using reliable flow from visible pixels to teach the model about occluded pixels is a powerful self-supervision strategy. This mimics how humans might infer motion for hidden objects based on surrounding visible motion.
  • Superpixel-based Occlusion Hallucination: Using superpixels for generating synthetic occlusions is more realistic than simple rectangular occlusions, as superpixel edges often align with object boundaries and pixels within a superpixel tend to share similar motion.
  • Multi-frame Temporal Information is Crucial for Occlusions: Leveraging information from past and future frames (It-1, It, It+1) significantly improves the ability to handle occlusions, as it provides context for pixels that might be hidden in one frame but visible in another.
  • Self-Supervised Pre-training as a Strong Initialization: The self-supervised pre-trained model provides an excellent starting point for supervised fine-tuning, significantly reducing the need for extensive labeled synthetic datasets and enabling faster convergence to state-of-the-art results.

Key Results

  • Unsupervised Learning: SelFlow achieves state-of-the-art performance on the Sintel Final benchmark (EPE=6.57, a 11.2% relative improvement over previous best) and KITTI datasets. It even outperforms some fully supervised methods on KITTI.
  • Supervised Fine-tuning: After self-supervised pre-training, the fine-tuned model achieves state-of-the-art results on all three datasets. Notably, it achieves an EPE of 4.26 on the Sintel benchmark, outperforming all submitted methods at the time of writing.
  • Qualitative Results: Figures 4, 5, and 6 demonstrate that the model can estimate both accurate flow and occlusion maps, with improvements visible when occlusion handling, multi-frame formulation, and self-supervision are applied.

Limitations and Future Work

  • Limitations: The paper mentions that while their method handles occlusions well, it might not be applicable for extremely large displacements or highly dynamic scenes without further modifications. The reliance on temporal consistency for occlusion estimation might also have limitations in very noisy or rapidly changing sequences.
  • Future Work: The authors suggest that their method's ability to reduce reliance on synthetic data and achieve superior performance through self-supervised pre-training opens avenues for further research into more robust and efficient unsupervised optical flow learning. The effectiveness of their approach suggests potential for broader applications in video understanding tasks.

Summary updated

BibTeX
@inproceedings{liu2019selflow,
  author = {Pengpeng Liu and Michael R. Lyu and Irwin King and Jia Xu},
  title = {{SelFlow: Self-Supervised Learning of Optical Flow}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  doi = {10.1109/cvpr.2019.00470},
}
Figure