Reproduce “Neural Thermodynamic Laws for Large Language Model Training” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Ziming Liu, Yizhou Liu, Jeff Gore, Max Tegmark

This research formulates Neural Thermodynamic Laws (NTL) to provide a mechanistic understanding of large language model (LLM) training dynamics. The work demonstrates that the learning rate functions as an effective temperature and derives an optimal 1/(t+t_h) decay schedule, linking training phenomena to classical thermodynamic principles such as the Equipartition Theorem and the Laws of Thermodynamics.

Key insights

  • The total loss in LLM training can be conceptually decomposed into "slow loss" (analogous to thermodynamic work) and "fast loss" (analogous to heat).
  • The learning rate acts as an effective "temperature," with the averaged fast/thermal loss being directly proportional to it, analogous to the Equipartition Theorem in classical thermodynamics.
  • An optimal learning rate decay schedule for minimizing thermal loss during training follows a 1/(t+t_h) functional form, which is slower than commonly used schedules.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.