Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

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

About

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 entropy-guided 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.

Xuanming Zhang, Sining Zhoubian, Yuxuan Chen, Tianyi Tang, An Yang, Sean Du, Chujie Zheng, Fei Huang, Dayiheng Liu, Gao Huang, Jingren Zhou• 2026

Related benchmarks

TaskDatasetResultRank
Long-context UnderstandingLongBench v2
Overall Score66.7
185
Mathematical ReasoningOmni-MATH
Accuracy78.5
135
WritingWritingBench
Score72.7
104
ReasoningHLE
Score17
65
CodingLiveCodeBench v6
Score (%)84.5
51
Creative WritingWritingBench
Score72.7
42
Mathematical ReasoningOmni-MATH
Accuracy78.5
41
Code GenerationLCB v6
Score84.5
18
Instruction FollowingAIR-Bench
Score90
18
Scientific ReasoningGPQA D
Score85.4
18
Showing 10 of 13 rows

Other info

GitHub

Follow for update