BiFormer: Learning Bilateral Motion Estimation via Bilateral Transformer for 4K Video Frame Interpolation

Junheum Park, Jintae Kim, Chang-Su KimCVPR 2023 · DOI

Abstract

Video Frame Interpolation (VFI) for 4K resolution faces significant challenges due to large motion displacements. BiFormer introduces the first transformer-based bilateral motion estimator specifically designed for high-resolution content. By employing a novel bilateral cross-attention (BCA) mechanism and blockwise bilateral cost volumes (BBCVs), BiFormer effectively captures global motion at coarse scales and refines it for fine details. Experimental results demonstrate that BiFormer achieves state-of-the-art performance on major 4K benchmarks, significantly reducing artifacts in fast-moving sequences.

Introduction

Video Frame Interpolation (VFI) aims to synthesize intermediate frames to enhance video frame rates. While standard HD interpolation is relatively mature, 4K video introduces "large motion" challenges, where objects can displace by hundreds of pixels between consecutive frames. Traditional "coarse-to-fine" CNN strategies often fail at 4K because initial errors at low resolutions propagate and magnify, leading to ghosting and blurring. Furthermore, standard transformers require a target frame as an anchor, which is unavailable in the VFI task. BiFormer addresses these issues by leveraging a bilateral transformer architecture to estimate motion directly between available frames.

Methods

The BiFormer framework utilizes a three-stage pipeline to handle the transition from global motion to local details:

  1. Global Motion Estimation (BiFormer): At the 1/8 scale, the BiFormer module estimates coarse bilateral motion. It introduces Bilateral Cross Attention (BCA) to solve the "missing anchor" problem. BCA-A (without anchor) identifies similarities between symmetric patches in $I_0$ and $I_1$, while BCA+A (with anchor) refines these estimates once an initial motion field is established.
  2. Local Motion Refinement (Upsampler): To maintain efficiency at 4K, the model uses CNN-based upsamplers at 1/4 and 1/2 scales. This stage employs Blockwise Bilateral Cost Volumes (BBCVs), allowing for efficient motion search across different block sizes (1x1 to 4x4) without the memory overhead of full-resolution transformers.
  3. Frame Synthesis: The final refined motion fields are used to warp input frames, which are then blended through a synthesis network to produce the 4K intermediate frame $I_t$.
Overall pipeline of BiFormer, featuring global motion estimation, local refinement, and frame synthesis.

Key Insights

  • Symmetric Bilateral Motion: BiFormer relies on the assumption that motion from $I_0 \to I_t$ is roughly the inverse of $I_t \to I_1$. This symmetry allows the model to estimate the missing middle frame's motion using only the surrounding frames.
  • Hybrid Architecture: The paper optimally combines Transformers for long-range global motion capture at coarse scales with CNNs for parameter-efficient local refinement at high resolutions.
  • Bilateral Cross-Attention: The BCA blocks provide a principled way to apply transformer attention to the VFI task without requiring the ground-truth intermediate frame as a query.

Results and Evaluation

BiFormer was evaluated on three major 4K benchmarks: X4K1000FPS (X-TEST), Xiph-4K, and BVI-DVC-4K.

Quantitative Performance

On the X4K1000FPS dataset, BiFormer achieved a PSNR of 31.32 dB, outperforming the previous state-of-the-art (M2M-PWC) by 0.51 dB. It consistently ranks highest across all metrics (PSNR, SSIM) on 4K datasets.

Qualitative Comparison

As shown in the visual comparisons, BiFormer excels at reconstructing fast-moving objects. In scenarios with displacements exceeding 200 pixels, competing methods like ABME and XVFI often produce severe ghosting or distorted motion fields, whereas BiFormer maintains structural integrity.

Qualitative comparison on 4K video. BiFormer handles large motion (233px horizontal displacement) more effectively than ABME and XVFI.

Efficiency

BiFormer can process an entire 4K frame in approximately 2.23 seconds on an NVIDIA RTX 3090. Unlike patch-based methods (e.g., ABME), it avoids the boundary artifacts and overhead associated with tiling high-resolution frames.

Limitations

Despite its performance, BiFormer is not yet capable of real-time 4K interpolation, which requires sub-16ms processing for 60fps output. Additionally, the bilateral symmetry assumption may struggle with complex, non-linear trajectories or sudden accelerations. Future work will focus on further optimizing the transformer architecture for speed and exploring non-linear motion modeling.

Summary updated

BibTeX
@inproceedings{park2023biformer,
  author = {Junheum Park and Jintae Kim and Chang-Su Kim},
  title = {{BiFormer: Learning Bilateral Motion Estimation via Bilateral Transformer for 4K Video Frame Interpolation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  doi = {10.1109/cvpr52729.2023.00157},
}
Figure