Zero-Shot Styled Text Image Generation, but Make It Autoregressive

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Pippi, Vittorio, Quattrini, Fabio, Cascianelli, Silvia, Tonioni, Alessio, Cucchiara, Rita
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912290887958528
author Pippi, Vittorio
Quattrini, Fabio
Cascianelli, Silvia
Tonioni, Alessio
Cucchiara, Rita
author_facet Pippi, Vittorio
Quattrini, Fabio
Cascianelli, Silvia
Tonioni, Alessio
Cucchiara, Rita
contents Styled Handwritten Text Generation (HTG) has recently received attention from the computer vision and document analysis communities, which have developed several solutions, either GAN- or diffusion-based, that achieved promising results. Nonetheless, these strategies fail to generalize to novel styles and have technical constraints, particularly in terms of maximum output length and training efficiency. To overcome these limitations, in this work, we propose a novel framework for text image generation, dubbed Emuru. Our approach leverages a powerful text image representation model (a variational autoencoder) combined with an autoregressive Transformer. Our approach enables the generation of styled text images conditioned on textual content and style examples, such as specific fonts or handwriting styles. We train our model solely on a diverse, synthetic dataset of English text rendered in over 100,000 typewritten and calligraphy fonts, which gives it the capability to reproduce unseen styles (both fonts and users' handwriting) in zero-shot. To the best of our knowledge, Emuru is the first autoregressive model for HTG, and the first designed specifically for generalization to novel styles. Moreover, our model generates images without background artifacts, which are easier to use for downstream applications. Extensive evaluation on both typewritten and handwritten, any-length text image generation scenarios demonstrates the effectiveness of our approach.
format Preprint
id arxiv_https___arxiv_org_abs_2503_17074
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Zero-Shot Styled Text Image Generation, but Make It Autoregressive
Pippi, Vittorio
Quattrini, Fabio
Cascianelli, Silvia
Tonioni, Alessio
Cucchiara, Rita
Computer Vision and Pattern Recognition
Styled Handwritten Text Generation (HTG) has recently received attention from the computer vision and document analysis communities, which have developed several solutions, either GAN- or diffusion-based, that achieved promising results. Nonetheless, these strategies fail to generalize to novel styles and have technical constraints, particularly in terms of maximum output length and training efficiency. To overcome these limitations, in this work, we propose a novel framework for text image generation, dubbed Emuru. Our approach leverages a powerful text image representation model (a variational autoencoder) combined with an autoregressive Transformer. Our approach enables the generation of styled text images conditioned on textual content and style examples, such as specific fonts or handwriting styles. We train our model solely on a diverse, synthetic dataset of English text rendered in over 100,000 typewritten and calligraphy fonts, which gives it the capability to reproduce unseen styles (both fonts and users' handwriting) in zero-shot. To the best of our knowledge, Emuru is the first autoregressive model for HTG, and the first designed specifically for generalization to novel styles. Moreover, our model generates images without background artifacts, which are easier to use for downstream applications. Extensive evaluation on both typewritten and handwritten, any-length text image generation scenarios demonstrates the effectiveness of our approach.
title Zero-Shot Styled Text Image Generation, but Make It Autoregressive
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2503.17074