CA-DIFF: enhancing stylistic consistency in handwriting generation—a diffusion model perspective
Handwritten text generation has garnered considerable attention due to its applications in data augmentation and personalized handwriting synthesis, supporting downstream tasks such as Handwritten Text Recognition (HTR) and writer identification. Traditional generative approaches, such as GAN-based models, often suffer from mode collapse, dependency on large training sets, and limited ability to capture global stylistic attributes. Transformer-based generative models, though powerful, are computationally intensive and struggle to generalize when trained on limited handwriting data. To overcome these limitations, we propose CA-DIFF (Cross-Attention Diffusion), a style-aware diffusion-based framework designed for generating high-fidelity and stylistically consistent handwritten word images. Our model incorporates a multi-stage cross-attention mechanism via a novel Style Encoder (SE) block that dynamically extracts writer-specific style features from intermediate layers of a MobileNet-based writer classifier. These features are integrated into the U-Net-based diffusion architecture at multiple stages (input, middle, and output), enabling fine-grained style preservation without relying on fixed writer IDs. Extensive experiments on benchmark handwriting datasets (IAM and CVL), along with evaluations on a low-resource historical handwriting dataset, demonstrate that our method improves downstream performance, achieving up to 6–10% higher writer classification accuracy over prior diffusion-based methods. These results validate CA-DIFF as a general and effective framework for historical handwritten text synthesis, adaptable to both large-scale and low-resource scenarios.
Authors
- Aniket Gurav
- Sukalpa Chanda (ORCID: https://orcid.org/0000-0002-9068-5845)
- Narayanan Chatapuram Krishnan (ORCID: https://orcid.org/0000-0002-6132-0310)
Institutions
- Østfold University of Applied Sciences (NO)
- Indian Institute of Technology Palakkad (IN)
Publication Details
- Journal
- International Journal on Document Analysis and Recognition (IJDAR)
- Published
- 2026-10-03
- DOI
- https://doi.org/10.1007/s10032-026-00623-4
- Primary Topic
- Handwritten Text Recognition Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00