arXiv:2610.35965cs.LGOct 2026

Manuscript Offprint

arXiv:2610.35965

Generalization in Learning: Eyring Formula and Predator-prey Model

S. V. Kozyrev, I. A. Lopatin, Alexander Pechen

Abstract

In this work, generalization in machine learning is investigated using a predator-prey model. We overview biological and chemical interpretation of the stochastic gradient Langevin dynamics and generative adversarial network. For a particular example of recovering an unknown function by a polynomial of fixed degree from a set of noisy data, the predator-prey model provides better approximation compared to the gradient descent method. Further, thermodynamical arguments, in particular Eyring formula, are used to explain grokking (delayed generalization) phenomenon in machine learning.

Keywords: overfitting, predator–prey model, stochastic gradient descent

1 Introduction

In this work, we provide, following the general physical and biological approaches to overfitting control in machine learning developed in [1], a more detailed study of the abilities of the predator-prey model to control overfitting using the example of reconstruction of an unknown function from noisy data, and outline possible application of thermodynamical arguments to grokking. The standard approach to machine learning is based on the optimization by the stochastic gradient descent [2]. In [1] and here, following [3, 4], we consider stochastic gradient descent in the form of the stochastic gradient Langevin dynamics with random walk in the potential which is given by the risk functional. This approach allows to apply known methods of thermodynamics theory to machine learning. In particular, the Eyring formula in kinetic theory [5] describes selection of wide minima in optimization by stochastic gradient Langevin dynamics and therefore explains better generalization ability for stochastic gradient optimization. Here we consider overfitting control in the framework of the algorithmic stability approach, more precisely, by suppressing narrow minima of the empirical risk functional. We also consider the generative adversarial network (GAN) model [6] as a mathematical predator-prey model in biology, where the discriminator and

*kozyrev@mi-ras.ru, Steklov Mathematical Institute of Russian Academy of Sciences, Moscow, Russia

†^{\dagger}ilya.lopatin2606@gmail.com, Steklov Mathematical Institute of Russian Academy of Sciences, Moscow, Russia

‡^{\ddagger}apechen@gmail.com, Steklov Mathematical Institute of Russian Academy of Sciences, Moscow, Russia, and Ivannikov Institute for System Programming of the Russian Academy of Sciences, Moscow, Russia generator in GAN play the roles of the prey and predator, respectively. This allows to explain better generalization in GAN model by the predator pushing the prey out of narrow minima [1].

In Section 2, the stochastic gradient Langevin dynamics is described by a stochastic differential equation (SDE). The Eyring formula of chemical kinetics allows to explain the ability of better generalization for stochastic gradient optimization in the presence of noise [1].

In Section 3, we explain the grokking phenomenon [7] of delayed generalization using ideas of statistical physics. In particular fast memorization is described by a Brownian motion in potential (i.e., stochastic Langevin gradient descent) while delayed generalization is explained by a Brownian motion with zero potential.

In Section 4, the GAN model is described by a system of two stochastic differential equations which possess a biological interpretation as interaction between a predator and a prey. Learning for GANs by solving a system of ordinary differential equations was considered in [8, 9, 10].

In Section 5, we show for a particular problem of recovering an unknown function by a polynomial of fixed degree from a set of noisy data, that the predator-prey provides better approximation compared to the gradient descent method.

Section 6 (the Conclusion) summarizes the results.