Abstract
Video Super-Resolution (VSR) aims to reconstruct high-resolution video sequences from low-resolution inputs. While Transformers have excelled in various computer vision tasks, their application to VSR is challenging due to the inherent loss of spatial locality in standard self-attention and the lack of explicit temporal alignment in feed-forward networks. We present the VSR-Transformer, the first Transformer-based architecture specifically designed for VSR. By introducing a Spatial-Temporal Convolutional Self-Attention (STCSA) layer and a Bidirectional Optical Flow-based Feed-Forward (BOFF) network, our model effectively preserves local spatial structures and performs motion-compensated temporal alignment. VSR-Transformer achieves state-of-the-art results on benchmarks like REDS and Vimeo-90K, demonstrating superior performance especially on short video clips.
Introduction
The primary challenge in Video Super-Resolution is the effective utilization of both intra-frame spatial information and inter-frame temporal correlations. Traditional methods often rely on Convolutional Neural Networks (CNNs) or Recurrent Neural Networks (RNNs). While Transformers offer powerful sequence modeling capabilities, standard Vision Transformers (ViT) are not directly suitable for VSR for two main reasons:
- Loss of Spatial Locality: The patch-based tokenization and fully-connected self-attention in standard Transformers can destroy fine-grained spatial details like edges and textures, which are vital for super-resolution.
- Lack of Temporal Alignment: Standard feed-forward layers process tokens independently, failing to account for object motion across frames. Without explicit alignment, the model cannot effectively aggregate information from neighboring frames.
The VSR-Transformer Architecture
To address these limitations, the VSR-Transformer modifies the core Transformer block to better suit the requirements of low-level video processing. The architecture consists of a feature extractor, a series of Transformer blocks, and a reconstruction module.
Spatial-Temporal Convolutional Self-Attention (STCSA)
Instead of standard linear projections, the STCSA layer employs 3D sliding local patches and convolutional layers to generate Queries, Keys, and Values. This approach allows the attention mechanism to explicitly encode local spatial information while capturing global interactions across the temporal dimension. The authors provide a mathematical proof showing that convolutional attention helps avoid vanishing gradients when learning local patterns, a common failure mode for fully-connected attention in VSR tasks.
Bidirectional Optical Flow-based Feed-Forward (BOFF)
The standard MLP-based feed-forward layer is replaced with the BOFF layer to handle temporal alignment. This module integrates a pre-trained optical flow network (SPyNet) to compute forward and backward flows between adjacent frames.
As shown in the figure, the BOFF layer warps features from neighboring frames to the current frame's coordinate system. These aligned features are then fused using convolutional layers, transforming the feed-forward block into a powerful tool for motion compensation and temporal information propagation.
3D Positional Encoding
To maintain awareness of the sequence structure, the model utilizes fixed 3D positional encodings. These encodings inject horizontal, vertical, and temporal position information into the feature maps before they enter the Transformer blocks, ensuring the model can distinguish between different spatial and temporal locations.
Experimental Results
The VSR-Transformer was evaluated on the REDS and Vimeo-90K datasets for 4x upscaling.
Quantitative Performance
On the REDS4 benchmark with a 5-frame input, VSR-Transformer achieved a PSNR of 31.19 dB, outperforming established models like EDVR-L (31.09 dB) and BasicVSR (30.56 dB). Similar gains were observed on the Vimeo-90K-T dataset with a 7-frame input, where it reached 35.88 dB PSNR.
Ablation Studies
Ablation experiments highlight the critical role of the BOFF layer. Removing the optical flow-based alignment led to a significant performance drop (from 31.19 to 30.37 dB on REDS4), confirming that explicit temporal alignment within the Transformer architecture is essential for high-quality VSR.
Qualitative Analysis
Visually, the VSR-Transformer produces sharper results with fewer artifacts compared to baseline methods. It excels at restoring fine textures, such as brick patterns and small text, which often appear blurred in CNN-based reconstructions.
Conclusion and Future Work
The VSR-Transformer successfully adapts the Transformer architecture for Video Super-Resolution by re-introducing inductive biases for spatial locality and temporal alignment. While the model achieves state-of-the-art performance, it is relatively parameter-heavy (32.6M parameters). Future research will focus on improving the efficiency of the architecture and exploring its performance on longer video sequences to better handle complex occlusions.
Summary updated