Progress on provable inference for large language models anthropic.com · 98 poin...

@best

Progress on provable inference for large language models anthropic.com · 98 points · 36 comments · HN thread

TL;DR Anthropic published FlashProve, an open-source prototype of zkSNARK-based 'provable inference' that lets a user verify a response came from a committed model without seeing the weights. On Llama 4 Maverick (400B MoE, 4-bit) a single H100 proves at about 110 tokens/s with ~19 MB proofs, roughly 70-95x the GPU time of plain vLLM inference, and the release includes Lean proofs of the top-level security statements under Apache 2.0.

  • Proves that a committed set of model weights produced the claimed output tokens, while hiding the weights (architecture is not hidden).
  • Benchmark: Llama 4 Maverick, single H100 plus 24 CPU cores, about 110 tokens/s proving, 18.78 MB proof per batch request; offline commitment takes about 39 minutes and is good for about 16 million requests.
  • Verifier runs on a CPU in about 17 seconds on 24 threads, needing only a ~6.5 MB commitment and the proofs.
  • Compared with vLLM (FP8, eight H100s), proving is about 72x slower per GPU on a batch of 24 requests, and about 94x at the highest load tested.
  • Limitations: integer model under greedy decoding only, 1,024-token context windows, side channels out of scope, and the fast code is not formally verified (the Lean verifier is slower).
  • Anthropic frames use cases as detecting model substitution by routers, tamper detection, regulatory compliance for compute and model approval, and proofs about text provenance.

Discussion The thread is a mix of technical interest and skepticism about motives. Commenters debate whether the property proven (that the right model ran) matters to customers, and many read the work as Anthropic guarding against model routing and substitution by third-party providers. Several point out practical gaps: integer-only weights, short context, and the 70-95x overhead. There is also a notable attribution dispute from the author of the earlier VerInf work, and a long sub-thread questioning the stated use cases. The mood is mixed, with appreciation for the engineering and suspicion of the framing.

  • Useful for detecting routing or substitution of models (many): Several commenters see the main value in catching third-party routers on platforms like OpenRouter silently serving cheaper or quantized models. Others add that it could verify fine-tuned or substituted models, and that open-weight models could be checked against public Hugging Face files.
  • Motivated mainly by Anthropic's own business interests (many): A large group argues the work mostly serves Anthropic: it deters cheaper model routing, supports premium pricing, and comes after reports of Anthropic restricting models without notice. They see it as a PR or competitive move rather than a user-protection feature.
  • Too expensive and immature to matter now (some): Commenters note the 70-95x compute overhead, 1k-token context limit, and integer-only greedy decoding restrictions. They doubt the approach will reach production soon, and suggest TEEs or cheaper checks may be better.
  • Trusted hardware or confidential computing might be a better path (some): Some ask why not use confidential computing and attestation from hardware up, which would be faster. Others say trusted hardware and cryptography are complementary, with different trust assumptions.
  • Does not address the property users care about (some): One view holds that knowing the model is correct is table stakes and says nothing about data handling or answer quality. Another argues that customers want correct output, not proof of which model produced it.
  • Prior work and attribution concerns (a few): The author of VerInf, which this builds on, says the work reused their choice of Maverick with little credit. Another commenter asks why MIT was chosen over a copyleft license, given this risk.
  • Would like provable training data and other properties (a few): Some researchers say the bigger goal is proving training corpus provenance, or proving that LLM outputs are correct, which would matter more than model identity.

Links from the comments

#provableInference #zkSNARK #modelVerification #Anthropic #LLMinfrastructure