evosax: JAX-based Evolution Strategies

Robert Tjarko Lange
12/8/2022
94 citations
cs.NEcs.AI

Official code: RobertTLange/evosax (804 stars, Python, Apache-2.0, last commit 2026-04-02). 1 more implementation below.

Abstract

The deep learning revolution has greatly been accelerated by the 'hardware lottery': Recent advances in modern hardware accelerators and compilers paved the way for large-scale batch gradient optimization. Evolutionary optimization, on the other hand, has mainly relied on CPU-parallelism, e.g. using Dask scheduling and distributed multi-host infrastructure.

Show full abstract

Here we argue that also modern evolutionary computation can significantly benefit from the massive computational throughput provided by GPUs and TPUs. In order to better harness these resources and to enable the next generation of black-box optimization algorithms, we release evosax: A JAX-based library of evolution strategies which allows researchers to leverage powerful function transformations such as just-in-time compilation, automatic vectorization and hardware parallelization. evosax implements 30 evolutionary optimization algorithms including finite-difference-based, estimation-of-distribution evolution strategies and various genetic algorithms. Every single algorithm can directly be executed on hardware accelerators and automatically vectorized or parallelized across devices using a single line of code. It is designed in a modular fashion and allows for flexible usage via a simple ask-evaluate-tell API. We thereby hope to facilitate a new wave of scalable evolutionary optimization algorithms.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
RobertTLange/evosaxOfficial804PythonApache-2.02026-04-02
adaptive-intelligent-robotics/QDaxOfficial365PythonMIT2025-10-30
Apache-2.0

Evolution Strategies in JAX 🦎

80466PythonDec 30, 20208 months agoApache-2.0
MIT

Accelerated Quality-Diversity

36555PythonFeb 11, 20221 years agoMIT
neuroevolutionopen-endednessquality-diversityreinforcement-learning

Similar Papers

Cite this paper

@article{lange2022evosax,
  title  = {evosax: JAX-based Evolution Strategies},
  author = {Robert Tjarko Lange},
  year   = {2022},
  eprint = {2212.04180},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.04180}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.04180.svg)](https://codeofpaper.com/paper/2212.04180)

Discussion