NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

VATr++: Choose Your Words Wisely for Handwritten Text Generation

Bram Vanherle, Vittorio Pippi, Silvia Cascianelli, Nick Michiels, Frank Van Reeth, Rita Cucchiara

TL;DR

VATr++ is an enhanced architecture for styled handwritten text generation (HTG) that significantly improves the rendering of rare characters and punctuation. By combining "Visual Archetypes" with novel text augmentation and regularization strategies, the authors achieve state-of-the-art results while also proposing a much-needed standardized evaluation protocol for the field.

What Problem Does This Paper Address?

Styled Handwritten Text Generation (HTG) aims to produce new images of text that mimic a specific person’s unique calligraphic style based on just a few reference samples. While current models are good at common words, they typically fail in two areas:

  1. The Long Tail: Rare characters (like 'z', 'q', or specific punctuation) and "out-of-vocabulary" words often look like gibberish because the model hasn't seen enough examples during training.
  2. Evaluation Chaos: There is no industry-standard way to measure success. Researchers use different data splits, different reference images, and different metrics, making it nearly impossible to compare one paper's results to another's fairly.

Methods

VATr++ builds upon the previous VATr (Visual Archetype Transformer) model, introducing several key innovations:

  • Visual Archetypes: Instead of representing characters as abstract "one-hot" vectors, the model uses 16x16 binary images of characters (from the GNU Unifont). This allows the network to exploit geometric similarities—learning, for example, that an 'o' and a 'c' share similar structural curves.
  • Smart Text Input Preparation: To fix the "rare character" problem, the authors implement a text augmentation scheme that swaps common characters for rare ones during training, ensuring the model's "diet" of characters is balanced.
  • Style Input Preparation: In many datasets, punctuation marks are treated as standalone "words" and resized to a fixed height, losing their relative scale. VATr++ attaches punctuation to neighboring words during training to preserve spatial context and relative sizing.
  • Dual Regularization:
    • HTR Regularization: They apply style-altering but content-preserving augmentations to the images fed to the auxiliary Handwritten Text Recognition (HTR) network. This prevents the "reader" from overfitting to specific styles.
  • Discriminator Regularization: They randomly crop the input to the discriminator, making its job harder and preventing it from simply "memorizing" word shapes, which forces the generator to produce more realistic textures.

Datasets

  • IAM Dataset: The primary benchmark for English handwriting. The authors propose a new, deterministic split to standardize future research.
  • CVL & RIMES: Used to evaluate how well the model generalizes to different languages (German and French) and unseen writing styles.
  • Synthetic Pre-training: The style encoder is pre-trained on a massive synthetic dataset of 100 million samples featuring 10,400 different fonts.

Key Insights and Ideas

  • Geometry Matters: Treating characters as images (Archetypes) rather than IDs is the "aha moment" for handling unseen characters. If the model knows how to draw a 'u' and an 'i', it has a much better chance of figuring out a 'ü'.
  • The Punctuation Paradox: Standardizing image height is great for neural network stability but terrible for punctuation. A comma resized to the height of a capital 'L' is no longer a comma. Keeping them attached to words is a simple, low-tech fix that yields high-impact results.
  • Standardization as a Contribution: The authors argue that the lack of a common evaluation protocol is a "significant hurdle" for the field. By releasing their evaluation scripts and deterministic splits, they aim to move HTG from "cherry-picked results" to rigorous benchmarking.

Key Results

  • Readability: Using a pre-trained TrOCR model to "read" the generated text, VATr++ achieved a Character Error Rate (CER) of 2.34% on rare characters, compared to 5.73% for the original VATr and 6.98% for other state-of-the-art models (HWT).
  • Visual Fidelity: VATr++ consistently outperformed competitors (HiGAN, HWT) across Fréchet Inception Distance (FID) and Kernel Inception Distance (KID) metrics, particularly on the "IAM-WATTP" variant which includes attached punctuation.
  • Generalization: The model showed superior performance in "Out-Of-Vocabulary" (OOV) and "Unseen Writer" scenarios, proving it doesn't just memorize the training set but actually learns the underlying "grammar" of style.

Limitations and Future Work

  • Gibberish Strings: While much better at rare characters, the model still struggles with "Gibberish" (randomly sampled character strings). This is partly because the HTR and language models used in training are biased toward natural English word structures.
  • Unnatural Ligatures: Generating rare character combinations can sometimes result in awkward or unrealistic connections (ligatures) between letters that don't appear in natural writing.
  • Future Directions: The authors suggest extending this work to full-page generation and exploring more complex historical document synthesis where data is even scarcer.

Summary updated

BibTeX
@article{vanherle2025vatr,
  author = {Bram Vanherle and Vittorio Pippi and Silvia Cascianelli and Nick Michiels and Frank Van Reeth and Rita Cucchiara},
  title = {{VATr++: Choose Your Words Wisely for Handwritten Text Generation}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2025},
  doi = {10.1109/tpami.2024.3481154},
}
Figure