Mix-ME for cooperative teams

Mix-ME stores one complete team per descriptor cell. Each role has its own block of parameters. During team crossover, a guide can come from one elite and a carrier from another. The evaluator measures the offspring’s performance as a team.

from qdpy.algorithms import MixME
from qdpy.containers import Grid
from qdpy.simple import run

archive = Grid(shape=(8,), fitness_domain=((0, 1),),
               features_domain=((0, 1),), fitness_weights=(1,))
search = MixME(archive, budget=48, role_sizes={"guide": 1, "carrier": 2})

def evaluate(genome):
    team = search.decode_team(genome)
    (turn,) = team["guide"]
    load, balance = team["carrier"]
    return (1.0 - (turn - balance)**2,), (load,)

result = run(search, evaluate, seed=29)
print(search.decode_team(result.archive.best))

Pass a sequence of lengths for unnamed roles. You can supply one role_bounds interval per block. Batches draw from the current elites and commit in proposal order. With mixing enabled, bounded polynomial mutation, Iso+LineDD, and team crossover each get one third of the variation proposals over complete cycles. Use team_crossover=False for the within-team baseline.

Local Pareto, team, feedback, graph, and Bayesian QD pilots compares both methods on a three-role task with a shared score and two team descriptors.

Ingvarsson et al., NeurIPS 2023 workshop.