仅答案披露:基于Web API的私有上下文大语言模型辅助与泄漏账本
Answer-Only Disclosure: Private-Context LLM Assistance over Web APIs with a Leakage Ledger
AI总结:
针对Web助手协作解码的消息泄露问题,提出ADLER解码协议,可在GSM8K数学任务中提升客户端模型准确率,同时控制私有信息泄漏。
摘要:
Web助手越来越多地通过将小型设备端模型与Web API后的云端大语言模型(LLM)配对,来回答关于用户私有文档的问题。在协作解码中,文档保留在客户端,云端仅接收用户批准的公共视图(如仅问题),但两个模型在生成答案时会交换消息。我们发现,消息 transcript 可能会泄露公共视图和答案中均未包含的私有内容。在植入秘密的审计中,带有私有草稿的推测解码未在其答案中包含秘密代码,但在被拒绝的草稿中将代码发送给了云端。我们提出了ADLER,一种用于流式LLM API的解码协议,其中发送给云端的每条消息仅依赖于公共视图和用户看到的答案,无论客户端如何组合两个模型或云端如何行为。客户端侧的泄漏账本随后会限制答案本身相对于由云端回复构建的公共参考流程所泄露的信息量。在审计中,没有任何ADLER配置在答案之外暴露秘密。在GSM8K数学问题(云端输入中的数值被屏蔽)上,在宽松的答案解析下,具有无限泄漏预算的ADLER将0.5B客户端的精确匹配准确率从0.41提高到0.83,将1.5B客户端的精确匹配准确率从0.67提高到0.85,接近上传完整问题达到的0.92。它还分别超过零泄漏程序基线(0.69)0.14和0.16。在该基线中,云端编写一个程序,客户端使用私有数字在离线状态下运行该程序。账本记录了与该增益相关的泄漏费用;16纳特或更低的预算使GSM8K上的准确率接近仅云端基线。
英文摘要:
Web assistants increasingly answer questions about a user's private documents by pairing a small on-device model with a cloud LLM behind a Web API. In collaborative decoding, the document stays on the client, and the cloud receives only a public view that the user approves, such as the question alone, but the two models exchange messages while the answer is generated. We show that the message transcript can disclose private content that neither the public view nor the answer contains. In a planted-secret audit, speculative decoding with private drafts did not include the secret code in its answers, yet sent the code to the cloud in rejected drafts. We present ADLER, a decoding protocol for streaming LLM APIs in which every message to the cloud depends only on the public view and the answer the user sees, regardless of how the client combines the two models or how the cloud behaves. A client-side leakage ledger then bounds how much the answer itself reveals relative to a public reference process built from the cloud's replies. In the audit, no ADLER configuration exposed the secret beyond the answer. On GSM8K math problems with numerical values masked in the cloud's input, ADLER with an unlimited leakage budget raises the exact-match accuracy of a 0.5B client from 0.41 to 0.83 and of a 1.5B client from 0.67 to 0.85 under lenient answer parsing, close to the 0.92 achieved by uploading the full problem. It also exceeds a zero-leakage program baseline (0.69) by 0.14 and 0.16, respectively. In this baseline, the cloud writes a program that the client runs offline using the private numbers. The ledger records the disclosure charge associated with this gain; budgets of 16 nats or less leave accuracy near the cloud-only baseline on GSM8K.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。