Skip to main content
QUICK REVIEW

[Paper Review] Large-Scale Online Experimentation with Quantile Metrics

Min Liu, Xiaohui Sun|arXiv (Cornell University)|Mar 20, 2019
Advanced Bandit Algorithms ResearchDecision Sciences9 references6 citations
TL;DR

This paper presents a statistically valid and scalable methodology for A/B testing with quantile metrics—such as p90 page load time—by combining dynamic histogram-based quantile estimation with a novel variance estimator that corrects for temporal correlation in dependent samples. The approach achieves over 500x speedup compared to bootstrap while maintaining 98% agreement with bootstrap estimates, enabling real-time quantile A/B testing at scale in industrial systems like LinkedIn’s.

ABSTRACT

Online experimentation (or A/B testing) has been widely adopted in industry as the gold standard for measuring product impacts. Despite the wide adoption, few literatures discuss A/B testing with quantile metrics. Quantile metrics, such as 90th percentile page load time, are crucial to A/B testing as many key performance metrics including site speed and service latency are defined as quantiles. However, with LinkedIn's data size, quantile metric A/B testing is extremely challenging because there is no statistically valid and scalable variance estimator for the quantile of dependent samples: the bootstrap estimator is statistically valid, but takes days to compute; the standard asymptotic variance estimate is scalable but results in order-of-magnitude underestimation. In this paper, we present a statistically valid and scalable methodology for A/B testing with quantiles that is fully generalizable to other A/B testing platforms. It achieves over 500 times speed up compared to bootstrap and has only $2\%$ chance to differ from bootstrap estimates. Beyond methodology, we also share the implementation of a data pipeline using this methodology and insights on pipeline optimization.

Motivation & Objective

  • To address the lack of scalable and statistically valid variance estimation for quantile metrics in large-scale A/B testing.
  • To enable real-time A/B testing with quantiles such as p50 and p90, which are critical for measuring user experience but underutilized due to computational and statistical challenges.
  • To develop a methodology that is both accurate (comparable to bootstrap) and efficient (500x faster than bootstrap) for industrial-scale online experimentation.
  • To implement and optimize a data pipeline that supports low-latency quantile A/B testing across diverse platforms and experiment types.
  • To provide a generalizable solution applicable to other A/B testing platforms beyond LinkedIn’s ecosystem.

Proposed method

  • The method uses a histogram-based quantile estimation technique that aggregates page load times into bins within data partitions to summarize distributional information efficiently.
  • It computes quantiles by merging histograms across partitions, enabling accurate estimation of p50 and p90 without storing all raw data.
  • A novel variance estimator is proposed that accounts for temporal correlation in dependent samples by using dynamic interval widths around the sample quantile to improve density estimation.
  • The pipeline employs data normalization, co-partitioning of metrics and experiment tracking by memberId and timestamp, and in-memory bitmap indexing to accelerate joins and reduce I/O.
  • Summary statistics such as ∑Ji, ∑Pi, ∑Ji², ∑Pi², ∑JiPi, and ∑Wi are computed per partition to support both quantile and variance estimation in a single pass.
  • The system leverages Spark for distributed processing, with data compression and partitioning to prevent data explosion and ensure sub-2-hour processing of 300 billion rows.

Experimental results

Research questions

  • RQ1Can a scalable variance estimator for quantile metrics be developed that maintains statistical validity in the presence of temporal correlation?
  • RQ2How can quantile A/B testing be accelerated to meet low-latency reporting requirements (e.g., <5 hours) in large-scale production systems?
  • RQ3To what extent does the proposed method match the accuracy of the bootstrap method in estimating standard errors for quantile metrics?
  • RQ4What is the impact of dynamic interval width on variance estimation accuracy compared to fixed-width intervals?
  • RQ5How does the pipeline perform across diverse experiment configurations, including different platforms, geographies, and date ranges?

Key findings

  • The proposed method achieves over 500 times faster computation than the bootstrap method, reducing processing time from days to under 2 hours for 300 billion rows.
  • The method has only a 2% chance of differing from the bootstrap estimate by more than 7%, indicating high accuracy and reliability.
  • When the nominal false positive rate is 5%, the actual false positive rate using the proposed method is close to 5%, confirming its statistical validity.
  • The variance estimator significantly outperforms the i.i.d. asymptotic approximation, which underestimates standard errors by an order of magnitude and leads to 61% false positives.
  • The pipeline successfully processes 30 days of data (300 billion rows) in an average of 2 hours, meeting LinkedIn’s sub-5-hour reporting requirement.
  • The use of bitmaps for experiment tracking enables efficient, in-memory joins, reducing I/O and accelerating the join phase by orders of magnitude.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.