Comet:一种用于私有 Transformer 推理的通信高效且高性能近似方法
Comet: A Communication-efficient and Performant Approximation for Private Transformer Inference
AI总结:
针对私有 Transformer 推理通信开销大的问题,本文提出插件式方法 Comet 及高效初始近似技术,在 Bert、RoBERTa 和 GLUE 上实现最高 3.9 倍通信减少与 3.5 倍加速。
摘要:
类 Transformer 模型的广泛使用(以现代语言处理应用中的 ChatGPT 为代表),凸显了实现私有推理的迫切需求,这对于许多依赖此类模型的云服务至关重要。然而,现有隐私保护框架带来了沉重的通信负担,尤其是 Transformer 模型中的非线性计算。本文提出一种新型插件式方法 Comet,可在不损害推理性能的情况下有效降低通信成本。我们其次引入一种高效近似方法,以消除在寻找良好初始近似时产生的大量通信。我们在 Bert 和 RoBERTa 模型上使用 GLUE 基准数据集评估 Comet,结果表明,与现有最优方法相比,其通信量最多减少 3.9 倍,速度提升最高达 3.5 倍,同时保持具有竞争力的模型性能。
英文摘要:
The prevalent use of Transformer-like models, exemplified by ChatGPT in modern language processing applications, underscores the critical need for enabling private inference essential for many cloud-based services reliant on such models. However, current privacy-preserving frameworks impose significant communication burden, especially for non-linear computation in Transformer model. In this paper, we introduce a novel plug-in method Comet to effectively reduce the communication cost without compromising the inference performance. We second introduce an efficient approximation method to eliminate the heavy communication in finding good initial approximation. We evaluate our Comet on Bert and RoBERTa models with GLUE benchmark datasets, showing up to 3.9$\times$ less communication and 3.5$\times$ speedups while keep competitive model performance compared to the prior art.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。