Research map / Large language models / Language, safety and interpretability
Balancing Diversity and Risk in LLM Sampling: How to Select Your Method and Parameter for Open-Ended Text Generation
Yuxuan Zhou, Margret Keuper, Mario Fritz
CISPA Helmholtz Center for Information Security · University of Mannheim · Max Planck Institute for Informatics
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use adaptive sampling instead of Top-k | GPT2-XL · EnWiki CP-Trie, avg Risk 1 | average recall: 0.220 -> 0.252 | Improved |
| use Top-p instead of Top-k | GPT2-XL · EnWiki CP-Trie, avg Risk 1 | average recall: 0.220 -> 0.170 | Hurt |
| use Top-p instead of Top-k | GPT2-XL · EnWiki CP-Trie, avg Risk 5 | risk standard error: 0.613 -> 2.129 | Hurt |
| use Adaptive sampling instead of Top-k | GPT2-XL · EnWiki CP-Trie, avg Risk 5 | risk standard error: 0.613 -> 0.679 | Mixed |
| use larger model of same family | Llama family · EnWiki CP-Trie | average recall | Improved |
| raise average Risk from 1 to 5 | Top-k · TruthfulQA | BLEURT accuracy: 0.401 -> 0.436 | Improved |
| raise average Risk from 5 to 15 | Top-k · TruthfulQA | BLEURT accuracy: 0.436 -> 0.421 | Hurt |
| use truncation sampling instead of greedy decoding | GPT2-XL · TruthfulQA | BLEURT accuracy: 0.338 -> 0.421 (naive) | Improved |
| compare sampling methods at same average Risk instead of tuned parameters | Llama-2-7B · HumanEval | pass@1: 2.44 -> 5.08 (Top-k, Risk 5) | Improved |
| use sampling instead of greedy | Llama-2-7B · MBPP | pass@1: 24.00 -> 21.00 (Top-k, Risk 5) | Hurt |
| use Mirostat on code and math | Llama-2-7B · MBPP | pass@1: 24.00 -> 8.80 | Hurt |
| use Top-p sampling at Risk 1 instead of greedy | Llama-2-7B · GSM8K | accuracy: 13.19 -> 14.13 | Improved |
Open problems in parallel and early-exit decoding
Which fast-decoding methods keep quality when used with batching, thresholds that need no tuning, and models they cannot open up?
- Tested on one or two model families, mostly 7B or 13B and smaller. · 12 papers state it
- Speedups are measured at batch size one, and batching is left unstudied. · 9 papers state it
- Thresholds and mixing weights are tuned per model and task. · 8 papers state it
Closest papers by meaning
- Turning Up the Heat: Min-p Sampling for Creative and Coherent LLM Outputs (ICLR 2025 · similarity 0.90)
- Closing the Curious Case of Neural Text Degeneration (ICLR 2024 · similarity 0.89)
- Hot or Cold? Adaptive Temperature Sampling for Code Generation with Large Language Models (AAAI 2024 · similarity 0.88)
- Top-H Decoding: Adapting the Creativity and Coherence with Bounded Entropy in Text Generation (NeurIPS 2025 · similarity 0.88)
- The Hyperfitting Phenomenon: Sharpening and Stabilizing LLMs for Open-Ended Text Generation (ICLR 2025 · similarity 0.88)
- Controlled Text Generation via Language Model Arithmetic (ICLR 2024 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.