用隐私保护技术实现低成本可信的大模型推理验证
Privacy-Preserving Mechanisms Enable Cheap Verifiable Inference of LLMs
- 利用隐私保护推理机制,附加少量计算即可实现验证
- 仅增加少量额外令牌开销,对性能影响极小
- 适合关注大模型可信推理的开发者与部署者
随着大语言模型规模持续增长,越来越多用户无法本地部署和运行模型,导致对第三方托管服务依赖加剧。然而,此类场景下缺乏对推理过程的可信保证——恶意提供商可能以廉价的小模型替代原大模型并返回结果。现有验证手段多依赖零知识证明等密码学方法,但计算开销巨大,难以应用于大规模模型。本文提出新思路:若具备隐私保护的推理能力,可几乎无成本地实现推理验证。我们设计两种新协议,通过利用隐私保护推理来确保计算过程的可信性。该方法仅需额外添加几个令牌的计算量,对下游性能几乎无影响。由于当前最快的隐私推理方法已快于零知识方案,本方法同时提升了验证速度。研究揭示了大模型推理中隐私与可验证性之间的深层联系。
原文摘要 · Abstract (English)
As large language models (LLMs) continue to grow in size, fewer users are able to host and run models locally. This has led to increased use of third-party hosting services. However, in this setting, there is a lack of guarantees on the computation performed by the inference provider. For example, a dishonest provider may replace an expensive large model with a cheaper-to-run weaker model and return the results from the weaker model to the user. Existing tools to verify inference typically rely on methods from cryptography such as zero-knowledge proofs (ZKPs), but these add significant computational overhead, and remain infeasible for use for large models. In this work, we develop a new insight -- that given a method for performing private LLM inference, one can obtain forms of verified inference at marginal extra cost. Specifically, we propose two new protocols which leverage privacy-preserving LLM inference in order to provide guarantees over the inference that was carried out. Our approaches are cheap, requiring the addition of a few extra tokens of computation, and have little to no downstream impact. As the fastest privacy-preserving inference methods are typically faster than ZK methods, the proposed protocols also improve verification runtime. Our work provides novel insights into the connections between privacy and verifiability in LLM inference.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。