arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2601.02320cs.CL
收藏

利用语言模型估计文本温度

Estimating Text Temperature with Language Models

Nikolay Mikhaylovskiy

AI总结:

本文提出通过最大似然方法估计文本温度,评估多种LLM的性能,并发现大部分文本温度接近1,但某些数据集如笑话、GSM8K和AG News温度较高。

摘要:

自回归语言模型通常在推理时使用温度参数来塑造概率分布并控制生成文本的随机性。在文本生成后,可以通过最大似然方法估计该参数。随后,我们提出了一种过程,用于估计任何文本(包括人类撰写的文本)相对于给定语言模型的温度。我们评估了多种小型至中型大型语言模型(LLM)的温度估计能力。然后使用表现最佳的Qwen3 14B模型估计流行语料库的温度,发现大多数测量温度接近1,但值得注意的例外包括笑话、GSM8K和AG News(1.1),以及Python代码(0.9)。

英文摘要:

Autoregressive language models typically use temperature parameter at inference to shape the probability distribution and control the randomness of the text generated. After the text was generated, this parameter can be estimated using maximum likelihood approach. Following it, we propose a procedure to estimate the temperature of any text, including ones written by humans, with respect to a given language model. We evaluate the temperature estimation capability of a wide selection of small-to-medium Large Language Models (LLMs). We then use the best-performing Qwen3 14B to estimate temperatures of popular corpora, finding that while most measured temperatures are close to 1, notable exceptions include Jokes, GSM8K, and AG News (1.1), and Python code (0.9).

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

↑