TL;DR
This paper introduces Text-Aware Image Restoration (TAIR), a new task aimed at simultaneously recovering visual scene quality and textual legibility in degraded images. To solve the common issue of diffusion models generating realistic but gibberish text ("text-image hallucination"), the authors propose TeReDiff, a multi-task diffusion framework that dynamically uses an embedded text-spotting module to guide the image restoration process. They also release SA-Text, a large-scale dataset of 100K high-quality scene images with dense text annotations to benchmark this task.
What Problem Does This Paper Address?
While modern diffusion-based image restoration models excel at making natural textures look stunning, they notoriously fail when it comes to text. Instead of reconstructing the actual characters in a low-quality image, they often generate plausible-looking but completely incorrect text-like patterns—a phenomenon the authors term text-image hallucination (see Figure 1).
Prior attempts to fix this typically focused on patch-level text super-resolution (cropping out text regions and upscaling them). However, this discards global image context, leading to visual incoherence, and fails to leverage the powerful generative priors of large-scale diffusion models. This paper bridges the gap by tackling text restoration within full, complex natural scenes.
Methods
The authors propose TeReDiff (Text Restoration Diffusion model), which elegantly fuses a text-spotting module into a latent diffusion architecture (comprising a U-Net and ControlNet).
The framework operates via a symbiotic multi-task design:
- Degradation Removal: A lightweight module (SwinIR) first mildly denoises the low-quality input to create a stable conditioning latent.
- Shared Feature Representation: Instead of using standard ResNet features for text spotting, TeReDiff passes intermediate features directly from the diffusion U-Net decoder into a transformer-based text-spotting module.
- Dynamic Prompt Guidance: During inference, the text-spotting module predicts the text content at each denoising timestep $t$. This recognized text is automatically formatted into a natural language prompt (e.g., "A realistic scene where the texts 'LOUIS VUITTON' appear clearly...") to condition and refine the next denoising step $t-1$.
Training is executed in three stages: first optimizing the restoration module, then training the text-spotting decoders via bipartite matching, and finally jointly fine-tuning the entire system.
Datasets
A major bottleneck for TAIR was the lack of clean, high-resolution datasets containing text. Standard restoration datasets don't focus on text, and text-spotting datasets are usually low-resolution.
To solve this, the authors introduced SA-Text, a dataset of 100K high-quality images derived from the SA-1B corpus. They built an automated curation pipeline:
- Detection: A text-spotting model identifies candidate text regions at both full-image and patch scales to minimize missed text.
- Dual-VLM Verification: Two separate Vision-Language Models (Qwen2.5-VL and OVIS2) transcribe the text. A crop is only kept if both VLMs agree perfectly, filtering out ambiguous or hard-to-read text.
- Blur Filtering: A final VLM pass filters out intentionally blurred regions (like faces or license plates) and out-of-focus background text.
They also curated Real-Text, a benchmark of real-world high-resolution/low-resolution pairs from RealSR and DRealSR for testing.
Key Insights and Ideas
- Diffusion Features are Natural Text Spotters: A key finding is that features learned by text-to-image diffusion models are inherently rich in semantic and textual representations. Training the text-spotting module on diffusion features yielded massive performance gains over traditional ResNet-50 backbones, especially in data-scarce environments.
- The Virtuous Cycle of Restoration and Recognition: The dynamic prompting mechanism creates a feedback loop. As the diffusion model slightly clarifies the image, the text-spotting module gets better at reading it. The updated, more accurate text prompt then guides the diffusion model to restore the text with even higher fidelity in the subsequent timesteps.
Key Results
TeReDiff was evaluated against state-of-the-art models like DiffBIR, SUPIR, StableSR, and SeeSR.
- Text Spotting Accuracy: On the SA-Text benchmark under severe degradation (Level 3), TeReDiff achieved an end-to-end text recognition F1-score of 28.34% (using the TESTR evaluator), vastly outperforming the baseline DiffBIR (22.67%) and SUPIR (14.02%).
- Image Quality: TeReDiff consistently outperformed the baseline on reference-based image restoration metrics, jumping from a PSNR of 19.58 to 19.71 and improving SSIM from 0.4965 to 0.5717 on SA-Text.
- Human Evaluation: In a user study, humans overwhelmingly preferred TeReDiff, giving it a 98.5% preference rate for text quality and 89.0% for overall image quality compared to DiffBIR.
Limitations and Future Work
Despite its success, TeReDiff still faces hurdles in extreme scenarios:
- Tiny Text: When text instances are exceptionally small, severe degradation obliterates the character structures entirely, causing the text-spotting module to fail and preventing the prompt feedback loop from activating.
- Visual Clutter: Highly complex natural scenes with extreme visual clutter or highly unusual font layouts still pose challenges for accurate detection.
Future work will focus on integrating more diverse real-world training data, enhancing VLM supervision quality, and exploring advanced prompting techniques.
Summary updated