NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

TextSR: Diffusion Super-Resolution with Multilingual OCR Guidance

Keren Ye, Ignacio Garcia-Dorado, Michalis Raptis, Mauricio Delbracio, Irene Zhu, Peyman Milanfar, Hossein TalebiarXiv 2025 · DOI

Introduction

While modern diffusion models have revolutionized image upscaling, they often struggle with a "literacy" problem. In the context of Super-Resolution (SR), these models frequently treat text as just another texture—comparable to fur or grass—rather than structured information. This leads to "hallucinations" where characters appear visually plausible but are actually gibberish, or where the model fails to maintain character identity across different languages.

In the specialized field of Scene Text Image Super-Resolution (STISR), the objective is to reconstruct a sharp, readable high-resolution (HR) version from a blurry, low-resolution (LR) crop. Existing methods often struggle with localization or are restricted to a single language. TextSR addresses these challenges by providing the model with explicit "character-to-shape" priors through a multimodal architecture.

Methodology

TextSR introduces a multimodal architecture that integrates visual and textual information to guide the reconstruction process.

The TextSR architecture utilizes a ByT5 encoder for multilingual text guidance and a dual-conditioned Denoising U-Net.

Multilingual Guidance

Instead of a standard CLIP text encoder, TextSR employs the first two layers of ByT5, a byte-level transformer. Operating on UTF-8 bytes allows it to handle over 100 languages using a compact, shared vocabulary. This enables the model to learn that specific byte sequences correspond to specific visual shapes across diverse scripts like Latin, Chinese, or Hindi.

Dual-Conditioned Diffusion and Residual Prediction

The model utilizes a U-Net conditioned on two inputs: the low-resolution image (via channel concatenation) and the OCR-derived text (via cross-attention). Unlike standard diffusion models that predict the entire image, TextSR predicts the residual—the difference between the HR and LR image. This "anchor" prevents the model from drifting into excessive hallucination.

Iterative OCR Conditioning

To solve the "chicken and egg" problem where blurry images lead to poor OCR, the authors implemented an iterative refinement loop. If the initial image is too blurry for accurate OCR, the model performs a "blind" restoration first. It then runs OCR again on the improved image to obtain a more accurate text prompt for a final, high-fidelity pass.

Experimental Setup

The model was trained on a massive collection of 18 million text crops aggregated from seven major datasets, including HierText, TextOCR, VinText, and ICDAR19. Evaluation was conducted using:

  • TextZoom: The standard benchmark for STISR (focused on Latin characters).
  • TextVQA: A new "holistic" benchmark where entire images are upscaled and an AI agent (GIT) answers questions about the text, testing the practical utility of the SR process.

Results and Analysis

TextSR establishes a new state-of-the-art (SOTA) across multiple benchmarks. On TextVQA, TextSR improved OCR accuracy by +7.5 points (36.7% vs 28.9%) compared to the next best diffusion model, PASD. On TextZoom, it outperformed all previous diffusion-based and regression-based models.

Qualitative results demonstrate TextSR's ability to reconstruct complex characters across multiple languages (English, Chinese, Japanese, Hindi) where other methods fail.

Multilingual Mastery

By using byte-level encoding, the model learns a "universal" character-to-shape mapping. Qualitative results show the model successfully reconstructing complex Chinese and Hindi characters where general-purpose models like SUPIR produced unrecognizable blobs. This proves that TextSR doesn't just make images "look pretty" but makes them significantly more machine-readable and useful for real-world tasks.

Conclusion

TextSR demonstrates that explicit text guidance significantly enhances the performance of diffusion models in scene text super-resolution. While the model currently relies on an external text detector and the iterative process increases inference time, it represents a major step toward "literate" AI upscaling. Future work may involve distilling this iterative knowledge into a single-pass model or extending the architecture to video (TextVSR).

Summary updated

BibTeX
@misc{ye2025textsr,
  author = {Keren Ye and Ignacio Garcia-Dorado and Michalis Raptis and Mauricio Delbracio and Irene Zhu and Peyman Milanfar and Hossein Talebi},
  title = {{TextSR: Diffusion Super-Resolution with Multilingual OCR Guidance}},
  year = {2025},
  eprint = {2505.23119},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.23119},
}
Figure