Research
Can AI Agents Simulate A/B Test Outcomes? A Validation Framework for Agentic Experimentation
Overview Research area: Natural Language Processing / computational social science, at the intersection of large language model agents, causal inference, and online controlled experimentation (A/B tes
- arXiv
- 2608.02345
- Published
- 2026-08-03
- Authors
- Stefan Hut, Lorenzo Masoero
AI summary
Overview
Research area: Natural Language Processing / computational social science, at the intersection of large language model agents, causal inference, and online controlled experimentation (A/B testing).
Technical level: Intermediate. The paper is written accessibly, but it uses potential-outcomes formalism (average treatment effect, personas, counterfactuals), a two-layer error decomposition, and a survey-sampling variance result (Neyman allocation), so some statistical background helps.
Scope in one sentence: The paper formalizes AI-agent simulation of A/B tests as a "Simulated Randomized Controlled Trial" (S-RCT), validates it on 67 historical marketing experiments, and documents both the accuracy gains from calibration and within-subject designs and the systematic magnitude gap that remains.
What This Paper Is About
Running an A/B test consumes real traffic, engineering effort, and weeks of wall-clock time, and it exposes customers to treatments that may not work. The authors ask whether AI agents, conditioned on a behavioral profile plus a description of the intervention, can simulate experiment outcomes well enough to screen candidate treatments before live traffic is committed. Their goal is less to claim the simulation works than to build a validation framework that shows precisely where it fails, and to propose targeted fixes for each failure layer.
Key Contributions
- Formalizing agentic A/B prediction as an S-RCT. The paper defines the setup in which a simulator replaces live traffic: given a persona (who the user is), a context (what the user experiences), and a task (what decision the user makes), the simulator produces a simulated outcome, and the estimator is the difference in simulated means over simulated agents.
- A two-layer error decomposition. Total S-RCT error is split into an approximation error term (the gap between the simulator's population-level prediction and the true ATE) and a subsampling error term (the finite-sample gap from running only a limited number of agents). The paper argues these two layers are independently addressable.
- Validation on 67 historical marketing A/B tests from a large e-commerce service, documenting accuracy metrics, the systematic overshoot of effect magnitudes, and the limits of directional metrics.
- Three improvement techniques targeting each error layer: principled (Neyman-style) subsampling, a two-phase pre-period calibration protocol, and a within-subject design in which each agent sees both arms.
Main Findings
- The uncalibrated simulator overshoots effect magnitudes. With a within-subject design and 1,000 agents, agentic impact estimates are systematically larger in magnitude than historical ATEs, with MAE 0.0893 (SE 0.0178) — several times the median historical percent impact.
- Directional agreement looks good but is not clear evidence of signal. The simulator reaches sign accuracy 0.70 (SE 0.06) and sign overlap 0.70 (SE 0.03), agreeing with the historical sign for roughly 70% of tests. The authors frame this against baselines: the sign-replication rate — the chance that two independent repetitions of the same experiment agree in sign — is 0.69, an upper bound for any forecast no more informative than an independent rerun, while uninformed rules reach 0.50 (coin flip) and 0.57 (always predict positive). For sign overlap, an uninformative agent drawing posteriors uniformly scores 0.66 and a constant-0.5 agent scores 0.75; the simulator's 0.70 falls below the 0.75 that a no-conviction forecast attains.
- Launch alignment is near its random floor. Baseline launch alignment is 0.41 against a random floor of 0.33, driven by the magnitude gap pushing agentic posterior probabilities to extremes.
- Two-phase calibration compresses magnitude error by roughly 77×. On 16 experiments from the benchmark using Platt scaling, the calibration protocol reduces the squared prediction error (after removing irreducible measurement noise) by approximately 77 times, moving estimates close to the historical noise floor.
- Within-subject designs shrink standard errors by about 2.4×. Exposing every agent to both arms eliminates between-agent composition differences; standard errors fall by roughly 2.4 times on average, sign accuracy rises from 65% (between-subject) to 0.70 (within-subject), and launch alignment improves from 0.33 to 0.41.
- A behavioral amplification effect is visible. The authors describe current general-purpose foundation models as exhibiting "behavioral amplification": when conditioned on a persona and asked to choose, they respond more decisively to treatment differences than real customers do in low-stakes product contexts.
- Smart subsampling pays off only for high-variance metrics. Under Neyman allocation, the variance ratio between uniform and optimal allocation depends on how heterogeneous stratum variances are. For binary outcomes with low base rates like the CTR benchmark, within-stratum standard deviations are compressed near the square root of p, limiting the gain to a few percent; for continuous metrics such as revenue, where high-value segments can have 10–100 times the variance of low-value segments, the gain reaches 2–5 times.
- Baseline metrics overall: corrected MSE 0.0222 (SE 0.0108), sign overlap 0.70 (SE 0.03), sign overlap with bias correction 0.80 (SE 0.03), launch alignment 0.41 (SE 0.06), MAE 0.0893 (SE 0.0178), sign accuracy 0.70 (SE 0.06).
Methodology in Plain English
The researchers start from the observation that a real A/B test is a randomized trial on live users, and imagine swapping those users for AI agents. Each agent is given a behavioral profile — the paper calls this a persona — and a description of what it experiences under control versus treatment, then asked to make the same decision a customer would make (for example, whether to click a banner).
The framework is explicitly engine-agnostic: the simulator could be a rule-based model, a learned behavioral surrogate, or a foundation model. For the experiments here, the authors use an internal simulation platform driven by a general-purpose foundation model, prompted with the customer's behavioral profile, with no hyperparameter tuning. Agents are built by one-to-one "agentic-twin" pairing — each agent is bound to a specific real customer who actually participated in the historical experiment — which lets the authors analyze errors at the individual level. Because the simulator is a stateless function, each agent can also be queried under both treatment and control, and repeatedly, producing paired individual treatment effects that have no analogue in a real experiment.
They validate on 67 historical marketing creative tests on a high-traffic e-commerce product surface, all measuring click-through rate. Baseline simulations use 1,000 agents per experiment in a within-subject design, with agents chosen uniformly at random from the triggered population. The benchmark contains a roughly even split of historically launch, harmful, and inconclusive decisions.
For the calibration protocol: in Phase 1, the simulator is run on the pre-period with the pre-period outcome held out of the feature set and both arms rendering the control context (an A/A simulation with zero effect by construction). Because the real pre-period outcome is known, a calibration function — Platt scaling, fit with log-loss — can be learned to map raw simulated outcomes to real ones. In Phase 2, the simulator runs with full features and real treatment assignment, and its raw outputs are passed through the learned calibration function. The train/test split is temporal (pre-period versus treatment period), and the calibration function is fit independently per experiment.
For variance reduction, the authors propose stratifying by subpopulation and allocating agents proportionally to each stratum's population share times its within-stratum standard deviation, a classical result from survey sampling.
Why This Matters
Impact on research. Prior agentic A/B simulation work — the paper cites AgentA/B, PAARS, and S-Researcher — reports aggregate alignment but no explicit decomposition of estimation error into separately controllable components, which makes error hard to diagnose or reduce. This paper supplies that decomposition, plus a benchmark and metric suite (corrected MSE, sign overlap, launch alignment) that includes the uninformed floors against which directional claims should be judged. The honest reporting of failure modes is itself a contribution the authors flag as potentially as informative as the accuracy gains.
Real-world applications (as described in the paper):
- Directional screening: flagging likely losers before committing live traffic, which requires only the correct sign rather than an accurate magnitude — though the authors caution that on this benchmark the directional metrics are only partially informative.
- Reasoning traces: qualitative explanations of why a simulated agent chose one option over another, offering an interpretive lens with no analogue in classical A/B testing.
- Flipper analysis: identifying which agent personas flip their decision between treatment and control, surfacing treatment-effect heterogeneity and guiding segment-level analysis.
- Agentic priors for early decisions: combining a noisy directional signal with early real-experiment data as an informative prior in a Bayesian framework to accelerate go/no-go decisions.
- Subgroup pre-screening: using simulation to flag potentially harmed subpopulations before live deployment.
Industry relevance. A large organization running thousands of experiments per year bears substantial aggregate cost in engineering time, traffic allocation, and analysis overhead, and teams iterating through dozens of candidates before finding a winner bear it repeatedly. The paper is candid that current accuracy is insufficient for launch decisions without calibration, and that even calibrated results come from a single-domain benchmark. The framing throughout is that simulation should not replace real experiments but make the pipeline faster and more informed.
Future Directions
- Combine within-subject estimation with calibration. The paper explicitly names this pairing as "the natural next step," since one addresses the approximation-error layer and the other the subsampling-error layer.
- Close the behavioral amplification gap. The authors suggest this may require behavioral fine-tuning on revealed preference data, structured constraints on agent response distributions, or hybrid architectures that combine language model reasoning with learned behavioral priors. They also expect domain-specific models to eventually outperform general-purpose ones.
- Predict the triggering population. The benchmark is retrospective, evaluating predictions against known historical outcomes. In a prospective setting the triggering population is unknown and no ground truth is available for calibration; the authors call predicting it "the main missing piece for deployment," best understood as a thin upstream layer that can be developed independently of the behavioral simulator.
- Build larger, less noisy benchmarks and better evaluation metrics. The paper argues that progress on directional screening will require both, since benchmark noise currently limits how much sign accuracy and sign overlap reveal about whether the simulator's directional predictions carry real signal.
- Audit representational fairness. If simulation pre-screens which experiments to run, treatments benefiting segments poorly captured by the behavioral model — the paper names low-frequency users and underrepresented demographics — may be filtered out before real measurement. The two-phase calibration partially mitigates this by surfacing per-segment bias on the pre-period.
Target Audience
Applied scientists and experimentation platform teams at large technology companies who run controlled experiments at scale and are evaluating whether agentic simulation belongs in their pipeline. Also relevant to researchers working on LLM-simulated agents, computational social science, and heterogeneous treatment effect estimation, and to product managers or builders deciding whether to invest in agentic screening rather than committing live traffic. The paper's emphasis on failure modes and uninformed baselines makes it especially useful for anyone who needs to evaluate — rather than simply adopt — claims that AI agents can stand in for real users.
Authors’ abstract
A/B testing remains the standard for rolling out new features in the technology industry. Each experiment, however, consumes real traffic, engineering effort, and weeks of wall-clock time. Can AI agents---conditioned on behavioral profiles and contextual descriptions of the intervention---simulate outcomes accurately enough to vet candidate treatments before committing live traffic? We formalize this question as a \emph{Simulated Randomized Controlled Trial} (S-RCT) and derive a two-layer error decomposition that separates agent approximation error from subsampling error, enabling targeted improvements to each. The framework is agent-agnostic: any behavioral model---from a fine-tuned specialist to a general-purpose foundation model---can serve as the simulation engine. Validated on 67 historical marketing A/B tests, a baseline S-RCT using an off-the-shelf foundation model captures directional signal (sign overlap 0.70) but systematically overshoots effect magnitudes. A two-phase pre-period calibration protocol reduces the squared prediction error (after removing irreducible measurement noise) by ${\sim}77\times$; a within-subject design---where each agent is exposed to both arms---reduces standard errors by ${\sim}2.4\times$. We discuss limitations of the current approach and identify applications where experimenters stand to benefit from agentic signals.