Glossary

Synthetic data

Data generated by models, simulations or rules to stand in for real records when real data is scarce, sensitive or unlabelled.

Synthetic data is data that has been generated rather than collected: records, documents, conversations or images produced by a model, a simulation or a set of rules so that they share the structure and statistical shape of real data without describing real people or events. AI teams use it where real examples are scarce, expensive to label or too sensitive to share, most often for evaluation sets, test fixtures for document pipelines and training data for narrow tasks.

How synthetic data is generated

There are three broad families of technique, and most production pipelines combine at least two of them.

Rule-based generation builds records from templates and constraints. A script might produce ten thousand invoices by combining vendor names, line items, tax rates and dates drawn from lists, then render each one to PDF. The output is predictable and every field is known in advance, which makes it a good source of ground truth for testing structured data extraction. The weakness is variety: templated documents rarely capture the skewed scans, handwritten corrections and odd layouts that cause real failures.

Statistical and simulation methods fit a model to real data and sample new records from it. Tabular approaches range from simple distribution matching to generative adversarial networks and variational autoencoders trained on a source table. Simulation is common in robotics and autonomous driving, where a physics engine renders scenes with perfect labels. These methods preserve correlations between fields better than templates do, at the cost of needing a real dataset to learn from in the first place.

LLM-generated data has become the default for language tasks. A large language model is prompted to write questions about a document, paraphrase a support ticket, role-play a user in a multi-turn conversation or produce labelled examples for a classifier. Techniques such as self-instruct bootstrap large instruction sets from a handful of seed examples, and model distillation uses a strong model’s outputs to train a smaller one. Generation is cheap and fast, but the data inherits the generating model’s blind spots, phrasing habits and occasional hallucinations.

Where synthetic data helps AI teams

The clearest win is evaluation. Building a golden dataset by hand means a subject expert reading documents and writing question and answer pairs, which is slow. A common shortcut is to sample passages from your corpus, ask a model to write a question that each passage answers, and keep the passage as the expected source. The result is a labelled set for retrieval evaluation that you can score with recall@k or hit rate within an afternoon. Frameworks such as RAGAS include test set generators built on this idea. The same approach extends to agent evaluation, where one model plays the user in multi-turn conversations to exercise tools and edge cases, and to broader LLM evaluation.

The second is testing document pipelines. If you generate an invoice, you know its total, due date and every line item before it is rendered, so you can measure field-level accuracy exactly. You can also target specific failure modes on purpose: rotate pages, add noise to imitate a scanned PDF, split a table across a page break or mix currencies. That kind of deliberate coverage is hard to assemble from real documents, which tend to cluster around the easy cases.

Third, synthetic data stands in for sensitive records. Teams building agents for healthcare, finance or HR often cannot copy production data into a development environment. Synthetic patients, transactions or CVs let engineers build and debug resume parsing or claims workflows without handling personal data, which simplifies some obligations under rules such as GDPR. It does not remove them entirely. A generator trained on real records can memorise and reproduce fragments of them, so privacy claims need testing.

Finally, it fills the long tail for training. Fine-tuning a small model for a narrow task, such as classifying support intents or tagging entities with named entity recognition, often needs thousands of labelled examples for rare classes. Generating those examples and mixing them with a smaller set of real ones is now standard practice.

Where synthetic data misleads

Synthetic data is only as useful as its match to the real distribution, and the mismatch is usually invisible until production. Questions written by a model tend to reuse the vocabulary of the passage they came from, which flatters keyword matching and semantic search alike. Real users ask vaguer questions, misspell product names and ask about things the corpus does not cover. A retriever that scores 95% on generated questions can score far lower on real traffic for exactly this reason.

There is also a circularity problem. If the same model family generates the test questions, answers them and then grades the answers with LLM as a judge, its shared biases compound and the score drifts upward. Public AI benchmarks face a related issue when test items leak into training data. Training repeatedly on model-generated text can also degrade later models, a failure mode researchers call model collapse, because each generation loses some of the rare cases in the tails of the original distribution.

The practical defence is to treat synthetic data as a supplement to real data. Keep a smaller set of real, hand-checked examples, report results on both sets separately and investigate whenever they disagree. Deduplicate generated items against each other and against the corpus, since generators repeat themselves; near-duplicate detection catches paraphrases that exact matching misses. Have a person review a random sample of every generated batch before it is used to make decisions.

Synthetic data for extraction and OCR

Document extraction is one of the places synthetic data earns its keep, because ground truth is otherwise expensive. To label a real invoice you have to read it and type every field. To label a synthetic one you keep the values you rendered. Teams testing invoice OCR, receipt OCR or table extraction commonly generate a few hundred documents per layout family, degrade them with blur, skew and compression, and track accuracy per field as the pipeline changes. If you are comparing vendors, a synthetic set with known values makes a fair test harness, and our invoice extraction API roundup covers the main options.

