English

Dual Orthogonal Guidance for Robust Diffusion-based Handwritten Text Generation

Computer Vision and Pattern Recognition 2025-08-26 v1

Abstract

Diffusion-based Handwritten Text Generation (HTG) approaches achieve impressive results on frequent, in-vocabulary words observed at training time and on regular styles. However, they are prone to memorizing training samples and often struggle with style variability and generation clarity. In particular, standard diffusion models tend to produce artifacts or distortions that negatively affect the readability of the generated text, especially when the style is hard to produce. To tackle these issues, we propose a novel sampling guidance strategy, Dual Orthogonal Guidance (DOG), that leverages an orthogonal projection of a negatively perturbed prompt onto the original positive prompt. This approach helps steer the generation away from artifacts while maintaining the intended content, and encourages more diverse, yet plausible, outputs. Unlike standard Classifier-Free Guidance (CFG), which relies on unconditional predictions and produces noise at high guidance scales, DOG introduces a more stable, disentangled direction in the latent space. To control the strength of the guidance across the denoising process, we apply a triangular schedule: weak at the start and end of denoising, when the process is most sensitive, and strongest in the middle steps. Experimental results on the state-of-the-art DiffusionPen and One-DM demonstrate that DOG improves both content clarity and style variability, even for out-of-vocabulary words and challenging writing styles.

Keywords

Cite

@article{arxiv.2508.17017,
  title  = {Dual Orthogonal Guidance for Robust Diffusion-based Handwritten Text Generation},
  author = {Konstantina Nikolaidou and George Retsinas and Giorgos Sfikas and Silvia Cascianelli and Rita Cucchiara and Marcus Liwicki},
  journal= {arXiv preprint arXiv:2508.17017},
  year   = {2025}
}

Comments

10 pages, 10 figures

R2 v1 2026-07-01T05:02:51.156Z