CPU pilots for portfolios, novelty–surprise search, and policy reuse¶
All comparisons use seeds 11, 23, and 47. The base runs used Python 3.14.4 with NumPy 2.5.5 and SciPy 1.18.1. Branch training used Python 3.12.14, Gymnasium 1.4.0, and PyTorch 2.15.0+cpu with one Torch thread. Tutorial · Portfolio and transfer records · Maze records · Branch records
python examples/portfolio_transfer.py --output build/portfolio-transfer/base.jsonl
python examples/archive_reuse.py surprise-hybrids --seeds 11 23 47 --output build/portfolio-transfer/maze.jsonl
python examples/portfolio_transfer.py branches --output build/portfolio-transfer/branches.jsonl
Near-optimal binary portfolios¶
Each of three problems chooses three items from seven with a shared conflict constraint. Item values are permuted per seed. Each portfolio contains three designs within four objective units of the best single design. Exhaustive enumeration computes the reference optimum and supplies the candidate set for the quality-ranked and farthest-first controls. The joint solver makes two calls per problem without using this enumerated set.
Portfolio |
Minimum Hamming distance |
Mean quality |
|---|---|---|
Joint MILP |
4 |
14.33 |
Highest quality |
2 |
17.00 |
Farthest-first from the best design |
2 |
16.33 |
The joint solver matched the exhaustive separation optimum of four in every problem. Highest quality returned stronger individual designs, as expected when it ignores pairwise distance.
Novelty and surprise on deceptive mazes¶
All searches spend 240 evaluations on each seed–maze pair. The three mazes have walls with different gate positions. A real vector encodes 40 attempted moves. Fitness is one minus normalized distance from the goal, and the final position fills a cell in the common 7-by-7 reporting grid. The table averages the nine pairs per method.
Search |
Cells occupied |
QD score |
Best fitness |
|---|---|---|---|
NSLC |
21.44 |
7.24 |
0.717 |
SS-LC |
19.89 |
6.58 |
0.694 |
NSS-LC, weighted |
21.11 |
6.99 |
0.694 |
NS-SS-LC, three objectives |
22.22 |
7.73 |
0.714 |
The three-objective variant had the highest mean coverage and QD score. NSLC had the highest mean best fitness. This comparison uses QDpy’s standard NSLC variation and the shared real-vector variation for all three surprise-based searches.
Reward transfer across a fixed environment¶
Two source policies each specialize in one reward feature. The five-state gate task gives different feature payoffs for the two actions at each gate, and either action moves to the next gate. All three methods face the same nine held-out mixtures per seed. The best-source baseline sees the true return of both source policies under each mixture. The oracle chooses the best action at every gate. Metrics are exact discounted returns from the finite model.
Selection |
Mean return |
Mean regret |
|---|---|---|
GPI |
5.288 |
0.000 |
Best single source policy |
5.240 |
0.048 |
Exact oracle |
5.288 |
0.000 |
GPI matched the oracle on this task, where action choice changes the reward and leaves the successor state fixed.
Actor–critic branches on velocity tracking¶
All searches spend 1,536 environment steps. The three branch runs each spend 1,020 on exploratory training and 516 on evaluation, and complete 43 candidate evaluations. PGA-MAP-Elites uses all 1,536 to evaluate 128 candidates and learns from those same transitions. Each reported elite is audited on three common resets lasting 12 steps each. Audit cells use mean velocity across those episodes. The audit QD score sums the best mean return in each occupied cell. Mean return averages the audited policies before resolving collisions.
Search |
Actor and critic optimizer steps |
Audit steps |
Audit cells |
Audit mean return |
Audit QD score |
Live branch sparsity |
|---|---|---|---|---|---|---|
SV-QD-RL |
1,037 |
132 |
3.67 |
9.68 |
35.96 |
43.6% |
Dense branches |
1,037 |
96 |
2.33 |
9.90 |
22.89 |
0.0% |
Shared critics |
1,037 |
132 |
2.67 |
9.72 |
27.20 |
38.8% |
PGA-MAP-Elites |
248 |
132 |
3.00 |
10.21 |
30.40 |
— |
SV-QD-RL retained more distinct audited behaviours and had the highest audit QD score in this small comparison. PGA-MAP-Elites had the highest mean return and spent fewer optimizer steps, including its separate gradient-offspring updates. Branch sparsity denotes inactive hidden neurons in the live training pool. These pilots use one inexpensive task and match real interactions, with the optimizer and evaluation costs reported separately.