Continual Unsupervised Learning for Optical Flow Estimation with Deep Networks

Simone Marullo, Matteo Tiezzi, Alessandro Betti, Lapo Faggi, Enrico Meloni, Stefano MelacciCoLLAs 2022

Introduction

Modern optical flow estimation typically relies on offline training with large, shuffled datasets. However, real-world applications such as autonomous robotics require agents to learn from continuous, temporally correlated visual streams. This paper investigates Continual Unsupervised Learning (CUL) for optical flow, demonstrating that deep neural networks can learn in a "lifelong" manner without data buffering or human-provided labels. Surprisingly, these online-trained models can match or even exceed the performance of state-of-the-art models pre-trained on massive static datasets.

Methodology

The approach utilizes standard convolutional architectures (e.g., ResUNet, FlowNetS) updated via single-pass online gradient descent. The learning process is driven by an unsupervised loss based on the brightness constancy assumption and spatial smoothness regularization.

To mitigate biases inherent in live video streams, several update policies were introduced:

  • DECIMATION (DEC): Periodic updates every $n$ frames.
  • FLOWDIVERGENCE (DIV): Updates triggered by significant changes in predicted motion to prevent overfitting to specific directions.
  • DIFF: Updates restricted to non-static scenes.
  • FLOWMAGNITUDE (MAG): Updates triggered by significant predicted motion.

A "greedy" model selection procedure was also developed to optimize hyperparameters online by evaluating agents in parallel over short time windows.

Experimental Setup

The study evaluated agents across five distinct visual streams:

  • Streams A, B, and C: Synthetic environments generated via ThreeDWorld (TDW), ranging from simple object motion to complex multi-object scenes with moving cameras.
  • Stream M: The film 1917, providing a continuous, long-take real-world challenge.
  • Stream ABCM: A concatenated sequence of all streams to test long-term adaptation and catastrophic forgetting.
Stream M: A scene from the movie '1917' used as a real-world continuous video stream.
Stream C: A photo-realistic synthetic environment from ThreeDWorld (TDW) featuring complex motion.

Results and Discussion

Robustness to Forgetting

Unlike classification tasks, optical flow estimation appears resilient to catastrophic forgetting. Networks generally improved over time as they encountered more data. Notably, training on the diverse ABCM stream enhanced performance on individual sub-streams, suggesting that varied motion patterns foster better generalization.

Policy Effectiveness

The DIV policy proved essential for maintaining a balanced internal model. By filtering redundant updates, it prevents the network from biasing its predictions toward a single dominant motion direction observed in a sequence.

Performance Benchmarks

Online-trained models achieved reconstruction accuracies comparable to high-end offline models. For instance, on Stream C, the online ResUNet reached 92.3% accuracy, nearing the 94.6% achieved by an offline-pretrained RAFT-Small. Furthermore, the neural network approach offers superior efficiency compared to classical iterative methods like Horn-Schunck.

Conclusion

This work demonstrates the feasibility of lifelong unsupervised learning for optical flow. While the current unsupervised loss is basic—lacking explicit occlusion handling or edge-aware smoothness—the results show that online adaptation is a powerful alternative to traditional offline training. Future work will focus on integrating more sophisticated loss components and exploring joint motion and representation learning in open-ended settings.

Summary updated

BibTeX
@inproceedings{marullo2022continual,
  author = {Simone Marullo and Matteo Tiezzi and Alessandro Betti and Lapo Faggi and Enrico Meloni and Stefano Melacci},
  title = {{Continual Unsupervised Learning for Optical Flow Estimation with Deep Networks}},
  booktitle = {CoLLAs},
  year = {2022},
  url = {https://openreview.net/forum?id=qfjiGDgzAKJ},
}
Figure