Concept · Chapter 13: Agents
Multi-Agent Systems
Multi-agent systems coordinate separate model contexts or roles to accomplish a shared task.
The problem
A single context can become overloaded when subtasks are separable.
The solution
Delegate bounded work and integrate evidence through explicit coordination.
The consequence
Parallel work adds communication, integration cost and correlated failure risks.
You should understand first
- Text as Data
- Probability and Distributions
- Conditional Probability and Bayes' Theorem
- Probability of Sequences
- Language Modeling
- Vectors
- Dot Product
- Embeddings
- Attention
- Softmax
- Self-Attention
- Causal Masking
- Entropy
- Loss Functions
- Cross-Entropy Loss
- Autoregressive Next-Token Prediction
- Pretraining at Scale
- GPT-1 → GPT-2 → GPT-3
- In-Context Learning
- The Turing Test
- Symbolic AI
- Logic and Rules
- Expert Systems
- Knowledge Representation
- The Knowledge-Acquisition Bottleneck
- From Rules to Learning
- Supervised, Unsupervised and Self-Supervised Learning
- Expected Value and Variance
- Reinforcement Learning
- MDPs, Policies and Value
- Decoding: Greedy, Temperature, Top-k, Top-p
- One-Hot Encoding
- Tokenization
- Chat Templates
- System Prompts and Instructions
- Structured Outputs and Constrained Decoding
- Tool Calling
- LLM Agents
- Agent Runtime
- Search
- Planning
- Agent Planning and ReAct
- Multi-Agent Systems
Separate contexts, shared goal
A worker can inspect callers while another proposes regression cases. They may run the same model with different contexts and tools. AutoGen provides an early framework for programming conversations of this kind.
The integration is real work
Define ownership before letting workers edit. Give each a clear input, output and permission scope. A coordinator must reconcile conflicting conclusions and run checks on the combined change.
Two agents that share a mistaken premise are not two independent witnesses. More messages can spread the error. Delegation is useful when separation reduces context overload or enables parallel progress; a three-line bug may take longer to explain to workers than to fix.
Fair comparison: keep the total compute and tool budget comparable when measuring one agent against several. Otherwise an apparent architectural advantage may come from simply trying more candidates.
What to remember
- Multi-agent systems coordinate separate model contexts or roles to accomplish a shared task.
- Delegate bounded work and integrate evidence through explicit coordination.
- Parallel work adds communication, integration cost and correlated failure risks.
Key papers
AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation
Qingyun Wu et al. · 2023
Provides a framework for programming conversations among agents, tools and humans.
How to read it: Inspect the communication pattern and termination logic; compare compute budgets.