TRUEOPEN
English

← Docs contents

TRUEOPEN / DOCS

Logprob verification: checking model execution

Teacher-forced prefill, Verifier selection, commit–reveal, calibrated metrics, candidate checks and majority consensus.

Sources reviewed: · English edition · 中文

Logprob verification is the inference verification method in the cited TrueOpen V1 protocol. The whitepaper calls it Logprob Verification by Majority Agreement; the manuscript uses LMCV (Logprob Majority-Consensus Verification). These source-specific names are retained when referring to those documents. It checks consistency with specified model weights and execution settings; it does not judge whether an answer is factually correct.

Core idea: verification uses one prefill

Generation decodes sequentially: token t depends on the input and the preceding t−1 output tokens. Once generation ends, the path is fixed. A Verifier can pass input_ids + output_ids to the specified model in one teacher-forced prefill, obtaining output-position predictions under a causal mask.

For output A, B, C, the prediction of B is still conditioned only on the input and A. B and C do not influence that prediction. Parallel prefill therefore preserves causal conditioning without regenerating the sequence token by token.

Make indexing explicit. With input length n and zero-based output index d, the target token is at position n+d in the concatenated sequence. In a conventional causal language model, the raw logits that predict it come from position n+d−1. For already aligned interfaces such as vLLM prompt_logprobs, use the returned target-token alignment; do not shift twice.

Use the token IDs actually recorded by the Worker. Different sequences can decode to identical text while having different probabilities and ranks. Retokenizing displayed text is not equivalent. Verifiers also check that recorded tokens decode to the delivered text.

V1 compares every generated position, without sampling within the output. Every generated position must be accounted for; missing records cannot be silently excluded. Workers cannot omit difficult tokens to narrow coverage.

Protocol flow

1. Deliver first, select Verifiers later

To reduce advance collusion, the protocol fixes Worker results and evidence commitments before selecting Verifiers:

  1. Candidate filtering: a verifiable random function (VRF) selects a pool from nodes meeting stake, performance, online declaration, model/verification support and penalty-status requirements.
  2. Final selection: willing candidates submit signed participation requests (handraises). Once registration closes and the roster and weights are fixed, randomness from a specified future block draws 3 Verifiers by weight without replacement.

Anyone can recompute the draw from the fixed roster, weights and public randomness. Resistance to collusion depends on the share of selection weight held by malicious nodes and on how hard the randomness is to manipulate, not on the raw node count. A Worker cannot verify its own task.

2. Compute independently and commit

Before committing, Verifiers do not receive the Worker's numerical comparison values. Each independently runs a prefill pass, hashes its metrics and evidence into result_payload_hash, and commits with task bindings and a 32-byte random salt:

commit_hash = SHA256(
    frame("SINGA_RESULT_COMMITMENT_V2")
 || frame(chain_id) || frame(task_id) || frame(task_hash)
 || frame(u32be(verify_round)) || frame(verifier_operator_address_bytes)
 || frame(result_payload_hash) || frame(salt)
)

Each frame(·) adds an 8-byte big-endian length prefix to avoid concatenation ambiguity. The commitment binds chain, task, round and Verifier identity. The locally generated secret salt is distinct from the public selection beacon.

3. Reveal

The commitment phase closes when all selected Verifiers' commitments are accepted or the deadline height is reached. If fewer than two valid commitments are accepted, the round fails. Otherwise, the round enters the reveal phase and accepts no new commitments. The chain recomputes hashes and rejects mismatches. Participants' answers are fixed before they can see others' comparison values.

4. Apply registered rules

Metrics, tolerances and batch rules are fixed at model registration. A Verifier cannot select a favorable rule after seeing results.

Metric Meaning
mean_abs_logprob_diff Mean absolute difference in selected-token logprob
p95 / p99 / p999 95th, 99th and 99.9th percentiles of the absolute differences
rank_delta_rate Fraction of positions where selected-token rank changes
topk_jaccard Overlap of Worker and Verifier top-k candidate sets
union_js Jensen–Shannon divergence over the top-k union
missing_selected_count Positions where the Worker's selected token is absent from the Verifier result

These compare selected-token and top-k logprobs exposed by vLLM, not full-vocabulary raw logits. The chain derives sample verdicts from frozen thresholds; submitted results cannot supply their own authoritative verdict or workload.

5. Two-of-three agreement

At least two valid, mutually consistent results are required to confirm a verdict and the associated billable workload. Minority results are not rewritten. Verifiers whose results fall outside the valid consensus cluster are not eligible for the first-round verification fee. Without the threshold, the round closes through no-consensus or verification-unavailable paths rather than inventing a verdict.

During the challenge window, any address can fund a new independent round under the protocol. See settlement.

Two important safeguards

Candidate-set checking addresses small-model generation followed by large-model probability replay. A cheating Worker can generate tokens with a cheap substitute model and then prefill them with the claimed model to obtain genuine logprobs. Mean-difference checking alone cannot detect that construction. The proposed rule therefore constrains each output token's rank under the specified model:

rank_M(y_t | x, y_1, …, y_{t−1}) ≤ k_gen

The registered generation top-k bound supplies k_gen. Under the rule, conforming generation must stay within the allowed candidate set, with registered tolerance at numerical boundaries. Substitute outputs can fall outside it; that is evidence for rejection, not a guarantee of catching every substitute. A clearly invalid position is not excused by other normal positions. Unrestricted top_k=0, often used in experiments, is not itself a strong production candidate rule.

Batch statistics account for normal numerical variation. The same model can produce different logprobs on different GPUs; exact equality would reject honest work. A statistical batch groups tasks for the same Worker, model and verification configuration, with membership fixed before verification. Maintainers calibrate batch size, minimum valid samples and pass/reject conditions. Aggregate statistics and per-token rules are complementary; removing failed samples cannot manufacture a pass.

Verdicts are three-way: pass when every required pass condition holds; reject when a rejection condition holds; otherwise inconclusive, with further checks as defined by the rules.

Additional checks for MoE

Same-model MoE replay can have sparse, heavy-tailed token-level logprob spikes. Logprobs alone make it difficult to define a clear decision threshold. The whitepaper specifies joint expert-routing checks for MoE models; the tested Qwen3.6-35B-A3B configuration uses layer 0. See MoE verification.

What this establishes

  • Statistical evidence of probability and, for MoE, routing consistency with a specified configuration.
  • Not a cryptographic proof of every floating-point operation. Detection depends on chosen checks and calibration; majority agreement does not expand their coverage.
  • Not directly applicable to a text-only black-box API that withholds original tokens and logprobs.

See model identity experiments for measured outcomes and verification costs for overhead.

Sources