Home / Insights / AI and Machine Learning

AI and Machine Learning

Synthetic Data for AI Training and Testing: Where It Helps, Where It Fails and What It Means for Privacy

Synthetic data promises training and test data without the privacy, cost and access problems of real records. It can deliver that, but only for some jobs, and only if you measure its utility and its disclosure risk rather than assuming both.

TopicsAI and Machine LearningQA and Software Testing

Key takeaways

  • Synthetic data is strongest for software testing, rare-case augmentation and early prototyping; it is weakest as a full replacement for real training data.
  • Synthetic data generated from personal data is not automatically anonymous. Treat re-identification and membership risk as something to test, not assume.
  • Always evaluate models trained or tuned on synthetic data against a held-out set of real data, or you are grading the generator, not the model.
  • Repeatedly training on model-generated output erodes rare cases first, which is exactly where many business risks live.
  • Decide the job first (test, augment, share or replace), then pick the generation method, the privacy controls and the acceptance metrics that fit that job.

Many AI projects hit the same wall early: the data that would make the model useful (patient referrals, support transcripts, claims histories) is the data nobody is comfortable moving. Legal wants it minimised, security wants it locked down, and engineers want lots of it, labelled, in a fast development environment.

Synthetic data is often proposed as the way out. Generate artificial records that look and behave like the real ones, and you can train, test and share without exposing anyone. That framing is half right. Synthetic data is a genuinely useful tool, and we use it routinely for test environments and edge-case coverage. But it has limits that are easy to miss until a model underperforms in production or a privacy review asks a question nobody can answer.

This article is for CTOs, product leaders and data owners deciding whether synthetic data belongs in an AI or software project. It covers what synthetic data is good for, the trade-offs between generation methods, how to decide, how to implement it with proper checks, and the privacy and quality risks that should shape your budget and governance.

What synthetic data is, and the four jobs it can do

Synthetic data is artificial data produced by a process designed to reproduce the structure and statistical characteristics of a real dataset, or to represent a domain described by experts. The European Data Protection Supervisor’s TechSonar note on synthetic data describes the ideal: the synthetic set should give similar results to the original when the same statistical analysis is run on it, and how closely it does so is a measure of the method’s utility. The same note distinguishes three sources: data generated from real datasets, data generated from analysts’ knowledge, and a mix of both.

The four jobs

In practice, organisations reach for synthetic data to do one of four jobs. Naming the job up front avoids most of the disappointment we see later.

  • Test: populate development, QA and demo environments with realistic records so engineers never need production data. This is the most mature and lowest-risk use.
  • Augment: add examples of rare or under-represented cases (unusual document layouts, uncommon fault types, minority classes) to a real training set.
  • Share: give an external partner, vendor or research team a dataset with the analytical shape of the original, without handing over the original.
  • Replace: train a production model mostly or entirely on synthetic data because real data is unavailable or restricted.

The further down that list you go, the higher the bar for utility and privacy evidence: test data must exercise code paths, while replacement data must lead a model to the same decisions real data would.

Generation methods and their trade-offs

There is no single way to make synthetic data. The method you pick should follow the job, the data type and the privacy requirement, not the other way round.

Rule-based and template generation

Engineers write generators that produce records according to schemas, value distributions and business rules: a customer has one to three addresses, order totals follow a skewed distribution, a referral letter contains a patient block, a clinician block and a reason for referral. This is cheap, transparent and carries essentially no disclosure risk because no real record is involved. Its weakness is that it only contains the patterns you thought of.

Statistical models

Bayesian networks, copulas or sequential decision-tree models learn the joint distribution of a tabular dataset and sample new rows. They preserve correlations between columns and are easier to reason about than deep models, but struggle with free text, images and very wide data.

Deep generative models

Generative adversarial networks, variational autoencoders, diffusion models and large language models can produce images, documents, conversations and complex tabular data. They capture subtle structure, but they are harder to audit, can memorise training examples, and need careful evaluation to show they are not simply reproducing the source.

