QDpy
Loading...
Searching...
No Matches
acdc.py File Reference

Coevolve specialist models and measured assessment tasks. More...

Go to the source code of this file.

Classes

class  qdpy.algorithms.acdc.ACDCTaskRequest
 Information for generating a verifiable task variant. More...
class  qdpy.algorithms.acdc.ACDCResult
 Model and task archives after a bounded AC/DC run. More...
class  qdpy.algorithms.acdc._Assessments

Namespaces

namespace  qdpy

Functions

 qdpy.algorithms.acdc.acdc (initial_models, initial_tasks, *, vary_model, propose_task, evaluate, task_descriptor, budget, rounds, model_capacity=8, offspring_size=8, active_task_capacity=16, task_period=2, task_proposals=4, task_novelty=.05, passing_score=.5, difficulty_target=.5, novelty_neighbors=3, selection="novelty", valid_model=None, valid_task=None, team_size=3, team_budget=0, seed=0)
 Evolve model skills and assess new tasks under exact pairwise call budgets.

Detailed Description

Coevolve specialist models and measured assessment tasks.

See also
https://openreview.net/pdf?id=efNINVs2So

Definition in file acdc.py.

Function Documentation

◆ acdc()

qdpy.algorithms.acdc.acdc ( initial_models,
initial_tasks,
* ,
vary_model,
propose_task,
evaluate,
task_descriptor,
budget,
rounds,
model_capacity = 8,
offspring_size = 8,
active_task_capacity = 16,
task_period = 2,
task_proposals = 4,
task_novelty = .05,
passing_score = .5,
difficulty_target = .5,
novelty_neighbors = 3,
selection = "novelty",
valid_model = None,
valid_task = None,
team_size = 3,
team_budget = 0,
seed = 0 )

Evolve model skills and assess new tasks under exact pairwise call budgets.

Parameters
initial_modelsOrdered, distinct immutable model payloads.
initial_tasksOrdered, distinct immutable seed assessment payloads.
vary_modelCallable (parents, rng), returning a new immutable model or None.
propose_taskOptional callable (ACDCTaskRequest, rng), returning a new task or None.
evaluateCallable (model, task), returning a deterministic score in [0, 1].
task_descriptorCallable (task) returning a fixed-width nonzero embedding.
budgetSearch assessment cap, including seed pairs and new task screening.
roundsMaximum model generations.
model_capacityNumber of active parent models.
offspring_sizeMaximum number of model proposals each generation.
active_task_capacityMaximum number of active assessment tasks.
task_periodGenerations between task proposal batches.
task_proposalsMaximum number of new task proposals each task generation.
task_noveltyMinimum cosine distance from every previous accepted task.
passing_scoreScore needed to solve a task, in (0, 1].
difficulty_targetPass rate used to request easier or harder variants.
novelty_neighborsMaximum number of fitter models used in skill novelty.
selection"novelty" for AC/DC or "quality" for mean-solved selection.
valid_modelOptional predicate to reject invalid models before measuring them.
valid_taskOptional predicate for task validation before assessment.
team_sizeMaximum number of deployable models selected for task coverage.
team_budgetSeparate cap on final missing historical assessments.
seedPrivate model and task seeds.
Returns
Active and historical archives, skill vectors, and separate assessment counts.
Select models for unique skills and keep novel, solvable assessments.

Measure every active model on new tasks before admitting them. Retain
the best model and rank the others by difficulty-weighted solved tasks
missed by fitter models. Task proposals receive the parent's pass rate
and direction. The active task panel rolls forward as novel tasks enter.

A proposal is measured only when its whole assessment panel fits the
search budget. Scores for identical pairs are reused across generations.
For final team selection, score the historical panel if its missing
pairs fit the separate team budget. Otherwise score coverage on the
fully observed active panel. Both stages use caller-owned evaluators.

Definition at line 148 of file acdc.py.