Veritas: Answering Causal Queries from Video Streaming Traces

Chandan Bothra, Jianfei Gao, Sanjay Rao, Bruno Ribeiro

Abstract

Optimizing networked systems like video streaming often requires answering "what-if" questions: what would the performance be if we changed the system design? Traditionally, this requires expensive Randomized Controlled Trials (RCTs). We present Veritas, a framework for causal reasoning in video streaming that uses passively collected logs. Veritas employs an Embedded Hidden Markov Model (EHMM) to infer latent network conditions (intrinsic bandwidth) from observed download times and TCP states. Our experiments show that Veritas accurately answers counterfactual and interventional queries, significantly outperforming associational machine learning models by accounting for causal effects and network dynamics.

Introduction: The "What-if" Challenge

In the world of networked systems, designers are constantly seeking to optimize performance. However, evaluating a new algorithm or configuration typically requires deploying it to real users in A/B tests or Randomized Controlled Trials (RCTs). These methods are not only expensive and time-consuming but can also negatively impact user experience during the testing phase. Furthermore, they cannot answer questions about sessions that have already concluded.

Conceptual diagram of the "what-if" query problem in video streaming, where logs from Algorithm A are used to predict performance for Algorithm B.

The core challenge lies in causal inference: determining the effect of a change (e.g., a different bitrate selection) while accounting for hidden confounding variables, such as fluctuating network conditions.

The Limits of Associational Machine Learning

Standard machine learning (ML) models, including deep neural networks, are primarily associational. They excel at finding correlations but struggle with causation. In video streaming, a model might observe that low bitrates often coincide with rebuffering events and incorrectly conclude that the low bitrate caused the rebuffering. In reality, poor network conditions (the latent variable) caused both. To provide accurate "what-if" answers, a system must "un-confound" the data by reconstructing the underlying network state.

The Veritas Framework

Veritas addresses this by using abduction—inferring the most likely latent network conditions that produced a set of observed logs. Its architecture consists of several key components:

  • Causal Modeling: A Directed Acyclic Graph (DAG) defines the dependencies between chunk size, buffer state, TCP control variables, and the hidden Ground Truth Bandwidth (GTBW).
  • Embedded Hidden Markov Model (EHMM): Veritas uses a specialized HMM where hidden states represent intrinsic bandwidth. Unlike generic models, it embeds a domain-specific TCP model into the emission process to better reflect physical reality.
  • TCP State Integration: By utilizing TCP control variables (like congestion window size and RTT) captured at the start of a download, Veritas can "invert" the observed throughput—which is often distorted by TCP's "slow-start" mechanism—back into the underlying steady-state bandwidth.
  • Bayesian Sampling: Rather than a single prediction, Veritas samples multiple likely bandwidth traces, providing a range of potential outcomes that reflect the inherent uncertainty in passive logs.

Key Results and Evaluation

Veritas was evaluated using an emulation testbed driven by real-world FCC throughput traces. It was compared against an "Oracle" with perfect knowledge, a standard baseline using raw throughput, and Fugu, a state-of-the-art associational neural network.

Comparison of actual vs. predicted download times. Associational models (red) fail to predict the high download times of high-quality chunks in poor conditions, whereas Veritas captures the causal impact.
  • Counterfactual Accuracy: In "upgrade" scenarios where higher video qualities were simulated, Veritas's predictions closely matched the ground truth. While a standard baseline predicted significant rebuffering (6.7%), Veritas correctly identified that the network could handle the higher load with near-zero rebuffering.
  • Generalization vs. Fugu: On interventional queries, Veritas significantly outperformed Fugu. Because Fugu is associational, it underestimated download times by up to 35 seconds in scenarios involving chunk sequences it hadn't encountered during training. Veritas, by modeling the underlying physics of the network, generalized far better.
  • Reliable Confidence Intervals: The range of predictions provided by Veritas was consistently tight and centered around the ground truth, demonstrating high confidence in its causal reconstructions.

Conclusion

Veritas demonstrates that it is possible to perform accurate causal reasoning on complex networked systems using only passive traces. By combining domain-specific knowledge of network protocols with probabilistic inference, Veritas allows designers to evaluate system changes safely and efficiently, paving the way for more robust and data-driven network optimization.

Summary updated

Abstract

In this paper, we seek to answer what-if questions - i.e., given recorded data of an existing deployed networked system, what would be the performance impact if we changed the design of the system (a task also known as causal inference). We make three contributions. First, we expose the complexity of causal inference in the context of adaptive bit rate video streaming, a challenging domain where the network conditions during the session act as a sequence of latent and confounding variables, and a change at any point in the session has a cascading impact on the rest of the session. Second, we present Veritas, a novel framework that tackles causal reasoning for video streaming without resorting to randomised trials. Integral to Veritas is an easy to interpret domain-specific ML model (an embedded Hidden Markov Model) that relates the latent stochastic process (intrinsic bandwidth that the video session can achieve) to actual observations (download times) while exploiting control variables such as the TCP state (e.g., congestion window) observed at the start of the download of video chunks. We show through experiments on an emulation testbed that Veritas can answer both counterfactual queries (e.g., the performance of a completed video session had it used a different buffer size) and interventional queries (e.g., estimating the download time for every possible video quality choice for the next chunk in a session in progress). In doing so, Veritas achieves accuracy close to an ideal oracle, while significantly outperforming both a commonly used baseline approach, and Fugu (an off-the-shelf neural network) neither of which account for causal effects.
BibTeX
@inproceedings{bothra2023veritas,
  author = {Chandan Bothra and Jianfei Gao and Sanjay Rao and Bruno Ribeiro},
  title = {{Veritas: Answering Causal Queries from Video Streaming Traces}},
  booktitle = {SIGCOMM},
  year = {2023},
  doi = {10.1145/3603269.3604828},
}

Loading related content...

Figure