Sequence search, outcome distributions, and continuing control¶
The per-seed records
use seeds 0–4. Run the first two tasks with the base package. Add
the rl extra for navigation.
python -m pip install ".[rl]"
OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 python -I examples/sequence_distribution_qd.py \
--task all --seeds 5 --budget 160 --output sequence-distribution-qd.jsonl
Original tile sequences¶
Each method proposes 160 sequences of 20 tiles. Both evolutionary methods start from the same n-gram generator. The standard baseline then uses one-point crossover and uniform token mutation. Direct n-gram sampling generates every candidate from the corpus model. The level checker enforces climb height and key availability. The 20-cell archive reports the number of doors and high tiles, with quality based on the fraction of distinct adjacent tile pairs.
Method |
Proposals in n-gram support |
Playable proposals |
Filled cells |
QD score |
|---|---|---|---|---|
Gram-Elites |
160.0 |
149.8 |
12.4 |
6.726 |
Standard MAP-Elites |
55.4 |
145.2 |
8.0 |
4.989 |
Direct n-gram sampling |
160.0 |
44.4 |
14.0 |
7.632 |
Gram-Elites produced the most playable proposals and filled more niches than standard variation. Direct sampling filled the most niches on this corpus, even though many of its sequences were unplayable. Proposal counts include repeated sequences.
Distribution-valued outcomes¶
The simulator varies outcome mean and spread independently across nine combinations. All runs use the same proposal operators, 160 candidates, 24 rollouts per candidate, and archives with nine slots. Reporting uses a common set of nine empirical distribution niches. Both methods reassess each elite on the same 96 held-out seeds per run. Reassigned elites compete for the best score per reporting niche.
Search descriptor |
Search rollouts |
Held-out rollouts |
Stable in own niche |
Held-out cells |
Held-out QD score |
|---|---|---|---|---|---|
Empirical distribution |
3,840 |
864 |
9.0 |
9.0 |
8.950 |
Sample mean |
3,840 |
864 |
2.6 |
4.2 |
3.900 |
Both methods filled their nine search slots. The held-out distribution audit shows how many different outcome patterns the resulting elites represent. The task deliberately includes patterns whose expectations coincide.