Skip to main content
QUICK REVIEW

[论文解读] Automating In-Network Machine Learning

Changgang Zheng, Mingyuan Zang|arXiv (Cornell University)|May 18, 2022
IoT and Edge/Fog ComputingComputer Science被引用 36
一句话总结

Planter 是一个开源的模块化框架,将训练好的 ML 模型映射到可编程网络设备,实现跨多种架构和目标的线速在网推理,几乎无延迟影响且具有竞争力的准确性。

ABSTRACT

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.

研究动机与目标

  • 推动超越先前概念验证,建立一个通用、可重复的在网络内 ML 映射解决方案的需求。
  • 提供一个模块化框架(Planter),在在网络推理中支持多种 ML 模型、架构和目标。
  • 实现从数据集训练到在可编程网络设备上的部署的端到端自动化。
  • 在代表性用例中评估 Planter 的性能、资源消耗和可扩展性。

提出的方法

  • 介绍 Planter 的模块化架构以及从数据加载和训练到 P4 代码生成与部署的七步工作流。
  • 使用基于编码、基于查找以及直接映射等策略实现广泛的 ML 模型(例如 SVM、KM、DT、NB、RF、XGB、NN、PCA、AE)。
  • 通过专用的 P4 生成器和编译管线,将模型映射到三种 P4 架构/目标(TNA、v1model、PSA 与 Tofino、BMv2、P4Pi) 。
  • 提供用于模型转换、表格生成和测试脚本创建的自动化工具,以在目标硬件上验证部署。
  • 在功能性、资源、吞吐量和准确性方面提供映射方法的比较与评估。

实验结果

研究问题

  • RQ1Planter 是否能在保持性能的前提下,将广泛的 ML 模型通用映射到多种可编程网络目标?
  • RQ2Planter 映射到的在网 ML 在商用交换机和网卡上的吞吐量和延迟影响是什么?
  • RQ3不同映射策略(基于编码、基于查找、直接映射)在资源消耗和准确性方面有何差异?
  • RQ4Planter 生成的在网 ML 模型在各用例(如异常检测、金融交易、QoE)中的服务器端准确性和可扩展性在多大程度上得到维持?
  • RQ5Planter 的易用性、模块化以及为添加新模型、架构和目标所具备的可扩展性如何?

主要发现

  • Planter 使在网 ML 算法能够在商用交换机(Tofino)上以线速运行。
  • 基于 Planter 的映射几乎不产生额外延迟,与标准交换功能共存。
  • 大多数 Planter 映射的算法在服务器端能达到准确性,或在可比模型规模下仅带来微小的准确性损失。
  • Planter 支持跨多种架构和目标的一系列 ML 模型及映射,具有模块化、可扩展的设计。
  • 该框架在实际用例(如异常检测、金融交易和 QoE 预测)中展示了可行性与资源效率。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。