arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.22307cs.LGcs.AIcs.CLcs.CR
收藏

SVIP:面向开源大语言模型的可验证推理

SVIP: Towards Verifiable Inference of Open-source Large Language Models

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Hyperbolic Labs(双曲实验室)

Yifan Sun, Yuhang Li, Yue Zhang, Yuchen Jin, Huan Zhang

AI总结:

SVIP是一种基于秘密的可验证LLM推理协议,通过计算高效的方法确保计算提供者诚实,实现低误报率和高效验证。

摘要:

随着开源大语言模型(LLM)规模的不断扩大,个人用户进行本地部署变得不切实际。去中心化计算作为一种成本效益高的解决方案,允许个人和小公司利用多余的计算能力为用户提供LLM推理服务。然而,计算提供者可能在未经用户同意的情况下,偷偷用一个较小、能力较弱的模型替代请求的LLM,从而获得成本节约。我们引入了SVIP,一种基于秘密的可验证LLM推理协议。与现有基于密码学或博弈论技术的解决方案不同,我们的方法计算效率高,不依赖强假设。我们的协议要求计算提供者返回生成的文本和处理过的隐藏表示。然后我们在这类表示上训练一个代理任务,有效地将它们转化为唯一的模型标识符。通过我们的协议,用户可以可靠地验证计算提供者是否诚实行事。一个精心集成的秘密机制进一步加强了其安全性。我们对协议在多种强适应性对抗场景下进行了彻底分析。我们的广泛实验表明,SVIP是准确的、可推广的、计算高效的,并且对各种攻击具有抵抗力。值得注意的是,SVIP的误报率低于5%,误检率低于3%,同时验证每个提示查询所需时间少于0.01秒。

英文摘要:

The ever-increasing size of open-source Large Language Models (LLMs) renders local deployment impractical for individual users. Decentralized computing has emerged as a cost-effective solution, allowing individuals and small companies to perform LLM inference for users using surplus computational power. However, a computing provider may stealthily substitute the requested LLM with a smaller, less capable model without consent from users, thereby benefiting from cost savings. We introduce SVIP, a secret-based verifiable LLM inference protocol. Unlike existing solutions based on cryptographic or game-theoretic techniques, our method is computationally effective and does not rest on strong assumptions. Our protocol requires the computing provider to return both the generated text and processed hidden representations from LLMs. We then train a proxy task on these representations, effectively transforming them into a unique model identifier. With our protocol, users can reliably verify whether the computing provider is acting honestly. A carefully integrated secret mechanism further strengthens its security. We thoroughly analyze our protocol under multiple strong and adaptive adversarial scenarios. Our extensive experiments demonstrate that SVIP is accurate, generalizable, computationally efficient, and resistant to various attacks. Notably, SVIP achieves false negative rates below 5% and false positive rates below 3%, while requiring less than 0.01 seconds per prompt query for verification.

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

↑