SwarmEvolve:用于进化发现与优化的潜在智能体集群
研究论文 · 2026/11/07
SwarmEvolve 是一个框架,让每轮数百个低成本智能体以群体形式在潜在空间中推理(无需解码为文本),并通过传递 KV 缓存共享信息。每个群体从不同角度研究问题,新颖性过滤器通过直接测量智能体隐藏状态向量之间的距离来保留最独特的想法,而交叉则通过汇总智能体接收所有群体成员的组合 KV 缓存自然发生。在 21 个数学发现和科学计算问题上,SwarmEvolve 获得最高平均分,并且仅需中位数 3 到 8 分钟即可达到其他最先进框架 60 分钟才能达到的最佳分数。在几个问题上,使用 Qwen3 8B 的 SwarmEvolve 改进了 AlphaEvolve 首次用前沿 LLM 找到的解。
该工作展示了潜在空间通信的智能体群体为科学问题程序搜索提供了一种快速、低成本的方法,在多个问题上超越或媲美使用前沿 LLM 的现有框架,且效率大幅提升,具有重要的实用价值。
LLM-guided evolutionary search uses AI agents to improve programs for mathematical and computational problems by iteratively refining solutions and combining high-scoring methods. However, the process is often slow because the LLM generates a long textual chain of thought for each round and must repeat this generation many times to maintain population diversity. We present SwarmEvolve, a framework in which hundreds of low-cost agents per round work in swarms, reason in latent space without decoding to text, and share information by passing KV caches. Each swarm studies the problem from a different angle. A novelty filter keeps the most distinct agent ideas by directly measuring the distances between the agents' hidden state vectors. Crossover of ideas happens naturally in latent space, as a summarizer agent receives the combined KV caches of all swarm members. On 21 problems in mathematical discovery and scientific computing, SwarmEvolve gets the highest average score and needs a median of only 3 to 8 minutes to reach the best scores that other state-of-the-art frameworks reach in 60 minutes. On several problems, SwarmEvolve with Qwen3 8B improves on the solutions that AlphaEvolve first found with frontier LLMs. Our work shows that agent swarms that communicate in latent space offer a fast, low-cost approach to program search for scientific problems.