RobertTLange/evosax

Evolution Strategies in JAX 🦎

What it solves

evosax removes the complexity and performance bottlenecks associated with running evolutionary algorithms. It eliminates the need for manual, asynchronous distributed processing, allowing researchers to run high-throughput evolutionary strategies directly on modern hardware accelerators like GPUs.

How it works

The library is built on JAX, which allows it to use XLA compilation and powerful transformations like jit, vmap, and lax.scan. It follows a standard ask-eval-tell cycle: the algorithm generates candidate solutions (ask), the user evaluates their fitness, and the algorithm updates its internal state based on those results (tell). This structure is highly efficient and avoids the overhead typical of traditional evolutionary implementations.

Who it’s for

It is designed for researchers and practitioners in neuroevolution and optimization who need to scale evolutionary algorithms to modern hardware without complex, distributed codebases.

Highlights

  • Includes 30+ pre-implemented evolution strategies, ranging from classics like CMA-ES and Differential Evolution to modern approaches like OpenAI-ES and Diffusion Evolution.
  • Fully compatible with JAX transformations for high-performance execution.
  • Eliminates the need for asynchronous process management.
  • Provides a consistent, easy-to-use API for both distribution-based and population-based algorithms.

Related

  • Project
  • Project
  • Dispatch
  • Project
  • Project