arXiv:2610.01495cs.AIOct 2026

Manuscript Offprint

arXiv:2610.01495

Auditing Routing Entropy as an Uncertainty Signal in Attention-Residual Transformers

Wenhao Liang, Lin Yue, Wei Emma Zhang, Mingyu Guo, Olaf Maennel, Weitong Chen

ABSTRACT

Dynamic architectures leave a per-example routing trace beside each prediction, and diffuse routing is easy to read as a sign that the prediction is unreliable. We audit that reading for routing entropy in Attention-Residual (AR) variants of Swin-Tiny and DeiT-Small, trained from scratch on CIFAR-10/100 with a soft-binned calibration auxiliary loss, asking whether the trace carries information about correctness beyond what the model's own confidence already reveals. Three checks probe this increment: does a routing signal appear at fixed confidence, does it replicate across training seeds, and can a held-out predictor exploit it against output-only and shuffled-trace controls? A sensitivity audit then injects effects of known size and measures the fraction of each that the probes recover. No test in the fixed 30-test binned family survives multiplicity correction, and neither the nominal hit nor a borderline result recurs in its sibling seeds. Across 24 paired runs a scalar routing probe yields no pooled improvement in routing-stratified calibration, and an entropy-profile probe predicts correctness better than the same probe given shuffled profiles yet worse than a confidence-only predictor in both binary log-loss and Brier score: a gain over shuffled traces does not become a gain over the output. Conditioning on the complete logit vector leaves the corresponding comparison unresolved. The audit bounds how far these non-detections can be read: at an injected effect of 0.010 nats the profile probe recovers 24–59% of the oracle gain, and a reference-preserving correction probe recovers 8% and 23% in the two CIFAR-100 settings, below the threshold we fixed for applying it to real labels. The results establish control-dependent gains and incomplete estimator recovery, not the absence of conditional routing information.

1 INTRODUCTION

Many networks choose their computation per input. Mixture-of-experts layers route tokens to experts, adaptive-depth models skip layers, and token-pruning systems decide which tokens to keep (Shazeer et al., 2017; Fedus et al., 2022; Wang et al., 2018; Rao et al., 2021). Each choice leaves a per-example trace next to the prediction, and it is natural to ask whether the trace also signals when that prediction is unreliable.

A trace can be associated with errors and still carry nothing the prediction does not already reveal. Routing may follow input difficulty, and difficulty usually shows up in the model's confidence. The useful question is therefore incremental. Let T=1[y^=y]T = \mathbf{1}[\hat{y} = y] indicate a correct prediction, cc the top-class confidence and RR a routing representation. We ask whether

P(T=1∣c,R)≠P(T=1∣c)(1)P(T=1\mid c,R)\neq P(T=1\mid c) \tag{1}

on a set of (c,R)(c, R) values with positive probability: among predictions of equal confidence, does the route separate correct predictions from errors? The primary analyses condition on cc, as a post-hoc calibrator would. A secondary analysis conditions on the complete logit vector. The two are different questions rather than a weaker and a stricter version of one: conditional mutual information is not monotone in the conditioning set, so RR can be uninformative given cc and informative given the logits, or the reverse (App. J.3).

Attention Residuals (AR; Kimi Team et al., 2026) make the question concrete. AR replaces fixed residual accumulation with input-dependent attention over earlier representations, so every forward a Routing trace

The model exposes its per-layer routing

depth attention αl,t(x)\alpha_{l,t}(x) over earlier states

Figure

b Target

Information beyond confidence

Figure

At equal confidence, does R still separate correct from wrong?

P(T=1∣c,R)≠P(T=1∣c)P(T=1 \mid c, R) \neq P(T=1 \mid c)

c Three checks and an audit

What each check asks, and what the AR runs show

Figure

C top-class confidence T=1T = 1 prediction correct HlH_l routing entropy at layer ll

R routing trace (H1,...,HL)(H_1, ..., H_L)

r scalar summary of R

Figure 1: From a routing trace to a testable uncertainty claim. (a) An AR vision transformer exposes top-class confidence c(x)c(x) and, at every layer, routing weights over earlier states; their normalised entropies Hl∈[0,1]H_l \in [0, 1] form the trace R(x)R(x) (input and values illustrative; the token index nn of Eq. (3) is suppressed). (b) The target: at equal confidence, does RR change the probability of a correct prediction? (schematic data). (c) The three checks and the audit with the observed results: (1) within-bin permutation pp-values of the 30-test family, with one nominal hit and one borderline result at p≈0.05p \approx 0.05 (§4.1); (2) the hit is not reproduced by seeds 1–2 and no test passes 0.05/30; (3) Profile minus shuffled-profile and minus confidence-only binary log-loss with 95% intervals ( ×10−3\times 10^{-3} nats; positive is worse for the profile; §4.3); (A) recovery of a 0.010-nat injected effect by the reference-preserving correction probe on the two CIFAR-100 settings (§4.4).

pass exposes a normalised routing distribution at each layer. Diffuse routing is easy to read as uncertainty, but it may equally reflect a useful mixture of representations. The training objective does not ask routing entropy to predict correctness, so whether it does is a property of the trained models to be measured, not a consequence of the architecture.

We measure it with three checks and a sensitivity audit (Fig. 1c). The conditional-signal check compares correctness across routing-defined groups at fixed confidence; replicated evidence repeats that test across training seeds within a fixed multiplicity family; controlled utility asks whether a held-out predictor gains from routing relative to output-only and shuffled-trace controls. Each check addresses a different misreading of a feature ablation: coarse confidence bins can leave residual confounding, a favourable seed can overstate stability, and a flexible probe can profit from an extra input that says nothing new about correctness. The sensitivity audit addresses the opposite misreading, that a failed probe demonstrates absence: it injects effects of known size into simulated labels and measures how much of them each probe recovers.

The choice of control changes what the routing probe appears to show. Across 24 paired runs, an entropy-profile probe attains lower binary log-loss and Brier score than the same probe given shuffled profiles, but higher loss than a confidence-only predictor. A gain over shuffled traces therefore does not establish predictive value beyond the output. Replication plays the same role for the binned diagnostic: a nominal hit and a borderline result are not reproduced by their sibling seeds, and no test survives correction. The audit, in turn, limits how these non-detections can be read. At an injected effect of 0.010 nats per example the profile probe recovers between a quarter and three fifths of the oracle gain, and a probe that keeps the output-only reference fixed recovers less.

We make three contributions. (i) A replicated test of AR routing entropy at fixed confidence, with a fixed 30-test family and continuous-confidence checks on all 24 replicated runs, in which no apparent routing effect replicates. (ii) Paired held-out comparisons in which the profile probe’s advantage over shuffled traces does not survive an output-only baseline conditioned on confidence, while the analogous comparison against the complete logits remains unresolved. (iii) A sensitivity audit showing that the fitted probes recover only part of known routing effects and can lose to their own baseline when such an effect is present, which limits how far a non-detection can be read. Conditional probing and oracle proper-score identities are established tools (Hewitt et al., 2021; Xu et al., 2020); what is new is the evidence they yield about an uncertainty claim for internal routing.

References (77)