AMO Sampler: Enhancing Text Rendering with Overshooting

Xixi Hu, Keyang Xu, Bo Liu, Qiang Liu, Hongliang Fei

Introduction

Despite the breathtaking realism of modern text-to-image (T2I) models like Flux and Stable Diffusion 3, they suffer from a persistent "spelling problem." Models frequently output gibberish, miss words, or hallucinate random characters. This is largely attributed to compounding error: small numerical inaccuracies in deterministic solvers (like the Euler method) accumulate over sampling steps, leading the model away from the intended data distribution. While fine-tuning on text datasets is a common fix, it is computationally expensive and can degrade the model's ability to generate natural textures.

Figure 4: The AMO Sampler corrects spelling errors (e.g., 'civilized') that standard Euler samplers often miss.

Methodology: Attention Modulated Overshooting

The researchers propose the AMO Sampler (Attention Modulated Overshooting), a training-free, plug-and-play method for Rectified Flow (RF) models. The approach consists of two core components:

  1. Overshooting Sampler: Instead of taking a standard deterministic step, the sampler "overshoots" the target time point and injects a calculated amount of noise. This process is mathematically equivalent to adding a Langevin dynamics term, providing a stochastic self-correction mechanism that nudges the generation back toward the true data manifold.
  2. Attention Modulation (AMO): To prevent "over-smoothing" of fine details, the sampler uses internal cross-attention maps to identify image patches corresponding to text. It applies strong overshooting only to these text-related regions, ensuring the background remains sharp while the text becomes legible.

Key Results

The AMO Sampler was evaluated across major benchmarks, including DrawTextCreative, ChineseDrawText, and TMDBEval500, using state-of-the-art models like Flux (dev) and SD3 (Medium).

Figure 5: Qualitative comparison showing AMO's effectiveness across various failure modes, including missing words and hallucinations.

Significant improvements were recorded across the board:

  • Accuracy Boost: Human evaluation for Flux improved from 74% to 82.5%, while SD3 saw a jump from 32.5% to 43%.
  • OCR Metrics: Automated OCR tools recorded a 32.3% improvement on SD3 and a 35.9% improvement on Flux.
  • Image Quality: Unlike other methods, AMO maintained or slightly improved FID scores, proving that legibility does not require sacrificing aesthetic realism.

Conclusion

The AMO Sampler offers a robust solution to text rendering challenges without the need for additional training or increased inference costs. By intelligently applying stochastic correction to text-heavy regions, it ensures that modern generative models can finally "spell" as well as they can paint.

Summary updated

BibTeX
@inproceedings{hu2025amo,
  author = {Xixi Hu and Keyang Xu and Bo Liu and Qiang Liu and Hongliang Fei},
  title = {{AMO Sampler: Enhancing Text Rendering with Overshooting}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01228},
}
Figure