DocDjinn: controllable synthetic document generation with VLMs and handwriting diffusion
Authors:
- Marcel LamottMLMarcel Lamott
- Saifullah SaifullahSSSaifullah Saifullah
- Nauman RiazNRNauman Riaz
- Yves-Noel WewelerYWYves-Noel Weweler
- Tobias Alt-VeitTATobias Alt-Veit
- Ahmad Sarmad AliAAAhmad Sarmad Ali
- Muhammad Armaghan ShakirMSMuhammad Armaghan Shakir
- Adrian KalwaAKAdrian Kalwa
- Momina MoetesumMMMomina Moetesum
- Andreas DengelADAndreas Dengel
- Sheraz AhmedSASheraz Ahmed
- Faisal ShafaitFSFaisal Shafait
Open Access
- 25 August 2026
- journal article
- research article
- Published by Springer Nature in International Journal on Document Analysis and Recognition (IJDAR)
- p. 1-16
Abstract
Effective document intelligence models rely on large amounts of annotated training data. However, procuring sufficient and high-quality data poses significant challenges due to the labor-intensive and costly nature of data acquisition. Additionally, leveraging language models to annotate real documents raises concerns about data privacy. In this context, synthetic document generation has emerged as a promising, privacy-preserving alternative. We propose DocDjinn, a novel framework for controllable synthetic document generation using Vision-Language Models (VLMs) that produces annotated documents from unlabeled seed samples. Our approach generates visually plausible and semantically consistent synthetic documents that follow the distribution of an existing source dataset through clustering-based seed selection with parameterized sampling. By enriching documents with realistic diffusion-based handwriting and contextual visual elements via semantic-visual decoupling, we generate diverse, high-quality annotated synthetic documents. We evaluate DocDjinn as a source of training data across eleven benchmarks spanning key information extraction, question answering, document classification, and document layout analysis. Our experiments show that with only 100 real training samples, our framework achieves on average $$87\%$$ of the performance of the full real-world dataset. To our knowledge, this is the first work demonstrating that VLMs can generate faithful annotated document datasets at scale from unlabeled seeds that can effectively enrich or approximate real, manually annotated data for diverse document understanding tasks. We publicly release our code and 140k+ synthetic document samples.
Keywords
Funding Information
- German Federal Ministry of Research, Technology and Space (BMFTR), Project ’SLIMDOC’ (13HAW15PX4)
This publication has 41 references indexed in Scilit:
- Latent Diffusion for Guided Document Table Generation2024
- Synthesizing Realistic Data for Table Recognition2024
- StylusAI: Stylistic Adaptation for Robust German Handwritten Text Generation2024
- Diffusion-Based Document Layout Generation2023
- Diffusion Models for Document Image Generation2023
- WordStylist: Styled Verbatim Handwritten Text Generation with Latent Diffusion Models2023
- Using GANs for Domain Adaptive High Resolution Synthetic Document Generation2023
- OCR-Free Document Understanding Transformer2022
- DocSynth: A Layout Guided Approach for Controllable Document Image Synthesis2021
- Kleister: Key Information Extraction Datasets Involving Long Documents with Complex Layouts2021