← Lab /AI/ML

Sampling-based proofs cut AI inference verification time from minutes to milliseconds

The proposed protocol reduces verification prover overhead by orders of magnitude while still detecting malicious inference servers

AI/ML arXiv 19 Mar 2026 Method Prototype evidence

Published as “Towards Verifiable AI with Lightweight Cryptographic Proofs of Inference”

Why it matters

The protocol makes verifiable AI inference practical for large models on modest hardware, enabling faster integrity checks for outsourced inference services.

Summary

The paper shows that a lightweight, random spot-checking protocol can verify AI inference in milliseconds instead of minutes, achieving a proving time of 5.8 ms versus 388.3 s for zkLLM and verification time of 12.44 ms versus 2.36 s, though proof size grows to about 3.4 MB. Evidence comes from experiments on ResNet-18 classifiers (176 k test paths) and Llama-2-7B models (25 sequences) and a direct performance comparison to zkLLM. The paper’s own attack experiments reveal that simple models can still fool the check on early layers, and the authors acknowledge a detection bound of 1/N and lack of full soundness guarantees.

What they found 3

  1. Model separation values increase in deeper transformer blocks, with the final block showing the highest mean separation of 0.267.

    “The final block (31) exhibited the highest mean separation value of approximately 0.267, indicating that the final representations between the models are the most different.”

  2. Proof generation is dramatically faster than zkLLM, with commit time 5.8 ms and total proving time under 10 ms.

    “The time to commit to the entire trace is only 5.8 milliseconds.”

  3. Verification time is reduced to 12.44 ms, two orders of magnitude lower than zkLLM.

    “Our verification time is 12.44 milliseconds (two orders of magnitude lower).”

Caveats 4

  • Early-layer attacks on a simple ANN achieve 100% pass rates at a 6.7 × 10−5 threshold, showing that adversaries can easily forge traces for those layers.
  • Achieving full soundness, where the adversary may produce arbitrary outputs and forge traces without restriction, remains an open problem.
  • any single-path sampling strategy faces an inherent detection bound of 1/N (where N is the maximum layer width)
  • more formal theoretical guarantees of trace separation are needed to prove security

What’s new here 4

  • Uses statistical trace-separation rather than full SNARK proofs to verify inference.
  • Introduces a random spot-checking protocol that opens only a few activation entries along sampled paths.
  • Achieves proof generation in milliseconds on commodity hardware, orders of magnitude faster than prior cryptographic schemes.
  • Demonstrates applicability to both image classifiers and large language models.