SPLIDT: Partitioned Decision Trees for Scalable Stateful Inference at Line Rate

Murayyiam Parvez (Purdue University), Annus Zulfiqar (University of Michigan), Roman Beltiukov (UCSB), Shir Landau Feibish (University of Haifa), Walter Willinger (Northwestern University), Arpit Gupta (UCSB), Muhammad Shahbaz (University of Michigan)

23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 1 · Overfitting the Internet

Overview

As modern networks push higher speeds and scales, machine learning is increasingly deployed directly inside programmable data planes—such as programmable switches and SmartNICs—to handle real-time traffic classification, anomaly detection, congestion control, and adaptive bit-rate streaming at line rate. Moving beyond static rules, these systems use ML models like deep reinforcement learning, large language models, and deep neural networks to make predictive decisions based on live traffic patterns. However, deploying complex ML models on programmable hardware presents immense deployment challenges, as traditional neural approaches require specialized accelerators like GPUs or TPUs relying on floating-point and matrix compute units.

Watch on YouTube · Slides

Visual summary for SPLIDT: Partitioned Decision Trees for Scalable Stateful Inference at Line Rate by Murayyiam Parvez, Annus Zulfiqar, Roman Beltiukov, Shir Landau Feibish, Walter Willinger, Arpit Gupta, Muhammad Shahbaz
Visual summary for SPLIDT: Partitioned Decision Trees for Scalable Stateful Inference at Line Rate by Murayyiam Parvez, Annus Zulfiqar, Roman Beltiukov, Shir Landau Feibish, Walter Willinger, Arpit Gupta, Muhammad Shahbaz

Key moments

  1. 0:00 Introduction and motivation for machine learning in networking
  2. 1:54 Limitations of existing single-pass decision tree approaches
  3. 4:24 Overview of SPLIDT and time-shared partitioned inference
  4. 7:45 Key design challenges and Bayesian optimization framework
  5. 11:34 Custom training approach for partitioned decision trees
  6. 13:00 Analysis of flow window sizes and recirculation bandwidth
  7. 14:15 Evaluation results and performance comparisons with baselines

SPLIDT: Partitioned Decision Trees for Scalable Stateful Inference at Line Rate

Speakers: Murayyiam Parvez, Researcher, Purdue University; Annus Zulfiqar, PhD Student, University of Michigan; Roman Beltiukov, Researcher, UCSB; Shir Landau Feibish, Researcher, University of Haifa; Walter Willinger, Researcher, Northwestern University; Arpit Gupta, Assistant Professor, UCSB; Muhammad Shahbaz, Assistant Professor, University of Michigan

Conference: USENIX NSDI

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

Overview

As modern networks push higher speeds and scales, machine learning is increasingly deployed directly inside programmable data planes—such as programmable switches and SmartNICs—to handle real-time traffic classification, anomaly detection, congestion control, and adaptive bit-rate streaming at line rate. Moving beyond static rules, these systems use ML models like deep reinforcement learning, large language models, and deep neural networks to make predictive decisions based on live traffic patterns. However, deploying complex ML models on programmable hardware presents immense deployment challenges, as traditional neural approaches require specialized accelerators like GPUs or TPUs relying on floating-point and matrix compute units.

To circumvent these hardware limitations, existing networking systems have widely adopted decision tree models because they are interpretable, verifiable, and map cleanly onto hardware match-action table architectures using TCAM (Ternary Content-Addressable Memory) and SRAM rules alongside stateful ALUs and registers for per-flow state tracking. Despite this architectural alignment, traditional in-network decision tree deployments suffer from a fundamental bottleneck: rule explosion. To fit within strict hardware pipeline limits, systems traditionally enforce a "one-shot" execution model where feature collection and inference must happen in a single pass. This forces operators to cap models to a small subset of features (top-$K$), sacrificing predictive accuracy to stay within available register memory constraints.

This talk introduces SPLIDT (Partitioned Decision Trees for Scalable Stateful Inference at Line Rate), a novel systems framework that bridges the gap between hardware resource limits and model accuracy. By rethinking in-network inference as a time-shared process rather than a single-pass execution, SPLIDT decouples total feature capacity from physical register memory. Through a combination of tree partitioning, window-based training, and controlled packet recirculation, SPLIDT allows programmable hardware to scale its feature capacity by up to $5\times$ while maintaining line-rate execution and high F1 scores.

Background

▶ Watch: Introduction and motivation for machine learning in networking (0:00)

The convergence of networking and machine learning has driven substantial research into executing predictive models inside high-speed data planes. Programmable hardware architectures—such as P4-programmable switches—provide packet-processing pipelines with limited stages, constrained memory per stage, and specialized match-action units. While deep neural networks deliver high accuracy in offline or server-attached environments, their reliance on floating-point arithmetic and dense matrix multiplications renders them impractical for line-rate data plane deployment on standard switch Application-Specific Integrated Circuits (ASICs).

