Abstract
Estimating per-pixel motion between video frames, known as optical flow, is a long-standing problem in video understanding and analysis. Most contemporary optical flow techniques largely focus on addressing the cross-image matching with feature similarity, with few methods considering how to explicitly reason over the given scene for achieving a holistic motion understanding. In this work, taking a fresh perspective, we introduce a novel graph-based approach, called adaptive graph reasoning for optical flow (AGFlow), to emphasize the value of scene/context information in optical flow. Our key idea is to decouple the context reasoning from the matching procedure, and exploit scene information to effectively assist motion estimation by learning to reason over the adaptive graph. The proposed AGFlow can effectively exploit the context information and incorporate it within the matching procedure, producing more robust and accurate results. On both Sintel clean and final passes, our AGFlow achieves the best accuracy with EPE of 1.43 and 2.47 pixels, outperforming state-of-the-art approaches by 11.2% and 13.6%, respectively.
Introduction
Optical flow estimation is a fundamental task in computer vision, yet current state-of-the-art models often struggle with local ambiguities. While architectures like RAFT have advanced the field, they rely heavily on local feature matching. In scenarios involving motion blur, heavy occlusions, or textureless regions, local appearance becomes insufficient for accurate estimation. Humans resolve these ambiguities by understanding the holistic scene structure—recognizing that a pixel belongs to a specific object. AGFlow addresses this by moving beyond regular convolutional grids to perform global reasoning in a graph domain.
Adaptive Graph Reasoning (AGFlow)
The core innovation of AGFlow is the Adaptive Graph Reasoning (AGR) module, which decouples motion features from scene context. The process begins with Node Embedding, where motion features from 4D correlation volumes and context features from the source image are projected into a low-dimensional graph space.
Instead of a static graph, AGFlow employs a Graph Adapter (GA). This module uses context nodes to dynamically predict weights for the motion graph, effectively allowing the scene's layout to guide the propagation of motion information. By processing context and motion separately before fusion, the model ensures that the structural priors of the scene inform the motion estimation. Finally, an Attentive Readout module projects these enhanced features back to the 2D grid for final flow prediction. This graph-based approach allows for global interaction with minimal computational overhead, adding only ~0.3M parameters.
Experimental Results
AGFlow was evaluated on standard benchmarks including MPI-Sintel and KITTI 2015. On the Sintel "Clean" and "Final" test sets, AGFlow achieved End-Point Errors (EPE) of 1.43 and 2.47, respectively, representing an improvement of 11.2% and 13.6% over previous best methods. On KITTI-15, it achieved an F1-all score of 4.89%, outperforming RAFT (5.10%) and SCV (6.17%).
As illustrated in Figure 1, AGFlow demonstrates a significant qualitative advantage. In regions with high motion blur, previous models like RAFT produce noisy flow fields. In contrast, AGFlow leverages its graph-based reasoning to maintain clean, sharp boundaries that align with the underlying scene structure.
Conclusion
AGFlow introduces a novel perspective on optical flow by emphasizing the role of holistic scene reasoning. By decoupling context from matching and utilizing an adaptive graph architecture, the model effectively resolves local ambiguities that plague traditional grid-based methods. The significant performance gains on Sintel and KITTI benchmarks validate the importance of incorporating scene-level context into motion estimation tasks.
Summary updated