DocDjinn: controllable synthetic document generation with VLMs and handwriting diffusion
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\%$$ 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.
Authors
- Ulrich Schwanecke (ORCID: https://orcid.org/0000-0002-0093-3922)
- Faisal Shafait (ORCID: https://orcid.org/0000-0002-0922-0566)
- Ahmad Ali (ORCID: https://orcid.org/0000-0002-6029-5889)
- Nauman Riaz (ORCID: https://orcid.org/0009-0000-1416-3220)
- Momina Moetesum (ORCID: https://orcid.org/0000-0001-9465-4678)
- Ahmed Sheraz
- Marcel Lamott (ORCID: https://orcid.org/0009-0009-4345-6888)
- Yves-Noel Weweler
- Muhammad Armaghan Shakir
- Saifullah Saifullah
- Adrian Ulges
- Adrian Kalwa
- Tobias Alt-Veit
- Andreas Dengel
Institutions
- University of Kaiserslautern (DE)
- German Research Centre for Artificial Intelligence (DE)
- Insiders Technologies (Germany) (DE)
- RheinMain University of Applied Sciences (DE)
- National University of Sciences and Technology (PK)
Publication Details
- Journal
- International Journal on Document Analysis and Recognition (IJDAR)
- Published
- 2026-08-25
- DOI
- https://doi.org/10.1007/s10032-026-00604-7
- Primary Topic
- Multimodal Machine Learning Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.00