Rethinking Alignment in Video Super-Resolution Transformers

Shuwei Shi, Jinjin Gu, Liangbin Xie, Xintao Wang, Yujiu Yang, Chao Dong

TL;DR

This paper challenges the long-standing assumption that explicit pixel-level alignment is strictly necessary for Video Super-Resolution (VSR). The authors demonstrate that VSR Transformers can implicitly track motion through self-attention, and that traditional alignment methods often degrade performance by destroying delicate sub-pixel information. To resolve this, they propose a "Patch Alignment" technique that achieves state-of-the-art results by aligning image patches instead of individual pixels.

What Problem Does This Paper Address?

In Video Super-Resolution (VSR), the goal is to recover a high-resolution frame by pulling "missing" details from adjacent, lower-resolution frames. Because objects move between frames, researchers have historically relied heavily on alignment modules—often based on optical flow or deformable convolutions—to warp supporting frames so they match the reference frame.

While this explicit alignment is essential for Convolutional Neural Networks (CNNs), which have a "locality bias" and struggle to correlate pixels that have moved far away, Transformers operate differently. Transformers use self-attention, which can naturally process long-range dependencies across an image. Despite this architectural shift, most VSR Transformers still inherit complex CNN-era alignment modules. This paper asks a critical question: Do Transformers actually need these modules, and are they doing more harm than good?

Methods and Architecture

The authors conduct a series of controlled experiments using a VSR Transformer backbone based on the SwinIR architecture. They compare four distinct scenarios to isolate the impact of alignment:

  1. No Alignment: Feeding raw, unaligned frames directly into the Transformer.
  2. Image Alignment: Warping frames using optical flow (SpyNet) and bilinear interpolation.
  3. Feature Alignment: Warping deep features instead of raw pixels.
  4. Deformable Convolution (DCN): Using learnable offsets to sample features.
VSR Transformer Architecture and Multi-Frame Self-Attention Block

Finding that traditional warping (specifically bilinear interpolation) blurs crucial sub-pixel details, the authors propose Patch Alignment. Instead of warping every pixel to a precise, interpolated location, the method works as follows:

  • Divide frames into non-overlapping patches (matching the Transformer's window size).
  • Calculate the average motion for the patch.
  • Use a "crop-then-move" strategy with Nearest Neighbor (NN) resampling to shift the entire patch.
  • This preserves the internal relative positions of pixels, keeping the sub-pixel "aliasing" patterns intact for the Transformer to exploit.

Key Insights and Observations

The "Alignment-Free" Zone

For motions within a certain range (roughly the size of the Transformer's attention window), the model actually performs better without explicit alignment. The self-attention mechanism acts as an implicit tracker, successfully finding corresponding features across frames.

Bilinear Interpolation is the Enemy

Standard alignment uses bilinear interpolation to warp images. This process calculates a weighted average of four neighboring pixels. While visually smooth, this effectively "smears" the high-frequency sub-pixel information that VSR models desperately need to reconstruct sharp, high-resolution outputs.

Flow "Vanishing" on Small Motion

When analyzing datasets with predominantly small motions (like Vimeo-90K), the authors observed a fascinating phenomenon: a fine-tuned flow estimator eventually learns to predict zero motion.

Flow Histograms and Vanishing Flow Phenomenon

Essentially, the network realizes that the alignment module is damaging the image more than it is helping. To optimize the final output, the network "shuts off" the flow prediction to bypass the destructive bilinear interpolation step.

Patch-Level vs. Pixel-Level

Precision isn't always better. By shifting whole patches using Nearest Neighbor sampling, the authors avoid the "averaging" trap of bilinear interpolation. This provides the Transformer with "cleaner" data that, while unaligned at a micro-level, retains the raw signal necessary for super-resolution.

Key Results

  • Performance Gains: The proposed PSRT (Patch Alignment VSR Transformer) achieved 32.72 dB PSNR on the REDS4 benchmark, outperforming the previous state-of-the-art BasicVSR++ (32.39 dB) while using significantly fewer frames during training.
  • Efficiency: Patch alignment is computationally cheaper than deformable convolutions or complex optical flow warping, streamlining the VSR pipeline.
  • Qualitative Superiority: Visual results demonstrate that Patch Alignment produces sharper edges and finer textures compared to traditional methods, which frequently leave blurry artifacts in aligned regions.

Limitations and Future Work

While Patch Alignment handles large motions better than no alignment at all, it introduces discontinuities at patch borders because adjacent patches may move by different amounts. The authors argue that the Transformer's window-based attention is robust to these "seams," but it remains a potential area for refinement.

Future work could explore how to integrate this "rethinking" into other video tasks like deblurring or denoising, where the trade-off between alignment precision and signal preservation might differ. Additionally, the powerful modeling capability of Transformers could be further exploited to replace other hand-crafted components of the VSR pipeline.

Summary updated

BibTeX
@inproceedings{shi2022rethinking,
  author = {Shuwei Shi and Jinjin Gu and Liangbin Xie and Xintao Wang and Yujiu Yang and Chao Dong},
  title = {{Rethinking Alignment in Video Super-Resolution Transformers}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=0QWgYIU9mV},
}
Figure