PolicyCache: Intra-flow Learning in Congestion Control

Han Tian (University of Science and Technology of China), Han Wang (University of Science and Technology of China), Wenbo Li (University of Science and Technology of China), Xudong Liao (Hong Kong University of Science and Technology), Decang Sun (Hong Kong University of Science and Technology), Wenxue Li (Hong Kong University of Science and Technology), Donghui Chen (Huawei Technologies Co., Ltd.), Bin Huang (Huawei Technologies Co., Ltd.), Senbo Fu (Huawei Technologies Co., Ltd.), Junxue Zhang (University of Science and Technology of China), Dian Shen (Southeast University), Kai Chen (Hong Kong University of Science and Technology)

23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 1 · All Your Networks Are Belong to ML

Overview

Modern computer networks require efficient congestion control (CC) mechanisms to maximize throughput while minimizing latency and packet loss. Traditional CC paradigms fall largely into three camps: heuristic-based schemes (e.g., TCP Cubic), learning-based schemes (e.g., neural network-driven models like Astrea), and exploration-based schemes. However, these paradigms struggle with a fundamental tension between generalization, responsiveness, and overhead. In this talk presented at USENIX NSDI, the research team introduces PolicyCache, a novel system built around a paradigm called intra-flow learning.

Watch on YouTube · Slides

Visual summary for PolicyCache: Intra-flow Learning in Congestion Control by Han Tian, Han Wang, Wenbo Li, Xudong Liao, Decang Sun, Wenxue Li, Donghui Chen, Bin Huang, Senbo Fu, Junxue Zhang, Dian Shen, Kai Chen
Visual summary for PolicyCache: Intra-flow Learning in Congestion Control by Han Tian, Han Wang, Wenbo Li, Xudong Liao, Decang Sun, Wenxue Li, Donghui Chen, Bin Huang, Senbo Fu, Junxue Zhang, Dian Shen, Kai Chen

Key moments

  1. 0:00 Introduction and limitations of existing congestion control paradigms
  2. 2:00 Proposed intra-flow learning paradigm and its core advantages
  3. 4:00 PolicyCache design, architecture, and use of non-parametric tree models
  4. 6:00 Hoeffding Adaptive Tree implementation, backup, and micro exploration
  5. 8:00 Data collection, sample alignment, and model performance scoring
  6. 9:36 Implementation details and evaluation across diverse network conditions
  7. 11:00 Dynamic switching between tree inference and backup exploration

PolicyCache: Intra-flow Learning in Congestion Control

Speakers: Wenshu Li (University of Science and Technology of China) [representing a joint team from USTC, Hong Kong University of Science and Technology, and Huawei Technologies]

Conference: USENIX NSDI

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

Overview

Modern computer networks require efficient congestion control (CC) mechanisms to maximize throughput while minimizing latency and packet loss. Traditional CC paradigms fall largely into three camps: heuristic-based schemes (e.g., TCP Cubic), learning-based schemes (e.g., neural network-driven models like Astrea), and exploration-based schemes. However, these paradigms struggle with a fundamental tension between generalization, responsiveness, and overhead. In this talk presented at USENIX NSDI, the research team introduces PolicyCache, a novel system built around a paradigm called intra-flow learning.

The core insight of PolicyCache is that instead of applying a generalized, offline-trained policy across distinct network flows—which inevitably suffers from cross-environment mismatch—learning and execution should be strictly confined to a single flow and its specific path. As a new flow traverses the network, it starts with a clean slate, collects state-action pairs, updates an internal non-parametric model online, and subsequently caches and executes the learned policy for rapid rate decisions. This approach bridges the gap between proactive machine learning responsiveness and the robustness of trial-and-error exploration.

Background

▶ Watch: Introduction and limitations of existing congestion control paradigms (0:00)

In the systems and machine learning community, designing congestion control algorithms has historically forced engineers to choose between rigid rules and fragile data-driven models. Heuristic-based schemes rely on deterministic rules or congestion window calculations. While extremely lightweight and simple to deploy, they are brittle and fail to adapt cleanly to arbitrary, dynamic network topologies.

