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.
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.
- 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