跳到正文
FunCoding

funsearch

FunSearch (Program Search) method skill. USE WHEN the user explicitly requests FunSearch / Program Search, or wants search with a programs database that stores and samples from high-scoring programs.

Star
727
分类
数据
许可证
BSD-3-Clause
最近提交
2026年11月30日

skills/algo-design/funsearch/SKILL.md

在 GitHub 上查看

FunSearch Skill

Paper: Romera-Paredes et al., "Mathematical discoveries from program search with large language models", Nature 625 (2024).

1. Method Essence

FunSearch organizes search using a ProgramsDatabase: programs are stored and indexed by evaluation score, with sampling prioritizing high-score buckets for mutation. New programs are evaluated and stored by score, forming a "high-score priority, low-score elimination" evolution. It also uses an islands mechanism for diversity: multiple independent sub-populations evolve separately, with periodic exchange.

Core components:

  • Database: Archive of programs + scores, stratified by score (higher score = higher probability of being sampled as parent)
  • Sampler: Generates mutation prompts from high-score programs (not from empty prompts)
  • Evaluator: Independent evaluation, results written back to database

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

What Happens During Evolution

  1. Database initialized with seed programs (or random generation)
  2. Each generation:
    • Sample parent from high-score bucket
    • Generate N variants via LLM mutation
    • Evaluate variants independently
    • Store scored variants back to database
    • Optionally: eliminate low-score programs
  3. Islands evolve independently, periodically exchanging best programs
  4. Database naturally stratifies: top programs dominate sampling

Common Pitfalls

  • Database collapses (all programs similar) → increase island count or mutation diversity
  • Too aggressive elimination → lose useful building blocks; increase population_size
  • No improvement → check if sampling always picks the same parent; increase samples_per_prompt

4. Acceptance Criteria

  • Database stratification visible (programs in different score buckets)
  • High-score programs repeatedly used as mutation parents (exploitation)
  • Periodic sampling from lower buckets (exploration)
  • Clear elimination of consistently low-scoring programs
  • Final best program in top database bucket

相似的 Skill

精选

agentic-os

构建持久多智能体系统,无需外部数据库,用文件保存状态,定时执行任务。

AFaffaan-m/ECC315k近 7 天新增 3,503 个 star

health

GAgarrytan/gstack143k近 7 天新增 524 个 star

deprecation-and-migration

ADaddyosmani/agent-skills122k近 7 天新增 1,421 个 star

ccs-align

THthedotmack/claude-mem121k近 7 天新增 1,354 个 star

handoff

THthedotmack/claude-mem121k近 7 天新增 1,354 个 star

mem-search

THthedotmack/claude-mem121k近 7 天新增 1,354 个 star