Abstract
Optical flow estimation—the task of calculating per-pixel motion between video frames—is fundamental to computer vision applications ranging from autonomous navigation to video editing. However, traditional methods often treat flow estimation and confidence assessment as decoupled processes. This paper presents ProbFlow, a framework that reformulates optical flow as a probabilistic inference problem. By utilizing variational inference and Gaussian Scale Mixtures, ProbFlow produces motion vectors and mathematically grounded uncertainty maps simultaneously. Evaluations on benchmarks like MPI Sintel show that ProbFlow's model-inherent uncertainty significantly outperforms traditional post-hoc measures while maintaining competitive flow accuracy.
Introduction
Optical flow algorithms frequently encounter challenging scenarios, such as occlusion boundaries, motion blur, and untextured surfaces, where estimation becomes unreliable. For downstream tasks like robotic navigation or object tracking, knowing when to trust a motion vector is as critical as the vector itself.
Historically, researchers have relied on "post-hoc" confidence measures—algorithms that analyze the output of a flow estimator to guess its errors. These methods are limited because they lack access to the internal optimization dynamics of the flow estimator. ProbFlow addresses this gap by treating uncertainty as a first-class citizen within the estimation process, moving from simple energy minimization to full probabilistic inference.
Methodology: From Energy to Probability
The core innovation of ProbFlow is the transition from minimizing an energy function $E(y)$ to performing inference on a Gibbs distribution, where the probability of a flow field $y$ is defined as $p(y) \propto \exp(-E(y))$.
Variational Inference
Because calculating the exact posterior distribution for every pixel is computationally intractable, the authors employ a mean-field approximation. This approach approximates the complex posterior with a simpler, factorized Gaussian distribution $q$. By minimizing the Kullback-Leibler (KL) divergence between $q$ and the true distribution, the model fits the best Gaussian representation of the flow.
Gaussian Scale Mixtures (GSMs)
To maintain the robustness of modern non-linear penalty functions (which are essential for handling outliers like occlusions), ProbFlow models these penalties as Gaussian Scale Mixtures. This mathematical formulation allows the framework to retain the benefits of Gaussian distributions while effectively ignoring outliers during the optimization process.
Uncertainty via Entropy
The uncertainty at each pixel is derived directly from the marginal entropy of the fitted distribution $q$. A sharp peak in the distribution indicates high confidence, while a broad, flat distribution signals high uncertainty. This uncertainty is not merely local; the spatial inference allows uncertainty to propagate through the field, reflecting the inherent dependencies between neighboring pixels.
Key Results
The authors evaluated ProbFlow on the Middlebury, MPI Sintel, and FBMS-59 datasets. A primary finding was that tuning parameters solely for flow accuracy (Average End-Point Error) often degrades the quality of the uncertainty map. Consequently, the authors introduced a balanced F1-score to optimize both accuracy and uncertainty quality.
On the challenging MPI Sintel benchmark, ProbFlow improved the uncertainty Area Under Curve (AUC) by over 18% compared to state-of-the-art post-hoc methods. Furthermore, the flow accuracy remained competitive, ranking 6th on the Sintel test set at the time of publication. In motion segmentation tasks on FBMS-59, ProbFlow's uncertainty maps proved more effective at filtering unreliable trajectories than standard forward-backward consistency checks.
Conclusion and Future Work
ProbFlow demonstrates that uncertainty is best estimated as an inherent part of the flow optimization process. While the joint estimation introduces a computational overhead (approximately 1.9x slower than non-probabilistic baselines), the gains in reliability are substantial. Future work may involve integrating non-differentiable steps like median filtering into the probabilistic framework and extending the approach to other dense correspondence problems, such as stereo matching and depth estimation.
Summary updated