GlyphDiffusion: Text Generation as Image Generation

Junyi Li, Wayne Xin Zhao, Jian-Yun Nie, Ji-Rong Wen
4/25/2023
cs.CLcs.CVcs.LG

No confident code implementation found for this paper.

Abstract

Diffusion models have become a new generative paradigm for text generation. Considering the discrete categorical nature of text, in this paper, we propose GlyphDiffusion, a novel diffusion approach for text generation via text-guided image generation. Our key idea is to render the target text as a glyph image containing visual language content. In this way, conditional text generation can be cast as a glyph image generation task, and it is then natural to apply continuous diffusion models to discrete texts. Specially, we utilize a cascaded architecture (ie a base and a super-resolution diffusion model) to generate high-fidelity glyph images, conditioned on the input text. Furthermore, we design a text grounding module to transform and refine the visual language content from generated glyph images into the final texts. In experiments over four conditional text generation tasks and two classes of metrics (ie quality and diversity), GlyphDiffusion can achieve comparable or even better results than several baselines, including pretrained language models. Our model also makes significant improvements compared to the recent diffusion model.

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{li2023glyphdiffusion,
  title  = {GlyphDiffusion: Text Generation as Image Generation},
  author = {Junyi Li and Wayne Xin Zhao and Jian-Yun Nie and Ji-Rong Wen},
  year   = {2023},
  eprint = {2304.12519},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.12519v2}
}

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/2304.12519.svg)](https://codeofpaper.com/paper/2304.12519)

Discussion