On Averaging the Best Samples in Evolutionary Computation

Laurent Meunier, Yann Chevaleyre, Jérémy Rapin, Clément W. Royer, Olivier Teytaud · DOI

Introduction

In parallel evolutionary search, a fundamental question arises: should we select only the single best candidate from a population, or is it more effective to average the top performers? This paper investigates the selection rate $\mu/\lambda$—the ratio of selected "parents" to the total population—in the context of continuous optimization. While empirical heuristics often suggest keeping the top 1/4 or 1/7 of a population, rigorous theoretical justification has been sparse, particularly for "one-shot" or single-epoch settings common in massive-scale parallel optimization.

Problem Statement

The authors address the efficiency of the "one-shot" setting, where a large batch of points is evaluated simultaneously. This is a typical scenario in hyperparameter tuning and large-scale parallel search. Specifically, they compare the strategy of returning the single best point found ($\mu=1$) against returning the average of the $\mu$ best points. The goal is to minimize the "expected regret," defined as the distance from the estimated optimum to the true optimum.

Methodology

The research focuses on the sphere function $f(x) = \|x-y\|^2$ as a primary benchmark. The methodology combines three key elements:

  1. Mathematical Analysis: Deriving exact formulas for expected regret when sampling $\lambda$ points uniformly from a ball.
  2. Asymptotic Proofs: Utilizing Gamma and Beta functions alongside Stirling’s approximation to compare convergence rates.
  3. Adaptive Heuristics: Introducing a strategy based on quasi-convexity to handle non-spherical or multimodal landscapes. By examining the convex hull of the best points, the algorithm can dynamically decide how many points to average based on whether the function locally behaves like a convex function.

Key Insights: The Power of Averaging

A central finding is the "curse of the single best." When $\mu=1$, the error decreases at a rate of $O(\lambda^{-2/d})$. In high-dimensional spaces (large $d$), this rate becomes extremely slow. Conversely, by averaging a constant fraction $\mu$ of the population $\lambda$, the error rate improves to $O(\lambda^{-1})$. This rate is independent of the dimension in the exponent, providing a significant advantage in high-dimensional optimization.

This improvement stems from a bias-variance tradeoff. While averaging introduces a small bias (since the centroid of points near the optimum is not the optimum itself), it drastically reduces the variance associated with random sampling. For the sphere function, the reduction in variance far outweighs the introduced bias.

Key Results

The paper provides both theoretical and empirical evidence for the superiority of averaging. Theorems 6 and 10 establish the mathematical advantage of $\mu > 1$. Empirical simulations confirm these findings; for instance, with $\lambda=1000$ and $d=5$, the theoretical curves for expected regret perfectly match the empirical results.

Empirical vs. Theoretical Regret for different selection rates.

In benchmarks using the Nevergrad platform, the proposed adaptive formulas (HCHAvg and THCHAvg) consistently outperformed the standard "pick the best" approach across various dimensions. In 200-dimensional tests, the averaging strategies showed substantial performance gains. Furthermore, the strategy proved robust even on non-convex functions like Rastrigin, provided the global structure remained somewhat "sphere-like."

Conclusion and Future Work

This work demonstrates that averaging the best samples is a powerful, theoretically grounded technique for improving convergence in parallel evolutionary computation. Future research directions include extending these proofs to multi-generational algorithms, exploring more complex function classes beyond strongly convex quadratics, and integrating these averaging techniques with surrogate models like Gaussian Processes.

Summary updated

BibTeX
@inproceedings{meunier2020averaging,
  author = {Laurent Meunier and Yann Chevaleyre and Jérémy Rapin and Clément W. Royer and Olivier Teytaud},
  title = {{On Averaging the Best Samples in Evolutionary Computation}},
  booktitle = {PPSN},
  year = {2020},
  url = {https://openreview.net/forum?id=Oy4TeIiSBWW},
}
Figure