Abstract
Occlusions between consecutive frames have long posed a significant challenge in optical flow estimation. The inherent ambiguity introduced by occlusions directly violates the brightness constancy constraint and considerably hinders pixel-to-pixel matching. To address this issue, multi-frame optical flow methods leverage adjacent frames to mitigate the local ambiguity. Nevertheless, prior multi-frame methods predominantly adopt recursive flow estimation, resulting in a considerable computational overlap. In contrast, we propose a streamlined in-batch framework that eliminates the need for extensive redundant recursive computations while concurrently developing effective spatio-temporal modeling approaches under in-batch estimation constraints. Specifically, we present a Streamlined In-batch Multi-frame (SIM) pipeline tailored to video input, attaining a similar level of time efficiency to two-frame networks. Furthermore, we introduce an efficient Integrative Spatio-temporal Coherence (ISC) modeling method for effective spatio-temporal modeling during the encoding phase, which introduces no additional parameter overhead. Additionally, we devise a Global Temporal Regressor (GTR) that effectively explores temporal relations during decoding. Benefiting from the efficient SIM pipeline and effective modules, StreamFlow not only excels in terms of performance on the challenging KITTI and Sintel datasets, with particular improvement in occluded areas but also attains a remarkable 63.82% enhancement in speed compared with previous multi-frame methods.
Introduction
Optical flow estimation—the task of predicting pixel-level motion between frames—is fundamental to computer vision applications ranging from autonomous driving to video editing. A persistent challenge in this field is occlusion, where objects moving behind others violate the "brightness constancy" assumption. While multi-frame methods can resolve these ambiguities by looking at temporal context (past and future frames), they have historically been computationally expensive. Existing models often rely on recursive estimation, re-calculating features for the same frames as a sliding window moves across the video, leading to significant redundancy.
Methodology
StreamFlow addresses the efficiency-accuracy trade-off through three primary architectural innovations designed to eliminate computational overlap while maintaining high precision.
Streamlined In-batch Multi-frame (SIM) Pipeline
The core of StreamFlow is the SIM pipeline. Unlike traditional recursive methods that re-process frames, SIM processes video frames in non-overlapping batches. By utilizing a "Memory Bank" to cache feature embeddings, the model ensures that feature extraction and correlation construction occur exactly once per frame. This architectural shift allows multi-frame processing to reach the speed levels of efficient two-frame networks.
Spatio-temporal Modeling
To maintain accuracy within this streamlined pipeline, the authors introduced two modules:
- Integrative Spatio-temporal Coherence (ISC): This module performs temporal reasoning during the encoding phase by stacking embeddings from multiple frames spatially. This allows a standard transformer to learn temporal relations with zero additional parameter overhead.
- Global Temporal Regressor (GTR): During decoding, the GTR uses lightweight temporal and spatial cross-attention to ensure motion predictions are globally consistent across the entire batch.
Experimental Results
StreamFlow was evaluated on industry-standard benchmarks, including MPI Sintel and KITTI-2015. The results demonstrate that the model effectively solves the redundancy problem without sacrificing performance.
- Efficiency: StreamFlow is 63.82% faster than previous state-of-the-art multi-frame methods like VideoFlow. It achieves a runtime of approximately 85ms, making it competitive with much simpler two-frame models.
- Accuracy: At the time of submission, StreamFlow achieved the #1 rank on both Sintel and KITTI benchmarks. Notably, it showed a 10% performance improvement in occluded regions on the Sintel "Final" pass compared to baseline models.
Conclusion
StreamFlow demonstrates that the primary bottleneck in multi-frame optical flow is not the complexity of temporal logic, but the inefficiency of data processing. By adopting an in-batch pipeline and parameter-efficient modeling, StreamFlow sets a new standard for high-speed, high-accuracy video motion estimation. Future work will focus on scaling the SIM pipeline to handle longer sequences and applying this framework to related tasks like video object segmentation.
Summary updated