Abstract
Many organizations measure treatment effects via an experimentation platform to evaluate the casual effect of product variations prior to full-scale deployment. However, standard experimentation platforms do not perform optimally for end user populations that exhibit heterogeneous treatment effects (HTEs). Here we present a personalized experimentation framework, Personalized Experiments (PEX), which optimizes treatment group assignment at the user level via HTE modeling and sequential decision policy optimization to optimize multiple short-term and long-term outcomes simultaneously. We describe an end-to-end workflow that has proven to be successful in practice and can be readily implemented using open-source software.
Introduction
In the world of internet services, A/B testing is the gold standard for product evaluation. By showing Version A to one group and Version B to another, teams typically select a winner based on the Average Treatment Effect (ATE). However, this "one-size-fits-all" approach ignores Heterogeneous Treatment Effects (HTEs)—the reality that different users react differently to the same change. For example, a new notification might drive engagement for power users while causing casual users to churn.
While personalization is a known solution, building custom machine learning (ML) models for every product feature is prohibitively expensive and complex. The Personalized Experiments (PEX) framework, developed at Meta, addresses this by creating a robust, end-to-end workflow that allows product engineers to deploy personalized treatments without requiring deep expertise in causal inference.
Methodology: The PEX Workflow
The PEX framework operates through a structured three-phase approach designed to move from raw data to a deployed, optimized policy.
- ML Model Training & Off-Policy Evaluation (OPE): The process begins by collecting data from a standard randomized experiment. PEX trains HTE meta-learners (such as Gradient Boosted Trees) to estimate the Conditional Average Treatment Effect (CATE)—predicting how a specific user's behavior will change for each treatment. It then uses Off-Policy Evaluation to simulate how various decision policies would have performed on historical data.
- Online Policy Tuning: Because offline simulations can be biased, PEX employs Multi-objective Bayesian Optimization (using the
qNParEGOalgorithm via theAxlibrary). It tests a small set of promising candidate policies in a live environment to identify the optimal trade-offs between competing metrics, such as short-term engagement versus long-term retention. - Launch & Maintenance: Once the best policy is identified, it is deployed to the broader population. A small holdout group (2-5%) continues to receive randomized treatments to provide fresh data, ensuring the model remains accurate as user behavior evolves.
Key Insights and Results
A critical component of the PEX decision policy is the use of a linear utility function that incorporates both weights (importance of an outcome) and per-treatment biases. The inclusion of these simple bias terms significantly improves the range of achievable trade-offs, allowing the system to navigate complex multi-objective landscapes more effectively than standard models.
Pareto Dominance
Results from real-world deployments at Meta demonstrate that personalized policies "Pareto dominate" traditional A/B testing. This means PEX can achieve superior results on one metric (e.g., engagement) without negatively impacting another (e.g., resource utilization or app stability). By optimizing $n$ treatments and $m$ outcomes simultaneously, the framework handles complexity that would be unmanageable through manual A/B testing.
The Role of OPE
The framework highlights that while Off-Policy Evaluation is a valuable "compass" for narrowing down policy options, it is not a perfect "map." As shown in the correlation plots, OPE is directionally correct but often requires live online tuning to find the true optimal "sweet spot" for long-term metrics.
Conclusion and Future Work
PEX democratizes personalization by providing an AutoML-style approach to HTE modeling. While highly effective, challenges remain in making these "black box" policies more interpretable for product engineers. Future research will focus on improving the selection of short-term proxy metrics for long-term value and creating "closed-loop" systems where online tuning data is fed back into model training to further refine performance.
Summary updated