Paper 1 of 5
SwarmEvolve: Latent Agent Swarms for Evolutionary Discovery and Optimization
Problem
LLM‑guided evolutionary search is slow because each round requires the LLM to generate a long textual chain of thought, and repeating this many times to keep population diversity consumes most of the GPU time.
Approach
SwarmEvolve forms multiple swarms of hundreds of low‑cost agents that reason in latent space by sharing KV caches instead of decoding text. A novelty filter directly measures distances between hidden‑state vectors to keep the most distinct ideas. Agents pass their KV caches to a summarizer agent, which naturally performs crossover by combining the caches. Each round evaluates many parent programs in parallel, and the summarizer writes the resulting program. The process repeats for several rounds, gradually improving solutions.
Result
SwarmEvolve achieves the highest average score across all three LLM sizes and reaches the best scores of the baselines in a median of only 3 to 8 minutes. It evaluates 5 to 13 times more programs per hour than text‑based frameworks, and with Qwen3 8B it outperforms all baselines even when they use Qwen3 32B‑FP8. On five scientific computing problems it solves all sparse linear systems to full accuracy, which no baseline ever achieves.
Why it matters
Researchers in program synthesis, mathematical discovery, and scientific computing should care because SwarmEvolve provides a fast, low‑cost way to search for high‑quality programs on a single GPU.
Method details
- Models used: Qwen3 8B, Qwen3 14B, Qwen3 32B‑FP8.
- Hardware: L40S GPU with 8 CPU cores, RTX PRO 6000 GPU with 8 CPU cores, H100 GPU with 8 CPU cores.
- Baselines compared: OpenEvolve, ShinkaEvolve, CodeEvolve.
- Evaluation: 21 benchmark problems from five domains, each run for 60 minutes on one GPU with 8 CPU cores evaluating 8 programs in parallel, three seeds per problem.
- Ablation: Replacing latent reasoning with text reasoning drops scores (Appendix A.1).
- Ablation: Scaling swarm size improves early performance (Appendix A.2).
Numbers
- average score, 0.804, SwarmEvolve vs OpenEvolve 0.693
- average score, 0.804, SwarmEvolve vs ShinkaEvolve 0.642
- average score, 0.804, SwarmEvolve vs CodeEvolve 0.700
- median time to reach baseline 60‑minute score, 4 to 8 minutes, Qwen3 8B
- median time to reach baseline 60‑minute score, 3 to 6 minutes, larger LLMs
- programs per hour, 5 to 13 times more, SwarmEvolve vs baselines
Limitations
SwarmEvolve requires all agents and the summarizer to share the same LLM, needs models with standard attention, and its KV‑cache memory grows linearly with the number of agents and layers.
SwarmEvolve evaluates 5 to 13 times more programs per hour than the baselinesFound in the source text, word for word.
Picked because: Presents SwarmEvolve, an open framework that uses LLM‑guided evolutionary search to automate program improvement, offering concrete tooling for LLM agents and verification.