Parent selection, surrogate search, and skill pilots¶
The tutorial shows how to run each method. From a checkout, this command runs the 39 CPU comparisons.
OMP_NUM_THREADS=1 OPENBLAS_NUM_THREADS=1 python examples/selection_and_skills.py all
Install the rl extra for the complete suite. The core command
covers NSS-ME, Hierarchical Trial and Error, and QDAIF. DSAGE alone
needs PyTorch for its built-in model.
The pilot uses common seeds and matched budgets within each task. All 39 records repeated exactly apart from elapsed time.
All searches use seeds 11, 22, and 33. The tables show medians across seeds unless a column reports the number of successful seeds. Timings come from one CPU thread on an Intel Xeon E5-2630 v4. The core methods ran with Python 3.11.16. DSAGE and DOMiNO ran with Python 3.12.14 and PyTorch 2.15.0+cpu. The raw JSONL records include per-seed metrics and elapsed time.
NSS-ME¶
Each selector used 360 proposals on a four-coordinate objective with two descriptors, an 8×8 grid, and the same clipped Gaussian mutation scale. NSS ranked the current archive before each generation. Uniform selection and Monte Carlo Elites used the same generation size.
Parent selection |
Occupied cells |
QD score |
Best fitness |
Seconds |
|---|---|---|---|---|
NSS-ME |
63 |
25.431 |
0.898 |
0.173 |
Uniform |
62 |
24.067 |
0.920 |
0.053 |
Monte Carlo Elites |
63 |
25.436 |
0.871 |
0.098 |
Directional sorting matched Monte Carlo Elites on median coverage and QD score. It added about 0.08 seconds at this archive size.
DSAGE¶
A breadth-first solver measures route length and solvability on 5×5 layouts. Wall density and route length define an 8×8 archive. DSAGE measures 20 random layouts before fitting. Each subsequent round evaluates 96 predictions and promotes up to seven layouts. The direct surrogate variant omits the visitation-target network. SAIL uses its Gaussian-process acquisition with 96 predictions per round. Every method spends 112 real simulator calls.
Search |
Occupied cells |
QD score |
Surrogate calls |
Fits |
Seconds |
|---|---|---|---|---|---|
DSAGE with visitation targets |
8 |
4.864 |
2,112 |
22 |
1.20 |
DSAGE with direct prediction |
10 |
5.944 |
2,208 |
23 |
0.84 |
SAIL |
8 |
5.560 |
1,440 |
— |
0.44 |
MAP-Elites |
6 |
3.560 |
— |
— |
0.02 |
The direct neural model filled the most cells. The model with visitation targets filled fewer cells and took more time. On this cheap solver, plain MAP-Elites used the least wall time. The matched simulation budget shows how the methods use real measurements, which is the relevant comparison when each true evaluation is expensive.
Hierarchical Trial and Error¶
Both planners use a library trained with 160 evaluator calls. A macro takes two primitive moves, and one actuator family delivers just a quarter of its nominal displacement during deployment. The flat planner uses the best nominal composition per primary cell. HTE also learns which secondary composition to execute. Both planners can use up to 12 macro trials and simulate 42 paths per decision.
Planner |
Reached goal |
Macro trials |
Primitive calls |
Endpoint error |
|---|---|---|---|---|
HTE |
3/3 |
6 |
12 |
0.250 |
Flat Reset-free Trial-and-Error |
3/3 |
11 |
22 |
0.354 |
DOMiNO¶
The contextual bandit has two relatively rewarding actions and one poor action. Both runs train three latents in the same shared PPO architecture for 3,840 interactions. Measure each latent on 24 held-out contexts, using the same context seeds for every policy. The floor is 0.78 reward per step. Diversity is the mean pairwise Euclidean distance between the learned action frequencies.
Search |
Latents meeting the floor |
Mean occupancy distance |
Seeds with nonzero diversity |
|---|---|---|---|
DOMiNO |
9/9 |
0.943 |
2/3 |
Reward-only conditioned actor |
9/9 |
0 |
0/3 |
One DOMiNO seed converged to the same action across all latents. The other two seeds retained both of the high-return choices.
QDAIF¶
The deterministic lookup grades short phrases by word choice and groups them by subject and time of day. Start both methods with the same seed phrase. Both spend 60 unique judgments, with a cap of 240 proposal calls. Duplicate proposals reuse the recorded judgment.
Proposal strategy |
Calls |
Duplicates |
Occupied cells |
QD score |
|---|---|---|---|---|
Archive-conditioned mutation |
86 |
27 |
13 |
9.60 |
Independent sampling |
59 |
0 |
16 |
9.72 |
Independent sampling covered more cells on this small text space. The fixture checks budget and archive behaviour with a fixed grader. Live-model comparisons would also need ratings from an independent rubric.