Learning Trajectory-Aware Transformer for Video Super-Resolution

Chengxu Liu, Huan Yang, Jianlong Fu, Xueming QianCVPR 2022

Abstract

Video super-resolution (VSR) aims to restore high-resolution (HR) frames from a sequence of low-resolution (LR) counterparts. A significant challenge in VSR is effectively utilizing temporal dependencies across entire video sequences. Existing approaches typically align and aggregate frames from a limited temporal window (e.g., 5 or 7 frames), which restricts their ability to capture long-range information. In this paper, we propose the Trajectory-aware Transformer for Video Super-Resolution (TTVSR). By formulating video frames into pre-aligned trajectories of continuous visual tokens, we enable self-attention to be learned specifically along these spatio-temporal paths. This design significantly reduces computational overhead compared to vanilla Transformers while enabling long-range feature modeling. Furthermore, a cross-scale feature tokenization module is introduced to address scale-changing issues common in long-range videos. Experimental results across four benchmarks—REDS, Vimeo-90K, Vid4, and UDM10—demonstrate that TTVSR achieves state-of-the-art performance in both quantitative and qualitative evaluations.

Introduction

The core objective of Video Super-Resolution is to leverage temporal redundancy—finding missing high-frequency details for a specific frame by searching through other frames in the sequence. Traditionally, researchers have relied on two main architectures:

  1. Sliding Window Methods: These models process a small neighborhood of frames. While computationally efficient, they are inherently limited by their narrow temporal receptive field, missing useful information located in distant frames.
  2. Recurrent Neural Networks (RNNs): These models propagate information through hidden states across the entire sequence. However, they often suffer from vanishing gradients, leading the model to "forget" details from frames that occurred much earlier or later in the video.

While Vision Transformers (ViTs) offer a promising alternative for modeling long-range dependencies, applying them to video is computationally prohibitive. Calculating global self-attention across every pixel in a high-resolution video sequence results in an explosive increase in FLOPs and memory usage. TTVSR addresses these challenges by introducing a trajectory-based attention mechanism that balances efficiency with long-range modeling capabilities.

The TTVSR Framework

TTVSR optimizes the Transformer architecture for video tasks through three primary innovations designed to handle motion and scale variations efficiently.

Spatio-Temporal Trajectories and Trajectory-Aware Attention

Instead of performing global attention across a 3D volume (height x width x time), TTVSR tracks patches of pixels—referred to as "visual tokens"—as they move through the video. By formulating these movements into trajectories, the model restricts the search space for a query token to its specific motion path. This transforms the attention mechanism from a dense 3D search into a sparse 1D search along the trajectory, drastically reducing the computational cost (FLOPs) while maintaining the ability to capture long-range dependencies.

Efficient Implementation via Location Maps

To ensure the trajectory tracking is hardware-friendly and efficient, the authors utilize Location Maps. These matrices represent the trajectories and are updated "online" using a lightweight motion estimation network (SPyNet). This allows the model to adapt to object movement between frames dynamically without the overhead of exhaustive global searching.

Cross-Scale Feature Tokenization

In long-range video sequences, objects frequently change size as they move toward or away from the camera. TTVSR introduces a cross-scale feature tokenization module to handle these scale variations. By extracting tokens at multiple scales, the model can identify sharp textures in a "close-up" frame and effectively apply that information to restore a "distant" version of the same object in another frame.

Experimental Results

The model was rigorously evaluated on four widely recognized VSR benchmarks: REDS, Vimeo-90K, Vid4, and UDM10.

Quantitative Performance

TTVSR achieved state-of-the-art accuracy, particularly on the challenging REDS4 dataset. It reached a Peak Signal-to-Noise Ratio (PSNR) of 32.12 dB, surpassing the previous leading model, IconVSR, by a significant margin of 0.45 dB.

Computational Efficiency

Despite the complexity of Transformer architectures, TTVSR is remarkably efficient. It requires only 0.61 TFLOPs, which is nearly half the computational cost of other high-performing models like MuCAN (>1.07 TFLOPs). This efficiency stems directly from the trajectory-aware attention mechanism, which avoids redundant calculations on irrelevant spatial regions.

Qualitative Fidelity

Visual evaluations highlight TTVSR’s unique ability to restore fine, repetitive textures. While competing models often produce blurry results for distant buildings or moving text (such as license plates), TTVSR successfully recovers these details by aggregating sharp features from across the entire video sequence.

Discussion and Key Insights

  • Motion as a Sparsity Constraint: The success of TTVSR lies in the realization that most pixels in a given frame only have meaningful relationships with a specific set of pixels in subsequent frames. By treating motion as a sparsity constraint, the model focuses its representational power where it matters most.
  • Hard vs. Soft Attention: The framework utilizes "hard attention" to select the most relevant frames along a trajectory, preventing the blurring effects often associated with the weighted averaging of "soft attention." A confidence score is then applied to mitigate potential inaccuracies in the hard selection.
  • Scaling with Temporal Depth: Experiments confirm that TTVSR’s performance improves as the number of frames increases. Unlike sliding-window methods limited to ~7 frames, TTVSR can effectively process 50+ frames, allowing it to find textures that other models simply cannot access.

Limitations and Future Work

While TTVSR represents a significant leap forward, it faces challenges with fast rotational motion, where optical flow-based trajectories can become inaccurate. Additionally, while the model is FLOP-efficient, storing features for many frames to enable long-range modeling requires substantial GPU memory. Future research may focus on more robust trajectory modeling for complex rotations and applying trajectory-aware concepts to other video-based tasks such as object detection and tracking.

Summary updated

BibTeX
@inproceedings{liu2022learning,
  author = {Chengxu Liu and Huan Yang and Jianlong Fu and Xueming Qian},
  title = {{Learning Trajectory-Aware Transformer for Video Super-Resolution}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  url = {https://openreview.net/forum?id=MMOnAwid28},
}
Figure