Efficient Randomized Experiments Using Foundation Models

Piersilvio De Bartolomeis, Javier Abad, Guanbo Wang, Konstantin Donhauser, Raymond M Duch, Fanny Yang, Issa Dahabreh

Introduction

Randomized Controlled Trials (RCTs) are the gold standard for scientific discovery, providing the most reliable evidence for causal relationships in medicine, social science, and policy. However, RCTs are often prohibitively expensive and slow. A common failure mode for clinical and social trials is the inability to recruit enough participants to achieve sufficient "statistical power"—the probability of detecting a true effect against background noise.

Recent advancements in Large Language Models (LLMs) have suggested a potential solution: "in silico" experiments, where foundation models (FMs) simulate human responses to interventions. While these simulations are cost-effective, they introduce significant risks. If an AI model is biased or fails to capture the nuances of a specific population, the resulting scientific conclusions may be invalid. This research addresses a critical question: How can we leverage the predictive power of AI to make experiments more efficient without compromising the mathematical integrity of the results?

The H-AIPW Framework

The authors introduce Hybrid Augmented Inverse Probability Weighting (H-AIPW), a novel statistical meta-estimator designed to integrate foundation model predictions into the analysis of randomized experiments. H-AIPW builds upon the standard Augmented Inverse Probability Weighting (AIPW) framework through several key technical innovations:

Ensemble Integration

Rather than relying on a single AI model, H-AIPW combines a standard estimator (trained exclusively on the experimental data) with multiple "candidate" estimators. Each candidate is powered by a different foundation model, such as GPT-4o, LLaMA 3, or Claude 3.5. This ensemble approach allows the framework to draw from diverse "perspectives" or predictive strengths.

Optimal Weighting and the Safety Guarantee

The method calculates a weighted average of these estimators, where weights are mathematically optimized to minimize the overall variance (uncertainty) of the final treatment effect estimate. Crucially, because the standard data-only estimator is included in the ensemble, H-AIPW is asymptotically safe. This means that even if every foundation model provides wildly inaccurate or biased predictions, the final result will be no less accurate or precise than the standard statistical approaches used today. The experimental data effectively acts as a "check" on the AI's work.

LLM Personas

To generate predictions, the authors utilize participant demographics to construct "personas" within the LLM's system prompts. The models are tasked with predicting how a specific participant would respond to a given treatment, effectively acting as a sophisticated source of prior knowledge.

Experimental Setup

The H-AIPW framework was evaluated across eight real-world randomized experiments sourced from the Time-Sharing Experiments in the Social Sciences (TESS) repository. These studies covered a broad range of disciplines, including:

  • Economics & Sociology: Beliefs regarding racial discrimination and the impact of income on social evaluations.
  • Political Science: Perceptions of "cancel culture" and free speech.
  • Psychology & Foreign Policy: Identity management and fears surrounding terrorism.

The researchers employed a diverse array of LLMs for the in silico predictions, including GPT-4o, Claude 3.5 Haiku, LLaMA 3 (8B and 70B), Gemini 1.5 Flash, and DeepSeek-V3.

Key Results and Insights

Efficiency Gains

H-AIPW demonstrated significant improvements in experimental efficiency. Across the eight studies, the method reduced the variance of the estimates by 5% to 11% compared to standard AIPW. Most notably, H-AIPW achieved the same statistical precision as standard methods while requiring up to 20% fewer human participants.

Scaling Laws and Compute

The research identified a direct correlation between AI performance and experimental precision. Larger models, such as LLaMA 3 70B, exhibited lower Mean Squared Error (MSE) in their predictions, which translated into narrower confidence intervals for the human experiment. Furthermore, increasing "inference-time compute"—by averaging predictions from multiple slightly different prompts—consistently improved LLM accuracy and, by extension, the efficiency of the statistical estimator.

Cross-Modality

In studies involving image-based treatments, multi-modal models like GPT-4o provided useful signals where text-only models failed. This suggests that H-AIPW can leverage the evolving capabilities of multi-modal AI to enhance a wide variety of experimental designs.

Discussion and Limitations

While H-AIPW offers a robust path forward for AI-augmented science, it is not without limitations. The authors note a "No Free Lunch" theorem for small samples: if the human sample size is extremely small (e.g., $n=50$), the mathematical estimation of optimal weights can become unstable, potentially leading to overconfidence.

Additionally, the gains provided by H-AIPW are dependent on domain alignment. If a foundation model lacks predictive signal for a specific medical or social phenomenon, the framework will not provide an efficiency benefit, though its safety guarantee ensures it will not degrade the quality of the inference. Future work will focus on fine-tuning LLM prompts for specific contexts and extending the framework to more complex experimental designs beyond simple A/B testing.

Summary updated

BibTeX
@inproceedings{bartolomeis2025efficient,
  author = {Piersilvio De Bartolomeis and Javier Abad and Guanbo Wang and Konstantin Donhauser and Raymond M Duch and Fanny Yang and Issa Dahabreh},
  title = {{Efficient Randomized Experiments Using Foundation Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=WGYEOAB0Rk},
}
Figure