TRUEOPEN
English

← Docs contents

TRUEOPEN / DOCS

MoE verification: logprob spikes and layer-0 routing

Qwen3.6-35B-A3B experiments, robust aggregation, routed-expert fingerprints and configuration-specific calibration.

Sources reviewed: · English edition · 中文

Mixture-of-Experts models activate only a subset of their experts for each token. In Qwen3.6-35B-A3B experiments, even BF16 replay against the same model shows sparse, position-sensitive, heavy-tailed logprob spikes. Rejecting a sample because a single token crosses a threshold can reject conforming execution. The whitepaper specifies joint expert-routing checks for MoE models. The tested configuration uses a layer-0 expert-routing check.

Experiment 1: same-model logprob spikes

The data consist of 4 BF16 same-model verification runs (1 original and 3 repeats) and 1 FP8 Verifier result.

Observation Result
BF16 same-model tokens with difference > 1 0.53%–0.62%
Fraction of spikes that are isolated single points 92.8%–94.3%
Spike locations repeated in at least 2 BF16 runs 65.1% (all 4 runs: 21.5%)
BF16 token-level p99 Approximately 0.366–0.433
p99 after a 5-token window median Approximately 0.097–0.113
p99 after a 16-token window median Approximately 0.044–0.054

Three observations follow:

  1. Large same-model differences are mainly isolated token-level spikes.
  2. They are not entirely random noise: routing and decode-versus-prefill paths create token/context-sensitive locations that recur across runs.
  3. FP8 inherits spikes and also shifts the distribution more broadly. At the pooled BF16 p99 threshold of 0.408, FP8 exceeds it for 2.00% of tokens versus 0.89%–1.07% for BF16. With window medians, FP8 bad-window rates are 3.41% for size 5 and 4.66% for size 16, against a BF16 baseline around 1%.

Robust window aggregation is therefore more useful than isolated token thresholds in this experiment, but logprobs alone still do not give a clean hard boundary.

Experiment 2: layer-0 routing fingerprints

vLLM can expose the selected experts as routed_experts. The Verifier runs a prefill pass over input_ids + output_ids and compares its routing, position by position, with the routing the Worker recorded during decoding.

The primary layer-0 metric is:

entry_mismatch_rate = sum(entry_mismatch_count) / sum(compared_entries)

The numerator counts expert slots that differ, and the denominator counts compared slots. Weighting by actual compared entries avoids treating long and short samples equally.

Deeper layers accumulate numerical differences. The paper and report find cleaner separation with layer 0 alone than with all-layer aggregation.

Single-sample layer-0 distributions: 1,000 samples per group

Case Mean p95 Maximum
BF16 Verifier, positive / BF16 Worker 0.0294 0.0453 0.1014
BF16 Verifier, negative / FP8 Worker 0.1147 0.1398 0.4167
FP8 Verifier, positive 0.0491 0.0669 0.1713
FP8 Verifier, negative 0.1131 0.1427 0.3366

Random 5-sample aggregation, pooling cross-GPU reports

Verifier Threshold Positive acceptance False rejection Negative false acceptance
BF16 0.060 100.0000% 0.0000% 0.0000%
FP8 0.080 99.9453% 0.0547% 0.0000%
FP8 0.085 99.9850% 0.0150% 0.0047%

Across 6000ws and H100, positive layer-0 means are 0.024–0.029 for BF16 and 0.048–0.049 for FP8; negative means are about 0.112–0.117.

These are report-specific calibration recommendations, not universal or confirmed deployed network defaults. New Profiles still need false-rejection, missed-detection and inconclusive-rate calibration.

  • Compare layer 0, using entry_mismatch_rate as the primary score.
  • Aggregate at least 5 samples and at least 512 compared tokens.
  • Suggested acceptance thresholds: BF16 Verifier ≤ 0.060; FP8 Verifier ≤ 0.080. Single-sample thresholds (BF16 0.066, FP8 0.074) are for debugging, not final decisions.
  • Also check compliance with the registered top-k constraint using Verifier prefill logits. The generation protocol fixes registered_logit_tokens_top_k, temperature, top_p and whether greedy/sampled generation is allowed. Workers cannot change it after submitting results.

Interpretation limits

  • An observed false-acceptance rate of 0% is a result for these samples/configurations, not a zero error probability for arbitrary future traffic.
  • Recalibrate when model version, expert layout, precision or engine changes.
  • Routing checks require routed_experts support and a Profile-defined comparison rule. They are not a universal switch for every MoE model.

Sources