Predict, Prune, Play: Efficient Video Playback Optimization Under Device Diversity and Drift

Harsha Sharma (Massachusetts Institute of Technology and Amazon), Pouya Hamadanian (Massachusetts Institute of Technology), Arash Nasr-Esfahany (Massachusetts Institute of Technology), Zahaib Akhtar (Amazon and North Carolina State University), Mohammad Alizadeh (Massachusetts Institute of Technology)

23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 3 · Self-Managing Networks

Overview

Large-scale video streaming services deliver content to an exceptionally heterogeneous user base spanning thousands of device models, network profiles, and geographic regions. Optimizing video delivery quality—commonly measured via Quality of Experience (QE)—costs service providers millions of dollars in tuning video delivery pipelines. This talk presents the first large-scale study of video playback tuning across diverse devices and networks, revealing that static or coarse-grained configuration strategies leave substantial performance on the table.

Watch on YouTube · Slides

Visual summary for Predict, Prune, Play: Efficient Video Playback Optimization Under Device Diversity and Drift by Harsha Sharma, Pouya Hamadanian, Arash Nasr-Esfahany, Zahaib Akhtar, Mohammad Alizadeh
Visual summary for Predict, Prune, Play: Efficient Video Playback Optimization Under Device Diversity and Drift by Harsha Sharma, Pouya Hamadanian, Arash Nasr-Esfahany, Zahaib Akhtar, Mohammad Alizadeh

Key moments

  1. 0:00 Introduction and overview of video playback systems
  2. 2:00 Large-scale randomized controlled trial across devices and networks
  3. 4:00 Quantifying the QE performance gap of suboptimal configurations
  4. 5:50 Challenges of per-cohort tuning and high exploration regret
  5. 8:00 Introducing Ashim for efficient exploration-exploitation
  6. 10:00 Detailed design of Ashim prediction and recommendation phases
  7. 13:30 Emulation results and live deployment case study
  8. 15:40 Conclusion and summary of live performance improvements

Predict, Prune, Play: Efficient Video Playback Optimization Under Device Diversity and Drift

Speakers: Harsha Sharma (Massachusetts Institute of Technology and Amazon); Pouya Hamadanian (Massachusetts Institute of Technology); Arash Nasr-Esfahany (Massachusetts Institute of Technology); Zahaib Akhtar (Amazon and North Carolina State University); Mohammad Alizadeh (Massachusetts Institute of Technology)

Conference: USENIX NSDI

YouTube: https://www.youtube.com/watch?v=hUAQ5RAlJZ8

Overview

Large-scale video streaming services deliver content to an exceptionally heterogeneous user base spanning thousands of device models, network profiles, and geographic regions. Optimizing video delivery quality—commonly measured via Quality of Experience (QE)—costs service providers millions of dollars in tuning video delivery pipelines. This talk presents the first large-scale study of video playback tuning across diverse devices and networks, revealing that static or coarse-grained configuration strategies leave substantial performance on the table.

To address the combinatorial explosion of tuning parameters across device-network cohorts, the authors introduce AGeM, an efficient exploration-exploitation system designed for video playback optimization. AGeM leverages historical randomized controlled trial (RCT) data to perform few-shot configuration predictions for newly onboarded device cohorts, bypassing the high exploration costs associated with traditional black-box optimization algorithms. By recommending a robust set of top-performing candidate configurations rather than a single static setting, AGeM enables downstream multi-armed bandits to safely track temporal drift and non-stationarities in production environments.

The significance of this work lies in its bridge between rigorous systems-level empirical measurement and practical machine learning optimization. Operating at the scale of hundreds of millions of sessions, the authors demonstrate that fine-grained device-network tuning closes performance gaps that traditional network-only optimizations miss. Through a combination of low-rank matrix analysis, lightweight neural prediction, and live production deployments with Amazon Prime Video, the paper outlines a blueprint for deploying machine learning configuration tuning in large-scale systems without inflicting performance degradation on live users.

Background

▶ Watch: Introduction and overview of video playback systems (0:00)

Video delivery pipelines rely on a continuous interaction between client-side video player software, video servers, and Content Delivery Networks (CDNs). When a user initiates a video-on-demand session, the player fetches a manifest file describing the bitrate ladder—the discrete set of encoded quality levels available. The video player continuously executes an Adaptive Bitrate (ABR) algorithm, selecting chunk bitrates based on real-time network throughput and local buffer occupancy.

