Improving Open-Ended Text Generation via Adaptive Decoding

Wenhong Zhu, Hong-ping Hao, Zhiwei He, Yiming Ai, Rui Wang
2/12/2026

No official code found. Best implementation: zwhong714/adaptive_decoding (19 stars, last commit 2024-06-02).

Abstract

Current language models decode text token by token according to probabilistic distribution, and determining the appropriate candidates for the next token is crucial to ensure generation quality. This study introduces adaptive decoding, a mechanism that dynamically empowers language models to ascertain a sensible candidate set during generation. Specifically, we introduce an entropy-based metric called confidence and conceptualize determining the optimal candidate set as a confidence-increasing process. The rationality of including a token in the candidate set is assessed by leveraging the increment of confidence. Experimental results reveal that our method balances diversity and coherence well. The human evaluation shows that our method can generate human-preferred text. Additionally, our method can potentially improve the reasoning ability of language models.

View on arXivView PDF

Code Implementations(1)

[ICML2024]Adaptive decoding balances the diversity and coherence of open-ended text generation.

191C, C++Feb 27, 20242 years ago

Similar Papers

Cite this paper

@article{zhu2026improving,
  title  = {Improving Open-Ended Text Generation via Adaptive Decoding},
  author = {Wenhong Zhu and Hong-ping Hao and Zhiwei He and Yiming Ai and Rui Wang},
  year   = {2026},
  eprint = {2402.18223},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2402.18223},
  journal = {ICML 2024 2024}
}

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.18223.svg)](https://codeofpaper.com/paper/2402.18223)

Discussion