Skip to main content

SwarmEvolve: Latent-Space Agent Swarms Cut Search Time to 8 Mins

Researchers at Brown University introduce SwarmEvolve, using shared KV caches across 450 AI agents to slash scientific program search time from 60 minutes down to 3-8 minutes.

AI-written
Inewgen
10 Nov 2026Source: Dev.to5 min read (0 views)
Share
SwarmEvolve: Latent-Space Agent Swarms Cut Search Time to 8 Mins

Stock photo for illustration only, not from the actual event

Font size
  • SwarmEvolve from Brown University replaces natural language communication with shared KV caches across agents.
  • The framework deploys 450 agents organized into 10 specialized swarms to collaboratively search and refine programs.
  • It matches the 60-minute performance of traditional text-based baselines in a median of just 3 to 8 minutes.
  • Key constraints include strict model homogeneity and highly demanding memory infrastructure requirements.

Most multi-agent AI systems communicate in much the same way humans do: one agent writes out text, the next reads it, processes it, and writes back. While functional, this approach carries a hidden cost. Every time an agent converts its internal reasoning into prose, it sheds crucial information—including probability distributions, uncertainty measures, and the nuanced context residing within the model's hidden states. The subsequent agent is then forced to reconstruct all of that context strictly from text.

A recent research paper authored by Jiang and Karniadakis at Brown University identifies this phenomenon as the "decoding tax" and introduces a framework named SwarmEvolve designed to eliminate it entirely. LLM-guided evolutionary search—where AI agents iteratively propose, evaluate, and refine programs or mathematical constructions—has emerged as a productive research domain. Frameworks such as OpenEvolve and AlphaEvolve have previously demonstrated that language models can discover novel scientific algorithms when given appropriate scaffolding.

The primary bottleneck in these setups is throughput. In a standard architecture, an agent generates a chain-of-thought in natural language, which is then tokenized and fed into the next agent to generate further text. For tasks where the fitness function can be checked entirely by a machine (such as verifying if code produces correct output or beats a packing record), prose acts largely as overhead. The agents are essentially writing for each other rather than for human readers.

data center server racks digital network tech no logo

Stock photo for illustration only, not from the actual event

8 minsSearch time matching 60-min baselines
450Agents per evolutionary round
10Specialized swarms

SwarmEvolve addresses this by asking a fundamental question: what if agents bypassed text altogether? While latent-space reasoning has been explored previously in various forms, SwarmEvolve introduces a structured multi-agent architecture built specifically around this concept. Each round of evolution deploys 450 agents divided into 10 specialized swarms with distinct roles, such as refining existing programs, hybridizing parent programs, or exploring entirely new directions.

Within each swarm, a novelty filter calculates the mean hidden state of each agent and applies greedy farthest-point selection in cosine distance to retain the most distinct reasoning trajectories while discarding agents with overly similar internal states. The retained agents then pass their KV caches—the key-value attention matrices encoding their reasoning context—to a summarizer agent. This summarizer processes all concatenated caches simultaneously, synthesizing a new program proposal that integrates the diverse perspectives of the swarm without any agent writing a single word.

Never miss the latest news?

Subscribe to get news summaries by email - not often enough to be annoying.

โฆษณา

"SwarmEvolve reaches the 60-minute performance scores of text-based baselines in a median of 3 to 8 minutes."

Jiang and Karniadakis (Brown University)

The authors evaluated SwarmEvolve across 21 problems spanning mathematical discovery and scientific computing. The headline result demonstrated that SwarmEvolve achieves the 60-minute performance scores of text-based baselines (OpenEvolve, ShinkaEvolve, CodeEvolve) in a median of 3 to 8 minutes, evaluating 5 to 13 times more candidate programs per hour than those traditional frameworks.

The elimination of the text-based "prose bus" highlights how multi-agent bottlenecks are often artifacts of developer convenience rather than strict model requirements. However, adopting latent handoffs introduces significant practical hurdles, including strict hardware constraints and vastly more complex debugging workflows.

However, these efficiency gains come with strict constraints that practitioners must evaluate. Model homogeneity is strictly required because agents share KV caches, meaning teams cannot mix small local models with frontier API calls mid-swarm. Furthermore, infrastructure demands are non-trivial, as standard LLM serving stacks are not optimized for cross-agent KV cache sharing at this scale, and debugging becomes significantly harder without conversational logs.

Source: Dev.to

Comments

Leave a Comment
0/2000

Found something wrong in this article? Report an issue with this article