Unsupervised Learning of Multi-Frame Optical Flow with Occlusions

Joel Janai, Fatma Güney, Anurag Ranjan, Michael J. Black, Andreas Geiger

TL;DR

This paper introduces a framework for unsupervised optical flow estimation that moves beyond the standard two-frame approach by leveraging a three-frame temporal window. By explicitly modeling occlusions and enforcing a constant velocity constraint, the authors significantly improve flow accuracy in challenging regions, achieving results that rival some fully supervised methods.

What Problem Does This Paper Address?

Optical flow—the task of estimating per-pixel motion between video frames—is a cornerstone of computer vision. While deep learning has pushed the state-of-the-art, most models require massive amounts of "ground truth" data (labeled pixel correspondences), which is nearly impossible to obtain for real-world footage.

Unsupervised learning offers a solution by using a photometric loss: the model predicts flow and then "warps" one frame to match another; if the prediction is correct, the images should look the same. However, this breaks down in occluded regions (areas that appear or disappear between frames). In these spots, there is no "correct" match, leading the loss function to provide misleading information. Most existing unsupervised methods either ignore occlusions or use simple heuristics to guess where they are.

Methods

The authors build upon the PWC-Net architecture but extend it to handle a three-frame sequence: a Past, Reference, and Future frame.

The proposed multi-frame architecture with dedicated flow and occlusion decoders.
  1. Joint Estimation: The network simultaneously predicts the optical flow to the future ($U_F$), the flow to the past ($U_P$), and a continuous occlusion map ($O$).
  2. The Three-State Occlusion Model: They assume a pixel in the reference frame is in one of three states: visible in all frames, occluded in the past, or occluded in the future. By predicting a 2-channel occlusion map and applying a softmax, the model "chooses" which frame (past or future) provides the most reliable photometric information for each pixel.
  3. Constant Velocity Constraint: This is a key innovation. The authors introduce a loss term that encourages $U_P + U_F \approx 0$. This simple linear motion assumption allows the network to "hallucinate" accurate flow in occluded regions by extrapolating from the motion observed in the non-occluded direction.
  4. Loss Functions: The total loss is a combination of the occlusion-aware photometric loss, edge-aware spatial smoothness, the constant velocity constraint, and an "occlusion prior" that assumes most pixels are visible most of the time.

Datasets

  • RoamingImages (New): A synthetic dataset created by the authors to facilitate "curriculum learning." It consists of random image patches moving linearly over backgrounds. Since it provides three frames per sequence (unlike the popular FlyingChairs), it was used for initial pre-training.
  • MPI Sintel: A challenging synthetic dataset derived from an animated short film, featuring complex motions and atmospheric effects.
  • KITTI 2015: A real-world dataset of driving scenes. The authors used the "multi-view extension" (unlabeled frames) for unsupervised fine-tuning.

Key Insights and Ideas

  • Three is the Magic Number: While two frames are enough for basic flow, three frames are the "minimal configuration" needed to reason about occlusions. If a pixel disappears in the future, it was likely visible in the past.
  • Temporal vs. Spatial Propagation: Most models fill in occluded gaps by looking at neighboring pixels (spatial smoothness). This paper shows that looking across time (temporal constraints) is far more effective for maintaining motion consistency.
  • End-to-End Occlusion Reasoning: Instead of using a separate "hard" heuristic like a forward-backward consistency check, the model learns a "soft" occlusion mask as part of the optimization process. This makes the entire pipeline differentiable and easier to train from scratch.

Key Results

The proposed method, dubbed "Back2FutureFlow" on public leaderboards, showed significant gains:

Comparison of optical flow results showing the advantage of the three-frame approach in occluded regions.
  • Occlusion Handling: On the RoamingImages test set, explicit occlusion reasoning reduced the End-Point Error (EPE) in occluded regions from 32.03 to 8.55.
  • State-of-the-Art Unsupervised Performance: The model outperformed previous unsupervised champions (like DSTFlow and UnFlow) on both Sintel and KITTI benchmarks.
  • Closing the Gap: When fine-tuned, the unsupervised model achieved an EPE of 3.89 on Sintel Clean, which is remarkably close to the performance of early supervised models like FlowNetS (3.66).

Limitations and Future Work

The primary limitation is the constant velocity assumption. While highly effective for short temporal windows, it fails to account for acceleration or curved trajectories, which are common in complex real-world scenes.

Future work could involve more sophisticated motion models (e.g., constant acceleration) or extending the temporal window beyond three frames. Additionally, the occlusion maps are currently estimated at a lower resolution (quarter-res) due to the PWC-Net bottleneck; moving to full-resolution occlusion reasoning could further sharpen motion boundaries.

Summary updated

BibTeX
@inproceedings{janai2018unsupervised,
  author = {Joel Janai and Fatma Güney and Anurag Ranjan and Michael J. Black and Andreas Geiger},
  title = {{Unsupervised Learning of Multi-Frame Optical Flow with Occlusions}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  doi = {10.1007/978-3-030-01270-0\_42},
}
Figure