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

FuseFSS:基于函数秘密共享的高效安全LLM推理

FuseFSS: Efficient Secure LLM Inference with Function Secret Sharing

University of Science and Technology of China(中国科学技术大学)

Yuhan Ma, Yong Li, Stefan Schmid

AI总结:

提出FuseFSS编译器,通过统一编译流水线替代逐算子协议设计,实现安全推理中非线性与辅助操作的高效处理,在BERT和GPT模型上取得1.24-1.50倍加速并减少通信与预处理开销。

摘要:

双服务器安全推理允许客户端查询托管的大型语言模型(LLM)而不泄露提示或嵌入。基于函数秘密共享(FSS)的最新GPU系统使线性层高效,但定点非线性和辅助操作仍是瓶颈,因为每个算子通常通过自定义协议实现,包含各自的比较、回绕校正和预处理材料。我们提出FuseFSS,一个编译器,用单一编译流水线替代逐算子协议设计。对于每个定点算子,一个紧凑的规范列出其区间划分、低次算术片段和所需的谓词位。编译器在公开掩码值上执行两次批处理FSS评估:一次打包比较返回所有谓词位,一次向量区间查找返回活跃系数和常数。与当前最先进的基于FSS的GPU安全推理相比,FuseFSS在保持精度的同时,在BERT和GPT风格模型上实现了1.24倍至1.50倍的端到端加速,并将在线通信减少了9%至16%;预处理也更轻量,密钥生成时间降低14%至23%,密钥大小减小20%至24%。

英文摘要:

Two-server secure inference allows a client to query a hosted large language model (LLM) without revealing prompts or embeddings. Recent GPU systems based on function secret sharing (FSS) make linear layers efficient, but fixed-point nonlinearities and helper operations remain a bottleneck because each operator is typically implemented as a bespoke protocol with its own comparisons, wrap-around corrections, and preprocessing material. We present FuseFSS, a compiler that replaces per-operator protocol design with a single compilation pipeline. For each scalar fixed-point operator, a compact specification lists its interval partition, low-degree arithmetic pieces, and required predicate bits. The compiler emits two batched FSS evaluations on the public masked value: one packed comparison that returns all predicate bits, and one vector interval lookup that returns the active coefficients and constants. Compared to the current state-of-the-art FSS-based GPU secure inference, FuseFSS preserves accuracy while achieving a $1.24\times$--$1.50\times$ end-to-end speedup and reducing online communication by $9\%$--$16\%$ on BERT and GPT-style models; preprocessing is also lighter, with $14\%$--$23\%$ lower key-generation time and $20\%$--$24\%$ smaller keys.

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

↑