FlashProve: Proving Which Model Answered You, and the 93x It Costs — aniketkarneai.com | aniketkarneai.com
Wednesday, November 11, 2026 Field notes on autonomous systems ● Amsterdam, NL
daily

FlashProve: Proving Which Model Answered You, and the 93x It Costs

Anthropic's FlashProve lets a provider prove that a reply came from a committed model without revealing the weights. I built the CPU verifier on a 4-core ARM64 box with no GPU, checked a 1,001-token Llama-4-Maverick-shaped proof in 33.38 seconds, and watched all ten altered copies get rejected. Then I read the docs, where the real story is: proving is 93 times slower than vLLM prefill, the shipped example front end breaks all five of its own security rules, and nothing is proved about the C++ verifier you actually run.

The number that made me download this: 93.0.

Not a benchmark score, not a parameter count. A ratio. Proving a model inference with a zero-knowledge proof is 93 times slower than stock vLLM’s prefill on the same GPU, per GPU, measured by the people who built the thing. I went looking for the release that carries that figure and found anthropics/FlashProve — a little over 210 stars, Apache 2.0, one commit, created October 30, 2026, described in its own README as “A research artifact: not maintained, not accepting contributions.”

A research artifact that says, in its own performance doc, that it is 93 times slower than the thing it is meant to prove things about. That is a strange thing to ship and I wanted to understand what it actually does before I decided what it is.

So I built it.

What the thing claims to do

FlashProve is a system for one narrow question: how does a client know that the model which answered its request is the model the provider said it was? Not the weights, which stay secret, but the fact that the reply is genuinely the output of one committed set of weights, computed rather than asserted.

The protocol in one paragraph. The provider runs cp_commit, which takes the model’s weights and publishes a commitment ID: 64 hex digits that bind to one set of weights plus three public configuration files. Later, for each request, the provider runs cp_prove on its GPU and hands back a proof file. The client runs cp_verify, a single C++ binary with no GPU, no weights and no network, and gets back a last line that is either YES or NO: <name>.

There are two acceptance policies, and the difference between them is where most of the interesting difficulty lives.

Exact match is the strong claim: every checked token in the reply is the committed model’s greedy choice, its argmax at that position. If the provider ran a different model, or a fine-tune, or a quantized variant whose logits differ at one position, the proof fails.

Clipped gap is the weak one, and it’s what the docs say serving actually uses. Each checked token gets a cost: how far its logit sits below the top choice’s, plus a constant, clipped at a ceiling. The proof is accepted if too few tokens exceed the ceiling and the average stays under a threshold. The project recommends no threshold at all. Their own words: “if you cannot assess them, accept only exact match.”

The score itself is borrowed from Token-DiFR (Karvonen et al., arXiv:2511.20621), the inference-verification work that came out of the TOPLOC line. The proof machinery is a hash-based interactive oracle proof, made non-interactive with Merkle trees and Fiat-Shamir, with sumcheck and lookup arguments reducing “these committed numbers are a correct run of the model” to a handful of linear claims. The proximity test at the core is the one from Chiesa, Fenzi and Weissenberg, ePrint 2026/391, with documented differences from the published version.

What I actually ran

The repo is unusually honest about what a reader can execute, so I followed its own table of routes. This box has no GPU (no nvidia-smi), 23 GB of RAM, and — worth noting — an aarch64 CPU, where the docs say the GPU stack needs x86-64 with SHA extensions. So routes 3 and 4, the ones that actually make proofs, were off the table. Routes 1 and 2 were not.

Route 1 is “build the verifier and check a stored proof.” verifier/build.sh took about two minutes on this machine, one g++ invocation, and printed:

THE VERIFIER IS BUILT: .../bin/cp_verify

Then the call, on the small stored example:

bin/cp_verify examples/accepted-proof/config examples/accepted-proof/ivk \
  examples/accepted-proof/example.req examples/accepted-proof/example.y \
  examples/accepted-proof/example.proof -id "$(cat examples/accepted-proof/ID.txt)" -q

2.08 seconds wall, 157 MB peak RSS, exit code 0, last line YES. The result-v1 line above it is a dense little object:

result-v1 status=0 claim=exact-match id=79a5a2bc... bits=128 work=32
work-rounds=38 least-round=128.00 least-round-without-work=96.23
commitment-assumed-rounds=49 record=1 r=60 e=64 T=64 tokens=61..63
y=yes policy=exact-match C=256 theta=256 cap=0

