A Thorough Examination of Decoding Methods in the Era of LLMs

Chufan Shi, Haoran Yang, Deng Cai, Zhisong Zhang, Yifan Wang +2 more
2/10/2024
cs.CL

No official code found. Best implementation: DavidFanzz/llm_decoding (12 stars, last commit 2025-04-25).

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.

View on arXivView PDF

Code Implementations(1)

123Shell, PythonMay 30, 20241 years ago

Similar Papers

Cite this paper

@article{shi2024thorough,
  title  = {A Thorough Examination of Decoding Methods in the Era of LLMs},
  author = {Chufan Shi and Haoran Yang and Deng Cai and Zhisong Zhang and Yifan Wang and Yujiu Yang and Wai Lam},
  year   = {2024},
  eprint = {2402.06925},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.06925v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.06925.svg)](https://codeofpaper.com/paper/2402.06925)

Discussion