← Latest papers
💬 NLP

Agent Primitives: Reusable Latent Building Blocks for Multi-Agent Systems

This paper introduces **Agent Primitives**, a framework that decomposes multi-agent systems into reusable latent building blocks (Review, Voting/Selection, and Planning/Execution) communicating via key-value caches to automatically compose task-specific architectures that significantly improve accuracy, efficiency, and stability compared to traditional text-based multi-agent systems.

Original authors: Haibo Jin, Peng Kuang, Ye Yu, Xiaopeng Yuan, Haohan Wang

Published 2026-05-26
📖 5 min read🧠 Deep dive

Original authors: Haibo Jin, Peng Kuang, Ye Yu, Xiaopeng Yuan, Haohan Wang

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to solve a very difficult puzzle, like a complex math problem or writing a piece of software. You could ask one very smart person (a single AI agent) to do it. But sometimes, that's not enough. So, you gather a team of smart people to work together. This is what current "Multi-Agent Systems" (MAS) do.

However, the paper argues that the way we currently build these teams is messy, expensive, and fragile. Here is the problem and the solution, explained simply.

The Problem: The "Chatty" Team

Currently, when we build a team of AI agents, we usually tell them to talk to each other using natural language (like English sentences).

  • The Messy Handoff: Imagine a game of "Telephone." If Agent A writes a long, detailed solution and passes it to Agent B, Agent B has to read all those words. If the conversation gets long (which it often does), Agent B might get confused, forget the beginning of the story, or get distracted by irrelevant details.
  • The "Noise" Issue: If Agent A makes a tiny mistake in their explanation, Agent B might amplify that mistake. By the time the answer reaches the last agent, the original idea might be completely garbled.
  • The Custom-Build Problem: Every time you want to solve a new type of problem, you have to manually design a new team with new roles and new rules. It's like hiring a new construction crew and teaching them how to build a house from scratch every time you need a shed. It's slow and hard to reuse.

The Solution: "Agent Primitives"

The authors propose a new way to build these teams called Agent Primitives. Think of this like switching from building with loose bricks and mortar to using pre-fabricated, high-tech modules.

1. The "Lego" Analogy

Instead of designing a whole new team for every job, the authors identified three standard "building blocks" (primitives) that appear in almost every successful AI team:

  • The Review Block: One agent tries to solve it, and a second agent acts like a strict editor, checking for errors and suggesting fixes.
  • The Voting Block: Several agents try to solve it independently, and a "judge" agent picks the best answer or combines them.
  • The Planning Block: One agent acts as an architect to break the big task into small steps, and another agent acts as the builder to execute those steps.

These blocks are reusable. You can snap them together like Legos to build a system for math, coding, or medical questions without redesigning the whole thing.

2. The "Secret Handshake" (Latent Communication)

This is the paper's biggest innovation.

  • Old Way (Talking): Agents pass notes written in English. This is slow, takes up a lot of space (tokens), and gets messy if the notes are long.
  • New Way (The KV Cache): The authors realized that AI models have a "memory" called a Key-Value (KV) Cache. Think of this as the AI's internal "thought process" or "working memory" before it actually speaks.
    • Instead of writing a long email to the next agent, Agent A simply passes its internal memory state directly to Agent B.
    • The Analogy: Imagine two people working on a puzzle. Instead of one person describing the puzzle piece in words ("It's a blue piece with a jagged edge..."), they just hand the physical piece directly to the other person. The second person sees the piece exactly as it is, with no risk of the description getting lost in translation.
    • This makes the communication instant, perfectly accurate, and immune to the "Telephone game" effect.

3. The "Project Manager" (The Organizer)

To make this easy to use, the system includes an Organizer agent.

  • You give the Organizer a question (e.g., "Write a Python script to sort a list").
  • The Organizer looks at a "Knowledge Pool" (a list of past successful team setups).
  • It instantly picks the right "Lego blocks" (Primitives) and snaps them together to solve your specific problem. You don't need to be an engineer to build the team; the Organizer does it for you.

The Results: Faster, Smarter, Cheaper

The paper tested this new system against old methods and found:

  • Better Accuracy: The "Lego" teams solved problems 12% to 16% better than a single AI, and significantly better than teams that talk in English.
  • Much Faster & Cheaper: Because they don't have to write long sentences to each other, they use 3 to 4 times fewer words (tokens) and finish 3 to 4 times faster.
  • More Stable: The system works consistently well across different types of AI models, whereas the old "chatty" systems often broke down when the conversation got too long.

Summary

The paper introduces Agent Primitives: a way to build AI teams using reusable, pre-made modules that communicate via internal memory instead of words. This makes AI teams easier to build, much faster to run, and significantly more accurate at solving complex problems.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →