Manuscript Offprint
arXiv:2611.08483SwarmEvolve: Latent Agent Swarms for Evolutionary Discovery and Optimization
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.
github.com/Qile-J/SwarmEvolve

Figure 1: SwarmEvolve (ours) compared with OpenEvolve, ShinkaEvolve, and CodeEvolve on 21 problems, with Qwen3 8B on one GPU for 60 minutes per run. Left: total number of programs generated. Middle: mean best score at 15 minutes. Right: median minutes to reach OpenEvolve's 60-minute score. SwarmEvolve has a higher throughput and better scores.
1 Introduction
Many problems in mathematics and scientific computing can be framed as a search for a good program. Examples include symbolic regression, optimizing constants in inequalities, and building robust solvers for differential equations. This search can be carried out through evolutionary computation, a method to iteratively improve candidate programs through variation, crossover, and selection [32, 39].
Recently, LLMs have been used as the mutation and crossover operators in such evolutionary processes [43, 49, 73]. These LLM-guided frameworks have made strong progress on many open problems. In particular, FunSearch found new cap set constructions [54], and AlphaEvolve found a more efficient algorithm for multiplying complex matrices [50]. Later work applied this approach to solve many more problems in mathematics and computer systems [24, 20, 12]. These frameworks differ mainly in how they explore. FunSearch evolves programs on separate islands, and AlphaEvolve and its open-source variants add a MAP-Elites archive to keep diverse programs [59, 1, 37]. To save LLM calls, some methods reject near-duplicate proposals, adaptively allocate the search budget, or evolve the search strategy itself [42, 10, 46]. Others guide exploration with better context, such as how past changes affected the score, related literature, simulated peer review, or a solver split into separate steps [34, 45, 78, 40].
Recent work also scales up the search. Some methods run many parallel trajectories [77] or train the LLM on each problem with reinforcement learning [79, 64, 70]. Others use more agents with different roles, such as an ensemble of frontier LLMs in AlphaEvolve, multi-agent debate, and coding agents that coordinate through shared memory or an orchestrator [35, 52, 69]. When agents build on one another's findings, they have produced new results on open problems [9, 7]. These works suggest that diverse proposals, cross-pollination of ideas, and iterative refinement are key to new discoveries on open scientific problems.
Yet in most of these frameworks, the search is slow and expensive. Each agent writes a long chain of thought in text. The growing solution archive, evaluator feedback, and text messages between agents make the LLM context very long. Scaling to many agents, larger models, or test-time training multiplies this cost. As a result, the search cannot run at the scale that many open problems need. We therefore ask:
Because latent reasoning and communication are cheap, SwarmEvolve runs hundreds of agents in each round of evolution. The agents form distinct swarms, and each swarm has its own focus, such as implementing a construction from the literature or using a textbook method. Inside a swarm, each agent reasons from its unique perspective for 40 latent steps. A novelty filter then keeps the agents in each swarm whose latent reasoning trajectories are farthest apart in cosine distance. Finally, each swarm's summarizer agent reads the KV caches of the kept agents and writes one new program.
Compared with existing frameworks, SwarmEvolve has three advantages:
-
Greater diversity. While existing methods generate one response at a time or run a small team of agents, SwarmEvolve runs 450 latent agents per round, each with a different specialization, parent program, and way of thinking, and so samples far more diverse proposals.
-
Built-in crossover. SwarmEvolve recombines ideas directly in latent space. A summarizer agent reads the KV caches of agents that studied different parent programs and writes one program that combines their ideas.
-
Higher throughput. Since agents do not decode or encode text between steps, SwarmEvolve evaluates 5 to 13 times more programs per hour than existing SOTA frameworks and reaches their 60-minute scores in a median of 3 to 8 minutes.
We compare SwarmEvolve with OpenEvolve, ShinkaEvolve, and CodeEvolve on 21 problems from mathematical discovery and scientific computing. Each framework runs with Qwen3 8B, 14B, and 32B-FP8 [75] for 60 minutes on one GPU (Figure 1). SwarmEvolve gets the highest average score with all three models. With Qwen3 8B, it scores higher than all three baselines with Qwen3 32B-FP8. After only 15 minutes, it already scores higher than the 60-minute averages of all baselines with every model. On three problems, SwarmEvolve with a frozen Qwen3 8B also improves on the constructions that AlphaEvolve originally found with frontier Gemini models. These results suggest that swarms of low-cost latent agents are a fast and scalable way to use AI for open mathematical and scientific discovery.
2 Preliminaries
In this section, we introduce the preliminary setup and notations for our method.
2.1 LLMs and the KV cache
We use decoder-only transformer LLMs [68], which embed the input token at position as a vector , where is the hidden dimension, and pass the sequence through transformer layers. The output of the last layer at position is the last hidden state . The LLM computes the distribution of the next token from .
Inside each layer, the query of position attends to the keys and values of all positions . Because the keys and values of a position depend only on the tokens up to that position, the LLM stores them in a KV cache , where and stack the keys and values of all positions in layer . Each new token then costs one forward pass of a single position, which attends to the KV cache and appends its own keys and values to it. The KV cache of a shared prefix, such as a problem statement, is usually computed once and reused by every sequence that continues it for efficiency.
The Qwen3 models that we use encode positions with rotary position embeddings (RoPE) [63, 75]. RoPE multiplies each query and key at position by a rotation matrix whose angles grow linearly with , so the attention score depends only on the offset between the two positions:
Moving a block of the KV cache from positions 0, 1, 2, … to positions therefore requires multiplying each cached key by , since the values carry no positional information.
2.2 Latent reasoning
LLMs usually reason by decoding a chain of thought in text [71, 38]. In latent reasoning, the LLM instead feeds the last hidden state back as the next input embedding , so it reasons in its continuous embedding space without sampling tokens [29, 80, 83].
LatentMAS applies latent reasoning to LLM agents without training [85]. After an agent reads its input, each latent reasoning step maps the last hidden state directly to the next input embedding . This map has two parts. First, an alignment matrix maps into the input embedding space. Second, the result is rescaled to norm , where is the mean norm of the input token embeddings over the vocabulary. The matrix is the ridge regression solution, with regularization weight , that maps the output embedding of each token to its input embedding:
where are respectively the input and output embedding matrices and is the vocabulary size. The agent takes a fixed number of latent reasoning steps given by Equation 2 and decodes no text. Each latent reasoning step adds one position to the KV cache.
Latent swarms 10 swarms × 45 latent agents

Figure 2: Workflow of SwarmEvolve. In each round, SwarmEvolve launches 10 swarms of 45 latent agents. Each swarm draws parent programs from the archive and gets a focus prompt to refine, hybridize, explore, or start fresh. In each swarm, the agents take 40 latent reasoning steps, a novelty filter removes the 15 most similar agents (hollow circles), and the summarizer reads the KV caches of the rest to write one new program. The new programs are evaluated and added to the archive. A parameter tuning agent tunes the hyperparameters of the best program.

