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

SecPE:面向隐私保护与鲁棒的大语言模型的安全提示集成

SecPE: Secure Prompt Ensembling for Private and Robust Large Language Models

Zhejiang University(浙江大学);Hangzhou High-Tech Zone (Binjiang) Blockchain and Data Security Research Institute(杭州高新区(滨江)区块链与数据安全研究院)

Jiawen Zhang, Kejia Chen, Zunlei Feng, Jian Lou, Mingli Song, Jian Liu, Xiaohu Yang

AI总结:

本文提出 SecPE 框架,通过为提示集成设计全同态加密模块,首次联合实现大语言模型的隐私保护与对抗鲁棒性,在仅增加 2.5% 效率开销下保持高准确率,并将加密 Argmax 提速 35.4 倍。

摘要:

随着大语言模型(LLM)在普通公众用户中的日益普及,隐私保护和对抗鲁棒性已成为基于 LLM 的服务的两大迫切需求,这两者在很大程度上一直被分别追求,而很少被联合考虑。据我们所知,本文是最早尝试通过紧密整合两个原本互不关联的领域——隐私推理和提示集成——来实现鲁棒且隐私的 LLM 推理的研究之一。前者通过加密 LLM 传输和处理的推理数据来保护用户隐私,而后者通过从多个提示化的 LLM 响应中产生聚合输出来增强对抗鲁棒性。尽管两者各自被广泛认为有效,但将提示集成的隐私推理结合在一起会带来新的挑战,使得现有技术的简单组合变得低效。为了克服这些障碍,我们提出了 SecPE,它为提示集成的核心算法构建模块设计了高效的全同态加密(FHE)对应物。我们在 8 个任务上进行了大量实验,以评估 SecPE 的准确性、鲁棒性和效率。结果表明,与基线隐私推理方法相比,SecPE 保持了较高的干净准确率,并仅以 2.5% 的效率开销为代价提供了更好的鲁棒性,这表明其实现了令人满意的“准确性-鲁棒性-效率”权衡。对于会导致提示集成出现主要减速的加密 Argmax 操作的效率问题,SecPE 比最先进的同类方法快 35.4 倍,这一成果在本工作之外也具有独立的研究价值。

英文摘要:

With the growing popularity of LLMs among the general public users, privacy-preserving and adversarial robustness have become two pressing demands for LLM-based services, which have largely been pursued separately but rarely jointly. In this paper, to the best of our knowledge, we are among the first attempts towards robust and private LLM inference by tightly integrating two disconnected fields: private inference and prompt ensembling. The former protects users' privacy by encrypting inference data transmitted and processed by LLMs, while the latter enhances adversarial robustness by yielding an aggregated output from multiple prompted LLM responses. Although widely recognized as effective individually, private inference for prompt ensembling together entails new challenges that render the naive combination of existing techniques inefficient. To overcome the hurdles, we propose SecPE, which designs efficient fully homomorphic encryption (FHE) counterparts for the core algorithmic building blocks of prompt ensembling. We conduct extensive experiments on 8 tasks to evaluate the accuracy, robustness, and efficiency of SecPE. The results show that SecPE maintains high clean accuracy and offers better robustness at the expense of merely $2.5\%$ efficiency overhead compared to baseline private inference methods, indicating a satisfactory ``accuracy-robustness-efficiency'' tradeoff. For the efficiency of the encrypted Argmax operation that incurs major slowdown for prompt ensembling, SecPE is 35.4x faster than the state-of-the-art peers, which can be of independent interest beyond this work.

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

↑