SwarmEvolve: Latent Agent Swarms for Evolutionary Discovery and Optimization

Qile Jiang, George Em Karniadakis

arXiv:2611.08483 · 2026-11-08 공개 · arXiv · PDF

latent-space evolutionary-search llm-guided scientific-computing kv-caches mathematical-discovery program-search agent-swarms

Abstract

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.

한국어 요약

한 줄 요약

SwarmEvolve는 KV 캐시를 활용한 잠재 공간 내 대규모 에이전트 군집을 통해 60분 대비 3~8분 내 최고 성능을 달성하는 진화적 프로그램 탐색 프레임워크이다.

핵심 기여도

핵심 아이디어

SwarmEvolve는 기존 텍스트 기반 진화적 탐색의 느림과 비용 문제를 해결하기 위해, **잠재 공간 내 에이전트 군집**(swarm)을 도입한 새로운 프레임워크이다. 각 에이전트는 텍스트 디코딩 없이 40단계의 잠재 추론(latent reasoning)을 수행하며, **KV 캐시**(key-value cache)를 통해 정보를 교환한다. 이는 텍스트 생성 비용을 줄이고, **군집 내 아이디어의 다양성**(novelty filter)과 **자연스러운 크로스오버**(summarizer agent)를 가능하게 한다.

**Novelty filter**는 에이전트의 **히든 스테이트 벡터 간 코사인 거리**를 측정하여 가장 독창적인 아이디어만 유지함. **Summarizer agent**는 각 군집의 KV 캐시를 통합하여 새로운 프로그램을 생성함. 이는 잠재 공간 내 아이디어의 결합을 자연스럽게 수행하며, 텍스트 기반 크로스오버와는 달리 **추론 단계에서 직접적인 텍스트 생성이 필요하지 않다**는 점에서 차별화된다.

기술적 접근법

주요 결과

의의 및 한계

SwarmEvolve는 **저비용, 고성능, 대규모 탐색**을 동시에 달성한 진화적 프로그램 탐색 프레임워크로, 수학 및 과학 계산 분야에서 **새로운 알고리즘 발견**과 **정확도 향상**에 기여할 수 있다. 특히, **잠재 공간 내 커뮤니케이션**은 텍스트 생성 비용을 줄이며, **군집 기반 탐색**은 아이디어의 다양성과 결합을 자연스럽게 유도한다.

하지만, **모든 에이전트와 summarizer agent가 동일한 잠재 공간을 사용**하기 때문에, 복잡한 문제에서는 표현력의 한계가 있을 수 있다. 또한, **군집 내 크로스오버의 정확도**는 텍스트 기반 방법보다 낮을 수 있으며, **초기 탐색 단계에서의 다양성 유지**가 여전히 중요한 과제이다.

실용적 활용

SwarmEvolve는 **수학적 구조 발견**, **PDE 해법 개선**, **수치적 알고리즘 최적화** 등 과학 계산 분야에서 유용하게 활용될 수 있다. 특히, **고비용 시뮬레이션**이 필요한 문제에서는 초기 탐색 단계에서의 빠른 성능 향상이 중요하며, **단일 GPU에서 대규모 탐색**이 가능하므로 연구실 환경에서도 실용적이다.