Figure 3: Latent reasoning and communication in a swarm. Each latent agent reasons recursively in the embedding space without decoding to text. Its latent reasoning steps are stored as KV cache. The summarizer then reads the concatenated KV caches from all agents and writes a new program in text.
2.3 Latent communication
LatentMAS agents communicate by passing KV caches instead of text [85]. In the standard hierarchical setting, agents, usually with different specializations, each take their own latent reasoning steps. A summarizer agent then writes the final answer. Let and be the keys and values of agent in layer , for . Let and be the keys and values of the summarizer's own prompt in layer . The KV cache of the summarizer concatenates them along the sequence dimension:
for each layer .
(3)
The summarizer then decodes the answer as text, attending to both its own inputs and the latent reasoning steps of all agents. When the agents run in parallel, the KV cache of each agent starts at position 0. We therefore use the rotation in Equation 1 to move each cache to its offset in the concatenation.
3 SwarmEvolve
SwarmEvolve is an evolutionary search framework that runs latent-reasoning agent swarms to improve programs over many rounds. It keeps an archive of all candidate programs, together with their scores and evaluation feedback. In each round, it selects parent programs from the archive for refinement and crossover. The search requires an initial program, which is usually a simple baseline solution. As illustrated in Figure 2, each round consists of the following steps.
Form swarms. To start a round, SwarmEvolve forms 10 swarms of 45 latent agents each. All agents in a swarm share one main focus. Each agent receives a distinct prompt, which combines one of five phrasings of this focus with one of nine ways of thinking, such as reasoning from first principles or reconsidering assumptions (Supplementary Table 4). Each swarm also receives a set of parent programs, which are assigned to its agents in turn so that each agent reads exactly one program. The 10 swarms are of four types:
-
Four refinement swarms each receive one of the two best programs in the archive, with two swarms per program. Each swarm takes the main focus used least often so far for its program, such as its mathematical formulation or its use of the time budget. Their goal is to improve the best programs.
-
Three hybridization swarms each receive five programs drawn at random from the ten best, so nine agents read each program. Their goal is to combine the strongest ideas into one new program.
-
Two exploration swarms each receive four programs drawn at random from the entire archive. Nine agents read each program, and the other nine agents read only the problem statement with no parent program. Their goal is to explore less considered directions.
-
One fresh-start swarm receives only the initial program. Its goal is to find a new approach that differs from existing ones.
Reason in latent space. Each latent agent reads the problem statement, its focus prompt, and its assigned parent program with the program's evaluation results. It then takes 40 latent reasoning steps. All 450 agents run in one batch. Agents that read the same program attend to one shared copy of its KV cache through paged attention [41].
Filter for novelty. In each swarm, the novelty filter keeps the 30 latent agents whose reasoning differs the most and discards the other 15. Let be the last hidden state of agent at latent reasoning step . Each agent is represented by its mean hidden state over the 40 steps,
Then, each agent's mean hidden state is centered on the swarm mean and normalized to a unit vector . The kept set starts with the agent closest to . Greedy farthest-point selection [26] in cosine distance then adds one agent at a time, selecting
until holds 30 agents.
Transfer KV caches. Each summarizer reads the reasoning of its 30 kept agents through one KV cache (Figure 3). In each layer , this KV cache is the concatenation
(6) where and are the keys and values of the problem statement. For , and are the keys and values of the focus prompt and 40 latent reasoning steps of the -th kept agent. For , and are the keys and values of the -th parent program of the swarm. and are the keys and values of the summarizer instruction. Before the concatenation, each latent agent's key is rotated to (Equation 1), where is the position of its block in . The values carry no positional information and are concatenated unchanged.
Write programs. After receiving the KV cache, the summarizer synthesizes and decodes the latent reasoning traces of its agents. The summarizer outputs a short description of its direction and one complete program required to solve the problem.
Tune parameters. Every round, a parameter tuning agent reads the best program, its evaluation results, and a list of all numeric parameters of the program. It then proposes a single new value for one of the parameters to improve the program. SwarmEvolve evaluates up to 8 such one-number edits per round.
Evaluate. After new programs are generated, the framework discards programs that duplicate an earlier one, checks the syntax, and automatically adds missing imports of standard package names. The deterministic evaluator then scores each new program on a CPU core. When the evaluator finishes, the scored programs enter the archive with their scores, logs, and error messages.
SwarmEvolve iterates these steps for the time budget of the run. The best-scoring program in the archive at the end of the run is returned as the final solution.
4 Experiments
We compare SwarmEvolve with three state-of-the-art frameworks: OpenEvolve [59], ShinkaEvolve [42], and CodeEvolve [1] on 21 problems from five domains (Appendix D). Sixteen of these problems, in packing, geometry, analysis, and combinatorics, come from Appendix B of AlphaEvolve [50]. For these problems, we use the same problem statements, initial programs, and evaluators from OpenEvolve. The score of each problem is its objective value divided by that of the construction published by AlphaEvolve, so a score above 1 improves on AlphaEvolve.
We also design five scientific computing problems on sparse linear systems, eigenvalues of non-normal matrices, and the Burgers, convection-diffusion, and Helmholtz equations, whose score is the number of correct digits relative to a high-fidelity ground truth, averaged over challenging test cases with various parameters or matrices. Problem details are given in Appendix D.
Each framework is given 60 minutes on one GPU with 8 CPU cores that evaluate 8 programs in parallel. The three baselines keep their default configurations, let the model reason in text before it answers, and serve it with vLLM [41] for fast inference. Every framework runs three seeds on every problem with each of Qwen3 8B, 14B, and 32B-FP8.
4.1 Results
As shown in Table 1, SwarmEvolve achieves the highest average score with all three LLMs. It also achieves the best score on most individual problems. SwarmEvolve's average score with Qwen3 8B outperforms all three baselines running Qwen3 32B-FP8. With Qwen3 32B-FP8, SwarmEvolve solves all five sparse linear systems to full accuracy, which no baseline run ever achieves. In addition to higher scores, SwarmEvolve is also superior in the following ways:
Table 1: Best score within 60 minutes, averaged over three seeds (scores defined in Section 4 and Appendix D). For each model, bold marks the best score and underline marks the second best. SwarmEvolve (ours) has the highest average score with every model.
| Group | Problem | Qwen3 8B @ 60 min1× L40S GPU, 8 CPU cores | Qwen3 14B @ 60 min1× RTX PRO 6000 GPU, 8 CPU cores | Qwen3 32B-FP8 @ 60 min1× H100 GPU, 8 CPU cores | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Ours | Open-Evolve | Shinka-Evolve | Code-Evolve | Ours | Open-Evolve | Shinka-Evolve | Code-Evolve | Ours | Open-Evolve | Shinka-Evolve | Code-Evolve | ||
| Packing | Circles in a square | 0.998 | 0.877 | 0.876 | 0.990 | 0.999 | 0.868 | 0.996 | 0.991 | 0.997 | 0.915 | 0.987 | 0.992 |
| Circles in a rectangle | 0.888 | 0.969 | 0.958 | 0.987 | 0.976 | 0.956 | 0.954 | 0.992 | 1.000 | 0.960 | 0.954 | 0.984 | |
| Hexagons, n = 11 | 0.627 | 0.546 | 0.491 | 0.491 | 0.771 | 0.688 | 0.545 | 0.540 | 0.874 | 0.780 | 0.697 | 0.491 | |
| Hexagons, n = 12 | 0.707 | 0.593 | 0.546 | 0.493 | 0.829 | 0.721 | 0.648 | 0.595 | 0.650 | 0.786 | 0.521 | 0.493 | |
| Geometry | Heilbronn, triangle | 0.558 | 0.050 | 0.418 | 0.514 | 0.710 | 0.152 | 0.172 | 0.591 | 0.831 | 0.058 | 0.473 | 0.513 |
| Heilbronn, convex, n = 13 | 0.724 | 0.601 | 0.656 | 0.610 | 0.739 | 0.617 | 0.660 | 0.641 | 0.878 | 0.570 | 0.704 | 0.679 | |
| Heilbronn, convex, n = 14 | 0.807 | 0.421 | 0.342 | 0.487 | 0.769 | 0.638 | 0.659 | 0.555 | 0.780 | 0.654 | 0.692 | 0.638 | |
| Distance ratio, plane | 0.994 | 0.716 | 0.876 | 0.887 | 1.000 | 0.716 | 0.907 | 0.842 | 0.999 | 0.716 | 0.848 | 0.735 | |
| Distance ratio, space | 0.994 | 0.817 | 0.890 | 0.913 | 0.999 | 0.880 | 0.903 | 0.924 | 0.999 | 0.897 | 0.915 | 0.887 | |
| Analysis | Autocorrelation I | 0.995 | 0.993 | 0.992 | 0.992 | 0.994 | 0.993 | 0.993 | 0.992 | 0.995 | 0.993 | 0.993 | 0.992 |
| Autocorrelation II | 1.021 | 1.006 | 0.994 | 1.003 | 1.032 | 1.013 | 1.004 | 0.994 | 1.016 | 0.985 | 0.992 | 0.985 | |
| Autocorrelation III | 1.005 | 0.779 | 0.979 | 0.991 | 1.005 | 0.988 | 0.998 | 0.988 | 1.005 | 0.998 | 0.997 | 0.991 | |
| Uncertainty | 0.911 | 0.899 | 0.000 | 0.780 | 0.912 | 0.899 | 0.000 | 0.889 | 0.906 | 0.911 | 0.000 | 0.895 | |
| Combinatorics | Erdős overlap | 0.999 | 0.998 | 0.997 | 0.961 | 1.000 | 1.000 | 0.999 | 0.997 | 0.999 | 0.999 | 0.999 | 0.998 |
| Sums and differences | 0.957 | 0.939 | 0.000 | 0.923 | 0.958 | 0.929 | 0.299 | 0.914 | 0.964 | 0.932 | 0.580 | 0.945 | |
| Kissing number, d = 11 | 0.309 | 0.481 | 0.508 | 0.371 | 0.570 | 0.782 | 0.617 | 0.371 | 0.709 | 0.753 | 0.615 | 0.319 | |
| Scientific computing | Sparse linear systems | 0.933 | 0.648 | 0.695 | 0.420 | 0.867 | 0.881 | 0.594 | 0.664 | 1.000 | 0.814 | 0.903 | 0.800 |
| Eigenvalues | 0.700 | 0.723 | 0.723 | 0.723 | 0.723 | 0.723 | 0.723 | 0.723 | 0.776 | 0.849 | 0.804 | 0.729 | |
| Burgers equation | 0.741 | 0.661 | 0.682 | 0.568 | 0.715 | 0.716 | 0.724 | 0.641 | 0.833 | 0.750 | 0.792 | 0.662 | |
| Convection-diffusion | 0.494 | 0.479 | 0.420 | 0.269 | 0.502 | 0.542 | 0.514 | 0.287 | 0.520 | 0.500 | 0.447 | 0.277 | |
| Helmholtz equation | 0.529 | 0.346 | 0.447 | 0.323 | 0.517 | 0.496 | 0.486 | 0.397 | 0.515 | 0.430 | 0.487 | 0.348 | |
| Average | 0.804 | 0.693 | 0.642 | 0.700 | 0.837 | 0.771 | 0.686 | 0.739 | 0.869 | 0.774 | 0.733 | 0.731 | |
More programs per hour. SwarmEvolve evaluates 5 to 13 times more programs per hour than the baselines (Figure 1, left). This difference comes from how the frameworks spend GPU time. The baselines spend most of it on text reasoning, which takes 20 to 35 seconds per program. In contrast, the 450 latent agents of one round take only a few seconds in total. The novelty filter of SwarmEvolve also saves time, because it uses the hidden states of the agents directly. ShinkaEvolve instead needs an external embedding model and an LLM judge to reject similar proposals. Supplementary Table 2 gives a detailed time breakdown.
Faster to the same score. SwarmEvolve reaches the 60-minute scores of the baselines early in its run (Figure 4). The median time is 4 to 8 minutes with Qwen3 8B and 3 to 6 minutes with the larger LLMs. Each round of SwarmEvolve takes about one minute and explores several parent programs at once. As a result, the first few rounds already cover many directions, so the best program is discovered sooner.
Beyond AlphaEvolve with an 8B model. With Qwen3 8B, SwarmEvolve surpasses AlphaEvolve's published constructions on three problems, compared with one for each baseline (Supplementary Table 5). Its packing of 26 circles in a square reaches the best known sum of radii, 2.635983 [62], and its step functions improve AlphaEvolve's bounds for the second and third autocorrelation inequalities. While AlphaEvolve relies on frontier LLMs, SwarmEvolve achieves these results with swarms of small open-weight LLMs.
Together, these results show that SwarmEvolve is a faster and more efficient framework for evolutionary search, which finds better programs than text-based frameworks even with a small open-weight LLM.

Figure 4: Minutes that SwarmEvolve needs to reach the best score that OpenEvolve (left), ShinkaEvolve (middle), and CodeEvolve (right) reach in 60 minutes. All frameworks use Qwen3 8B and run for three seeds. Hollow circles mark problems where SwarmEvolve does not reach the target within 60 minutes. On most problems, SwarmEvolve reaches in a few minutes what the baselines reach in one hour.
4.2 Latent space analysis
Latent agents make the reasoning of a swarm directly measurable and fast to filter numerically. In this section, we analyze how the reasoning trajectories of the swarms are spread across latent space.
Figure 5 shows one round of a circle packing problem with Qwen3 8B. It projects the centered and normalized mean hidden states of the latent agents onto their first two principal components.
On the left panel, agents of the same swarm lie close together and apart from other swarms, so each focus clearly moves its swarm to its own region of latent space. In this example, the first principal component roughly orders the swarms by role, from the refinement swarms to the exploration and fresh-start swarms.
On the right panel, within a swarm, the agents form clusters by the parent program they read. The novelty filter keeps agents from every cluster and covers the swarm roughly evenly. The focus prompts and the novelty filter therefore give each round proposals that differ both across swarms and within each swarm, leading to diversity in the search process.

