[Paper Review] CRAFT: Cross-Attentional Flow Transformer for Robust Optical Flow
CRAFT proposes a novel optical flow network that enhances correlation volume computation using a Semantic Smoothing Transformer and Cross-Frame Attention to reduce noise and improve robustness on large displacements with motion blur. It achieves state-of-the-art performance on Sintel (Final) and KITTI (foreground), outperforming RAFT and GMA under adversarial image shifting attacks simulating large motions.
Optical flow estimation aims to find the 2D motion field by identifying corresponding pixels between two images. Despite the tremendous progress of deep learning-based optical flow methods, it remains a challenge to accurately estimate large displacements with motion blur. This is mainly because the correlation volume, the basis of pixel matching, is computed as the dot product of the convolutional features of the two images. The locality of convolutional features makes the computed correlations susceptible to various noises. On large displacements with motion blur, noisy correlations could cause severe errors in the estimated flow. To overcome this challenge, we propose a new architecture "CRoss-Attentional Flow Transformer" (CRAFT), aiming to revitalize the correlation volume computation. In CRAFT, a Semantic Smoothing Transformer layer transforms the features of one frame, making them more global and semantically stable. In addition, the dot-product correlations are replaced with transformer Cross-Frame Attention. This layer filters out feature noises through the Query and Key projections, and computes more accurate correlations. On Sintel (Final) and KITTI (foreground) benchmarks, CRAFT has achieved new state-of-the-art performance. Moreover, to test the robustness of different models on large motions, we designed an image shifting attack that shifts input images to generate large artificial motions. Under this attack, CRAFT performs much more robustly than two representative methods, RAFT and GMA. The code of CRAFT is is available at https://github.com/askerlee/craft.
Motivation & Objective
- To address the challenge of inaccurate optical flow estimation under large displacements and motion blur, where correlation volumes are corrupted by noisy, spurious matches.
- To improve the robustness of correlation volume computation by enhancing feature semantics and filtering noise before matching.
- To overcome the limitations of dot-product correlations in convolutional feature matching, which are sensitive to local texture loss and blur.
- To validate that transformer-based feature smoothing and cross-attention mechanisms can significantly reduce spurious correlations in optical flow estimation.
Proposed method
- Introduces a Semantic Smoothing Transformer (SST) layer that applies self-attention within a single frame to globally smooth and semantically stabilize features before correlation computation.
- Replaces traditional dot-product correlation with a cross-frame attention mechanism that uses Query and Key projections to filter noisy features and compute more accurate inter-frame similarities.
- Applies the SST only to one frame (not both) to avoid introducing additional noise, as shown by ablation studies.
- Uses a multi-scale flow refinement head similar to RAFT, but with enhanced correlation volumes from the proposed components.
- Employs a novel image shifting attack to simulate large artificial motions and evaluate robustness under extreme displacement and blur.
- Leverages Vision Transformer properties to denoise features by attending to semantically similar, contextually relevant pixels across the image.
Experimental results
Research questions
- RQ1Can a transformer-based feature smoothing mechanism reduce noise in optical flow correlation volumes and improve matching accuracy on blurry or textured images?
- RQ2Does replacing dot-product correlation with cross-frame attention lead to more robust and accurate flow estimation under motion blur and large displacements?
- RQ3How does the proposed CRAFT architecture compare to state-of-the-art methods like RAFT and GMA in terms of robustness to artificial large motions and image degradation?
- RQ4What is the impact of applying the Semantic Smoothing Transformer to both input frames, and why does it degrade performance?
- RQ5To what extent do the proposed components reduce spurious correlations in the correlation volume, as visualized in heatmaps?
Key findings
- CRAFT achieves new state-of-the-art performance on the Sintel (Final) benchmark, significantly outperforming RAFT and GMA in terms of average end-point error (AEPE).
- On the KITTI (foreground) benchmark, CRAFT achieves the best results among all methods evaluated, demonstrating strong generalization to real-world scenarios.
- Under an image shifting attack simulating large displacements (Δu ∈ [100,300]), CRAFT maintains low AEPE, while RAFT and GMA show severe performance degradation beyond Δu = 160.
- The correlation volumes computed by CRAFT contain significantly fewer spurious matches than RAFT and GMA, as confirmed by visualizations on Sintel (Final) with motion blur.
- Applying the Semantic Smoothing Transformer to both frames (Double SST) increases spurious correlations and degrades performance, indicating that single-frame smoothing is optimal.
- The AEPE of CRAFT on the Slow Flow dataset (with motion blur) is only 35 pixels higher than on Sintel, whereas RAFT and GMA suffer 80–100 pixel increases, proving its robustness to blur.
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.