Audit a noisy archive

A corrected archive answers a practical question. If you deploy the solutions from an occupied grid again, how many cells can you still cover and how good are those solutions? Search fitness can be optimistic because the search retains candidates with favorable measured outcomes.

Run a held-out audit

Start with a Grid or CVTGrid from a completed search. Pass a callable accepting an individual and a fresh rollout seed.

from qdpy.algorithms import reevaluate_archive

result = reevaluate_archive(
    grid, evaluate, samples=32, seed=42, estimator="mean",
)
print(result.corrected_qd_score, result.corrected_coverage)
print(result.cell_drift, result.rollout_cell_change)
print(result.rollouts, result.failed_rollouts)

The function reevaluates one representative from each occupied source cell, by default the best measured member. It computes a coordinate-wise mean or median, reassigns the representative using the resulting descriptor, and keeps the better estimate when two representatives land in the same cell. The returned grid uses the same geometry, including the original centroids for a CVT grid. It holds one representative per destination cell and leaves the source archive intact.

  • Corrected QD score sums normalized fitness of the corrected representatives. Set finite fitness bounds to get a normalized score.

  • Corrected coverage divides the number of corrected occupied cells by the number of cells in the geometry.

  • Cell drift is the fraction of source representatives whose aggregate descriptor changed cell. A descriptor outside the grid counts as a change.

  • Rollout cell change compares each successful individual rollout’s cell to the original cell. It can be high even when estimated mean descriptors stay in their original cells.

  • Rollouts and failed rollouts count attempted and malformed or failed evaluations. A cell with some successful rollouts uses those observations. A cell with zero successful rollouts contributes no corrected entry. Report the counts alongside the scores.

For a deep archive, representative="selector" uses the behavior of a cell’s deployment selector. It draws one member for every new rollout, using the default fitness-proportional selector or your callable selector(grid, members, rng). Its corrected entry records the combined behavior of that cell policy. Use the top-member audit when the endpoint is to deploy one particular genome per source cell.

The held-out rollout seeds come from a different RNG stream than QDpy’s uncertainty-aware search. Use a fresh audit seed if your search used an external evaluator seed scheme, and keep audit measurements out of method selection or tuning. A larger audit reduces Monte Carlo error at additional cost. The benchmark uses 32 audit rollouts per occupied cell. The evaluation methodology in Flageat and Cully uses 512 independent reevaluations and a median in its experiments. Uncertain Quality-Diversity.

Reproduce the implementation checks

The shared benchmark runs eleven methods on four noise settings using seeds 0 through 4. The budget is capped at 8,192 raw search rollouts per run, including 64 identical warmup genomes per seed. A generation can use up to 1,024 rollouts. Cases can run in separate processes.

python examples/uncertain_rastrigin.py --suite --workers 8 --output build/noisy-qd/run

The output directory records the protocol, software versions, source fingerprints, and one JSON line for each setting, including any failed case. Per-run statistics include actual and unused rollout counts, raw and corrected QD scores and coverage, cell drift, and elapsed search time. See Shared noisy Rastrigin validation for the validation results and protocol decisions.