MethodBest forPrivacy riskFidelity to real patternsEffort to validate
Rule-based / templatesTest and demo environments, schema coverageVery low (no real data used)Low to medium; only what you encodeLow
Statistical modelsTabular data sharing, analytics prototypesMedium; depends on outliers and controlsMedium to high for tabular dataMedium
Deep generative modelsImages, documents, complex tabular data, augmentationMedium to high without privacy controlsHigh, but can memoriseHigh
LLM-written textEvaluation sets, red-team prompts, conversational test dataLow if prompts contain no personal dataVariable; reflects the model’s styleMedium to high

Where synthetic data quietly fails

Synthetic data rarely fails loudly. Four failure patterns account for most problems we see.

1. Missing outliers and rare cases

Generators learn what is common. The EDPS note points out that synthetic data mimics real data without being a replica, so it may not cover outliers that matter for some applications. For fraud detection, clinical triage, safety monitoring or exception handling in operations, the outliers are the point. A model trained on smoothed-over data can score well on synthetic validation and still miss the cases that justify its existence.

2. Recursive training and model collapse

Research by Shumailov and colleagues, “The Curse of Recursion: Training on Generated Data Makes Models Forget”, found that when models are trained on content produced by earlier models, the low-probability tails of the original distribution progressively disappear. The authors call this model collapse and report it across variational autoencoders, Gaussian mixture models and large language models. The practical lesson for a business is not that synthetic data is unusable, but that a pipeline where generated data repeatedly feeds the next generation of models, with no fresh real data anchoring it, degrades in exactly the places that are hardest to notice.

3. Bias inherited and amplified

A generator trained on biased data produces biased synthetic data, and the EDPS note observes that making synthetic data fairer can reduce accuracy. Rebalancing is legitimate, but document and test it as a design decision.

4. Grading the generator instead of the model

If both training and evaluation data are synthetic, a high score tells you the model has learned the generator’s world. It tells you very little about the real one. The EDPS note makes the related point that checking the quality of synthetic output usually requires comparison with original or human-annotated data, which means you still need controlled access to some real data. Plan for that from the start.

Action: for any model where synthetic data is more than a small supplement, reserve a held-out set of real, representative records for final evaluation, and never let synthetic records into that set.

Is synthetic data anonymous? Privacy and re-identification

Not automatically. Synthetic data generated from personal data can still identify individuals or reveal information about them. The EDPS note is explicit that a privacy assurance assessment should be performed to establish that the synthetic dataset is not, in fact, personal data.

How synthetic data leaks

  • Memorisation: deep generative models can reproduce near-copies of training records, especially unusual ones.
  • Outlier disclosure: a synthetic record with a rare combination of attributes (a specific age, postcode area and diagnosis) may point to one real person even if it is not an exact copy.
  • Membership inference: an attacker with some knowledge of a person may be able to infer whether that person’s record was in the source data, which can itself be sensitive (for example, membership of a clinical dataset).
  • Linkage: synthetic attributes combined with public data can narrow down identities, the same risk that affects traditional de-identification.

What the guidance frameworks say

NIST’s SP 800-188, De-Identifying Government Datasets: Techniques and Governance (September 2023) lists generating synthetic data using models as one of several data-sharing approaches, alongside publishing de-identified data, query interfaces and protected enclaves. It advises organisations to set their goals and assess re-identification risk before choosing a model, and it recommends governance mechanisms such as a disclosure review board and re-identification studies. It also warns that tools which only mask personal information may not achieve real de-identification.

The UK Information Commissioner’s Office includes synthetic data in its guidance on privacy-enhancing technologies, describing it as a way to provide realistic datasets where access to large real datasets is not possible. Treat it, as the ICO’s framing suggests, as one privacy-enhancing technique among several, not a status that removes data protection obligations by itself.

