HawkEye:静态且准确地剖析多方学习中模型的通信成本
HawkEye: Statically and Accurately Profiling the Communication Cost of Models in Multi-party Learning
AI总结:
针对多方学习模型通信成本依赖人工和动态执行剖析的问题,本文提出 HawkEye 静态框架,利用前缀调用链与自动微分实现准确成本剖析。
摘要:
基于多方计算(MPC)的机器学习被称为多方学习(MPL),已成为在隐私保护下利用多方数据的一项重要技术。近年来,为了将 MPL 应用于更实际的场景,人们提出了各种对 MPC 友好的模型,以降低 MPL 极高的通信开销。在优化对 MPC 友好的模型时,应对该挑战的一个关键环节是剖析模型的通信成本。然而,当前解决方案主要依赖人工建立剖析结果以识别模型的通信瓶颈,这一过程单调,且通常需要繁重的人力投入。本文提出 HawkEye,这是一个静态模型通信成本剖析框架,使模型设计者无需在特定 MPL 框架上动态运行安全模型训练或推理过程,即可获得模型在 MPL 框架中的准确通信成本。首先,为剖析具有复杂结构的模型通信成本,我们提出一种基于前缀结构的静态通信成本剖析方法,该结构在静态分析期间记录函数调用链。其次,HawkEye 采用自动微分库,帮助模型设计者剖析 PyTorch 中模型的通信成本。最后,我们将 HawkEye 的静态剖析结果与在 CryptFlow2、CrypTen、Delphi、Cheetah 和 SecretFlow-SEMI2K 五个流行 MPL 框架上动态运行安全模型训练和推理过程所得的剖析结果进行比较。实验结果表明,HawkEye 能够在不进行动态剖析的情况下准确剖析模型通信成本。
英文摘要:
Multi-party computation (MPC) based machine learning, referred to as multi-party learning (MPL), has become an important technology for utilizing data from multiple parties with privacy preservation. In recent years, in order to apply MPL in more practical scenarios, various MPC-friendly models have been proposedto reduce the extraordinary communication overhead of MPL. Within the optimization of MPC-friendly models, a critical element to tackle the challenge is profiling the communication cost of models. However, the current solutions mainly depend on manually establishing the profiles to identify communication bottlenecks of models, often involving burdensome human efforts in a monotonous procedure. In this paper, we propose HawkEye, a static model communication cost profiling framework, which enables model designers to get the accurate communication cost of models in MPL frameworks without dynamically running the secure model training or inference processes on a specific MPL framework. Firstly, to profile the communication cost of models with complex structures, we propose a static communication cost profiling method based on a prefix structure that records the function calling chain during the static analysis. Secondly, HawkEye employs an automatic differentiation library to assist model designers in profiling the communication cost of models in PyTorch. Finally, we compare the static profiling results of HawkEye against the profiling results obtained through dynamically running secure model training and inference processes on five popular MPL frameworks, CryptFlow2, CrypTen, Delphi, Cheetah, and SecretFlow-SEMI2K. The experimental results show that HawkEye can accurately profile the model communication cost without dynamic profiling.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。