Text-Aware Real-World Image Super-Resolution via Diffusion Model with Joint Segmentation Decoders

Qiming Hu, Linlong Fan, luoyiyan, Yuhang Yu, Xiaojie Guo, Qingnan Fan

Abstract

Real-world image super-resolution (Real-SR) has seen significant advancements through generative models, yet these models frequently struggle with textual content, often producing unreadable "gibberish" or distorted characters. We present TADiSR (Text-Aware Diffusion model for real-world image Super-Resolution), a framework designed to address this limitation by integrating text segmentation directly into the restoration process. By utilizing a dual-stream architecture with joint segmentation decoders and cross-decoder interaction, TADiSR ensures structural integrity in restored text. Experimental results on real-world datasets demonstrate a substantial 18.7% improvement in OCR accuracy over existing state-of-the-art methods, effectively bridging the gap between realistic texture generation and accurate text reconstruction.

Introduction

Real-world image super-resolution (Real-SR) aims to recover high-definition details from low-resolution images plagued by complex, unknown degradations. While modern generative approaches—particularly those based on Generative Adversarial Networks (GANs) and Diffusion Models—excel at hallucinating realistic textures like foliage or skin, they often fail catastrophically when encountering text.

In these models, the priority is typically placed on visual plausibility rather than structural accuracy. Consequently, the intricate strokes of characters, especially in complex scripts like Chinese, are often distorted into "zombie" characters—shapes that appear to be language but are functionally unreadable. Previous attempts to solve this have relied on multi-stage pipelines involving separate detection, cropping, and upscaling steps. However, these pipelines are prone to failure if the initial degradation is too severe for detection, and they often introduce visible artifacts at the boundaries of processed regions.

The TADiSR Framework

TADiSR introduces a unified, single-pass approach to text-aware super-resolution. The architecture is built upon three primary innovations designed to synchronize the tasks of segmentation and restoration.

1. Text-Aware Cross-Attention

Standard diffusion models often lack the spatial sensitivity required to distinguish text from background noise. TADiSR employs Low-Rank Adaptation (LoRA) to fine-tune the model's cross-attention mechanism. By training the model to focus on the semantic concept of "text" within the prompt, the researchers enable the model to better locate and prioritize textual regions during the denoising process.

2. Joint Segmentation Decoders

Rather than utilizing a standard monolithic image decoder, TADiSR features a dual-stream "Joint Segmentation Decoder." This architecture consists of two parallel branches: one dedicated to image restoration and the other to predicting a precise text segmentation mask. This multitask approach forces the model to develop a structural understanding of the text it is attempting to upscale.

3. Cross-Decoder Interaction Blocks (CDIB)

To ensure that the insights from the segmentation branch benefit the restoration process, the authors implemented Cross-Decoder Interaction Blocks (CDIB). These blocks facilitate communication between the two streams, allowing the predicted character shapes to provide structural guidance to the image restoration branch. This ensures that the final upscaled strokes adhere to the predicted linguistic structures.

4. Boundary-Weighted Loss

To further refine the output, a modified focal loss function is applied during training. This loss function penalizes errors more heavily at the boundaries of text regions, where distortions are most likely to occur, ensuring sharp and distinct character edges.

Data Strategy: The FTSR Dataset

A significant challenge in developing text-aware SR models is the scarcity of high-quality training data that includes both realistic backgrounds and precise text masks. To address this, the authors developed the Full-image Text image Super-Resolution (FTSR) dataset.

FTSR consists of 50,000 triplets containing low-resolution images, high-resolution ground truths, and corresponding text masks. The dataset was constructed by extracting diverse text patches, verifying their legibility via OCR, and realistically blending them into high-quality background images from the LSDIR dataset. For validation, the researchers utilized the Real-CE dataset, which contains real-world paired scene text to ensure the model generalizes to actual camera-captured degradations.

Results and Key Insights

TADiSR demonstrates a clear advantage over existing heavyweights such as SeeSR, SupIR, and HAT.

  • Quantitative Performance: On the Real-CE dataset, TADiSR achieved an OCR Accuracy (OCR-A) of 0.882, significantly outperforming the next best method, HAT, which scored 0.743. This represents a nearly 19% boost in the readability of upscaled text.
  • Qualitative Superiority: Visual analysis confirms that while competing models often fuse strokes together into illegible blobs, TADiSR maintains sharp, distinct strokes even in small-scale text and complex characters.
  • Efficiency: By processing the entire image in a single pass, TADiSR avoids the boundary artifacts and computational overhead associated with traditional "detect-then-upscale" pipelines.

Conclusion and Future Work

TADiSR proves that text segmentation and super-resolution are deeply complementary tasks. By forcing the model to identify where text is, it naturally becomes more adept at preserving that text's structure.

While TADiSR sets a new benchmark, challenges remain in cases of "extreme stroke fusion," where characters are so degraded that their underlying structure is nearly impossible to recover. Future research will explore the integration of linguistic priors (such as large language models) to help the system "infer" characters based on context, as well as interactive strategies that allow for user-provided hints in extremely ambiguous regions.

Summary updated

BibTeX
@inproceedings{hu2025text,
  author = {Qiming Hu and Linlong Fan and luoyiyan and Yuhang Yu and Xiaojie Guo and Qingnan Fan},
  title = {{Text-Aware Real-World Image Super-Resolution via Diffusion Model with Joint Segmentation Decoders}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=px9GwMjloi},
}
Figure