Skip to main content
QUICK REVIEW

[Paper Review] FuseFormer: Fusing Fine-Grained Information in Transformers for Video Inpainting

Rui Liu, Hanming Deng|arXiv (Cornell University)|Sep 7, 2021
Generative Adversarial Networks and Image SynthesisComputer Science42 references7 citations
TL;DR

FuseFormer proposes a novel Transformer architecture for video inpainting that enhances fine-grained feature fusion through Soft Split and Soft Composition operations, enabling sub-patch level interaction and improving edge sharpness and temporal coherence. It achieves state-of-the-art performance with minimal computational overhead by integrating these operations into the feed-forward network via the Fusion Feed-Forward Network (F3N).

ABSTRACT

Transformer, as a strong and flexible architecture for modelling long-range relations, has been widely explored in vision tasks. However, when used in video inpainting that requires fine-grained representation, existed method still suffers from yielding blurry edges in detail due to the hard patch splitting. Here we aim to tackle this problem by proposing FuseFormer, a Transformer model designed for video inpainting via fine-grained feature fusion based on novel Soft Split and Soft Composition operations. The soft split divides feature map into many patches with given overlapping interval. On the contrary, the soft composition operates by stitching different patches into a whole feature map where pixels in overlapping regions are summed up. These two modules are first used in tokenization before Transformer layers and de-tokenization after Transformer layers, for effective mapping between tokens and features. Therefore, sub-patch level information interaction is enabled for more effective feature propagation between neighboring patches, resulting in synthesizing vivid content for hole regions in videos. Moreover, in FuseFormer, we elaborately insert the soft composition and soft split into the feed-forward network, enabling the 1D linear layers to have the capability of modelling 2D structure. And, the sub-patch level feature fusion ability is further enhanced. In both quantitative and qualitative evaluations, our proposed FuseFormer surpasses state-of-the-art methods. We also conduct detailed analysis to examine its superiority.

Motivation & Objective

  • Address the limitation of patch-based Transformers in video inpainting, where hard patch splitting leads to blurry edges and poor sub-patch feature interaction.
  • Enable sub-patch level feature fusion by introducing overlapping, soft operations that preserve spatial detail during tokenization and reconstruction.
  • Improve feature representation in Transformers for video inpainting without significantly increasing model parameters or inference cost.
  • Enhance both spatial and temporal coherence in generated video frames by enabling richer feature propagation across neighboring patches.
  • Develop a lightweight yet powerful architecture that outperforms existing methods on video restoration and object removal benchmarks.

Proposed method

  • Introduce Soft Split (SS), which uses an unfold operation with kernel size > stride to create overlapping 2D patches from feature maps, enabling sub-patch level representation.
  • Design Soft Composition (SC), which reverses the soft split by reshaping tokens back into 2D patches and summing overlapping pixel features from neighboring patches.
  • Integrate SS and SC into the tokenization and de-tokenization stages of the Transformer, allowing effective mapping between tokens and fine-grained features.
  • Propose the Fusion Feed-Forward Network (F3N), which restructures the standard 1D MLP in the feed-forward block by reshaping tokens to 2D, applying soft composition, and then re-encoding, enhancing 2D structure modeling.
  • Apply a novel normalization technique (Equation 8) to stabilize training and further improve performance.
  • Build a strong baseline, ViB-T, using vanilla Transformer with multi-frame patch embedding and lightweight convolutional encoders/decoders, then enhance it with soft operations to form ViB-S and finally FuseFormer.

Experimental results

Research questions

  • RQ1Can overlapping patch operations (soft split and soft composition) improve fine-grained feature representation in video inpainting Transformers?
  • RQ2How does sub-patch level feature fusion via soft operations affect edge sharpness and visual quality in generated video frames?
  • RQ3To what extent can the F3N module enhance feature learning in the feed-forward network without increasing model parameters?
  • RQ4Does the integration of soft operations into the Transformer architecture lead to better performance on video inpainting benchmarks compared to hard patch-based methods?
  • RQ5Can the proposed method achieve state-of-the-art results while maintaining low computational cost and inference time?

Key findings

  • FuseFormer outperforms state-of-the-art methods on YouTubeVOS, achieving a 3.3% improvement in PSNR and 0.7% in SSIM over the best baseline.
  • FuseFormer reduces VFID and warping error by 7.4% and 7.8%, respectively, indicating superior realism and temporal coherence in generated videos.
  • User studies show that FuseFormer was ranked first by 68% of viewers in video completion and 71% in object removal, confirming its perceptual quality superiority.
  • The ViB-S model with soft operations already surpasses STTN, demonstrating that soft operations alone significantly improve performance with minimal added cost.
  • The F3N module boosts performance when replacing standard MLPs in the Transformer block, proving its effectiveness in enhancing sub-patch feature fusion.
  • Qualitative results show that FuseFormer generates sharper edges and more coherent content across frames, with refinement progressing from coarse to fine features through deeper layers.

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.