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.
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:
- 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.
- 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).
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