NeurIPS 2026Coming to NeurIPS in Sydney?Explore papers, orals & directions

Thermodynamics of words

Klaus M. Frahm, Dima L. ShepelyanskyarXiv 2026

TL;DR

Researchers have proposed the Word Thermalization Hypothesis (WOTH), suggesting that word frequencies in literature behave like classical particles reaching thermal equilibrium. By applying the physics of Rayleigh-Jeans condensation, the authors demonstrate that the massive abundance of rare words in a text is a linguistic equivalent to a physical "condensate," providing a more accurate mathematical description of language than the famous Zipf’s Law.

What Problem Does This Paper Address?

For nearly a century, linguists have relied on Zipf’s Law to describe word distributions: the idea that the frequency of a word is inversely proportional to its rank. While Zipf’s Law is a useful rule of thumb, it often fails at the "tails"—the extremely common words and the extremely rare ones. Furthermore, the why behind this distribution remains a subject of intense debate.

The authors of this paper seek to move beyond simple curve-fitting. They aim to provide a fundamental theoretical framework based on statistical mechanics. They address the question: Can the statistical properties of a literary work be explained by the same laws of thermodynamics that govern light in optical fibers or wealth inequality in nations?

Methods

The authors introduce the Word Thermalization Hypothesis (WOTH). In this framework:

  • Words are treated as classical oscillators (particles).
  • Word Frequency is analogous to energy state levels or wealth.
  • Semantic Interactions (meanings and concepts) act as the "collisions" that drive the system toward a stationary thermal state.

The core of their approach is the Rayleigh-Jeans (RJ) distribution, a concept from statistical physics describing classical systems where energy and particle numbers are conserved. They specifically use an Extended Rayleigh-Jeans (RJE) model, which introduces a parameter to account for the fact that very high-frequency words (the "linguistic oligarchs") become increasingly rare.

To validate the model, they use economic tools like Lorenz curves and Gini coefficients to measure the "inequality" of word usage, comparing the theoretical physical model against actual word counts from 16 diverse datasets.

Datasets

The study analyzes 16 distinct datasets to test for universality across time and language:

  • 10 English Works: Including the King James Bible, the complete works of William Shakespeare, Isaac Asimov’s I, Robot, and novels by Dickens, Melville, and Orwell.
  • 5 International Works: Masterpieces in Spanish (Don Quixote), Italian (The Divine Comedy), German (Faust), French (Les Misérables), and Russian (War and Peace).
  • The American National Corpus (ANC): A massive, multi-author dataset used to see if the patterns hold up in large-scale linguistic data.

Key Insights and Ideas

  • Rare Words as a "Condensate": One of the most striking findings is the phenomenon of RJ condensation. In physics, this occurs when a huge fraction of particles "condenses" into the lowest energy state. In literature, this corresponds to the "hapax legomena"—the vast number of words that appear only once or twice in a book. The authors show that these rare words aren't just noise; they are a physical necessity of a thermalized system.
  • Extreme Inequality: Literary works are more "unequal" than global wealth distributions. While the world’s wealth Gini coefficient is roughly 0.84, the Gini coefficient for words in the studied books averaged 0.93. In a typical book, the bottom 50% of unique words account for less than 0.5% of the total word count.
  • Universality: The RJE model fits the Bible just as well as it fits Shakespeare or a modern corpus. This suggests that the "thermodynamics of words" is a fundamental property of human communication, regardless of the author's style or the language used.
  • Curvature vs. Power Laws: Unlike Zipf’s Law, which assumes a straight line on a log-log plot, the RJE model captures the natural "curvature" found in real data, providing a much tighter fit across four to five orders of magnitude.

Key Results

  • Quantitative Fit: The RJE model provides a "strikingly good description" of the Lorenz, Pareto, and Zipf curves for all 16 cases.
  • Author Consistency: Individual authors showed very similar Gini coefficients (0.915 to 0.944). However, the ANC (a mix of many authors) had a significantly higher Gini (0.967), suggesting that mixing styles increases linguistic "inequality."
  • Predictive Power: The model successfully explains why the "tail" of rare words is so large, a feature that traditional power-law models often struggle to quantify precisely.

Limitations and Future Work

  • The "Interaction" Black Box: While the authors posit that semantic rules and concepts provide the "interactions" that drive thermalization, they do not explicitly model how these interactions occur. The physics is used as a macroscopic description of a microscopic linguistic process that remains largely mysterious.
  • Fit Parameters: The RJE model requires two fit parameters ($a$ and $\epsilon$). While these have physical interpretations (density of states and system energy), critics might argue that any two-parameter model will naturally outperform a one-parameter Zipfian fit.
  • LLM Applications: The authors suggest that these thermodynamic concepts could be applied to Large Language Models (LLMs). Understanding the "temperature" or "condensation" of tokens within an AI could lead to new ways of evaluating or training generative models.

For more details, see the full paper: "Thermodynamics of words" by Klaus M. Frahm and Dima L. Shepelyansky (2026).

Summary updated

Abstract

We introduce the word thermalization hypothesis according to which in a literary work there are effective interactions between words that drive them to thermalization where their word frequency distribution is the same as for the phenomenon of Rayleigh-Jeans (RJ) thermalization and condensation. In this concept, the different words play a role of classical oscillators (particles) and their word frequencies, or related tokens, are analogous to certain filling factors over energy state levels. The thermalization process is characterized by the conservation of total system energy, or total number of words/tokens, and total probability norm, or total number of different words. We apply this approach to analyze 16 literary works, including Bible, complete works of Shakespeare, and data from American National Corpus. We show that for these cases the effective system energy is very low and thus there is the RJ condensation phenomenon with a big fraction of total probability concentrated at the lowest energy states corresponding to a big fraction of rare words appearing only once or twice in the whole text. Such a RJ condensation is observed for light propagation in multimode optical fibers and other physical systems. We relate the thermalization of words to the recently proposed wealth thermalization for households in world countries. The economy concepts of Lorenz and Pareto curves, and also Zipf curves, are applied to the word frequency distributions of the selected 16 cases and it is shown that the thermalization theory gives a strikingly good description of real data.
BibTeX
@misc{frahm2026thermodynamics,
  author = {Klaus M. Frahm and Dima L. Shepelyansky},
  title = {{Thermodynamics of words}},
  year = {2026},
  eprint = {2611.14039},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.14039},
}
Figure