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

机密提示:云上隐私保护大语言模型推理

Confidential Prompting: Privacy-preserving LLM Inference on Cloud

Yale University(耶鲁大学)

Caihua Li, In Gim, Lin Zhong

AI总结:

针对云托管LLM推理中的用户提示与模型参数隐私泄露风险,本文提出基于机密计算的Petridish系统,通过核心技术安全分区解码(SPD)实现兼顾效率、输出一致性的可审计隐私保护推理。

摘要:

本文提出了机密提示的构想:在保护模型机密性、输出不变性与计算效率的同时,防止用户提示被不可信的云托管大语言模型(LLM)窃取。作为实现该构想的第一步,我们推出了基于机密计算构建的系统Petridish,其核心贡献是名为安全分区解码(SPD)的新技术。Petridish在机密虚拟机(CVM)内部运行LLM服务,可保护LLM参数、用户提示等机密数据不被CVM外部的攻击者获取。值得注意的是,它利用SPD将面向单用户的LLM服务拆分为两个进程:单用户进程负责使用用户提示执行预填充,并在解码阶段计算注意力分数;所有用户共享的服务进程则批量处理来自各单用户进程的注意力分数,为所有用户生成输出词元。LLM提供商与用户均信任Petridish的CVM及其操作系统,该系统可保障进程间隔离,并限制进程的出站网络能力以控制信息流。CVM的证明能力及其开源软件栈使Petridish能够为用户提示和LLM的机密性提供可审计的保护。综上,Petridish保留了LLM服务的全部效用,可面向个人数据处理、临床记录、金融文档处理等敏感应用,实现实用的隐私保护云托管LLM推理。

英文摘要:

This paper introduces a vision of confidential prompting: securing user prompts from an untrusted, cloud-hosted large language model (LLM) while preserving model confidentiality, output invariance, and compute efficiency. As a first step toward this vision, we present Petridish, a system built on top of confidential computing and its core contribution, a novel technology called Secure Partitioned Decoding (SPD). Petridish runs the LLM service inside a confidential virtual machine (CVM), which protects the secrets, i.e., the LLM parameters and user prompts, from adversaries outside the CVM. Importantly, it splits the LLM service for a user into two processes, using SPD: a per-user process performs prefill with the user prompts and computes attention scores during decoding; a service process, shared by all users, batches the attention scores from per-user processes and generates output tokens for all users. Both the LLM provider and the users trust Petridish's CVM and its operating system, which guarantees isolation between processes and limits their outbound network capabilities to control information flow. The CVM's attestation capability and its open-source software stack enable Petridish to provide auditable protection of both user prompt and LLM confidentiality. Together, Petridish maintains full utility of LLM service and enables practical, privacy-preserving cloud-hosted LLM inference for sensitive applications, such as processing personal data, clinical records, and financial documents.

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

↑