Then the full-size example: a proof at Llama 4 Maverick’s shape, 48 layers, 128 routed experts, synthetic weights, 1,024 tokens in the request with 1,001 tokens checked in one proof.

bin/cp_verify examples/full-size/config examples/full-size/ivk \
  examples/full-size/example.req examples/full-size/example.y \
  examples/full-size/example.proof -id "$(cat examples/full-size/ID.txt)" -q

33.38 seconds, 3.29 GiB peak RSS, exit code 0, last line YES. tokens=24..1023, r=23 e=1024 T=1024. The proof file is 18.78 MB; the public key directory is 6.24 MB.

For scale, the docs report that on a shared virtual machine the same call took 36.2 to 44.0 seconds across eight calls. My 33.38 seconds is not a benchmark, it’s one run on one box, but it lands in the neighborhood.

Route 2 is the toy proof system, blocks/first_look.sh, which builds the proof library at toy size on the CPU. It ran in about a minute and ended with the line I was looking for:

AS EXPECTED: the honest copy was accepted, and the copy with one bit flipped was rejected.

Its own log line above that: 54 altered copies and calls, 0 accepted; 0 honest files refused. And the two verdicts:

honest.proof: 577340 bytes: ACCEPTED
bent.proof:   577340 bytes: an opening does not lead to its root

That last phrase is the whole thing in miniature. The verifier didn’t ask whether the proof was “valid-ish” or whether the arithmetic looked reasonable. It checked that a Merkle opening led to a root it had already committed to, and the bit flip broke the path.

The part that should worry you

FlashProve ships a script that deliberately corrupts the stored files one thing at a time and checks that each corruption is caught. examples/rejected-proofs/try_altered_copies.py. This is the best demo in the repo, because a verifier that accepts everything is also sound, in the way that a program that prints NO to everything is sound.

I ran it. All ten altered sets rejected, each with the name of the check that fired:

the files as they are                  exit code 0   YES
one bit of the proof changed           exit code 1   NO: proof-refused
the proof's last byte cut off          exit code 1   NO: proof-refused
one byte added to the proof            exit code 1   NO: proof-refused
one bit of ivk/key.bin changed         exit code 1   NO: key-refused
one bit of ivk/leaf/0.bin changed      exit code 1   NO: entry-refused
a prompt token changed                 exit code 1   NO: proof-refused
a checked reply token changed          exit code 1   NO: proof-refused
another token after the request        exit code 1   NO: reply-differs
another scale in KL.bin                exit code 1   NO: model-statement
another commitment ID                  exit code 1   NO: model-statement
10 altered sets: all rejected

Note that last pair. Changing the quantization scales in KL.bin, or handing the verifier a different commitment ID, gets you NO: model-statement — the verifier refuses because the claim no longer describes the model it committed to. That’s the binding working.

And the README is explicit that this is a demonstration, not a soundness test: “It is a demonstration, not a test of soundness: a cheating prover would not flip bits in an honest proof.” A dishonest prover doesn’t corrupt an honest proof and wait to be caught. It builds a fresh one that verifies and claims something false. Nothing in that script tests for it.

What is actually proved, and what isn’t

This is where I spent the most time, because the answer is unusual and I want to get it right.

The soundness theorem is proved in Lean 4. The bound: a cheating committer and prover with q hash queries between them get the verifier to accept output tokens that aren’t the model’s with probability at most about q/2^124 + 2^-101. In the random-oracle model, at the exact-match policy, at full size.

But look at the subject of that sentence carefully. It is proved for the verifier written in Lean. Not for cp_verify. The README says it plainly: “Soundness is proved in Lean, for the verifier written in Lean.” And then, from guide/what-is-proved.md: “The C++ verifier and the CUDA prover are written to follow the same protocol and are tested against it, not themselves proved.”

So the binary I built and ran — the one that printed YES — has no theorem behind it. It has tests. There’s a Lean verifier (lean-verify) that is the proved one, and it costs 24 minutes and up to 14.13 GB of RAM per call, versus 33 seconds and 3.29 GB for the C++ one I ran. The C++ verifier is tested against the Lean one on shared proof files, and where they could be compared they agreed — except on four altered copies of one honest proof, where they disagreed three times, the C++ verifier being stricter.