To overcome this, learning-based congestion control emerged, deploying models trained offline on simulated or recorded network traces. Although these models offer rapid reactions, they suffer from poor cross-environment generalization. When deployed in unseen networks with unfamiliar link characteristics, bandwidth fluctuations, or cross-traffic patterns, their performance often collapses.

Conversely, exploration-based schemes abandon pre-trained assumptions entirely, relying on online trial-and-error probing to discover optimal sending rates. While these schemes exhibit exceptional adaptability—making minimal assumptions about network conditions—they suffer from severely impaired responsiveness. Probing typically requires multiple Round Trip Times (RTTs) to generate a single action, creating sluggish reactions in high-RTT or highly dynamic environments. PolicyCache was developed to resolve this trilemma by decoupling learning from inter-flow generalizations and constraining it to operate intra-flow using lightweight, streaming data structures.

Key Findings

▶ Watch: PolicyCache design, architecture, and use of non-parametric tree models (4:00)

PolicyCache demonstrates that shifting from inter-flow to intra-flow learning fundamentally alters the trade-off curve between convergence speed, control responsiveness, and computational overhead. The primary findings and system achievements include:

  • Elimination of Pre-Training Mismatch: By learning and executing policies within the lifecycle of the exact same flow, PolicyCache avoids the cross-path and cross-environment distribution shifts that plague traditional offline-trained neural network models.
  • Superior Convergence and Responsiveness: PolicyCache converges significantly faster than traditional exploration-based mechanisms by leveraging a cached tree model execution mode, while maintaining stable throughput and low jitter via a controlled exploration fallback.
  • Robust Fairness and Coexistence: In multi-flow settings, PolicyCache achieves top-tier fairness rankings, ensuring flows with differing RTTs share bandwidth equally. Furthermore, it demonstrates balanced coexistence with incumbent transport protocols like TCP Cubic and BBR.
  • Low CPU Overhead: Unlike heavy neural network-based CC algorithms that impose steep computational penalties, PolicyCache matches the lightweight efficiency of standard heuristic algorithms, keeping CPU utilization minimal through incremental streaming updates.

Technical Deep Dive

▶ Watch: Hoeffding Adaptive Tree implementation, backup, and micro exploration (6:00)

The technical architecture of PolicyCache is split across two primary pathways: the control path and the learning path, orchestrated by an action router.

The Model: Hoeffding Adaptive Trees (HAT)

Parametric models, such as deep neural networks, require extensive training epochs and data volumes before converging to a useful state, making them unsuitable for real-time, per-flow online adaptation. PolicyCache replaces neural networks with a non-parametric model: the Hoeffding Adaptive Tree (HAT).

HAT models are uniquely suited for streaming data. As network samples arrive, they are routed to leaf nodes where internal statistics are updated incrementally. Using the Hoeffding bound, the tree determines mathematically when sufficient evidence has been gathered to split a node without requiring full dataset retraining. Crucially, HAT natively supports concept drift. When network conditions change abruptly (e.g., sudden bandwidth drops or severe cross-traffic bursts), outdated sections of the tree are pruned or replaced, ensuring the policy remains fresh.

Dual-Mode Operation and Action Routing

PolicyCache operates in two distinct operational modes governed by the action router:

  1. Backup Exploration Mode: Used when the tree model is uninitialized or deemed unreliable. The sender probes the network using paired increasing and decreasing rate adjustments. Utilities are computed based on RTT trends, support RTT, and packet loss, selecting the superior direction. While robust, this is slow because feedback spans multiple RTTs.
  2. Tree Model Execution Mode: Once enough samples are collected and the tree model matures, the system switches to executing the cached tree policy for instantaneous rate decisions.

To maintain model accuracy during high-speed execution, PolicyCache employs micro-exploration. This mechanism subtly perturbs model updates and captures feedback exclusively for continuous data collection and model verification, ensuring the tree adapts safely without destabilizing active throughput.

Alignment and Scoring