Figure 5: Mean hidden states of the latent agents for a circle packing problem with Qwen3 8B, projected onto their first two principal components: the 450 latent agents of all 10 swarms with the swarm centers (left), and the 45 latent agents of one exploration-focused swarm, each reading different parent programs (right). The swarms occupy distinct regions, and the novelty filter keeps latent agents from every cluster.
5 Discussion
SwarmEvolve shows that evolutionary search can be fast, cheap, and strong at the same time. Latent agents skip the slow step of writing text, so one GPU can run hundreds of agents in each round. With the same model and the same time budget, SwarmEvolve evaluates many more programs than text-based frameworks, reaches their final scores early in the run, and ends with higher scores. Even with a small open-weight LLM, it improves on several constructions that AlphaEvolve found with frontier LLMs.
Latent reasoning is a key part of this gain. When we replace the latent reasoning steps with text reasoning, the scores drop (Appendix A.1), even when the agents are given a higher text token budget than the latent token budget. Longer text makes each round slower, so the search evaluates fewer programs in the same time and ends with lower scores. Latent reasoning gives each agent enough room to think while keeping each round short.
Scaling the number of agents in a swarm also helps to improve the framework performance early in the search (Appendix A.2). Since a larger swarm studies each parent program from more perspectives, each round explores more of the design space initially. This early advantage matters most when each evaluation is expensive, such as a large simulation in science or engineering, where only a few programs can be evaluated. Later in the search, swarms of different sizes reach similar scores, while scaling to larger, more intelligent LLMs still raises the final score consistently.
More broadly, SwarmEvolve makes large-scale search for new programs affordable on a single GPU. This opens the method to many problems in mathematics and scientific computing. In mathematics, swarms can search for new constructions and proof strategies. In computing, they can improve algorithms for speed and accuracy. In scientific computing, they can write better PDE solvers, discover formulas through symbolic regression, and design more efficient numerical methods. Many of these problems have clear evaluators or desired outcomes, such as a higher accuracy or faster speed, which is what evolutionary search needs.
SwarmEvolve has three limitations. First, all latent agents and summarizers share one LLM, because a summarizer can read the KV caches of its agents directly only when they come from the same model.
Learned translations between the KV caches of different models [23] could extend SwarmEvolve to swarms whose agents run different models. Second, our implementation requires LLMs with standard attention. Linear-attention, state-space, and hybrid models compress the past into a fixed-size state [36, 27, 76], so latent communication between them needs a way to merge the states of several agents. Third, the memory for the KV caches of a round grows linearly with the number of agents, the number of latent reasoning steps, and the number of layers, so the largest LLM we test needs a large GPU. Compressed latent messages [11] and rounds spread over several GPUs could let SwarmEvolve scale to larger models and longer runs.
6 Summary
We introduce SwarmEvolve, an evolutionary search framework in which swarms of low-cost agents reason in latent space and communicate by passing KV caches. This design lets one GPU run hundreds of agents in each round, so the search explores much more of the design space in the same time. On problems from mathematical discovery and scientific computing, SwarmEvolve finds better programs faster than text-based frameworks, and with a small open-weight LLM it improves on several results that AlphaEvolve found with frontier LLMs. These results show that large-scale search for new mathematical constructions, algorithms, and scientific computing methods does not necessarily need frontier models or large compute budgets. Swarms of small latent agents can make this kind of AI-driven scientific discovery fast, cheap, capable, and widely available.
Acknowledgments
This work was supported by the Defense Advanced Research Projects Agency (DARPA) MATHBAC grant HR0011-26-3-E152.
References
[1] Henrique Assumpção, Diego Ferreira, Leandro Campos, and Fabricio Murai. "CodeEvolve: an open source evolutionary coding agent for algorithmic discovery and optimization". In: arXiv preprint arXiv:2510.14150 (2025).
[2] Ivo M. Babuška and Stefan A. Sauter. "Is the pollution effect of the FEM avoidable for the Helmholtz equation considering high wave numbers?" In: SIAM Journal on Numerical Analysis 34.6 (1997), pp. 2392–2423.
[3] C. Bradford Barber, David P. Dobkin, and Hannu Huhdanpaa. "The quickhull algorithm for convex hulls". In: ACM Transactions on Mathematical Software 22.4 (1996), pp. 469–483.
[4] Richard H. Bartels and G. W. Stewart. "Solution of the matrix equation ". In: Communications of the ACM 15.9 (1972), pp. 820–826.
[5] Paul Bateman and Paul Erdős. "Geometrical extrema suggested by a lemma of Besicovitch". In: The American Mathematical Monthly 58.5 (1951), pp. 306–314.
[6] Timo Berthold, Dominik Kamp, Gioni Mexi, Sebastian Pokutta, and Imre Pólik. "Global Optimization for Combinatorial Geometry Problems Revisited in the Era of LLMs". In: arXiv preprint arXiv:2601.05943 (2026).
[7] Federico Bianchi, Yongchan Kwon, Aneesh Pappu, and James Zou. "Harnessing the Collective Intelligence of AI Agents in the Wild for New Discoveries". In: arXiv preprint arXiv:2606.10402 (2026).
[8] Jean Bourgain, Laurent Clozel, and Jean-Pierre Kahane. "Principe d'Heisenberg et fonctions positives". In: Annales de l'Institut Fourier 60.4 (2010), pp. 1215–1232.
[9] Yang Cai, Vineet Gupta, Yanchen Jiang, Christopher Liaw, Aranyak Mehta, Grigoris Velegkas, and Di Wang. "Cogentic: Multi-Agent Orchestration for Automated Proof Discovery". In: arXiv preprint arXiv:2609.40324 (2026).
[10] Mert Cemri, Shubham Agrawal, Akshat Gupta, Shu Liu, Audrey Cheng, Qiuyang Mang, Ashwin Naren, Lutfi Eren Erdogan, Koushik Sen, Matei Zaharia, Alex Dimakis, and Ion Stoica. "AdaEvolve: Adaptive LLM Driven Zeroth-Order Optimization". In: arXiv preprint arXiv:2602.20133 (2026).
[11] Xiaoyu Chen, Fengge Wu, Junsuo Zhao, and Yun Fan. "CondenseFlow: Scalable Latent Space Collaboration via Semantic Compression for Multi-Agent Systems". In: Findings of the Association for Computational Linguistics: ACL 2026. 2026, pp. 13694–13712.
[12] Audrey Cheng, Shu Liu, Melissa Pan, Zhifei Li, Bowen Wang, Alexander Krentsel, Tian Xia, Mert Cemri, Jongseok Park, Shuo Yang, Jeff Chen, Lakshya Agrawal, Aditya Desai, Jiarong Xing, Koushik Sen, Matei Zaharia, and Ion Stoica. "Barbarians at the Gate: How AI is Upending Systems Research". In: arXiv preprint arXiv:2510.06189 (2025).
[13] Stephen Chung, Wenyu Du, and William J. Wesley. "Autonomous Mathematical Discovery in an Open-World Multi-Agent Environment". In: arXiv preprint arXiv:2608.23691 (2026).
[14] Alexander Cloninger and Stefan Steinerberger. "On suprema of autoconvolutions with an application to Sidon sets". In: Proceedings of the American Mathematical Society 145.8 (2017), pp. 3191–3200.
[15] Julian D. Cole. "On a quasi-linear parabolic equation occurring in aerodynamics". In: Quarterly of Applied Mathematics 9.3 (1951), pp. 225–236.
[16] Francesc Comellas and J. Luis A. Yebra. "New lower bounds for Heilbronn numbers". In: The Electronic Journal of Combinatorics 9 (2002), R6.
[17] John H. Conway and Neil J. A. Sloane. Sphere Packings, Lattices and Groups. 3rd ed. Springer, 1999.
[18] Tri Dao. "FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning". In: International Conference on Learning Representations. 2024.
[19] Zhuoyun Du, Runze Wang, Huiyu Bai, Zouying Cao, Xiaoyong Zhu, Yu Cheng, Bo Zheng, Wei Chen, and Haochao Ying. "Enabling Agents to Communicate Entirely in Latent Space". In: Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2026, pp. 27106–27129.
[20] Emilien Dupont, Marvin Eisenberger, Borislav Kozlovskii, Abbas Mehrabian, Francisco J. R. Ruiz, Abigail See, Renfei Zhou, Josh Alman, Virginia Vassilevska Williams, and Matej Balog. "Improving the matrix multiplication exponent with modern optimization and AlphaEvolve". In: arXiv preprint arXiv:2608.16884 (2026).
[21] EinsteinArena. Leaderboard, accessed November 5, 2026. 2026. URL: https://einsteinarena.com.
[22] Erich Friedman. Hexagons in hexagons. Erich's Packing Center, accessed November 5, 2026. 2026. URL: https://erich-friedman.github.io/packing/hexinhex/.
[23] Tianyu Fu, Zihan Min, Hanling Zhang, Jichao Yan, Guohao Dai, Wanli Ouyang, and Yu Wang. "Cache-to-Cache: Direct Semantic Communication Between Large Language Models". In: International Conference on Learning Representations. 2026.
[24] Bogdan Georgiev, Javier Gómez-Serrano, Terence Tao, and Adam Zsolt Wagner. "Mathematical discovery and exploration can be done at scale". In: Proceedings of the National Academy of Sciences 123.40 (2026), e2536158123.
[25] Felipe Gonçalves, Diogo Oliveira e Silva, and Stefan Steinerberger. "Hermite polynomials, linear flows on the torus, and an uncertainty principle for roots". In: Journal of Mathematical Analysis and Applications 451.2 (2017), pp. 678–711.
[26] Teofilo F. Gonzalez. "Clustering to minimize the maximum intercluster distance". In: Theoretical Computer Science 38 (1985), pp. 293–306.
[27] Albert Gu and Tri Dao. "Mamba: Linear-Time Sequence Modeling with Selective State Spaces". In: Conference on Language Modeling. 2024.
[28] Katalin Gyarmati, François Hennecart, and Imre Z. Ruzsa. "Sums and differences of finite sets". In: Functiones et Approximatio Commentarii Mathematici 37.1 (2007), pp. 175–186.
[29] Shibo Hao, Sainbayar Sukhbaatar, Dijia Su, Xian Li, Zhiting Hu, Jason Weston, and Yuandong Tian. "Training Large Language Models to Reason in a Continuous Latent Space". In: Conference on Language Modeling. 2025.
[30] Jan Kristian Haugland. "The minimum overlap problem revisited". In: arXiv preprint arXiv:1609.08000 (2016).
[31] Heilbronn problem records. Accessed November 5, 2026. 2026. URL: https://math.tejstead.com/heilbronn/.
[32] John H. Holland. Adaptation in Natural and Artificial Systems. University of Michigan Press, 1975.
[33] Eberhard Hopf. "The partial differential equation ". In: Communications on Pure and Applied Mathematics 3.3 (1950), pp. 201–230.
[34] Jiachen Jiang, Tianyu Ding, and Zhihui Zhu. "DeltaEvolve: Accelerating Scientific Discovery through Momentum-Driven Evolution". In: International Conference on Machine Learning. 2026.
[35] Qile Jiang and George Karniadakis. "AgenticSciML: Collaborative Multi-Agent Systems for Emergent Discovery in Scientific Machine Learning". In: arXiv preprint arXiv:2511.07262 (2025).
[36] Angelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, and François Fleuret. "Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention". In: International Conference on Machine Learning. 2020, pp. 5156–5165.
[37] Valentin Khrulkov, Andrey V. Galichin, Denis Bashkirov, Dmitry Vinichenko, Oleg Travkin, Roman Alferov, Andrey Kuznetsov, and Ivan Oseledets. "GigaEvo: An Open Source Optimization Framework Powered By LLMs And Evolution Algorithms". In: arXiv preprint arXiv:2511.17592 (2025).
[38] Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. "Large Language Models are Zero-Shot Reasoners". In: Advances in Neural Information Processing Systems. 2022.
[39] John R. Koza. Genetic Programming: On the Programming of Computers by Means of Natural Selection. MIT Press, 1992.
[40] Alexey Kravatskiy, Valentin Khrulkov, and Ivan Oseledets. "ImprovEvolve: Basin-Hopping Meets LLM-Guided Evolutionary Search". In: arXiv preprint arXiv:2602.10233 (2026).
[41] Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph E. Gonzalez, Hao Zhang, and Ion Stoica. "Efficient Memory Management for Large Language Model Serving with PagedAttention". In: Proceedings of the 29th Symposium on Operating Systems Principles. 2023, pp. 611–626.
[42] Robert Tjarko Lange, Yuki Imajuku, and Edoardo Cetin. "ShinkaEvolve: Towards Open-Ended and Sample-Efficient Program Evolution". In: International Conference on Learning Representations. 2026.
[43] Joel Lehman, Jonathan Gordon, Shawn Jain, Kamal Ndousse, Cathy Yeh, and Kenneth O. Stanley. "Evolution Through Large Models". In: Handbook of Evolutionary Machine Learning. Springer, 2024, pp. 331–366.
[44] Yaniv Leviathan, Matan Kalman, and Yossi Matias. "Fast Inference from Transformers via Speculative Decoding". In: International Conference on Machine Learning. 2023, pp. 19274–19286.
[45] Gang Liu, Yihan Zhu, Jie Chen, and Meng Jiang. "Scientific Algorithm Discovery by Augmenting AlphaEvolve with Deep Research". In: arXiv preprint arXiv:2510.06056 (2025).
[46] Shu Liu, Shubham Agarwal, Monishwaran Maheswaran, Mert Cemri, Zhifei Li, Qiuyang Mang, Ashwin Naren, Ethan Boneh, Audrey Cheng, Melissa Z. Pan, Alexander Du, Kurt Keutzer, Alvin Cheung, Alexandros G. Dimakis, Koushik Sen, Matei Zaharia, and Ion Stoica. "EvoX: Meta-Evolution for Automated Discovery". In: arXiv preprint arXiv:2602.23413 (2026).
[47] Greg Martin and Kevin O'Bryant. "The supremum of autoconvolutions, with applications to additive number theory". In: Illinois Journal of Mathematics 53.1 (2009), pp. 219–235.
[48] Máté Matolcsi and Carlos Vinuesa. "Improved bounds on the supremum of autoconvolutions". In: Journal of Mathematical Analysis and Applications 372.2 (2010), pp. 439–447.
[49] Elliot Meyerson, Mark J. Nelson, Herbie Bradley, Adam Gaier, Arash Moradi, Amy K. Hoover, and Joel Lehman. "Language Model Crossover: Variation through Few-Shot Prompting". In: ACM Transactions on Evolutionary Learning and Optimization 4.4 (2024), pp. 1–40.
[50] Alexander Novikov, Ngân Vũ, Marvin Eisenberger, Emilien Dupont, Po-Sen Huang, Adam Zsolt Wagner, Sergey Shirobokov, Borislav Kozlovskii, Francisco J. R. Ruiz, Abbas Mehrabian, M. Pawan Kumar, Abigail See, Swarat Chaudhuri, George Holland, Alex Davies, Sebastian Nowozin, Pushmeet Kohli, and Matej Balog. "AlphaEvolve: A coding agent for scientific and algorithmic discovery". In: arXiv preprint arXiv:2506.13131 (2025).
[51] Chau Pham, Boyi Liu, Yingxiang Yang, Zhengyu Chen, Tianyi Liu, Jianbo Yuan, Bryan A. Plummer, Zhaoran Wang, and Hongxia Yang. "Let Models Speak Ciphers: Multiagent Debate through Embeddings". In: International Conference on Learning Representations. 2024.
[52] Ao Qu, Han Zheng, Zijian Zhou, Yihao Yan, Yihong Tang, Shao Yong Ong, Fenglu Hong, Kaichen Zhou, Chonghe Jiang, Minwei Kong, Jiacheng Zhu, Xuan Jiang, Sirui Li, Cathy Wu, Bryan Kian Hsiang Low, Jinhua Zhao, and Paul Pu Liang. "CORAL: Towards Autonomous Multi-Agent Evolution for Open-Ended Discovery". In: Conference on Language Modeling. 2026.
[53] Vignav Ramesh and Kenneth Li. "Communicating Activations Between Language Model Agents". In: International Conference on Machine Learning. 2025.
[54] Bernardino Romera-Paredes, Mohammadamin Barekatain, Alexander Novikov, Matej Balog, M. Pawan Kumar, Emilien Dupont, Francisco J. R. Ruiz, Jordan S. Ellenberg, Pengming Wang, Omar Fawzi, Pushmeet Kohli, and Alhussein Fawzi. "Mathematical discoveries from program search with large language models". In: Nature 625.7995 (2024), pp. 468–475.
[55] Klaus F. Roth. "On a problem of Heilbronn". In: Journal of the London Mathematical Society 26.3 (1951), pp. 198–204.
[56] Yousef Saad. Iterative Methods for Sparse Linear Systems. 2nd ed. SIAM, 2003.
[57] Apoorv Saxena. Prompt Lookup Decoding. https://github.com/apoorvumang/prompt-lookup-decoding. 2023.
[58] Jay Shah, Ganesh Bikshandi, Ying Zhang, Vijay Thakkar, Pradeep Ramani, and Tri Dao. "Flash-Attention-3: Fast and Accurate Attention with Asynchrony and Low-precision". In: Advances in Neural Information Processing Systems. 2024.
[59] Asankhaya Sharma. OpenEvolve: an open-source evolutionary coding agent. https://github.com/codelion/openevolve. 2025.
[60] Zhenyi Shen, Hanqi Yan, Linhai Zhang, Zhanghao Hu, Yali Du, and Yulan He. "CODI: Compressing Chain-of-Thought into Continuous Space via Self-Distillation". In: Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing. 2025, pp. 677–693.
[61] Xiangyu Shi, Marco Chiesa, Gerald Q. Maguire Jr., and Dejan Kostić. "KVComm: Enabling Efficient LLM Communication through Selective KV Sharing". In: International Conference on Learning Representations. 2026.
[62] Eckard Specht. Packomania: circles in a square. Accessed November 5, 2026. 2026. URL: https://www.packomania.com/csqv/csqv.html.
[63] Jianlin Su, Murtadha Ahmed, Yu Lu, Shengfeng Pan, Wen Bo, and Yunfeng Liu. "RoFormer: Enhanced Transformer with Rotary Position Embedding". In: Neurocomputing 568 (2024), p. 127063.
[64] Anja Šurina, Amin Mansouri, Lars C. P. M. Quaedvlieg, Amal Seddas, Maryna Viazovska, Emmanuel Abbe, and Caglar Gulcehre. "Algorithm Discovery With LLMs: Evolutionary Search Meets Reinforcement Learning". In: Conference on Language Modeling. 2025.
[65] Terence Tao et al. Crowdsourced repository of optimization constants. Accessed November 5, 2026. 2026. URL: https://github.com/teorth/optimizationproblems.
[66] Lloyd N. Trefethen. Spectral Methods in MATLAB. SIAM, 2000.
[67] Lloyd N. Trefethen and Mark Embree. Spectra and Pseudospectra: The Behavior of Nonnormal Matrices and Operators. Princeton University Press, 2005.
[68] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Łukasz Kaiser, and Illia Polosukhin. "Attention Is All You Need". In: Advances in Neural Information Processing Systems. 2017.
[69] Yuvraj Virk, Zack Edds, Chunqiu Steven Xia, and Lingming Zhang. "SwarmResearch: Orchestrating Coding Agents for Open-Ended Discovery". In: arXiv preprint arXiv:2607.02807 (2026).
[70] Yiping Wang, Shao-Rong Su, Zhiyuan Zeng, Eva Xu, Liliang Ren, Xinyu Yang, Zeyi Huang, Xue-hai He, Luyao Ma, Baolin Peng, Hao Cheng, Pengcheng He, Weizhu Chen, Shuohang Wang, Simon Shaolei Du, and Yelong Shen. "ThetaEvolve: Test-time Learning on Open Problems". In: International Conference on Machine Learning. 2026.
[71] Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed Chi, Quoc Le, and Denny Zhou. "Chain-of-Thought Prompting Elicits Reasoning in Large Language Models". In: Advances in Neural Information Processing Systems. 2022.
[72] Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, et al. "Transformers: State-of-the-Art Natural Language Processing". In: Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations. 2020, pp. 38–45.
[73] Xingyu Wu, Sheng-Hao Wu, Jibin Wu, Liang Feng, and Kay Chen Tan. "Evolutionary Computation in the Era of Large Language Model: Survey and Roadmap". In: IEEE Transactions on Evolutionary Computation 29.2 (2025), pp. 534–554.
[74] Yige Xu, Xu Guo, Zhiwei Zeng, and Chunyan Miao. "SoftCoT: Soft Chain-of-Thought for Efficient Reasoning with LLMs". In: Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2025, pp. 23336–23351.
[75] An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, et al. "Qwen3 Technical Report". In: arXiv preprint arXiv:2505.09388 (2025).
[76] Songlin Yang, Jan Kautz, and Ali Hatamizadeh. "Gated Delta Networks: Improving Mamba2 with Delta Rule". In: International Conference on Learning Representations. 2025.
[77] Haotian Ye, Haowei Lin, Jingyi Tang, Yizhen Luo, et al. "Structured Scaling of AI Discovery Across Diverse Scientific Domains". In: arXiv preprint arXiv:2604.19341 (2026).
[78] Zhaojian Yu, Kaiyue Feng, Yilun Zhao, Shilin He, Xiao-Ping Zhang, and Arman Cohan. "AlphaResearch: Accelerating New Algorithm Discovery with Language Models". In: arXiv preprint arXiv:2511.08522 (2025).
[79] Mert Yuksekgonul, Daniel Koceja, Xinhao Li, Federico Bianchi, Jed McCaleb, Xiaolong Wang, Jan Kautz, Yejin Choi, et al. "Learning to Discover at Test Time". In: arXiv preprint arXiv:2601.16175 (2026).
[80] Zhen Zhang, Xuehai He, Weixiang Yan, Ao Shen, Chenyang Zhao, and Xin Eric Wang. "Soft Thinking: Unlocking the Reasoning Potential of LLMs in Continuous Concept Space". In: Advances in Neural Information Processing Systems. 2025.
[81] Yujia Zheng, Zhuokai Zhao, Zijian Li, Yaqi Xie, Mingze Gao, Lizhu Zhang, and Kun Zhang. "Thought Communication in Multiagent Collaboration". In: Advances in Neural Information Processing Systems. 2025.
[82] Hanlin Zhu, Shibo Hao, Zhiting Hu, Jiantao Jiao, Stuart Russell, and Yuandong Tian. "Reasoning by Superposition: A Theoretical Perspective on Chain of Continuous Thought". In: Advances in Neural Information Processing Systems. 2025.
[83] Rui-Jie Zhu, Tianhao Peng, Tianhao Cheng, Xingwei Qu, Jinfu Huang, Dawei Zhu, Hao Wang, Kaiwen Xue, Xuanliang Zhang, Yong Shan, Tianle Cai, Taylor Kergan, Assel Kembay, Andrew Smith, Chenghua Lin, Binh Nguyen, Yuqi Pan, Yuhong Chou, Zefan Cai, Zhenhe Wu, Yongchi Zhao, Tianyu Liu, Jian Yang, Wangchunshu Zhou, Chujie Zheng, Chongxuan Li, Yuyin Zhou, Zhoujun Li, Zhaoxiang Zhang, Jiaheng Liu, Ge Zhang, Wenhao Huang, and Jason Eshraghian. "A Survey on Latent Reasoning". In: arXiv preprint arXiv:2507.06203 (2025).
[84] Jiaru Zou, Rui Pan, Ruizhong Qiu, Pan Lu, Shizhe Diao, Jindong Jiang, Hanghang Tong, Tong Zhang, Markus J. Buehler, Jingrui He, and James Zou. "Recursive Multi-Agent Systems". In: Advances in Neural Information Processing Systems. 2026.
[85] Jiaru Zou, Ruizhong Qiu, Gaotang Li, Xiyuan Yang, Katherine Tieu, Pan Lu, Ke Shen, Hanghang Tong, Yejin Choi, Jingrui He, James Zou, Mengdi Wang, and Ling Yang. "Latent Collaboration in Multi-Agent Systems". In: International Conference on Machine Learning. 2026.
A Ablation and Scaling Studies
A.1 Replacing Latent Reasoning with Text Reasoning
Using Qwen3 8B, we replace each agent's 40 latent reasoning steps with text reasoning of up to 40 tokens, which matches the latent budget, or up to 256 tokens, which is enough for a short paragraph. The summarizer receives this text in its prompt. Latent reasoning gives the highest average score after 60 minutes, 0.804, against 0.796 and 0.767 for 40 and 256 tokens of text reasoning (Supplementary Table 1).
Text reasoning is much slower. With 256 tokens, the agents of a round take about 32 seconds to write their text reasoning, against only about 4 seconds for 40 latent reasoning steps. The summarizers then encode the text of their agents, which adds 8 seconds per round with 40 tokens and 15 seconds with 256 tokens. In 60 minutes, SwarmEvolve therefore evaluates 734 programs with latent reasoning, more than the 663 and 402 with 40 and 256 tokens of text reasoning.
Specifically, text reasoning with 40 tokens scores higher than text reasoning with 256 tokens. This is potentially due to longer reasoning messages overwhelming the 32,768-token context window of the summarizer. This suggests that agent swarms can efficiently communicate with short messages, and latent reasoning and communication are more efficient than text.
Supplementary Table 1: Best score within 60 minutes, averaged over three runs. Each agent takes 40 latent reasoning steps (Latent, the default) or writes up to 40 or 256 tokens of text reasoning, which the summarizer reads as text in its prompt. Bold: best; underlined: second best.
| Qwen3 8B × 45 agents | Text reasoning | |||
|---|---|---|---|---|
| Group | Problem | Latent (40 steps) | 40 tokens | 256 tokens |
| Packing | Circles in a square | 0.998 | 0.997 | 0.996 |
| Circles in a rectangle | 0.888 | 0.868 | 0.887 | |
| Hexagons, n = 11 | 0.627 | 0.509 | 0.544 | |
| Hexagons, n = 12 | 0.707 | 0.738 | 0.600 | |
| Geometry | Heilbronn, triangle | 0.558 | 0.796 | 0.596 |
| Heilbronn, convex, n = 13 | 0.724 | 0.622 | 0.688 | |
| Heilbronn, convex, n = 14 | 0.807 | 0.609 | 0.536 | |
| Distance ratio, plane | 0.994 | 0.863 | 0.828 | |
| Distance ratio, space | 0.994 | 0.970 | 0.927 | |
| Analysis | Autocorrelation I | 0.995 | 0.996 | 0.995 |
| Autocorrelation II | 1.021 | 1.016 | 1.021 | |
| Autocorrelation III | 1.005 | 1.005 | 1.004 | |
| Uncertainty | 0.911 | 0.906 | 0.911 | |
| Combinatorics | Erdős overlap | 1.000 | 0.999 | 0.999 |
| Sums and differences | 0.957 | 0.960 | 0.955 | |
| Kissing number, d = 11 | 0.309 | 0.320 | 0.400 | |
| Scientific computing | Sparse linear systems | 0.933 | 1.000 | 0.775 |
| Eigenvalues | 0.700 | 0.731 | 0.723 | |
| Burgers equation | 0.741 | 0.730 | 0.694 | |
| Convection-diffusion | 0.494 | 0.551 | 0.500 | |
| Helmholtz equation | 0.529 | 0.528 | 0.526 | |
| Average | 0.804 | 0.796 | 0.767 | |
| Programs evaluated per hour | 734 | 663 | 402 | |
A.2 Swarm Size Scaling
We vary the number of latent agents in each swarm with Qwen3 8B: 0, 15, 45 (the default), and 75. The novelty filter keeps two thirds of them, so each summarizer reads 0, 10, 30, or 50 latent agents. In the case of 0 latent agents, the summarizer reads the problem statement and all programs of its swarm, the union of what the latent agents would read. Each setting runs three seeds with the setup of Section 4.
Larger latent teams raise the score most early in the search (Supplementary Figures 1 and 2). Over the first 150 evaluated programs, the mean best score increases with the swarm size. From the 55th program on, SwarmEvolve with 75 agents has the highest mean best score of all settings and baselines. The three baselines evaluate 80 to 160 programs in 60 minutes, and their final scores lie below the final score of every swarm size. After about 150 programs, the gains fall within the bootstrap intervals. Smaller swarms run faster, so they evaluate more programs in the 60-minute budget and their scores keep rising for longer. All four settings end the hour at similar scores.
The early gain suggests that a larger swarm examines each program from more perspectives, so its summarizer draws on more diverse ideas. The later convergence likely reflects the limits of the LLM itself. Since all latent agents share their knowledge, additional agents can't find the blind spots that earlier agents overlook, and the diversity gain saturates. A larger model does raise the final score as shown in Table 1.

