Skip to main content
QUICK REVIEW

[Paper Review] Global Matching with Overlapping Attention for Optical Flow Estimation

Shiyu Zhao, L. Zhao|arXiv (Cornell University)|Mar 21, 2022
Advanced Vision and ImagingComputer Science7 citations
TL;DR

This paper proposes GMFlowNet, a learning-based matching-optimization framework for optical flow estimation that introduces a global matching step using argmax on 4D cost volumes to explicitly handle large displacements. It enhances matching accuracy with a Patch-based OverLapping Attention (POLA) module that captures large context features, achieving state-of-the-art performance on Sintel and KITTI benchmarks with minimal computational overhead.

ABSTRACT

Optical flow estimation is a fundamental task in computer vision. Recent direct-regression methods using deep neural networks achieve remarkable performance improvement. However, they do not explicitly capture long-term motion correspondences and thus cannot handle large motions effectively. In this paper, inspired by the traditional matching-optimization methods where matching is introduced to handle large displacements before energy-based optimizations, we introduce a simple but effective global matching step before the direct regression and develop a learning-based matching-optimization framework, namely GMFlowNet. In GMFlowNet, global matching is efficiently calculated by applying argmax on 4D cost volumes. Additionally, to improve the matching quality, we propose patch-based overlapping attention to extract large context features. Extensive experiments demonstrate that GMFlowNet outperforms RAFT, the most popular optimization-only method, by a large margin and achieves state-of-the-art performance on standard benchmarks. Thanks to the matching and overlapping attention, GMFlowNet obtains major improvements on the predictions for textureless regions and large motions. Our code is made publicly available at https://github.com/xiaofeng94/GMFlowNet

Motivation & Objective

  • To address the limitation of direct-regression optical flow methods in handling large displacements due to lack of explicit long-term correspondence modeling.
  • To improve matching accuracy in textureless and ambiguous regions by leveraging large context features.
  • To integrate a global matching step into end-to-end learning-based optimization, inspired by traditional matching-optimization pipelines.
  • To develop an efficient yet effective architecture that outperforms state-of-the-art methods like RAFT while maintaining practical inference speed.

Proposed method

  • Introduces a global matching step by applying argmax on a 4D cost volume constructed from large-context features, enabling explicit modeling of long-range motion correspondences.
  • Proposes a Patch-based OverLapping Attention (POLA) block that attends over patches and their neighbors to extract large-scale contextual features, reducing ambiguity in matching.
  • Employs a three-stage framework: (1) large context feature extraction using 3 convolutional layers and POLA blocks, (2) global matching via argmax on cost volume followed by mutual matching refinement, and (3) iterative optimization using RAFT's learned update module.
  • Uses 4D cost volumes to represent pixel-wise similarity across frames, with features extracted using a CNN and enhanced by POLA for better context modeling.
  • Replaces standard attention mechanisms in vision transformers with POLA to maintain efficiency while improving performance on optical flow tasks.
  • Employs a lightweight global matching module that adds only 0.52% inference time overhead compared to RAFT, ensuring practical efficiency.

Experimental results

Research questions

  • RQ1Can introducing a global matching step into direct-regression optical flow networks significantly improve performance on large motion and textureless regions?
  • RQ2How effective is patch-based overlapping attention in reducing local ambiguities during optical flow matching compared to standard self-attention or CNNs?
  • RQ3Does a learning-based matching-optimization framework outperform pure end-to-end regression or optimization-only baselines like RAFT?
  • RQ4What is the computational cost of adding global matching and overlapping attention, and can it be made efficient enough for practical deployment?
  • RQ5How do architectural choices such as feature extractor type and number of attention blocks affect the final performance and efficiency of the model?

Key findings

  • GMFlowNet achieves state-of-the-art performance on the Sintel and KITTI benchmarks, with a final error of 1.14 on Sintel Clean and 4.24 on KITTI, outperforming RAFT by a significant margin.
  • The global matching module reduces error by 12.6% on Sintel Final and 6.0% on KITTI compared to RAFT, demonstrating its effectiveness in handling large displacements.
  • The POLA module outperforms ResNet, Swin Transformer, and ViT in matching accuracy, especially in textureless and repetitive regions, due to its large receptive field and local context aggregation.
  • Adding global matching to RAFT (RAFT+GM) reduces error by 12.6% on Sintel Final and 6.0% on KITTI, proving its direct contribution to performance.
  • Despite adding 4M parameters and 0.078s inference time compared to +Swin, GMFlowNet improves performance by 13.5% on Sintel Clean and 24.9% on KITTI, showing the overhead is justified.
  • The ablation study confirms that 3-Convs for initial feature extraction and 6 POLA blocks yield the best trade-off between performance and efficiency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.