Goto

Collaborating Authors

 confident decoding


Deeper is Not Always Better: Mitigating the Alignment Tax via Confident Layer Decoding

arXiv.org Artificial Intelligence

Autoregressive generation in large language models (LLMs) conventionally decodes from the final layer, assuming that deeper representations yield more reliable next-token predictions. We revisit this assumption by revealing a recurring Guess-Refine-Perturb dynamic: early layers form coarse guesses, intermediate layers refine reasoning-relevant semantics, and final layers can perturb these refined predictions toward generic or alignment-preferred tokens. We introduce Confident Decoding, a training-free decoding strategy that dynamically selects the most reliable near-final layer through entropyguided conservative backward search. We further provide a theoretical formulation of layer selection as an optimal stopping problem, showing that under bounded projection noise and dominant late-stage alignment perturbation, our search rule filters perturbation while bounding the loss relative to the oracle refinement layer. Experiments across dense and Mixture-of-Experts LLMs demonstrate consistent gains on challenging reasoning benchmarks, including GPQA-Diamond, Omni-MATH, and HLE, with zero memory overhead and less than 2% latency increase. These results suggest dynamically bypassing final-layer perturbations can unlock stronger reasoning behavior from aligned LLMs. Figure 1: Token substitutions produced by Confident Decoding on Qwen3.5-35B-A3B. When the two decoding strategies disagree ( 2% of generated tokens), Standard Decoding (right) selects generic, highfrequency function words and punctuation (e.g., "the", "is", "so", ".") characteristic of alignment-induced common-word bias in the final layers. Confident Decoding (left) instead commits at the entropy valley-- the layer of peak confidence before late-stage perturbation--and recovers domain-specific, semantically precise terminology (e.g., "mass", "radius", "approximately", "Cartesian"). Word sizes are proportional to substitution frequency.