A Thorough Examination of Decoding Methods in the Era of LLMs

Chufan Shi, Haoran Yang, Deng Cai, Zhisong Zhang, Yifan Wang, Yujiu Yang, Wai Lam

arXiv:2402.06925 · 2026-07-27 공개 · arXiv · PDF

quantization alignment model-size llms hyperparameter-tuning task-dependency performance-evaluation robustness-analysis

Abstract

Decoding methods play an indispensable role in converting language models from next-token predictors into practical task solvers. Prior research on decoding methods, primarily focusing on task-specific models, may not extend to the current era of general-purpose large language models (LLMs). Moreover, the recent influx of decoding strategies has further complicated this landscape. This paper provides a comprehensive and multifaceted analysis of various decoding methods within the context of LLMs, evaluating their performance, robustness to hyperparameter changes, and decoding speeds across a wide range of tasks, models, and deployment environments. Our findings reveal that decoding method performance is notably task-dependent and influenced by factors such as alignment, model size, and quantization. Intriguingly, sensitivity analysis exposes that certain methods achieve superior performance at the cost of extensive hyperparameter tuning, highlighting the trade-off between attaining optimal results and the practicality of implementation in varying contexts.

한국어 요약

한 줄 요약

LLMs 시대의 다양한 디코딩 방법을 평가하고, 성능, 안정성, 속도를 비교한 종합적 분석.

핵심 기여도

핵심 아이디어

LLMs는 토큰 예측 모델을 실제 작업 해결자로 전환하기 위해 디코딩 방법이 필수적이다. 기존 연구는 작업별 모델에 초점을 맞추었으나, LLMs 시대에는 일반적인 디코딩 전략의 비교가 필요하다. 본 연구는 다양한 디코딩 방법의 성능, 안정성, 속도를 평가함으로써, LLMs에서 최적의 디코딩 선택 기준을 제시한다. 특히, 결정적 방법(beam search 등)은 폐쇄형 작업에서, 확률적 방법(top-p sampling 등)은 개방형 작업에서 우수한 성능을 보인다. 그러나 확률적 방법이 self-consistency를 활용하면 여러 실행을 통해 결정적 방법을 앞선다. 이는 디코딩 방법 선택 시 작업 유형과 성능-속도-안정성의 균형을 고려해야 함을 시사한다.

기술적 접근법

주요 결과

의의 및 한계

실용적 활용