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

Dual Training of Energy-Based Models with Overparametrized Shallow Neural Networks

Carles Domingo-Enrich, Alberto Bietti, Marylou Gabrié, Joan Bruna, Eric Vanden-Eijnden

TL;DR

Training Energy-Based Models (EBMs) via maximum likelihood is notoriously difficult because sampling non-convex energy landscapes leads to slow, metastable Markov chains. By applying Fenchel duality to overparametrized two-layer neural networks in the feature-learning ($\mathcal{F}_1$ / Barron) regime, this paper transforms maximum likelihood into a min-max game between particle samples and network neurons. Remarkably, the authors show that introducing particle restarts directly bridges maximum likelihood estimation with score matching, resulting in an algorithm that converges 10–20× faster than traditional training.

What Problem Does This Paper Address?

Energy-Based Models define probability densities proportional to $\exp(-\beta f(x))$. Fitting an EBM via Maximum Likelihood Estimation (MLE) requires estimating the gradient of the log-partition function, which demands sampling from the model’s Gibbs distribution—typically using Markov Chain Monte Carlo (MCMC). When the energy landscape $f(x)$ is highly non-convex, MCMC trajectories get trapped in local energy basins ("metastability"), causing sampling and training to stall.

While alternative objectives like score matching bypass MCMC sampling, they optimize a statistically weaker metric (relative Fisher information instead of KL divergence) and do not provide samples as a byproduct. Furthermore, prior convex duality approaches to EBMs were restricted to Reproducing Kernel Hilbert Spaces (RKHS), which cannot learn adaptive features and suffer in high dimensions. The authors tackle how to efficiently train EBMs with feature-learning, overparametrized shallow neural networks under maximum likelihood without getting trapped by metastability.

Methods

  • Infinite-Dimensional Fenchel Duality: The authors formulate maximum likelihood over the unit ball of the $\mathcal{F}_1$ (Barron) space—representing two-layer neural networks with continuous parameter measures—and derive its Fenchel dual: $$\min_{\nu \in \mathcal{P}(\mathcal{X})} \max_{\|\gamma\|_{\mathrm{TV}} \le 1} \beta^{-1} D_{\mathrm{KL}}(\nu \,\|\, \tau_{\mathcal{X}}) + \int_{\Theta} \int_{\mathcal{X}} \phi(x, \theta) \, d(\nu - \nu_n)(x) \, d\gamma(\theta)$$ Here, $\nu$ represents the generated probability distribution and $\gamma$ represents the neuron parameter distribution.

  • Interacting Particle System (Wasserstein–Fisher–Rao Dynamics): The authors translate this min-max problem into coupled continuous-time gradient flows: a Wasserstein-Fisher-Rao flow for the positive and negative parts of the neuron measure $\gamma$, and a Wasserstein flow (drift-diffusion / Langevin) for the generated sample measure $\nu$. Discretizing this yields Algorithm 1, which concurrently updates $N$ generated data particles in sample space and $m$ neurons in parameter space.

  • Timescale Ratio ($\alpha$): The parameter $\alpha$ sets the relative speed of neuron updates versus particle updates. While $\alpha \ll 1$ recovers classical primal training (persistent contrastive divergence), $\alpha \gg 1$ corresponds to the dual regime where neurons adapt much faster than particles.

  • Score Matching as Particle Restarts: By adding a pulling term $-\alpha(\nu_t - \nu_n)$ that draws the generated particles toward empirical data samples, the authors prove that taking $\alpha \to \infty$ exactly recovers the Wasserstein-Fisher-Rao gradient flow of the Score Matching loss. At the particle level, this is implemented as a simple birth-death process: restarting particles from randomly selected dataset samples with probability $p_R$.

Datasets

The authors evaluate the approach on synthetic teacher-student benchmarks:

  • Teacher-Student Setup on Hyperspheres: Data is sampled from a ground-truth teacher energy $f^*(x) = \frac{1}{J} \sum_{j=1}^J w_j^* \sigma(\langle \theta_j^*, x \rangle)$ on $\mathcal{X} = \mathbb{S}^{14}$ ($d=14$) with $J=2$ teacher neurons ($w_1^* = w_2^* = -10$).
  • Two distinct geometric configurations are studied:
  • Bimodal target: Teacher angle of $2.87\text{ rad } (\approx 164^\circ)$, creating two separated local energy minimizers.
  • Monomodal target: Teacher angle of $1.37\text{ rad } (\approx 78^\circ)$, producing a single central energy well.
  • Training set size: $n = 10^5$ samples, tested against $n^* = 10^4$ validation samples, with $N = 2 \cdot 10^5$ generated particles and $m = 64$ student neurons.

Key Insights and Ideas

  • Bypassing Metastability via Dual Updates: Rather than waiting for MCMC particles to slowly equilibrate over an energy surface, the dual formulation initializes particles on the empirical data ($\nu_0 = \nu_n$) and lets the neuron parameters update at a faster timescale ($\alpha \gg 1$). This circumvents energy barriers.
  • A Unified Continuum Between MLE and Score Matching: Instead of viewing score matching and maximum likelihood as disjoint objectives, they emerge as extreme points along a single continuum controlled by particle restart probability $p_R$ ($p_R = 0$ yields MLE; $p_R = s\alpha \wedge 1$ yields Score Matching).

Key Results

  • 10× to 20× Faster Convergence: In both monomodal and bimodal synthetic distributions, the dual algorithm ($\alpha = 20$) achieved convergence in KL divergence and score matching error roughly 10 to 20 times faster in iterations than the primal algorithm ($\alpha = 0.05$).
  • Avoidance of Local Traps: The dual algorithm rapidly reached low KL divergence values where the primal baseline struggled to escape initial configurations.
  • Performance Thresholds: The authors observed that optimization gains stall precisely when the total variation (TV) norm of the learned measure hits the hard $\mathcal{F}_1$-norm regularization boundary.

Limitations and Future Work

  • Lack of Asymptotic Convergence Proofs: While propagation of chaos guarantees that the particle systems approximate the continuous measure dynamics over finite time horizons $[0, T]$, global asymptotic convergence of the coupled flows remains an open theoretical problem.
  • Synthetic Evaluation Only: Experiments are confined to 14-dimensional hyperspherical two-layer teacher networks; real-world high-dimensional data (e.g., images) and deep neural architectures are not evaluated.
  • Annealing Restart Schedules: The theoretical connection suggests using an annealed restart probability $p_R(t)$ (starting high to navigate non-convexity, then decaying to zero for faithful Gibbs sampling), but optimal scheduling schemes remain unexplored.

Summary updated

BibTeX
@inproceedings{domingoenrich2022dual,
  author = {Carles Domingo-Enrich and Alberto Bietti and Marylou Gabrié and Joan Bruna and Eric Vanden-Eijnden},
  title = {{Dual Training of Energy-Based Models with Overparametrized Shallow Neural Networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=1R_PRbQK2eu},
}
Figure