Multi-agent systems: when does a problem need more than one decision-maker?
多智能体系统
Classify multi-agent problems by what agents know and what they want, write the joint model, and watch ten scripted agents with only local views oscillate or converge on a shared colouring task.
multi-agent-systemsTen sensors, one map, no central controller
Picture ten battery-powered sensors spread through a building. Each must pick one of three radio channels, and two sensors that can hear each other should not share a channel. A central computer that knew the whole interference graph could solve this in a moment. But suppose there is no such computer: each sensor sees only its own neighbours and can only send them short messages. The decisions are now taken by ten separate programs with partial views. That is the basic shape of a multi-agent system (MAS).
Shoham and Leyton-Brown’s textbook deliberately avoids a precise definition, noting that even “what is an agent?” has resisted a settled answer. Their working definition is loose but useful: systems with several autonomous entities that have diverging information, diverging interests, or both. Their opening example is a software agent buying goods for a user, which must model sellers and rival bidders that have their own preferences and knowledge. Loose definition and scope
Wooldridge and Jennings’ 1995 survey gives the agent side. Under their “weak” notion an agent is autonomous (it controls its own actions and internal state), socially able (it interacts with other agents, possibly via an agent communication language), reactive (it perceives and responds to its environment) and pro-active (it takes goal-directed initiative). A “stronger” notion describes agents with mental attitudes such as belief and intention. Weak and strong agency A multi-agent system is then a setting where several such programs act on a shared environment and each one’s results depend on what the others do.
This article fixes the vocabulary and the core difficulty. Game-theoretic solution concepts, learning in multi-agent settings and the semantics of agent messages each have their own articles; here we only place them on the map.
Two axes: information and interests
A minimal formal model has a set of agents N containing agents 1,…,n, an environment state s, a private observation for each agent, a joint action and a utility for each agent:
Agent i chooses a_i from o_i and whatever it remembers or has been told, while u_i depends on the whole joint action a. Two questions sort most problems.
| Same interests (all u_i equal) | Diverging interests | |
|---|---|---|
| Same information | A team that could in principle be centralized; distribution is about computation or robustness | Strategic interaction with common knowledge of the situation, such as many textbook games |
| Diverging information | Distributed problem solving: sensor networks, task sharing, cooperative agents | Markets, auctions, negotiation and competition with private information |
Shoham and Leyton-Brown organize their book along exactly this line. Their first two chapters treat distributed problem solving, where there is “no question” of individual preferences: a global problem is split across agents because a central controller is infeasible or because local resources should be used, with sensor networks as the motivating example. Later chapters bring in competition and game theory, then learning, communication, protocols for groups (social choice, mechanism design, auctions), coalitions and logics of knowledge. Chapter organization and sensor-network motivation The table is a guide, not a partition: a single deployed system often mixes cooperative and self-interested parts.
Wooldridge and Jennings frame the older field of distributed AI the same way. DAI traditionally studied the “macro” social level—how a group can be made to cooperate efficiently and how its activities can be coordinated—while much agent research studied the “micro” level of a single agent’s architecture. Distributed AI and cooperative problem solving Most of what makes a MAS hard sits at the macro level and comes from three sources:
- Partial observability. No agent sees s; agents disagree about the world unless they communicate, and communication costs bandwidth and time.
- Concurrency. Agents act at the same time on information that is already stale. A move that is sensible in isolation can be wrong when a neighbour makes the same move simultaneously.
- Interdependent objectives. Even in a team, u_i depends on others’ actions; with diverging interests, an agent’s best action also depends on what it predicts others will choose.
The sensor example isolates the first two with the third held fixed. Each agent i owns one variable x_i, a colour chosen from 0, 1 and 2, and wants no neighbour to share it. Its local cost and the global cost are
where 𝒩(i) is i’s neighbour set. Every agent’s interests point the same way: lowering c_i never raises C. This is a distributed constraint satisfaction problem, the subject of Shoham and Leyton-Brown’s first chapter, which itself opens with sensors choosing among three radio frequencies; there each agent controls a variable, constraints link agents, and algorithms such as domain pruning and asynchronous backtracking coordinate through messages. Distributed constraint satisfaction
The simplest local rule is greedy: if you are in conflict, switch to the colour with the fewest conflicts. Done by everyone at once, this can fail completely. If all ten agents start on colour 0 and break ties by the lowest index, every agent moves to colour 1 in the same round; now they all conflict again and all move back to colour 0. The system cycles with period 2 and never improves, although each agent did the locally sensible thing. Shoham and Leyton-Brown make a related point with a naive parallel procedure that is sound but not complete: it may never terminate even when a solution exists. A naive parallel procedure
A simple remedy, chosen for this article and not taken from either source, is to let each conflicted agent move only with probability p. The book’s own distributed algorithms (domain pruning, asynchronous backtracking) work differently and are not reproduced here. Consider just two neighbours, both conflicted, with two colours. The conflict disappears in a round exactly when one moves and the other does not:
R is geometric. At p=0.5 the expected number of rounds is 2; at p=0.1 or p=0.9 it is about 5.556. Too little activity wastes rounds waiting; too much recreates the synchronous collision. Real graphs couple many such pairs, so the best p is found empirically, but the trade-off is the same.
Ten scripted agents on the Petersen graph
The program uses the Petersen graph—ten nodes, fifteen edges, each node with three neighbours, colourable with three colours—as an original toy interference graph. All agents start on colour 0, so all fifteen edges conflict. It runs the synchronous greedy rule, a centralized backtracking baseline with full information, and the probabilistic rule for five activation probabilities over 300 seeds each. That rule is the article’s own illustration; the code labels it DSA, short for “distributed stochastic search”, and it is not an implementation of any algorithm in the cited sources. A “message” is counted whenever an agent changes colour and informs each of its three neighbours. Agents are scripted; nothing is learned and no network is used.
"""Original toy distributed constraint problem: ten agents colour the Petersen graph.
Scripted agents only; no learning model, network or LLM is used."""
import random
import statistics
OUTER = [(i, (i + 1) % 5) for i in range(5)]
SPOKES = [(i, i + 5) for i in range(5)]
INNER = [(5 + i, 5 + (i + 2) % 5) for i in range(5)]
EDGES = OUTER + SPOKES + INNER
N, COLOURS = 10, 3
NEIGHBOURS = {i: sorted({b for a, b in EDGES if a == i} | {a for a, b in EDGES if b == i}) for i in range(N)}
def conflicts(state, i, value):
return sum(state[j] == value for j in NEIGHBOURS[i])
def total_conflicts(state):
return sum(state[a] == state[b] for a, b in EDGES)
def best_values(state, i):
scores = [conflicts(state, i, v) for v in range(COLOURS)]
low = min(scores)
return [v for v in range(COLOURS) if scores[v] == low]
def synchronous_greedy(max_rounds=50):
"""Every conflicted agent moves at once to its lowest-index best value."""
state, seen = [0] * N, {}
for rounds in range(max_rounds):
if total_conflicts(state) == 0:
return {'solved': True, 'rounds': rounds}
key = tuple(state)
if key in seen:
return {'solved': False, 'cycle_start': seen[key], 'cycle_length': rounds - seen[key],
'conflicts': total_conflicts(state)}
seen[key] = rounds
state = [best_values(state, i)[0] if conflicts(state, i, state[i]) else state[i] for i in range(N)]
return {'solved': False, 'cycle_start': None}
def dsa(p, seed, max_rounds=200):
"""Distributed stochastic search: a conflicted agent moves with probability p."""
rng = random.Random(seed)
state, messages = [0] * N, 0
for rounds in range(max_rounds):
if total_conflicts(state) == 0:
return rounds, messages
new = state[:]
for i in range(N):
if conflicts(state, i, state[i]) and rng.random() < p:
choice = rng.choice(best_values(state, i))
if choice != state[i]:
new[i] = choice
messages += len(NEIGHBOURS[i])
state = new
return None, messages
def backtracking():
"""Centralised baseline with full information; counts partial assignments tried."""
assignment, tried = [None] * N, 0
def extend(i):
nonlocal tried
if i == N:
return True
for v in range(COLOURS):
tried += 1
if all(assignment[j] != v for j in NEIGHBOURS[i] if j < i):
assignment[i] = v
if extend(i + 1):
return True
assignment[i] = None
return False
return extend(0), tried, assignment[:]
def pair_rounds(p, seed, trials=20000):
"""Two adjacent agents, two colours, both conflicted: rounds until exactly one moves."""
rng, total = random.Random(seed), 0
for _ in range(trials):
rounds = 1
while (rng.random() < p) == (rng.random() < p):
rounds += 1
total += rounds
return total / trials
if __name__ == '__main__':
print('edges', len(EDGES), 'degree', sorted({len(v) for v in NEIGHBOURS.values()}))
print('initial conflicts', total_conflicts([0] * N))
print('synchronous greedy', synchronous_greedy())
ok, tried, colouring = backtracking()
print('central backtracking solved', ok, 'values tried', tried, 'colouring', colouring)
for p in (0.1, 0.3, 0.5, 0.7, 0.9):
runs = [dsa(p, seed) for seed in range(300)]
solved = [r for r, _ in runs if r is not None]
print(f'DSA p={p}: solved {len(solved)}/300, mean rounds {statistics.mean(solved):.2f}, '
f'max {max(solved)}, mean messages {statistics.mean(m for _, m in runs):.1f}')
for p in (0.1, 0.5, 0.9):
print(f'pair p={p}: simulated {pair_rounds(p, 7):.3f}, formula {1 / (2 * p * (1 - p)):.3f}')
Recorded output
edges 15 degree [3]
initial conflicts 15
synchronous greedy {'solved': False, 'cycle_start': 0, 'cycle_length': 2, 'conflicts': 15}
central backtracking solved True values tried 20 colouring [0, 1, 0, 1, 2, 1, 0, 2, 2, 1]
DSA p=0.1: solved 300/300, mean rounds 24.60, max 96, mean messages 31.5
DSA p=0.3: solved 300/300, mean rounds 9.53, max 43, mean messages 38.3
DSA p=0.5: solved 300/300, mean rounds 7.13, max 39, mean messages 48.9
DSA p=0.7: solved 300/300, mean rounds 6.94, max 26, mean messages 68.8
DSA p=0.9: solved 300/300, mean rounds 12.19, max 41, mean messages 148.8
pair p=0.1: simulated 5.542, formula 5.556
pair p=0.5: simulated 1.996, formula 2.000
pair p=0.9: simulated 5.560, formula 5.556Synchronous greedy enters a cycle of length 2 at round 0 with all 15 conflicts intact. The centralized solver, which sees the whole graph, finds the colouring [0, 1, 0, 1, 2, 1, 0, 2, 2, 1] after trying 20 values. That baseline matters: if one computer can see everything and is allowed to decide, distribution only adds cost.
With probabilistic activation all 300 runs solve the problem for every p tested, but the cost profile changes. At p=0.1 the mean is 24.60 rounds and only 31.5 messages, because few agents move. At p=0.5 and 0.7 the mean falls to 7.13 and 6.94 rounds. At p=0.9 it rises again to 12.19 rounds and 148.8 messages: agents collide often, as the synchronous rule does. The worst runs (96 rounds at p=0.1, 39 at p=0.5) show that a mean hides a long tail. For the isolated pair the simulated 1.996, 5.542 and 5.560 rounds match the formula values 2.000, 5.556 and 5.556.
Each round costs every conflicted agent O(deg·k) work to score k colours over its neighbours, so a round of the whole system is O(|E|k) here. The central baseline is exponential in the worst case for general graphs but trivial for this small one.
Limits of the toy and of the label
The experiment holds interests fixed, so it says nothing about agents that lie, bid strategically or refuse to cooperate; those questions need game theory and mechanism design. It also assumes synchronous rounds, reliable messages and a fixed graph. Asynchronous timing, message loss and agents joining or leaving produce failure modes the toy cannot show. The random rule also gives no termination guarantee on unsatisfiable instances; it would wander forever where a complete algorithm such as asynchronous backtracking would eventually report failure.
“Multi-agent” is also a description, not a virtue. Shoham and Leyton-Brown note that if a central designer exists, the agents could be viewed as mere sensors and effectors running the designer’s plan; distribution earns its cost only when a central controller is infeasible or local resources matter. Why distribute at all Systems that split one model’s work into several “agents” without different information, interests or resources may be multi-agent only in name.
Finally, both sources predate large language models. The survey was published in 1995 (the author-hosted HTML is timestamped November 1994) and the textbook’s revision is from 2010; their definitions still apply, but statements about today’s LLM agent frameworks need newer evidence.
Exercises
-
Four warehouse robots share aisles and all serve one company; each has its own camera and no shared map. Where does this sit in the information–interests table, and why is it still a multi-agent problem?
Answer: Same interests, diverging information. Their objectives agree, so this is distributed problem solving, but no robot sees the others’ positions directly and they act concurrently, so collisions and duplicated work arise unless they coordinate or communicate.
-
In the two-agent conflict, compute the expected number of rounds for p=0.3, and the probability that the conflict survives three rounds.
Answer: 2p(1−p)=0.42, so 𝔼[R]=1/0.42≈2.381. The conflict survives a round with probability 0.58, so it survives three rounds with probability 0.58³≈0.195.
-
Someone argues that the synchronous greedy rule failed only because of the deterministic tie-break. Construct a counterexample that uses random tie-breaking but still never solves the all-zero start.
Answer: Take two neighbours with only two colours, both on colour 0. Each has exactly one best alternative, colour 1, so randomness in tie-breaking changes nothing; both move to 1 together and then back to 0. The problem is that everyone moves at once, not how ties are broken. Randomizing whether to move breaks the symmetry.
-
A team wants to split a document-summarization job among five LLM “agents” that all see the full document and share one objective. Is a multi-agent design justified?
Answer: Not by the information–interests test: the agents have the same information and the same interests, so a single controller could make every decision. A split might still help for engineering reasons—parallel speed, separate context windows, independent checking—but those claims should be measured against a single-agent baseline rather than assumed.
Reading the sources
Wooldridge and Jennings’ survey is the standard reference for the weak and strong notions of agency and maps the 1990s field of agent theories, architectures and languages; the HTML copy used here is the author-hosted version of the Knowledge Engineering Review article. Intelligent Agents: Theory and Practice Shoham and Leyton-Brown’s book is a free, rigorous treatment of the field’s algorithmic, game-theoretic and logical foundations; its introduction explains the chapter blocks and their dependencies. Multiagent Systems
Neighbouring articles develop each axis further: cooperative agents (shared objectives and task allocation), competitive agents (adaptive opponents), agent communication (what messages mean), game theory and Nash equilibrium (solution concepts), and multi-agent reinforcement learning (learning when the environment includes other learners).
Make a prediction, then check
Ten agents are all in conflict and recolour in the same round using the same deterministic rule. What can happen?
Learning objectives
- Classify multi-agent problems by diverging information and diverging interests, and write the minimal model of joint actions and individual utilities.
- Explain why concurrent local updates can oscillate, compute expected rounds to resolve a conflict under random activation, and compare with a centralized baseline.
Prerequisites & connections
Explore related knowledge →References
- Intelligent Agents: Theory and Practice — scoped author-hosted HTML
Michael Wooldridge; Nicholas R. Jennings · 1995 - Multiagent Systems: Algorithmic, Game-Theoretic, and Logical Foundations — scoped free PDF, revision 1.1
Yoav Shoham; Kevin Leyton-Brown · 2009
Version1 · Editorial status: Recorded technical checks completed
View technical check record (AI)
Claude · 2026-12-02 · Independent AI check (Claude subagent, not the author; not a human or expert review). Ran example.py with python3 (0.2 s) and diffed it against example.stdout.txt (identical); confirmed byte-identical code blocks in en.mdx and zh.mdx and identical display equations. Re-derived the Petersen-graph construction, the period-2 cycle of synchronous greedy from the all-zero start, the pair formula 1/(2p(1-p)) (2.000, 5.556) and the exercise values 1/0.42=2.381 and 0.58^3=0.195. Re-read the sources myself: the Wooldridge–Jennings author HTML by downloading with curl the index and the four subsection pages cited (1.1.1, 1.1.2, 2.7, 5.1) and reading their full stripped text, and the Shoham–Leyton-Brown PDF rev. 1.1 via pdftotext (Introduction pp. xiii–xv, ch. 1 pp. 1–4, 9–10). Compared zh and en section by section and checked data.json IDs against the catalogue. Did not read other sections of either source or the KER publisher version, and did not render the MDX.
- Code output, code blocks, equations and prose numbers all consistent.
- Downloaded and read verbatim five Wooldridge–Jennings HTML pages; weak/strong agency and DAI macro/micro claims are supported.
- The random-activation colouring rule is now explicitly labelled in both languages as the article's own illustration, not taken from the sources.
- Shoham–Leyton-Brown's loose definition, 'no question of individual preferences' in chapters 1–2, the central-designer remark and sensor networks were all verified.
Source locations checked:
- Intelligent Agents: Theory and Practice — scoped author-hosted HTML · Writer: WebFetch summaries only. Checker (2026-12-02): curl of https://www.cs.ox.ac.uk/people/michael.wooldridge/pubs/ker95/ker95-html.html (abstract, contents, 'Knowledge Engineering Review Volume 10 No 2, June 1995', footer Fri Nov 4 1994) and of subsubsectionstar3_1_1_1.html (weak agency: autonomy incl. control over actions and internal state; social ability via an agent-communication language; reactivity; pro-activeness as goal-directed initiative), subsubsectionstar3_1_1_2.html (stronger notion: mentalistic notions such as knowledge, belief, intention, obligation), subsection3_2_7.html (speech acts; KQML/KIF), subsectionstar3_5_1.html (DAI's classical emphasis on macro/social level vs micro/agent level; how agents cooperate and how group activity is coordinated). Full plain text of these five pages read verbatim. NOT read: sections 2.1–2.6, 3, 4, other 5.x, 6, references. The article's former claim that the references 'stop in 1995' was not checked and was replaced by the publication date and HTML timestamp.
- Multiagent Systems: Algorithmic, Game-Theoretic, and Logical Foundations — scoped free PDF, revision 1.1 · Free PDF rev. 1.1 via pdftotext (533 PDF pages): contents; Introduction pp. xiii–xvi (e-commerce agent example; loose definition 'diverging information or diverging interests, or both'; chapter overview and blocks); ch.1 p.1 (cooperative distributed problem solving, central-designer remark, sensor networks); §2.3.1 pp.28–30 (contract nets as framework; marginal-cost bids; existence of optimal contract sequence; money-losing single-task contracts; cluster/swap/multiagent contracts; anytime; bidding/clearing/information rules; no claim for adversarial settings); §7.1.3 pp.202–204 (Chicken teaching example, descriptive vs prescriptive, self-play, no procedure optimal vs all opponents); §7.2 pp.206–210 (fictitious play rule, prior sensitivity, Matching Pennies table, Thms 7.2.2–7.2.5, anti-coordination miscorrelation, Shapley game non-convergence). NOT read: other chapters, ABT details, proofs. Note: another 015k writer registered this same PDF as mas-ch3-normal-form-scoped-015k for chapter 3; scopes differ. Checker re-read via pdftotext on 2026-12-02: Introduction pp. xiii–xv (loose definition, e-commerce example, 'no question of agents' individual preferences' in chs 1–2), ch.1 pp. 1–3 (central designer / 'end sensors and effectors'; central controller not feasible or distributed resources; sensor network with three radio frequencies as graph colouring), §1.2 opening p. 4 (domain pruning), p. 9 (centralized ChooseValue backtracking is complete; naive parallel procedure is sound but not complete and may never terminate even with a solution — now cited in the article), §1.3.1 opening p. 10 (ABT). ABT details beyond its opening not read.
Related topics