arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.15100cs.NI
收藏

Quark:在可编程数据平面上完全实现卷积神经网络

Quark: Implementing Convolutional Neural Networks Entirely on Programmable Data Plane

Mai Zhang, Lin Cui, Xiaoquan Zhang, Fung Po Tso, Zhen Zhang, Yuhui Deng, Zhetao Li

AI总结:

Quark 框架将 CNN 推理完全卸载到可编程数据平面,通过剪枝、量化和单元划分克服硬件资源限制,在 Tofino 上以低资源占用实现高准确率异常检测。

摘要:

可编程网络设备的快速发展和机器学习在网络中的广泛应用,促进了智能数据平面高效研究的发展。将机器学习卸载到可编程数据平面,能够快速分析和响应网络流量动态,并高效管理网络链路。然而,可编程数据平面的硬件流水线存在显著的资源限制。例如,Intel Tofino ASIC 每个阶段仅有 10Mb SRAM,并且缺乏对乘法、除法和浮点运算的支持。这些限制严重阻碍了智能数据平面的发展。本文提出了 Quark,一个将卷积神经网络推理完全卸载到可编程数据平面的框架。Quark 采用模型剪枝来简化 CNN 模型,并使用量化来支持浮点运算。此外,Quark 将 CNN 划分为更小的单元,以提高可编程数据平面上的资源利用率。我们在 P4 硬件交换机(Intel Tofino ASIC)和软件交换机(即 BMv2)上实现了 Quark 的测试平台原型。大量评估结果表明,Quark 在异常检测任务中达到了 97.3% 的准确率,同时仅使用了 Intel Tofino ASIC 交换机上 22.7% 的 SRAM 资源,并以平均 42.66 微秒的延迟在线速完成推理任务。

英文摘要:

The rapid development of programmable network devices and the widespread use of machine learning (ML) in networking have facilitated efficient research into intelligent data plane (IDP). Offloading ML to programmable data plane (PDP) enables quick analysis and responses to network traffic dynamics, and efficient management of network links. However, PDP hardware pipeline has significant resource limitations. For instance, Intel Tofino ASIC has only 10Mb SRAM in each stage, and lacks support for multiplication, division and floating-point operations. These constraints significantly hinder the development of IDP. This paper presents \quark, a framework that fully offloads convolutional neural network (CNN) inference onto PDP. \quark employs model pruning to simplify the CNN model, and uses quantization to support floating-point operations. Additionally, \quark divides the CNN into smaller units to improve resource utilization on the PDP. We have implemented a testbed prototype of \quark on both P4 hardware switch (Intel Tofino ASIC) and software switch (i.e., BMv2). Extensive evaluation results demonstrate that \quark achieves 97.3\% accuracy in anomaly detection task while using only 22.7\% of the SRAM resources on the Intel Tofino ASIC switch, completing inference tasks at line rate with an average latency of 42.66$μs$.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