Thermodynamic Natural Gradient Descent

Kaelan Donatella, Samuel Duffield, Maxwell Aifer, Denis Melanson, Gavin Crooks +1 more
5/22/2024
cs.LGcs.ET

No official code found. Best implementation: barcojieyou/NGDT (0 stars, MIT, last commit 2026-03-14).

Abstract

Second-order training methods have better convergence properties than gradient descent but are rarely used in practice for large-scale training due to their computational overhead. This can be viewed as a hardware limitation (imposed by digital computers). Here we show that natural gradient descent (NGD), a second-order method, can have a similar computational complexity per iteration to a first-order method, when employing appropriate hardware. We present a new hybrid digital-analog algorithm for training neural networks that is equivalent to NGD in a certain parameter regime but avoids prohibitively costly linear system solves. Our algorithm exploits the thermodynamic properties of an analog system at equilibrium, and hence requires an analog thermodynamic computer. The training occurs in a hybrid digital-analog loop, where the gradient and Fisher information matrix (or any other positive semi-definite curvature matrix) are calculated at given time intervals while the analog dynamics take place. We numerically demonstrate the superiority of this approach over state-of-the-art digital first- and second-order training methods on classification tasks and language model fine-tuning tasks.

View on arXivView PDF

Code Implementations(1)

barcojieyou/NGDTCommunity64%
MIT

Thermodynamic Natural Gradient Descent (NGD T): Minimizing Dissipation by Saturating the Geometric Speed–Cost Bound

00Shell, PythonNov 19, 20257 months agoMIT

Similar Papers

Cite this paper

@article{donatella2024thermodynamic,
  title  = {Thermodynamic Natural Gradient Descent},
  author = {Kaelan Donatella and Samuel Duffield and Maxwell Aifer and Denis Melanson and Gavin Crooks and Patrick J. Coles},
  year   = {2024},
  eprint = {2405.13817},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.13817v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.13817.svg)](https://codeofpaper.com/paper/2405.13817)

Discussion