Models Matter, So Does Training: An Empirical Study of CNNs for Optical Flow Estimation

Deqing Sun, Xiaodong Yang, Ming-Yu Liu, Jan KautzIEEE TPAMI 2018

Abstract

We investigate two crucial and closely related aspects of CNNs for optical flow estimation: models and training. First, we design a compact but effective CNN model, called PWC-Net, according to simple and well-established principles: pyramidal processing, warping, and cost volume processing. PWC-Net is 17 times smaller in size, 2 times faster in inference, and 11% more accurate on Sintel final than the recent FlowNet2 model. It is the winning entry in the optical flow competition of the robust vision challenge. Next, we experimentally analyze the sources of our performance gains. In particular, we use the same training procedure of PWC-Net to retrain FlowNetC, a sub-network of FlowNet2. The retrained FlowNetC is 56% more accurate on Sintel final than the previously trained one and even 5% more accurate than the FlowNet2 model. We further improve the training procedure and increase the accuracy of PWC-Net on Sintel by 10% and on KITTI 2012 and 2015 by 20%.

Introduction

Optical flow estimation—the task of determining per-pixel motion between consecutive video frames—is a fundamental problem in computer vision, essential for autonomous driving and video analysis. While deep learning has revolutionized the field, early end-to-end models like FlowNetS were fast but lacked the accuracy of traditional methods. Subsequent models like FlowNet2 achieved high accuracy but at the cost of massive model size (160M+ parameters) and slow inference speeds. This research introduces PWC-Net, a model that bridges this gap by integrating classical computer vision principles into a lean, high-performance CNN architecture.

The PWC-Net Architecture

PWC-Net is designed around three core principles that have long been successful in traditional optical flow methods:

  1. Feature Pyramids: Instead of simple image pyramids, PWC-Net uses learned feature pyramids to represent images at multiple scales. This allows the network to handle large displacements at coarse levels and refine details at finer levels.
  2. Warping Layer: At each level, the second image's features are warped toward the first image using the current flow estimate. This effectively "cancels out" large motions, leaving only small residual displacements for the next layer to solve.
  3. Partial Cost Volumes: A cost volume measures the similarity between features. To maintain efficiency, PWC-Net computes only a "partial" cost volume within a limited search range at each pyramid level, keeping the model lean and fast.
The PWC-Net architecture embeds pyramidal processing, warping, and cost volume layers directly into the network.

The architecture also incorporates DenseNet-style connections within the estimator at each level and a context network to refine the final flow field using dilated convolutions.

Training Protocols and the "Training Matters" Hypothesis

A key contribution of this work is the empirical demonstration that training procedures are as critical as the model architecture itself. The authors developed a rigorous training protocol involving a curriculum of datasets: starting with synthetic data (FlyingChairs and FlyingThings3D) and fine-tuning on benchmark-specific data (Sintel, KITTI).

To isolate the impact of training, the authors retrained FlowNetC (a component of FlowNet2) using the PWC-Net training protocol. Remarkably, this "older" model's accuracy improved by 56% on the Sintel final pass, even surpassing the performance of the much larger FlowNet2 model. Additionally, the discovery and fix of a data-loading bug (where 22% of training data was loaded incorrectly in previous implementations) led to a 20% improvement on KITTI benchmarks, reinforcing the idea that meticulous training and data handling are paramount.

Key Results and Performance

PWC-Net sets a new standard for efficient and accurate optical flow. It is significantly more compact and faster than its predecessors while maintaining or exceeding state-of-the-art accuracy.

PWC-Net achieves a superior trade-off between accuracy (EPE), model size (parameters), and inference speed compared to existing methods.
  • Efficiency: PWC-Net is 17x smaller than FlowNet2 (8.75M vs. 162M parameters) and 2x faster, achieving real-time performance (~35 fps).
  • Accuracy: It achieved an 11% improvement on the Sintel Final benchmark over FlowNet2 and was the top performer in the Robust Vision Challenge.
  • Robustness: The model generalizes well across diverse datasets, including KITTI 2012 and 2015, where the improved training protocols yielded substantial gains.

Conclusion

PWC-Net demonstrates that domain-specific inductive biases—like warping and cost volumes—can make CNNs both more efficient and more accurate. Furthermore, the study underscores that training protocols are a "first-class citizen" in deep learning research; a well-designed training schedule can breathe new life into older architectures and is essential for pushing the boundaries of state-of-the-art performance.

Summary updated

BibTeX
@article{sun2018models,
  author = {Deqing Sun and Xiaodong Yang and Ming-Yu Liu and Jan Kautz},
  title = {{Models Matter, So Does Training: An Empirical Study of CNNs for Optical Flow Estimation}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2018},
  url = {https://openreview.net/forum?id=Dm5TaTdFRA7},
}
Figure