Learning Spatiotemporal Frequency-Transformer for Compressed Video Super-Resolution

Zhongwei Qiu, Huan Yang, Jianlong Fu, Dongmei Fu

Abstract

Compressed video super-resolution (VSR) aims to restore high-resolution frames from compressed low-resolution counterparts. Most recent VSR approaches often enhance an input frame by borrowing relevant textures from neighboring video frames. Although some progress has been made, there are grand challenges to effectively extract and transfer high-quality textures from compressed videos where most frames are usually highly degraded. In this paper, we propose a novel Frequency-Transformer for compressed video super-resolution (FTVSR) that conducts self-attention over a joint space-time-frequency domain. First, we divide a video frame into patches, and transform each patch into DCT spectral maps in which each channel represents a frequency band. Such a design enables a fine-grained level self-attention on each frequency band, so that real visual texture can be distinguished from artifacts, and further utilized for video frame restoration. Second, we study different self-attention schemes, and discover that a divided attention which conducts a joint space-frequency attention before applying temporal attention on each frequency band, leads to the best video enhancement quality. Experimental results on two widely-used video super-resolution benchmarks show that FTVSR outperforms state-of-the-art approaches on both uncompressed and compressed videos with clear visual margins.

Introduction

Video Super-Resolution (VSR) is the critical task of restoring high-resolution (HR) frames from low-resolution (LR) sequences. While modern deep learning models have achieved impressive results in controlled environments, they often falter when applied to real-world footage. This is primarily due to the "clean room" problem: most models are trained and tested on uncompressed data, whereas real-world videos are typically compressed using standards like H.264 to save bandwidth.

Compression introduces significant artifacts—such as blurring, ringing, and blocking—particularly in high-frequency areas. Standard VSR models, which operate in the pixel domain, often struggle to distinguish between genuine visual textures and these compression-induced artifacts. When these models attempt to "borrow" textures from neighboring frames, they frequently amplify the noise, leading to visually unpleasant results. To address this, we introduce FTVSR, a Frequency-Transformer designed to separate high-quality textures from compression garbage by operating in the spectral domain.

The FTVSR Framework

The core innovation of FTVSR is the shift from the pixel domain to the frequency domain using the Discrete Cosine Transform (DCT). This approach allows the model to treat different frequency bands with the specificity required to mitigate artifacts.

1. Frequency-based Tokenization

Instead of feeding raw pixel patches into a Transformer, FTVSR divides frames into patches and applies a DCT. This transformation converts each patch into spectral maps where different channels represent specific frequency bands. By treating each frequency band as a separate token, the network can process high-frequency details and low-frequency structures independently. This prevents the model from ignoring subtle textures that are often buried or distorted in pixel-based approaches.

2. Spatiotemporal Frequency Attention

The model utilizes a novel attention mechanism to process these frequency tokens. Through extensive study, we identified that the order of attention is critical for compressed video. We employ a Divided Spatiotemporal Attention ($\\Lambda_{ST}$) scheme:

  • Joint Space-Frequency (SF) Attention: The model first conducts attention between different spatial blocks within the same frequency bands. This step restores the internal structure of the frame and "cleans up" the frequencies.
  • Temporal-Frequency (TF) Attention: Once the spatial structure is stabilized, the model applies temporal attention to aggregate information across the video sequence.

This "spatial-before-temporal" priority ensures that the current frame's frequencies are refined before they are used to assist in the restoration of neighboring frames.

3. Recurrent Structure

FTVSR is built upon a bidirectional recurrent framework, similar to BasicVSR. This allows the model to maintain a hidden state that propagates information across long distances in the video, ensuring temporal consistency and leveraging long-range dependencies.

Experimental Results

We evaluated FTVSR on two industry-standard benchmarks: REDS (specifically the REDS4 subset) and Vimeo-90K (tested on Vid4). To simulate real-world conditions, datasets were compressed using the H.264 codec at various Constant Rate Factors (CRF): 15 (light), 25 (medium), and 35 (heavy).

Quantitative Performance

FTVSR demonstrates a significant leap over existing state-of-the-art (SOTA) methods like IconVSR and COMISR. On the REDS4 dataset at a compression rate of CRF25, FTVSR achieved a Peak Signal-to-Noise Ratio (PSNR) gain of 1.6 dB over COMISR and 2.1 dB over IconVSR. In the context of image restoration, a margin exceeding 2 dB represents a substantial improvement in reconstruction fidelity.

Qualitative Analysis

Visual results confirm the quantitative gains. FTVSR successfully recovers sharp, realistic textures—such as the fine details of a car grill or the distinct edges of brickwork—where competing models often produce blurry or blocky outputs. Furthermore, despite the complexity of the Transformer architecture, the use of DCT reduces certain computational overheads, keeping the model's FLOPs (Floating Point Operations) comparable to simpler pixel-based recurrent models.

Conclusion and Future Work

FTVSR establishes a new baseline for compressed video super-resolution by demonstrating that the frequency domain provides a more robust environment for distinguishing texture from noise. By utilizing divided spatiotemporal attention, the model effectively "cleans" frames before aggregating temporal data.

However, challenges remain. The model still struggles with extremely small textures (like distant text) where the input information is too sparse after heavy compression. Additionally, complex motion, such as the internal details of a rapidly rotating wheel, remains difficult to reconstruct perfectly. Future research will focus on improving motion compensation within the frequency domain and enhancing the recovery of fine-grained patterns in highly degraded sequences.

Summary updated

BibTeX
@inproceedings{qiu2022learning,
  author = {Zhongwei Qiu and Huan Yang and Jianlong Fu and Dongmei Fu},
  title = {{Learning Spatiotemporal Frequency-Transformer for Compressed Video Super-Resolution}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19797-0\_15},
}
Figure