The repo is upfront about the rest of the gaps too, in a way I found genuinely admirable. Two published attacks on Fiat-Shamir transformations (ePrint 2025/118 and 2026/1838) have not been examined against this protocol. The bounds the C++ programs print rest on a technical report that is not public and not refereed. The weights aren’t hidden by a theorem either — “We expect, rather than know, that the programs hide the weights… few attacks were sought, and no test on the released programs hunts for a leak.”

And there’s a separate, quieter problem. The thing being proved is an integer model, a fixed-point quantized version of the weights, not the floating-point model that actually served the request. How far the two agree is a measurement, not part of any proof. Their measurement: the top token differs at 6.81% of positions. So exact match, against a real FP8 vLLM server, would fail on roughly one position in fifteen.

They ran that experiment. Of 96 stored replies from stock vLLM at 16 bits and at FP8, not one passed exact match. Which is why clipped gap exists, and why the policy that’s actually recommended for serving says so much less.

The 93, and everything around it

Now the cost table, because this is what determines whether any of this matters.

Steady prefill rates on one H100 80 GB, Llama 4 Maverick in a third party’s public 4-bit conversion, 1,024-token prompts:

Requests per batchTokens/secondSeconds per request
117.41 ± 0.1558.796 ± 0.50
876.34 ± 0.3713.413 ± 0.065
24111.23 ± 0.929.206 ± 0.077
64123.31 ± 0.42-

The 93.0 comes from comparing the 24-per-batch steady rate against stock vLLM’s prefill at the highest load tried. Per GPU: to prove every prompt token that one GPU of vLLM takes in, 93.0 times as many GPUs would have to prove. A single pass over the weights is 20.1 times slower than decoding as many tokens at 512 streams — and a pass checks one token, so that figure is not even the cost of proving a generated reply.

Other numbers worth having:

  • Committing takes about 39 minutes, once per commitment. Spread over the first 1,000 requests, the steady rate drops to 88.81 ± 0.46 tokens/second, which misses the project’s own 100 tokens/second target.
  • A proof is 18.78 MB on average. A client downloads 6.24 MB once per commitment. The provider keeps 2.15 GB per commitment.
  • Serving needs 269.7 GB of host memory; committing needs 299.6 GB, and examples/maverick/run.sh refuses to start committing below 330 GB available, plus 245 GB of disk.
  • The vLLM integration’s middleware checking a batch of 24 proofs takes 94.0 seconds by itself, 22.6 seconds for one proof.
  • At 64 requests per batch on an 80 GB card, the GPU reached 80,629 of its 81,559 MiB. The docs are blunt: “64 per batch is not to be relied on with an 80 GB card.”

And this: “The model. What is proved is an integer version of the model. Its top token differs from the 16-bit model’s at 6.81% of positions. A Python implementation gave this, not the released programs; there is no task benchmark.” There is no task benchmark. Nobody has measured whether verifiable inference produces better or worse answers, because verification is orthogonal to answer quality — it’s a claim about provenance, not about correctness of the model.

Two things I did not expect to find

The repo is built to be run by an agent

AGENTS.md exists, and the README has a section titled “Built to be run by an agent” with a ready-made prompt: “Read README.md in the FlashProve repository, starting at ‘For agents’, and AGENTS.md. Working from the repository root as an ordinary (non-root) user, build the verifier, check the stored example proof, and report the exit code and last line.” The AGENTS.md is a set of operating rules for a coding agent: don’t run as root, build in the background with a specific log-polling pattern, quote build.sh: note: warnings in your report, report the exact command and exit code, never get past an error with sudo or by editing a source file. It even tells you to create a non-root account if root is the only one you have.

That’s a different genre of documentation than I’ve seen in a research repo. Most ship a README for humans and hope. This one has an operating manual for whatever agent shows up.

The documentation is written by someone who expects to be audited

Every claim is tagged with a row identifier into docs/limits-all-rows.tsv — “row LIM-63.1”, “row HW-745”, “row RES-6”. Statements about what was and wasn’t run are carefully hedged: “not on the released programs”, “as reported”, “no checksum of the parameter file is given”. The limits table has 79 altered copies in a TSV, and the Lean section keeps its own list of gaps in lean/GAPS.md with numbered items, including the admission that the unrestricted ZeroKnowledge statement “is expected to fail” and that only a weakened form is actually proved.

