论文精选

Ziv 协议实现浮点数 LLM 推理零知识证明,GPT-2 前向传播 19 分钟完成

Ziv Meets Sumcheck: Zero-Knowledge Proofs of Floating-Point LLM Inference

精选理由

证明 AI 推理结果不撒谎的 ZK 方案一直只能处理整数近似,这篇论文直接搞定了浮点数。GPT-2 全前向传播 19 分钟出证明、21 秒验证,236 次攻击全被挡住。做模型审计、去中心化推理验证的开发者值得看。

论文提出 Ziv,一个针对浮点数 LLM 推理的零知识证明系统,解决了此前系统只能证明整数近似推理的问题。核心方法是证明"正确舍入乘积":每个点积先精确计算再一次性舍入,结果与硬件和加法顺序无关,精度不低于标准 kernel。

正文

技术机制上,论文给出一个交互式证明协议,成本接近整数矩阵乘法,承诺值数量比逐操作浮点电路的约束数少约一千倍,并扩展到 transformer 的每一层,附带了在明确假设下证明零知识性质的隐私构造。实现层面,系统在两个 CPU 核心上用 19 分钟证明了 GPT-2 small 完整前向传播,包括全部 12 个 block 和整个词表上的输出,验证仅需 21 秒。

实验结果显示验证器拒绝了全部 236 次测试攻击,模型输出与高精度推理的偏差不超过标准 16 位推理的水平。这意味着验证"某个模型真的产生了这个输出"可以按实际部署的浮点算术来做,而非整数近似。

原文 · arXiv cs.LG

Ziv Meets Sumcheck: Zero-Knowledge Proofs of Floating-Point LLM Inference

Zero-knowledge proofs can show that a neural network produced a given output without revealing the network, but current systems for language models prove integer approximations of the model rather than the floating-point arithmetic that is actually deployed. Proving floating-point matrix multiplication has been regarded as hard, because rounding after every addition makes the result depend on the order of the additions. We avoid this obstacle by proving the correctly rounded product, in which every dot product is computed exactly and rounded once. This result is independent of the hardware and at least as accurate as standard kernels. We give an interactive proof for this relation whose cost is close to that of integer matrix multiplication, with roughly a thousand times fewer committed values than per-operation floating-point circuits need constraints, extend it to every layer of a transformer, and give a privacy construction for the complete argument whose zero knowledge we prove under explicit hypotheses. We implement the system and prove the full forward pass of GPT-2 small, including all twelve blocks and the output over the whole vocabulary, in 19 minutes on two processor cores; verification takes 21 seconds. The verifier rejects all 236 attacks we tested, and the model's outputs agree with high-precision inference at least as closely as standard 16-bit inference does.

产业坐标与信源核验

本条情报归属 AITOP「论文」核心追踪栏目。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:零知识证明、GPT-2、Ziv、模型验证,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。

信源核验说明:本文原始线索采编自「arXiv cs.LG」(@Hassan Khodaiemehr, Khadijeh Bagheri, Chen Feng),经 AITOP 多维评分管线结构化提炼。