Supplementary Figure 1: Mean best score against the number of evaluated programs with Qwen3 8B, for 0 to 75 latent agents per swarm and the three baselines, over the first 150 programs (left) and the full 60-minute runs (right). More latent agents raise the score early in the search, and the settings converge later.

Supplementary Figure 2: Paired gain in mean best score relative to 0 latent agents per swarm, plotted against the number of evaluated programs with Qwen3 8B, with 95% bootstrap intervals. The gains are largest in the first 100 programs and shrink within their intervals later in the search.
B Time Breakdowns
Supplementary Table 2 divides the 60 minutes of each run among the stages of GPU work, averaged over the runs of each framework with Qwen3 8B. These times exclude the CPU time of the evaluator, which runs in parallel and never holds up the GPU. Besides proposing programs, ShinkaEvolve asks the LLM to summarize earlier programs, and CodeEvolve asks it to rewrite its system prompt.
Supplementary Table 2: Minutes (and shares) of a 60-minute run that each framework spends on each stage of its GPU work, averaged over its runs on the 21 problems with Qwen3 8B and three seeds.
| Stage | Ours | OpenEvolve | ShinkaEvolve | CodeEvolve |
|---|---|---|---|---|
| Reading prompts | 7.1 min (12%) | 1.0 min (2%) | 0.5 min (0.9%) | 0.1 min (0.2%) |
| Text reasoning | – | 52.5 min (87%) | 34.4 min (57%) | 46.8 min (78%) |
| Latent reasoning | 4.1 min (7%) | – | – | – |
| Latent communication | 2.6 min (4%) | – | – | – |
| Writing programs | 39.4 min (66%) | 6.4 min (11%) | 5.7 min (9%) | 4.7 min (8%) |
| Novelty checks | 0.05 min (0.1%) | – | 4.5 min (7%) | – |
| Summarizing earlier programs | – | – | 14.7 min (24%) | – |
| Rewriting the system prompt | – | – | – | 7.7 min (13%) |
| Parameter tuning agent | 1.9 min (3%) | – | – | – |
| Other | 4.7 min (8%) | 0.1 min (0.2%) | 0.2 min (0.4%) | 0.7 min (1%) |
| Total runtime | 60 min (100%) | 60 min (100%) | 60 min (100%) | 60 min (100%) |
| Total number of programs evaluated | 734 | 158 | 99 | 81 |
Compared with the three baselines, SwarmEvolve achieves a higher throughput mainly in the following two ways:
-
Latent reasoning instead of text reasoning. Text reasoning takes most of the GPU time of all three baselines, 20 to 35 seconds and several thousand tokens per evaluated program. SwarmEvolve replaces it with latent reasoning and latent communication, which together take about a tenth of its GPU time: the latent agents of a round reason for a few seconds in total. SwarmEvolve therefore spends most of its GPU time writing programs, and this shift explains its higher throughput.
-
Novelty check in latent space. To check novelty, ShinkaEvolve embeds the code of each new program with a separate embedding model and, when its cosine similarity to an archived program exceeds 0.99, asks the LLM whether the two programs differ. These extra LLM calls take several minutes of each run. The novelty filter of SwarmEvolve instead compares the mean hidden states of the latent agents, which are already in GPU memory, and takes seconds per run.
C Hyperparameters and Implementation
Throughout this work, our framework uses the hyperparameters in Supplementary Table 3. The summarizers of the refinement-focused swarms, which edit one of the best programs, sample at the lowest temperature for stability, while those of the exploration-focused and fresh-start swarms, which write new approaches, sample at the highest temperature for diversity. Supplementary Table 4 lists the focuses of the swarms.
Supplementary Table 3: Hyperparameters of SwarmEvolve used throughout all experiments in this work.
| Agent | Temperature | Top-p | Top-k | Maximum new tokens | |
|---|---|---|---|---|---|
| Summarizer | Refinement-focused swarm | 0.3 | 0.95 | 20 | 4096 |
| Hybridization-focused swarm | 0.5 | 0.95 | 20 | 4096 | |
| Exploration-focused swarm | 0.8 | 0.95 | 20 | 4096 | |
| Fresh-start swarm | 0.8 | 0.95 | 20 | 4096 | |
| Parameter tuning agent | 1.0 | 0.95 | 20 | 24 | |
| Hyperparameter | Value | ||||
| Latent agents per swarm, run and kept | 45, 30 | ||||
| Latent reasoning steps per latent agent | 40 | ||||
| Maximum refinement steps of one program | 20 | ||||
| One-number parameter tuning edits per round | up to 8 | ||||
Supplementary Table 4: Focuses of the swarms. A refinement- or hybridization-focused swarm takes one of the 14 “aspects”, and an exploration-focused or fresh-start swarm takes one of the 14 “perspectives”. Each latent agent receives the focus in one of five phrases, such as “Pay particular attention to” an aspect or “Consider” a perspective, followed by one of nine ways of thinking, such as “Reason from first principles” or “Question one assumption the program makes” for sample diversity.
| Aspects (refinement and hybridization) | Perspectives (exploration and fresh start) |
|---|---|
| The starting point of the solution | The standard textbook method |
| The optimization or solution algorithm | A fundamentally different algorithm |
| Global exploration, restarts, and annealing | A known construction from the literature |
| Symmetries and structure of good solutions | A physics-inspired method |
| Feasibility, tolerances, and a final repair step | A parametrization that satisfies the constraints |
| The use of the time limit | Many cheap starts of one fast local optimizer |
| The largest source of the remaining error | A symmetry that forces structure |
| A smoother surrogate or a penalty formulation | A coarse-to-fine or incremental construction |
| The weakest part of the current solution | A greedy construction with local improvement |
| What the best programs in the field do differently | Linear or convex programming for convex parts |
| Bugs, wasted computation, and silent failures | An exact or analytical treatment |
| Simpler and more robust methods | Sparsity, separability, or low rank |
| The numbers in the program | A higher-order or adaptive method |
| The formulation and its free variables | An idea that nobody would try first |
Implementation. We implement SwarmEvolve in PyTorch with the Qwen3 models of Hugging Face Transformers [72]. The latent agents of a round run as one batch, and latent agents that read the same program attend to one shared copy of its KV cache through the paged FlashAttention kernel of vLLM [18, 41]. The summarizers of a round decode as one batch with paged KV caches and prompt-lookup speculative sampling, which drafts tokens by copying them from the programs in the context [57] and verifies them with the acceptance rule of speculative sampling, so the samples follow the distribution of the model exactly [44]. With Qwen3 14B and 32B-FP8, SwarmEvolve also captures its decoding steps in CUDA graphs and uses the fused kernels of vLLM, including FlashAttention-3 on the H100 GPU [58]. The three baselines serve the model with vLLM, which batches requests continuously, caches shared prefixes, and runs CUDA graphs, so their decoding runs at the speed of a production serving engine. CodeEvolve runs its configuration for Qwen models with eight islands, one per CPU core. All four frameworks run Qwen3 32B-FP8, which uses the FP8 weights released by Qwen.
D Benchmark Problems
The 16 mathematical problems in Sections D.1–D.16 are those of Appendix B of AlphaEvolve [50], with the problem statements, initial programs, and evaluators of OpenEvolve [59]; the problem statement of circle packing in the unit square comes from ShinkaEvolve [42]. All feasibility checks use the numerical tolerances of the OpenEvolve evaluators. A construction with objective value scores , or for minimization, where is the exact value of AlphaEvolve's published construction, so a score above 1 improves on AlphaEvolve. Where an evaluator divides by a rounded , we rescale its scores to the exact value.
We also design the 5 scientific computing problems in Sections D.17–D.21. Each problem consists of several cases, and a program solves one case at a time. A case scores , where is the relative error with respect to a high-accuracy reference solution, and the score of a program is the mean over the cases.
D.1 Circle Packing in the Unit Square
Problem. Circle packing asks how to place disjoint circles in a container, and this variant lets every circle have its own radius. Pack disjoint circles, with centers and radii , inside the unit square so that the sum of their radii is as large as possible (Supplementary Figure 3):

