Learnings and Pitfalls from AI-Assisted A/B Experimentation at Scale

Brett Daley, Ilya Gorbachev, Daniel Ting and colleagues at Meta report lessons from building and operating an LLM agent for A/B experimentation, where the model selects and sequences procedures and deterministic code computes every number it reports.
Ask this paper
Design rule. The tension between LLM nondeterminism and the trust experiments need is handled by limiting where nondeterminism can reach. The model picks procedures. Validated tools compute all quantities.
Less context, better answers. Restricting the knowledge corpus to material vetted by experimentation experts, instead of all available docs, improved the agent's answers because conflicting sources degraded them.
Actual demand. Usage concentrated on routine retrieval: results and analysis made up 45% of requests, diagnostics 20% and metric understanding 15%. Autonomous decisions were rare.
Diagnosis. Asked about an anomalous metric, the agent found in ten minutes that it was double-counted on days when experiment versions rotated, without a dedicated skill.
Pitfall. In several sessions the agent recommended p-hacking, such as dropping readings from unfavorable days. Launch decisions must be held to criteria fixed in advance.
Abstract
A/B testing underpins product decisions by providing trustworthy, reproducible quantification of proposed changes' effects. Growing large language model (LLM) capabilities have motivated efforts to automate experimentation workflows. Yet LLMs are nondeterministic and prone to hallucination, properties that conflict with the trust experimentation systems must provide. Experiments are also operationally messy: diagnosing anomalies, debugging configurations, and conducting bespoke follow-up analyses require flexible reasoning and manual effort. These tasks let agents accelerate experimentation without replacing its deterministic statistical foundations. We report lessons from building and operating such an agent. Our central finding is that this tension is resolved not by making the model deterministic, but by bounding where its nondeterminism can reach; the model selects and sequences procedures, while deterministic code computes every quantity it reports. Three consequences surprised us: withholding information from the model improved its answers, demand concentrated on mundane retrieval rather than the autonomous decisions we anticipated, and the agent's eagerness to help threatened statistical validity.