arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2307.06561cs.DC
收藏

基于智能网卡的联邦学习服务器性能优化

Performance Improvement of Federated Learning Server using Smart NIC

Naoki Shibahara, Michihiro Koibuchi, Hiroki Matsutani

AI总结:

针对联邦学习服务器网络处理负载高的问题,将其卸载至带8核的NVIDIA BlueField-2 DPU,结合DPDK分配专用核心、多核并行聚合及消除线程排他访问的近似设计,实现1.39倍加速且精度损失可忽略。

摘要:

联邦学习是一种分布式机器学习方法,由客户端在本地训练得到的局部权重参数,会被服务器聚合为全局参数。该方法无需将客户端持有的隐私敏感原始数据上传至服务器,即可完成全局参数的训练。服务器端的聚合操作仅通过对局部权重参数求平均实现,因此属于I/O密集型任务,其中网络处理占比远高于计算部分。随着客户端数量增加,网络处理负载会进一步上升。为缓解网络处理负载,本文将联邦学习服务器卸载至NVIDIA BlueField-2 DPU——这是一款配备8个处理核心的智能网卡(Network Interface Card)。研究通过DPDK(Data Plane Development Kit,数据平面开发套件)分配专用处理核心,用于接收局部权重参数和发送全局参数,同时利用DPU上的多个核心对聚合任务进行并行化处理。为进一步提升性能,还实现了一种近似设计,可消除计算线程之间的排他访问控制。评估结果显示,与主机CPU上的基线服务器相比,本文提出的、部署在DPU上且带近似设计的基于DPDK的联邦学习服务器,可将执行时间加速1.39倍,且精度损失可忽略不计。

英文摘要:

Federated learning is a distributed machine learning approach where local weight parameters trained by clients locally are aggregated as global parameters by a server. The global parameters can be trained without uploading privacy-sensitive raw data owned by clients to the server. The aggregation on the server is simply done by averaging the local weight parameters, so it is an I/O intensive task where a network processing accounts for a large portion compared to the computation. The network processing workload further increases as the number of clients increases. To mitigate the network processing workload, in this paper, the federated learning server is offloaded to NVIDIA BlueField-2 DPU which is a smart NIC (Network Interface Card) that has eight processing cores. Dedicated processing cores are assigned by DPDK (Data Plane Development Kit) for receiving the local weight parameters and sending the global parameters. The aggregation task is parallelized by exploiting multiple cores available on the DPU. To further improve the performance, an approximated design that eliminates an exclusive access control between the computation threads is also implemented. Evaluation results show that the proposed DPDK-based federated learning server on the DPU with the approximation accelerates the execution time by 1.39 times with a negligible accuracy loss compared with a baseline server on the host CPU.

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

↑