Top-H Decoding: Adapting the Creativity and Coherence with Bounded Entropy in Text Generation
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs), despite their impressive performance across a wide range of tasks, often struggle to balance two competing objectives in open-ended text generation: fostering diversity and creativity while preserving logical coherence. Existing truncated sampling techniques, including temperature scaling, top-p (nucleus) sampling, and min-p sampling, aim to manage this trade-off. However, they exhibit limitations, particularly in the effective incorporation of the confidence of the model into the corresponding sampling strategy. For example, min-p sampling relies on a single top token as a heuristic for confidence, eventually underutilizing the information of the probability distribution. Toward effective incorporation of the confidence of the model, in this paper, we present **top-H** decoding. We first establish the theoretical foundation of the interplay between creativity and coherence in truncated sampling by formulating an **entropy-constrained minimum divergence** problem. We then prove this minimization problem to be equivalent to an **entropy-constrained mass maximization** (ECMM) problem, which is NP-hard. Finally, we present top-H decoding, a computationally efficient greedy algorithm to solve the ECMM problem. Extensive empirical evaluations demonstrate that top-H outperforms the state-of-the-art (SoTA) alternative of min-p sampling by up to **25.63%** on creative writing benchmarks, while maintaining robustness on question-answering datasets such as GPQA, GSM8K, and MT-Bench. Additionally, an *LLM-as-judge* evaluation confirms that top-H indeed produces coherent outputs even at higher temperatures, where creativity is especially critical. In summary, top-H advances SoTA in open-ended text generation and can be *easily integrated* into creative writing applications. The code is available at https://github.com/ErfanBaghaei/Top-H-Decoding.
Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Builds on 12 of its 20 references that are in the map. First posted on arXiv 2 Sep 2025.
Builds on
12 of 20 references.
References · 12
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2024GPT-4o System Cardcited by 4,588
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,879
- 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,917
- 2018Hierarchical Neural Story Generationcited by 1,193
- 2022CoAuthor: Designing a Human-AI Collaborative Writing Dataset for Exploring Language Model Capabilitiescited by 249
- 2024Turning Up the Heat: Min-p Sampling for Creative and Coherent LLM Outputscited by 150
- 2022Truncation Sampling as Language Model Desmoothingcited by 123
Built on by
Citing papers per year: 2025: 2; 2026: 7.
9 papers.
- 2026Power-SMC: Low-Latency Sequence-Level Power Sampling for Training-Free LLM Reasoningcited by 21
- 2026LLM Review: Enhancing Creative Writing via Blind Peer Review Feedbackcited by 5
- 2025From Filters to VLMs: Benchmarking Defogging Methods through Object Detection and Segmentation Performancecited by 3
- 2026Geometry-Aware Decoding with Wasserstein-Regularized Truncation and Mass Penalties for Large Language Modelscited by 3
- 2025Video Reasoning without Trainingcited by 2
- 2026Sampling More, Getting Less: Calibration is the Diversity Bottleneck in LLMscited by 2
- 2026Beyond Entropy: Learning from Token-Level Distributional Deviations for LLM Reasoningcited by 1
- 2026Entropy-informed Decoding: Adaptive Information-Driven Branchingcited by 0
- 2026Truncation Samplers Are Nested: Comparing Decoding Rules Is a Measurement Problemcited by 0
- 2026Truncation Samplers Are Nested: Comparing Decoding Rules Is a Measurement Problem11 Oct 2026
- 2026Beyond Entropy: Learning from Token-Level Distributional Deviations for LLM Reasoning18 Jun 2026
- 2026Sampling More, Getting Less: Calibration is the Diversity Bottleneck in LLMs11 May 2026
- 2026Entropy-informed Decoding: Adaptive Information-Driven Branching10 May 2026
- 2026Geometry-Aware Decoding with Wasserstein-Regularized Truncation and Mass Penalties for Large Language Models10 Feb 2026
- 2026Power-SMC: Low-Latency Sequence-Level Power Sampling for Training-Free LLM Reasoning10 Feb 2026
- 2026LLM Review: Enhancing Creative Writing via Blind Peer Review Feedback12 Jan 2026
- 2025Video Reasoning without Training19 Oct 2025
- 2025From Filters to VLMs: Benchmarking Defogging Methods through Object Detection and Segmentation Performance4 Oct 2025