Consequently, decision trees have emerged as the primary vehicle for hardware-accelerated machine learning in networking. Their hierarchical branching logic translates directly into TCAM rules for routing decisions and SRAM-backed stateful registers for computing per-flow metrics (e.g., packet rates, byte counters, inter-arrival times). Prior systems like NetBeacon and LEO attempted to deploy decision trees in programmable data planes by addressing rule explosion through tree pruning and rule compression techniques.

However, all prior schemes share a critical architectural constraint: they treat the programmable switch as a spatially mapped architecture requiring one-shot feature collection and inference. In a typical pipeline with a fixed number of stages (e.g., six stages), offloading complex tree logic into the final stages leaves only a few preceding stages available for feature calculation and storage. This forces designers to restrict models to a small, fixed top-$K$ feature subset. As flow volume and diversity scale, this restricted feature space prevents decision trees from reaching their full accuracy potential, creating a persistent performance gap between resource-constrained data plane models and ideal unconstrained models. SPLIDT was developed to overcome this spatial limitation by leveraging temporal sharing across the switch pipeline.

Key Findings

▶ Watch: Overview of SPLIDT and time-shared partitioned inference (4:24)

The primary discovery presented in the talk is that treating in-network inference as a temporal, multi-stage process rather than a spatial, single-pass operation fundamentally alters the resource-accuracy tradeoff in programmable switches. Key findings and performance characteristics include:

  • $5\times$ Feature Capacity Scaling: SPLIDT supports up to $5\times$ more stateful features than state-of-the-art decision tree implementations while consuming identical register memory.
  • Decoupled Feature Space and Memory: Physical register memory utilization remains entirely flat as the total number of features supported across the entire decision tree increases.
  • Superior Pareto-Optimality: Across diverse workloads spanning IoT traffic classification, VPN identification, and network intrusion detection, SPLIDT consistently achieves higher F1 scores at equivalent flow capacities compared to baselines like NetBeacon and LEO.
  • Negligible Recirculation Overhead: Despite relying on packet recirculation to reset execution context between partitions, the actual recirculation bandwidth required represents a tiny fraction of incoming line-rate traffic (scaling on the order of the number of partitions per flow).
  • Zero Latency Penalty: Flow-level time-to-detection metrics on real-world datacenter traces (e.g., web server and Hadoop workloads) demonstrate that SPLIDT achieves performance comparable to single-pass baselines without introducing noticeable packet processing delays.

Technical Deep Dive

▶ Watch: Key design challenges and Bayesian optimization framework (7:45)

The architectural engine behind SPLIDT rests on four core technical pillars: tree partitioning, window-based training, uniform window sizing, and controlled recirculation bandwidth management.

Partitioned Decision Trees and Time-Shared Inference

Instead of executing a monolithic decision tree in a single pipeline pass, SPLIDT divides a large decision tree into $N$ sequential partitions. Each partition contains multiple subtrees operating on their own localized top-$K$ feature sets. When the first packet window of a flow arrives, the switch executes the active subtree in the initial partition. Rather than outputting a terminal classification label (e.g., benign or malicious), this partial inference determines which specific subtree should be activated in the subsequent partition for that particular flow.

To update the active subtree ID without altering the underlying switch hardware architecture, SPLIDT recirculates a single packet through the switch pipeline. This recirculated packet serves as an in-band control channel that clears local registers and updates the active subtree context. As subsequent packet windows arrive, the switch collects a completely different set of top-$K$ features required by the newly activated subtree. This process repeats across partitions until the terminal partition delivers the final flow classification.

Automated Design Space Exploration and Bayesian Optimization

Designing an optimal partitioned decision tree requires balancing multiple conflicting objectives: maximizing the F1 score, maximizing supported flow counts, and respecting hardware constraints such as TCAM rule limits, SRAM register capacity, and recirculation bandwidth.

The design space is parameterized by three primary variables:

  1. Total decision tree depth ($D$).
  2. The partitioning strategy (where cuts are placed across tree levels).
  3. The maximum feature count ($K$) per subtree.

Because the number of possible tree cuts for a tree of depth $D$ scales as $2^{D-1}$, SPLIDT formulates this as a multi-objective optimization problem solved via Bayesian optimization. In each iteration of the search framework, the optimizer tests configuration parameters, evaluates training performance, estimates resource consumption (TCAM/SRAM allocation), and feeds feasibility metrics back into the Bayesian search loop. Across tested datasets, search iterations converge within roughly 150 iterations, taking approximately 5 minutes per iteration (about 2 to 3 hours total convergence time).

Window-Based Training