Beyond selecting an ABR algorithm (e.g., buffer-based, rate-based, or hybrid) and tuning its aggressive planning horizons, streaming systems expose numerous other system knobs. These include bitrate ladder designs tailored to specific screen resolutions, video codec capabilities, and download parallelism—the number of concurrent network threads used to fetch video chunks from the CDN. Historically, video service providers tuned these parameters at a coarse network level or relied on manual engineer heuristics. However, prior systems research established that optimal parameters shift drastically based on underlying network throughput, latency, and packet loss predictability.

In the broader systems and machine learning literature, configuring complex software systems under heterogeneity is typically framed as a black-box optimization problem. Standard approaches include Bayesian Optimization (BO) and Multi-Armed Bandit (MAB) frameworks. While these methods eventually converge on optimal configurations, they suffer from two critical failure modes in production video streaming: high cumulative regret during the exploration phase (which directly degrades live user QE), and slow convergence rates due to the heavy-tailed nature of video streaming metrics like rebuffering. AGeM is designed specifically to resolve this tension between configuration granularity and exploration cost.

Key Findings

▶ Watch: Quantifying the QE performance gap of suboptimal configurations (4:00)

The study's foundational discovery stems from a massive randomized controlled trial spanning 750 million sessions over four months across Amazon Prime Video infrastructure. Evaluating 84 production-grade configurations across 53 device models (such as smart TVs and set-top boxes) and nine network clusters yielded 250 distinct device-network cohorts.

  1. Absence of a Universal Configuration: The optimal video playback configuration varies widely across cohorts. No single treatment universally maximizes QE across all devices and networks.
  2. Quantifying the Cost of Coarse Tuning: Choosing a configuration at random incurs a 30% increase in QE degradation relative to the cohort's best configuration. Tuning strictly at the network level (the prior art standard) leaves a 15% performance gap compared to fine-grained tuning. Only device-network fine-grained tuning completely closes this gap.
  3. Low-Rank Cohort Structure: Singular Value Decomposition (SVD) of the cohort-configuration performance matrix reveals that the cumulative variance is explained by a small number of singular values. This proves that the matrix is approximately low-rank, meaning device and network heterogeneity can be captured by a low-dimensional latent space.
  4. Production Validation: Live deployments comparing AGeM against hand-tuned production baselines across 300 cohorts demonstrated an average 2.2% QE improvement, with over 5% QE gains achieved on 17% of tested cohorts, primarily driven by reductions in startup delay without introducing regressions in other metrics.

Technical Deep Dive

▶ Watch: Introducing Ashim for efficient exploration-exploitation (8:00)

The technical architecture of AGeM is structured around overcoming the high regret and slow convergence of classical optimization. AGeM avoids starting blind when a new device model enters the market or service is expanded to a new region by exploiting cross-cohort similarities.

System Workflow

When a new cohort arrives, AGeM executes three core phases:

  • Bootstrap Phase: A small-scale RCT is conducted on the new cohort using a sparse set of bootstrap treatments. These bootstrap configurations are deliberately chosen because they historically perform well across other established cohorts.
  • Guided Exploration & Prediction: The empirical measurements from the bootstrap treatments, combined with historical RCT matrices from previously onboarded cohorts, are fed into a lightweight neural network prediction model. This model performs few-shot inference, predicting the QE for all unexplored configurations in the tuning space. Because the cohort performance matrix is low-rank, the model infers that configurations performing poorly on structurally similar historical cohorts will also fail on the new cohort, safely pruning them from the search space.
  • Set-Based Recommendation: Rather than outputting a single optimal configuration, AGeM outputs a top-$K$ set of candidate treatments. This set is handed off to a live adaptation layer—specifically a discounted multi-armed bandit—which allocates production traffic dynamically to whichever candidate is currently winning.

Handling Temporal Drift

A major contribution of AGeM's design is its resilience to non-stationarity. Production environments experience continuous, unannounced changes, including CDN firmware updates, app patches, and network infrastructure shifts. A static single-best configuration derived via Bayesian Optimization degrades rapidly over time (e.g., configurations optimal in January exhibit high regret in February). By supplying a top-$K$ candidate pool to a discounted MAB (which down-weights historical observations), AGeM continuously tracks and adapts to environmental drift without re-running costly global explorations.

Experimental Setup & Results