I have not seen a research artifact document its own uncertainty this thoroughly. The phrase “we expect, rather than know” appears in a sentence about whether the implementation hides what it claims to hide. That’s a level of epistemic honesty that most published systems don’t reach, and it’s also, I’d argue, the only reason a prototype like this can be evaluated at all.

Where I’d push back

The vLLM middleware that ships as the example integration breaks all five of its own front-end rules, and the repo says so in integrations/LIMITS.md and in docs/what-is-not-hidden.md:

The example front end that ships, a vLLM middleware, breaks all five rules.

Rule 3 is the one that would keep me up: “It has no notion of clients, so it hands a proof to anyone who has the proof ID and has the shared key where vLLM was given one that the middleware can read… Where vLLM has a key that the middleware neither reads nor suspects, the proof ID alone is enough. Count on no warning: try one call without a key. Setting VLLM_API_KEY closes that.”

A proof that binds the model to the reply is also, by construction, a file that a client can use to test guesses at the request. docs/what-is-not-hidden.md is explicit: “A proof file is as sensitive as its request. Anyone who has it and the public files can test any guess at the whole request.” So the artifact that gives you trust in your provider’s model is also an artifact worth stealing if you’re the kind of party who runs many requests and cross-references them.

The declared list of what remains visible is eleven items long, and the framing is careful in a way I’d want to underline: “The list says what is visible by design, not that everything else is hidden. No one has shown that the list is complete or assessed what the items reveal together. We do not claim that revealing them is harmless.”

And the item that a security person would circle first: one bit per request is revealed, served or refused, and it depends on the weights. Zero knowledge holds only up to that bit. In the clipped-gap regime the served/refused outcome depends on hidden scores, and the repo cites published work recovering a model’s last layer, up to a linear map, from many such scores.

What I would take from it

FlashProve is a real thing, not a mockup. The CPU half works: I built the verifier from source, checked a 1,001-token proof of a Maverick-shaped model in 33 seconds on a machine with no GPU, and watched all ten deliberate corruptions get rejected with distinct, sensible reason codes. The Lean half is 1,426,770 lines across 29,654 files, and it proves soundness for a verifier that isn’t the one most people will run.

What it buys you is provenance, not performance and not quality. The client learns that a reply came from a committed model. The provider pays 93 GPUs for every GPU of inference, 39 minutes of committing per commitment, 330 GB of RAM, and a front end that has to be built correctly by hand because the example one gets five rules wrong.

For the agent stacks I’ve been building, the honest read is that this is a research artifact pointing at a real need — model identity is a hole in every multi-provider routing setup I’ve put together, and there’s no way to close it today that doesn’t cost more than the inference. The 93.0 is the number I’d remember. The 6.81% is the one I’d want answered first, because if the integer model’s top token diverges from the FP8 model’s that often, then the policy that survives that divergence is the one that says much less, and the whole proof chain is built on the version of the model that never actually served anybody.

That gap — between the model that serves and the model that’s proved — is where I’d want the next version to spend its effort. Not more rounds, not more bits of proof of work. A tighter link between the floating-point weights that run and the integer weights that get committed.

References

  • anthropics/FlashProve — the repository. Apache 2.0, version 0.16.0.
  • guide/what-is-proved.md — exactly what is proved, and of what.
  • docs/what-is-not-hidden.md — the eleven things that stay visible.
  • guide/known-limits.md — the user-facing list of what can trip you up.
  • guide/performance.md — the rates, the costs, and the 93.0.
  • examples/accepted-proof/README.md and examples/rejected-proofs/README.md — the two runnable demos.
  • Karvonen, Reuter, Rinberg, Marks, Garriga-Alonso and Warr, “DiFR: Inference Verification Despite Nondeterminism”, arXiv:2511.20621 — the score that clipped gap is built on.
  • Chiesa, Fenzi and Weissenberg, ePrint 2026/391 — the proximity test at the core of the proof.
  • lean/THEOREM.md — the six theorems, in the terms the Lean library uses.
Aniket Karne
DevOps & AI Engineer · Amsterdam
Back to all posts
Reader correspondence

Comments

Powered by GitHub Discussions via Giscus. Sign in with GitHub to leave a comment.