TOPLOC:一种用于无信任可验证推理的局部敏感哈希方案
TOPLOC: A Locality Sensitive Hashing Scheme for Trustless Verifiable Inference
AI总结:
针对LLM推理提供商的信任问题,提出可验证推理方法TOPLOC,利用局部敏感哈希和多项式编码以100%准确率检测模型修改,在大幅降低内存开销的同时实现高效验证。
摘要:
大型语言模型(LLMs)已被证明能力极强,但目前对前沿模型的访问依赖于推理提供商。这引入了信任挑战:我们如何能确信提供商使用的是其声称的模型配置?我们提出了一种用于可验证推理的新方法 TOPLOC 来解决此问题。TOPLOC 利用一种针对中间激活的紧凑局部敏感哈希机制,能以 100% 的准确率检测出对模型、提示词或精度的未经授权修改,在我们的实证评估中未出现假阳性或假阴性。该方法在多种硬件配置、GPU 类型和代数重排序下均具有鲁棒性,使得验证速度显著快于原始推理。通过引入多项式编码方案,TOPLOC 将生成证明的内存开销降低了 $1000\ imes$,对于每 32 个新 token 仅需 258 字节的存储空间,相比之下,直接为 Llama 3.1-8B-Instruct 存储 token 嵌入需要 262 KB。该方法赋能用户高效验证 LLM 推理计算,在开放生态系统中促进了更大的信任与透明度,并为去中心化、可验证且无信任的 AI 服务奠定了基础。
英文摘要:
Large language models (LLMs) have proven to be very capable, but access to frontier models currently relies on inference providers. This introduces trust challenges: how can we be sure that the provider is using the model configuration they claim? We propose TOPLOC, a novel method for verifiable inference that addresses this problem. TOPLOC leverages a compact locality-sensitive hashing mechanism for intermediate activations, which can detect unauthorized modifications to models, prompts, or precision with 100% accuracy, achieving no false positives or negatives in our empirical evaluations. Our approach is robust across diverse hardware configurations, GPU types, and algebraic reorderings, which allows for validation speeds significantly faster than the original inference. By introducing a polynomial encoding scheme, TOPLOC minimizes the memory overhead of the generated proofs by $1000\times$, requiring only 258 bytes of storage per 32 new tokens, compared to the 262 KB requirement of storing the token embeddings directly for Llama 3.1-8B-Instruct. Our method empowers users to verify LLM inference computations efficiently, fostering greater trust and transparency in open ecosystems and laying a foundation for decentralized, verifiable and trustless AI services.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。