Because inference operates at the granularity of packet windows rather than complete flows, SPLIDT employs a specialized recursive training algorithm that mirrors runtime execution. Training begins at the root subtree using the first packet window of each flow, restricted to its specific top-$K$ features. Flows are routed through leaf nodes to subsequent subtrees in the second partition, where training continues using the second packet window and its corresponding feature set. This recursive process ensures that every subtree in every partition is trained explicitly on the packet window distribution it will encounter in the live network.

Uniform Window Sizing and Recirculation Control

To prevent the hyperparameter search space from exploding exponentially, SPLIDT enforces uniformly sized packet windows across all partitions for any given flow. This guarantees that each partition receives an equitable amount of traffic data to drive partial inference. Furthermore, by limiting packet recirculation to exactly $N$ passes (where $N$ is the number of partitions), the framework ensures that recirculation bandwidth remains negligible regardless of overall traffic volume.

Experimental Setup & Results

▶ Watch: Analysis of flow window sizes and recirculation bandwidth (13:00)

Datasets and Workloads

The evaluation framework utilizes seven distinct datasets spanning four application domains:

  • Internet of Things (IoT) traffic classification
  • General traffic classification
  • Virtual Private Network (VPN) identification
  • Network intrusion detection

Detailed results highlight performance on core representative datasets (D1 through D3), supported by real-world datacenter traffic traces from web server and Hadoop environments.

Baselines

SPLIDT is benchmarked against two state-of-the-art programmable data plane decision tree implementations:

  • NetBeacon
  • LEO

Headline Results and Metrics

  • F1 Score vs. Flow Scalability: Across feasible models operating under identical switch resource constraints, SPLIDT achieves markedly superior Pareto-optimal curves, delivering higher F1 scores at high flow counts where baseline models suffer severe accuracy degradation due to feature starvation.
  • Time-to-Detection: Flow-level detection latency remains statistically indistinguishable from baseline single-pass systems, proving that multi-stage window processing and packet recirculation do not degrade real-time responsiveness.
  • TCAM Budget Efficiency: For any fixed TCAM rule budget, SPLIDT yields higher F1 classification accuracy than competing single-pass designs.
  • Register Memory Scaling: When plotting register bits per flow against total supported feature count across configurations (split1 through split4), SPLIDT maintains a completely flat memory utilization profile, confirming that feature space is successfully decoupled from physical memory.

Practical Implications

▶ Watch: Evaluation results and performance comparisons with baselines (14:15)

For network infrastructure teams, model builders, and data plane deployers, SPLIDT represents a shift in how machine learning models are engineered for programmable hardware. By breaking away from the rigid single-pass dogma of traditional P4 data plane design, practitioners can deploy richer, higher-accuracy models without upgrading physical switch silicon or expanding scarce SRAM/TCAM resources.

However, engineers must consider certain operational tradeoffs and limitations:

  • Recirculation Management: While recirculation overhead is mathematically bounded and minimal in practice, heavy network loads combined with excessive partition counts ($N$) could theoretically impact total switch forwarding capacity if not carefully tuned during the Bayesian optimization phase.
  • Offline Design Space Exploration: Finding the optimal partition configuration requires a non-trivial offline computation phase (taking up to a few hours of Bayesian search). Models cannot dynamically repartition themselves in response to abrupt traffic shifts without running this optimization pipeline offline.
  • State Synchronization: Window-based partial inference assumes uniform packet window behavior; highly bursty or erratic traffic distributions may require careful tuning of window sizing parameters during training.

Key Takeaways

  • Overcoming Spatial Bottlenecks: Traditional in-network decision trees are bottlenecked by one-shot feature collection limits; SPLIDT solves this by treating inference as a time-shared, multi-stage process.
  • Fivefold Feature Expansion: SPLIDT scales feature capacity by up to $5\times$ while keeping physical register memory utilization entirely flat.
  • Automated Multi-Objective Design: A Bayesian optimization framework automates tree partitioning, depth selection, and feature allocation to maximize both F1 score and flow scalability.
  • Mirrored Training Methodology: Recursive window-based training ensures that individual subtrees are trained precisely on the traffic distributions they will observe at runtime.
  • Negligible Recirculation Cost: Constraining recirculation to the number of partitions ($N$) ensures that control-plane feedback overhead remains orders of magnitude below line-rate traffic volumes.

About the Speaker(s)

The research presented represents a collaborative academic effort across multiple institutions. Annus Zulfiqar is a PhD student at the University of Michigan, Ann Arbor, specializing in programmable network systems and data plane machine learning. Co-authors and contributors include researchers from Purdue University (Murayyiam Parvez), University of Michigan (Muhammad Shahbaz), UCSB (Roman Beltiukov, Arpit Gupta), University of Haifa (Shir Landau Feibish), and Northwestern University (Walter Willinger), bringing together expertise in networking, systems architecture, and applied machine learning.

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)