Overview
While diffusion models have achieved remarkable success in natural image restoration, they are notorious for struggling with text. When tasked with recovering textual regions, these models frequently produce plausible yet entirely incorrect text-like patterns—a phenomenon the authors term text-image hallucination.
To address this limitation, this paper introduces Text-Aware Image Restoration (TAIR), a new task requiring the simultaneous recovery of visual content and textual fidelity. Alongside a massive new 100K-image dataset (SA-Text), the authors present TeReDiff, a multi-task diffusion framework that integrates a text-spotting module directly into the denoising process to ensure restored images are both visually appealing and perfectly readable.
The Problem: Text-Image Hallucination
Current state-of-the-art image restoration models (like StableSR or SUPIR) rely heavily on powerful generative priors. While they can effortlessly turn a blurry blob into a sharp, realistic object, they struggle with the rigid semantic requirements of language.
The authors identify two main hurdles in the current landscape:
- The Task Gap: Existing "Scene Text Image Super-Resolution" (STISR) methods focus almost exclusively on small, cropped word patches, ignoring the global context and complex degradation of a full scene.
- The Data Gap: There has been a distinct lack of large-scale, high-resolution datasets that combine complex natural scenes with dense, accurate text annotations.
By defining the TAIR task, the authors shift the focus toward full-scene images where both visual aesthetics and textual accuracy are paramount.
TeReDiff: A Multi-Task Diffusion Framework
The core contribution of the paper is TeReDiff (Text Restoration Diffusion model). Its architecture is built on a "restoration-plus-recognition" loop designed to bridge the gap between visual generation and semantic accuracy.
- Feature Sharing: Instead of relying on a separate, computationally heavy backbone (like ResNet) for text recognition, TeReDiff extracts semantically rich features directly from the internal decoder blocks of the diffusion U-Net.
- Multi-Task Training: The model is trained to perform two tasks simultaneously: predicting the noise in the image (for restoration) and predicting the polygons and transcriptions of text (for spotting).
- Textual Prompt Guidance: During the iterative denoising process, the model's internal text-spotting module predicts what the text says at that specific timestep. This prediction is then fed back into the model as a text prompt to guide the next denoising step. As the image becomes cleaner, the prompts become more accurate, creating a virtuous cycle of legibility.
The SA-Text Benchmark
To train and evaluate TeReDiff, the authors introduced SA-Text, a benchmark specifically curated for the TAIR task.
Derived from the SA-1B (Segment Anything) corpus, SA-Text contains 100K high-quality images. The curation process utilized a sophisticated pipeline involving text-spotting models and Vision-Language Models (VLMs) like Qwen2.5-VL to filter out blurry images and ensure 100% accurate transcriptions. Unlike previous datasets (such as TextOCR or ICDAR), SA-Text provides high-resolution images with dense, diverse annotations, including curved text, varying fonts, and complex orientations.
Key Insights and Results
TeReDiff demonstrates a massive leap in functional legibility and sets a new standard for text-aware restoration:
- Diffusion Features are Sufficient: The paper proves that the intermediate features inside a diffusion model are powerful enough to drive a text-spotting module. A separate "OCR brain" is unnecessary if the "Restoration brain" is already processing the structural patterns.
- TextZoom SOTA: On the standard TextZoom STISR benchmark, TeReDiff achieved an average recognition accuracy of 72.4%, significantly outperforming the previous state-of-the-art (TextSR) at 58.7%.
- Robustness to Degradation: In heavy degradation tests (Level 3) on SA-Text, TeReDiff maintained an F1-score of 57.3% for text recognition. Competing diffusion models like SeeSR and SUPIR plummeted to 50.6% and 32.7%, respectively.
- User Preference: In human evaluations, users preferred TeReDiff’s text restoration 97.8% of the time compared to the baseline DiffBIR model.
Limitations and Future Work
While TeReDiff represents a significant step forward, the authors note a few limitations. First, there is a threshold for small text: if the text in the low-quality image is smaller than roughly 16x17 pixels, the spotting module struggles to initialize the correct prompt, which can lead to failure. Second, while the paper demonstrates a successful extension to Chinese, the primary focus and large-scale training were on English. Expanding the SA-Text dataset to be truly multilingual is a logical next step. Finally, while the text-spotting module adds only ~1.4% more parameters, the iterative prompting adds complexity to the inference loop that could be optimized for real-time applications.
Summary updated