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

PRISM: Prior Rectification and Uncertainty-Aware Structure Modeling for Diffusion-Based Text Image Super-Resolution

Zihang Xu, Xiaoyang Liu, Zheng Chen, Yulun Zhang, Xiaokang Yang

TL;DR

Sharpening a blurry photo of a tree is forgiving—a misplaced leaf still looks like a tree—but sharpening blurry text is high-stakes: connect the wrong strokes, and you’ve changed the word entirely. PRISM solves text image super-resolution by separating what a character should be from where its exact pixel boundaries lie, using flow matching to clean up degraded text clues and uncertainty modeling to ignore misleading visual artifacts. Best of all, it runs in a single diffusion step, turning blurry Chinese and English text into crisp, readable characters in just 80 milliseconds.

What Problem Does This Paper Address?

Generic image super-resolution aims for perceptual realism, whereas Text Image Super-Resolution (Text-SR) has to preserve strict symbolic meaning. This is especially brutal in dense scripts like Chinese, where a tiny merged or broken stroke transforms one character into another.

Recent diffusion-based Text-SR models try to stay faithful to the text by extracting "text-aware conditions" (semantic or recognition hints) directly from the blurry input image to guide the generation. Under severe blur or corruption, however, two things go wrong:

  1. Garbage-in, garbage-out guidance: A text hint extracted from a heavily degraded image is itself unreliable. Because the model tries to guess the text condition and draw the image simultaneously, it can produce razor-sharp hallucinations of the wrong characters.
  2. Global hints miss local geometry: Even if the model guesses the right character globally, an abstract embedding doesn't tell it the exact pixel coordinates of every stroke intersection. Relying on raw edges from the blurry input is risky too, because compression artifacts and noise masquerade as real strokes.
Figure 1: Entangled objectives cause structural errors.

Methods

Built atop a pre-trained Stable Diffusion 2.1 backbone (fine-tuned via LoRA for single-step image generation), PRISM explicitly decouples restoration into two progressive stages: global prior rectification and local structure refinement.

Figure 2: Overall structure of our PRISM.
  • FMPR (Flow-Matching Prior Rectification): Instead of forcing the model to rely on a noisy text embedding, the authors use learning with privileged information. First, during training, an encoder looks at both the low-quality (LQ) and high-quality (HQ) images together to construct an ideal, "privileged" target space ($c^\star$). Next, for actual inference (when HQ isn't available), FMPR learns a continuous velocity field via flow matching. In just 16 lightweight Euler steps inside a compact latent space, it transports the degraded LQ embedding along a straight trajectory toward that clean, privileged target space.
  • SURE (Structure-guided Uncertainty-aware Residual Encoder): Once FMPR locks in character identity, PRISM freezes the backbone and trains SURE to fix pixel-level stroke boundaries. Rather than treating edges in the blurry input as ground truth, SURE extracts spatial features as a probability distribution—predicting both a mean ($\mu$) and variance ($\sigma^2$) for every pixel, regularized against clean Sobel edge maps. Via reparameterization, confident edges pass cleanly into the UNet's skip connections, while noisy, ambiguous stroke regions get flagged with high uncertainty and softened out.
Figure 4: SURE structural cue visualization.

Datasets

Existing Text-SR datasets either lack bilingual coverage (e.g., TextZoom is English-only) or are small in scale (Real-CE). To bridge this gap, the authors introduce BTL (Bilingual Text-Line), a 100K HQ image corpus:

  • 50K curated real crops: Chinese text from the CTR benchmark, English text from SA-Text, plus digits, strictly filtered using no-reference image quality metrics (MUSIQ, MANIQA, CLIP-IQA).
  • 50K synthetic renders: Generated for font and layout diversity, paired with synthetic degradations (BSRGAN/Real-ESRGAN) and split into 80K training (BTL-train) and 20K testing (BTL-test) pairs.
  • RealCE-val: For real-world evaluation, the authors cleaned up Real-CE's validation set by removing misaligned pairs and fixing bad labels, yielding 1,037 clean real-world test pairs.

Key Insights and Ideas

  • An overconfident wrong edge is worse than a missing edge: In natural images, guessing an edge slightly wrong goes unnoticed. In text, committing to a noisy artifact cements a false stroke. Modeling structural cues stochastically (via SURE) lets the diffusion prior take over when the input image is too degraded to trust.
  • Transport beats generation from scratch in latent space: In ablations, trying to recover the clean text prior using standard diffusion (starting from pure Gaussian noise) actually hurt OCR accuracy compared to flow matching. Starting directly from the degraded embedding and rectifying it avoids overly complex generation paths that lose strict character structure.
  • Multi-step smarts at single-step speeds: Doing 16 Euler steps sounds slow, until you realize FMPR operates entirely in a tiny token embedding space. The heavy lifting—running the UNet image backbone—only happens once.

Key Results

Evaluated against CNN, Transformer, and diffusion baselines (including MARCONet, DiffTSR, and TeReDiff):

  • Readability & Realism: Under challenging $\times 4$ real-world super-resolution (RealCE-val), PRISM ranks first across every single metric. It boosts OCR word accuracy (ACC) from the runner-up's 60.62% to 65.19% and slashes Fréchet Inception Distance (FID, lower is better) from 74.52 down to 47.83. On synthetic $\times 4$ BTL-test, it similarly leads in ACC (42.12%) and FID (12.57 vs. 25.55 for DiffTSR).
  • Speed: On $128 \times 512$ crops, PRISM takes just 0.08 seconds per image—over 130$\times$ faster than 200-step DiffTSR (10.70s) and 65$\times$ faster than 50-step TeReDiff (5.27s), putting generative diffusion on par with standard feed-forward networks.

Limitations and Future Work

While a dedicated "Limitations" section is not explicitly separated out in the main text, the authors note two clear boundaries in their scope and results:

  • Crop-level vs. Full-image: PRISM operates on cropped text lines (transcripts $\le 24$ characters) rather than full natural scenes. As a future direction, the authors note that PRISM is designed to plug seamlessly into broader full-image restoration pipelines as a specialized text-enhancing module.
  • Perception-Distortion Tradeoff: On synthetic $\times 2$ benchmarks, PRISM trails slightly in raw pixel-level PSNR compared to non-diffusion baselines (24.53 dB vs. MARCONet's 25.03 dB), a classic side effect of generative models favoring sharp, readable high-frequency strokes over blurry pixel-averaged safe bets.

Summary updated

BibTeX
@inproceedings{xu2026prism,
  author = {Zihang Xu and Xiaoyang Liu and Zheng Chen and Yulun Zhang and Xiaokang Yang},
  title = {{PRISM: Prior Rectification and Uncertainty-Aware Structure Modeling for Diffusion-Based Text Image Super-Resolution}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=X9LUYLbbp6},
}
Figure