Practical privacy controls

  1. Minimise the source: generate from the fewest columns and records the job needs, and drop direct identifiers before training a generator.
  2. Suppress or cap rare categories and extreme values that make individuals stand out.
  3. Where the risk justifies it, use generators with formal privacy guarantees such as differential privacy, accepting some loss of fidelity.
  4. Run distance-to-closest-record checks and attempt re-identification or membership attacks against the output before release.
  5. Record the assessment, the parameters and the intended use, and restrict onward sharing to that use.

If your organisation operates under GDPR or UK GDPR, involve your data protection officer before the generator is trained, not after the dataset is produced. Training a generator on personal data is itself processing that needs a lawful basis.

How to decide whether synthetic data fits your project

A short decision process saves weeks. Work through these questions in order with your product, data and privacy leads.

Decision questions

  1. What is the job? Test, augment, share or replace. If you cannot name one, you are not ready to generate anything.
  2. What does the downstream system need to get right? If it is common cases, synthetic data can carry more weight. If it is rare, high-cost cases, real data must anchor training and evaluation.
  3. Is real data available under controls? If a secure environment with real data is feasible, synthetic data may only be needed for development and testing around it.
  4. What is the privacy threat model? Who will receive the data, what could they already know, and what harm would disclosure cause?
  5. How will utility be measured? Agree concrete acceptance metrics before generating, such as a model trained on synthetic data reaching a target fraction of the real-data model’s performance on a real hold-out set.
SituationRecommended approachWhy
Engineers need realistic data in dev and QARule-based generation, optionally seeded with distributions from productionLow risk, fully controllable, good code-path coverage
Model underperforms on a rare classTargeted augmentation of that class, real data for evaluationImproves coverage without replacing ground truth
Vendor or researcher needs analytical accessStatistical or privacy-preserving generator plus a disclosure assessment, or a secure enclaveBalances utility with formal risk review
Real data legally unavailable for trainingSynthetic training with a small, controlled real validation set; pilot before scaleReplacement is plausible only with real-world evidence
LLM feature needs an evaluation setLLM-generated cases reviewed and edited by domain experts, mixed with real anonymised examplesFast coverage, human review removes model bias

For example, a 40-person insurance broker building a claims-triage model might use rule-based synthetic claims for QA, augment rare claim types with a statistical generator, and evaluate only on access-controlled real historical claims.

Implementing synthetic data with proper checks

Treat a synthetic dataset like any other software artefact: versioned, tested and released with documentation. The steps below are the ones we follow on AI and data projects.

Step-by-step

  1. Write a one-page data specification. Job, source data, columns, intended consumers, prohibited uses, retention and owner.
  2. Prepare the source. Remove direct identifiers, minimise fields, and fix obvious quality problems first; a generator faithfully reproduces dirty data.
  3. Choose and configure the generator. Match the method to the data type and privacy requirement from the comparison above.
  4. Measure fidelity. Compare marginal distributions, pairwise correlations and key business ratios between real and synthetic data.
  5. Measure utility. Train on synthetic, test on real (“train synthetic, test real”) and compare with a model trained and tested on real data.
  6. Measure disclosure risk. Run nearest-record distance checks, look for copied or near-copied rows, and test membership inference on sensitive sets.
  7. Review and approve. A named data owner and the privacy lead sign off against the agreed thresholds.
  8. Version and label. Store the dataset with its generator version, parameters and source snapshot reference so it can be reproduced or withdrawn.
  9. Monitor in use. If a model trained with synthetic data goes live, monitor its real-world performance closely, with special attention to rare cases.

Synthetic data in software testing

For QA you need coverage of formats, boundaries and states rather than statistical fidelity: very long names, non-Latin scripts, missing optional fields, conflicting dates. Generate these by rule and keep them in the repository alongside the tests, removing a common reason teams copy production data into lower environments.

Costs, governance and a pre-release checklist

