Zero-Shot Paragraph-level Handwriting Imitation with Latent Diffusion Models
On the map: Diffusion models → Image generation, text-to-image and editing
Abstract (arXiv)
The imitation of cursive handwriting is mainly limited to generating handwritten words or lines. Multiple synthetic outputs must be stitched together to create paragraphs or whole pages, whereby consistency and layout information are lost. To close this gap, we propose a method for imitating handwriting at the paragraph level that also works for unseen writing styles. Therefore, we introduce a modified latent diffusion model that enriches the encoder-decoder mechanism with specialized loss functions that explicitly preserve the style and content. We enhance the attention mechanism of the diffusion model with adaptive 2D positional encoding and the conditioning mechanism to work with two modalities simultaneously: a style image and the target text. This significantly improves the realism of the generated handwriting. We set a new benchmark in our comprehensive evaluation, achieving 61 % mAP and 56 % top-1 accuracy in style preservation, significantly outperforming the previous best method (37 % mAP, 30 % top-1). We are making our code publicly available for reproducibility, supporting research in this area and research into potential countermeasures: https://github.com/M4rt1nM4yr/paragraph_handwriting_imitation_ldm
Key facts. Cited by 5 papers in the map (data through 13 Oct 2026). Placed in Image generation, text-to-image and editing, one of 14 directions in Diffusion models. Builds on 40 of its 60 references that are in the map. First posted on arXiv 1 Sep 2024.
Builds on
40 of 60 references.
Closest ancestors · 6
Same direction, newest first
- 2024StylusAI: Stylistic Adaptation for Robust German Handwritten Text Generation22 Jul
- 2023Conditional Text Image Generation with Diffusion Models19 Jun
- 2023Improving Handwritten OCR with Training Samples Generated by Glyph Conditional Denoising Diffusion Probabilistic Model31 May
- 2023TextDiffuser: Diffusion Models as Text Painters18 May
- 2023WordStylist: Styled Verbatim Handwritten Text Generation with Latent Diffusion Models29 Mar
- 2020Diffusion models for Handwriting Generation13 Nov
Other references · 34
- 2017Attention Is All You Needcited by 60,106
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,043
- 2020Denoising Diffusion Probabilistic Modelscited by 20,952
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,777
- 2020Denoising Diffusion Implicit Modelscited by 9,718
- 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,213
- 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,023
- 2022Classifier-Free Diffusion Guidancecited by 5,785
- 2021Zero-Shot Text-to-Image Generationcited by 4,284
- 2021Improved Denoising Diffusion Probabilistic Modelscited by 3,751
- 2018UMAP: Uniform Manifold Approximation and Projection for Dimension Reductioncited by 2,870
- 2017Arbitrary Style Transfer in Real-time with Adaptive Instance Normalizationcited by 2,005
22 more
- 2018Demystifying MMD GANscited by 1,277
- 2022Diffusion Models: A Comprehensive Survey of Methods and Applicationscited by 1,112
- 2013Generating Sequences With Recurrent Neural Networkscited by 553
- 2020Pay Attention to What You Read: Non-recurrent Handwritten Text-Line Recognitioncited by 71
- 2020ScrabbleGAN: Semi-Supervised Varying Length Handwritten Text Generationcited by 69
- 2020GANwriting: Content-Conditioned Generation of Styled Handwritten Word Imagescited by 68
- 2019On Recognizing Texts of Arbitrary Shapes with 2D Self-Attentioncited by 59
- 2018DeepWriting: Making Digital Ink Editable via Deep Generative Modelingcited by 39
- 2021Handwriting Transformerscited by 37
- 2020Text and Style Conditioned GAN for Generation of Offline Handwriting Linescited by 35
- 2022Content and Style Aware Generation of Text-line Images for Handwriting Recognitioncited by 35
- 2023Disentangling Writer and Character Styles for Handwriting Generationcited by 35
- 2022Few-Shot Font Generation by Learning Fine-Grained Local Stylescited by 34
- 2023Handwritten Text Generation from Visual Archetypescited by 32
- 2022SLOGAN: Handwriting Style Synthesis for Arbitrary-Length and Out-of-Vocabulary Textcited by 26
- 2021Page Layout Analysis System for Unconstrained Historic Documentscited by 20
- 2023HWD: A Novel Evaluation Score for Styled Handwritten Text Generationcited by 19
- 2021SmartPatch: Improving Handwritten Word Imitation with Patch Discriminatorscited by 17
- 2023AGTGAN: Unpaired Image Translation for Photographic Ancient Character Generationcited by 17
- 2017Encoding CNN Activations for Writer Recognitioncited by 13
- 2021Style Equalization: Unsupervised Learning of Controllable Generative Sequence Modelscited by 11
- 2020Spatio-Temporal Handwriting Imitationcited by 5
Built on by
Citing papers per year: 2024: 1; 2025: 3; 2026: 1.
5 papers.
- 2025Zero-Shot Styled Text Image Generation, but Make It Autoregressivecited by 13
- 2025Autoregressive Styled Text Image Generation, but Make it Reliablecited by 3
- 2024Semi-Supervised Adaptation of Diffusion Models for Handwritten Text Generationcited by 2
- 2025Dual Orthogonal Guidance for Robust Diffusion-based Handwritten Text Generationcited by 2
- 2026Different Strokes for Different Folks: Writer Identification for Historical Arabic Manuscriptscited by 0
- 2026Different Strokes for Different Folks: Writer Identification for Historical Arabic Manuscripts24 Apr 2026
- 2025Autoregressive Styled Text Image Generation, but Make it Reliable27 Oct 2025
- 2025Dual Orthogonal Guidance for Robust Diffusion-based Handwritten Text Generation23 Aug 2025
- 2025Zero-Shot Styled Text Image Generation, but Make It Autoregressive21 Mar 2025
- 2024Semi-Supervised Adaptation of Diffusion Models for Handwritten Text Generation20 Dec 2024
Similar, not cited
Close in wording, no citation either way
- 2025DiffInk: Glyph- and Style-Aware Latent Diffusion Transformer for Text to Online Handwriting Generation
- 2025Layout Stroke Imitation: A Layout Guided Handwriting Stroke Generation for Style Imitation with Diffusion Model
- 2024DiffusionPen: Towards Controlling the Style of Handwritten Text Generation
- 2023DS-Fusion: Artistic Typography via Discriminated and Stylized Diffusion
- 2026CONSTANT: Towards High-Quality One-Shot Handwriting Generation with Patch Contrastive Enhancement and Style-Aware Quantization
- 2026HandwritingAgent: Language-Driven Handwriting Synthesis in Scalable Vector Space
- 2024One-Shot Diffusion Mimicker for Handwritten Text Generation
- 2023Calliffusion: Chinese Calligraphy Generation and Style Transfer with Diffusion Modeling