TL;DR
This paper introduces Agent Primitives, a modular framework that treats multi-agent systems (MAS) like neural network architectures. By replacing manual, natural-language "role-playing" with reusable computational blocks that communicate via latent KV caches, the authors achieve a 12–16% accuracy boost over single agents while being 3–4x faster and cheaper than traditional text-based multi-agent systems.
What Problem Does This Paper Address?
While Multi-Agent Systems (MAS) are powerful for solving complex tasks, they currently suffer from two major "bottlenecks":
- Architectural Rigidity: Most MAS are handcrafted for specific tasks. You have to manually define roles (e.g., "You are a senior coder") and interaction prompts. This makes the systems hard to reuse and causes complexity to skyrocket as tasks get harder.
- The "Telephone Game" Effect: Agents usually communicate via natural language. In long, multi-stage interactions, information degrades. Errors accumulate, and models often "forget" instructions buried in the middle of a long conversation history. Furthermore, generating all that intermediate text is slow and expensive.
The authors ask: Can we build MAS using standardized, reusable building blocks that communicate more efficiently than through plain text?
Methods
The researchers propose a paradigm shift from "agents as roles" to "agents as computational patterns." They introduce three core components:
1. Agent Primitives
Inspired by layers in a neural network (like residual blocks), these are standardized modules:
- Review Primitive: A Solver generates a solution, and a Critic provides latent feedback for iterative refinement.
- Voting and Selection Primitive: Multiple Solvers generate diverse candidates, and a Selector aggregates them into a single consensus.
- Planning and Execution Primitive: A Planner decomposes a task into subgoals, which an Executor then carries out.
2. Latent KV Cache Communication
Instead of agents writing text to each other, they pass their Key-Value (KV) caches. This allows the next agent to "inherit" the entire reasoning state of the previous agent without the overhead of decoding and re-encoding text. To make this work, the authors implement KV Cache Positional Re-encoding, ensuring that the positional embeddings (RoPE) stay consistent when caches are concatenated.
3. The Organizer & Knowledge Pool
To automate the system, an Organizer (a high-level LLM) analyzes a user query and selects the best combination of primitives. It is guided by a Knowledge Pool—a library of 45 successful MAS structures from prior research—which it adapts into a primitive-based workflow.
Datasets
The framework was evaluated across eight diverse benchmarks:
- Mathematical Reasoning: AIME24, AIME25, MATH, and GSM8K.
- Code Generation: MBPP-Plus and HumanEval-Plus.
- General Q&A: MedQA and GPQA-Diamond.
- Stress Tests: The authors used InfiniteBench to test long-context robustness and a noisy version of GSM8K to test resilience against communication errors.
Key Insights and Ideas
- Latent is More Robust than Text: In stress tests, natural language communication "compliance" (following instructions) dropped to a dismal 15.6% when tasks were injected into the middle of a long context. The KV cache method maintained 73.3% compliance.
- Efficiency Gains: Because the system avoids the "token explosion" of agents talking back and forth in text, it incurs only a 1.3x–1.6x overhead compared to a single agent. Traditional text-based MAS often cost 4x more.
- The Power of Composition: While individual primitives (like just "Voting") help, the Organizer consistently found that composing them (e.g., Planning followed by Voting) yielded an additional 3.5–7.0% improvement.
- Positional Alignment is Non-Negotiable: The ablation studies showed that without proper RoPE re-indexing, KV cache communication fails completely, especially on Llama-based models.
Key Results
- Accuracy: Primitives-based MAS outperformed single-agent baselines by 12.0% to 16.5% across various model families (Qwen3, DeepSeek-R1-Distill).
- Speed & Cost: Compared to "TextMAS" (agents talking in text), this method reduced token usage and inference latency by 3x–4x.
- Superiority over SOTA: The system outperformed existing specialized MAS frameworks like MetaGPT, ChatDev, and GPTSwarm on the MATH and GPQA benchmarks. On GPQA-Diamond, it achieved 53.2% accuracy, a massive jump over the 36.7% single-agent baseline.
Limitations and Future Work
- Model Homogeneity: Currently, the KV cache communication requires all agents to use the same model architecture. You cannot (yet) pass a KV cache from a Llama model to a Qwen model because their internal representations differ.
- Fixed Primitive Set: The study only instantiated three primitives. The authors suggest that future work could expand this library to include primitives for tool-use, memory retrieval, or multi-modal reasoning.
- Organizer Dependency: While the system works with open-source organizers, the highest performance was achieved using top-tier models (like GPT-5.2) to design the workflows.
Summary updated