NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Generalization in Learning: Eyring Formula and Predator-prey Model

S. V. Kozyrev, I. A. Lopatin, Alexander PechenarXiv 2026 · DOI

TL;DR

This paper bridges machine learning and statistical physics, using the Eyring formula from chemical kinetics to explain why noise helps models generalize and a predator-prey model to combat overfitting. By treating optimization as a biological interaction, the authors demonstrate a novel way to push models out of narrow, overfitted minima toward more stable, "flatter" solutions that perform better on unseen data.

What Problem Does This Paper Address?

The central challenge in machine learning is generalization: ensuring a model learns the underlying pattern of data rather than just "memorizing" the noise (overfitting).

The authors focus on two specific mysteries:

  1. The "Wide Minima" Phenomenon: Why do optimization algorithms that find "flat" or "wide" regions of the loss landscape generalize better than those that fall into narrow, sharp pits?
  2. Grokking: Why do some models suddenly "click" and generalize long after they have already achieved zero error on their training data?

While these are well-observed empirically, the authors seek a more rigorous theoretical foundation using analogies from thermodynamics and biology.

Methods

The paper employs three primary theoretical frameworks:

  • Stochastic Gradient Langevin Dynamics (SGLD): The authors model Stochastic Gradient Descent (SGD) as a physical diffusion process. By adding noise to the gradient, the model behaves like a particle undergoing Brownian motion in a potential field (the loss function).
  • The Eyring Formula: Borrowed from chemical kinetics, this formula describes the rate of transition between states. The authors use it to show that "wider" minima have higher entropy, making them more effective at "capturing" the learning system and preventing it from escaping back into overfitted states.
  • Predator-Prey Optimization: Inspired by Generative Adversarial Networks (GANs), the authors propose a system of stochastic differential equations (SDEs) where model parameters act as "prey" and a secondary variable acts as a "predator." The predator provides a repulsive force that pushes the prey out of narrow, overfitted maxima/minima, forcing the model to find broader, more robust regions.

Datasets

The authors validate their predator-prey approach using a synthetic regression task:

  • Hidden Function: $f(x) = \sin(\pi x)$ for $x \in [-1, 1]$.
  • Training Data: 20 points sampled with Gaussian noise ($\sigma = 0.2$).
  • Test Data: 10 points sampled similarly.
  • Model: Polynomials of varying degrees ($d = 1, 3, 5, 7$).
Figure 1: Sampling examples of training and test datasets for the function f(x) = sin(πx).

Key Insights and Ideas

  • Grokking as Entropy Maximization: The authors explain "grokking" as a two-phase process. First, the model quickly drifts toward a "zero-risk manifold" (memorization). Second, it undergoes slow Brownian motion along this manifold until it hits a high-entropy region (generalization). This explains why the second phase takes so much longer—it's a random walk toward a more stable state.
  • GANs as Biological Systems: In a GAN, the discriminator is the "prey" trying to maximize its objective, while the generator is the "predator" pushing it around. This adversarial "pushing" is exactly what prevents the discriminator from overfitting to specific training samples.
  • Thermodynamic Stability: Generalization isn't just about finding any solution; it's about finding the most "thermally stable" one. The Eyring formula provides the mathematical link between the geometric width of a minimum and its algorithmic stability.

Key Results

The authors compared standard Gradient Descent (GD) against their Predator-Prey model for high-degree polynomial regression, where overfitting is rampant.

Approximations found by gradient descent for different polynomial degrees. Note how degrees 5 and 7 begin to "wiggle" to fit the noise.

As shown in the table below, the predator-prey method significantly outperformed standard GD in the overfitting regime ($d=5$):

Table 1: Comparison of MSE and deviation from the true function.
  • Overfitting Reduction: For the $d=5$ model, the predator-prey approach reduced the Mean Squared Error (MSE) on the test sample from 0.161 to 0.106.
  • Accuracy Improvement: The deviation from the true hidden function decreased from 0.0594 to 0.0334, representing a nearly 2x improvement in capturing the underlying sine wave rather than the noise.

Limitations and Future Work

  • Scale: The experimental validation is limited to a simple 1D polynomial regression. While the theory is general, its application to massive deep neural networks remains to be demonstrated.
  • Hyperparameter Sensitivity: The predator-prey model introduces several new parameters (repulsion distance, potential strength, etc.). Finding the "sweet spot" for these in complex architectures could be non-trivial.
  • Future Directions: The authors suggest that these thermodynamic arguments could lead to new regularization techniques that explicitly optimize for entropy (width) rather than just minimizing loss.

Summary updated

BibTeX
@misc{kozyrev2026generalization,
  author = {S. V. Kozyrev and I. A. Lopatin and Alexander Pechen},
  title = {{Generalization in Learning: Eyring Formula and Predator-prey Model}},
  year = {2026},
  eprint = {2610.35965},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.35965},
}
Figure