FlashProve-Next: Zero-Knowledge Verifiable vLLM API Inference

FlashProve-Next (arXiv:2611.33741) delivers zero-knowledge proofs for individual closed-weight LLM API responses without modifying native BF16/FP8/MXFP4 vLLM serving or leaking weights, hidden system prompts, or chain-of-thought reasoning. Its v1.0 folded backend packs proofs into fixed 8 MiB containers verified by a pure-Rust CLI in 10.1 ms while rejecting INT4 silent downgrades.
FlashProve-Next: Zero-Knowledge Verifiable vLLM API Inference: FlashProve-Next (arXiv:2611.33741) delivers zero-knowledge proofs for individual closed-weight LLM API responses without modifying native BF16/FP8/MXFP4 vLLM serving or leaking weights, hidden system prompts, or chain-of-thought reasoning. Its v1.0 folded backend packs proofs into fixed 8 MiB containers verified by a pure-Rust CLI in 10.1 ms while rejecting INT4 silent downgrades. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.
- Native Floating-Point Serving: Proves real BF16/FP8/MXFP4 PyTorch + FlashAttention-2 + CUDA-graph execution instead of brittle integer surrogates.
- 1.2–2.7% Live vLLM Serving Overhead: Uses `@register_model_loader("flashprove_next")` and `torch.ops.fpn.port` with zero monkey-patching to `qwen3.py` or `llama.py`.
- Fixed 8 MiB Zero-Knowledge Proofs: Replaces 150 MB Stage-1 proofs via `FracLogUp-GKR` (`multi_gkr`) and coset-4 `ZK-Basefold` (`multi_pcs`) with zero Phase-2 LogUp cells.
- Zero Weight & Prompt Leakage: Keeps weights, hidden system prompts, `<think>` CoT, and activations confidential behind static Reed-Solomon hidden-column openings.
- 10.1 ms `#![forbid(unsafe_code)]` Rust Verifier: Rejects 33/33 white-box forgeries, 256/256 ±1 perturbations, and silent INT4 model downgrades (`HTTP 409`).
import { createAgent } from "@smoke-monkey/harness";const verifiableClientAgent = createAgent({agentId: "flashprove-api-auditor",provider: "openai",baseUrl: "http://127.0.0.1:8000/v1",model: "qwen3-0.6b-fpn2",workspacePath: process.cwd(),permissions: {read_file: "allow",write_file: "allow",run_command: "ask",},});async function runAttestedAgentCall() {const result = await verifiableClientAgent.run("Record pre-challenge commitment C_pre from SSE stream end, supply external " +"challenge seed c_ext, and invoke fpn-verify --circuit-root --stmt-digest on the " +"8 MiB FPN2 proof bundle before trusting tool outputs.");console.log("[Verifiable Inference Agent] Audit:", result.summary);}runAttestedAgentCall().catch(console.error);
Watch: Related Video Guides
Bing-Jyue Chen - Efficient Zero-Knowledge Proofs for AI Inference
ZK14: Confidential and Verifiable Telemetry using Zero-Knowledge Proofs
What Is FlashProve-Next? Solving Closed-API Model & Precision Verification
FlashProve-Next (arXiv:2611.33741) lets clients of closed-weight LLM APIs cryptographically verify that a provider executed the committed model weights, floating-point precision, hidden system prompt, and reasoning budget—without trusted enclaves or integer-quantized surrogates. Providers keep model weights, system prompts, tool templates, and <think> chain-of-thought hidden via zero-knowledge masking over F_{p^3}.
Instead of re-proving every FLOP sequentially, FlashProve-Next combines a non-depleting Reed-Solomon weight commitment (with hidden column openings), per-operator floating-point rounding-contract checks (validating 0 / 249,384 bad blocks on Qwen3-0.6B and 0 / 143,544 on Llama-3.2-1B), and bucketed keyed sampling (ExtSeed-153 or non-interactive NI-315).
vLLM 0.33 Serving Overhead & Folded Prover Benchmarks (RTX 6000D / 4070TiS)
Integrated via vLLM's official @register_model_loader("flashprove_next") plugin and LogitsProcessor with zero modifications to qwen3.py, enforcing the FP32 GEMM accumulation contract (allow_bf16_reduced_precision_reduction=False + FP32 LM-head logits) incurs just 1.21%–2.74% throughput cost, while the v1.0 folded prover slashes proof size from 150 MB down to 8 MiB:
| Benchmark / Metric | Stock / Stage 1 Baseline | FlashProve-Next v1.0 Folded | Security & Verification Result |
|---|---|---|---|
| vLLM 0.33 Batch 1 / 8 / 32 (Qwen3-0.6B) | 356.1 / 2,379.1 / 8,467.7 tok/s | 351.8 (-1.21%) / 2,325.7 (-2.24%) / 8,236.0 (-2.74%) | Catches PyTorch split-K bf16 violations (2,268/3,024 bad blocks) |
| Qwen3-0.6B Full Proof (NI-315 vs ExtSeed-153) | 150 MB, 3,752 s (4070TiS) | 8 MiB, 450–461 s GPU prove (RTX 6000D) | 10.7–10.8 s full CPU verify; 0 Phase-2 LogUp cells |
| Qwen3-4B (36L, dev 4+2, RTX 6000D) | — | 8 MiB, 160 s prove (273 s total) | 7.2 s CPU verify (58 GiB RAM / 48 GiB VRAM) |
| multi_gkr (s=24, 16.78M leaves) | 2.36B Phase-2 cells | 2.04 s GPU prove, 30.0 KB proof | 26.3 ms pure-Python verification |
| FPN2 Relation 2 Rust Verifier (Apple M1) | 118.4 ms (Python) | 10.1 ms (#![forbid(unsafe_code)]) | Rejects 256/256 ±1 perturbations & 33/33 white-box forgeries |
Crucially, during live 9-scenario vLLM 0.33 testing (covering SSE streaming, prefix caching, JSON Schema DFA masks, tool_use, and AEAD multi-turn state chains St_prev -> St_new), a silently downgraded int4 vLLM server was automatically withheld with HTTP 409 and rejected by the standalone verifier.
Protocol Security Flow: C_pre Pinning & Detached Rust/Python Verification
To prevent a malicious API provider from retrying seeds or swapping circuits after seeing a challenge, auditors pin both the expected CircuitDesc hash (circuit_root) and the stream-end commitment C_pre = BLAKE2b-256(base_core) before releasing the unpredictable external seed c_ext:
# 1. Serve vLLM 0.33 with contract-compliant FP32 reduction & flashprove_next loader
# (Zero model-class monkey-patching; torch.ops.fpn.port runs inside CUDA graphs)
vllm serve Qwen/Qwen3-0.6B --load-format flashprove_next --enable-prefix-caching
# 2. Verify an 8,388,608-byte (8 MiB) zero-padded FPN2 Relation 2 proof on CPU
fpn-verify \
--bundle response_proof.fpn2 \
--circuit-root "$EXPECTED_CIRCUIT_ROOT" \
--stmt-digest "$EXPECTED_STMT_DIGEST" \
--expected-c-pre "$RECORDED_C_PRE" \
--expected-c-ext "$CHALLENGE_C_EXT"Auditing Production Model Endpoints Inside Smoke Monkey Harness
Autonomous agents executing shell commands, financial trades, or security patches against external LLM APIs face silent model quantization and prompt-injection risks. FlashProve-Next's AEAD multi-turn state chain (St_prev -> St_new) and z_tool server-tool witnesses provide cryptographic proof that tool calls originated from the exact contracted model.
In Smoke Monkey Harness, high-assurance workflows can gate destructive run_command or deployment approvals behind a lightweight fpn-verify verification step—ensuring zero-trust guarantees without giving up native vLLM speed.
Disable BF16 Reduced-Precision Reduction in PyTorch
FlashProve-Next discovered that PyTorch's default allow_bf16_reduced_precision_reduction=True triggers bf16 partial sums in split-K prefill GEMMs (failing 2,268/3,024 blocks on Qwen3-0.6B). Always enforce FP32 accumulation for verifiable serving.
Frequently Asked Questions
Q:Does FlashProve-Next force LLM providers to reveal model weights or system prompts?
No. FlashProve-Next uses zero-knowledge masking over F_{p^3} and hidden column openings on a Reed-Solomon commitment so weights, hidden system prompts, tool templates, and <think> reasoning remain confidential.
Q:How much serving throughput overhead does FlashProve-Next add to vLLM 0.33?
Enforcing the FP32 GEMM accumulation and LM-head numerical contract inside native vLLM 0.33 CUDA graphs reduces decode throughput by only 1.21% at batch 1, 2.24% at batch 8, and 2.74% at batch 32.
Q:Can FlashProve-Next detect if an API silently downgrades BF16 to INT4?
Yes. In live vLLM 0.33 end-to-end tests, an int4-downgraded server was automatically flagged and withheld with HTTP 409 by the daemon's self-check and marked REJECTED by the standalone verifier.
Q:How large are FlashProve-Next proofs and how fast do they verify?
The v1.0 folded backend emits fixed 8,388,608-byte (8 MiB) FPN2 containers (down from 150 MB in Stage 1). The zero-dependency Rust verifier checks Relation 2 in 10.1 ms on an Apple M1 CPU, and full Qwen3-0.6B replies verify in 10.7 seconds.
Q:Does FlashProve-Next work with prefix caching and tool calling?
Yes. A 16-token PrefixPortCache reconstructs skipped prefill activations when enable_prefix_caching=True hits cached KV blocks, and multi-turn AEAD chains plus z_tool witnesses cover client and server tool calls.
Related Alternatives & Comparisons
Claude Code Runtime Alternative: Open Source Stdio MCP Agent Harness
Google Antigravity Alternative: Free Model-Neutral Agent + Canvas (2026)
LangChain TypeScript Alternative: Zero Dependencies & Deterministic Loops
Related Architecture Guides
View all guidesBest Open Source Coding Agents in 2026: Free, Local & Fully Hackable Harnesses
MCP Server Security Best Practices: Hardening Model Context Protocol Agents in 2026
Open Source Coding Agent Harness: Build a Forkable, Local AI Engineering Runtime
Build with Smoke Monkey Harness
Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.