Trace-Elites, MEMES, and AIM benchmarks¶
The tutorial explains each API. The tables report medians over seeds 7, 13, and 23 on CPU with Python 3.11 and one BLAS thread. All 24 rows repeated apart from elapsed time. The JSONL records include each run and its call counts.
export OMP_NUM_THREADS=1 OPENBLAS_NUM_THREADS=1 MKL_NUM_THREADS=1
python examples/trace_memes_aim.py trace
python examples/trace_memes_aim.py memes
python examples/trace_memes_aim.py aim
python examples/trace_memes_aim.py trace --seeds 13 --plot build/trace-elites-paths.png
Trace-Elites¶
The objective scores where a route ends and penalizes path length. Each evaluation samples 17 points on a quadratic Bézier curve. Both methods spend 360 calls, start with 16 uniform proposals, and then use identical Iso+LineDD settings. Endpoint MAP-Elites competes using the last point. Trace-Elites competes in every visited cell and samples a parent from the occupied cells.
The reporting grid uses all recorded points of the retained elites for both methods. Raw trace QD score sums the winning fitness once per occupied reporting cell.
Method |
Search cells |
Distinct retained genomes |
Reporting trace cells |
Raw trace QD score |
|---|---|---|---|---|
Trace-Elites |
90 |
73 |
90 |
139.230 |
Endpoint MAP-Elites |
84 |
84 |
91 |
138.475 |
Both repertoires covered about 90 cells under the shared trace metric. Trace-Elites stored fewer distinct genomes because a successful route can win several cells. The small difference in trace QD score on this fixture is consistent with those routes having high quality.

MEMES¶
The search uses a multimodal objective in 48 dimensions and a 12-by-12 reporting grid. ME-ES starts at one point and changes modes every eight updates. MEMES starts with eight centers, runs four fitness emitters and four novelty emitters, and discards old novelty observations once its FIFO reaches 128. Both methods use three mirrored perturbation pairs per step and one measurement per center. Each method spends exactly 1,016 evaluations, including initialization.
Method |
Center evaluations |
Cells |
Raw QD score |
Best fitness |
Wall time (s) |
|---|---|---|---|---|---|
ME-ES |
146 |
17 |
25.549 |
1.640 |
0.118 |
MEMES with scalar evaluation |
152 |
16 |
24.729 |
1.642 |
0.102 |
MEMES with NumPy batch evaluation |
152 |
16 |
24.729 |
1.642 |
0.076 |
The scalar and batch MEMES variants produced identical recorded archive metrics and reset counts. The batch callback reduced median runtime on this cheap objective. Actual timing depends on how much work the evaluator can do in a single array operation.
Asymmetric Island Model¶
The task pairs a scout with two parameters and a carrier with three. Their objectives include a penalty when the scout’s waypoint and the carrier’s pickup location differ. AIM evolves one island per role and a team population for each of two routing tasks. The controls run Mix-ME separately on the same training tasks. One control matches the number of team evaluations. The other matches all training calls by spending the role and team budgets on team evaluations.
Each method submits its best team from each training task to a third task with different waypoint, drop-off, and speed targets. The mean and best are computed over those two held-out calls per seed.
Method |
Role calls |
Team calls |
Mean held-out score |
Best held-out score |
|---|---|---|---|---|
AIM |
66 |
88 |
1.797 |
1.817 |
Mix-ME, matched team calls |
0 |
88 |
1.806 |
1.820 |
Mix-ME, matched total calls |
0 |
154 |
1.816 |
1.893 |
AIM completed three migrations. The role budget includes 24 measurements of returning team members. Thirty-six exported roles went into newly evaluated team candidates. Independent Mix-ME performed slightly better on this holdout. The role and team objectives are all inexpensive here, so matching total calls is possible. In applications where their costs differ, report both counts and time spent in each evaluator.