Supplementary Figure 3: Disjoint circles in the unit square. The objective is the sum of the radii .
Evaluator. The entry function run_packing() returns the centers as a array, the radii as an array of length 26, and their sum. The evaluator rejects negative radii and checks both constraints with the tolerance : every circle satisfies and , and every pair satisfies . It recomputes the objective value from the returned radii.
https://github.com/google-deepmind/alphaevolve_results, commit 4226acb.
D.2 Circle Packing in a Rectangle
Problem. This circle packing problem fixes the perimeter of a rectangular container and lets the construction choose its shape together with the circles. Pack disjoint circles, with centers and radii , inside a rectangle of perimeter 4 so that the sum of their radii is as large as possible. The width of the rectangle is free, and its height is (Supplementary Figure 4):

Supplementary Figure 4: Disjoint circles in a rectangle of width and height . The objective is the sum of the radii.
Evaluator. The entry function circle_packing21() returns a array with rows . The evaluator rejects negative radii and computes the width and the height of the smallest axis-aligned rectangle that contains the circles. It requires the sum of this width and height to be at most and every pair of circles to satisfy , with . The objective value is .
D.3 Hexagon Packing with 11 Hexagons
Problem. This problem packs congruent regular hexagons into the smallest regular hexagon that contains them, where each hexagon may be translated and rotated. Let denote the closed regular hexagon with center , side length , and vertices at the angles for . Pack regular hexagons of side length 1, , with disjoint interiors inside an outer regular hexagon of the smallest possible side length (Supplementary Figure 5):
where int denotes the interior.

