Sparse rewards, decision trees, and determinant diversity¶
These CPU pilots use seeds 7, 13, and 23. Each method and its control use the same budget within a task. Values in the tables are medians across the three seeds. See the per-seed records and the tutorial for the individual results and implementation details.
The recorded runs used CPython 3.11.16, NumPy 2.4.6, SciPy 1.17.1, Gymnasium 1.4.0, and the CPU build of PyTorch 2.15.0. BLAS and OpenMP threads were limited to one. A second run reproduced the result rows and fitted tree files byte for byte.
uv run --extra rl python examples/serene_trees_dvd.py all \
--seeds 7 13 23 --output build/serene-trees-dvd/results.jsonl
Discrete line balance¶
The policy sees position and velocity and chooses one of two impulses. Both searches fit leaf action values for eight 16-step episodes, then score greedily for four 16-step episodes. Each searches 64 trees using 12,288 steps, including 4,096 scoring steps. The independent audit measures the best scoring policy on another 24 episodes, or 384 steps. The grid has five depth values and eight entropy bins.
Parent selection |
Occupied cells |
QD score |
Held-out return |
|---|---|---|---|
Tree MAP-Elites |
11 |
51.695 |
13.653 |
Highest-reward tree |
9 |
32.568 |
13.269 |
The QD search filled more cells on all three seeds. It had higher held-out return on two seeds and a lower QD score on one. The best policy on seed 7 used depth two under MAP-Elites and depth four under reward-only selection. Each return is between zero and 16.
Multimodal contextual control¶
A policy selects two bounded continuous actions from a scalar context. Reward favours four action pairs. Embeddings are actions on three fixed contexts. Each search uses the same four initial centers, four antithetic perturbation pairs per member, and 32 updates for 1,156 training calls. An audit of 64 fresh contexts per member adds 256 measured calls. A strong mode has a center with audit return at least 0.7 and mean probe action within 0.35 of the mode.
Search |
Population log determinant |
Strong modes |
Mean held-out reward |
Best held-out reward |
|---|---|---|---|---|
DvD-ES, adaptive |
-0.334 |
2 |
0.791 |
0.966 |
DvD-ES, fixed (0.5) |
-0.003 |
2 |
0.758 |
0.940 |
Independent ES |
-2.820 |
2 |
0.929 |
0.982 |
DvD-ES spread the population on all three seeds. The adaptive sampler chose the mixed gradient in 18, 17, and 30 rounds and reached two strong modes on seed 23, when both controls reached one. Independent ES achieved higher median held-out reward. The kernel rewards distinct action responses across contexts, including responses that earn less reward on this task.