[Paper Review] FlowFormer++: Masked Cost Volume Autoencoding for Pretraining Optical Flow Estimation
This paper proposes FlowFormer++, a self-supervised pretraining method for optical flow estimation using Masked Cost Volume Autoencoding (MCVA). By introducing block-sharing masking and a long-range reconstruction pre-text task, MCVA enhances the cost-volume encoder's ability to capture global context, achieving state-of-the-art performance with 1.07 AEPE on Sintel Clean and 4.52 F1-all on KITTI-2015, outperforming FlowFormer by 7.76% and 7.18% respectively in error reduction.
FlowFormer introduces a transformer architecture into optical flow estimation and achieves state-of-the-art performance. The core component of FlowFormer is the transformer-based cost-volume encoder. Inspired by the recent success of masked autoencoding (MAE) pretraining in unleashing transformers' capacity of encoding visual representation, we propose Masked Cost Volume Autoencoding (MCVA) to enhance FlowFormer by pretraining the cost-volume encoder with a novel MAE scheme. Firstly, we introduce a block-sharing masking strategy to prevent masked information leakage, as the cost maps of neighboring source pixels are highly correlated. Secondly, we propose a novel pre-text reconstruction task, which encourages the cost-volume encoder to aggregate long-range information and ensures pretraining-finetuning consistency. We also show how to modify the FlowFormer architecture to accommodate masks during pretraining. Pretrained with MCVA, FlowFormer++ ranks 1st among published methods on both Sintel and KITTI-2015 benchmarks. Specifically, FlowFormer++ achieves 1.07 and 1.94 average end-point error (AEPE) on the clean and final pass of Sintel benchmark, leading to 7.76\% and 7.18\% error reductions from FlowFormer. FlowFormer++ obtains 4.52 F1-all on the KITTI-2015 test set, improving FlowFormer by 0.16.
Motivation & Objective
- To address the limitation of random masking in masked autoencoding when applied to cost volumes, which causes information leakage due to high correlation between neighboring source pixels' cost maps.
- To reduce pretraining-finetuning discrepancy by designing a reconstruction task that mimics the actual decoding process in flow estimation.
- To improve the cost-volume encoder’s ability to aggregate long-range information through task-specific masking and reconstruction strategies.
- To enable effective self-supervised pretraining of the cost-volume encoder without relying on supervised supervision or unsupervised losses.
- To demonstrate that freezing the image encoder during pretraining is essential to prevent training collapse and maintain static reconstruction targets.
Proposed method
- Introduce a block-sharing masking strategy that groups neighboring source pixels into blocks and applies the same mask pattern to all cost maps within each block, reducing information leakage from spatially correlated cost values.
- Propose a novel pre-text reconstruction task where the model reconstructs larger $15\times15$ cost patches from smaller $9\times9$ cropped patches, aligning with the dynamic query mechanism used in finetuning.
- Modify the FlowFormer architecture to handle masked inputs during pretraining by integrating the masked cost volume into the transformer-based cost-volume encoder.
- Use a frozen image encoder during pretraining to stabilize the reconstruction targets (raw cost values), preventing model divergence.
- Employ a context encoder that is also frozen during pretraining to improve overall performance and avoid interference with the cost-volume learning objective.
- Design the reconstruction task to encourage the encoder to reason about masked regions using unmasked, distant cost features, promoting long-range feature abstraction.
Experimental results
Research questions
- RQ1Can masked autoencoding be effectively adapted to pretrain the cost-volume encoder in optical flow estimation, despite the high spatial correlation in cost volumes?
- RQ2Does a block-sharing masking strategy prevent information leakage and improve long-range feature learning compared to random masking?
- RQ3Can a reconstruction task that mimics the actual decoding process reduce pretraining-finetuning discrepancy and improve downstream performance?
- RQ4Is freezing the image encoder during pretraining necessary to maintain training stability and performance?
- RQ5How does the proposed MCVA pretraining scheme compare to unsupervised pretraining with photometric and smoothness losses in terms of final flow estimation accuracy?
Key findings
- FlowFormer++ achieves 1.07 average end-point error (AEPE) on the Sintel Clean benchmark, representing a 7.76% relative error reduction compared to FlowFormer.
- On the Sintel Final pass, FlowFormer++ achieves 1.94 AEPE, a 7.18% relative improvement over FlowFormer.
- On the KITTI-2015 test set, FlowFormer++ attains 4.52 F1-all, a 0.16 improvement over FlowFormer.
- The block-sharing masking strategy yields better performance than random masking, with 0.90 AEPE on Sintel Clean versus 0.93 with random masking.
- A 50% masking ratio yields the best overall performance, balancing reconstruction difficulty and feature abstraction capacity.
- Freezing both the image and context encoders during pretraining leads to stable training and improved performance, with the image encoder being essential to prevent divergence.
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.