arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.11012cs.AIcs.CLcs.LG
收藏

Min-k Sampling: 通过相对Logit动态解耦截断与温度缩放

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

School of Computer and Information Engineering, Henan University(河南大学计算机与信息工程学院);Department of Statistics, LMU Munich(慕尼黑大学统计系);Munich Center for Machine Learning (MCML)(慕尼黑机器学习中心)

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

AI总结:

本文提出Min-k采样,通过分析排序后的Logit分布局部形状,识别语义悬崖,动态确定截断边界,实现严格温度不变性,并在多个任务中提升文本质量。

摘要:

大型语言模型生成文本的质量关键取决于解码采样策略。主流方法如Top-k、Top-p和Min-p通过概率空间截断在多样性与准确性之间取得平衡,但存在对温度参数极度敏感的固有局限。近期的Logit空间方法如Top-nσ实现了温度不变性,但依赖全局统计信息,易受长尾噪声影响,无法捕捉候选顶级中的细粒度置信结构。本文提出Min-k采样,一种新的动态截断策略,通过计算位置加权相对衰减率,在每一步生成过程中动态确定截断边界。我们正式证明Min-k实现了严格温度不变性,并通过实验展示其对超参数选择的低敏感性。在多个推理基准、创意写作任务和人类评估中,Min-k一致提升了文本质量,即使在极端温度设置下,概率基方法崩溃时,其表现仍稳健。我们公开了代码、模型和分析工具。

英文摘要:

The quality of text generated by large language models depends critically on the decoding sampling strategy. While mainstream methods such as Top-$k$, Top-$p$, and Min-$p$ achieve a balance between diversity and accuracy through probability-space truncation, they share an inherent limitation: extreme sensitivity to the temperature parameter. Recent logit-space approaches like Top-$nσ$ achieve temperature invariance but rely on global statistics that are susceptible to long-tail noise, failing to capture fine-grained confidence structures among top candidates. We propose \textbf{Min-$k$ Sampling}, a novel dynamic truncation strategy that analyzes the local shape of the sorted logit distribution to identify "semantic cliffs": sharp transitions from high-confidence core tokens to uncertain long-tail tokens. By computing a position-weighted relative decay rate, Min-$k$ dynamically determines truncation boundaries at each generation step. We formally prove that Min-$k$ achieves strict temperature invariance and empirically demonstrate its low sensitivity to hyperparameter choices. Experiments on multiple reasoning benchmarks, creative writing tasks, and human evaluation show that Min-$k$ consistently improves text quality, maintaining robust performance even under extreme temperature settings where probability-based methods collapse. We make our code, models, and analysis tools publicly available.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