Autoregressive Styled Text Image Generation, but Make it Reliable
Carmine Zaccagnino, Fabio Quattrini, Vittorio Pippi, Silvia Cascianelli, Alessio Tonioni, Rita Cucchiara
TL;DR
Eruku reframes Handwritten Text Generation as a multimodal, prompt-conditioned autoregressive task that operates in a continuous VAE latent space. It introduces explicit visual-text synchronization tokens and a classifier-free guidance-like scheme to enforce strict content adherence while avoiding reliance on style image transcriptions. The model is trained in two phases on a large synthetic dataset and demonstrates robust generalization to unseen styles, arbitrary text length, and resilience to missing or noisy style inputs. Empirical results show improved style fidelity, readability, and long-context generation compared with state-of-the-art HTG approaches, with a simple, practical stopping mechanism and without external supervision networks.
Abstract
Generating faithful and readable styled text images (especially for Styled Handwritten Text generation - HTG) is an open problem with several possible applications across graphic design, document understanding, and image editing. A lot of research effort in this task is dedicated to developing strategies that reproduce the stylistic characteristics of a given writer, with promising results in terms of style fidelity and generalization achieved by the recently proposed Autoregressive Transformer paradigm for HTG. However, this method requires additional inputs, lacks a proper stop mechanism, and might end up in repetition loops, generating visual artifacts. In this work, we rethink the autoregressive formulation by framing HTG as a multimodal prompt-conditioned generation task, and tackle the content controllability issues by introducing special textual input tokens for better alignment with the visual ones. Moreover, we devise a Classifier-Free-Guidance-based strategy for our autoregressive model. Through extensive experimental validation, we demonstrate that our approach, dubbed Eruku, compared to previous solutions requires fewer inputs, generalizes better to unseen styles, and follows more faithfully the textual prompt, improving content adherence.
