EMI-Group/evorl
EvoRL is a fully GPU-accelerated framework for Evolutionary Reinforcement Learning, implemented with JAX. It supports Reinforcement Learning (RL), Evolutionary Computation (EC), Evolution-guided Reinforcement Learning (ERL), AutoRL, and seamless integration with GPU-optimized simulation environments.
What it solves
Training reinforcement learning (RL) and evolutionary computation (EC) algorithms normally shuttles data back and forth between the CPU and the GPU, which slows things down and underuses the GPU's parallel power. EvoRL removes that bottleneck by running the entire training pipeline — RL, evolutionary computation, and environment simulation — on the GPU from start to finish, making it faster and easier to develop and evaluate these algorithms.
How it works
EvoRL is built with JAX, a library that lets you write code that runs efficiently on GPUs. Its design is modular, with a few core building blocks:
- Workflow defines the training logic of an algorithm.
- Agent defines how a learning agent behaves and its optional loss functions.
- Env provides one unified interface across different environment packages.
- SampleBatch is the data structure that holds trajectories or shuffled transition batches.
- EC module supplies evolutionary algorithm components and operators.
Most algorithms expose a Workflow.step() function that supports JAX's JIT compilation and vectorized batching, so parallel training runs on the full computation graph. Because the components are modular, evolutionary computation pieces can be plugged into workflows to cooperate with RL. Configuration is managed with Hydra, so you launch training from the command line by specifying an agent config and an environment config (e.g., python scripts/train.py agent=ppo env=brax/ant).
Who it's for
Researchers and developers who want to build, train, and evaluate reinforcement learning, evolutionary computation, and evolutionary-RL algorithms — especially those who want to leverage GPU acceleration and run experiments in parallel across multiple GPUs.
Highlights
- End-to-end GPU training: RL, EC, and environment simulation all run on GPUs, avoiding slow CPU-GPU communication and using modern GPU parallelism fully.
- Easy EC + RL integration: modular design lets evolutionary computation components plug into workflows alongside RL.
- Built-in EvoRL algorithms: implements two popular paradigms — Evolution-guided RL (ERL, CEM-RL) and Population-based AutoRL (PBT).
- Broad algorithm coverage: RL (A2C, PPO, IMPALA, DQN, DDPG, TD3, SAC, TD7), EA (OpenES, VanillaES, ARS, CMA-ES, SepCMA-ES, NSGA-II), Evolution-guided RL (ERL-GA, ERL-ES, CEMRL, CEMRL-OpenES), and PBT family (PBT-PPO, PBT-SAC, PBT-CSO-PPO).
- Unified environment API: supports many GPU-accelerated environment packages (Brax, MuJoCo Playground, gymnax, JaxMARL, Jumanji) plus CPU-based ones (EnvPool, Gymnasium), with multiple environment wrappers.
- Flexible experiment logging: works with log, Aim, WandB, SwanLab, Comet, and Neptune recorders.
- Object-oriented functional programming model: classes define static execution logic while running state is stored externally.
Related
- Project
- Project
- Project
- Project
- Project