UniGlyph: Unified Segmentation-Conditioned Diffusion for Precise Visual Text Synthesis

Yuan-Rui Wang, Cong Han, Yafei Li, Zhi-Peng Jin, Xiawei Li +6 more
7/1/2025

No confident code implementation found for this paper.

Abstract

Text-to-image generation has greatly advanced content creation, yet accurately rendering visual text remains a key challenge due to blurred glyphs, semantic drift, and limited style control. Existing methods often rely on prerendered glyph images as conditions, but these struggle to retain original font styles and color cues, necessitating complex multi-branch designs that increase model overhead and reduce flexibility.

Show full abstract

To address these issues, we propose a segmentation-guided framework that uses pixel-level visual text masks-rich in glyph shape, color, and spatial de-tail-as unified conditional inputs. Our method introduces two core components: (1) a fine-tuned bilingual segmentation model for precise text mask extraction, and (2) a streamlined diffusion model augmented with adaptive glyph conditioning and a region-specific loss to preserve textual fidelity in both content and style. Our approach achieves state-of-the-art performance on the AnyText-benchmark, significantly surpassing prior methods in both Chinese and English settings. To enable more rigorous evaluation, we also introduce two new benchmarks: GlyphMM-benchmark for testing layout and glyph consistency in complex typesetting, and MiniText-benchmark for assessing generation quality in small-scale text regions. Experimental results show that our model outperforms existing methods by a large margin in both scenarios, particularly excelling at small text rendering and complex layout preservation, validating its strong generalization and deployment readiness.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2025uniglyph,
  title  = {UniGlyph: Unified Segmentation-Conditioned Diffusion for Precise Visual Text Synthesis},
  author = {Yuan-Rui Wang and Cong Han and Yafei Li and Zhi-Peng Jin and Xiawei Li and Si-Nan Du and Wen Tao and Shuang-Long Li and Yi Yang and Chun Yuan and Liu Lin},
  year   = {2025},
  eprint = {2507.00992},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2507.00992},
  journal = {IEEE International Conference on Computer Vision}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.00992.svg)](https://codeofpaper.com/paper/2507.00992)

Discussion