Authors: Ya Xu, Weitao Duan, Shaochen Huang (LinkedIn Corporation)
Introduction
In large-scale software engineering, deploying new features via A/B testing is standard practice. However, the process of "ramping"—gradually increasing the percentage of user traffic exposed to a feature from 0% to 100%—is often a manual, slow, and error-prone bottleneck. Researchers at LinkedIn developed SQR, a framework designed to optimize this process by balancing Speed, Quality, and Risk. By replacing manual intuition with an algorithmic "Ramp Recommender," LinkedIn reduced the time to reach a final decision by approximately 50% while maintaining rigorous safety and measurement standards.
The Problem: Ramping Bottlenecks and Fallacies
At LinkedIn, the average experiment historically took a full month to reach 100% traffic. This delay was driven by three common misconceptions among experimenters:
- The Duration Fallacy: The belief that running a test longer at low traffic (e.g., 5% for two weeks) is equivalent to running it at higher traffic for a shorter period. In reality, sample size is the primary driver for reducing noise.
- The Cost Misconception: The assumption that low-traffic ramps are "cheaper." In fact, they incur high opportunity costs and may fail to detect negative impacts that persist for weeks.
- The Significance Trap: Waiting for statistical significance at a low-traffic ramp before proceeding to a higher one, even when the primary goal of the low-traffic phase is risk mitigation, not final measurement.
As shown in Figure 1, a 10% ramp after one week achieves a lower error margin than a 5% ramp after two weeks, demonstrating that increasing traffic is a more efficient path to statistical power than increasing duration.
The SQR Framework
The SQR framework formalizes the ramp process into four distinct phases, each with a specific objective:
- Pre-MPR (Risk Mitigation): Small, rapid ramps (e.g., 1%, 5%, 10%) intended solely to ensure the feature does not "break" the site. The algorithm is "greedy" here, jumping to the highest safe traffic level as quickly as possible.
- MPR (Maximum Power Ramp): Typically a 50/50 split. This phase is dedicated to high-quality measurement. LinkedIn enforces a "One-Week Rule" at this stage to account for weekly cycles and "burn-in" effects.
- Post-MPR (Operational Risk): Optional ramps (e.g., 75%) to ensure backend infrastructure can handle the full load.
- Learn (Long-term Holdout): Maintaining a small control group for an extended period to monitor long-term user behavior and habituation.
The Ramp Recommender Algorithm
To automate transitions between these phases, LinkedIn developed a "Ramp Recommender" based on the Generalized Sequential Probability Ratio Test (GSPRT). Unlike standard t-tests, which suffer from inflated false-positive rates when data is monitored continuously ("peeking"), GSPRT allows for valid statistical inference at any point in time.
The algorithm monitors hundreds of metrics simultaneously. To prevent "false alarms" from minor fluctuations in obscure metrics, it employs False Discovery Rate (FDR) controls (specifically the Benjamini-Hochberg procedure). This ensures the system flags genuine regressions while allowing successful experiments to proceed.
Key Results and Evaluation
The framework was evaluated by replaying the algorithm against a historical dataset of 484 experiments conducted at LinkedIn. Key findings include:
- Significant Speedup: The SQR framework reached the Maximum Power Ramp in a median of 12 days, compared to the 30-day average of the manual process—a 50% time saving.
- Stability and Consistency: The algorithm's recommendations are remarkably stable; in 58% of cases, the decision made after just one day of data matched the decision made after a full week.
- Safety First: The system acted as an effective "brake," correctly flagging 29% of experiments as too risky to ramp further during the initial phases, thereby preventing potential site-wide regressions.
Conclusion
SQR demonstrates that automating the A/B testing lifecycle through sequential testing and clear phase definitions can dramatically increase experimentation velocity without sacrificing quality or safety. While human oversight remains necessary for high-stakes deployments, the "Ramp Recommender" effectively eliminates the manual bottlenecks of traditional online experimentation.
Summary updated