Supplementary Figure 5: Eleven disjoint unit hexagons inside a regular hexagon of side length , which is minimized.
Evaluator. The entry function hexagon_packing_11() returns an array with rows , with angles in degrees, the triple of the outer hexagon, and . The evaluator computes the six vertices of every hexagon. For every pair of inner hexagons, it projects both hexagons onto the edge normals of the two hexagons and requires a gap larger than along at least one normal, which is the separating axis test for convex polygons. It requires every vertex of every inner hexagon to lie inside the outer hexagon, with the tolerance on its distance to each edge, where . The objective value is .
D.4 Hexagon Packing with 12 Hexagons
Problem. This problem packs congruent regular hexagons into the smallest regular hexagon that contains them, where each hexagon may be translated and rotated. Let denote the closed regular hexagon with center , side length , and vertices at the angles for . Pack regular hexagons of side length 1, , with disjoint interiors inside an outer regular hexagon of the smallest possible side length (Supplementary Figure 6):
where int denotes the interior.

Supplementary Figure 6: Twelve disjoint unit hexagons inside a regular hexagon of side length , which is minimized.
Evaluator. The entry function hexagon_packing_12() returns a array with rows , with angles in degrees, the triple of the outer hexagon, and . The evaluator computes the six vertices of every hexagon. For every pair of inner hexagons, it projects both hexagons onto the edge normals of the two hexagons and requires a gap larger than along at least one normal, which is the separating axis test for convex polygons. It requires every vertex of every inner hexagon to lie inside the outer hexagon, with the tolerance on its distance to each edge, where . The objective value is .
D.5 Heilbronn Problem in a Triangle
Problem. The Heilbronn problem asks for points in a region that maximize the smallest area of a triangle formed by three of the points [55, 16]. Place points in the equilateral triangle with vertices , , and to maximize the smallest area of a triangle formed by three of the points (Supplementary Figure 7):
where is the area of the triangle with vertices , and , and .

Supplementary Figure 7: Eleven points in the equilateral triangle. The shaded triangle has the smallest area among all triangles formed by the points.
Evaluator. The entry function heilbronn_triangle11() returns an array of points. The evaluator checks that every point satisfies the three edge inequalities of , and , with . It computes the areas of all 165 triangles and divides the smallest area by to obtain .
D.6 Heilbronn Problem in a Convex Region with 13 Points
Problem. The Heilbronn problem asks for points in a region that maximize the smallest area of a triangle formed by three of the points [55, 16]. In this variant the region is any convex region of unit area, so the relevant region is the convex hull of the points, and the ratio below is invariant under invertible affine maps of the plane. Place points in the plane to maximize the smallest area of a triangle formed by three of the points, relative to the area of their convex hull (Supplementary Figure 8):
where is the area of the triangle with vertices , and , and denotes the convex hull.

Supplementary Figure 8: Thirteen points with their convex hull (dashed). The shaded triangle has the smallest area.
Evaluator. The entry function heilbronn_convex13() returns a array of points anywhere in the plane. The evaluator computes the areas of all 286 triangles and the area of the convex hull of the points with the Quickhull algorithm [3] in SciPy. It divides the smallest triangle area by the hull area to obtain .
D.7 Heilbronn Problem in a Convex Region with 14 Points
Problem. The Heilbronn problem asks for points in a region that maximize the smallest area of a triangle formed by three of the points [55, 16]. In this variant the region is any convex region of unit area, so the relevant region is the convex hull of the points, and the ratio below is invariant under invertible affine maps of the plane. Place points in the plane to maximize the smallest area of a triangle formed by three of the points, relative to the area of their convex hull (Supplementary Figure 9):
where is the area of the triangle with vertices , and , and denotes the convex hull.

Supplementary Figure 9: Fourteen points with their convex hull (dashed). The shaded triangle has the smallest area.
Evaluator. The entry function heilbronn_convex14() returns a array of points anywhere in the plane. The evaluator computes the areas of all 364 triangles and the area of the convex hull of the points with the Quickhull algorithm [3] in SciPy. It divides the smallest triangle area by the hull area to obtain .
D.8 Distance Ratio in the Plane
Problem. This problem asks for evenly spread point sets, whose smallest pairwise distance is large relative to the diameter of the set [5]. Place points in the plane to maximize the ratio of their smallest pairwise distance to their largest pairwise distance (Supplementary Figure 10):
The ratio is invariant under translations, rotations, and scalings of the point set.

Supplementary Figure 10: Sixteen points in the plane. The thin lines join the pairs at the smallest distance , and the dashed line marks the largest distance .
Evaluator. The entry function returns a array of points anywhere in the plane. The evaluator computes the 120 pairwise distances with SciPy and forms .
D.9 Distance Ratio in Space
Problem. This problem asks for evenly spread point sets, whose smallest pairwise distance is large relative to the diameter of the set [5]. Place points in three-dimensional space to maximize the ratio of their smallest pairwise distance to their largest pairwise distance (Supplementary Figure 11):
The ratio is invariant under translations, rotations, and scalings of the point set.

Supplementary Figure 11: Fourteen points in space, shaded by depth. The thin lines join the pairs at the smallest distance , and the dashed line marks the largest distance .
Evaluator. The entry function returns a array of points anywhere in space. The evaluator computes the 91 pairwise distances with SciPy and forms .
D.10 First Autocorrelation Inequality
Problem. For every non-negative function supported on , the first autocorrelation inequality states
where is the autoconvolution of . The constant bounds the size of Sidon sets in additive combinatorics, and the bounds come from Cloninger and Steinerberger
[14] and Matolcsi and Vinuesa [48]. Every such with a positive integral gives an upper bound on . Find a non-negative function supported on with a positive integral that minimizes this bound,
The program represents by its values on equal intervals of and chooses .
Evaluator. The entry function run() returns , the bound , a loss value, and . The evaluator requires every to be non-negative and, with the interval width , computes
The autoconvolution of a step function is piecewise linear with breakpoints at multiples of , so is the exact bound of the step function with values . The evaluator requires and , and the score uses .
D.11 Second Autocorrelation Inequality
Problem. For every non-negative function , the second autocorrelation inequality states
where is the autoconvolution of and [47]. The inequality gives , and Matolcsi and Vinuesa [48] prove with an explicit function. Every such with a positive integral gives a lower bound on . Find a non-negative function with a positive integral that maximizes this bound,
The program represents by its values on equal intervals and chooses .
Evaluator. The entry function run() returns , the bound , a loss value, and . The evaluator requires , sets negative values to zero, and forms the discrete autoconvolution for . It places these values on the interior nodes of a uniform grid with spacing on , sets at the two end nodes, and computes the norms of the piecewise linear interpolant of these values exactly,
The ratio is invariant under scaling of and of its domain, so is the exact bound of the step function with values . The score uses this recomputed .
D.12 Third Autocorrelation Inequality
Problem. The third autocorrelation inequality extends the first one to functions that take values of either sign: for every function supported on ,
(22) where is the autoconvolution of . Every such with a nonzero integral gives an upper bound on . Find a function supported on , with values of either sign and a nonzero integral, that minimizes this bound,
The program represents by its values on equal intervals of and chooses .
Evaluator. The entry function run() returns , the bound , a loss value, and . With the interval width , the evaluator computes
The autoconvolution of a step function is piecewise linear with breakpoints at multiples of , so is the exact bound of the step function with values . The evaluator requires and , and the score uses . The evaluator divides by 1.4557, AlphaEvolve's bound on ; for as defined here, AlphaEvolve's value is .
D.13 Uncertainty Inequality
Problem. The uncertainty principle of Bourgain, Clozel, and Kahane [8] bounds from below the product of the radii beyond which an even function and its Fourier transform are non-negative. For a real even function with Fourier transform , and , let
be the radius of the last sign change of . The inequality holds for a positive constant , so every such gives an upper bound on . Following Gonçalves, Silva, and Steinerberger [25], the search runs over with and , where is the Hermite polynomial of degree 4k. Each such equals its own Fourier transform and satisfies , so , where is the largest positive root at which changes sign. Find coefficients that minimize this bound,
Evaluator. The entry function run() returns , the bound , and the root . The evaluator builds in exact rational arithmetic with SymPy: it converts every to a rational number, chooses so that , and multiplies by when as . It divides by , isolates the real roots of the quotient, evaluates every root to 200 digits, and keeps the roots at which the quotient changes sign. The largest of these roots is , and the objective value is . The evaluator requires and to agree with and to within a relative and an absolute tolerance of , and the score uses the recomputed . comes from Laguerre polynomials, outside this family; AlphaEvolve's Hermite construction gives 0.3521.
D.14 Erdős Minimum Overlap Problem
Problem. For a partition of into two sets and of elements each, let be the number of pairs with . The minimum overlap problem of Erdős asks for the smallest possible value of , and this minimum divided by converges to a constant as [30]. In the continuous formulation, every function with gives an upper bound on . Find such a function that minimizes this bound,
The program represents by its values on equal intervals of and chooses .
Evaluator. The entry function run() returns , the bound , and . The evaluator requires every to lie in and, with the interval width , requires . It computes
where ranges over all shifts and the sum runs over the indices with . It requires , and the score uses . Our reported scores instead correct to integrate exactly to 1 and recompute .
D.15 Sums and Differences of Finite Sets
Problem. For a finite set of integers, Gyarmati, Hennecart, and Ruzsa [28] study how large the difference set can be relative to the sum set . For a finite set of non-negative integers with , the quantity
is a lower bound on the constant of this problem. Find a finite set of non-negative integers with that maximizes this bound.
Evaluator. The entry function run() returns as a one-dimensional array and the bound . The evaluator requires and every element of to be a non-negative integer. It computes and from all pairwise sums and differences, recomputes the objective value , requires and to agree to within a relative tolerance of and an absolute tolerance of , and the score uses .
D.16 Kissing Number in Dimension 11
Problem. The kissing number is the largest number of unit balls in with disjoint interiors that touch a central unit ball [17]. A set whose largest norm is at most its smallest pairwise distance satisfies for every pair, so the unit balls centered at the points touch the central unit ball and have disjoint interiors, which proves ; Supplementary Figure 12 shows the two-dimensional analogue. Find the largest such set:

