Skip to main content
News Directory 3
  • Home
  • Business
  • Entertainment
  • Health
  • News
  • Sports
  • Tech
  • World
Menu
  • Home
  • Business
  • Entertainment
  • Health
  • News
  • Sports
  • Tech
  • World

Sampling at Negative Temperature

January 11, 2026 Lisa Park Tech
News Context
At a glance
  • Summary: Inspired by the definition of temperature in statistical mechanics⁢ and the possibility for it⁤ to be below zero, we try sampling LLaMA at T=−0.001T=-0.001T=−0.001.‌ The results ⁣are...
  • The notion of temperature ​comes from⁣ statistical⁢ mechanics.
  • Wait - this is just the ​Boltzmann distribution, up to a constant![1]
Original source: cavendishlabs.org

Summary: Inspired by the definition of temperature in statistical mechanics⁢ and the possibility for it⁤ to be below zero, we try sampling LLaMA at T=−0.001T=-0.001T=−0.001.‌ The results ⁣are maximally ‍weird.

The notion of temperature ​comes from⁣ statistical⁢ mechanics. ‍Consider a system that has states with ⁢energies E1,…,EnE_1,dots,E_nE1​,…,Epi=ezi/T∑iezi/T p_i⁤ = frac{e^{z_i/T}}{sumlimits_i e^{z_i/T}} pi​=i<

Wait – this is just the ​Boltzmann distribution, up to a constant![1]

[1] There’s no minus sign in the ⁤exponent ‌because⁣ while higher-energy states are less likely, larger logits are more likely.

In a language model, temperature ‍is used to define how creative text generations are. As a notable example, in the⁢ zero temperature limit, ⁢the model should deterministically generate​ the most likely token. In the infinite temperature limit, all ⁤tokens are ‍equally likely and the model output will be⁤ random noise. For an interactive explanation, see here.

What would ⁢it mean to⁣ have a temperature that is below zero? (this isn’t the ‌same ​as the negative ​Fahrenheit or Celsius‍ temperatures we get​ on a cold day in​ Vermont – I mean below zero on an​ absolute scale like Kelvin).

Isn’t it‌ weird that T=∞T=inftyT=∞ ⁤and −∞-infty−∞ are the same, but there’s a huge discontinuity around 0? This is because temperature is not the most natural quantity​ to work with. It makes more sense to speak in terms of the⁣ quantity 1/kBT1/k_BTT=0.001T=0.001T=0.001, here is the output:

Temperature is a‌ concept that is ‍used to describe the

1000000

Temperature is ‌a concept.

And at T=−0.001T = -0.001T=−0.001:

Temperature is a concept.

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X

Related

Search:

News Directory 3

ByoDirectory is a comprehensive directory of businesses and services across the United States. Find what you need, when you need it.

Quick Links

  • Disclaimer
  • Terms and Conditions
  • About Us
  • Advertising Policy
  • Contact Us
  • Cookie Policy
  • Editorial Guidelines
  • Privacy Policy

Browse by State

  • Alabama
  • Alaska
  • Arizona
  • Arkansas
  • California
  • Colorado

Connect With Us

© 2026 News Directory 3. All rights reserved.

Privacy Policy Terms of Service