Synthetic data can save money through faster access and safer environments, not by avoiding work. Budget for:

  • Generator build or licensing: open-source libraries are free to use but need engineering time; commercial platforms add licence fees.
  • Validation effort: fidelity, utility and disclosure testing is often more work than generation itself.
  • Privacy review: data protection impact assessments and sign-off time.
  • Real-data access for evaluation: a secure environment and access controls for the hold-out set.

Governance essentials

Assign an owner for each synthetic dataset, record its lineage, and include it in the same data inventory as real datasets. Synthetic data that is shared externally should carry terms that restrict re-identification attempts and onward sharing. If you are building a broader AI programme, fold these rules into your general AI policies; our guide to AI governance policies before your first pilot covers the wider set, and a data strategy for AI explains where synthetic data sits alongside data quality and access decisions.

Pre-release checklist

  • The job (test, augment, share, replace) is written down and agreed.
  • Direct identifiers were removed from the source before generation.
  • Rare categories and extreme values were reviewed for disclosure risk.
  • Fidelity metrics meet the agreed thresholds.
  • Utility was measured on real hold-out data, not synthetic data.
  • Nearest-record and copy checks found no near-duplicates of real records.
  • The privacy lead or DPO has signed off, with the assessment stored.
  • The dataset is versioned with generator parameters and source reference.
  • Permitted uses and recipients are documented.
  • A plan exists to monitor any model trained on it once in production.

If you are also assessing how well an AI feature works before launch, pair this checklist with a proper evaluation set; our article on building a test set for enterprise knowledge search shows how to combine curated real examples with generated cases.

Frequently asked questions

Can we train a production model entirely on synthetic data?

Sometimes, but only with evidence. Train on synthetic data, then evaluate on a held-out set of real, representative records. If performance on real data meets your acceptance threshold and rare cases are covered, replacement may be justified. Without real-data evaluation, you cannot know.

Does synthetic data fall outside GDPR?

Not automatically. If the synthetic dataset still allows individuals to be identified, directly or by inference, it can remain personal data. Training the generator on personal data is also processing. A documented privacy assessment, as recommended by the EDPS, is the way to support a claim that the output is not personal data.

Can we use an LLM to generate our test and evaluation data?

Yes, it is a fast way to build broad test sets, especially for chatbots and document workflows. Have domain experts review and edit the output, mix it with real anonymised examples, and avoid putting personal data into prompts sent to external model providers unless your contracts and controls allow it.

How do we know the synthetic data is good enough?

Agree metrics before generating: distribution and correlation comparisons for fidelity, train-synthetic-test-real results for utility, and nearest-record and membership tests for privacy. If those thresholds are met, the data is fit for its stated job; if the job changes, re-test.

Will PoliteTech need access to our real data to build synthetic data?

Not necessarily. As part of our AI and data services, for test environments we can generate data from your schemas and business rules alone. For statistical or model-based generation, the generator needs controlled access to source data, which can stay in your own cloud environment under your access policies.

Sources and methodology

Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.

  1. European Data Protection Supervisor: TechSonar, Synthetic data — accessed 9 November 2026. Definition and types of synthetic data, benefits for ML and testing, re-identification risk, outlier coverage limits, bias trade-offs and the need for privacy assurance assessments.
  2. NIST SP 800-188: De-Identifying Government Datasets: Techniques and Governance (September 2023) — accessed 9 November 2026. Synthetic data as one data-sharing model, risk assessment before choosing a model, disclosure review boards and the limits of masking tools.
  3. Shumailov et al.: The Curse of Recursion: Training on Generated Data Makes Models Forget (arXiv, 2023, revised 2024) — accessed 9 November 2026. Model collapse: loss of distribution tails when models are trained recursively on generated data.
  4. UK ICO: Privacy-enhancing technologies, what PETs are there? — accessed 9 November 2026. Synthetic data positioned as one privacy-enhancing technique for providing realistic datasets where real data cannot be accessed.

Need realistic test or training data without exposing real records?

We can help you decide where synthetic data fits, build generators and validation checks, and keep sensitive source data inside your own environment.