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.

Continuing navigation

A bounded two-dimensional simulator has state-dependent drift and a circular safety region. Each method has a ceiling of 160 actual steps and reports into the same 49 displacement cells. The fixed baseline selects from nine hand-coded controls using a nominal dynamics model without drift. Episodic Dynamics-Aware QD resets between skills. The reset-free method uses 32 of its real steps for model warm-up. It keeps one simulator state throughout the run.

Method

Actual steps

Imagined steps

Resets after initialization

Unsafe steps

Recovery steps

Filled cells

QD score

Reset-Free QD

158.6

2,087.2

0

1.0

3.4

16.4

35.637

Fixed repertoire

160.0

0

0

0.0

0.0

2.8

5.828

Episodic Dynamics-Aware QD

160.0

2,048.0

39

1.0

0.0

11.0

25.171

Reset-Free QD filled more cells with no resets after initialization. It had five unsafe steps in one seed and zero in the other four. The last one to three steps went unused in three seeds because the remaining budget could not reserve another full skill. The fixed baseline’s analytic paths incur no learned-model calls. These scores summarize the real trajectories each method collected under its own start conditions. A transfer comparison would need a common held-out set of start states.