Source-linked AI summary

What Matters in Unsupervised Optical Flow

Rico Jonschkowski, Austin Stone, Jonathan T. Barron, Ariel Gordon, Kurt Konolige, Anelia Angelova

arXiv:2006.04902v2cs.CVcs.LGeess.IV

TL;DR

Dense optical flow lacks abundant real-image labels, motivating unsupervised learning from unlabeled video. The paper systematically compares core components, proposes targeted improvements, and combines them in UFlow, which substantially outperforms prior unsupervised methods and matches supervised FlowNet2 on KITTI 2015 while remaining simpler. The authors also identify loss-function limitations under stronger violations of the consistency assumption.

  • Problem

    Dense optical-flow labels are difficult to obtain for real image pairs, while supervised methods rely mainly on synthetic data that can mismatch real images; component comparisons in unsupervised methods are also unclear.

  • Method

    The paper systematically compares unsupervised optical-flow components and integrates improved cost-volume normalization, occlusion-mask gradient stopping, native-resolution smoothness, and resized continual self-supervision into UFlow.

  • Results

    UFlow substantially outperforms prior unsupervised methods and performs on par with supervised FlowNet2 on KITTI 2015 without labels, while being significantly simpler than many related approaches.

  • Takeaways & Limitations

    The resulting unified framework is presented as a useful starting point for further research into unsupervised optical flow.

  • Takeaways & Limitations

    Performance on Sintel Final suggests that current loss functions may limit unsupervised methods when the consistency assumption is violated more strongly.

Abstract

from arXiv · show

We systematically compare and analyze a set of key components in unsupervised optical flow to identify which photometric loss, occlusion handling, and smoothness regularization is most effective. Alongside this investigation we construct a number of novel improvements to unsupervised flow models, such as cost volume normalization, stopping the gradient at the occlusion mask, encouraging smoothness before upsampling the flow field, and continual self-supervision with image resizing. By combining the results of our investigation with our improved model components, we are able to present a new unsupervised flow technique that significantly outperforms the previous unsupervised state-of-the-art and performs on par with supervised FlowNet2 on the KITTI 2015 dataset, while also being significantly simpler than related approaches.

1 Introduction

Unsupervised optical flow replaces scarce ground-truth labels with photometric reconstruction from abundant unlabeled video. The paper systematically evaluates key design choices and integrates improvements into UFlow.

  • Ground-truth labels for dense optical flow are difficult to obtain, so supervised methods primarily rely on synthetic training data that can mismatch real images.
  • Unsupervised training can use abundant unlabeled video and potentially avoid mismatch between training and test data.
  • The shared assumption is brightness constancy: estimated flow warps one image toward the other, and training minimizes their difference with regularization.
  • The study compares photometric losses, occlusion estimation, self-supervision, smoothness, pretraining, resolution, augmentation, and batch size.
  • UFlow combines four proposed improvements—cost volume normalization, occlusion-mask gradient stopping, native-resolution smoothness, and image resizing for self-supervision.

2 Related Work

Unsupervised optical-flow research has extended photometric optimization with smoothness, occlusion handling, self-supervision, and multi-frame estimation. However, differing combinations of components make their individual contributions and compatibility unclear.

  • Learning-based unsupervised methods optimize photometric consistency and regularization across datasets rather than solving a separate optimization for each image pair.
  • Prior work introduced edge-aware smoothness, bi-directional Census loss, occlusion estimation, self-supervision, and multi-frame flow estimation.
  • These methods differ in multiple components, so performance comparisons do not reveal whether one method’s individual components are uniformly better.
  • Model-specific ablations show that proposed contributions improve their own models, but do not establish how components compare across methods or combine together.

3 Preliminaries on Unsupervised Optical Flow

Unsupervised optical flow estimates a directional pixel correspondence field from two images without ground-truth flow. Training uses a differentiable proxy objective with photometric consistency, occlusion handling, and optional regularization.

  • Given two color images, the target is a flow field assigning each pixel in the first image a corresponding position in the second.
  • The representation is asymmetric: reverse correspondence requires estimating a separate backward flow field.
  • A CNN learns the flow function from image sequences by minimizing a proxy objective, such as photometric consistency after warping.
  • The model overview uses feature pyramids in top-down flow estimation and a repeated W, C, F block for warping, cost-volume computation, and flow estimation.
  • An occlusion mask restricts photometric consistency to pixels reconstructible from the other image and can be estimated from forward and backward flows.

4 Key Components of Unsupervised Optical Flow

