Valid Inference with Imperfect Synthetic Data

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

Introduction

In fields like computational social science, high-quality human-annotated data is the "gold standard" but is incredibly expensive and slow to collect. Researchers are increasingly turning to Large Language Models (LLMs) to fill the gap. While prior technical work has mainly explored the potential to use model-predicted labels for unlabeled data in a principled manner, there is increasing interest in using LLMs to generate entirely new synthetic samples (e.g., synthetic simulations), such as in responses to surveys.

The challenge is that LLMs are biased and "imperfect." Naively mixing synthetic data with real data biases statistical conclusions toward the LLM’s internal quirks rather than reality. This paper introduces a new statistical framework based on the Generalized Method of Moments (GMM) that allows researchers to combine small amounts of human-labeled data with large amounts of imperfect LLM-generated synthetic data. The result is a hyperparameter-free estimator that significantly reduces error and saves up to 50% of human annotation costs while maintaining rigorous statistical validity.

Methodology: The GMM-Synth Framework

The authors propose a framework called GMM-Synth to address the challenge of valid inference with synthetic data. The core components of their approach include:

  1. Conditioned Synthetic Sampling: Instead of asking an LLM to generate independent samples from scratch, the method generates synthetic samples conditioned on individual real samples. This creates a paired correlation structure between real and synthetic data that the estimator can exploit.
  2. Generalized Method of Moments (GMM): The problem is treated as a system of moment conditions, setting up equations where the expected value of the data's residuals (errors) should be zero.
  3. Two-Step Estimator:
    • Step 1: Estimate the parameters for real and synthetic data independently.
  4. Step 2: Use an optimal weighting matrix that calculates the cross-correlation between the real-data errors and the synthetic-data errors.

If the LLM’s errors are predictive of real-world patterns, the GMM automatically gives the synthetic data more weight to shrink the variance of the final estimate. If the synthetic data is uninformative, the mathematics ensure the estimator ignores it, reverting to the performance of the human-only data.

Experimental Setup

The researchers evaluated their method on four distinct computational social science tasks using models like GPT-4o, Llama-3-8b, and Qwen-3-8b:

  • Politeness (1pp): Predicting perceived politeness based on the use of first-person plural pronouns.
  • Politeness (Hedging): Predicting politeness based on hedging markers.
  • Stance Detection: Analyzing news headlines about climate change to determine if they support or reject the idea that global warming is a serious concern.
  • Congressional Bills: Using a legislator’s ideology score to predict whether a bill relates to the macroeconomy.

Key Findings and Results

The empirical results demonstrate that synthetic data does not need to be a perfect replica of reality to be useful; its residuals just need to be correlated with real-world residuals.

Empirical MSE reduction using GMM-Synth
  • Massive Error Reduction: GMM-Synth achieved over a 50% reduction in Mean Squared Error (MSE) in low-data regimes compared to using human data alone. It consistently outperformed existing state-of-the-art debiasing methods like PPI++ and RePPI, largely because it does not require complex hyperparameter tuning.
  • Effective Sample Size: The method effectively multiplies the value of human labor. For instance, a small number of human labels combined with synthetic data provided the same accuracy as a much larger set of human-only labels.
Coverage validity of GMM-Synth
  • Valid Coverage: Unlike naive methods that might produce overly confident but incorrect answers, GMM-Synth maintained valid 95% confidence intervals, ensuring that the true parameter was reliably captured within the predicted range.
  • The "No-Harm" Guarantee: Because of the GMM's properties, the estimator is asymptotically "no worse" than using human data alone, providing a safety net against LLM hallucinations.

Limitations and Future Work

While powerful, the theoretical guarantees of GMM-Synth are asymptotic. In extremely low-data regimes (e.g., fewer than 20 human samples), confidence intervals might still exhibit slight undercoverage. Furthermore, the benefits are directly tied to the generative quality and correlation of the LLM; if the model is exceptionally poor, the method will not hurt the estimate, but it also will not help much. Future directions include extending this framework to more complex data types beyond text and exploring the integration of multiple LLMs into a single GMM framework.

Summary updated

BibTeX
@inproceedings{byun2025valid,
  author = {Yewon Byun and Shantanu Gupta and Zachary Chase 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