PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
August 24, 20241 citationsOpen Access

Balancing Diversity and Risk in LLM Sampling: How to Select Your Method and Parameter for Open-Ended Text Generation

View Full Paper
YZYuxuan ZhouMKMargret KeuperMFMario Fritz

Key Points

Key points are not available for this paper at this time.

Abstract

Sampling-based decoding strategies have been widely adopted for Large Language Models (LLMs) in numerous applications, which target a balance between diversity and quality via temperature tuning and tail truncation (e.g., top-k and top-p sampling). Considering the high dynamic range of the candidate next-token given different prefixes, recent studies propose to adaptively truncate the tail of LLM's predicted distribution. Although improved results haven been reported with these methods on open-ended text generation tasks, the results are highly dependent on the curated truncation parameters and exemplar text. In this paper, we propose a systematic way to estimate the intrinsic capacity of a truncation sampling method by considering the trade-off between diversity and risk at each decoding step, based on our collected prefix tree which preserves the context of a full sentence. Our work provides a comprehensive comparison between existing truncation sampling methods, as well as their recommended parameters as a guideline for users.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Zhou et al. (2024) studied this question.

synapsesocial.com/papers/68e5b146b6db64358754adcdhttps://doi.org/10.48550/arxiv.2408.13586
Ask AI
Helpful
Bookmark
Share
View Full Paper

Also Consider

Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context:

  1. 1Min P Sampling: Balancing Creativity and Coherence at High Temperature2024 · 1 citations
  2. 2p-less Sampling: A Robust Hyperparameter-Free Approach for LLM Decoding2025
  3. 3EDT: Improving Large Language Models' Generation by Entropy-based Dynamic Temperature Sampling2024 · 4 citations
  4. 4Recursive Speculative Decoding: Accelerating LLM Inference via Sampling Without Replacement2024
  5. 5Control the Temperature: Selective Sampling for Diverse and High-Quality LLM Outputs2025