Ziv Meets Sumcheck: Zero-Knowledge Proofs of Floating-Point LLM Inference
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.
Create a lesson
Related papers
RadAG: Reward-Adversarial Attention Guidance for Efficient Inference-Time Alignment of Diffusion Models
Shared title terminology · Hyeongchan Jeon, Kwanyoung Kim
Stein Guidance without Gradients: Discretization Uniform Diffusion Inference Time Scaling beyond Particle SMC
Shared title terminology · Youheng Zhu, Chenyang Wang, Minshuo Chen et al.
SUAF: Spectral Universal Advantage Features for Zero-Shot Policy Improvement
Shared title terminology · Huaze Tang, Runqing Miao, Tianren Peng et al.
\mathtt{DistP}: Scaling Local-Update Training with Zero-Shot Hyperparameter Transfer
Shared title terminology · Andrej Jovanović, Alex Iacob, Philipp Wiesner et al.