Valid Inference with Imperfect Synthetic Data

Yewon Byun, Shantanu Gupta, Zachary C. Lipton, Rachel Leah Childers, Bryan Wilder

TL;DR

Using Large Language Models (LLMs) to generate synthetic data can help rescue data-scarce research, but naively mixing it with real data introduces severe statistical bias. This paper introduces GMM-Synth, a hyperparameter-free framework based on the Generalized Method of Moments that safely integrates imperfect synthetic data with human-annotated data. It guarantees statistically valid inference (consistency and proper coverage) while dramatically reducing variance and saving up to 50% in human annotation costs.

What Problem Does This Paper Address?

Researchers, particularly in computational social science and human subjects research, are increasingly turning to LLMs to augment small datasets. While prior work focused on using LLMs to label existing unlabeled data (proxy data), there is a growing push to use LLMs to generate entirely new synthetic samples (e.g., simulating human survey responses).

The catch? Synthetic data is rarely a perfect match for the true underlying distribution. Naively pooling synthetic data with a small set of human-annotated data leads to heavily biased estimates, ruining the statistical validity (confidence intervals and hypothesis testing) of downstream conclusions. Existing debiasing methods like Prediction-Powered Inference (PPI++) require tuning hyperparameters via complex cross-fitting techniques, which frequently fail or underperform when human labels are extremely scarce.

Methods

The authors propose a two-part solution:

  1. Conditional In-Context Generation: Instead of drawing completely random samples from an LLM, they generate each synthetic text conditioned on an individual real text sample. This introduces a known correlation structure between the real and synthetic data points.
  2. GMM-Synth Estimator: They leverage the Generalized Method of Moments (GMM) framework. They construct an augmented set of moment conditions that stack the original real-data moments alongside auxiliary moments for both the proxy data and the newly generated synthetic data.

By using a standard two-step GMM estimator, the optimal weighting matrix automatically learns the cross-correlations between the real and synthetic data residuals. If the synthetic data is highly predictive of the real data, it drastically shrinks the variance of the target parameter.

Datasets

The method was evaluated on four computational social science tasks using GPT-4o, Llama-3-8b, and Qwen-3-8b to generate proxy and synthetic data:

  • Politeness (1pp): Stack Exchange and Wikipedia requests, estimating how first-person plural pronouns affect perceived politeness.
  • Politeness (Hedging): The same dataset, estimating the effect of hedging markers (expressions of uncertainty).
  • Stance: Climate-related news headlines, estimating the effect of affirming linguistic devices on media stance toward global warming.
  • Congressional Bills: U.S. congressional bill texts, estimating the effect of a legislator's ideology score (DW-NOMINATE) on whether a bill relates to the economy.

Key Insights and Ideas

  • The Power of Residual Correlation: GMM-Synth doesn't require the synthetic data distribution to perfectly match the real distribution. It only requires that the errors (residuals) of the synthetic data are predictive of the real data errors.
  • The "No-Harm" Guarantee: Asymptotically, including synthetic data is a win-win. In the worst-case scenario where the LLM produces completely uninformative data, the estimator's variance simply reduces to the human-only baseline. It won't degrade your inference.
  • Hyperparameter-Free: Unlike PPI++ variants that rely on a tuning parameter ($\alpha$) to balance real and synthetic data (requiring data-splitting and cross-fitting), GMM automatically finds the mathematically optimal weighting in its second step.

Key Results

  • Massive MSE Reductions: GMM-Synth consistently achieved the lowest Mean Squared Error (MSE) across all 8 downstream tasks (4 datasets $\times$ logistic/OLS regressions), outperforming human-only baselines and PPI++ variants, especially in ultra-low-label regimes.
  • Annotation Savings: The method improved the effective sample size by over 50% in data-limited settings, meaning researchers can achieve the same statistical precision with half the human labels.
  • Valid Coverage: Crucially, the tighter confidence intervals did not come at the cost of statistical validity; GMM-Synth maintained proper asymptotic coverage (~95%) across the board.
Figure 1: Main Results (Logistic regression). We observe large reductions in MSE, especially in very low-label regimes. Each row corresponds to a task (i.e., 1pp, Hedging, Stance, Congressional Bills Data (from top to bottom)); each column corresponds to a metric (i.e., MSE, coverage, confidence interval width (from left to right)). Note that we report the PPI++Synth oracle number for PPI++Synth (see Figure 8 for PPI++Synth with cross-fitting results). When the best performing PPI++Synth is equivalent to PPI++Proxy (i.e., α = 1), we report the second-best performing PPI++Synth method. See Figure 6 in Appendix F for full grid-search results over different α values. Results are averaged over 200 trials.

Limitations and Future Work

  • Asymptotic Reliance: The theoretical guarantees (valid coverage and consistency) are asymptotic. In extremely low-data regimes (e.g., very few human samples), the estimator might suffer from undercoverage.
  • Dependence on LLM Quality: While bad synthetic data won't hurt asymptotically, it won't help either. The efficiency gains are directly tied to how well the generative model's residuals correlate with real-world data.
  • Future Directions: The authors suggest extending this framework to handle multiple different generative models simultaneously or exploring non-linear downstream models beyond Generalized Linear Models (GLMs).

Summary updated

BibTeX
@inproceedings{byun2025valid,
  author = {Yewon Byun and Shantanu Gupta and Zachary C. Lipton and Rachel Leah Childers and Bryan Wilder},
  title = {{Valid Inference with Imperfect Synthetic Data}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=nG0URHBvFW},
}
Figure