Cryptographic verification is the second verification approach studied by TrueOpen. It is described in the paper Seal, Then Sample: Sampled Layerwise Proofs for Verifiable LLM Inference from GPT-2 to 70B (arXiv:2609.27367; v1 submitted September 23, 2026). The paper calls the method Sampled Layerwise Proofs (SLP). It commits to a fixed-point quantized model's computation trace before randomly selecting chunks to prove.
Status: the whitepaper excludes proof-based sampling from V1. The testnet's documented verification approach is logprob verification; the website identifies cryptographic verification as planned and not enabled. This page describes research and published experiments.
Why sample?
Proving an entire large-model inference can cost much more than executing it. Sampling combines prior commitments, unpredictable later checks and stake slashing. Economic deterrence depends on sampling that the adversary cannot manipulate, enforceable penalties and appropriate gain/loss parameters; it is not a full-computation correctness guarantee.
Workflow
- Register the model. Quantize and register a fixed-point representation. Experiments use 12-bit activations and approximately 24-bit residual streams.
- Partition the trace. Cut after residual additions and add separate embedding and final-projection chunks: 2L+3 chunks for L layers. GPT-2 has 27, TinyLlama-1.1B 47 and Llama-2-70B 163.
- Seal. Commit to chunk boundaries using KZG-style polynomial commitments over BN254. Adjacent chunks share boundary commitments; a hash chain fixes their order.
- Sample. After sealing, use randomness the Worker cannot control. Always prove the two anchor chunks (the first and last chunks), plus the sampled interior chunks. Default interior sample counts are 3 for GPT-2/Llama-2 and 2 for TinyLlama.
- Prove and verify. Generate proofs for selected chunks. Verification does not require model weights. The same commitments can support escalation to full-chunk proofs.
The order is essential: knowing the sample before committing would let an adversary avoid the checked chunks.
Experimental setup and negative tests
The study used an Apple M3 Pro laptop for GPT-2; an RTX 4090 with two AMD EPYC 7742 CPUs for TinyLlama (GPU inference/calibration, CPU proving and verification); and a 256-thread, 2 TB RAM CPU server for Llama-2-70B. Except E09 and E12, reported measurements are single runs.
Seal/prove/verify pipelines completed for all three models. Reported negative cases included altered outputs, manifests and boundary commitments, missing proofs, model substitution, sampling-policy mismatches and beacon mismatches. These were rejected across different experiments and test sets; this does not mean every negative case was individually run on 70B.
Llama-2-70B: E02, context of 8 tokens
| Stage | Time | Notes |
|---|---|---|
| One-time registration: load and quantize | 8,906 s | 387 GB resident memory |
| One-time registration: stream weight-polynomial commitments | 10,553 s | Approximately 60 GB working set |
| Per inference: integer trace execution | 48,706 s | Single-threaded integer execution |
| Seal 163 chunk boundaries and prove 5 chunks | 1,259 s, approximately 21 min | 4.34 MiB proof |
| Verify | 46.3 s | CPU only; no model weights |
| Reported approximate total | 69,500 s, 19.3 hours | Includes one-time registration; memory below 2 TB throughout |
Sampled versus full-chunk proofs: E10, TinyLlama, context 8
| Scope | Proven chunks | Seal + prove | Proof size | Verify |
|---|---|---|---|---|
| s = 5 | 7 / 47 | 276.8 s | 1.77 MiB | 1.7 s |
| All chunks | 47 / 47 | 1,256.1 s | 25.98 MiB | 17.7 s |
A single-transcript full-proof baseline did not complete because of prover stack overflow. The comparison uses partitioned full-chunk proofs.
Batching, context length and quantization
E05, TinyLlama, 16 tokens per request: batching 3 concurrent requests into one proof took 116.4 s versus a measured 295.6 s for separate proofs, approximately 2.54×. Proving a batch of 12 requests took 181.9 s. At roughly 99 s per separate proof, the estimated total for 12 separate proofs is 1,188 s, about 6.5 times the batched proving time. The 6- and 12-request separate-proof baselines are estimates, not individually measured runs.
Increasing TinyLlama context from 8 to 16 tokens changed proof time from 94.8 s to 99.0 s. This narrow interval does not establish context-independent proving cost at production lengths.
E09 measures quantization fidelity, not proofs. Teacher-forced evaluation used 655 non-overlapping 512-token windows and 334,705 prediction positions on WikiText-2 test data. Quantized versus f32 top-1 agreement was 84.8%–84.9%; perplexity was 12.94–12.95 versus f32's 11.94. These are fidelity measurements, not cheating detection rates.
E11 determinism: 10 independent registrations produced identical fingerprints. Of 20 GPU inference runs with the same quantized model/input, 16 were token-identical. Registration was reproducible in the test; inference was not fully deterministic.
Sampling security boundaries
If one fixed faulty chunk exists among 161 candidate interior chunks and 3 are sampled uniformly, its detection probability is 3/161, approximately 1.86%. Under independent sampling of the same fixed violation, 37 checks give approximately 50% cumulative detection and 160 approximately 95%. These numbers do not directly apply to unrelated tasks or changing violations; multiple faulty chunks require a different calculation.
Economic deterrence additionally requires detectable violations, enforceable penalties and (1 − P)G − PD < 0, where G is the extra gain from cheating, P the detection probability and D the net loss when caught. This is conditional, not an unconditional security claim.
E12: pure Fiat–Shamir sampling permits grinding. When the commitment hash alone determines the sample, an adversary can reseal a forged boundary until sampling misses it. GPT-2 attempts took 12.5 ms each, with average attempts consistent with 1/q. Adding a post-seal random beacon that the adversary cannot control restored the observed escape fraction to the theoretical value q.
Published limitations
- Even full-chunk proofs establish only the encoded relation. Approximate operators permit error; they do not imply bitwise equivalence to the original model's entire output.
- The paper makes no compute-forcing claim or minimum-computation guarantee.
- Proofs concern a registered quantized canonical model, not the original floating-point model. Commitment-based numerical audits and fixed-point arithmetic proofs provide different guarantees.
- Experiments use a test reference string. Deployment needs an appropriate trusted setup, authenticated registration, one accepted pre-challenge manifest per obligation and enforced sealing deadlines.
- TinyLlama/70B proving experiments use short 8–16-token contexts. E09's 512-token fidelity evaluation includes no proving. Production-length proving cost is unmeasured; the 70B CPU model and proving peak memory were not recorded.
- The modified backend's root and package license declarations conflict; redistribution requires separate license resolution.
