Optical Flow Estimation in the Deep Learning Age

Junhwa Hur, Stefan RotharXiv 2020

Abstract

Optical flow estimation, the task of calculating per-pixel motion between consecutive video frames, has undergone a significant transformation over the last decade. Traditionally framed as a variational energy minimization problem, the field has transitioned toward deep learning architectures. This paper surveys this evolution, detailing the shift from using convolutional neural networks (CNNs) as auxiliary feature extractors to end-to-end regression models, and finally to modern hybrid architectures that integrate classical principles like image pyramids and warping to achieve state-of-the-art performance.

Introduction

For over 30 years, optical flow was treated primarily as an energy minimization problem. Researchers defined mathematical "energy" functions based on brightness constancy and spatial smoothness, solving for the flow that minimized these constraints. While successful, these classical methods were computationally expensive and struggled with complex scenarios like large displacements or sudden illumination changes. The advent of deep learning brought new possibilities, but initial attempts faced significant hurdles in data scarcity and architectural design that could match decades of hand-crafted mathematical refinement.

The Evolution of Deep Learning Architectures

The transition to deep learning occurred in three distinct stages, moving from auxiliary roles to complete end-to-end systems that eventually outperformed classical benchmarks.

The evolution of optical flow architectures from classical energy-based models to end-to-end CNN regression.

1. CNNs as Feature Extractors

Early deep learning models did not replace the entire optical flow pipeline. Instead, they replaced hand-crafted descriptors (like SIFT) with CNN-learned features. These per-pixel descriptors were then plugged back into classical optimization frameworks, such as Markov Random Fields (MRFs), to solve for the final motion field.

2. End-to-End Regression

The introduction of FlowNet marked the first successful "pixels-in, flow-out" approach, utilizing an encoder-decoder architecture to regress flow directly from raw image pairs. Subsequent iterations, like FlowNet2, demonstrated that "stacking" multiple networks for iterative refinement could finally beat classical variational methods in both speed and accuracy.

3. Integrating Classical Principles

Current state-of-the-art (SOTA) models, such as PWC-Net and LiteFlowNet, represent a convergence of deep learning and classical computer vision. Rather than treating the network as a black box, these "physics-inspired" architectures explicitly implement hierarchical processing techniques.

Modern architectures integrate classical principles such as (a) coarse-to-fine estimation via image pyramids and (b) backward warping to align feature maps.

Key components of these hybrid models include:

  • Feature Pyramids: Processing images at multiple scales to handle varying displacement magnitudes.
  • Warping: Using estimated flow at a coarse level to warp features from the second frame toward the first, simplifying the matching task at finer levels.
  • Cost Volumes: Explicitly calculating correlations between features to guide the motion estimation process.

Data Scarcity and Training Strategies

A primary challenge in optical flow is the lack of real-world ground truth data. Unlike image classification, per-pixel motion labels are nearly impossible to capture in the wild. Consequently, the field relies heavily on synthetic datasets:

  • Synthetic Training: FlyingChairs and FlyingThings3D provide millions of labeled examples using CAD models to teach networks basic motion principles.
  • Real-World Benchmarks: Datasets like KITTI (using LiDAR) and MPI Sintel (animated film) serve as the gold standard for evaluation.

Research has shown that "curriculum learning"—training on simple synthetic data before moving to complex 3D scenes—is essential for achieving high accuracy and generalization.

Key Insights and Results

The shift to deep learning has yielded massive gains in efficiency. For example, PWC-Net is 17x smaller and 2x faster than FlowNet2 while providing better accuracy. Furthermore, moving beyond two-frame estimation to multi-frame consistency has allowed networks to exploit temporal coherence, significantly improving accuracy in occluded regions by up to 27%.

Despite these advances, domain overfitting remains a challenge. Models trained on synthetic scenes still struggle to generalize perfectly to the unpredictable real world. Future work continues to focus on unsupervised learning via "data distillation" and the development of more diverse, large-scale real-world datasets.

Summary updated

BibTeX
@misc{hur2020optical,
  author = {Junhwa Hur and Stefan Roth},
  title = {{Optical Flow Estimation in the Deep Learning Age}},
  year = {2020},
  eprint = {2004.02853},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.02853},
}
Figure