Min-$k$ Sampling: Decoupling Truncation from Temperature Scaling via Relative Logit Dynamics

Yuanhao Ding, Meimingwei Li, Esteban Garces Arias, Matthias Aßenmacher, Christian Heumann, Chongsheng ZhangarXiv 2026

TL;DR

Min-$k$ sampling is a novel logit-space decoding strategy that decouples token truncation from temperature scaling by identifying "semantic cliffs"—abrupt drops in a model's generation confidence. By achieving strict temperature invariance, Min-$k$ prevents the catastrophic "semantic collapse" and long-tail noise typical of standard sampling methods at high temperatures while consistently improving text quality and reasoning robustness.

What Problem Does This Paper Address?

When large language models (LLMs) generate text, they output a distribution of raw scores (logits) for every token in their vocabulary. Mainstream decoding strategies like Top-$k$, Top-$p$ (nucleus), and Min-$p$ truncate this vocabulary in probability space to balance creativity and coherence.

However, these probability-based approaches suffer from an inherent flaw: extreme sensitivity to the temperature parameter ($T$). As temperature increases, the probability distribution flattens out. This causes traditional methods to mistakenly include a massive flood of low-quality, long-tail noise tokens in the sampling pool, leading to "semantic collapse" (where the model output degenerates into gibberish or repetitive loops).

Recent attempts to fix this operate in logit space (like Top-$n\sigma$), achieving temperature invariance. But these methods rely on global vocabulary statistics like standard deviation ($\sigma$), making them highly vulnerable to background noise and overly sensitive to hyperparameter tuning. The authors of this paper introduce Min-$k$ Sampling to dynamically find the boundary between confident core tokens and uncertain noise without relying on fragile global metrics.

Methods

Min-$k$ sampling analyzes the local geometric shape of the sorted logit distribution at each generation step to locate the "semantic cliff"—the exact point where model confidence sharply drops off.

The algorithm proceeds in three core steps:

  1. Sorting and Normalization: Logits are sorted in descending order and normalized by their dynamic range ($R_l = l_1 - l_{|V|}$). This step ensures the method is completely invariant to linear transformations like temperature scaling.
  2. Weighted Relative Decay: The relative drop between adjacent tokens is calculated and scaled by a position-dependent weight ($1/i$): $$w_i = \frac{l_i - l_{i+1}}{R_l} \cdot \frac{1}{i}$$ The $1/i$ term introduces a "head bias," emphasizing confidence transitions among the top candidates and filtering out minor fluctuations in the long tail.

  3. Cliff Detection & Fallback: The initial truncation boundary is set to the point of maximum relative decay ($k_{\text{cliff}} = \arg\max w_i$). To handle edge cases where the distribution is completely flat (high uncertainty), a dynamic fallback mechanism ($k_{\text{fallback}}$) provides a baseline vocabulary size that scales inversely with the logit range. The final vocabulary size is simply $k = \max(k_{\text{cliff}}, k_{\text{fallback}})$.

Datasets

The authors evaluated Min-$k$ across diverse tasks using multiple open-source models (including LLaMA-3 and Qwen3 families):

  • Mathematical Reasoning: AQuA, GSM8K, GPQA-main, and MATH500, evaluated using Exact Match (EM) accuracy.
  • Creative Writing: 500 diverse prompts from the AlpacaEval 2.0 dataset, evaluated via win rates against a greedy decoding baseline using DeepSeek-V3.2-Exp as an LLM-as-a-Judge.
  • Dynamic Behavior Analysis: Wikitext-103 was utilized to track how the candidate set size ($k$) adapts dynamically across decoding steps.

Key Insights and Ideas

  • Decoupling Diversity from Noise: Traditional sampling conflates two effects of temperature: diversifying choices among plausible tokens and admitting garbage tokens from the tail. Min-$k$ successfully isolates temperature scaling so that it only controls diversity within a dynamically selected, high-confidence candidate set.
  • Local Head Structure Wins: Relying on global vocabulary statistics (like standard deviation) introduces noise from thousands of irrelevant tokens. Looking strictly at the relative dynamics of the top-ranked tokens provides a much cleaner signal of the model's true intent.
  • Strict Mathematical Invariance: The authors formally prove that because Min-$k$ relies on relative logit differences normalized by the range, the chosen truncation size $k$ remains completely identical regardless of the temperature setting.

Key Results

High-Temperature Resilience

On reasoning benchmarks like GSM8K, standard probability-based methods completely collapse to 0% accuracy when the temperature is cranked up to $T=10.0$. Min-$k$ maintains a stable accuracy of ~74.8%, effectively serving as a "safety rail" for generation.

As temperature rises, traditional methods suffer from total semantic collapse, while Min-k consistently suppresses long-tail noise.

Superior Creative Writing

In open-domain creative writing tasks, Min-$k$ achieved the highest win rates against greedy decoding (58.60% at $T=1.0$ on LLaMA-3-8B), outperforming both traditional methods and the logit-space Top-$n\sigma$ baseline.

Low Hyperparameter Sensitivity

Unlike Top-$n\sigma$, which exhibits massive performance swings depending on its tuning parameter, Min-$k$ is remarkably robust. A comprehensive grid search showed stable performance across virtually the entire hyperparameter space for its fallback constant $\tau$.

Grid-search heatmap showing Min-k's highly stable performance across different combinations of tau and temperature.

Computational Efficiency

Min-$k$ introduces a minor 3.73% relative latency slowdown compared to simple greedy decoding. Because logit sorting is highly optimized on modern GPUs, it is fully practical for real-time deployment without needing specialized kernels.

Limitations and Future Work

The authors note two primary limitations:

  1. Full Logit Scanning: Like Top-$p$ and Min-$p$, Min-$k$ requires sorting or scanning the entire logit distribution, which scales with vocabulary size.
  2. Long-Tail Knowledge Retrieval: Min-$k$ assumes that a distinct "cliff" separates valid tokens from noise. In scenarios requiring the retrieval of obscure, long-tail facts or entities, the correct token might have a very low logit score that is indistinguishable from background noise. In these rare cases, aggressive truncation might filter out the right answer. The authors suggest exploring the integration of retrieval-augmented generation (RAG) to safeguard against this in future work.

Summary updated

BibTeX
@misc{ding2026min,
  author = {Yuanhao Ding and Meimingwei Li and Esteban Garces Arias and Matthias Aßenmacher and Christian Heumann and Chongsheng Zhang},
  title = {{Min-$k$ Sampling: Decoupling Truncation from Temperature Scaling via Relative Logit Dynamics}},
  year = {2026},
  eprint = {2604.11012},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.11012},
}
Figure