Proving the Model Is Not Proving the Answer
When you send a prompt to a model behind an API, you trust a label. Somebody says “this is model X”, and you get tokens back. Nothing in those tokens proves the label. A router could have swapped in a cheaper model. A compromised server could be rewriting the stream.
Anthropic’s provable-inference post attacks exactly this problem, and the accompanying code, FlashProve, is the most serious attempt I have seen at making cryptographic proofs of LLM inference look practical. It is real progress. But the headline framing — prove which model answered — invites a reading that is broader than what the math delivers.
So here is my thesis: proving the model is not proving the answer. A FlashProve proof certifies a specific, narrow statement about a committed integer computation. Getting from that to “the answer I read came from the model I paid for” requires several trust steps that the proof does not take for you.
I read the post, the repository README, and the Lean theorem statement. I did not build or run anything. Every number below is the vendor’s own measurement, not mine.
What the system does
The provider publishes a commitment to a set of weights. For a reply, the provider’s GPU produces a zero-knowledge proof; anyone can check it on a CPU without seeing the weights. The protocol is a zkSNARK built from an interactive oracle proof compiled with hash functions. Weights are hidden; the architecture is not.
The reported numbers, from the post, on Llama 4 Maverick (400B-parameter mixture of experts) in a public 4-bit conversion:
- About 110 prefill (context) tokens per second on a single H100, measured on a batch of 24 requests with 1,024 context tokens each (about 223 seconds for the batch), with one checked output position per request.
- 18.78 MB per proof.
- Verification takes 17 seconds on 24 threads, 21 seconds single-threaded.
- Proving costs roughly 70–95x the GPU time of plain inference.
Prior open-source work on the same model reportedly took hours per thousand tokens with a 93.6 GB proof. That jump deserves credit.
Read the benchmark carefully
The 70–95x figure is the one people will quote, so it is worth seeing what it compares. On the prover side: a 4-bit, integer-arithmetic model on one H100. On the baseline side: vLLM running the FP8 release of the same model on eight H100s, normalised per GPU. Different precision, different hardware footprint, different software. The post is open about the setup; it is still apples to oranges. It is an order-of-magnitude indicator, not a cost model you should plug into a budget.
More important is what the 110 tokens per second buy. They count context tokens processed, not checked outputs. Per the post, each verifier request is a window of 1,024 tokens, and in the reported benchmark each proof checks one output position. That describes the benchmark configuration; I am not claiming the system can only ever check one token. Proving happens post-hoc, in batches, after the text is finished — prefill-style over the completed window. That could suit audits and spot checks, but that is a proposed use, not something the post measured. It is not “every token you receive arrives with a proof attached in real time”. What a proof gives you is a certificate for the checked position. Turning that into a statistical guarantee about the service would require a sampling design — which requests and positions get checked, chosen by whom, how often — and the proof does not supply one.
The commitment is not a name
A proof says the output matches the committed weights. It does not say those weights are “Llama 4 Maverick” or “the model in the contract”. The theorem document is blunt: “The theorem names no public model”, and the weights in question are those a fixed extractor reads off the commitment — no theorem says they are the ones the committing tool actually put in. The README tells verifiers to take the commitment ID from a party they trust, “never from the server being checked”.
So binding a commitment to a named model is a separate trust problem: a regulator, auditor or published registry has to vouch that commitment C corresponds to model M. The cryptography moves trust; it does not abolish it. A provider that commits to a cheap model and hands you that commitment produces perfectly valid proofs.
Exact match certifies a greedy choice, not how the reply was made
In exact-match mode, the proved computation is an exact integer version of the weights under greedy decoding: a valid proof certifies that the checked token is the integer model’s greedy choice at that position. It does not certify the implementation that actually generated the reply, or the sampling process behind it. The post’s limitations section says so directly: a reply from a floating-point implementation, or from sampled decoding, “could depart at some position and no longer exactly match the computation proved”. The integer model is expected and tested to stay close to floating-point inference on typical inputs, but that does not cover adversarially designed prompts.
Under the clipped-gap policy, the certificate says something different again: that the reply meets that policy, not that it is the exact greedy choice. Either way, if a service samples with temperature or runs floating-point inference, the proof does not certify that process. It certifies the checked token against the committed integer computation or the policy. That is a scope boundary, not a cryptographic flaw.
Lean proves the protocol, not the binary
The formal-verification story is the part I admire most and the part most likely to be over-read. Soundness is proved in Lean for the verifier written in Lean, at exact match, in the random-oracle model and under the configuration assumptions the theorem document states. From the theorem document:
- The C++ verifier and the CUDA prover “are written to follow the same protocol and are tested against it, not themselves proved.”
- “Nothing is proved of the C++ verifier that the examples and most users run, of the CUDA prover, or of the committer.”
- Under the clipped-gap policy that serving actually uses, “Lean proves only that the reply meets that policy” — a narrower statement than exact-match soundness. And for zero knowledge under clipped gap, no Lean theorem covers what a whole proof reveals.
The post adds that the fast C++ verifier “carries no formal guarantee” and that the authors do not guarantee the Lean protocol, the paper and the code all match. There is a slower executable Lean verifier you can run against real proof files, which narrows the gap if you are willing to pay for it — but it does not verify the external parser that feeds it proof data, nor does it discharge those assumptions. Testing evidence is also reported: 57 deliberately lying full-size proofs, none accepted. Good engineering — but tests, not theorems.
Why this still matters
None of this makes FlashProve a toy. Look at the use cases the post lists: regulators checking that hardware served an approved model, providers detecting a tampered inference server, evaluators confirming the model under test is the model in production. For those, a post-hoc, position-level, commitment-bound proof could be genuinely useful — if the surrounding process supplies the missing pieces: a trusted registry for commitments, a sampling design for which positions get checked, a decoding policy pinned to greedy or carefully accounted for, and either the Lean verifier or an audit of the C++ one.
The code, Lean proofs and docs are released under Apache 2.0 (I checked the repository’s LICENSE file), and the repository calls itself a research artifact that is not maintained. That is the honest posture: a prototype that moves the frontier, not a product you bolt on for compliance.
My worry is the translation layer. “Cryptographically proven model output” will end up in a procurement document long before anyone reads the limits pages. When it does, the right questions are short:
- Who vouches that this commitment is that model?
- Which tokens were checked, and when?
- Was the reply greedy and integer-exact, or sampled and floating point?
- Which verifier ran — the proved one, or the fast one?
Ask those, and the proof is a strong tool. Skip them, and you have replaced one unverifiable label with a better-looking one.