Continual learning improves Internet video streaming

Francis Y. Yan, Hudson Ayers, Chenzhi Zhu, Sadjad Fouladi, James Hong, Keyi Zhang, Philip Alexander Levis, Keith Winstein

Abstract

Adaptive Bitrate (ABR) algorithms are critical for balancing video quality and playback stability in streaming services. While many sophisticated machine-learning models excel in controlled simulations, they often fail to generalize to the diverse and "heavy-tailed" conditions of the real-world Internet. This paper presents Puffer, a large-scale live-streaming platform used to conduct a massive randomized controlled trial of ABR algorithms. Based on findings from Puffer, we developed Fugu, an algorithm that employs a deep neural network trained in situ on real-world telemetry. Fugu predicts the probability distribution of transmission times rather than simple throughput, allowing for more robust decision-making. In a seven-month trial involving over 56,000 users, Fugu significantly outperformed state-of-the-art heuristics and machine-learned models in video quality, stall reduction, and user engagement.

Introduction

The goal of video streaming is to maximize visual quality while minimizing rebuffering events. Traditionally, ABR algorithms have relied on heuristics or control theory. Recently, Reinforcement Learning (RL) has been proposed to optimize these decisions. However, these models often suffer from a "sim-to-real" gap; the messy reality of the Internet—characterized by diverse network paths and unpredictable congestion—is rarely captured by standard simulators.

To bridge this gap, researchers from Stanford and Tsinghua built Puffer, a platform streaming live TV to thousands of users. Puffer serves as a real-world laboratory, enabling the evaluation of algorithms through randomized controlled trials (RCTs). The data collected from Puffer revealed that many "sophisticated" models perform worse than simple heuristics when deployed in the wild.

Methods and the Fugu Algorithm

Fugu was designed to overcome the limitations of existing ABR schemes by learning directly from the deployment environment. It consists of two primary components:

  1. Transmission Time Predictor (TTP): A deep neural network that predicts the probability distribution of the time required to download a specific chunk. Unlike traditional models that predict throughput (bits per second), Fugu predicts time based on file size and low-level TCP statistics (e.g., RTT, congestion window). This approach accounts for the non-linear relationship between file size and transmission time caused by network overhead.
  2. Stochastic Model Predictive Control (MPC): A control strategy that uses the TTP’s probabilistic outputs to select bitrates that maximize the user's Quality of Experience (QoE) while accounting for the risk of stalls.
Variation in chunk size and quality (SSIM) across different video segments.

Crucially, Fugu employs in situ training. It is retrained daily on a 14-day sliding window of real telemetry from the Puffer platform, ensuring the model remains adapted to current network dynamics. As shown in the figure above, chunk sizes can vary significantly even at a fixed bitrate, making precise time prediction essential.

Key Insights

  • The Unreliability of Simulators: Algorithms like Pensieve or RobustMPC, which dominate in emulated environments, often struggle on Puffer. The heavy-tailed nature of real Internet traffic creates margins of error that simulators fail to replicate.
  • Predicting Time vs. Throughput: Because network overhead does not scale linearly with file size, predicting the transmission time for a specific chunk is more accurate than predicting a general throughput value.
  • Embracing Uncertainty: By outputting a probability distribution, Fugu can quantify the risk of a stall, making it more robust to sudden network fluctuations.

Results

In a seven-month randomized trial, Fugu emerged as the superior algorithm across several key metrics:

  • Video Quality: Fugu maintained the highest average video quality at 16.9 dB SSIM.
  • Stall Reduction: It achieved a stall ratio of 0.12%, significantly lower than BBA (0.19%) and MPC-HM (0.25%).
  • User Engagement: Users assigned to Fugu stayed on the site 10–20% longer than those assigned to other algorithms, a strong indicator of improved QoE.
Comparison of Fugu against baseline ABR algorithms in terms of average SSIM and bitrate.

As shown in the figure above, Fugu achieves a superior balance of high perceptual quality (SSIM) and efficient bitrate usage compared to both traditional heuristics and other machine-learned approaches.

Conclusion

The success of Fugu highlights the importance of in situ learning for real-world network applications. By training on actual deployment data and accounting for the probabilistic nature of the Internet, Fugu overcomes the limitations of models trained solely in simulation. Future work includes reducing the computational overhead of real-time SSIM calculation and exploring the generalizability of the Fugu model across different geographic regions and content types.

Summary updated

BibTeX
@inproceedings{yan2020continual,
  author = {Francis Y. Yan and Hudson Ayers and Chenzhi Zhu and Sadjad Fouladi and James Hong and Keyi Zhang and Philip Alexander Levis and Keith Winstein},
  title = {{Continual learning improves Internet video streaming}},
  booktitle = {NSDI},
  year = {2020},
  url = {https://openreview.net/forum?id=h6GMjBdj2c},
}
Figure