Estimating Text Temperature with Language Models

Read full text
Authors: Nikolay Mikhaylovskiy
Cited by: 0

Abstract

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).

Fields of Study & Subjects

Topic Modeling Natural Language Processing Techniques Computational and Text Analysis Methods

Publication details

Journal / source
arXiv (Cornell University)
Publication date
5 January 2026
Document type
Preprint