Reading Decisions Before Spans: Efficient Generative Verification
Organizations: ADIA · The Hong Kong University of Science and Technology (Guangzhou) · The Hong Kong University of Science and Technology
Abstract
A generative verifier can flag an unsupported claim before it finishes describing the error. For applications that only screen an assistant's report, the remaining generation may be unnecessary. We examine this possibility in a frozen 2B span verifier whose output chooses between an empty error list and its first object before producing any locations. Native8 stops at that choice. Prefill1 supplies the seven fixed syntax tokens that precede it and generates just the unrestricted branch token, keeping the native instruction. On 2,015 code-agent TEST responses, Prefill1 uses 84.84% less eager resident service than full generation, with released-reference F1 of 83.43 versus 83.41. It also saves 31.98% over Native8 despite identical logical token totals. This additional saving remains 6.74-26.73% under default compiled execution on the complete workload, with small changes in decisions. Evidence interventions test whether the alarm responds to the supplied facts; first-location decoding measures the additional work and localization losses when a caller also needs an error pointer.
Figures & tables
| Prefill1 F1 contrast | (pp) | 95% interval |
|---|---|---|
| Code-agent: full official | +0.018 | |
| Code-agent: Native8 | 0.229 | |
| Modern: full official | +0.020 | |
| Modern: Native8 /full raw | 0.077 |
| Modern validation policy | F1 | 2B calls | Service (s) |
|---|---|---|---|
| Always Prefill1 | 94.4751 | 1,110 | 47.4990 |
| Calibrated encoder | 85.0168 | 0 | 23.1406 |
| Abs0, DEV q25 | 91.0268 | 216 | 31.5589 |
| Centered, DEV q25 | 90.3795 | 250 | 34.1989 |
| Matched hash, q25 | 86.7761 | 250 | 32.9830 |
Appendix figures & tables35 assets
Supplementary material from the paper’s appendix.
Appendix
| Source | Responses | Components | Positive |
|---|---|---|---|
| Data2txt DEV | 1,026 | 171 | 715 |
| Tool-output TEST | 617 | 492 | 308 |
| Code-agent TEST | 2,015 | 1,613 | 1,014 |
| Readout / system | Data2txt DEV | Tool-output TEST | Code-agent TEST |
|---|---|---|---|
| 2B full, official-offset presence | 94.5607 | 90.7285 | 83.4128 |
| 2B full, raw-list presence | 94.4948 | 90.9091 | 83.5363 |
| 2B Native8 | 94.5531 | 90.9091 | 83.6594 |
| 2B Prefill1 | 94.3554 | — | 83.4304 |
| 307M BF16 encoder, native argmax | 87.3323 | 76.7361 | 76.5936 |
| Same encoder, frozen DEV threshold | 78.5603 | 77.3960 |
| Code-agent F1 contrast | (pp) | 95% interval |
|---|---|---|
| Prefill1 full official | +0.018 | |
| Prefill1 Native8 | 0.229 | |
| Native8 full official | +0.247 | |
| Prefill1 encoder fixed | +6.034 | |
| Native8 encoder fixed | +6.263 |
| Code-agent decoder readout | Service (s) | Engine calls (s) | Input tokens | Output tokens | Logical total |
|---|---|---|---|---|---|
| Full | 446.407 | 434.534 | 8,605,121 | 95,134 | 8,700,255 |
| Native8 | 99.477 | 88.252 | 8,605,121 | 16,120 | 8,621,241 |
| Prefill1 | 67.668 | 53.419 | 8,619,226 | 2,015 | 8,621,241 |
| README readout | F1 (%) | Decoder service (s) |
|---|---|---|
| Full, official/raw | 98.5782 | 85.2763 |
| Native8 | 98.5782 | 22.1382 |
| Prefill1 | 98.5782 | 8.3065 |
| Encoder, native | 90.2928 | — |
| Encoder, frozen threshold | 89.0855 | — |
| Same- readout | Alarm F1 | Service (s) | Located/alarms |
|---|---|---|---|
| Full | 83.5363 | 425.7906 | 874/875 |
| FirstQuote | 83.5363 | 204.6371 | 861/875 |
| Prefill1 | 83.4304 | 63.9525 | — |
| Readout | Host generate | Service |
|---|---|---|
| median / p95 (ms) | median / p95 (ms) | |
| Full | 797.593 / 4,401.658 | 813.226 / 4,419.220 |
| Native8 | 175.062 / 190.273 | 192.419 / 212.430 |
| Prefill1 | 29.634 / 33.179 | 46.923 / 54.282 |
| Readout | Host generate | Service |
|---|---|---|
| median / p95 (ms) | median / p95 (ms) | |
| Full | 281.973 / 3,141.986 | 347.619 / 3,212.313 |
| Native8 | 202.756 / 208.772 | 254.792 / 286.389 |
| Prefill1 | 36.912 / 52.023 | 86.224 / 127.766 |
| Encoder implementation | Service (ms) | Forward (ms) |
|---|---|---|
| Stock SDPA | 276.547 | 238.149 |
| FA3, dense masks retained | 233.254 | 203.850 |
| FA3, direct windows | 44.121 | 13.248 |
| Encoder implementation | Native | Fixed |
|---|---|---|
| BF16 SDPA (batch 4) | 76.5936 | 77.3960 |
| BF16 FA3/windows (batch 1) | 76.7976 | 77.3345 |
| DEV readout | F1 | Service (s) | Engine calls (s) |
|---|---|---|---|
| Native8 | 94.487 | 44.433 | 35.926 |
| Prefill1 | 94.355 | 17.098 | 10.048 |
| Direct binary1 | 3.026 | 16.095 | 9.530 |
| DEV policy | F1 | 2B calls | Service (s) |
|---|---|---|---|
| Always Prefill1 | 94.4212 | 1,026 | 48.3604 |
| Uncertainty route | 92.5395 | 252 | 30.8888 |
| Calibrated hash | 91.7942 | 252 | 30.8996 |
| Code-agent cached policy | F1 | Planned 2B calls |
|---|---|---|
| Always calibrated encoder | 77.3345 | 0 |
| Always Prefill1 | 83.4304 | 2,015 |
| Uncertainty route | 82.0459 | 596 |
| Calibrated hash | 79.2220 | 596 |
| Code-agent policy | F1 | 2B calls | Service (s) |
|---|---|---|---|
| Always Prefill1 | 83.4921 | 2,015 | 150.5046 |
| Uncertainty route | 82.0459 | 596 | 140.9961 |
| Calibrated hash | 79.2220 | 596 | 140.8218 |
| DEV quantile | Centered F1 | Calls | Equal-call hash F1 | Abs0 F1 | Calls | Equal-call hash F1 |
|---|---|---|---|---|---|---|
| 10% | 91.6894 | 95 | 89.8042 | 90.1583 | 103 | 89.7436 |
| 25% | 93.5172 | 250 | 90.7119 | 91.8239 | 254 | 90.9091 |
| 50% | 94.5607 | 519 | 92.6762 | 94.4483 | 516 | 92.6863 |
| Full-DEV policy | F1 | 2B calls | Service (s) |
|---|---|---|---|
| Always Prefill1 | 94.4212 | 1,026 | 40.5638 |
| Calibrated encoder | 90.5792 | 0 | 17.0746 |
| Abs0 | 92.3960 | 257 | 26.1200 |
| Centered | 94.2080 | 257 | 26.2490 |
| Calibrated hash | 91.7942 | 257 | 26.2282 |
| Centered, old preparation | 94.2080 | 257 | 30.2876 |
| Source | All | All | All positive | Primary | Primary | Primary positive |
|---|---|---|---|---|---|---|
| Code-agent | 190 | 176 | 95 | 190 | 176 | 95 |
| Tool output | 240 | 222 | 120 | 233 | 217 | 116 |
| README | 687 | 246 | 343 | 687 | 246 | 343 |
| Total | 1,117 | 644 | 558 | 1,110 | 639 | 554 |
| Readout/policy | Primary | Primary | Primary F1 | All | All | All F1 |
|---|---|---|---|---|---|---|
| Full, official | 96.7803 | 92.2383 | 94.4547 | 96.7925 | 91.9355 | 94.3015 |
| Full, raw | 96.7864 | 92.4188 | 94.5522 | 96.7985 | 92.1147 | 94.3985 |
| Native8 | 96.7864 | 92.4188 | 94.5522 | 96.7985 | 92.1147 | 94.3985 |
| Prefill1 | 96.4286 | 92.5993 | 94.4751 | 96.4419 | 92.2939 | 94.3223 |
| Encoder, DEV threshold | 79.6530 | 91.1552 | 85.0168 | 79.7488 | 91.0394 | 85.0209 |
| Encoder, native zero | 85.8182 | 85.1986 | 85.5072 | 85.8951 | 85.1254 | 85.5086 |
| Physical policy | 2B calls primary/all | Encoder input all tokens | Decoder input all tokens | Decoder output all tokens | Service (s) primary/all | p95 (ms) primary/all |
|---|---|---|---|---|---|---|
| Full (one generation) | 1,110/1,117 | 0 | 2,404,792 | 36,551 | 827.473/830.474 | 1889.20/1874.83 |
| Native8 | 1,110/1,117 | 0 | 2,404,792 | 8,936 | 210.711/212.129 | 217.72/217.70 |
| Prefill1 | 1,110/1,117 | 0 | 2,412,611 | 1,117 | 47.499/47.804 | 75.48/75.44 |
| Encoder, DEV threshold | 0/0 | 2,391,954 | 0 | 0 | 23.141/23.299 | 43.17/43.11 |
| Abs0 | 216/217 | 2,391,954 | 671,201 | 217 | 31.559/31.747 | 75.11/74.82 |
| Centered10 | 102/103 | 2,391,954 | 341,690 | 103 | 26.437/26.631 | 53.80/54.01 |
| Primary contrast | F1 (pp) | Component 95% interval | Service ratio | Component 95% interval |
|---|---|---|---|---|
| Prefill1 full official | 0.0204 | 0.057403 | ||
| Prefill1 full raw | -0.0770 | 0.057403 | ||
| Prefill1 Native8 | -0.0770 | 0.225423 | ||
| Centered10 Hash10 | 2.2926 | 1.006095 | ||
| Centered25 Hash25 | 3.6034 | 1.036865 | ||
| Centered50 Hash50 | 4.9559 | 1.005203 |
| Readout/policy | Precision | Recall | F1 |
|---|---|---|---|
| Full, official | 89.5349 | 81.0526 | 85.0829 |
| Full, raw | 89.6552 | 82.1053 | 85.7143 |
| Native8 | 89.6552 | 82.1053 | 85.7143 |
| Prefill1 | 88.7640 | 83.1579 | 85.8696 |
| Encoder, DEV threshold | 66.1290 | 86.3158 | 74.8858 |
| Encoder, native zero | 75.0000 | 75.7895 | 75.3927 |
| Readout/policy | Primary | Primary | Primary F1 | All | All | All F1 |
|---|---|---|---|---|---|---|
| Full, official | 95.0000 | 81.8966 | 87.9630 | 95.0980 | 80.8333 | 87.3874 |
| Full, raw | 95.0000 | 81.8966 | 87.9630 | 95.0980 | 80.8333 | 87.3874 |
| Native8 | 95.0000 | 81.8966 | 87.9630 | 95.0980 | 80.8333 | 87.3874 |
| Prefill1 | 95.0000 | 81.8966 | 87.9630 | 95.0980 | 80.8333 | 87.3874 |
| Encoder, DEV threshold | 78.1513 | 80.1724 | 79.1489 | 78.6885 | 80.0000 | 79.3388 |
| Encoder, native zero | 81.1881 | 70.6897 | 75.5760 | 81.7308 | 70.8333 | 75.8929 |
| Readout/policy | Precision | Recall | F1 |
|---|---|---|---|
| Full, official | 99.1228 | 98.8338 | 98.9781 |
| Full, raw | 99.1228 | 98.8338 | 98.9781 |
| Native8 | 99.1228 | 98.8338 | 98.9781 |
| Prefill1 | 98.8338 | 98.8338 | 98.8338 |
| Encoder, DEV threshold | 84.3990 | 96.2099 | 89.9183 |
| Encoder, native zero | 90.0850 | 92.7114 | 91.3793 |
| Physical policy | Code | Code (s) | Tool primary/all | Tool service (s) primary/all | README | README (s) |
|---|---|---|---|---|---|---|
| Full (one generation) | 190 | 223.420 | 233/240 | 138.642/141.643 | 687 | 465.410 |
| Native8 | 190 | 38.538 | 233/240 | 46.150/47.568 | 687 | 126.023 |
| Prefill1 | 190 | 11.145 | 233/240 | 12.297/12.602 | 687 | 24.057 |
| Encoder, DEV threshold | 0 | 6.504 | 0/0 | 5.729/5.887 | 0 | 10.908 |
| Abs0 | 64 | 9.849 | 62/63 | 8.523/8.712 | 90 | 13.187 |
| Centered10 | 30 | 8.012 | 29/30 | 6.966/7.159 | 43 | 11.459 |
| Readout/policy | Precision | Recall | F1 | 2B calls | Service (s) | p95 (ms) |
|---|---|---|---|---|---|---|
| Full, official | 97.4304 | 93.8144 | 95.5882 | 979 | 684.6159 | 1742.99 |
| Full, raw | 97.4304 | 93.8144 | 95.5882 | 979 | 684.6159 | 1742.99 |
| Native8 | 97.4304 | 93.8144 | 95.5882 | 979 | 182.6017 | 211.01 |
| Prefill1 | 97.2222 | 93.8144 | 95.4879 | 979 | 37.1757 | 48.22 |
| Encoder, DEV threshold | 80.7899 | 92.7835 | 86.3724 | 0 | 17.5275 | 28.41 |
| Encoder, native zero | 86.7617 | 87.8351 | 87.2951 | 0 | 17.5275 | 28.41 |
| Stage | Seconds |
|---|---|
| Decoder initialization | 40.204 |
| Encoder initialization | 1.711 |
| Within-worker token/ID qualification | 103.922 |
| Asset verification | 6.017 |
| Probe service | 24.056 |
| Probe diagnostics | 5.225 |
| Domain | Correct | Quartets | Pairs |
|---|---|---|---|
| Failed-test count | 16/16 | 4/4 | 8/8 |
| Command exit code | 16/16 | 4/4 | 8/8 |
| File count | 16/16 | 4/4 | 8/8 |
| Configuration scalar | 16/16 | 4/4 | 8/8 |
| Artifact path | 16/16 | 4/4 | 8/8 |
| Git field | 16/16 | 4/4 | 8/8 |
| Active seq. | Arm | Service (s) | Generate (s) | Prepare (s) | Input tokens | Output tokens |
|---|---|---|---|---|---|---|
| 1 | Full | 144.0244 | 142.7053 | 1.0859 | 471,930 | 6,024 |
| 1 | Native-eight | 29.4013 | 28.1241 | 1.0847 | 471,930 | 1,152 |
| 1 | Prefill-one | 6.7898 | 5.5692 | 1.0492 | 472,938 | 144 |
| 8 | Full | 58.8752 | 57.7138 | 0.9865 | 471,930 | 6,024 |
| 8 | Native-eight | 7.1114 | 5.9506 | 0.9983 | 471,930 | 1,152 |
| 8 | Prefill-one | 4.3995 | 3.2270 | 1.0063 | 472,938 | 144 |
| Active | Order | P/F | P/N | N/F |
|---|---|---|---|---|
| 1 | FNP | .049383 | .248561 | .198676 |
| 1 | FPN | .047463 | .227374 | .208744 |
| 1 | NFP | .047096 | .228481 | .206128 |
| 1 | NPF | .046446 | .229299 | .202556 |
| 1 | PFN | .046860 | .228397 | .205169 |
| 1 | PNF | .045666 | .224303 | .203591 |
| Readout | Prec. | Recall | F1 | Valid |
|---|---|---|---|---|
| Native Prefill1 | 94.03 | 94.69 | 94.36 | 100.00 |
| Binary, masked | 96.33 | 88.11 | 92.04 | 100.00 |
| Binary, free | 93.92 | 23.78 | 37.95 | 35.77 |
| Execution | Native8 | Prefill1 | Ratio | |
|---|---|---|---|---|
| Eager | 1 | 10.250 | 2.560 | .250 |
| Optimized | 1 | 3.152 | 2.535 | .804 |
| Eager | 8 | 2.820 | 1.554 | .551 |
| Optimized | 8 | 1.692 | 1.542 | .912 |
| Batch/order | ||
|---|---|---|
| 1 / Native first | 1.372 | .774 |
| 1 / Prefill first | .628 | 1.053 |
| 2 / Native first | .624 | 1.032 |
| 2 / Prefill first | .691 | .937 |
| 3 / Native first | .721 | .839 |
| 3 / Prefill first | .785 | .903 |
| Native8 (s) | Prefill1 (s) | Saving | Slower | |
|---|---|---|---|---|
| 1 | 250.121 | 183.263 | 26.73% | 0/126 |
| 8 | 166.308 | 155.106 | 6.74% | 3/126 |
| Repeat | Native8 F1 | Prefill1 F1 | ||
|---|---|---|---|---|
| 1 | 0 | 83.642 | 83.519 | |
| 1 | 1 | 83.642 | 83.519 | |
| 8 | 0 | 83.475 | 83.748 | |
| 8 | 1 | 83.598 | 83.704 |
LLM Inference Efficiency
Large language model inference efficiency reduces the time, memory, energy, and cost of generating useful outputs.
See all 371 papers