Wasserstein Evolution : Evolutionary Optimization as Phase Transition

Kaichen Ouyang, Mingyang Yu, Zong Ke, Junbo Jacob Lian, Shengwei Fu, Xiaoyang Hao, Shengju Yu, Dayu HuarXiv 2025

TL;DR

This paper bridges the gap between evolutionary computation and statistical mechanics by reframing evolutionary optimization as a physical phase transition. By modeling population dynamics as a Wasserstein gradient flow of free energy, the proposed Wasserstein Evolution (WE) algorithm mathematically balances exploration and exploitation, guaranteeing convergence to a diverse Boltzmann distribution rather than collapsing to a single solution.

What Problem Does This Paper Address?

Evolutionary algorithms (EAs)—such as Genetic Algorithms (GAs) and Differential Evolution (DE)—are highly effective black-box optimizers inspired by natural selection. However, they rely heavily on heuristic operators like crossover and mutation, lacking a rigorous physical foundation.

This theoretical void introduces two major challenges:

  1. Ad-hoc Parameter Tuning: Balancing exploration (broadly sampling the search space) and exploitation (refining solutions in promising areas) typically requires manual, empirical tuning of intertwined algorithmic parameters.
  2. Representation Collapse: Most traditional EAs target a single optimum. This often drives the entire population to converge onto a single point, destroying solution diversity and failing on complex, multimodal landscapes where multiple distinct solutions might be valuable.

The authors address these limitations by establishing a principled, physics-based framework that models evolutionary search as an order-disorder dynamic transition.

Figure 1: A unified view of phase transitions and evolution. The transition from a liquid to a solid mirrors the shift from biological exploration to exploitation. The glass transition temperature (Tg) marks the threshold at which the system switches from mutation- like, entropic exploration to selection-like, potential-driven exploita- tion.

Methods

The authors introduce Wasserstein Evolution (WE), an algorithm derived from the Wasserstein gradient flow of a free energy functional:

$$F[\rho] = U[\rho] - \frac{1}{\beta}S[\rho]$$

In this formulation:

  • The objective function to be minimized is treated as potential energy ($U$).
  • Population diversity is explicitly quantified as mathematical entropy ($S$).
  • The parameter $\beta$ acts as the inverse temperature, controlling the exploration-exploitation trade-off.

During optimization, the population updates are driven by the interplay of two distinct physical forces:

  • Potential Gradient Force ($-\nabla f(x)$): Drives particles toward lower objective values (exploitation).
  • Entropic Force ($-\frac{1}{\beta}\nabla \log \rho(x)$): Pushes particles away from high-density regions to maintain diversity (exploration).

In practice, the continuous population density is approximated using particles, and the entropic force is computed via Kernel Density Estimation (KDE). An inverse temperature schedule ($\beta_t$) gradually transitions the system from an entropy-dominated exploration phase to a potential-dominated exploitation phase. This mathematical formulation guarantees that the population converges to a stable Boltzmann distribution rather than a single point.

Figure 2: The framework of Wasserstein Evolution. It iteratively minimizes free energy by balancing the potential gradient force (ex- ploitation) and the entropic force (exploration). At each step, the population density is modeled via Kernel Density Estimation (KDE) to compute the resultant force, which drives individuals toward the equilibrium Boltzmann distribution.

Datasets

The performance of WE was evaluated across ten benchmark functions, split into two main categories:

  • Classical Multimodal Functions: Rastrigin, Beale, Himmelblau, Six-Hump Camel, and Holder Table.
  • Real-World Physical Potential Functions: 2D Periodic, Double-Well, Tokamak, Multipole, and Optical Lattice.

To evaluate robustness against landscape variations, the authors also tested the algorithm on the Schwefel 2.22 benchmark alongside 11 of its transformed variants (incorporating shifts, rotations, scaling, and anisotropic scaling).

Key Insights and Ideas

  • Evolution as a Phase Transition: The shift from mutation-driven exploration to selection-driven exploitation is mathematically analogous to a physical phase transition from a disordered liquid state to an ordered solid state.
  • Targeting Distributions, Not Points: Instead of forcing a population to collapse onto one global minimum, optimizing for a Boltzmann distribution naturally preserves multiple high-quality solutions across multimodal landscapes.
  • Principled Trade-offs: By framing exploration and exploitation as entropic and potential forces, the trade-off is automatically and optimally managed by the laws of free energy minimization, removing the need for ad-hoc heuristic tuning.

Key Results

WE was compared against five established baseline EAs: GA, DE, CMA-ES, JADE, and SaDE.

  • Superior Diversity: WE consistently achieved the highest average entropy ($S$) across all ten benchmark functions, demonstrating a powerful ability to mitigate representation collapse.
  • Thermodynamic Stability: WE consistently achieved the lowest average free energy ($\mathcal{F}$), proving that it successfully guides the population to a physically stable equilibrium.
  • Robustness to Transformations: On the Schwefel 2.22 transformation benchmarks, WE maintained its superior diversity and low free energy, proving highly robust to translation, rotation, and scaling.
Figure 3: Evolution of the WE population distribution on the Himmelblau function. (Top) Spatial distribution of solutions (black dots) at iterations. (Bottom) Marginal frequency distribution along the first dimension with corresponding KDE curves. Dashed lines indicate the four theoretical minima, while the orange shading represents the reference probability density function. The population evolves from a random initialization toward a Boltzmann distribution, successfully covering all four global optima.
Figure 4: Comparison of thermodynamic metrics. We plot Average Entropy (lines) and Average Free Energy (bars) for WE against five evolutionary baselines. WE consistently demonstrates higher diver- sity and lower free energy, indicating superior stability compared to competitors.

Limitations and Future Work

The authors note that computing the entropic force relies on Kernel Density Estimation (KDE) to approximate the population density. In exceptionally high-dimensional search spaces, density estimation can become computationally expensive and suffer from the curse of dimensionality.

For future work, the authors plan to scale the Wasserstein Evolution framework to broader stochastic optimization problems, specifically targeting complex practical applications like deep neural network training and large-scale engineering design optimization.

Summary updated

BibTeX
@misc{ouyang2025wasserstein,
  author = {Kaichen Ouyang and Mingyang Yu and Zong Ke and Junbo Jacob Lian and Shengwei Fu and Xiaoyang Hao and Shengju Yu and Dayu Hu},
  title = {{Wasserstein Evolution : Evolutionary Optimization as Phase Transition}},
  year = {2025},
  eprint = {2512.05837},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.05837},
}
Figure