Generating Synthetic Invoices via Layout-Preserving Content Replacement
Not on the map. Why?
Abstract (arXiv)
The performance of machine learning models for automated invoice processing is critically dependent on large-scale, diverse datasets. However, the acquisition of such datasets is often constrained by privacy regulations and the high cost of manual annotation. To address this, we present a novel pipeline for generating high-fidelity, synthetic invoice documents and their corresponding structured data. Our method first utilizes Optical Character Recognition (OCR) to extract the text content and precise spatial layout from a source invoice. Select data fields are then replaced with contextually realistic, synthetic content generated by a large language model (LLM). Finally, we employ an inpainting technique to erase the original text from the image and render the new, synthetic text in its place, preserving the exact layout and font characteristics. This process yields a pair of outputs: a visually realistic new invoice image and a perfectly aligned structured data file (JSON) reflecting the synthetic content. Our approach provides a scalable and automated solution to amplify small, private datasets, enabling the creation of large, varied corpora for training more robust and accurate document intelligence models.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 4 of its 8 references that are in the map. First posted on arXiv 4 Aug 2025.
Builds on
4 of 8 references.
References · 4
- 2017Improved Regularization of Convolutional Neural Networks with Cutoutcited by 1,628
- 2019LayoutLM: Pre-training of Text and Layout for Document Image Understandingcited by 553
- 2019LayoutGAN: Generating Graphic Layouts with Wireframe Discriminatorscited by 131
- 2017Multi-Content GAN for Few-Shot Font Style Transfercited by 100
Built on by
Citing papers per year: 2025: 1.
1 paper.