Proceedings

Can Stationary Distributions of Scale-Invariant Neural Networks Be Described by the Thermodynamics of an Ideal Gas?

Download BibTeX Cite

Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Main Track. Pages 4759-4767.

https://doi.org/10.24963/ijcai.2026/530

Abstract

Understanding the training dynamics of deep neural networks remains a major open problem, with physics-inspired approaches offering promising insights. Building on this perspective, we develop a thermodynamic framework to describe the stationary distributions of stochastic gradient descent (SGD) with weight decay for scale-invariant neural networks, a setting that both reflects practical architectures with normalization layers and permits theoretical analysis. We establish analogies between training hyperparameters (e.g., learning rate, weight decay) and thermodynamic variables such as temperature, pressure, and volume. Starting with a simplified isotropic noise model, we uncover a close correspondence between SGD dynamics and ideal gas behavior, validated through theory and simulation. Extending to training of neural networks, we show that key predictions of the framework, including the behavior of stationary entropy, align closely with experimental observations. This framework provides a principled foundation for interpreting training dynamics and may guide future work on hyperparameter tuning and the design of learning rate schedulers.

  1. [Ali Mehmeti-Göpel and Wand, 2024] Christian Ali Mehmeti-Göpel and Michael Wand. On the weight dynamics of deep normalized networks. In Proceedings of the 41st International Conference on Machine Learn- ing, volume 235 of Proceedings of Machine Learning Research, pages 992-1007. PMLR, 21-27 Jul 2024.
  2. [Ba et al., 2016] Jimmy Lei Ba, Jamie Ryan Kiros, and Ge- offrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016.
  3. [Chaudhari and Soatto, 2018] Pratik Chaudhari and Stefano Soatto. Stochastic gradient descent performs variational inference, converges to limit cycles for deep networks. In International Conference on Learning Representations, 2018.
  4. [Chen et al., 2024] Xiaoli Chen, Beatrice W Soh, Zi-En Ooi, Eleonore Vissol-Gaudin, Haijun Yu, Kostya S Novoselov, Kedar Hippalgaonkar, and Qianxiao Li. Constructing cus- tom thermodynamics using deep learning. Nature Compu- tational Science, 4(1):66-85, 2024.
  5. [Cho and Lee, 2017] Minhyung Cho and Jaehyung Lee. Rie- mannian approach to batch normalization. In Proceedings of the 31st International Conference on Neural Informa- tion Processing Systems, NIPS'17, page 5231-5241.
  6. [Delattre and Fournier, 2017] Sylvain Delattre and Nicolas Fournier. On the kozachenko-leonenko entropy estimator. Journal of Statistical Planning and Inference, 185:69-93, 2017.
  7. [He et al., 2016] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recog- nition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778, 2016.
  8. [Ioffe and Szegedy, 2015] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep net- work training by reducing internal covariate shift. In International conference on machine learning, pages 448-456. PMLR, 2015.
  9. [Izmailov et al., 2018] Pavel Izmailov, Andrew Gordon Wil- son, Dmitrii Podoprikhin, Dmitry Vetrov, and Timur Garipov. Averaging weights leads to wider optima and better generalization. In 34th Conference on Uncertainty in Artificial Intelligence 2018, UAI 2018, pages 876-885, 2018.
  10. [Jastrzębski et al., 2017] Stanisław Jastrzębski, Zachary Kenton, Devansh Arpit, Nicolas Ballas, Asja Fischer, Yoshua Bengio, and Amos Storkey. Three factors influ- encing minima in sgd. arXiv preprint arXiv:1711.04623, 2017.
  11. [Kingma and Ba, 2015] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Interna- tional Conference on Learning Representations, 2015.
  12. [Kodryan et al., 2022] Maxim Kodryan, Ekaterina Lobacheva, Maksim Nakhodnov, and Dmitry Vetrov. Training scale-invariant neural networks on the sphere can happen in three regimes. In Advances in Neural Information Processing Systems, 2022.
  13. [Kozachenko and Leonenko, 1987] Leonid Fedorovich Kozachenko and Nikolai Nikolaevich Leonenko. Sample estimate of the entropy of a random vector. Problems Inform. Transmission, 23:95-101, 1987.
  14. [Kozyrev, 2025] Sergei Kozyrev. How to explain grokking, 2025.
  15. [Krizhevsky et al., 2009a] Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton. CIFAR-10 (canadian institute for ad- vanced research). 2009.
  16. [Krizhevsky et al., 2009b] Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton. CIFAR-100 (canadian institute for ad- vanced research). 2009.
  17. [Kunin et al., 2023] Daniel Kunin, Javier Sagastuy-Brena, Lauren Gillespie, Eshed Margalit, Hidenori Tanaka, Surya Ganguli, and Daniel L. K. Yamins. The limiting dynam- ics of SGD: Modified loss, phase-space oscillations, and anomalous diffusion. Neural Computation, 36(1):151- 174, 2023.
  18. [Li and Arora, 2020] Zhiyuan Li and Sanjeev Arora. An ex- ponential learning rate schedule for deep learning. In International Conference on Learning Representations, 2020.
  19. [Li et al., 2020] Zhiyuan Li, Kaifeng Lyu, and Sanjeev Arora. Reconciling modern deep learning with tradi- tional optimization analyses: The intrinsic learning rate. Advances in Neural Information Processing Systems, 33, 2020.
  20. [Liu et al., 2025] Ziming Liu, Yizhou Liu, Jeff Gore, and Max Tegmark. Neural thermodynamic laws for large lan- guage model training, 2025.
  21. [Loshchilov et al., 2025] Ilya Loshchilov, Cheng-Ping Hsieh, Simeng Sun, and Boris Ginsburg. nGPT: Nor- malized transformer with representation learning on the hypersphere. In The Thirteenth International Conference on Learning Representations, 2025.
  22. [Lyle et al., 2024] Clare Lyle, Zeyu Zheng, Khimya Khetarpal, James Martens, Hado van Hasselt, Razvan Pascanu, and Will Dabney. Normalization and effective learning rates in reinforcement learning. In Advances in Neural Information Processing Systems, volume 37, pages 106440-106473.
  23. Curran Associates, Inc., 2024.
  24. [Mandt et al., 2017] Stephan Mandt, Matthew D. Hoffman, and David M. Blei. Stochastic gradient descent as ap- proximate bayesian inference. J. Mach. Learn. Res., 18(1):4873-4907, January 2017.
  25. [Sadrtdinov et al., 2024] Ildus Sadrtdinov, Maxim Kodryan, Eduard Pokonechny, Ekaterina Lobacheva, and Dmitry Vetrov. Where do large learning rates lead us? In Advances in Neural Information Processing Systems, volume 37, pages 58445-58479.
  26. Curran Associates, Inc., 2024.
  27. [Wan et al., 2021] Ruosi Wan, Zhanxing Zhu, Xiangyu Zhang, and Jian Sun. Spherical motion dynamics: Learn- ing dynamics of normalized neural network using sgd and weight decay. In M. Ranzato, A. Beygelzimer, Y. Dauphin, P.S. Liang, and J. Wortman Vaughan, editors, Advances in Neural Information Processing Systems, volume 34, pages 6380-6391.
  28. Curran Associates, Inc., 2021.
  29. [Wang and Wang, 2022] Yi Wang and Zhiren Wang. Three- stage evolution and fast equilibrium for SGD with non- degerate critical points. In Proceedings of the 39th Inter- national Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pages 23092-23113. PMLR, 17-23 Jul 2022.
  30. [Zhang, 2024] Dong Zhang. On the temperature of machine learning systems, 2024.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards