Clarify verification compute-time results by experiment
#2
by kims0 - opened
Files changed (2)
- README.md+26-10
- paper/LMCV.md+11-24
126 unmodified lines1271281291301311321331341351361371381394 unmodified lines144145146147148149150151152126 unmodified linesunder [`data/qwen3_8b/`](experiments/worker-verifier-latency/data/qwen3_8b/); theanalysis is [`reports/worker_verifier_latency_benchmark_report.md`](experiments/worker-verifier-latency/reports/worker_verifier_latency_benchmark_report.md).**Finding:** Worker cost ≈ `output_len × 17.5 ms` (serial, memory-bandwidth-bound);verifier cost ≈ `total_tokens / ~5200 tok/s` (one parallel prefill). For typicalmulti-token outputs the verifier costs about **1%** of a generation(worker/verifier ≈ **80×–114×**, peaking at output 1024–2048). The only exception is`output_len = 1`, where the verifier's fixed per-position logprob overhead makes itslightly slower. Three verifiers together therefore cost roughly **1.9%–14.8%** of asingle generation.## Key findings4 unmodified lineslayer-0 routed-experts fingerprint forms a structurally stable, cross-GPUreproducible gap (a BF16 verifier attains TPR = 1.000 with 0.000 false-pass atthreshold 0.060 under a layer-0 random-5 aggregate).- A single verification prefill costs about **1%** of one generation(worker/verifier ≈ 80×–114×), so three verifiers together consume roughly**1.9%–14.8%** of the GPU time of a single generation.## Getting started126 unmodified lines1271281291301311321331341351361371381391401411421431441451461471481491501511524 unmodified lines157158159160161162163164165166167168126 unmodified linesunder [`data/qwen3_8b/`](experiments/worker-verifier-latency/data/qwen3_8b/); theanalysis is [`reports/worker_verifier_latency_benchmark_report.md`](experiments/worker-verifier-latency/reports/worker_verifier_latency_benchmark_report.md).**Findings — two separate compute-time experiments:**- **Qwen3-8B / Qwen3-32B, one verification replay:** For outputs of**1,024–8,192 tokens**, the reported single-replay time was approximately**0.85%–8.42%** of one generation run. The models were measured on an RTX 4090and an H100 NVL, respectively. This range is restricted to that output-lengthsubset; it is not a fixed ratio for every input/output configuration. See the[benchmark report](experiments/worker-verifier-latency/reports/worker_verifier_latency_benchmark_report.md)and [whitepaper §3.1.5](https://www.trueopen.ai/docs/whitepaper/#315-verification-cost-and-scope).- **Qwen2.5-7B, three replay passes combined:** A separate experiment measured**1.9%–14.8%** as `3 × tf_full / gen`, with output fixed at **1,000 tokens**and input lengths of 50–8,000 tokens. It used FP16, batch size 1, vLLM 0.20.1,and one RTX PRO 6000 Blackwell (96 GB). See the[7B experiment report](https://www.trueopen.ai/docs/verification-cost-7b/).This range is not derived by multiplying the Qwen3 result by three.Both results concern compute time under their respective test configurations.Neither measures total online-service cost: networking, gas, queuing, evidencehandling and settlement are outside these ratios. Three measured replay passesalso do not establish an end-to-end service running on three independent nodes.## Key findings4 unmodified lineslayer-0 routed-experts fingerprint forms a structurally stable, cross-GPUreproducible gap (a BF16 verifier attains TPR = 1.000 with 0.000 false-pass atthreshold 0.060 under a layer-0 random-5 aggregate).- **Compute-time evidence must be cited by experiment:** Qwen3-8B / Qwen3-32Bmeasured **one replay at 0.85%–8.42%** of generation time for outputs of**1,024–8,192 tokens**; the separate Qwen2.5-7B experiment measured**three replays combined at 1.9%–14.8%**, with output fixed at **1,000 tokens**.These are configuration-dependent compute-time ratios, not total online-servicecosts; see the separate sources and measurement boundaries in §3 above.## Getting started
34 unmodified lines353637383940414243444543 unmodified lines8990919293949513 unmodified lines109110111112113114115116117118353 unmodified lines472473474475476477478479480481482483484485486487488116 unmodified lines60560660760860961061164 unmodified lines67667767867968068168268368434 unmodified linesJaccard, and union-JS. For MoE, per-token logprob is confounded by sparse heavy-tailed spikes,but the layer-0 routed-experts fingerprint forms a structurally stable, cross-GPU-reproducible gapbetween same- and cross-model cases (under a layer-0 random-5 aggregate, a BF16 verifier attainsTPR = 1.000 with 0.000 false-pass at threshold 0.060). On cost, a vLLM latency benchmarkshows a single verification prefill costs about 1% of one generation(worker/verifier ≈ 80×–114×), so three verifiers together consumeroughly **1.9%–14.8%** of the GPU time of a single generation—directquantitative evidence that verification is far cheaper than generation.**Keywords:** execution verification; logprob fingerprint; majority consensus; commit–reveal; VRF; Mixture-of-Experts; routed experts; vLLM; decentralized inference43 unmodified linesrank—**with no token-by-token decoding.**This demotes “verification” from “replaying generation” to “oneforward pass,” cutting cost from the order of generation down to about 1% (§6). On top ofthat, LMCV uses cryptographic commitments, random selection, and majority consensus to turn it intoa collusion-resistant, settleable, auditable protocol (§3–§5).13 unmodified linesstructural criterion based on routed experts—in particular the **layer-0 routingfingerprint**—with an explanation of why layer 0 has a higher signal-to-noise ratiothan all-layer aggregation (§5).4. **Cost and empirics.** A vLLM latency benchmark quantifying theverify/generate cost ratio (80×–114×; three verifiers total 1.9%–14.8% of ageneration), plus dense/MoE, cross-GPU evidence for fingerprint separability and stability(§6, §7).5. **Security analysis.** Resistance to model substitution, quantizationsubstitution, probability forgery, verifier copying, and collusion—and the boundaries ofthose guarantees (§8).353 unmodified lines| 2048 / 4096 | 73.04 | 0.819 | **89.2×** || 1024 / 4096 | 72.24 | 0.691 | **104.6×** |The sole exception is output=1, where the verifier's per-position top-*k*overhead makes it slightly slower (ratio 0.62–0.82), a corner case. In typical long-outputsettings, a single verification is about 1% of one generation; across the measured input/outputconfigurations, **three verifiers each doing one prefill together consume roughly1.9%–14.8% of the GPU time of one generation**—precisely the affordability basisfor two-of-three majority consensus.> **Note.** The above are batch=1 single-request latencies. In online serving, the> worker amortizes per-token cost via continuous batching and the verifier can also verify in> batches, so absolute figures shift; but the order-of-magnitude gap between parallel prefill and> serial decode is unchanged.## 7. Empirical Evaluation116 unmodified lines## 9. Discussion and Related WorkLMCV sits between replay-based verification and cryptographic proof: versus full recomputation itcuts cost to about 1%; versus zkML / verifiable computation it offers no cryptographic soundness butadds almost no proving overhead, making it suitable as a *first-layer* verification forcost- and throughput-sensitive open inference networks. The two are complementary within TrueOpen:fixed-point-compliant quantized models can take the cryptographic-proof layered random verification64 unmodified linesdense logprob fingerprint is narrow and cross-GPU-stable with sharp separation of quantized andsmaller models, allowing a direct hard decision; MoE cannot be hard-decided by logprob alone due tosparse heavy tails, but the layer-0 routed-experts fingerprint provides a cross-GPU-stable structuralcriterion. On cost, a single verification is about 1% of one generation in typical long-outputsettings, and three verifiers total 1.9%–14.8% across the measured configurations, making majorityconsensus economically feasible.Worker–verifier verification should therefore be designed by architecture:**dense relies primarily on the logprob fingerprint; MoE relies primarily on the layer-034 unmodified lines3536373839404143 unmodified lines8586878889909113 unmodified lines105106107108109110111353 unmodified lines465466467468469470471472473474475476477116 unmodified lines59459559659759859960064 unmodified lines66566666766866967067134 unmodified linesJaccard, and union-JS. For MoE, per-token logprob is confounded by sparse heavy-tailed spikes,but the layer-0 routed-experts fingerprint forms a structurally stable, cross-GPU-reproducible gapbetween same- and cross-model cases (under a layer-0 random-5 aggregate, a BF16 verifier attainsTPR = 1.000 with 0.000 false-pass at threshold 0.060). On compute time, Qwen3-8B / Qwen3-32B benchmarks report one verification replay at **0.85%–8.42%** of generation time for outputs of **1,024–8,192 tokens**. A separate Qwen2.5-7B experiment reports **three replay passes combined at 1.9%–14.8%**, with output fixed at **1,000 tokens**. These configuration-dependent timing results are not measurements of total online-service cost (§6).**Keywords:** execution verification; logprob fingerprint; majority consensus; commit–reveal; VRF; Mixture-of-Experts; routed experts; vLLM; decentralized inference43 unmodified linesrank—**with no token-by-token decoding.**This demotes “verification” from “replaying generation” to “oneforward pass,” reducing measured compute time in the evaluated long-output configurations (§6). On top ofthat, LMCV uses cryptographic commitments, random selection, and majority consensus to turn it intoa collusion-resistant, settleable, auditable protocol (§3–§5).13 unmodified linesstructural criterion based on routed experts—in particular the **layer-0 routingfingerprint**—with an explanation of why layer 0 has a higher signal-to-noise ratiothan all-layer aggregation (§5).4. **Cost and empirics.** Separate compute-time results for one Qwen3 verification replay and three Qwen2.5-7B replay passes, with their model, output-length and measurement boundaries stated explicitly (§6), plus dense/MoE, cross-GPU evidence for fingerprint separability and stability (§7).5. **Security analysis.** Resistance to model substitution, quantizationsubstitution, probability forgery, verifier copying, and collusion—and the boundaries ofthose guarantees (§8).353 unmodified lines| 2048 / 4096 | 73.04 | 0.819 | **89.2×** || 1024 / 4096 | 72.24 | 0.691 | **104.6×** |For output=1, the reported worker/verifier ratio is 0.62–0.82: verification can take longer than generation. The representative rows above do not define a universal verification ratio.Across the published **Qwen3-8B / Qwen3-32B** timing tables, restricted to outputs of **1,024–8,192 tokens**, one replay takes approximately **0.85%–8.42%** of generation time. The models were measured on an RTX 4090 and an H100 NVL, respectively. See the [benchmark report](https://github.com/TrueOpen/lmcv-experiments/blob/main/experiments/worker-verifier-latency/reports/worker_verifier_latency_benchmark_report.md) and [whitepaper §3.1.5](https://www.trueopen.ai/docs/whitepaper/#315-verification-cost-and-scope).A **separate Qwen2.5-7B** experiment reports **1.9%–14.8%** for **three replay passes combined**, calculated as `3 × tf_full / gen`, with output fixed at **1,000 tokens** and input lengths of 50–8,000 tokens. It used FP16, batch size 1, vLLM 0.20.1 and one RTX PRO 6000 Blackwell (96 GB). See the [7B experiment report](https://www.trueopen.ai/docs/verification-cost-7b/). This range is not obtained by multiplying the Qwen3 ratios by three.> **Measurement scope.** Both results concern compute time under their respective configurations. Neither includes networking, gas, queuing, evidence handling or settlement costs. Three replay passes do not establish an end-to-end service running on three independent nodes. Continuous batching and production scheduling may change the ratios; production total cost and throughput must be measured separately.## 7. Empirical Evaluation116 unmodified lines## 9. Discussion and Related WorkLMCV sits between replay-based verification and cryptographic proof: versus full recomputation itreduces measured compute time in the evaluated long-output configurations (§6); versus zkML / verifiable computation it offers no cryptographic soundness butadds almost no proving overhead, making it suitable as a *first-layer* verification forcost- and throughput-sensitive open inference networks. The two are complementary within TrueOpen:fixed-point-compliant quantized models can take the cryptographic-proof layered random verification64 unmodified linesdense logprob fingerprint is narrow and cross-GPU-stable with sharp separation of quantized andsmaller models, allowing a direct hard decision; MoE cannot be hard-decided by logprob alone due tosparse heavy tails, but the layer-0 routed-experts fingerprint provides a cross-GPU-stable structuralcriterion. On compute time, the Qwen3-8B / Qwen3-32B results show one replay at 0.85%–8.42% of generation time for outputs of 1,024–8,192 tokens. The separate Qwen2.5-7B experiment shows three replay passes combined at 1.9%–14.8% with output fixed at 1,000 tokens. These measurements support further evaluation of verification overhead; they do not establish production total cost or the economics of a deployed three-node service.Worker–verifier verification should therefore be designed by architecture:**dense relies primarily on the logprob fingerprint; MoE relies primarily on the layer-0
README.md+26-10
paper/LMCV.md+11-24