▶ Watch: Detailed design of Ashim prediction and recommendation phases (10:00)

Experimental Setup

  • Dataset & Scale: 750 million user sessions collected over 4 months on Amazon Prime Video.
  • Coverage: 84 production-grade treatments, 53 device models (smart TVs, set-top boxes, desktop PCs, gaming consoles), 9 network clusters (segmented by bandwidth, latency, and predictability), and 3 content resolutions (SD, HD, UHD). This formed 250 distinct evaluation cohorts.
  • QE Metric Definition: A linear composite metric incorporating four primary degradations: percentage of sessions experiencing high rebuffering, high startup delay, frequent bitrate changes, and non-HD fragments delivered during HD playback.
  • Baselines: Standard Bayesian Optimization, traditional multi-armed bandit baselines (Pithyus), and hand-picked production configurations curated by Prime Video engineers and research scientists.

Headline Results & Ablations

  • Convergence Speed: AGeM achieves a 3x faster convergence rate compared to Bayesian Optimization and standard bandit baselines. While traditional algorithms require extensive exploration (exploring dozens of configurations and incurring heavy user regret), AGeM makes highly accurate predictions after exploring as few as 6 bootstrap treatments.
  • Exploration Regret: In leave-one-out emulation experiments of new device onboarding, AGeM maintained near-optimal average exploration regret. Standard algorithms exhibited steep performance penalties during their exploration phases.
  • Live Production Gains: In live A/B tests across 300 cohorts, AGeM improved QE for over 70% of cohorts, delivering an average QE lift of 2.2% and exceeding 5% QE improvements for 17% of cohorts. Granular metric analysis confirmed that these gains were driven primarily by significant reductions in video startup delay while maintaining parity across rebuffering and bitrate stability.

Practical Implications

▶ Watch: Conclusion and summary of live performance improvements (15:40)

For infrastructure teams, video streaming architects, and ML platform engineers, this work challenges the conventional wisdom that hyperparameter tuning and system configuration can be treated as isolated, single-device optimization tasks.

  1. The Danger of Independent Tuning: Running independent black-box tuning loops (like standard multi-armed bandits) for every new device model or geographic region is economically prohibitive due to high cumulative user regret. Leveraging historical transfer learning via low-rank matrix completion is essential.
  2. Shift from Single-Point to Set-Based Output: Practitioners deploying configuration optimizers should avoid outputting rigid, single-point optimal parameters. Because CDN and client environments drift constantly, producing a robust candidate set ($K$-treatments) paired with a discounted online bandit provides an effective defense against silent system degradation.
  3. Resource-Conscious Parallelism: Systems designers must account for hardware asymmetry. For instance, increasing download parallelism improves rebuffering on multi-threaded client architectures but degrades performance on single-threaded players. Configuration spaces must treat device software/hardware profiles as primary conditioning dimensions.

Key Takeaways

  • Heterogeneity Demands Granular Tuning: Coarse network-level video playback tuning leaves a 15% performance gap compared to fine-grained device-network tuning, while random configuration choices incur a 30% performance penalty.
  • Low-Rank Structure Enables Transfer Learning: Video playback configuration matrices are approximately low-rank, proving that cross-cohort similarities can be successfully exploited to predict performance for newly onboarded devices.
  • AGeM Architecture: AGeM combines sparse bootstrap testing, lightweight few-shot neural prediction, and top-$K$ set recommendations to achieve a 3x faster convergence rate than traditional Bayesian Optimization.
  • Mitigating Non-Stationarity: Outputting a set of $K$ candidates rather than a single static configuration allows downstream discounted multi-armed bandits to track temporal drift and server-side updates safely.
  • Production Impact: Live deployments at Amazon Prime Video across 300 cohorts demonstrated an average 2.2% QE improvement and a >5% improvement for 17% of cohorts, driven largely by lower startup delays.

About the Speaker(s)

Harsha Sharma is a researcher at the Massachusetts Institute of Technology (MIT) and Amazon, working at the intersection of machine learning and large-scale networked systems. The research team includes Pouya Hamadanian, Arash Nasr-Esfahany, and Professor Mohammad Alizadeh from MIT, alongside Zahaib Akhtar from Amazon and North Carolina State University, representing a sustained collaborative effort between academic systems labs and industrial video streaming infrastructure groups.

Reviews

→ Top-rated talks at 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)

All talks from 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)