[Paper Review] Automating In-Network Machine Learning
Planter is an open-source modular framework that maps trained ML models to programmable network devices, enabling line-rate in-network inference across multiple architectures and targets with minimal latency impact and competitive accuracy.
Using programmable network devices to aid in-network machine learning has been the focus of significant research. However, most of the research was of a limited scope, providing a proof of concept or describing a closed-source algorithm. To date, no general solution has been provided for mapping machine learning algorithms to programmable network devices. In this paper, we present Planter, an open-source, modular framework for mapping trained machine learning models to programmable devices. Planter supports a wide range of machine learning models, multiple targets and can be easily extended. The evaluation of Planter compares different mapping approaches, and demonstrates the feasibility, performance, and resource efficiency for applications such as anomaly detection, financial transactions, and quality of experience. The results show that Planter-based in-network machine learning algorithms can run at line rate, have a negligible effect on latency, coexist with standard switching functionality, and have no or minor accuracy trade-offs.
Motivation & Objective
- Motivate the need for a general, reproducible in-network ML mapping solution beyond prior proofs-of-concept.
- Provide a modular framework (Planter) that supports multiple ML models, architectures, and targets in in-network inference.
- Enable end-to-end automation from dataset training to deployment on programmable network devices.
- Evaluate Planter’s performance, resource usage, and scalability across representative use cases.
Proposed method
- Introduce Planter’s modular architecture and seven-step workflow from data loading and training to P4 code generation and deployment.
- Implement a broad set of ML models (e.g., SVM, KM, DT, NB, RF, XGB, NN, PCA, AE) using encode-based, lookup-based, and direct-mapping strategies.
- Map models to three P4 architectures/targets (TNA, v1model, PSA with Tofino, BMv2, P4Pi) via a dedicated P4 generator and compiler pipeline.
- Provide automated tooling for model conversion, table generation, and test script creation to validate deployment on target hardware.
- Offer comparison and evaluation of mapping approaches in terms of functionality, resources, throughput, and accuracy.
Experimental results
Research questions
- RQ1Can Planter universally map a wide range of ML models to multiple programmable network targets while preserving performance?
- RQ2What are the throughput and latency implications of Planter-mapped in-network ML on commercial switches and NICs?
- RQ3How do different mapping strategies (encode-based, lookup-based, direct-mapping) compare in resource usage and accuracy?
- RQ4To what extent do Planter-generated in-network ML models maintain server-side accuracy and scalability across use cases (e.g., anomaly detection, financial transactions, QoE)?
- RQ5What is Planter’s ease of use, modularity, and extensibility for adding new models, architectures, and targets?
Key findings
- Planter enables in-network ML algorithms to run at line rate on a commercial switch (Tofino).
- Planter-based mappings incur negligible latency overhead and coexist with standard switching functionality.
- Most Planter-mapped algorithms achieve server-side accuracy or incur only minor accuracy loss for comparable model sizes.
- Planter supports a wide range of ML models and mappings across multiple architectures and targets with modular, extendable design.
- The framework demonstrates feasibility and resource efficiency for practical use cases such as anomaly detection, financial transactions, and QoE prediction.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.