TL;DR
Generating accurate text in images usually requires dozens of denoising steps, making it slow and computationally expensive. This paper introduces a four-step distillation framework that uses Local Response Regularization and a Teacher-Guided curriculum to achieve a 3.34× speedup while significantly outperforming existing few-step models in spelling accuracy and scene coherence.
What Problem Does This Paper Address?
Diffusion models have revolutionized image generation, but they have a "speed vs. quality" problem, especially for text. While large models like GLM-Image can render crisp, accurate text, they typically require 50 or more denoising steps.
Reducing these to just a few steps (distillation) often results in "spelling gibberish"—characters become blurred, substituted, or misaligned because the model has a much shorter "trajectory" to organize complex scene relations and fine glyph structures. The challenge is: how do you compress the denoising process without losing the precise local control needed for legible text?
Methods
The authors propose a distillation framework built on the GLM-Image architecture, specifically focusing on two novel components:
- Local Response Regularization (LRR): Inspired by path-length regularization in StyleGAN2, this technique regularizes the denoiser's Jacobian. By penalizing inconsistent responses to latent perturbations, the student model learns a smoother, more predictable denoising field. This is critical for few-step models, where each step covers a massive portion of the generation trajectory and needs to be highly stable.
- Teacher-Guided Progressive Training: Instead of just training on static datasets, the authors use a three-stage curriculum:
- Stage 1: Generic scene synthesis.
- Stage 2: Short text strings mixed with teacher-generated images.
-
Stage 3: Dense, multi-region layouts.
Crucially, they mix synthetic text data (which provides "ground truth" for spelling) with high-quality images generated by the 50-step teacher model. This ensures the student learns "scene-integrated typography"—how text should look under specific lighting, perspective, and textures—rather than just "pasting" flat characters onto a background.
The framework keeps the original autoregressive (AR) visual prior and glyph encoder frozen, allowing the distillation to focus entirely on the denoiser's efficiency.
Datasets
- Training: The model uses prompts from DiffusionDB for generic scenes. For text, it uses a custom synthetic stream (placing Chinese/English strings on billboards, screens, etc.) mixed with teacher-generated imagery.
- Evaluation:
- GenEval: Used to measure compositional alignment (e.g., "a red ball next to a blue cube").
- CVTG-2K: A benchmark specifically designed for rendering multiple text regions in complex scenes.
- Qwen-Image: Used for cross-model validation to prove the regularization techniques work across different model families.
Key Insights and Ideas
- Regularization as a Stability Bridge: In a 50-step model, small errors can be corrected in subsequent steps. In a 4-step model, an error in step 1 is often fatal. LRR acts as a "regularity prior," ensuring the model doesn't overreact to noise, which preserves the delicate structure of text characters.
- The "Teacher-Image" Mix: The authors found that training only on synthetic text data makes the model lose its ability to generate natural scenes. By maintaining an 11:1 ratio of teacher-generated images to synthetic text, the model retains the teacher's "visual wisdom" while learning new spelling constraints.
- Preserving the Interface: By freezing the AR prior and glyph encoder, the student inherits the teacher's high-level understanding of "what" to draw, leaving it only to learn "how" to draw it faster.
Key Results
The proposed method achieves a significant leap in performance over the standard Trajectory Distribution Matching (TDM) baseline:
- Quantitative Gains: On the CVTG-2K benchmark, the student achieved a Word Accuracy (WA) of 0.5045, a massive improvement over the 0.1690 achieved by the 4-step TDM baseline.
- Compositional Fidelity: It reached a GenEval Overall score of 0.84, surpassing the baseline's 0.81.
- Speedup: Single-image inference time dropped from 5.818s (teacher) to 1.742s (student) on an NVIDIA A100, representing a 3.34× speedup.
- Qualitative Success: As seen in Figure 1, while other 4-step methods might produce "welocome" or "Wellcome," the proposed student correctly recovers the target string "Welcome" within the same budget.
Limitations and Future Work
- Dense Layouts: While the model is much better at multi-region text, extremely dense layouts still pose a challenge for character accuracy.
- Memory Requirements: Although the model is faster, it still requires 40 GB of GPU memory because the underlying DiT architecture remains large. The authors suggest that future work could combine this distillation with module pruning to reduce the memory footprint.
- Extreme Compression: The current study focuses on 4 steps; exploring even more aggressive 1- or 2-step generation remains an open area for this specific text-bearing task.
Summary updated