PapersSelected

Zero-Knowledge Proofs Cover Floating-Point LLM Inference for GPT-2

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

Why we picked it

Verifiable inference has mostly been limited to integer-quantised models, so this work lets proofs match the real 16-bit floating-point kernels deployed in production. Teams building auditable or privacy-preserving AI services, and verifiers assessing whether inference claims can be checked independently, now have a concrete implementation with measured prover and verifier times to benchmark against. The 19-minute prover runtime for GPT-2 small shows current feasibility limits, useful for planning which model sizes and use cases are practical today.

Researchers report a zero-knowledge proof system that verifies the floating-point arithmetic of language model inference rather than integer approximations, proving the full forward pass of GPT-2 small in 19 minutes on two processor cores, with verification taking 21 seconds. The work addresses the long-standing difficulty of proving floating-point matrix multiplication, where rounding after each addition makes results depend on summation order.

Body

The core construction proves the correctly rounded product: every dot product is computed exactly and rounded once, making the result hardware-independent and at least as accurate as standard kernels. The authors give an interactive proof whose cost is close to integer matrix multiplication, with roughly a thousand times fewer committed values than per-operation floating-point circuits would need as constraints. The approach extends to every layer of a transformer, and a privacy construction for the complete argument comes with zero-knowledge guarantees under explicit hypotheses.

The implementation proves all twelve GPT-2 blocks plus the output over the whole vocabulary. The verifier rejected all 236 attacks tested, and the model's outputs match high-precision inference at least as closely as standard 16-bit inference. The result could let model owners prove that a deployed model produced a given output without revealing weights, closing the gap between what proofs cover and what actually runs in production.

Original · 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.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include zero-knowledge proofs, GPT-2, Ziv, model validation.

Source attribution: curated from arXiv cs.LG (@Hassan Khodaiemehr, Khadijeh Bagheri, Chen Feng).