Llm simulations reduce costs and sample sizes in hypothesis testing

Augmented Hypothesis Testing with Persona-Based LLM Simulations

Machine LearningArtificial Intelligence

Summary

Testing whether changes really work, like in A/B tests, usually takes a lot of time and many test subjects. The authors propose a new way to use predictions from AI models, even when those predictions aren’t perfectly accurate, to cut down on how many tests you need while still being confident in the results. They created special math tools that work with both broad predictions about groups and detailed predictions about individuals. They checked their methods using AI agents that simulate different user types and found significant savings in time and cost without losing reliability.

What this means in practice

  • For product data teams: Cut experimental sample sizes and reduce testing costs by integrating AI-generated user behavior predictions into A/B tests.
  • For marketing analysts: Use persona-based LLM simulations to improve speed and confidence in campaign impact evaluations with fewer customer interactions.

Authors

Ziyad Benomar, Aymen Al Marjani, Paul Missault, Saab Mansour

Abstract

A/B testing requires large sample sizes, long timelines, and significant costs. When auxiliary predictions of experimental outcomes are available from machine learning models, uncertain prediction quality precludes replacing human experiments entirely, yet these predictions may still contain useful signal. We propose a principled framework for learning-augmented hypothesis testing that leverages predictions of unknown quality to reduce sample sizes while maintaining statistical validity. Predictions naturally vary in granularity, from coarse aggregate signals to fine-grained individual-level estimates, and our framework addresses both ends of this spectrum: (1) for population-level directional predictions, where only a binary signal on the treatment effect sign is available, we use an asymmetric test and prove consistency and robustness bounds within the learning-augmented algorithms paradigm; (2) for individual-level predictions, we introduce Generalized PPI++ (GPPI), extending Prediction-Powered Inference to handle nonlinear prediction errors through higher-dimensional transformations. Both methods benefit from accurate predictions while remaining robust to inaccurate or adversarial ones. We validate our framework using persona-based LLM simulations, where AI agents equipped with user personas predict individual behavior, as a natural prediction source spanning both granularity levels. Experiments on four real-world datasets demonstrate that our methods, combined with persona-based predictions, substantially reduce experimental costs while preserving rigorous statistical validity.