Learned competition rules

Learned QD uses an attention model to decide which candidates survive. The model sees signed quality and measured descriptors from the combined parent and offspring population. It standardizes those coordinates across the population. Its survival scores leave the stored fitness and descriptors in their original units.

The example meta-trains a novelty selector using diagonal CMA from qdpy[cma]. Inference uses the base installation.

python -I examples/learned_qd.py --output-dir build/lqd
from qdpy.algorithms import LQDSelector, LearnedQD
from qdpy.simple import run

selector = LQDSelector.load("build/lqd/lqd-11.npz")
search = LearnedQD(selector, budget=128, dimension=3, population_size=16,
                   batch_size=8, seed=11, optimisation_task="maximisation")

def evaluate(genome):
    return (1 - (genome[0] - .6)**2,), tuple(genome[1:])

result = run(search, evaluate, seed=11)
print(result.evaluations, len(result.archive))

Use the same descriptor width as the checkpoint. The NPZ records only numeric settings and weights. The example trains its own one-block model on small analytic landscapes. It selects a checkpoint on separate validation tasks, then measures it on two held-out task families. These results characterize the compact training setup.

Faldor, Lange, and Cully, 2025.