arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.06790cs.CRcs.AI
收藏

SecMoE: 通过选择-然后计算实现通信高效的安全MoE推理

SecMoE: Communication-Efficient Secure MoE Inference via Select-Then-Compute

Bowen Shen, Yuyue Chen, Peng Yang, Bin Zhang, Xi Zhang, Zoe L. Jiang

AI总结:

SecMoE通过选择-然后计算方法,在保持隐私的同时实现高效安全的MoE推理,使模型规模扩大63倍,运行时间仅增加15.2倍。

摘要:

隐私保护的Transformer推理由于可能泄露私人信息而受到关注。尽管近年来取得了进展,但现有框架在实际模型规模上仍存在差距,差距可达百倍。一种可能的方法是混合专家(MoE)架构,它已成为一种有前途的技术,通过最小的开销来扩大模型容量。然而,由于当前的安全双当事人(2-PC)协议允许服务器对FFN层进行同态计算,使用其明文模型权重,在MoE设置下,这可能会揭示出被激活的专家,从而暴露客户端输入的令牌级隐私。虽然简单地在选择前评估所有专家可以保护隐私,但这就否定了MoE的稀疏性,并导致稀疏MoE所希望避免的沉重计算开销。为了解决上述隐私和效率限制,我们提出了一种2-PC隐私保护推理框架,称为SecMoE。通过在MoE层和分段多项式函数中统一每条记录的电路,SecMoE oblivious地选择从电路中提取的参数,并只计算一个加密条目,我们称之为选择-然后计算。这使得私有推理模型的规模扩大到63倍,而端到端运行时间仅增加15.2倍。广泛的实验表明,在5个专家设置下,SecMoE将端到端的隐私推理通信降低了1.8~7.1倍,并与最先进的(SOTA)协议相比实现了1.3~3.8倍的速度提升。

英文摘要:

Privacy-preserving Transformer inference has gained attention due to the potential leakage of private information. Despite recent progress, existing frameworks still fall short of practical model scales, with gaps up to a hundredfold. A possible way to close this gap is the Mixture of Experts (MoE) architecture, which has emerged as a promising technique to scale up model capacity with minimal overhead. However, given that the current secure two-party (2-PC) protocols allow the server to homomorphically compute the FFN layer with its plaintext model weight, under the MoE setting, this could reveal which expert is activated to the server, exposing token-level privacy about the client's input. While naively evaluating all the experts before selection could protect privacy, it nullifies MoE sparsity and incurs the heavy computational overhead that sparse MoE seeks to avoid. To address the privacy and efficiency limitations above, we propose a 2-PC privacy-preserving inference framework, \SecMoE. Unifying per-entry circuits in both the MoE layer and piecewise polynomial functions, \SecMoE obliviously selects the extracted parameters from circuits and only computes one encrypted entry, which we refer to as Select-Then-Compute. This makes the model for private inference scale to 63$\times$ larger while only having a 15.2$\times$ increase in end-to-end runtime. Extensive experiments show that, under 5 expert settings, \SecMoE lowers the end-to-end private inference communication by 1.8$\sim$7.1$\times$ and achieves 1.3$\sim$3.8$\times$ speedup compared to the state-of-the-art (SOTA) protocols.

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

↑