FlashProve-Next: Verifiable Inference for Production LLM APIs
Abstract
Clients of closed-weight LLM APIs cannot verify whether a provider ran the advertised model, precision, hidden prompt, and reasoning budget. Existing approaches either trust hardware or third parties, or re-prove every layer of an integer surrogate at high cost while diverging from native floating-point serving. FlashProve-Next produces verifiable, zero-knowledge-masked proofs for individual LLM API responses without modifying native serving (bf16/fp8/mxfp4, random sampling, FlashAttention, CUDA graphs, batching, prefix caching) and without disclosing weights, hidden prompts, hidden reasoning, or activations (dense profiles fix coarse geometry; cross-architecture hiding is deferred). A non-depleting Reed-Solomon weight commitment model_id opens inside proofs via hidden column openings, while local per-operator rounding contracts remove integer surrogates and the refusal-bit leak. Cost-weighted spot-checking supports non-interactive public verification (NI-315, , ) and external-seed C_pre mode (ExtSeed-153, , ). Twenty-eight Lean 4 modules (696 declarations, zero sorry, standard axioms only) mechanize round-by-round soundness, bucketed sampling, constrained-mask binding, causal masking, six IR gadgets, and executable FPN2 verifiers. Five-model Blackwell calibration gives zero false rejections across 1.85M GEMM/MoE blocks and 1.96M non-GEMM rows. Our zero-Phase-2 folded backend (folded ZK simulator open) proves Qwen3-0.6B ExtSeed-153 (1.47B cells, 8 MiB) in 450.2 s GPU (10.76 s CPU) at unique-decoding , passes a 14/14 cheating matrix, and scales to 36-layer Qwen3-4B (dev ) and live vLLM Qwen3-30B-A3B-FP8 Relation 6 (1.49 s prove, 23.4 ms Rust verify, public weight tiles). Rust fpn-verify checks 8 MiB FPN2 Relation 2 proofs in 10.1 ms on CPU.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AI, cs.LG
- Comments
- 36 pages. Code, 11 specifications, 28 Lean 4 modules, Rust verifier, and GPU benchmark receipts: https://github.com/s-JoL/FlashProve-Next
Related papers
Merkle Trees Minimize Verifier Complexity in the ROM
Shared title terminologycs.CRMiranda Christ, Oliver Korten, Tal Malkin et al.
Where Did My Tokens Go? Verifiable Token Billing for LLM Services
Shared title terminologycs.CRJiayuan Du, Yebo Feng, Lin Zhang et al.
Verifying Declared AI Workloads from GPU Supply Current
Shared title terminologycs.CRTom Kimpson
Lightweight Spectral Subspace Filtering for Trojan-Resilient AI Inference Engines
Shared title terminologycs.CRSoumita Chatterjee, Sudip Ghosh, Tamal Ghosh et al.
DuetFHE: Compiling Dual-Lane Nonlinear Circuits for Complex-Packed CKKS Inference
Shared title terminologycs.CRKe Chang, Jian Wang, Xuan Xu et al.
TurboFHE: An Efficient and Scalable Multi-GPU Framework for Homomorphic LLM Inference
Shared title terminologycs.CRHonghui You, Haoping Yang, Wenzhe Wang et al.