NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Balancing Risk and Reward: An Automated Phased Release Strategy

Yufan Li, Jialiang Mao, Iavor Bojinov

TL;DR

This paper introduces an automated, principled strategy for "phased releases"—the gradual rollout of new software features. By framing the problem as a budget-constrained batched bandit, the authors provide an algorithm that maximizes the speed of a rollout while mathematically guaranteeing that the risk of a significant negative business impact (the "risk of ruin") stays below a pre-defined threshold.

What Problem Does This Paper Address?

In the tech industry, releasing a new feature to 100% of users at once is dangerous; a single bug or poor design choice could cause massive revenue loss or user churn. To mitigate this, companies use "phased releases" (or staged rollouts), starting with a small percentage of users (e.g., 1%) and gradually increasing it.

However, current industry practices are often ad-hoc. Fixed schedules (like Apple’s 7-day rollout) are too slow for clearly beneficial features and potentially too aggressive for harmful ones. The core challenge is balancing risk (the potential cost of a bad feature) with reward (the opportunity cost of not releasing a good feature sooner). The authors formalize this as a "risk-of-ruin-constrained" (RRC) experiment, where the goal is to ramp up as fast as possible without depleting a pre-specified "risk budget" $B$ with probability greater than $\delta$.

Methods

The authors propose an adaptive Bayesian algorithm that treats the rollout as a sequence of A/B tests. Key technical components include:

  • Risk Decomposition: They derive recursive relations that break down the total risk of ruin for the entire experiment into manageable, stage-wise risk tolerances. If you control the risk at each individual step, you control the risk for the whole rollout.
  • Analytical Solutions: Unlike typical bandit problems that rely on computationally expensive Monte Carlo simulations to estimate rare-event probabilities (like "what is the 1% chance we lose \$1M?"), this approach solves for the optimal ramp size $m_t$ analytically. By inverting probability bounds, they reduce the problem to solving a simple quadratic equation.
  • Conjugate Gaussian Model: The algorithm uses a Bayesian framework to learn from past stages. It updates its beliefs about the treatment effect's mean and variance, using these posteriors to decide how many users to include in the next batch.
  • Robustness: While derived using Gaussian assumptions, the authors demonstrate that the algorithm remains valid for non-Gaussian and non-identically distributed outcomes due to the Law of Large Numbers and the Central Limit Theorem.

Datasets

The paper evaluates the algorithm using:

  1. Simulated Scenarios: Three synthetic environments representing different treatment effects:
  2. PTE (Positive): The feature is clearly good.
  3. NTE (Negative): The feature is clearly bad.
  4. NPTE (Negative-to-Positive): Simulates a feature that starts poorly (perhaps due to initial bugs) but improves over time.
  5. Semi-real LinkedIn Data: The authors used group-level statistics from a real 6-stage phased release at LinkedIn to simulate a realistic environment while maintaining user privacy.

Key Insights and Ideas

  • Budget Rationing: The framework allows experimenters to "ration" their risk budget. By setting a lower budget for early stages, the algorithm can "save" its risk tolerance for later stages when the feature is more stable, leading to a faster final ramp-up.
  • Efficiency via Inversion: The move from simulation to analytical inversion is a major "aha moment." It makes the algorithm highly efficient and parallelizable, suitable for production systems that need to handle thousands of simultaneous experiments.
  • Shared Risk: Unlike previous frameworks (like SQR) that treat each stage in isolation, this model uses a "shared budget" across the entire release, allowing the system to adjust dynamically based on the cumulative observed impact.

Key Results

  • Safety Guarantee: In simulations, the algorithm successfully controlled the risk of ruin. For a set ruin tolerance of 5%, the actual observed ruin risk was consistently around 1.2% across various outcome distributions (Normal, Bernoulli, and "Fat-tailed" distributions).
  • Superiority over Thompson Sampling: The authors compared their method to a standard Thompson Sampling bandit. They found that Thompson Sampling often ignored the budget constraint, either ramping up too aggressively (risking ruin) or too conservatively (losing reward).
  • Real-World Alignment: When applied to the LinkedIn data, the algorithm produced a ramp-up schedule that was "roughly consistent" with the manual schedule chosen by LinkedIn’s expert data scientists, suggesting the model successfully automates human-level intuition.

Limitations and Future Work

  • Non-Stationarity: The model assumes the treatment effect is somewhat predictable based on past stages. If a feature has a "delayed-action" failure (e.g., it works fine for three days then crashes the database), the algorithm might over-allocate users before it can react.
  • Population Estimation: The algorithm requires an estimate of the incoming population size ($N_t$) for the next stage to ensure the treatment group doesn't exceed 50% of the total.
  • Future Directions: The authors suggest further investigation into Monte-Carlo based procedures for more complex, multivariate outcome models where analytical solutions might not be as straightforward.

Reference: Li, Y., Mao, J., & Bojinov, I. (2023). Balancing Risk and Reward: An Automated Phased Release Strategy. arXiv:2305.09626v1.

Summary updated

BibTeX
@inproceedings{li2023balancing,
  author = {Yufan Li and Jialiang Mao and Iavor Bojinov},
  title = {{Balancing Risk and Reward: An Automated Phased Release Strategy}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=6e86TccKyQ},
}
Figure