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
2. Recommended Parameters
See params.yaml in this directory for the recommended parameter configuration.
What Happens During Evolution
- Database initialized with seed programs (or random generation)
- 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
- Islands evolve independently, periodically exchanging best programs
- 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
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