Generative black-box optimization that learns search behavior from evaluated candidates. Provides standalone JAX and PyTorch implementations for numerical optimization and control tasks.
๐ Evolutionary Generative Optimization: Towards Fully Data-Driven Evolutionary Optimization via Generative Learning ๐
๐ Table of Contents
๐ Overview
Evolutionary Generative Optimization(EvoGO) is a fully data-driven framework for black-box optimization.
It addresses a core limitation of traditional evolutionary optimization that relies on manually designed operators.
EvoGO replaces heuristic rules by learning search behavior from historical evaluations.
The framework supports both JAX and PyTorch backends.
The current main branch exposes standalone EvoGO.solve(...) interfaces in
evogo_jax and evogo_torch. Neither backend imports EvoX; an EvoX workflow
integration would require an adapter.
โจ Key Features
๐ซ Fully Data-Driven Optimization
- Replaces operator-centric evolutionary design with learned generation to drive the search process.
- Reduces reliance on manual heuristics and extensive parameter tuning.
๐ฏ Optimization-Goal Alignment
- Introduces learning objectives explicitly tailored for optimization, improving the consistency between model training and search goals.
- Helps mitigate common failure modes in learning-based optimization such as premature convergence and misdirected generation.
โก Scalable and Parallel-Friendly Search
- Naturally supports large-scale parallel candidate generation and evaluation.
- Well-suited for modern high-throughput settings such as GPU-accelerated simulation-based optimization.
๐งช Strong Performance across Diverse Black-Box Benchmarks
- Validated on numerical benchmarks, classical control tasks, and high-dimensional robotic control environments.
- Demonstrates fast convergence and competitive wall-clock efficiency compared with representative baselines.
Source checkout
git clone --branch main https://gitlab.com/emi-lab/evogo.git
cd evogo
Run the setup scripts and examples from the repository root so that the local
evogo_jax, evogo_torch and test_functions modules can be imported. This
checkout does not contain Python package installation metadata.
The bundled setup scripts require Bash and Conda. Their requirement files
target Linux with NVIDIA CUDA: JAX pins jax==0.4.16 and
jaxlib==0.4.16+cuda12.cudnn89; PyTorch pins torch==2.5.1+cu124.
They are reproduction environments, not portable CPU or Windows installers.
Use separate environments for the two backends.
JAX Version
Installation
To set up the JAX environment, simply run the provided setup script:
bash setup_env_jax.sh
conda activate evogo-jax
Example
The script creates a Python 3.10.19 environment. Activate it in your current shell after the script exits. Save the following example in the repository root and run it there:
import jax
import jax.numpy as jnp
from evogo_jax.evogo import EvoGO
from test_functions.simple_functions_jax import Rosenbrock
if __name__ == "__main__":
# 2. Configuration
dim = 5
num_parallel = 2
seed = 42
key = jax.random.PRNGKey(seed)
# 3. Initialize the problem
problem = Rosenbrock(dim=dim, key=key, parallels=num_parallel)
# 4. Initialize the algorithm
solver = EvoGO(
max_iter=5,
batch_size=100,
gm_batch_size=100,
num_parallel=num_parallel,
debug=True
)
# 5. Call the solve method
print(f"Starting to solve {dim}-dimensional Rosenbrock function...")
best_x, best_y = solver.solve(problem, dim=dim, seed=seed)
print("\n" + "="*30)
print(f"Optimization Complete!")
print(f"Best x: {best_x}")
print(f"Best y: {best_y}")
print("="*30)
Torch Version
Installation
To set up the PyTorch environment, simply run the provided setup script:
bash setup_env_torch.sh
conda activate evogo-torch
Example
The script creates a Python 3.11 environment. Activate it in your current shell after the script exits. Save the following example in the repository root and run it there.
Some helper functions use torch.compile even when EvoGO(compile=False) is used.
A working PyTorch compiler toolchain is therefore needed for those paths. For
an eager CPU smoke test, set TORCHDYNAMO_DISABLE=1 before starting Python
(Bash: export TORCHDYNAMO_DISABLE=1; PowerShell: $env:TORCHDYNAMO_DISABLE="1").
This disables compilation and is not a performance benchmark.
import torch
import numpy as np
from evogo_torch.evogo import EvoGO
from test_functions.simple_functions import HarderNumerical
if __name__ == "__main__":
# Configuration
dim = 5
num_parallel = 2
seed = 42
device = "cuda:0" if torch.cuda.is_available() else "cpu"
device_obj = torch.device(device)
print(f"Running on {device}")
# Initialize the problem
problem = HarderNumerical(
dim=dim,
device=device_obj,
eval_fn=HarderNumerical.Rosenbrock,
instances=num_parallel
)
# Initialize the algorithm
solver = EvoGO(
max_iter=5,
batch_size=100,
gm_batch_size=100,
num_parallel=num_parallel,
use_gp=True,
debug=True,
gpu_id=0 if "cuda" in device else -1
)
# Call the solve method
print(f"Starting to solve {dim}-dimensional Rosenbrock function (HarderNumerical)...")
best_x, best_y = solver.solve(problem, dim=dim, seed=seed, device=device)
print("\n" + "="*30)
print(f"Optimization Complete!")
print(f"Best x (normalized input to solver): {best_x}")
print(f"Best y: {best_y}")
print("="*30)
Objective interface
Both solvers minimize a batched objective. Inputs have shape
(num_parallel, batch_size, dim) in the normalized unit cube [0, 1]^dim;
the objective returns (num_parallel, batch_size) fitness values. Map inputs
to your physical bounds inside the objective. solve returns the best solution
and scalar fitness across all parallel runs, not one solution per run.
๐ค Community & Support
We welcome contributions and look forward to your feedback!
- Engage in discussions and share your experiences on GitLab issues.
- Join our QQ group (ID: 297969717).
๐ Citing EvoGO
@article{sun2025evolutionary,
title = {Evolutionary Generative Optimization: Towards Fully Data-Driven Evolutionary Optimization via Generative Learning},
author = {Jiang, Tao and Sun, Kebin and Liang, Zhenyu and Cheng, Ran and Jin, Yaochu and Tan, Kay Chen},
journal = {IEEE Transactions on Evolutionary Computation},
year = {2025},
doi = {10.1109/TEVC.2026.3664432}
}
Introduction
Generative black-box optimization that learns search behavior from evaluated candidates. Provides standalone JAX and PyTorch implementations for numerical optimization and control tasks.
Customize your domain