English

Learning with springs and sticks

Machine Learning 2025-08-27 v1

Abstract

Learning is a physical process. Here, we aim to study a simple dynamical system composed of springs and sticks capable of arbitrarily approximating any continuous function. The main idea of our work is to use the sticks to mimic a piecewise-linear approximation of the given function, use the potential energy of springs to encode a desired mean squared error loss function, and converge to a minimum-energy configuration via dissipation. We apply the proposed simulation system to regression tasks and show that its performance is comparable to that of multi-layer perceptrons. In addition, we study the thermodynamic properties of the system and find a relation between the free energy change of the system and its ability to learn an underlying data distribution. We empirically find a \emph{thermodynamic learning barrier} for the system caused by the fluctuations of the environment, whereby the system cannot learn if its change in free energy hits such a barrier. We believe this simple model can help us better understand learning systems from a physical point of view.

Keywords

Cite

@article{arxiv.2508.19015,
  title  = {Learning with springs and sticks},
  author = {Luis Mantilla Calderón and Alán Aspuru-Guzik},
  journal= {arXiv preprint arXiv:2508.19015},
  year   = {2025}
}

Comments

13 pages, 6 figures

R2 v1 2026-07-01T05:06:28.776Z