Supplementary Figure 12: The two-dimensional analogue: five points of that satisfy the constraint, and the unit circles centered at , which touch the central unit circle.
Evaluator. The entry function kissing_number11() returns an array with 11 columns. The evaluator rounds every coordinate to the nearest integer and computes the squared norms and the squared pairwise distances in exact integer arithmetic. It requires the smallest squared norm to be positive and the smallest squared pairwise distance to be at least the largest squared norm, and the objective value is .
D.17 Sparse Linear Systems
Problem. Solve for five sparse matrices from finite-difference discretizations of partial differential equations on the unit square or cube with Dirichlet boundary conditions [56]:
-
the two-dimensional Poisson equation with the 5-point stencil on a grid ( unknowns), symmetric positive definite;
-
the three-dimensional diffusion equation with the 7-point stencil on a grid (), where is constant on the blocks of an partition with values , uniform in , and harmonic means on the cell faces, symmetric positive definite and ill-conditioned;
-
the two-dimensional Helmholtz operator with and the 5-point stencil on a grid (), symmetric indefinite;
-
the two-dimensional convection-diffusion operator with the rotating flow , , and first-order upwind differences on a grid (), nonsymmetric;
-
the three-dimensional convection-diffusion operator with the flow , , and first-order upwind differences on a grid (), nonsymmetric.
Evaluator. The entry function solve(, b) receives as a SciPy sparse matrix in compressed sparse row format and returns . Each right-hand side is for a solution with independent standard normal entries, and the relative error is . The cap is digits, and the time limit is 9 seconds per case. The initial program uses the conjugate gradient method with a Jacobi preconditioner and a relative tolerance of .
D.18 Eigenvalues of Non-Normal Matrices
Problem. Compute all eigenvalues of six square matrices with small integer entries to high relative accuracy. Backward-stable eigenvalue algorithms return the eigenvalues of a nearby matrix, and the eigenvalues of a non-normal matrix can be far from those of a nearby matrix, so these algorithms lose digits on non-normal matrices [67]. The six matrices are
-
a dense circulant matrix of size , which is normal;
-
a tridiagonal Toeplitz matrix with diagonal 9, sub-diagonal 1, and super-diagonal 4, of size ;
-
the Kronecker sum of two nonsymmetric tridiagonal Toeplitz matrices of sizes 24 and 22, an upwind discretization of a two-dimensional convection-diffusion operator, of size ;
-
a nonsymmetric tridiagonal matrix with random diagonal entries in , sub-diagonal entries in , and super-diagonal entries in , with rows and columns permuted by the same random permutation, of size ;
-
a block upper-triangular matrix with diagonal blocks and sparse random entries above them, with rows and columns permuted by the same random permutation, of size ;
-
a dense matrix , where is block diagonal with blocks and is a product of elementary integer matrices with determinant 1, of size .
No eigenvalue is zero, and the problem statement names the structure of each matrix.
Evaluator. The entry function eigenvalues(A) receives an integer array and returns the eigenvalues as a complex array in any order. The evaluator knows every eigenvalue in closed form or from a well-conditioned computation: the discrete Fourier transform of the first row of the circulant matrix, for a tridiagonal Toeplitz matrix of size with diagonal and off-diagonals and , sums of these values for the Kronecker sum, the eigenvalues of the similar symmetric tridiagonal matrix with off-diagonals for the fourth matrix, and the eigenvalues of the blocks for the last two matrices. It pairs the returned eigenvalues one-to-one with the true eigenvalues by the assignment that minimizes the total relative error, and the error of a matrix is the largest relative error over the pairs. The cap is digits, and the time limit is 8 seconds per case. The initial program calls the LAPACK eigenvalue routine of NumPy.
D.19 Viscous Burgers Equation
Problem. Solve the one-dimensional viscous Burgers equation
with periodic boundary conditions up to the final time , for the five viscosities . From on, a shock of width proportional to forms at (Supplementary Figure 13).

Supplementary Figure 13: Reference solution for three viscosities. The shock at steepens as decreases.
Evaluator. The entry function solve(nu, T, x) receives 1000 points drawn uniformly from and returns at these points. The reference solution is the Cole–Hopf solution [33, 15],
which the evaluator integrates with the trapezoidal rule on 8001 nodes in scaled logarithmic form; four times as many nodes and arbitrary-precision quadrature give the same values. The error is the relative 2-norm error over the 1000 points, the cap is digits, and the time limit is 9 seconds per case. The initial program uses explicit central finite differences on 256 grid points with forward Euler time steps.
D.20 Convection-Diffusion Equation
Problem. Solve the steady convection-diffusion equation
(34)
with the constant flow , for the five diffusion coefficients . The solution has boundary layers of width proportional to along the outflow sides and (Supplementary Figure 14).

Supplementary Figure 14: Reference solution for , with boundary layers along and .
Evaluator. The entry function solve(eps, b, x, y) receives 2000 points drawn uniformly from the unit square and returns at these points. The reference solution comes from Chebyshev collocation [66]: with constant coefficients, the collocation equations on the interior points form a Sylvester equation, which the evaluator solves with the Bartels-Stewart algorithm [4] and interpolates to the points with barycentric interpolation. Each reference uses two resolutions, between 60 and 1200 Chebyshev points per direction depending on , that agree to . The error is the relative 2-norm error over the 2000 points, the cap is digits, and the time limit is 9 seconds per case. The initial program uses central finite differences on a grid with a sparse direct solver and bilinear interpolation.
D.21 Helmholtz Equation
Problem. Solve the Helmholtz equation with the impedance boundary condition
(36)
where is the outward normal derivative, for the five wave numbers . The source consists of two Gaussians whose width is proportional to the wavelength,
and the solution is complex (Supplementary Figure 15). At a fixed number of grid points per wavelength, the error of low-order discretizations grows with [2].

