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

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

arXiv:2606.21906 · 2026-06-23 공개 · arXiv · PDF

mixture-of-experts llm-reasoning autoregressive-generation alignment-tax gpqa-diamond optimal-stopping omni-math layer-decoding

Abstract

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.

한국어 요약

한 줄 요약

최종 레이어 대신 신뢰도 높은 중간 레이어를 선택하는 Confident Decoding이 추론 성능을 향상시킨다.

핵심 기여도

핵심 아이디어

기존의 LLM 추론 방식은 최종 레이어의 출력만을 사용하지만, 이 연구는 중간 레이어가 더 정확한 추론 결과를 제공할 수 있음을 제시한다. 연구팀은 LLM의 forward pass 동작을 분석하여, Guess-Refine-Perturb라는 3단계 패턴을 발견했다. 즉, 초기 레이어는 대략적인 예측을 생성하고, 중간 레이어는 의미적 정제를 수행하지만, 최종 레이어는 정제된 정보를 방해하는 편향을 도입할 수 있다. 이는 alignment 과정에서 발생하는 "Alignment Tax"의 결과로, 추론 성능을 저하시킨다. 이를 해결하기 위해 Confident Decoding은 엔트로피가 낮은, 즉 예측 분포가 날카로운 레이어를 역방향으로 탐색하며 선택하는 방식을 제안한다. 이는 훈련 없이 적용 가능한 decoding 전략으로, 모델의 전체 forward pass를 유지하면서도 최적의 예측 레이어를 동적으로 선택한다.

기술적 접근법

주요 결과

의의 및 한계

Confident Decoding은 alignment 과정에서 발생하는 추론 편향을 동적으로 제거함으로써, LLM의 내재된 추론 능력을 더 잘 발휘할 수 있도록 한다. 이는 복잡한 추론, 코드 생성, 긴 문맥 이해 등 다양한 벤치마크에서 실질적인 성능 향상을 보여준다. 또한, 훈련 없이 적용 가능한 decoding 전략으로, 기존 추론 파이프라인에 쉽게 통합할 수 있다. 그러나 이 접근법은 unembedding 행렬 $ W_U $가 중간 잔여 상태와의 구조적 정렬에 의존하기 때문에, 일부 경우 단어 집합 불일치로 인한 성능 저하가 발생할 수 있다. 또한, 이 방법은 decoding 단계에서만 alignment 편향을 완화할 뿐, 훈련 단계에서의 원인을 해결하지는 못한다.

실용적 활용

Confident Decoding은 복잡한 추론이 필요한 AI 어시스턴트, 코드 생성 도구, 긴 문맥 이해 시스템 등에 적용 가능하다. 특히, alignment 과정에서 성능 저하가 발생하는 대형 언어 모델에서 유용하며, 추론 과정을 개선하면서도 추가 훈련이나 메모리 사용 없이 적용할 수 있어 산업 현장에서 즉각적으로 활용 가능하다.