Skip to content
FunCoding

diverse-island-ga

Diverse Island Genetic Algorithm skill. USE WHEN the user explicitly requests Diverse Island GA / diversity-oriented island GA, or wants specialized island roles with adaptive migration and novelty preservation instead of a uniform island GA.

Star
727
License
BSD-3-Clause
Last commit
Nov 30, 2026

skills/algo-design/diverse-island-ga/SKILL.md

View on GitHub

Diverse Island GA Skill

Reference: LLM4AD_Next specialized island model. Extends IslandGA with specialized island roles (a continuous exploitation↔exploration spectrum), adaptive stagnation-aware migration, and novelty preservation.

1. Method Essence

Diverse IslandGA builds on the classic island model but removes the assumption that all islands are identical. Instead, it assigns each island a continuous strategy position along the exploration↔exploitation spectrum, and coordinates them through adaptive migration that fires only when an island stagnates. This keeps the population diverse and avoids the premature spread of a local optimum.

Core mechanisms:

ConceptRole
Island strategy spectrumisland_strategy_strength controls how much islands differ (experience-reuse → novelty exploration)
Adaptive migrationadaptive_migration receives migrants only after an island stagnates
Stagnation thresholdmigration_stagnation_threshold consecutive non-improving generations before migration is allowed
Novelty survivornovelty_survivor_ratio reserves non-elite survivor slots for code-dissimilar individuals
Exploration restartexploration_restart_ratio share of candidates built from scratch on the most exploratory island
Short-run guardshort_task_max_migrations caps migration events on short runs

See params.yaml in this directory for the recommended parameter configuration.

Note: This variant ships with a smaller out-of-box workload (max_generations=10, island_population_size=5) than the plain IslandGA, so it is safe to run without heavy tuning.

What Happens During Evolution

  1. Initialize num_islands islands, each at a distinct point on the strategy spectrum
  2. Each island evolves with its own exploration/exploitation bias and memory policy
  3. Every generation, elites are reevaluated at higher fidelity (elite_reevaluation_count)
  4. Migration is adaptive: an island may receive migrants only after migration_stagnation_threshold non-improving generations
  5. Novel survivors (low code similarity) are retained to preserve diversity
  6. On short runs, migration is capped by short_task_max_migrations

Common Pitfalls

  • Uniform islands (strength too low) → little diversity benefit; raise island_strategy_strength
  • Migration too aggressive → premature convergence; rely on adaptive stagnation gating
  • Exploration island flooding → tune exploration_restart_ratio and novelty ratio
  • Short runs over-migrating → keep short_task_max_migrations low (default 1)

4. Acceptance Criteria

  • Islands occupy distinct points on the exploration↔exploitation spectrum
  • Migration triggers only after stagnation (adaptive, not periodic-only)
  • Novelty survivors maintain inter-island diversity
  • Short runs respect the migration cap
  • Final best beats a uniform IslandGA baseline on the same problem

Similar Skills

ask-matt

MAmattpocock/skills337k4,978 new stars in the last 7 days

chief-of-staff

MAmattpocock/skills337k4,978 new stars in the last 7 days

setup-matt-pocock-skills

MAmattpocock/skills337k4,978 new stars in the last 7 days

subagent-driven-development

OBobra/superpowers331k4,772 new stars in the last 7 days

autonomous-loops

AFaffaan-m/ECC315k4,381 new stars in the last 7 days

autonomous-agent-harness

AFaffaan-m/ECC315k4,381 new stars in the last 7 days