TSFormer: A Robust Framework for Efficient UHD Image Restoration

Xin Su, Chen Wu, Zhuoran ZhengarXiv 2024 · DOI

Abstract

Restoring Ultra-High-Definition (UHD) images, such as 4K resolution, presents a significant computational challenge due to the quadratic complexity of standard Transformer architectures. TSFormer addresses this "efficiency wall" by introducing a lightweight, real-time framework that utilizes a dynamic "Min-p" sampling strategy and Random Matrix Theory (RMT). This approach allows the model to selectively process only the most informative image tokens, achieving state-of-the-art restoration quality with only 3.38M parameters and a processing speed of 40fps on consumer-grade GPUs.

The Challenge of UHD Restoration

UHD images contain millions of pixels, making traditional restoration methods either too slow for practical use or prone to losing critical fine details through downsampling. Existing models often face a trade-off: high-quality restoration at a slow pace or fast processing with significant artifacts. TSFormer aims to bridge this gap by introducing "trusted sparsification," keeping the model lightweight without sacrificing robustness or visual fidelity.

The TSFormer Architecture

The Trusted Sparse Transformer (TSFormer) is built on a symmetrical encoder-decoder structure. The core of the architecture consists of Trusted Sparse Blocks (TSB) and Feature Fusion Blocks (FFB), which merge features across different scales.

TSFormer Architecture: The framework utilizes a symmetrical encoder-decoder structure with Trusted Sparse Blocks (TSB). The Min-p Sparse Attention (MSA) module (a) enables efficient token processing by focusing on informative regions.

At the heart of the TSB is the Min-p Sparse Attention (MSA) module. To further reduce complexity, the model performs attention calculations in the frequency domain using Fast Fourier Transforms (FFT), allowing it to capture global context more efficiently than standard spatial attention.

Trusted Sparsification via Min-p and RMT

TSFormer employs two primary mechanisms to ensure efficiency and robustness:

  1. Min-p Sampling: Borrowed from Large Language Model (LLM) decoding, Min-p sampling dynamically adjusts the token filtering threshold based on the maximum confidence value in a feature patch. Unlike fixed "Top-k" filtering, this ensures the model allocates computation to complex regions like edges and textures while ignoring redundant flat areas.
  2. Trusted Mechanism (Random Matrix Theory): To prevent the model from focusing on noise or artifacts introduced by sparse sampling, the authors utilize Random Matrix Theory (RMT). By analyzing the spectral density of feature matrices, the model quantifies uncertainty and filters out unstable, low-confidence tokens.
Visualization of the sparsification process: (a) Input features, (b) features retained after Min-p sampling, and (c) stable features remaining after RMT-based filtering. This process ensures the model focuses on the most reliable and informative image regions.

Experimental Results and Key Insights

The model was evaluated across five UHD restoration tasks, including low-light enhancement, deblurring, dehazing, and deraining, using benchmarks like UHD-LL, UHD-Blur, and UHD-Haze.

  • Efficiency and Speed: TSFormer uses only 3.38M parameters—significantly fewer than competitors like Restormer (26.1M). It achieves 40fps on an RTX 3090, enabling real-time 4K restoration.
  • Restoration Quality: Despite its size, TSFormer set new state-of-the-art marks, such as 24.88 dB PSNR on the UHD-Haze task. Qualitative results show sharper edges and fewer artifacts compared to larger models.
  • Plug-and-Play Utility: The MSA module can be integrated into other architectures, reducing their computational load (FLOPs) by 20-25% with minimal performance loss.

Conclusion and Future Work

TSFormer demonstrates that dynamic sparsity and mathematical "trust" scores can break the efficiency-fidelity trade-off in UHD restoration. While calculating spectral density for the trusted mechanism adds some overhead, the authors mitigated this through downsampling. Future work will focus on further optimizing the data pipeline for end-to-end hardware implementations and exploring more efficient ways to calculate trust scores.

Summary updated

BibTeX
@misc{su2024tsformer,
  author = {Xin Su and Chen Wu and Zhuoran Zheng},
  title = {{TSFormer: A Robust Framework for Efficient UHD Image Restoration}},
  year = {2024},
  eprint = {2411.10951},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.10951},
}
Figure