Pegasus:一个在数据平面上进行可扩展深度学习推理的通用框架
Pegasus: A Universal Framework for Scalable Deep Learning Inference on the Dataplane
AI总结:
本文提出 Pegasus 框架,通过 Partition、Map、SumReduce 原语及原语融合在 P4 数据平面实现通用、可扩展的 DL 推理,显著提升准确率、模型规模与输入规模。
摘要:
智能数据平面(Intelligent DataPlane,IDP)范式将深度学习(DL)模型嵌入网络数据平面,以线速实现智能流量分析。然而,当前在数据平面上使用的匹配-动作表(match-action table,MAT)抽象与深度学习推理并不匹配,导致若干关键局限,包括准确率下降、规模受限以及缺乏通用性。本文提出 Pegasus 来解决这些局限。Pegasus 将深度学习操作转换为三种面向数据平面的原语以实现通用性:Partition、Map 和 SumReduce。具体而言,Partition 将高维特征“划分”为多个低维向量,使其更适合数据平面;Map 借助模糊匹配技术并行“攻克”低维向量上的计算,而 SumReduce 则“合并”计算结果。此外,Pegasus 采用原语融合(Primitive Fusion)来合并计算,提升可扩展性。最后,Pegasus 采用全精度权重与定点激活以提高准确率。我们在 P4 交换机上的实现表明,Pegasus 能够在数据平面上有效支持多种类型的深度学习模型,包括多层感知机(MLP)、循环神经网络(RNN)、卷积神经网络(CNN)和 AutoEncoder 模型。同时,Pegasus 优于最先进方法,平均准确率最高提升 22.8%,支持的模型规模最高扩大 248 倍,输入规模最高扩大 212 倍。
英文摘要:
The paradigm of Intelligent DataPlane (IDP) embeds deep learning (DL) models on the network dataplane to enable intelligent traffic analysis at line-speed. However, the current use of the match-action table (MAT) abstraction on the dataplane is misaligned with DL inference, leading to several key limitations, including accuracy degradation, limited scale, and lack of generality. This paper proposes Pegasus to address these limitations. Pegasus translates DL operations into three dataplane-oriented primitives to achieve generality: Partition, Map, and SumReduce. Specifically, Partition "divides" high-dimensional features into multiple low-dimensional vectors, making them more suitable for the dataplane; Map "conquers" computations on the low-dimensional vectors in parallel with the technique of fuzzy matching, while SumReduce "combines" the computation results. Additionally, Pegasus employs Primitive Fusion to merge computations, improving scalability. Finally, Pegasus adopts full precision weights with fixed-point activations to improve accuracy. Our implementation on a P4 switch demonstrates that Pegasus can effectively support various types of DL models, including Multi-Layer Perceptron (MLP), Recurrent Neural Network (RNN), Convolutional Neural Network (CNN), and AutoEncoder models on the dataplane. Meanwhile, Pegasus outperforms state-of-the-art approaches with an average accuracy improvement of up to 22.8%, along with up to 248x larger model size and 212x larger input scale.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。