FlashProve-Next: Verifiable Inference for Production LLM APIs
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: Security Radio. Generated commentary on the latest security and cryptography papers.
Nadia: We're looking at the paper: "FlashProve-Next: Verifiable Inference for Production LLM APIs".
Paper summary: Nadia: We've covered that FlashProve-Next aims to produce verifiable, zero knowledge masked proofs for individual Large Language Model API responses without modifying native serving stacks like bf16 or fp8 precision or FlashAttention >
Elias: The core thesis is that this is possible without disclosing proprietary information like weights hidden prompts or hidden reasoning steps because the system relies on a non depleting Reed Solomon weight commitment model id to open inside proofs via hidden column openings >
Priya: It’s important to note that the system isn't about recomputing a compliant trace after the fact, because that would cost at least as much as honest inference, so it’s not meant to save compute >
Nadia: The paper focuses on three hard constraints simultaneously: closed weights and hidden topology, private context like hidden prompts and tool templates staying hidden, and ensuring the commitment is to what really runs in native floating point with every acceleration applied >
Elias: To handle this, they use certified per operator rounding contracts to remove integer surrogates that could leak information about the model's internal structure >
Priya: And they use a specific sampling mechanism called sort free integer bucketed keyed sampling with an Fp3 constrained mask binding combined with an Fp3 multilinear Schwartz Zippel binder for generation steps >
Nadia: This whole system supports non interactive public verification using NI thirty-one five or external seed C pre mode, and it also has a zero phase two folded ZK basefold plus frac log up gkr backend for the proof generation >
Elias: The contribution section details several technical areas, including a versioned API response relation covering things like segmented tokenization and byte level Aho Corasick stop semantics >
Priya: They also commit to static model commitment using Reed Solomon column trees to commit weights and radius matrices once via two round tile reductions and in circuit hidden column openings >
Nadia: So the system is designed so that the statement being proven is about possession of a compliant trace, not about which specific GPU executed what, which is a key distinction from other approaches >
Elias: The proof work itself is proportional to touched tiles, and there’s a single transcript setup proof pi setup requiring no correlated agreement assumption >
Priya: It seems like the system is aiming for production verifiability by integrating these things: one time weight commitment, async cost weighted stratified spot checking, sort free keyed bucketed sampling with Fp3 constrained mask binding, and local per operator rounding contracts >
Nadia: And they’ve validated it with twenty eight machine checked Lean four modules and calibration across Ada Lovelace bf16 and Blackwell formats >
Elias: This work transforms honest native fp completeness into a theorem under a falsifiable kernel contract, which is what makes this system distinct from the alternatives we discussed >
Priya: It’s about ensuring the proof neither diverges from production kernels nor leaks refusal information, which is a big deal for privacy and safety in LLM deployments >
Conclusion: Nadia: So, to wrap up this talk about FlashProve-Next, the paper is about achieving verifiable inference for production LLM APIs by creating these zero knowledge masked proofs that operate on native serving stacks without making changes to the existing software >
Elias: The authors are Liang Song and his team, and the big implication is shifting trust from opaque hardware or third parties to a verifiable mathematical statement about the computation trace itself >
Priya: In simpler terms, it means you can prove that an AI followed its advertised settings without needing access to its secrets or needing massive infrastructure modifications for verification >
Nadia: Exactly. It allows anyone to verify a provider maintained the correct computation trace by checking specific metrics like how much computation fell outside floating point tolerance or how many tokens violated the sampling rule >
Elias: This is significant because it moves the focus toward mathematical guarantees about the fidelity of an AI’s execution, which is what we need when these systems are becoming more integrated into critical applications >
Priya: The main thing I see is that this provides a mechanism for production verifiability by tying the computation to a formal contract that ensures integrity while keeping the proprietary details locked away >
Liang Song
cs.CR, cs.AI, cs.LG
Submitted: 2026-11-25
Updated: 2026-11-25
Comments: 36 pages. Code, 11 specifications, 28 Lean 4 modules, Rust verifier, and GPU benchmark receipts: https://github.com/s-JoL/FlashProve-Next
Code: https://github.com/s-JoL/FlashProve-Next
Project page: https://s-jol.github.io/FlashProve-Next
License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
Importance score: 90/100
The gist: FlashProve-Next introduces a system designed to produce verifiable, zero-knowledge-masked proofs for individual Large Language Model (LLM) API responses without requiring any modification to the…
Key concepts
- Zero-Knowledge Masked Proofs
- This is a method to prove that a computation happened correctly without revealing the actual data or internal workings. It ensures the provider followed rules (like precision limits) while keeping sensitive information, such as model weights or hidden reasoning steps, completely private from the verifier.
- Static Model Commitment
- Instead of storing all model details openly, this system uses a one-time commitment scheme to lock down deployed weights and formats. This commitment is authenticated using complex cryptographic reductions, ensuring that the deployed engine matches the committed configuration without needing to reveal every internal parameter.
- Rounding Contracts
- These are certified rules that dictate how numerical calculations are rounded at each step of inference. By establishing these contracts, the system can track and verify the entire computation lineage, proving that intermediate results adhere to specific mathematical constraints derived from the model's committed structure.
Terminology
Summary
FlashProve-Next introduces a system designed to produce verifiable, zero-knowledge-masked proofs for individual Large Language Model (LLM) API responses without requiring any modification to the native serving stack (including bf16/fp8/mxfp4 precision, FlashAttention, CUDA graphs, batching, or prefix caching) and without disclosing proprietary information such as weights, hidden prompts, hidden reasoning steps, or activations. p. 0 The core objective is to enable anyone on an ordinary CPU to verify a statement asserting that the provider maintained a computation trace consistent with the committed configuration (including weights format, sampling rules, and hidden elements) while ensuring that specific metrics—the fraction of computation outside floating-point tolerance and the fraction of generated tokens violating the sampling rule—remain below publicly defined thresholds. p. 0
The system decouples verification from online serving. p. 1 The provider publishes a one-time hiding commitment, model id, which encapsulates deployed weights, numerical formats, hidden prompts, sampling keys, and per-operator rounding contracts. During actual inference on the deployed engine (running unmodified in native floating point), lightweight read-only hooks record boundary tensors. p. 1 Post-inference, a background prover commits the trace and generates a proof by verifying only k cost-weighted random samples of computation blocks and generation steps selected via Fiat–Shamir. p. 1
The contributions span several technical areas:
-
API Response Relation: A versioned relation covering canonical request encoding, segmented tokenization, hidden prompt injection, zero-freedom object wiring, stratified cost-weighted sublayer lineages, constrained decoding (including byte-level Aho–Corasick stop semantics), tool calls, and acyclic multi-turn encrypted state anchors.
-
Static Model Commitment: A non-exhausting commitment scheme using Reed–Solomon column trees to commit deployed weights and radius matrices once, authenticated via two-round tile reductions and in-circuit hidden column openings (HCO).
-
Rounding Contracts: Certified per-operator rounding contracts and lineage cost accounting that establish forward box-plus-ball propagation templates.
-
Sampling Mechanism: Sort-free integer bucketed keyed sampling and zero-blowup constrained decoding, which replaces vocabulary-wide sorting with 32-token buckets and a witness-free per-token nucleus sandwich, paired with an Fp3 multilinear Schwartz–Zippel binder.
-
Soundness Properties: Lifetime knowledge soundness, adaptive multi-proof zero knowledge, and three-part completeness.
-
Formalization and Implementation: The work is supported by Lean 4 formalization, folded & streaming Fp3 provers, a zero-dependency Rust verifier, and live evaluations demonstrating proof generation times around 1009 times single-stream inference for models like Qwen3-0.6B and scaling to Qwen3-4B. p. 8
The system achieves production verifiability by integrating:
-
A non-exhausting one-time weight commitment.
-
Asynchronous cost-weighted stratified spot-checking (using NI-315 or external ExtSeed models).
-
Sort-free keyed bucketed sampling with Fp3 constrained mask binding.
-
Per-request KV matrix commitments.
-
Local peroperator rounding contracts derived from the engine's committed operands.
-
A zero-Phase-2 folded ZK-Basefold + FracLogUp-GKR backend.
This approach transforms honest native FP completeness into a theorem under a falsifiable kernel contract, ensuring the proof neither diverges from production kernels nor leaks refusal information. p. 1 The system is validated by 28 machine-checked Lean 4 modules (696 axiom-audited declarations), calibrated numerical contracts across Ada Lovelace bf16 and Blackwell formats, and end-to-end demonstrations across Qwen3 variants. p. 2 Cryptographic boundaries involve straight-line witness extraction relying on the arithmetized random-oracle heuristic A-AROM for in-circuit Poseidon2 sponges, with quantum random oracle (QROM) security not claimed. p. 6
Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.
Improvements for AI systems
-
Verifiable Inference for Production LLM APIs can be achieved by producing zero-knowledge masked proofs for individual LLM API responses without modifying native serving mechanisms like bf16/fp8 or FlashAttention. This allows clients to verify that the provider ran the advertised model, precision, hidden prompt, and reasoning budget against public thresholds.
-
The system can guarantee knowledge soundness over a service lifetime by using a non-depleting Reed–Solomon weight commitment model id that opens inside proofs via hidden column openings and local per-operator rounding contracts. This removes integer surrogates and the refusal-bit leak while maintaining native floating point serving fidelity.
-
Verification supports non-interactive public verification (NI-315, epsilon less than 2-40) for cost-weighted spot-checking, enabling clients to check adherence to committed sampling rules without requiring the provider to hold the model weights or plaintext context.
-
The system implements a versioned API response relation covering canonical request encoding, typed segmented tokenization, and hidden prompt injection. This allows for verifiable constraints on how the model's internal configurations and context are handled during inference.
-
Certified per-operator rounding contracts establish forward box-plus-ball propagation templates that bound the difference between engine output and exact values based on committed configuration parameters. This ensures that honest native FP execution is provably accepted whenever deployed kernels satisfy their rounding contract, preventing numerical leakage across tenants.
-
The system employs sort-free integer bucketed keyed sampling and zero-blowup constrained decoding by replacing vocabulary-wide sorting with 32-token buckets and a witness-free per-token nucleus sandwich. This replaces vocabulary transitions with an Fp3 multilinear Schwartz–Zippel binder that enforces compiled JSON Schema byte-DFA vocabulary masks in O(k2Qpad) extra cells.
-
The system provides lifetime knowledge soundness through adaptive multi-proof zero knowledge and three-part completeness, ensuring that the failure probability per response is bounded by algebraic completeness, numerical completeness under H-contract, and on-time delivery. This guarantees that an honest service fails to produce a proof with probability at most 2-20 per response.
-
The system integrates a live vLLM 0.33 zero-plaintext Relation 6 with ephemeral-key AES-256-CTR lazy chunk commitments to cut retained chunk buffers by 192 times, reducing peak host resident memory and improving precommit latency significantly on large models like Qwen3-30B.
-
The system supports external seed C pre mode, allowing the server to emit a BLAKE2b-256(base core) at stream end for anti-retry protection. This allows clients to verify the final statement against both pre-recorded values and an unpredictable external seed c ext, ensuring replay protection.
Sources
- Verde: Verification via Refereed Delegation for Machine Learning Programs
- Are You Getting What You Pay For? Auditing Model Substitution in LLM APIs
- DiFR: Inference Verification Despite Nondeterminism
- Seal, Then Sample: Sampled Layerwise Proofs for Verifiable LLM Inference from GPT-2 to 70B
- Verifying LLM Inference to Detect Model Weight Exfiltration
- SVIP: Towards Verifiable Inference of Open-source Large Language Models
- Trusted Weights, Treacherous Optimizations? Optimization-Triggered Backdoor Attacks on LLMs
- VeriLLM: A Lightweight Framework for Publicly Verifiable Decentralized Inference
- Proof of Sampling: A Nash Equilibrium-Based Verification Protocol for Decentralized Systems
Related papers
- RustMizan: A Compilable, Contamination-Aware Benchmarking Framework for Rust Vulnerabilities
- Introducing the Generative Application Firewall (GAF)
- Opal: Private Memory for Personal AI
- Fuel as Identity: Authenticating Inter-Satellite Laser Links after Total Key Compromise
- Merkle Trees Minimize Verifier Complexity in the ROM
- VulCPE: Context-Aware Cybersecurity Vulnerability Retrieval and Management