Instruction tuning and preference training make language models more helpful, but they also make them overconfident: the probability a chat model assigns to its answer stops matching how often that answer is right. Most widely deployed open models are now mixtures of experts. These are networks in which a small learned gate picks, for every token at every layer, which few of many feed-forward sub-networks ("experts") process it. That gate produces a tiny, interpretable trace: a probability distribution over a few dozen experts per layer. We propose to compare this trace between a base model and its post-trained descendant on the same input. Where post-training has rerouted tokens, we expect the post-trained model's confidence to have drifted away from reality. We use that routing divergence, computed without labels, to set an input-specific temperature on the post-trained model's outputs.
In two sentences: post-training changes not only what experts compute but which experts get chosen, and we expect inputs whose routing changed most to be the ones where confidence was inflated most. Measuring that change costs a few numbers per layer, so it gives a cheap, label-free, per-input handle on overconfidence that dense-model methods lack.
Core Claim
The claim has two parts, and either could fail. The first part is empirical: in base/chat pairs of mixture-of-experts models, post-training measurably sharpens or redirects the gate's distribution, and this drift concentrates in the middle layers. These are the layers where Decoding Knowledge Attribution in Mixture-of-Experts finds that tokens get screened and dispatched to specialist experts, in a "mid-activation" phase that precedes "late-amplification" refinement. The second part is functional: per-input routing drift predicts per-input overconfidence better than the post-trained model's own uncertainty signals. It should also predict at least as well as a dimension-matched measure of hidden-state drift. If so, a one- or two-parameter temperature conditioned on routing drift, fitted only against the base model's output distribution, should recover most of the calibration lost in post-training.
The calibrator is deliberately small. Let $g^{\ell}_{\text{base}}(x)$ and $g^{\ell}_{\text{post}}(x)$ be the gate distributions over experts at layer $\ell$, averaged over the prompt's tokens. Let $\mathcal{L}$ be a set of layers chosen in a diagnostic phase. The drift score is
$$D(x) = \frac{1}{|\mathcal{L}|}\sum_{\ell \in \mathcal{L}} \mathrm{JS}\big(g^{\ell}_{\text{base}}(x)\,\|\,g^{\ell}_{\text{post}}(x)\big),$$
where JS is Jensen–Shannon divergence. The post-trained answer logits $z_{\text{post}}(x)$ are rescaled by $T(x) = \mathrm{softplus}(a + bD(x))$. The two scalars $a, b$ are fitted on unlabeled prompts by minimizing $\mathrm{KL}\big(p_{\text{base}}(\cdot\mid x)\,\|\,\mathrm{softmax}(z_{\text{post}}(x)/T(x))\big)$. The base model serves as the label-free reference because, as Unlocking the Pre-Trained Model as a Dual-Alignment Calibrator for Post-Trained LLMs argues, pre-trained models remain better calibrated than their post-trained descendants on multiple-choice tasks.
Relation to Prior Work
Two papers motivate the proposal and set its standard. DUAL-ALIGN (Wang et al.) distinguishes "output drift" (inflated final confidence) from "process drift" (diverging internal inference). It locates a peak-divergence layer by Jensen–Shannon divergence over intermediate representations of dense models, and aligns an entropy statistic there along with the output. We keep its base-model-as-reference logic. We replace dense hidden-state comparisons, which the file notes are burdensome at billions of parameters, with gate distributions of a few dozen numbers per layer, and we ask whether routing is where process drift lives in sparse models. The knowledge-attribution study supplies the layer prior: if routing drift is concentrated where the gate screens tokens, that ties overconfidence to a specific mechanism rather than to "somewhere inside."
Two MoE-calibration papers constrain the design. Variational Routing (VMoER) trains a lightweight stochastic gate head on a frozen MoE model and reports large calibration gains on multiple-choice QA. It treats the gate as a source of brittleness to be made stochastic. We leave the gate untouched and read its change since pre-training as a diagnostic, which needs no training of model components and no labels. Toward Calibrated Mixture-of-Experts Under Distribution Shift proves that calibrating experts individually does not calibrate a soft mixture, and that hard top-1 routing keeps calibration under shift. That result is why our correction acts on the aggregate output and not on experts. It also predicts that drift should matter more in top-$k>1$ models, which our model choice lets us test. Their method is a training-time robust reweighting on small (four-expert) mixtures, which does not apply to frozen 16B–30B models.
Two papers show the gate signal is informative but leave our question open. MoE-CP uses gate vectors as a domain signature to weight conformal calibration samples in regression. It uses one model's gate as a similarity space, whereas we use the divergence between two checkpoints' gates as a confidence-error signal. When Model Merging Breaks Routing shows that routers, unlike expert weights, do not interpolate linearly and that divergence compounds in deeper layers. It repairs routers to restore accuracy but never measures output calibration. That fragility is a reason to expect post-training to disturb routing disproportionately, though this is a hypothesis we test rather than assume.
Research Program
The work proceeds in three stages, and each stage can stop the project. The first stage is diagnostic. For base/chat pairs available in the model families named in the file, we run both checkpoints on MMLU, MedMCQA, ARC-Challenge, OpenBookQA, SciQ and TruthfulQA and record per-layer gate distributions. The pairs are OLMoE-1B-7B, Qwen1.5-MoE-A2.7B, DeepSeek-MoE-16B and Qwen3-30B-A3B. We report three things: the layer profile of JS drift, whether post-trained gates are systematically lower-entropy (sharpening) or redirected (different experts at similar entropy), and whether shared experts are unaffected while routed experts shift. If drift is negligible in every pair, perhaps because some recipes effectively freeze routers, the routing hypothesis is falsified and we report that.
The second stage tests prediction. For each input, we compute the post-trained model's overconfidence as confidence minus correctness. We then ask how well $D(x)$ ranks inputs by overconfidence, compared with the post-trained model's own gate entropy, its output entropy, and hidden-state drift at the same layers. Hidden-state drift is computed as JS between softmaxed random projections of the residual stream to the same dimension as the gate, so the two signals carry equal capacity.
The third stage builds and evaluates the calibrator above and runs a causal check. The causal check is a partial router rollback: we substitute base-model gate weights into the post-trained model at the high-drift layers only, and measure whether calibration improves and how much accuracy drops. If rollback at mid layers improves calibration while rollback at late layers does not, that is direct evidence that routing changes in the screening phase cause inflated confidence. As an efficiency extension, we train a small probe on the post-trained gate logits to predict $D(x)$, so that deployment does not require running the base model at test time. We report how much of the calibration gain survives that substitution.
Baselines
The naive reference is the post-trained MoE model with no correction, evaluated on its answer-letter probabilities. Every other number is read against it.
The supervised reference is a single global temperature fitted on labeled validation data from each benchmark. It uses labels we do not, so matching it label-free counts as success, and beating it in-domain is not required. We do require beating it on the held-out shift split described below.
The strongest label-free competitor is DUAL-ALIGN (Wang et al.). It reports MMLU ECE of 2.871% on Llama-3.1-8B, against 10.806% for the vanilla post-trained model and 7.811% for the output-alignment baseline the same paper reports as DACA. Those numbers come from a dense model, so we re-implement DUAL-ALIGN on each MoE pair with the same unlabeled prompt pool, the same base reference, and an equal hyperparameter search budget. We also run the output-only alignment variant, which fits a global temperature against the base model's outputs. It is identical to our method with $b=0$, so it is the exact ablation of the routing ingredient. Beating DUAL-ALIGN means matching or lowering its ECE on the MoE pairs while storing and comparing only gate distributions; equal ECE at a fraction of the memory and compute would still be a meaningful result.
The strongest MoE-specific competitor is VMoER (Li & Wicker). It reports ECE dropping from 0.252 to 0.015 on Granite-MoE (3B) over its multiple-choice suite, at 1.07% extra FLOPs. The file has no per-benchmark numbers for its Qwen-MoE and DeepSeek-MoE runs, so we will retrain its full-covariance variant on our pairs with its published layer choice and the same task data it uses. We will compare under two conditions: in-domain, where VMoER has the advantage of labels, and on MMLU-Law held out as a shift split, where VMoER reports OOD gains but no reported result found on Lacuna for an absolute MMLU-Law score.
Two ablations isolate the key ingredient. The first replaces $D(x)$ with the post-trained gate entropy alone, removing the base reference. The second replaces it with dimension-matched hidden-state drift, removing the specific role of routing.
Why not just…?
Why not just temperature-scale the chat model? A global temperature cannot tell overconfident inputs from well-calibrated ones, and it needs labels. Wang et al. argue it addresses only output drift, and Dong et al. show confidence-accuracy maps fitted in-distribution fail under shift. Still, on in-domain MMLU a labeled temperature may be very hard to beat. The honest test is the MMLU-Law shift split and the per-input overconfidence ranking of stage two, where a global scalar has no signal by construction.
Why not just apply DUAL-ALIGN to the MoE model? This is the real threat. If dense hidden-state alignment already captures everything routing drift captures, our contribution shrinks to a cheaper summary statistic. The hidden-state-drift ablation and the head-to-head ECE comparison settle this directly. We will state the outcome either way, and if they tie we will frame the result as a cost reduction rather than a new mechanism.
Why not just make the router stochastic, as VMoER does? VMoER trains a new head on labeled task data and changes the model's computation. Our method changes no weights and uses no labels. The two are also not exclusive: stage two will show whether high-drift inputs are the ones VMoER's gate variance flags. If VMoER already dominates on shift, the remaining case for our method is label-free deployment, and we will say so.
Why not just use the post-trained gate's own entropy? It needs no base model. However, a confidently sharpened gate after post-training looks identical to a gate that was always sharp for a good reason, and only comparison with the base model can tell the two apart. The entropy-only ablation measures how much the base reference adds.
Proposed Experiments and Decisive Checks
The metrics are ECE with fixed 15-bin and adaptive binning, Brier score, accuracy (which must not drop, since temperature preserves the argmax), and AUROC of each drift signal for identifying wrong answers held with confidence above 0.8. We run all four model pairs and all six benchmarks, use MMLU-Law as a held-out shift split, and report seeds over prompt-pool resamples.
Three outcomes would be decisive. First, routing drift must be non-trivial and peak in the screening layers; if it is flat or absent, the hypothesis fails. Second, $D(x)$ must out-rank both gate entropy and dimension-matched hidden-state drift in predicting overconfidence; if hidden-state drift is equal, routing is merely a compact proxy. Third, mid-layer router rollback must reduce ECE more than late-layer rollback; if it does not, routing drift is a correlate and not a cause.
Following the non-additivity result of Wong et al., we expect the effect to be larger in top-$k>1$ models than in more hard-routed ones. Seeing that ordering would tie this post-training phenomenon to the soft-mixture miscalibration mechanism they identified.
References
- Decoding Knowledge Attribution in Mixture-of-Experts: A Framework of Basic-Refinement Collaboration and Efficiency Analysis
- Unlocking the Pre-Trained Model as a Dual-Alignment Calibrator for Post-Trained LLMs
- Variational Routing: A Scalable Bayesian Framework for Calibrated Mixture-of-Experts Transformers
- Toward Calibrated Mixture-of-Experts Under Distribution Shift
- Adaptive Conformal Prediction via Mixture-of-Experts Gating Similarity
- When Model Merging Breaks Routing: Training-Free Calibration for MoE
- Expectation Consistency Loss: Rethink Confidence Calibration under Covariate Shift