Unsupervised Flow Refinement near Motion Boundaries

Shuzhi Yu, Hannah Halin Kim, Shuai Yuan, Carlo Tomasi

Abstract

Unsupervised optical flow estimation often struggles at motion boundaries due to inherent smoothness assumptions and feature contamination within neural network receptive fields. This paper presents a "plug-and-play" framework designed to improve flow accuracy specifically at these boundaries. By employing a two-step process of detection and refinement, the method identifies unreliable flow estimates and replaces them with more stable values from nearby "safe" regions. Evaluated on MPI-Sintel and KITTI-2015 benchmarks, the approach demonstrates significant error reduction at motion boundaries without requiring ground-truth labels or additional training.

Introduction

Optical flow—the task of tracking pixel-level motion between consecutive video frames—is a fundamental component of modern computer vision. While deep learning has significantly advanced this field, most models continue to struggle at Motion Boundaries (MBs). These boundaries represent the edges where objects move relative to their backgrounds or other objects.

In unsupervised learning contexts, where models are trained to reconstruct frames rather than learn from labeled data, two primary issues arise at MBs:

  1. The Smoothness Trap: Standard flow estimators assume that motion varies gradually across an image. At a boundary, this assumption is violated, leading the model to "bleed" motion from the foreground into the background.
  2. Feature Contamination: Neural networks utilize receptive fields to process image patches. Near a boundary, these patches inevitably contain pixels moving in different directions, causing the network to produce a blurry, inaccurate average of the two motions.

Methodology

The proposed framework introduces a post-processing pipeline that can be applied to the output of any existing unsupervised flow estimator. The process consists of two main phases: Detection and Refinement.

1. Motion Boundary Detection

To accurately locate boundaries, the system utilizes "hysteresis thresholding"—a technique that tracks strong signals and follows them through weaker ones—across three distinct data maps:

  • Image Edges ($M_e$): Standard visual discontinuities in the image.
  • Motion Discrepancy ($M_{md}$): Regions where the estimated flow gradient is high, indicating a sharp change in motion.
  • Invalid Smooth Motion ($M_{ism}$): A novel metric that identifies where the smoothness assumption fails. It evaluates whether a pixel's appearance matches better when moved by its own estimated motion versus the motion of a neighbor on the opposite side of a potential boundary.

2. Flow Refinement via Replacement

Once a boundary is detected, the algorithm identifies "replacement target points" near the edge. It then searches for a "safe distance" ($d^*$) further away from the boundary where the flow estimate is more stable.

This strategy manages a critical trade-off: while moving further from the boundary increases "approximation error" (the motion at $d^*$ is not identical to the target pixel), it drastically reduces "estimation error" (the original flow at the boundary was highly inaccurate). The algorithm only replaces the boundary flow if the motion difference across the boundary is significant enough to justify the change.

Experiments and Results

The method was evaluated using top-tier unsupervised estimators, such as SMURF and AR-Flow, on two gold-standard benchmarks: MPI-Sintel (synthetic) and KITTI-2015 (real-world driving).

Quantitative Performance

The refinement significantly improved both detection accuracy and flow precision:

  • Detection Accuracy: Using AR-Flow on the Sintel Clean dataset, the $F_1$-score for boundary detection increased from 53.1 to 64.3.
  • Error Reduction: On the specific pixels targeted for replacement, the End-Point Error (EPE) was reduced by 17.34% on Sintel Final and 4.30% on KITTI.

Qualitative Impact

Visually, the refined flow maps exhibit much sharper edges. The typical "motion blur" or "bleeding" seen around moving objects in unsupervised outputs is largely eliminated, resulting in cleaner object silhouettes.

Discussion

A key insight of this research is the Asymmetry of Error: flow estimates are often significantly more accurate on one side of a boundary (typically the foreground) than the other. The $M_{ism}$ map exploits this to determine where the model is most confused.

While motion boundaries represent only about 1% of the total pixels in a typical frame, they are disproportionately important. Refining these pixels may only result in a modest improvement to the average error of an entire image, but it significantly reduces the maximum error. This is vital for downstream applications like object segmentation, video editing, and autonomous navigation where edge precision is critical.

Conclusion and Future Work

This research provides a robust, training-free method for enhancing unsupervised optical flow. By treating motion boundaries as a specific geometric problem rather than a general learning failure, the authors achieve sharper, more accurate results. Future work may involve integrating these detection maps directly into the training phase of unsupervised networks, using them as a mask to force models to respect motion discontinuities from the outset.

Summary updated

BibTeX
@inproceedings{yu2022unsupervised,
  author = {Shuzhi Yu and Hannah Halin Kim and Shuai Yuan and Carlo Tomasi},
  title = {{Unsupervised Flow Refinement near Motion Boundaries}},
  booktitle = {BMVC},
  year = {2022},
  url = {https://openreview.net/forum?id=b2CETOLpk5},
}
Figure