Clarify verification compute-time results by experiment
#2
by kims0 - opened
- README.md +26 -10
- paper/LMCV.md +11 -24
README.md
CHANGED
|
@@ -127,13 +127,26 @@ does a single parallel prefill with `prompt_logprobs=20`. Raw data and summaries
|
|
| 127 |
under [`data/qwen3_8b/`](experiments/worker-verifier-latency/data/qwen3_8b/); the
|
| 128 |
analysis is [`reports/worker_verifier_latency_benchmark_report.md`](experiments/worker-verifier-latency/reports/worker_verifier_latency_benchmark_report.md).
|
| 129 |
|
| 130 |
-
**
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 137 |
|
| 138 |
## Key findings
|
| 139 |
|
|
@@ -144,9 +157,12 @@ single generation.
|
|
| 144 |
layer-0 routed-experts fingerprint forms a structurally stable, cross-GPU
|
| 145 |
reproducible gap (a BF16 verifier attains TPR = 1.000 with 0.000 false-pass at
|
| 146 |
threshold 0.060 under a layer-0 random-5 aggregate).
|
| 147 |
-
-
|
| 148 |
-
|
| 149 |
-
**1
|
|
|
|
|
|
|
|
|
|
| 150 |
|
| 151 |
## Getting started
|
| 152 |
|
|
|
|
| 127 |
under [`data/qwen3_8b/`](experiments/worker-verifier-latency/data/qwen3_8b/); the
|
| 128 |
analysis is [`reports/worker_verifier_latency_benchmark_report.md`](experiments/worker-verifier-latency/reports/worker_verifier_latency_benchmark_report.md).
|
| 129 |
|
| 130 |
+
**Findings — two separate compute-time experiments:**
|
| 131 |
+
|
| 132 |
+
- **Qwen3-8B / Qwen3-32B, one verification replay:** For outputs of
|
| 133 |
+
**1,024–8,192 tokens**, the reported single-replay time was approximately
|
| 134 |
+
**0.85%–8.42%** of one generation run. The models were measured on an RTX 4090
|
| 135 |
+
and an H100 NVL, respectively. This range is restricted to that output-length
|
| 136 |
+
subset; it is not a fixed ratio for every input/output configuration. See the
|
| 137 |
+
[benchmark report](experiments/worker-verifier-latency/reports/worker_verifier_latency_benchmark_report.md)
|
| 138 |
+
and [whitepaper §3.1.5](https://www.trueopen.ai/docs/whitepaper/#315-verification-cost-and-scope).
|
| 139 |
+
- **Qwen2.5-7B, three replay passes combined:** A separate experiment measured
|
| 140 |
+
**1.9%–14.8%** as `3 × tf_full / gen`, with output fixed at **1,000 tokens**
|
| 141 |
+
and input lengths of 50–8,000 tokens. It used FP16, batch size 1, vLLM 0.20.1,
|
| 142 |
+
and one RTX PRO 6000 Blackwell (96 GB). See the
|
| 143 |
+
[7B experiment report](https://www.trueopen.ai/docs/verification-cost-7b/).
|
| 144 |
+
This range is not derived by multiplying the Qwen3 result by three.
|
| 145 |
+
|
| 146 |
+
Both results concern compute time under their respective test configurations.
|
| 147 |
+
Neither measures total online-service cost: networking, gas, queuing, evidence
|
| 148 |
+
handling and settlement are outside these ratios. Three measured replay passes
|
| 149 |
+
also do not establish an end-to-end service running on three independent nodes.
|
| 150 |
|
| 151 |
## Key findings
|
| 152 |
|
|
|
|
| 157 |
layer-0 routed-experts fingerprint forms a structurally stable, cross-GPU
|
| 158 |
reproducible gap (a BF16 verifier attains TPR = 1.000 with 0.000 false-pass at
|
| 159 |
threshold 0.060 under a layer-0 random-5 aggregate).
|
| 160 |
+
- **Compute-time evidence must be cited by experiment:** Qwen3-8B / Qwen3-32B
|
| 161 |
+
measured **one replay at 0.85%–8.42%** of generation time for outputs of
|
| 162 |
+
**1,024–8,192 tokens**; the separate Qwen2.5-7B experiment measured
|
| 163 |
+
**three replays combined at 1.9%–14.8%**, with output fixed at **1,000 tokens**.
|
| 164 |
+
These are configuration-dependent compute-time ratios, not total online-service
|
| 165 |
+
costs; see the separate sources and measurement boundaries in §3 above.
|
| 166 |
|
| 167 |
## Getting started
|
| 168 |
|
paper/LMCV.md
CHANGED
|
@@ -35,11 +35,7 @@ heterogeneous smaller models separate sharply on p99, rank-delta rate, top-*k*
|
|
| 35 |
Jaccard, and union-JS. For MoE, per-token logprob is confounded by sparse heavy-tailed spikes,
|
| 36 |
but the layer-0 routed-experts fingerprint forms a structurally stable, cross-GPU-reproducible gap
|
| 37 |
between same- and cross-model cases (under a layer-0 random-5 aggregate, a BF16 verifier attains
|
| 38 |
-
TPR = 1.000 with 0.000 false-pass at threshold 0.060). On
|
| 39 |
-
shows a single verification prefill costs about 1% of one generation
|
| 40 |
-
(worker/verifier ≈ 80×–114×), so three verifiers together consume
|
| 41 |
-
roughly **1.9%–14.8%** of the GPU time of a single generation—direct
|
| 42 |
-
quantitative evidence that verification is far cheaper than generation.
|
| 43 |
|
| 44 |
**Keywords:** execution verification; logprob fingerprint; majority consensus; commit–reveal; VRF; Mixture-of-Experts; routed experts; vLLM; decentralized inference
|
| 45 |
|
|
@@ -89,7 +85,7 @@ distributions in parallel under the causal mask, and reads off each token's prob
|
|
| 89 |
rank—**with no token-by-token decoding.**
|
| 90 |
|
| 91 |
This demotes “verification” from “replaying generation” to “one
|
| 92 |
-
forward pass,”
|
| 93 |
that, LMCV uses cryptographic commitments, random selection, and majority consensus to turn it into
|
| 94 |
a collusion-resistant, settleable, auditable protocol (§3–§5).
|
| 95 |
|
|
@@ -109,10 +105,7 @@ a collusion-resistant, settleable, auditable protocol (§3–§5).
|
|
| 109 |
structural criterion based on routed experts—in particular the **layer-0 routing
|
| 110 |
fingerprint**—with an explanation of why layer 0 has a higher signal-to-noise ratio
|
| 111 |
than all-layer aggregation (§5).
|
| 112 |
-
4. **Cost and empirics.**
|
| 113 |
-
verify/generate cost ratio (80×–114×; three verifiers total 1.9%–14.8% of a
|
| 114 |
-
generation), plus dense/MoE, cross-GPU evidence for fingerprint separability and stability
|
| 115 |
-
(§6, §7).
|
| 116 |
5. **Security analysis.** Resistance to model substitution, quantization
|
| 117 |
substitution, probability forgery, verifier copying, and collusion—and the boundaries of
|
| 118 |
those guarantees (§8).
|
|
@@ -472,17 +465,13 @@ pays off:
|
|
| 472 |
| 2048 / 4096 | 73.04 | 0.819 | **89.2×** |
|
| 473 |
| 1024 / 4096 | 72.24 | 0.691 | **104.6×** |
|
| 474 |
|
| 475 |
-
|
| 476 |
-
overhead makes it slightly slower (ratio 0.62–0.82), a corner case. In typical long-output
|
| 477 |
-
settings, a single verification is about 1% of one generation; across the measured input/output
|
| 478 |
-
configurations, **three verifiers each doing one prefill together consume roughly
|
| 479 |
-
1.9%–14.8% of the GPU time of one generation**—precisely the affordability basis
|
| 480 |
-
for two-of-three majority consensus.
|
| 481 |
|
| 482 |
-
|
| 483 |
-
|
| 484 |
-
|
| 485 |
-
|
|
|
|
| 486 |
|
| 487 |
## 7. Empirical Evaluation
|
| 488 |
|
|
@@ -605,7 +594,7 @@ through.
|
|
| 605 |
## 9. Discussion and Related Work
|
| 606 |
|
| 607 |
LMCV sits between replay-based verification and cryptographic proof: versus full recomputation it
|
| 608 |
-
|
| 609 |
adds almost no proving overhead, making it suitable as a *first-layer* verification for
|
| 610 |
cost- and throughput-sensitive open inference networks. The two are complementary within TrueOpen:
|
| 611 |
fixed-point-compliant quantized models can take the cryptographic-proof layered random verification
|
|
@@ -676,9 +665,7 @@ consensus—builds it into a collusion-resistant, settleable, auditable protocol
|
|
| 676 |
dense logprob fingerprint is narrow and cross-GPU-stable with sharp separation of quantized and
|
| 677 |
smaller models, allowing a direct hard decision; MoE cannot be hard-decided by logprob alone due to
|
| 678 |
sparse heavy tails, but the layer-0 routed-experts fingerprint provides a cross-GPU-stable structural
|
| 679 |
-
criterion. On
|
| 680 |
-
settings, and three verifiers total 1.9%–14.8% across the measured configurations, making majority
|
| 681 |
-
consensus economically feasible.
|
| 682 |
|
| 683 |
Worker–verifier verification should therefore be designed by architecture:
|
| 684 |
**dense relies primarily on the logprob fingerprint; MoE relies primarily on the layer-0
|
|
|
|
| 35 |
Jaccard, and union-JS. For MoE, per-token logprob is confounded by sparse heavy-tailed spikes,
|
| 36 |
but the layer-0 routed-experts fingerprint forms a structurally stable, cross-GPU-reproducible gap
|
| 37 |
between same- and cross-model cases (under a layer-0 random-5 aggregate, a BF16 verifier attains
|
| 38 |
+
TPR = 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).
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
**Keywords:** execution verification; logprob fingerprint; majority consensus; commit–reveal; VRF; Mixture-of-Experts; routed experts; vLLM; decentralized inference
|
| 41 |
|
|
|
|
| 85 |
rank—**with no token-by-token decoding.**
|
| 86 |
|
| 87 |
This demotes “verification” from “replaying generation” to “one
|
| 88 |
+
forward pass,” reducing measured compute time in the evaluated long-output configurations (§6). On top of
|
| 89 |
that, LMCV uses cryptographic commitments, random selection, and majority consensus to turn it into
|
| 90 |
a collusion-resistant, settleable, auditable protocol (§3–§5).
|
| 91 |
|
|
|
|
| 105 |
structural criterion based on routed experts—in particular the **layer-0 routing
|
| 106 |
fingerprint**—with an explanation of why layer 0 has a higher signal-to-noise ratio
|
| 107 |
than all-layer aggregation (§5).
|
| 108 |
+
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).
|
|
|
|
|
|
|
|
|
|
| 109 |
5. **Security analysis.** Resistance to model substitution, quantization
|
| 110 |
substitution, probability forgery, verifier copying, and collusion—and the boundaries of
|
| 111 |
those guarantees (§8).
|
|
|
|
| 465 |
| 2048 / 4096 | 73.04 | 0.819 | **89.2×** |
|
| 466 |
| 1024 / 4096 | 72.24 | 0.691 | **104.6×** |
|
| 467 |
|
| 468 |
+
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 469 |
|
| 470 |
+
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).
|
| 471 |
+
|
| 472 |
+
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.
|
| 473 |
+
|
| 474 |
+
> **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.
|
| 475 |
|
| 476 |
## 7. Empirical Evaluation
|
| 477 |
|
|
|
|
| 594 |
## 9. Discussion and Related Work
|
| 595 |
|
| 596 |
LMCV sits between replay-based verification and cryptographic proof: versus full recomputation it
|
| 597 |
+
reduces measured compute time in the evaluated long-output configurations (§6); versus zkML / verifiable computation it offers no cryptographic soundness but
|
| 598 |
adds almost no proving overhead, making it suitable as a *first-layer* verification for
|
| 599 |
cost- and throughput-sensitive open inference networks. The two are complementary within TrueOpen:
|
| 600 |
fixed-point-compliant quantized models can take the cryptographic-proof layered random verification
|
|
|
|
| 665 |
dense logprob fingerprint is narrow and cross-GPU-stable with sharp separation of quantized and
|
| 666 |
smaller models, allowing a direct hard decision; MoE cannot be hard-decided by logprob alone due to
|
| 667 |
sparse heavy tails, but the layer-0 routed-experts fingerprint provides a cross-GPU-stable structural
|
| 668 |
+
criterion. 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.
|
|
|
|
|
|
|
| 669 |
|
| 670 |
Worker–verifier verification should therefore be designed by architecture:
|
| 671 |
**dense relies primarily on the logprob fingerprint; MoE relies primarily on the layer-0
|