Train on Synthetic, Test on Real (TSTR) is an evaluation protocol that measures the utility of a synthetic dataset by training a predictive model on it and then testing that model's performance on a held-out set of real data. The core hypothesis is that if a model trained on synthetic data performs nearly as well on real data as a model trained directly on real data, the synthetic data has successfully captured the essential statistical patterns and relationships of the original dataset. This protocol is a direct, task-oriented alternative to purely statistical similarity metrics.
Glossary
Train on Synthetic, Test on Real (TSTR)

What is Train on Synthetic, Test on Real (TSTR)?
A core methodology for assessing the utility of synthetically generated tabular data for downstream machine learning tasks.
The TSTR protocol is considered the gold standard for utility evaluation in synthetic data generation because it directly answers the practitioner's key question: "Can I use this synthetic data to build a model that works in the real world?" A successful TSTR result indicates the synthetic data preserves the machine learning signal necessary for the target task, such as classification or regression. It is often contrasted with the Train on Real, Test on Real (TRTR) baseline, which establishes the performance ceiling using the original data.
Key Characteristics of TSTR
Train on Synthetic, Test on Real (TSTR) is the primary evaluation protocol for assessing the utility of synthetic tabular data. It measures how well a model trained on artificial data performs on a held-out set of real-world data.
Core Protocol & Purpose
The TSTR protocol is a direct, task-oriented evaluation method. Its primary purpose is to answer a critical question: Can a model trained on synthetic data solve real-world problems as effectively as one trained on real data?
- Procedure: A machine learning model (e.g., a classifier or regressor) is trained exclusively on the synthetic dataset. Its performance is then evaluated on a completely separate, unseen test set composed of real data.
- Objective: To quantify the downstream utility and statistical fidelity of the synthetic data. High TSTR performance indicates the synthetic data has preserved the predictive relationships necessary for the target task.
Comparison to TRTR
TSTR is almost always benchmarked against the Train on Real, Test on Real (TRTR) baseline, which represents the performance ceiling using the original data.
- TRTR Baseline: A model is trained on a subset of the real data and tested on the held-out real test set. This establishes the optimal achievable performance.
- Interpretation Gap: The performance difference between TRTR and TSTR scores reveals the utility gap. A small gap indicates high-fidelity synthesis.
- Critical Insight: A synthetic dataset achieving perfect statistical similarity scores might still fail the TSTR test if it hasn't captured subtle, task-relevant correlations, making TSTR a more pragmatic metric than distribution distance alone.
Primary Use Cases & Applications
TSTR evaluation is essential in scenarios where synthetic data is intended for direct model training.
- Privacy-Preserving ML: Validating that synthetic data generated under differential privacy constraints retains utility for building accurate models.
- Data Augmentation for Imbalanced Classes: Assessing whether synthetic oversampling techniques (e.g., SMOTE, CTGAN) improve model performance on minority classes without degrading overall accuracy.
- Pre-training and Domain Adaptation: Evaluating if synthetic data can effectively pre-train a model before fine-tuning on limited real data, reducing data acquisition costs.
- Benchmarking Generative Models: Providing a concrete, application-driven metric to compare different tabular generative models (e.g., TVAE vs. TabDDPM).
Key Evaluation Metrics
The choice of metric in a TSTR evaluation is dictated by the downstream machine learning task.
- Classification Tasks: Use Accuracy, F1-Score, Precision-Recall AUC, or ROC-AUC.
- Regression Tasks: Use Mean Absolute Error (MAE), Root Mean Squared Error (RMSE), or R-squared.
- Statistical Comparison: The TSTR metric is reported alongside the TRTR baseline. The relative percentage drop (e.g., "TSTR accuracy within 2% of TRTR") is a common summary.
- Multi-Metric Analysis: It's often necessary to evaluate performance across different data subgroups (e.g., per-class accuracy) to ensure the synthetic data hasn't introduced or amplified biases.
Limitations and Considerations
While crucial, TSTR has limitations that must be accounted for in a robust evaluation framework.
- Task Dependency: TSTR results are specific to the model architecture and task used for evaluation. A dataset that performs well for a logistic regression task may fail for a gradient boosting model.
- Does Not Guarantee Privacy: A successful TSTR outcome measures utility, not privacy. A synthetic dataset must be separately evaluated for privacy leakage using metrics like membership inference attack resilience.
- Held-Out Real Data Requirement: The protocol requires a reserved set of real data, which can be problematic when real data is extremely scarce.
- May Miss Multi-Task Utility: A single task evaluation might not capture all relational properties needed for other unforeseen downstream uses.
Complementary Evaluation Methods
TSTR should be part of a comprehensive validation suite, not used in isolation.
- Train on Synthetic, Test on Synthetic (TSTS): A sanity check to ensure a model can learn from the synthetic data itself.
- Statistical Fidelity Tests: Measures like Wasserstein Distance, Kolmogorov-Smirnov tests, and correlation matrix similarity assess low-order moment matching.
- Discriminative Evaluation: Training a model to distinguish between real and synthetic samples (e.g., using a post-hoc classifier). A high classification accuracy indicates the synthetic data is easily distinguishable, suggesting poor fidelity.
- Privacy Audits: Conducting membership inference or attribute inference attacks on the synthetic data to quantify privacy risk.
A robust synthetic data pipeline will report TSTR alongside these other metrics to provide a complete picture of quality, utility, and safety.
How the TSTR Protocol Works
Train on Synthetic, Test on Real (TSTR) is the primary quantitative protocol for assessing the utility of generated tabular data in downstream machine learning tasks.
Train on Synthetic, Test on Real (TSTR) is an evaluation protocol where a predictive model is trained exclusively on a synthetically generated dataset, and its performance is then measured on a held-out set of real, unseen data. This direct comparison quantifies how well the statistical fidelity and machine learning utility of the synthetic data preserve the actionable patterns of the original dataset. A successful TSTR evaluation shows that models trained on synthetic data generalize effectively to real-world scenarios, validating the synthetic data's quality for tasks like classification or regression.
The protocol's strength lies in its task-oriented realism, directly measuring the synthetic data's value for actual model development. It contrasts with the Train on Real, Test on Real (TRTR) baseline and the less common Train on Synthetic, Test on Synthetic (TSTS) variant. Key metrics include accuracy, F1-score, or AUC-ROC, with performance close to the TRTR baseline indicating high utility. TSTR is essential for proving synthetic data can overcome data scarcity, privacy constraints, and class imbalance without compromising model efficacy.
TSTR vs. Other Evaluation Methods
A comparison of evaluation protocols for assessing the utility and fidelity of synthetic tabular data.
| Evaluation Protocol | Core Objective | Data Usage | Primary Metric | Key Limitation |
|---|---|---|---|---|
Train on Synthetic, Test on Real (TSTR) | Measure downstream task utility | Train: Synthetic, Test: Held-out Real | Task Performance (e.g., F1, AUC) | Requires a labeled real test set |
Train on Real, Test on Real (TRTR) - Baseline | Establish real data performance ceiling | Train: Real, Test: Held-out Real | Task Performance (e.g., F1, AUC) | Does not evaluate synthetic data |
Train on Synthetic, Test on Synthetic (TSTS) | Assess internal consistency of synthetic data | Train: Synthetic, Test: Synthetic | Task Performance (e.g., F1, AUC) | Does not measure real-world generalization |
Statistical Similarity Tests | Measure distributional fidelity | Full Synthetic vs. Full Real | Wasserstein Distance, KS Test | May not correlate with model utility |
Discriminator-based Evaluation | Assess indistinguishability | Mixed Synthetic & Real | Discriminator Accuracy | Adversarial training can be unstable |
Privacy Attack Evaluation | Measure privacy leakage risk | Synthetic & Real (Attacker Access) | Attack Success Rate (e.g., MIA) | Evaluates risk, not utility |
Frequently Asked Questions
The Train on Synthetic, Test on Real (TSTR) protocol is the definitive benchmark for evaluating the utility of generated tabular data. These questions address its core mechanics, applications, and how it compares to other validation methods.
Train on Synthetic, Test on Real (TSTR) is an evaluation protocol that measures the utility of a synthetic dataset by training a downstream machine learning model on the generated data and then assessing its performance on a held-out set of real data.
This methodology directly answers the primary question for data scientists: "If I use this synthetic data to build a model, will it perform well on real-world tasks?" The core metric is the performance gap between a model trained on synthetic data and a baseline model trained directly on the real training set. A small gap indicates high-fidelity synthetic data that has preserved the statistical patterns necessary for the target task. TSTR is the gold standard for utility assessment because it evaluates the synthetic data through the lens of its intended use case, such as classification accuracy or regression error, rather than abstract statistical similarity.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Key concepts and methodologies for assessing the quality, utility, and privacy of generated tabular datasets.
Synthetic Data Utility
Synthetic data utility quantifies how well a generated dataset preserves the statistical properties and machine learning task performance of the original, real data it is intended to replace or augment. It is the core objective measured by the TSTR protocol.
- Primary Metrics: Performance parity (e.g., accuracy, F1-score) of a downstream model trained on synthetic vs. real data.
- Statistical Fidelity: Preservation of marginal distributions, correlations, and higher-order joint distributions.
- Task-Agnostic vs. Task-Specific: Utility can be measured generally (e.g., using statistical distances) or for a specific predictive task (e.g., classification).
Wasserstein Distance
The Wasserstein Distance, or Earth Mover's Distance, is a metric from optimal transport theory used to compare two probability distributions. It is a fundamental tool for evaluating the statistical fidelity of synthetic tabular data.
- Intuition: Measures the minimum "cost" of transforming the synthetic data distribution into the real data distribution.
- Advantages: Overcomes limitations of metrics like Jensen-Shannon divergence by providing a meaningful distance even for distributions with non-overlapping support.
- Application in TSTR: A low Wasserstein distance between synthetic and real training set distributions is a strong indicator that TSTR performance will be high.
Differential Privacy for Tabular Data
Differential Privacy (DP) is a rigorous mathematical framework that provides a strong, quantifiable privacy guarantee for data synthesis algorithms. When applied to tabular data generation, it ensures the inclusion or exclusion of any single individual's record has a negligible statistical effect on the synthetic output.
- Privacy-Utility Trade-off: A core challenge is balancing the ε (epsilon) privacy budget with the utility of the generated data, as measured by TSTR.
- Mechanisms: DP is typically enforced by injecting calibrated noise during the training of the generative model (e.g., in gradient updates) or into the learned parameters of a statistical model (e.g., a Bayesian network).
- Formal Guarantee: Provides resilience against membership inference and reconstruction attacks on the synthetic data.
PrivBayes
PrivBayes is a canonical differentially private algorithm for synthesizing high-dimensional tabular data. It uses a Bayesian network to model the joint distribution of the dataset and injects calibrated Laplace noise into the learned conditional probability parameters before sampling synthetic records.
- Workflow: 1) Select a differentially private Bayesian network structure. 2) Learn noisy conditional distributions. 3) Sample synthetic data from the noisy model.
- Strength: Provides a provable DP guarantee while attempting to preserve complex attribute correlations.
- TSTR Context: Serves as a benchmark for evaluating the privacy-utility frontier; TSTR performance on PrivBayes-generated data demonstrates the cost of strong formal privacy.
Fairness-Aware Synthesis
Fairness-aware synthesis is the generation of tabular data with the explicit goal of mitigating biases present in the original dataset. It extends beyond statistical fidelity to enforce ethical constraints in the synthetic output.
- Objective: Generate data where protected attributes (e.g., race, gender) are statistically independent of other features or model outcomes, or where historical disparities are corrected.
- Techniques: Can involve pre-processing (debiasing the real data before synthesis), in-processing (adding fairness constraints to the generative model's loss), or post-processing (transforming the synthetic data).
- TSTR Role: The ultimate test of a fairness-aware generator is whether a model trained on its synthetic data (TSTR) makes fairer predictions on real-world holdout data than a model trained on the original, biased data.
Synthetic Data Validation
Synthetic data validation is the comprehensive process of assessing the quality, fidelity, and privacy of a generated dataset. TSTR is a critical component of this process, focusing on downstream utility.
- Validation Pillars:
- Fidelity: Do synthetic records look real? (e.g., visualization, summary statistics).
- Utility: Can the data be used for its intended task? (TSTR is the gold standard here).
- Privacy: Does the data leak information about real individuals? (e.g., membership inference tests).
- Diversity: Does it cover the full distribution, including edge cases?
- Automation: In MLOps pipelines, this validation is often automated with predefined statistical tests and performance thresholds.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us