Abstract: Single Image Super-Resolution (SISR) has seen significant progress with Transformer architectures. However, the computational cost of global self-attention often forces models to rely on local window-based attention, limiting their ability to capture long-range dependencies and semantic similarities. This paper introduces the Adaptive Token Dictionary (ATD) Transformer, which overcomes these limitations by grouping pixels into content-aware categories rather than fixed spatial windows. By utilizing a learnable dictionary to guide attention, ATD-SR achieves state-of-the-art performance on standard benchmarks, demonstrating superior ability in reconstructing complex textures and repetitive structures.
Introduction
The primary challenge in Single Image Super-Resolution (SISR) is the accurate reconstruction of high-frequency details from a low-resolution input. While Transformers have revolutionized this field due to their ability to model long-range dependencies, they face a major computational hurdle: self-attention complexity grows quadratically with image size.
To manage this, most current models (like SwinIR) use window-based self-attention, which restricts the model's "vision" to small, fixed rectangular grids. This approach has two main flaws: it cannot easily capture similar patterns located far apart in the image, and its fixed partitioning often groups unrelated pixels together while separating highly similar ones just because they fall on different sides of a grid line.
The Adaptive Token Dictionary Framework
The authors introduce the ATD-SR framework, which replaces standard windowing with a content-aware approach. The model moves from geometric partitioning (where pixels are grouped by location) to semantic partitioning (where pixels are grouped by appearance). This is achieved through three novel components:
- Token Dictionary Cross-Attention (TDCA): The model maintains an auxiliary "dictionary" of learnable tokens representing common image structures. The input image performs cross-attention with this dictionary to incorporate external priors efficiently with linear complexity.
- Adaptive Dictionary Refinement (ADR): Instead of using a static dictionary, the model refines these tokens layer-by-layer. It uses a "reverse attention" mechanism to summarize image-specific information back into the dictionary, allowing the model to adapt to the unique textures of the current test image.
- Adaptive Category-based MSA (AC-MSA): Using the similarity map from the dictionary, the model assigns every pixel to a "category" (e.g., all "grass" pixels or "brick" pixels). Self-attention is then performed within these categories across the entire image.
Global Attention via Content Categories
The core innovation, AC-MSA, allows the model to perform non-local attention across the entire image. Because these categories are content-dependent and not spatially restricted, a query pixel can attend to semantically similar pixels regardless of their distance. This "aha moment"—realizing that grouping pixels by what they look like is more effective than where they are—allows the model to successfully blend external knowledge learned during training with internal patterns found within the specific image being processed.
Experimental Results
ATD-SR was evaluated on standard benchmarks including Set5, Set14, BSD100, Urban100, and Manga109. The model consistently outperformed existing leaders like HAT and SwinIR.
- State-of-the-Art Performance: On the challenging Urban100 dataset (x2 scale), it achieved a PSNR of 34.70 dB, surpassing HAT by a notable margin.
- Lightweight Efficiency: The authors also proposed ATD-light, which outperformed other lightweight models like OmniSR by a significant 0.45 dB on the Manga109 benchmark despite having fewer parameters.
- Visual Fidelity: Qualitative results show that ATD is much better at recovering sharp, repetitive textures—such as the fine lines in manga or the grids of a skyscraper—where window-based methods often produce blurry or distorted artifacts.
Conclusion and Future Work
The Adaptive Token Dictionary Transformer transcends the limits of local windows by prioritizing semantic similarity. While the approach is mathematically efficient, the authors note that implementing irregularly shaped categories in standard frameworks can be less hardware-efficient than fixed squares. Future work may involve optimizing CUDA kernels for these dynamic partitions and exploring the optimal scaling of dictionary sizes to avoid overfitting.
Summary updated