Because network feedback is inherently delayed, PolicyCache aligns each validated good action with the precise historical state that triggered it, generating reliable training samples. These same samples are passed to a model performance scoring module. The system monitors whether the tree model's updates agree with explored good actions. Agreement drives the confidence score up; disagreement drives it down. The action router uses this score dynamically: a high score commands tree inference, while a low score triggers an immediate fallback to backup exploration.

Prototype Implementation

The PolicyCache prototype is implemented as a dual-space architecture on Linux:

  • Kernel Space: Handles raw signal collection, backup exploration execution, and rate enforcement.
  • User Space: Manages the Hoeffding Adaptive Tree (HAT) training and inference pipeline, model switching logic, performance scoring, and sample alignment.
  • Inter-Process Communication: Utilizes high-performance low-latency mechanisms for fast kernel-to-user communication.

Experimental Setup & Results

▶ Watch: Implementation details and evaluation across diverse network conditions (9:36)

The evaluation of PolicyCache covered extensive testbeds ranging from emulated environments to complex real-world inter-continental links.

  • Test Vectors: The evaluation stressed the system across varying bandwidth scales, fluctuating latency profiles, injected random packet loss rates, and diverse buffer sizing configurations.
  • Baselines: PolicyCache was benchmarked against traditional heuristic protocols (TCP Cubic, BBR), exploration-based mechanisms, and learning-based neural network models (specifically Astrea).
  • Headline Performance: PolicyCache maintained consistent, high network link utilization alongside low latency across all emulated and real-world conditions. It avoided the misleading RTT signals that frequently destabilized neural network baselines like Astrea.
  • Dynamic Switching Behavior: Experiments demonstrated that during steady-state phases where the rate hovered near optimal, utility differences flattened, keeping scores below the trust threshold to safely utilize backup exploration. Upon a bandwidth shift, newly generated samples quickly established directional bias, spiked the model score above the threshold, and prompted an instant transition to tree execution mode.

Practical Implications

▶ Watch: Dynamic switching between tree inference and backup exploration (11:00)

For infrastructure teams, network operators, and transport protocol engineers, PolicyCache offers a compelling path toward autonomic, adaptable congestion control without the deployment hazards of heavy machine learning models.

  • Tradeoffs: While non-parametric trees eliminate the long training loops of deep learning, they require careful tuning of the Hoeffding bound parameters and confidence score thresholds to prevent oscillation between exploration and execution modes.
  • Deployability: Because PolicyCache combines kernel-space rate enforcement with user-space tree updates via low-latency IPC, it avoids the catastrophic CPU bottlenecks associated with running deep neural network inference per packet or per RTT.
  • Model Builders: This work challenges the assumption that better congestion control requires larger, more complex offline neural networks. Instead, it proves that localized, lightweight, stream-based adaptation can yield superior generalization in highly volatile networks.

Key Takeaways

  • Intra-Flow Learning Paradigm: Shifting learning and execution from cross-flow generalization to single-flow lifecycles eliminates cross-environment distribution mismatch.
  • Non-Parametric Efficiency: Utilizing Hoeffding Adaptive Trees (HAT) enables near-instantaneous online learning from streaming network samples without the slow convergence times of parametric neural networks.
  • Dynamic Dual-Mode Switching: A scoring mechanism safely toggles the transport layer between robust backup exploration and rapid cached tree model execution based on real-time reliability.
  • Concept Drift Adaptability: HAT models naturally accommodate shifting network dynamics by incrementally updating and replacing outdated tree structures.
  • Resource Efficiency: The system achieves high control responsiveness and consistent high utilization while maintaining a CPU overhead footprint comparable to standard heuristic algorithms.

About the Speaker(s)

Wenshu Li is a researcher at the University of Science and Technology of China (USTC). He presented this work on behalf of a collaborative research initiative involving authors from the University of Science and Technology of China, the Hong Kong University of Science and Technology, and Huawei Technologies Co., Ltd., focusing on advanced networking systems, transport protocols, and machine learning integration.

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)