Multi-agent systems (MAS) are increasingly powered by large language models, yet a subtle but significant bottleneck often gets overlooked: how these agents actually talk to each other. Developers typically default to letting agents communicate in free-form natural language. While this sounds flexible, it can quickly devour token budgets and shared context windows. A recent arXiv paper dives deep into this problem, offering a systematic analysis and proposing a solution called PACT.
The Hidden Costs of Free-Form Agent Chat
The research team began by dissecting five common inter-agent communication strategies. These ranged from passing full outputs to using only key phrases or periodic summaries. They then tested these strategies across two typical MAS topologies: serial and parallel. Interestingly, no single strategy emerged as universally superior. However, a clear pattern did surface: strategies that preserved more action-centric information consistently helped downstream agents perform their tasks more efficiently.
The core issue lies in the inherent verbosity of natural language. When Agent A tells Agent B, "I've just finished analyzing the user's input and determined the main intent is to query the weather," a good chunk of that message is redundant. If every agent communicates with such inefficiency, the context window rapidly fills with unnecessary data, and inference costs skyrocket.
PACT: From Chat to Structured State Updates
The paper introduces PACT (Protocolized Action-state Communication and Transmission), essentially a structured compression scheme. It reframes inter-agent communication as an update to a shared system state. Each agent's output is 'projected' into a compact action-state record before being added to the shared history. This record typically includes what the current agent did and how the system state changed as a result.
Think of it like a version control system committing only changes, rather than copying the entire file every time. PACT doesn't just truncate or summarize; it specifically retains the most critical parts for downstream computation, discarding descriptive language that doesn't impact decision-making. Experiments showed that PACT consistently reduced token consumption and response latency across various MAS configurations, all while maintaining task success rates.
Practical Implications for Developers
This research highlights a previously underestimated lever in multi-agent system optimization: the communication protocol itself. Many developers meticulously fine-tune prompts and models but rarely scrutinize what's actually being transmitted between agents. PACT offers a reusable framework – you don't necessarily need to adopt its exact format, but the principle of "compressing irrelevant information while preserving action core" is broadly applicable.
- For teams building complex agent chains: Expect potential token cost reductions of 30% to 50%, significantly mitigating context window overflow issues.
- For researchers: PACT provides a quantifiable framework for analyzing MAS communication efficiency, opening doors for future exploration into more adaptive compression strategies.
- For independent developers: Even without implementing the full protocol, simply adding a "send only actions" filter to agent outputs can yield noticeable improvements.
Limitations and Future Directions
The authors acknowledge that PACT might over-compress in tasks heavily reliant on nuanced natural language understanding, such as open-ended role-playing, potentially losing stylistic or emotional information. Furthermore, automatically generating the optimal action-state record format still requires system-specific tuning. However, this work undeniably brings the question of "what agents should say to each other" to the forefront – it's not an afterthought.
If you're building multi-agent applications, a good starting point might be to log the raw output of each agent during a conversation and see how much of it truly gets used by subsequent agents. The answer might surprise you.











Comments
No comments yet
Be the first to comment