The model combines a PWC-Net-based architecture with normalized cost volumes and improved photometric, occlusion, smoothness, and self-supervision components. These choices address convergence, occlusion-mask gradients, native-resolution regularization, and boundary extrapolation.

  • Model architecture: The model uses a PWC-Net-based shared CNN with feature pyramids, warping, cost-volume computation, flow estimation, and context-network refinement.At each level, upsampled flow warps the second image's features before cost-volume construction and flow estimation.
  • Cost volume normalization: 81-shift cost volumes compare each feature location with nearby features, and normalization improves convergence and final unsupervised-flow performance.The shifts cover up to 4 pixels horizontally and vertically; normalized features are used for inner-product correlations.
  • Objective components: The learning objective combines occlusion-aware photometric consistency, smoothness regularization, and self-supervision, with photometric losses compared across Charbonnier, SSIM, and Census formulations.The implementation uses occlusion-masked averaging for photometric losses and selects Census based on empirical results.
  • Occlusion handling: Stopping gradients at differentiable occlusion masks prevents divergence and improves performance because photometric optimization otherwise favors masking high-error pixels.The issue is reported for range-map-based occlusion estimation.
  • Smoothness: Smoothness is computed at native flow resolution before upsampling to avoid piece-wise linear fields whose second-order derivatives can be nonzero only every fourth pixel.The model estimates flow at one-quarter input resolution and normally upsamples it bilinearly.
  • Self-supervision: Self-supervision crops images by 64 pixels per edge and uses cropped full-image flow as supervision, while a single continually self-supervising model replaces a frozen teacher-student pair.Resizing crops to the original resolution makes examples more representative of extrapolating flow beyond image boundaries; teacher gradients are stopped.

5 Experiments

The evaluation uses Flying Chairs, Sintel, and KITTI 2012/2015 under standard or explicitly described splits and reports KITTI endpoint error and error rates. The protocol also addresses inconsistent Sintel practices and uses dataset-specific preprocessing and resolutions.

  • Datasets and splits: The model is evaluated on Flying Chairs, Sintel, and KITTI 2012/2015, with standard train/test splits for Flying Chairs and Sintel.KITTI training uses the multi-view extension of KITTI 2015 and excludes KITTI 2012 training data because it lacks moving objects.
  • Evaluation protocol: The evaluation distinguishes benchmark testing from ablations and notes that some related Sintel protocols include test-set images extracted from the movie.The paper identifies inconsistent train/test conventions as a concern for assessing generalization.
  • Metrics: KITTI performance is reported with endpoint error and error rates, where an error exceeds 3 pixels and 5% of the true flow-vector length.Metrics are computed over all pixels, called “all” in this paper and “occ” in the KITTI benchmark.
  • Preprocessing: Inference uses resolutions divisible by 32, produces flow at four times smaller resolution, and resizes outputs to the original resolution for evaluation.The experiments use 384×512 for Flying Chairs, 448×1024 for Sintel, and 640×640 for KITTI.

6 Results

The ablation studies identify which components and training choices improve unsupervised optical flow, while benchmark comparisons show strong performance against supervised and unsupervised methods. Results vary by dataset and by the combination of components used.

  • Benchmark comparisons: The model outperforms all published unsupervised methods on the reported benchmarks and reaches 11.13% vs. 14.19% for KITTI-15 against the compared unsupervised approach.It performs on par with supervised FlowNet2 on KITTI-15, while domain-finetuned supervised models outperform it.
  • Core components: Every core component—occlusion masking, smoothness, and self-supervision—contributes to overall performance, with flow error increasing when components are removed.The authors compare minimal and full settings because component utility depends on the other components present.
  • Model improvements: Level dropout and cost volume normalization improve performance in the full setting, with cost volume normalization more important for Chairs and Sintel and level dropout most helpful for KITTI.
  • Occlusion estimation: Range-map occlusion estimation diverges unless the photometric-loss gradient is stopped; with gradient stopping it works well, whereas forward-backward consistency works best for KITTI.
  • Smoothness: Applying smoothness at the flow-estimation resolution is advantageous for Flying Chairs and Sintel, while first-order smoothness suits Chairs and Sintel and second-order smoothness suits KITTI.Nonzero edge weights improve performance, particularly in the full setting.

7 Conclusion

The study systematically analyzes, compares, and improves key components of unsupervised optical flow, integrating the strongest findings into UFlow. UFlow substantially outperforms prior unsupervised methods and performs on par with supervised FlowNet2 on KITTI 2015 without labels, while remaining significantly simpler than many related approaches.

  • UFlow substantially outperforms the state of the art among unsupervised methods.
  • UFlow performs on par with supervised FlowNet2 on the challenging KITTI 2015 benchmark without using labels.
  • The study integrates novel observations from systematically analyzing, comparing, and improving key components into a unified unsupervised optical-flow framework.
  • The method is significantly simpler than many related approaches.
Loading 2006.04902v2…