The trap is that renderers produce clean text layers, and real-world PDFs often do not. A synthetic PDF with a perfect text layer tests your parser, while a photographed receipt tests your OCR. Generate both, and include handwriting and stamps if your users send them. Measuring against real samples remains essential, since the oddities in real documents are the reason extraction is hard. We list several in the 15 nastiest PDF edge cases we’ve seen.

Synthetic data and Exabase

Exabase does not generate synthetic data. It is the infrastructure layer that synthetic test sets and the pipelines they exercise run against, so the generation logic and the judgement about what counts as realistic stay with you.

For extraction testing, you can submit generated documents to Extract through the extraction endpoint and compare the returned fields with the values you rendered, after a normalisation step for dates and amounts. Invoices, resumes and contracts are recognised automatically and return structured fields such as vendor, line items and total, so a synthetic invoice set gives you a direct field-level accuracy score. The invoice to JSON and resume to JSON tools are quick ways to try individual files, the extraction guide covers job states and webhooks, and the file extraction page covers the wider workflow. The invoice processing use case shows a complete pipeline built this way.

For retrieval evaluation, store your corpus as Resources in a dedicated Base and run generated questions through Deep Search. Each hit comes back with a page number or timestamp, so checking whether the expected source passage was retrieved is a simple comparison. Keeping the evaluation corpus in its own Base means test runs never touch production data, and the precision setting lets you see how recall changes as you tighten results. The RAG accuracy page explains the gap between retrieving a topically similar chunk and retrieving the passage that answers the question, which is the gap synthetic benchmarks most often hide.

If you want help drafting candidate questions, a Worker can be given a prompt to read documents in a Base and write question and passage pairs into a note, which a person then reviews. That keeps the generated set beside the corpus it was drawn from. For a broader view of measuring retrieval with little labelled data, see evaluating retrieval without a labelled dataset.

Practical guidelines

Start from the decision you need to make. If you are choosing between two retrievers, a few hundred generated questions plus fifty real ones is usually enough to see a difference. If you are signing off an extraction pipeline for a customer, generated documents can show coverage, but the final check should rest on real samples.

Record how each synthetic set was made: the generator, the prompt or template, the seed data and the date. Version the set the way you version code, because a regenerated set is a different benchmark and scores from different versions are not comparable. Keep generated and real items labelled with their source in the metadata, so you can always split results by origin.

Refresh synthetic sets when the underlying corpus changes. Questions generated from last quarter’s documentation test answers that may no longer be true, the same stale knowledge problem that affects production knowledge bases. If your corpus is maintained by a scheduled job, regenerate the evaluation set on a similar cadence.

FAQs

Is synthetic data the same as fake data?

Yes, in the sense that it describes no real person or event. The difference from placeholder values is intent: synthetic data is generated to match the structure and statistics of a real dataset, so it behaves like real records in tests and training.

Is synthetic data good enough to evaluate a RAG system?

It is good enough to compare options and catch regressions, and too optimistic to predict production quality on its own. Generated questions tend to share wording with their source passages, so pair them with a smaller set of real user queries and report both. Our RAG pipeline entry covers the stages worth measuring.

Does synthetic data remove privacy obligations?

Not automatically. Data generated by a model trained on real records can leak fragments of those records, so test for memorisation and treat the generator itself as sensitive. Whether a particular synthetic dataset counts as personal data is a question for your legal and privacy teams.

What is model collapse?

Model collapse is the gradual loss of quality when models are trained repeatedly on text produced by earlier models. Each round under-represents rare cases from the original data, so outputs become narrower and more repetitive. Mixing fresh real data into every round limits the effect.

How much synthetic data should I mix with real data?

There is no fixed ratio. For evaluation, keep real and synthetic sets separate and report them side by side. For training, teams often use synthetic examples for rare classes and real examples for common ones, then check performance on a held-out real set.

Can Exabase generate synthetic data?

No. Exabase provides the storage, extraction and search that synthetic test sets are run against. You generate the data with your own scripts or models, then use Exabase to measure how extraction and retrieval perform on it.

Related pages: Golden dataset, Retrieval evaluation, LLM evaluation, Structured data extraction, Invoice OCR, Data normalization, File extraction, Evaluating retrieval without a labelled dataset, Best document extraction API., instruction tuning, batch inference

Cut your token spend and give your agent precise context.

Get started in minutes.

Cut your token spend and give your agent precise context.

Get started in minutes.