# Compare MAP-Elites, CVT-MAP-Elites, and CMA-MAE The three methods use the same eight-dimensional, bounded Rastrigin evaluator. Each run spends 2,048 search calls and uses batches of 16. The five seeds are 7, 13, 23, 31, and 47. The deterministic task returns one minus normalized Rastrigin cost as fitness and the first two genome coordinates as descriptors. The noisy task adds independent uniform noise of up to ±0.08 in fitness and ±0.06 in each descriptor, then clips the measurements to the unit interval. MAP-Elites and CVT-MAP-Elites use the same polynomial variation. CMA-MAE starts at the midpoint with a step size of 0.15 and uses an archive learning rate of 0.1 and an initial threshold of zero. Both rectangular searches use an 8 × 8 grid. The CVT search uses 64 centroids fitted once from 4,096 uniformly sampled points with seed 47. The report includes the fitted coordinates. ## Search and held-out results At each checkpoint, place the current elites into a fresh 8 × 8 reporting grid. Keep the highest measured fitness when two elites map to the same reporting cell. Coverage is the fraction of occupied reporting cells. QD score sums their best fitness values on a scale from 0 to 64. For the final audit, remeasure each elite in the **native** archive 16 times. Take the mean of its fresh fitness and descriptor coordinates, then place it directly in a new reporting grid. The noisy task uses separate random streams for search and audit. A given seed starts each method with the same streams. Different methods can evaluate different genomes at the same draw. Audit calls are additional to the search budget. ![Median QD score and coverage over matched search budgets and wall time](benchmarks/baseline-comparison.png) Each plot point uses the median metric and the median elapsed time across seeds at a shared evaluation checkpoint. Search wall time includes method setup, proposals, evaluations, and archive updates. The shared CVT fit took 0.12 s and is recorded separately. Reporting grid construction and the final audit are outside the search timing. | Task | Method | Observed coverage | Observed QD score | Held-out coverage | Held-out QD score | Search time (s) | | --- | --- | ---: | ---: | ---: | ---: | ---: | | Rastrigin | MAP-Elites | 100.0% | 49.99 | 100.0% | 49.99 | 0.19 | | Rastrigin | CVT-MAP-Elites | 73.4% | 36.50 | 73.4% | 36.50 | 0.28 | | Rastrigin | CMA-MAE | 100.0% | 49.78 | 100.0% | 49.78 | 0.52 | | Noisy Rastrigin | MAP-Elites | 100.0% | 51.81 | 64.1% | 30.77 | 0.32 | | Noisy Rastrigin | CVT-MAP-Elites | 75.0% | 38.98 | 62.5% | 30.03 | 0.41 | | Noisy Rastrigin | CMA-MAE | 100.0% | 52.05 | 76.6% | 37.27 | 0.58 | All runs retained 64 native elites, for 1,024 audit calls per run. The rectangular reporting cells match the search cells of MAP-Elites and CMA-MAE. Several occupied CVT cells project into the same rectangle, so CVT's lower reported coverage reflects the reporting geometry. Noise reduced held-out coverage for all three methods. CMA-MAE had the highest median held-out QD score on this noisy task. These comparisons apply to the chosen geometry, seeds, and budget. ## Reproduce the comparison The published run used one logical CPU of an Intel Xeon E5-2630 v4 on Linux, Python 3.11.16, NumPy 2.4.6, SciPy 1.17.1, scikit-learn 1.9.1, and pycma 4.6.0. A repeat reproduced the centroids and all non-timing measurements. Download the [raw JSON report](benchmarks/baseline-comparison.json) to inspect the per-seed curves, audit counts and durations, and versions. ```sh python -m pip install ".[cma]" OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 MKL_NUM_THREADS=1 \ python -I examples/baseline_comparison.py --methods map cvt cma-mae \ --tasks rastrigin noisy-rastrigin --seeds 7 13 23 31 47 \ --budget 2048 --report-every 256 --audit-samples 16 \ --output build/baselines/results.json --plot build/baselines/curves.png ``` The [baseline tutorial](tutorial_baseline_comparison.rst) shows how to reuse the evaluator with the three native optimisers and save the run manifests and archives. The [parallel performance report](parallelism_benchmarks.md) covers executor comparisons. ## Compare reporting geometries The extended study adds an eight-joint planar arm. Its equal-length links have a combined length of one. Map joint coordinates from `[0, 1]` to relative angles in `[-π, π]`. The normalized end-effector position supplies the two descriptors. Fitness is one minus twice the standard deviation of the normalized joint coordinates, an affine rescaling of QDax's Arm fitness. [QDax Arm source](https://github.com/adaptive-intelligent-robotics/QDax/blob/main/qdax/tasks/arm.py) Evaluate the same set of elites in each geometry. The rectangular reporting grid is the original 8 × 8 grid. The second grid uses 64 Voronoi cells, fitted independently from the search centroids using seed 53. Both grids use the same remeasurements. The table gives median held-out coverage and QD score across five seeds. | Task | Method | Rectangular coverage | Rectangular QD score | Voronoi coverage | Voronoi QD score | | --- | --- | ---: | ---: | ---: | ---: | | Rastrigin | MAP-Elites | 100.0% | 49.99 | 76.6% | 38.38 | | Rastrigin | CVT-MAP-Elites | 73.4% | 36.50 | 76.6% | 38.46 | | Rastrigin | CMA-MAE | 100.0% | 49.78 | 76.6% | 38.32 | | Noisy Rastrigin | MAP-Elites | 64.1% | 30.77 | 65.6% | 31.08 | | Noisy Rastrigin | CVT-MAP-Elites | 62.5% | 30.03 | 65.6% | 31.47 | | Noisy Rastrigin | CMA-MAE | 76.6% | 37.27 | 76.6% | 37.29 | | Planar arm | MAP-Elites | 81.2% | 41.69 | 57.8% | 30.06 | | Planar arm | CVT-MAP-Elites | 57.8% | 30.90 | 54.7% | 28.77 | | Planar arm | CMA-MAE | 90.6% | 50.76 | 68.8% | 38.49 | On Rastrigin, the three methods were within 0.15 QD-score points when measured on the shared Voronoi grid. On the planar arm, CMA-MAE had the highest median QD score in both reporting geometries. Absolute scores depend on how descriptors are partitioned, so compare methods within the same geometry. [Rectangular curves](benchmarks/baseline-geometry-grid.png) · [Voronoi curves](benchmarks/baseline-geometry-voronoi.png) · [Per-seed report and centroids](benchmarks/baseline-geometry.json) The extended comparison used the same CPU limits and package versions as the original run. A repeat reproduced all non-timing records. ```sh OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 MKL_NUM_THREADS=1 \ python -I examples/baseline_comparison.py \ --tasks rastrigin noisy-rastrigin planar-arm --compare-geometry \ --output build/baselines/geometry.json --plot build/baselines/rectangular.png \ --voronoi-plot build/baselines/voronoi.png ```