[Paper Review] High-Resolution Optical Flow from 1D Attention and Correlation
This paper proposes Flow1D, a novel 1D attention and correlation-based cost volume construction method for high-resolution optical flow estimation. By factorizing 2D correspondence matching into orthogonal 1D attention and correlation operations, it reduces computational complexity from O(H²W²) to O(HW(H+W)), enabling efficient inference on 8K-resolution images with 6× lower memory than RAFT while maintaining competitive accuracy on Sintel and KITTI benchmarks.
Optical flow is inherently a 2D search problem, and thus the computational complexity grows quadratically with respect to the search window, making large displacements matching infeasible for high-resolution images. In this paper, we take inspiration from Transformers and propose a new method for high-resolution optical flow estimation with significantly less computation. Specifically, a 1D attention operation is first applied in the vertical direction of the target image, and then a simple 1D correlation in the horizontal direction of the attended image is able to achieve 2D correspondence modeling effect. The directions of attention and correlation can also be exchanged, resulting in two 3D cost volumes that are concatenated for optical flow estimation. The novel 1D formulation empowers our method to scale to very high-resolution input images while maintaining competitive performance. Extensive experiments on Sintel, KITTI and real-world 4K ($2160 imes 3840$) resolution images demonstrated the effectiveness and superiority of our proposed method. Code and models are available at \url{https://github.com/haofeixu/flow1d}.
Motivation & Objective
- Address the quadratic computational complexity of 4D cost volumes in state-of-the-art optical flow methods like RAFT, which limits scalability to high-resolution inputs.
- Overcome the inefficiency and memory constraints of existing 4D cost volume constructions when processing high-resolution images such as 4K and 8K.
- Develop a compact, efficient cost volume formulation that maintains competitive accuracy while enabling real-time inference on ultra-high-resolution video.
- Enable practical optical flow estimation on consumer-grade high-definition video by reducing memory and computation without sacrificing key correspondence modeling.
Proposed method
- Propose a 1D attention mechanism applied vertically on the target image feature map to propagate long-range dependencies across rows.
- Apply 1D correlation horizontally on the attended features to build a 3D cost volume that models horizontal correspondence, effectively simulating 2D matching.
- Reverse the attention and correlation directions to create a second 3D cost volume, which is then concatenated with the first for full 2D correspondence modeling.
- Construct two 3D cost volumes of size H×W×W and H×W×H, reducing the overall complexity from O(H²W²) to O(HW(H+W)) compared to standard 4D correlation.
- Use the resulting compact cost volumes as input to a flow head network for end-to-end optical flow regression.
- Leverage self-attention and cross-attention mechanisms inspired by Transformers to enhance feature propagation and matching accuracy in the 1D formulation.

Experimental results
Research questions
- RQ1Can 2D optical flow correspondence modeling be effectively factorized into orthogonal 1D operations without significant accuracy loss?
- RQ2Can 1D attention and correlation achieve competitive performance on standard benchmarks while drastically reducing computational cost?
- RQ3To what extent can this method scale to ultra-high-resolution images (e.g., 4K and 8K) compared to existing 4D cost volume methods?
- RQ4How does the proposed method compare in memory efficiency and inference speed to state-of-the-art models like RAFT on high-resolution inputs?
Key findings
- Flow1D achieves second-best performance on the Sintel test split, with a final end-point error of 1.25, trailing only RAFT (1.27) and outperforming PWC-Net+ (2.34).
- On the KITTI 2015 benchmark, Flow1D achieves a F1-all score of 6.27, outperforming PWC-Net+ (7.72) and approaching MaskFlowNet (6.10), though still slightly behind RAFT (5.10).
- At 1080p resolution, Flow1D consumes 6× less memory than RAFT, with significantly faster inference due to reduced cost volume computation.
- Flow1D successfully processes 4K (2160×3840) resolution images with only 5.8GB memory, while RAFT fails due to out-of-memory issues.
- The method scales to 8K resolution (4320×7680) with 21.81GB memory consumption, demonstrating strong scalability beyond current state-of-the-art methods.
- Visual comparisons on DAVIS 1080p and 4K datasets show Flow1D produces results comparable to RAFT, with minimal visible artifacts and strong structural consistency.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.