TL;DR
Diffusion models are fantastic at turning blurry, low-resolution photos into crisp images, except when it comes to text—where they routinely invent sharp, completely wrong words. HalluciText fixes this without any model retraining by focusing the model's "attention" specifically on confident text regions while using a Vision-Language Model (VLM) as a real-time fact-checker to scrub away hallucinated gibberish. If we ever want to trust AI-enhanced camera zoom on street signs or receipts, teaching models when not to guess is essential.
What Problem Does This Paper Address?
When you use a generative AI model for super-resolution (upscaling low-quality images), it relies on learned priors to fill in missing high-frequency details. For brick walls or foliage, inventing plausible textures works wonders. For text, however, inventing plausible-looking strokes is disastrous: "Mascarello" quietly morphs into "Mastorelia," or an unreadable smudge becomes a crisp, entirely fictional word ("ASOE").
Recent "text-aware" restoration models try to solve this by reading text from the blurry input using Optical Character Recognition (OCR) and feeding those words back into the diffusion model as a text prompt. Yet hallucinations persist. First, standard prompts guide the entire image uniformly rather than focusing specifically on the tiny regions where letters live. Second, there is no safety net: once the generative process commits to a sharp, confident hallucination, nothing in the pipeline detects or repairs it.
Methods
HalluciText is a training-free, test-time framework that plugs directly into existing diffusion or flow-matching restoration models. It introduces two complementary interventions at different stages of the denoising loop:
- Confidence-Weighted Classifier-Free Guidance (CW-CFG): Standard Classifier-Free Guidance (CFG)—the dial that controls how strictly a diffusion model obeys its prompt—uses a single scalar number across the whole image. CW-CFG replaces that single number with a 2D spatial map. Using bounding polygons and character confidence scores from an OCR module, it keeps guidance low on backgrounds while cranking it up on text regions—scaled by how confident the OCR is. High-confidence words get strongly reinforced; uncertain reads aren't amplified into hallucinations.
- VLM-Guided Test-Time Guidance (V-TTG): Even with spatial guidance, models sometimes commit to crisp, wrong letters. At selected denoising steps, V-TTG decodes the current image, draws boxes around detected text, and asks a VLM (Qwen3-VL-8B) which regions look garbled or hallucinated. For flagged regions only, it applies a gradient update that nudges the latent image toward a blurry-but-honest reference generated by SwinIR (a classic, non-generative upscaler trained on pixel-level error that never invents fake letters).
Datasets
Because HalluciText is training-free, no training datasets are required. For diagnostic analysis, the authors curated a held-out validation set of 1,000 synthetically degraded images with dense text annotations. Final evaluations were conducted on two established scene-text benchmarks:
- SA-Text-Test: 1,000 scene-text images with synthetic degradations across three severity levels.
- Real-Text: 847 real-world blurry/low-resolution text images featuring diverse, natural degradations.
Key Insights and Ideas
Empirical motivation showing that ground-truth prompts still fail, spatial CFG improves the quality-recognition tradeoff, and OCR confidence strongly predicts word accuracy.
- Perfect prompts don't cure hallucinations: Even when the authors fed oracle ground-truth text into a state-of-the-art model (UniT), text recall reached only 0.36. Hallucinations aren't just a "bad prompt" problem—they stem from how generative dynamics distribute guidance across space.
- OCR confidence is a surprisingly calibrated compass: Taking the minimum character confidence score in a detected word strongly predicts whether that word actually matches reality (jumping from 0.5% accuracy in the lowest bucket to 88.7% in the highest).
- Sometimes blurry is better than sharp: When low-resolution evidence is completely destroyed, replacing a crisp AI hallucination with a blurry, structurally faithful SwinIR patch is a feature, not a bug—it stops the model from lying to the user.
Key Results
Tested on top of two state-of-the-art text-aware models (UniT and TeReDiff), HalluciText consistently boosts end-to-end text recognition F1 scores:
- On Real-Text, it improves OCR-F1 by +4.42 points on TeReDiff (48.30 $\rightarrow$ 52.72, driven by a massive +13.18 jump in precision) and +3.37 points on UniT (53.74 $\rightarrow$ 57.11).
- On SA-Text-Test, it yields +3.64 and +3.53 OCR-F1 gains on TeReDiff and UniT, respectively.
- Swapping out UniT's specialized built-in text spotter for an off-the-shelf PaddleOCR module still yields a +2.62 F1 boost on Real-Text, proving the method isn't tied to custom model internals.
- Reference-based image quality (PSNR, SSIM, LPIPS) and background textures remain intact, though no-reference perceptual scores dip slightly because those metrics inherently reward sharp-looking fake letters over honest blur.
Limitations and Future Work
The primary tradeoff is inference latency. Querying a VLM mid-denoising and running two model passes per step for CFG increases processing time from ~6.6 seconds per image (baseline UniT) to ~10.4 seconds, even with VLM checks sparsified to run every 10 steps. As for future directions, the authors note that because HalluciText works even with off-the-shelf OCR tools like PaddleOCR, it could naturally be extended to general-purpose super-resolution models that have no native text-awareness built in.
Summary updated