HDGlyph: A Hierarchical Disentangled Glyph-Based Framework for Long-Tail Text Rendering in Diffusion Models
Shuhan Zhuang, Mengqi Huang, Fengyi Fu, Nan Chen, Bohan Lei, Zhendong Mao
TL;DR
HDGlyph tackles long-tail text rendering in diffusion models by hierarchical disentanglement across pixel, noise, and latent levels, leveraging a Multi-Linguistic GlyphNet with language-specific LoRAs, a Glyph-Aware Perceptual Loss, Noise-Disentangled Classifier-Free Guidance, and Latent-Disentangled Two-Stage Rendering. It achieves significant improvements in text accuracy for English and Chinese while maintaining high image quality on benchmarks including AnyText, Multilingual, and Complex, particularly in unseen characters and small-sized text. The approach demonstrates strong generalization for multilingual and script-dense content, enabling practical applications in design, localization, and content generation. Collectively, this work establishes a scalable framework for universal visual text rendering in diffusion models.
Abstract
Visual text rendering, which aims to accurately integrate specified textual content within generated images, is critical for various applications such as commercial design. Despite recent advances, current methods struggle with long-tail text cases, particularly when handling unseen or small-sized text. In this work, we propose a novel Hierarchical Disentangled Glyph-Based framework (HDGlyph) that hierarchically decouples text generation from non-text visual synthesis, enabling joint optimization of both common and long-tail text rendering. At the training stage, HDGlyph disentangles pixel-level representations via the Multi-Linguistic GlyphNet and the Glyph-Aware Perceptual Loss, ensuring robust rendering even for unseen characters. At inference time, HDGlyph applies Noise-Disentangled Classifier-Free Guidance and Latent-Disentangled Two-Stage Rendering (LD-TSR) scheme, which refines both background and small-sized text. Extensive evaluations show our model consistently outperforms others, with 5.08% and 11.7% accuracy gains in English and Chinese text rendering while maintaining high image quality. It also excels in long-tail scenarios with strong accuracy and visual performance.
