跳到正文
arXiv (AI + Vision + Imaging)· Hassan Khodaiemehr, Khadijeh Bagheri, Chen Feng·· 1 天前AI 评分18

Ziv 结合 Sumcheck:浮点 LLM 推理的零知识证明

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

AI 导读

研究提出一种针对浮点矩阵乘法的交互式证明,通过证明"每个点积精确计算、仅舍入一次"的正确舍入乘积,绕开逐次加法舍入导致的结果依赖加法顺序难题,成本接近整数矩阵乘法。

正文 · 原文

arXiv:2611.29188v1 Announce Type: new Abstract: 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.

来源:arXiv (AI + Vision + Imaging) · arxiv.org