Abstract
Reference-based Image Super-Resolution (RefSR) aims to circumvent the ill-posed nature of Single Image Super-Resolution (SISR) by leveraging high-frequency textures from an auxiliary reference image. However, existing RefSR methods often struggle with the "distribution gap"—discrepancies in lighting and color between the input and reference—and the limitations of rigid patch-based texture transfer. We present the Deformable Attention Transformer for RefSR (DATSR), a novel architecture that utilizes a transformation-insensitive feature encoder and a deformable attention mechanism. DATSR achieves state-of-the-art performance on standard benchmarks, demonstrating superior robustness to color shifts and noise while producing sharper, more accurate visual reconstructions.
Introduction
Single Image Super-Resolution (SISR) is a classic computer vision problem where a high-resolution (HR) image must be reconstructed from a single low-resolution (LR) input. Because multiple HR images can correspond to the same LR input, the problem is inherently ill-posed. Reference-based Super-Resolution (RefSR) attempts to resolve this ambiguity by providing the model with a "Ref" image—such as a similar photograph found via web search—to serve as a source for missing high-frequency details.
Despite its potential, RefSR faces two primary technical hurdles. First, Correspondence Matching is difficult when the LR and Ref images exhibit different brightness, contrast, or color distributions. Second, Texture Transfer often relies on rigid patch-swapping techniques that fail to account for sub-pixel misalignments, leading to artifacts or the "hallucination" of incorrect details. DATSR addresses these challenges by replacing rigid matching with a flexible, deformable attention mechanism and a robust feature encoding strategy.
Methodology
DATSR is built upon a multi-scale U-Net architecture, integrating three core components designed to improve feature matching and texture synthesis.
Texture Feature Encoder (TFE)
To bridge the distribution gap, the Texture Feature Encoder (TFE) extracts features from both LR and Ref images. Unlike standard encoders, the TFE is trained using contrastive learning to be "transformation-insensitive." This ensures that the model recognizes identical textures even when they appear under different lighting conditions or color hues, facilitating more accurate matching between disparate image sources.
Reference-based Deformable Attention (RDA)
Traditional RefSR methods often use a "swap-and-paste" approach for patches. DATSR instead employs Reference-based Deformable Attention (RDA). By utilizing deformable convolutions, the model can adaptively "warp" and sample textures from the Ref image. This allows for sub-pixel precision and better alignment. Furthermore, the RDA module generates a learnable mask that determines the relevance of the Ref features; if the reference contains irrelevant data or noise, the mask allows the model to suppress the transfer, preventing the introduction of artifacts.
Residual Feature Aggregation (RFA)
The final stage involves fusing the original LR features with the transferred Ref textures. The Residual Feature Aggregation (RFA) module utilizes Swin Transformer layers to perform this fusion across multiple scales. This ensures that the final output maintains structural consistency with the LR input while benefiting from the high-frequency details of the Ref image.
Experiments and Results
Quantitative Performance
The model was evaluated on standard RefSR benchmarks, most notably the CUFED5 dataset. DATSR achieved a Peak Signal-to-Noise Ratio (PSNR) of 28.72 dB, significantly outperforming the previous state-of-the-art method, $C^2$-Matching, which achieved 28.24 dB. The model also demonstrated strong generalization across diverse datasets, including Urban100 (architecture), Manga109 (illustrations), and Sun80.
Robustness and User Preference
To test resilience against the distribution gap, the authors applied "ColorJitter" to the CUFED5 test set, creating extreme shifts in brightness and color. While competing models saw sharp declines in quality under these conditions, DATSR remained stable due to its transformation-insensitive encoding. In a user study involving 20 participants, over 80% of users preferred DATSR’s results, citing sharper edges in fine details like window frames and text.
Discussion and Limitations
While DATSR sets a new benchmark for RefSR, it comes with increased architectural complexity. The model contains 18.0M parameters, roughly double that of $C^2$-Matching (8.9M), primarily due to the inclusion of Swin Transformer layers in the RFA module. This suggests a higher computational cost during inference, which may be a consideration for real-time applications.
Future work may focus on optimizing the model's efficiency and exploring the application of deformable attention to other multi-modal restoration tasks, such as video super-resolution or cross-modal image synthesis.
Conclusion
DATSR represents a significant step forward for Reference-based Image Super-Resolution. By moving beyond rigid patch-matching and addressing the distribution gap through contrastive learning and deformable attention, the model provides a robust framework for high-quality image restoration that remains effective even when reference images are imperfectly matched.
Summary updated