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

Spherical Boltzmann machines: a solvable theory of learning and generation in energy-based models

Thomas Tulinski, Simona Cocco, Rémi Monasson, Jorge Fernandez-De-Cossio-Diaz

TL;DR

This paper introduces the Spherical Boltzmann Machine (SBM), a mathematically tractable energy-based model (EBM) that serves as an exact theoretical sandbox for high-dimensional learning. By solving its equilibrium states and training trajectories, the authors provide a unified explanation for complex generative phenomena—such as double descent, temperature tuning, and out-of-equilibrium training biases—and demonstrate that these insights hold true for standard deep architectures.

What Problem Does This Paper Address?

Energy-Based Models (EBMs) are highly flexible generative models rooted in statistical physics. They learn a probability distribution by assigning low energies to real data points and high energies to unrealistic ones. However, analyzing how they learn and generate data is notoriously difficult.

The culprit is the partition function ($Z$)—the normalization constant in the denominator of the Boltzmann distribution. Computing $Z$ requires integrating over a high-dimensional space, which is typically mathematically intractable. Because of this "black box" limitation, practitioners rely on empirical tricks (like heuristic temperature tuning or early stopping), while theorists struggle to map out the parameter space or predict training trajectories. This paper bridges the gap by providing an exactly solvable EBM in the high-dimensional limit.

Methods

The authors construct a solvable model by introducing the Spherical Boltzmann Machine (SBM). Standard Boltzmann machines use binary variables (Ising spins, $x_i \in \{\pm 1\}$), but the SBM relaxes this into a global continuous constraint where all data points must lie on an $N$-dimensional sphere ($\|x\|^2 = N$).

To solve this model, the authors combine two powerful frameworks from physics:

  1. Random Matrix Theory (RMT): Used to analyze the equilibrium phase diagram. The weights ($W$) are treated as a matrix whose eigenvalues behave like a "Coulomb gas" of repelling charges subjected to forces from the data and the regularization prior.
  2. Dynamical Mean-Field Theory (DMFT): Used to track the exact training trajectories under Langevin dynamics (stochastic gradient ascent with noise). This allows the authors to write closed-form equations for how the model's weights align with data over time.

Finally, they evaluate generative performance using a Teacher-Student scenario, calculating exact forward and reverse Kullback-Leibler (KL) divergences.

Datasets

While the core theory is validated using synthetic data from a controlled teacher-student setup, the authors test their insights on several real-world and standard ML datasets:

  • Biological Sequences: Protein sequence alignments from the Pfam database (specifically the response-regulator family PF00072 and the SH3 domain PF00018).
  • Financial Data: The Kenneth R. French 49 industry portfolio daily value-weighted returns (spanning 1926 to 2026).
  • Synthetic Physics Models: Samples from the 2D Ising model and the Curie-Weiss model.

Key Insights and Ideas

  • The Condensation Transition: The SBM undergoes sharp phase transitions during training. When the regularization is weak enough or training is long enough, the top eigenvalues of the weight matrix "detach" from the random noise bulk and align with the principal components of the data. This is called condensation, and it dictates whether the model generates structured data or just isotropic noise.
Figure 1: Equilibrium phase diagram for K = 1. A) Schematic eigenvalue configurations in each phase: bulk semicircle (light blue), top eigenvalue λ1 and the Lagrange multiplier µ enforcing ∥x∥2 = N. B) Phases in the (γ, η) plane; the blue dashed line separates outlier from edge regimes. C) λ1 and Lagrange multiplier µ vs. γ in the small-η regime, where λ1 sticks to the edge; phase transitions occur at the vertical dashed lines. D) Same in the larger-η regime, where λ1 detaches before returning to the edge.
  • "Representation Without Generation": During training, weight alignment (learning the data's features) happens before sample condensation (the ability to generate good samples). If the training sampling rate is too low, the model learns the correct data directions but fails to generate structured samples, remaining stuck in an out-of-equilibrium phase.
  • Demystifying Double Descent: The paper reveals that the infamous "double descent" curve in generative modeling is driven by a spectral transition: as regularization strength varies, secondary noise modes abruptly merge into or detach from the effective noise floor, causing a temporary spike in the loss.

Key Results

  • Exact Analytical Match: The derived DMFT equations perfectly predict the training trajectories, eigenvalue overshoots, and final steady states of finite-size simulations ($N$ up to 12,000).
Figure 2: Training dynamics. A) Top eigenvalue trajectories λi(t) from finite-N simulations (black) vs. the early-time predictions (14) (red dotted). Vertical dashed lines are the detachment (14) and condensation times t∗. Blue horizontal line is the bulk edge (2σ). B) s1(t) from DMFT (red) compared to finite-N simulations (blue). C) Stationary overlap sst as a function of ν for selected values of γ (dashed lines indicate the equilibrium ν →∞asymptotes). D) MAP-limit dynamical phase diagram (η →∞), with νc separating the sst ̸= 0 from the sst = 0 phases. For γ > 1 (dashed), sst = 0 also at equilibrium.
  • Out-of-Equilibrium Overshoot: The theory predicts, and experiments confirm, that if the Markov chains used during training do not sample fast enough ($\nu < \nu_c$), the weight matrix eigenvalues will drastically overshoot their optimal values, leading to a permanently biased model.
  • Universality Beyond SBMs: Crucially, the authors show that the four phenomena characterized by their SBM theory—sampling temperature tuning, double descent, tempered posteriors, and out-of-equilibrium training dynamics—spontaneously appear when training standard architectures like Potts Boltzmann machines, Normalizing Flows, Restricted Boltzmann Machines (RBMs), and GANs.

Limitations and Future Work

The SBM is a minimal, simplified model. Its energy function is strictly quadratic, meaning it cannot capture the deep, hierarchical feature representations learned by modern deep EBMs. Additionally, the current mathematical analysis assumes that the training data is effectively low-dimensional (lying in a thin slab where only a finite number of eigenvalues scale extensively).

Future work could focus on extending these RMT and DMFT techniques to multi-layer or non-linear energy functions to better mirror practical deep learning architectures.

Summary updated

BibTeX
@inproceedings{tulinski2026spherical,
  author = {Thomas Tulinski and Simona Cocco and Rémi Monasson and Jorge Fernandez-De-Cossio-Diaz},
  title = {{Spherical Boltzmann machines: a solvable theory of learning and generation in energy-based models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=umxDs0EMN1},
}
Figure