Supplementary Figure 15: Real part of the reference solution for , with waves radiating from the two sources.
Evaluator. The entry function solve(k, x, y) receives 2000 points drawn uniformly from the unit square and returns the complex values of at these points. The reference solution comes from Chebyshev collocation with the boundary values eliminated through the impedance condition in each direction, which again gives a Sylvester equation [66, 4]. Each reference uses two resolutions, between 60 and 320 Chebyshev points per direction depending on , that agree to , and second-order finite differences converge to it at the expected rate. The error is the relative 2-norm error over the 2000 points, the cap is digits, and the time limit is 9 seconds per case. The initial program uses second-order finite differences on a grid, with ghost points for the impedance condition, and a sparse direct solver.
E Best Known Results
Supplementary Table 5 lists the objective values behind the scores of Table 1: the value of AlphaEvolve's published construction, the best value of the three runs of each framework, and the best known value. We rerun the best program of every run and recompute its value under AlphaEvolve's exact constraints. For the programs that reproduce their logged score, the exact constraints lower the score by at most . The remaining programs draw unseeded random numbers, so we rerun each of them 33 times (once without a seed and with seeds 0 to 31) and report the best value under the exact constraints among the reruns that the evaluator scores no higher than the logged score of the run. We call a best known value verified if its construction or certificate has been checked, and claimed otherwise.
With Qwen3 8B and 32B-FP8, SwarmEvolve improves on AlphaEvolve on the same three problems: it matches the best known packing of 26 circles in the unit square [62], and its step functions improve AlphaEvolve's bounds on the second and third autocorrelation inequalities. The three baselines improve on AlphaEvolve only on the autocorrelation inequalities.
Two problems need care in the comparison with AlphaEvolve. On the third autocorrelation inequality, the evaluator of OpenEvolve takes the absolute value of the autoconvolution inside the maximum, while AlphaEvolve's published bound of 1.4557 takes it outside the maximum. Under the definition of the evaluator, AlphaEvolve's construction gives 1.4688, the value that we compare against (Appendix D.12). On the uncertainty inequality, the evaluator accepts only functions built from Hermite polynomials. Within this family, AlphaEvolve's first construction gives 0.3521, while its best bound of 0.3216 uses Laguerre polynomials, which lie outside the family. SwarmEvolve reaches 0.3521 with Qwen3 32B-FP8, the value of AlphaEvolve's construction within the same family.
With Qwen3 32B-FP8, SwarmEvolve comes close to AlphaEvolve on four more problems: within one part per million on circles in a rectangle, and within 0.02% on the two distance ratios and the minimum overlap problem. For all four frameworks, the largest gaps to AlphaEvolve include the hexagon packings, the Heilbronn problems, and the kissing number in dimension 11.
Supplementary Table 5: Best values on the 16 AlphaEvolve problems: the value of AlphaEvolve, the best of three 60-minute runs of each framework with Qwen3 8B, 14B, and 32B-FP8, and the best known value to the best of our knowledge. Values are given to seven significant digits. Bold: best of all values of a problem; underlined: second best; †: better than AlphaEvolve; -: no valid program within 60 minutes.
| Problem | Objective | AlphaEvolve | Qwen3 | Ours | OpenEvolve | ShinkaEvolve | CodeEvolve | Best known (Nov. 5, 2026) | Status |
|---|---|---|---|---|---|---|---|---|---|
| Circles in a square | 2.635863 | 8B | 2.635983† | 2.615077 | 2.626003 | 2.613583 | 2.635983 | verified [62] | |
| 14B | 2.634292 | 2.346719 | 2.630328 | 2.616260 | |||||
| 32B-FP8 | 2.635983† | 2.613827 | 2.629864 | 2.620510 | |||||
| Circles in a rectangle | 2.365832 | 8B | 2.100000 | 2.332669 | 2.357264 | 2.342198 | 2.365832 | verified [6] | |
| 14B | 2.357262 | 2.268246 | 2.295059 | 2.357264 | |||||
| 32B-FP8 | 2.365830 | 2.313769 | 2.272727 | 2.346834 | |||||
| Hexagons, n = 11 | R ↓ | 3.930092 | 8B | 4.505917 | 6.002853 | 8.000000 | 8.000000 | 3.924501 | verified [22] |
| 14B | 4.677289 | 5.404701 | 6.031025 | 6.333333 | |||||
| 32B-FP8 | 4.472263 | 5.004000 | 5.418582 | 8.000000 | |||||
| Hexagons, n = 12 | R ↓ | 3.941912 | 8B | 4.924979 | 6.031025 | 6.031025 | 8.000000 | 3.94164 | claimed [22] |
| 14B | 4.537633 | 5.080000 | 6.031025 | 5.595754 | |||||
| 32B-FP8 | 5.029604 | 5.000400 | 6.829775 | 8.000000 | |||||
| Heilbronn, triangle | 0.03652989 | 8B | 0.02227742 | 0.001599633 | 0.02003859 | 0.02217071 | 0.03652989 | verified [50] | |
| 14B | 0.02600437 | 0.009468544 | 0.01510912 | 0.02590121 | |||||
| 32B-FP8 | 0.03064911 | 0.003508768 | 0.02927480 | 0.02144022 | |||||
| Heilbronn, convex, n = 13 | 0.03093689 | 8B | 0.02302219 | 0.02052219 | 0.02195328 | 0.02002288 | 0.03093721 | verified [31] | |
| 14B | 0.02341767 | 0.02202470 | 0.02224608 | 0.02009201 | |||||
| 32B-FP8 | 0.02769717 | 0.01762215 | 0.02230236 | 0.02145342 | |||||
| Heilbronn, convex, n = 14 | 0.02783557 | 8B | 0.02261399 | 0.01414730 | 0.01414730 | 0.01414730 | 0.02783558 | verified [31] | |
| 14B | 0.02229207 | 0.01807289 | 0.01980031 | 0.01762215 | |||||
| 32B-FP8 | 0.02232631 | 0.01893828 | 0.01980032 | 0.01807289 | |||||
| Distance ratio, plane | 12.88927 | 8B | 12.94885 | 18.00000 | 13.20266 | 13.15947 | 12.88923 | verified [21] | |
| 14B | 12.89897 | 18.00000 | 13.01783 | 14.20428 | |||||
| 32B-FP8 | 12.88956 | 18.00000 | 13.27883 | 17.01391 | |||||
| Distance ratio, space | 4.165850 | 8B | 4.177907 | 4.732051 | 4.546903 | 4.474247 | 4.165784 | verified [6] | |
| 14B | 4.167784 | 4.732051 | 4.586633 | 4.352043 | |||||
| 32B-FP8 | 4.166486 | 4.540188 | 4.370018 | 4.630033 | |||||
| Autocorrelation I | 1.505294 | 8B | 1.512329 | 1.515894 | 1.516525 | 1.516662 | 1.502743 | verified [65] | |
| 14B | 1.512125 | 1.515684 | 1.515220 | 1.517188 | |||||
| 32B-FP8 | 1.512209 | 1.516507 | 1.510459 | 1.516020 | |||||
| Autocorrelation II | 0.8962799 | 8B | 0.9213998† | 0.9034590† | 0.8995052† | 0.9032550† | 0.9635881 | verified [21] | |
| 14B | 0.9314238† | 0.9198818† | 0.9064627† | 0.9001606† | |||||
| 32B-FP8 | 0.9289826† | 0.8879468 | 0.9042086† | 0.8880995 | |||||
| Autocorrelation III | 1.468762 | 8B | 1.460021† | 1.513955 | 1.478389 | 1.477685 | 1.453675 | verified [77] | |
| 14B | 1.460180† | 1.473397 | 1.468036† | 1.476167 | |||||
| 32B-FP8 | 1.459198† | 1.469457 | 1.468273† | 1.478609 | |||||
| Uncertainty | 0.3215872 | 8B | 0.3524471 | 0.3566070 | - | 0.3615746 | 0.3089 | verified [13] | |
| 14B | 0.3525058 | 0.3560237 | - | 0.3531502 | |||||
| 32B-FP8 | 0.3521054 | 0.3522484 | - | 0.3585374 | |||||
| Erdős overlap | 0.3809230 | 8B | 0.3810116 | 0.3816114 | 0.3815447 | 0.3834166 | 0.3808563 | verified [21] | |
| 14B | 0.3810021 | 0.3810436 | 0.3810753 | 0.3816378 | |||||
| 32B-FP8 | 0.3809729 | 0.3812057 | 0.3810462 | 0.3814869 | |||||
| Sums and differences | 1.158417 | 8B | 1.109543 | 1.097861 | - | 1.103907 | 1.193597 | claimed [65] | |
| 14B | 1.109543 | 1.101635 | 1.037493 | 1.090860 | |||||
| 32B-FP8 | 1.122610 | 1.103165 | 1.011447 | 1.107311 | |||||
| Kissing number, d = 11 | 593 | 8B | 220 | 416 | 416 | 220 | 604 | verified [7] | |
| 14B | 416 | 464 | 480 | 220 | |||||
| 32B-FP8 | 476 | 464 | 528 | 220 |
F Best Solutions Found by Each Framework
We compare the best program that each framework found with Qwen3 8B for one packing problem, one geometry problem, and the three PDE problems. For each framework, the highest-scoring program is selected. For the PDE problems, we plot the pointwise absolute error , where is each framework's solution and is the reference solution, on the same logarithmic scale for all three problems.
F.1 Circle Packing in the Unit Square
Supplementary Figure 16 shows the best packing of each framework.
Our method. The program runs ten restarts of one SLSQP optimization over all centers and radii, each from 16 perturbed lattice positions and 10 random positions, and keeps the best valid packing.
OpenEvolve. The program places one circle at the center, eight on an inner ring, four in the corners, and thirteen on an outer ring, and optimizes all centers and radii with one SLSQP run.
ShinkaEvolve. The program places one circle at the center, eight on an inner ring, thirteen on an outer ring clipped to the square, and four near the corners, and optimizes all centers and radii with one SLSQP run.
CodeEvolve. The program places 25 circles on a lattice and one at the center, and optimizes all centers and radii with one SLSQP run.

Supplementary Figure 16: Best packings of 26 circles in the unit square. The sums of the radii are 2.636 (our method), 2.615 (OpenEvolve), 2.626 (ShinkaEvolve), and 2.614 (CodeEvolve).
F.2 Heilbronn Problem in a Triangle
Supplementary Figure 17 shows the best placement of each framework.
Our method. The program runs ten restarts of simulated annealing from a symmetric lattice of points, moving one point at a time and accepting a worse smallest area with a probability that decreases as the temperature drops.
OpenEvolve. The program draws 11 random points in the triangle, redrawing a point whenever it is collinear with two earlier points.
ShinkaEvolve. The program draws random configurations from 50 fixed seeds, keeps the best ones, and refines them with SLSQP on the smallest triangle area under the three edge constraints of the triangle.
CodeEvolve. The program draws 11 random points in the triangle and runs one simulated annealing of 50,000 steps that moves one point at a time.

Supplementary Figure 17: Best placements of 11 points in the equilateral triangle. The shaded triangle has the smallest area among all triangles formed by the points. The smallest areas, divided by the area of the triangle, are 0.0223 (our method), 0.0016 (OpenEvolve), 0.0200 (ShinkaEvolve), and 0.0222 (CodeEvolve).
F.3 Viscous Burgers Equation
Supplementary Figure 18 shows the solution of each framework for the smallest viscosity and its error.
Our method. The program uses central finite differences on 8192 grid points for and 2048 points otherwise, with a two-stage Runge–Kutta method and a time step limited by both the advection and the diffusion stability conditions.
OpenEvolve. The program uses central finite differences of the flux on 2048 grid points with forward Euler time steps.
ShinkaEvolve. The program splits each time step into a two-stage Runge–Kutta step for the advection on 1024 grid points and an implicit diffusion step solved exactly in Fourier space.
CodeEvolve. The program uses central finite differences of the flux on 1024 grid points with the explicit midpoint method, a two-stage Runge–Kutta method, and a time step limited by both the advection and the diffusion stability conditions.

Supplementary Figure 18: Solutions of the Burgers equation for (top) and their absolute errors (bottom). Our solution is the most accurate away from the shock at .
F.4 Convection-Diffusion Equation
Supplementary Figure 19 shows the solution of each framework for and its error.
Our method. The program uses central finite differences on a grid with a sparse direct solver and bilinear interpolation to the evaluation points.
OpenEvolve. The program uses central finite differences on a grid with a sparse direct solver and bilinear interpolation.
ShinkaEvolve. The program uses central finite differences on a grid with a sparse direct solver and bilinear interpolation.
CodeEvolve. The program uses central finite differences on a grid with a sparse direct solver and bilinear interpolation.

Supplementary Figure 19: Solutions of the convection-diffusion equation for (top) and their absolute errors (bottom). The errors concentrate in the boundary layers along and and along the characteristic line from the corner . The coarser grid of CodeEvolve spreads the error near over a wider region.
F.5 Helmholtz Equation
Supplementary Figure 20 shows the solution of each framework for and its error.
Our method. The program uses second-order finite differences with ghost points for the impedance condition on an grid, a sparse direct solver, and bilinear interpolation.
OpenEvolve. The program uses the same discretization on a grid.
ShinkaEvolve. The program uses the same discretization on a grid.
CodeEvolve. The program uses the same discretization on a grid and smooths the real and imaginary parts of the solution with a Gaussian filter.

Supplementary Figure 20: Real parts of the solutions of the Helmholtz equation for (top) and their absolute errors (bottom). The error decreases with the number of grid points per wavelength.
G Evolution Trajectories
Supplementary Figure 21 plots the best score so far against wall-clock minutes for each problem and framework with Qwen3 8B, and Supplementary Figures 22 and 23 show the same with Qwen3 14B and 32B-FP8. Each line averages the three runs of a framework, and each band spans its lowest and highest run. With every model, the curves of SwarmEvolve rise most steeply in the first minutes, when its rounds explore many focuses at once, and end the hour highest on most problems. Its bands often lie entirely above those of the baselines, so its lead holds for every seed.

Supplementary Figure 21: Best score so far against wall-clock minutes for each problem with Qwen3 8B. Each line is the best score so far averaged over three runs, and each band spans the lowest and highest run. SwarmEvolve ends the hour with the highest score on 18 of the 21 problems, and its curves rise most steeply in the first few minutes.

Supplementary Figure 22: Best score so far against wall-clock minutes for each problem with Qwen3 14B. Each line is the best score so far averaged over three runs, and each band spans the lowest and highest run. SwarmEvolve ends the hour with the highest or tied-highest score on 16 of the 21 problems.

Supplementary Figure 23: Best score so far against wall-clock minutes for each problem with Qwen3 32B-FP8. Each line is the best score so far averaged over three runs, and each band spans the lowest and highest run. SwarmEvolve ends the hour with the highest or tied-highest score on 17 of the 21 problems.