Emergent communication: when do learned signals mean something?
涌现通信
Start from a signaling game, separate communicative success from information and interpretability, and run reinforcement-urn learners that converge to different arbitrary codes or get stuck pooling.
emergent-communicationA code that nobody designed
Two agents play a simple game. A sender sees which of three states the world is in; a receiver cannot see the state but must choose the matching action. The only channel between them is a choice among three meaningless symbols. Both are rewarded only when the receiver’s action matches the state. Nobody tells them what any symbol means. Can they invent a code? If they do, will it be the same code every time? And if they reach high reward, does that prove their symbols carry meaning a person could understand?
Emergent communication studies protocols that arise from optimisation instead of being specified in advance, as agent communication languages are. The question is not only whether agents coordinate, but which features of the environment and learning rule produce codes that are informative, stable and, ideally, interpretable to humans.
Two papers from 2016 framed the modern deep-learning version. Foerster, Assael, de Freitas and Whiteson trained agents with deep reinforcement learning to discover protocols in partially observable cooperative tasks. Learning to communicate Lazaridou, Peysakhovich and Baroni trained a sender and receiver on a referential game with natural images and asked whether the resulting symbols matched human concepts. Referential games We then simulate the smallest version of the problem with original reinforcement-urn learners: no neural network, no images and no language model.
Signaling games, information and learning
Lazaridou and colleagues describe their game as a variation of Lewis’s signaling game, and note that such games are studied in game theory as “cheap talk”, where messages cost nothing and have no meaning in advance. A central difficulty is that these games have many equilibria: some with precise language, some with vague language, and some with no language at all, and learning is not guaranteed to converge to any of them. Game-theoretic background
In the simplest form, states s occur with probability π(s), the sender chooses message m with probability σ(m|s), and the receiver chooses action a with probability ρ(a|m). Both receive reward 1 when a=s. The expected success is
A signaling system is a pair in which each state gets its own message and the receiver inverts it, giving S=1. Any relabelling of the messages gives another signaling system with exactly the same reward: the code is arbitrary. A pooling outcome uses one message for several states. If a deterministic sender uses only k distinct messages for N equally likely states, the receiver can be right for at most one state per message, so
Success measures coordination, not information. The mutual information between state and message measures how much the message reduces uncertainty about the state, independently of whether the receiver uses it well:
where K is the number of messages. A one-to-one code over three equally likely states reaches log23≈1.585 bits.
Foerster and colleagues explain why communication can be hard to learn even when it is useful. In their setting, agents are fully cooperative, each receives a private observation, and messages have no direct effect on the environment or reward; only when multiple agents and partial observability coexist do agents have an incentive to communicate. Positive reward is sparse because it arrives only when sending and interpreting are already coordinated: if the receiver misreads a useful message, the sender is discouraged from sending it again. Setting and difficulty
They propose two learning approaches with centralised learning and decentralised execution. Reinforced inter-agent learning (RIAL) uses deep recurrent Q-networks with independent Q-learning, splitting the network into environment-action and message Q-values so it needs |U|+|M| outputs rather than |U||M|; it disables experience replay because other agents’ learning makes stored experience obsolete, and it can share parameters across agents. Differentiable inter-agent learning (DIAL) instead passes real-valued messages between agents during training, so the receiver’s error is backpropagated into the sender. RIAL and DIAL A discretise/regularise unit connects the two phases:
Here σ is the standard deviation of the noise added to the channel. The paper describes the unit as regularising messages during learning and discretising them during execution; it reports that its noise setting, σ=2, was essential for good performance, and that DIAL learns binary encodings with |m|=O(log|M|). Training details
Lazaridou and colleagues use a referential game. Two images are drawn, one is the target; the sender sees both and knows which is the target, sends one symbol from a fixed vocabulary of 10 or 100, and the receiver, seeing the images in random order, must point to the target. Both receive 1 for a correct guess and 0 otherwise, and the only supervision is communication success. Game definition Parameters are trained with the REINFORCE rule on the expected reward; writing the sender as sθ and receiver as rθ, the score-function form for a joint policy is
which is our restatement of the standard estimator applied to the game, not an equation printed in the paper. Training setup
Their results separate success from meaning. Every configuration reached 99% or 100% test success. An “agnostic” sender architecture used only two symbols in every configuration, while an “informed” sender that compares the two images dimension by dimension used between 10 and 58 symbols; a singular value analysis suggested the informed sender’s usage was not mere synonymy. Symbol-to-concept “purity” was above chance in all settings but at most 46%. Results table We also note a wording inconsistency in the version read: the text mentions the 1k rounds after 10k training games, while the table caption and training description refer to 50k training games.
Urn learners that invent different codes
Each agent keeps a table of positive weights, starting at 1. The sender’s weights ws,m define σ(m|s) by normalisation; the receiver’s weights define ρ(a|m) the same way. After a successful round, the weight of the message used in that state and the weight of the action chosen for that message both increase by the reward:
This is the simplest reinforcement rule we could write for the game. It is not RIAL, DIAL or REINFORCE, and its results do not predict neural-network behaviour. After training we compute success and mutual information exactly from the final probabilities, and record each run’s majority code: the most likely message for each state. We run 30 seeds per configuration.
"""Original Lewis-style signaling game with reinforcement urns.
Deterministic seeds, synthetic states, no neural network and no language model."""
import json
import math
import random
def draw(weights, rng):
x = rng.random() * sum(weights)
for index, w in enumerate(weights):
x -= w
if x < 0:
return index
return len(weights) - 1
def normalize(rows):
return [[w / sum(row) for w in row] for row in rows]
def success(sender, receiver):
"""Exact expected success with uniform states: sum_s pi(s) sum_m sigma(m|s) rho(s|m)."""
n = len(sender)
return sum(sender[s][m] * receiver[m][s] for s in range(n) for m in range(len(receiver))) / n
def mutual_information(sender):
"""I(S;M) in bits for uniform states and sender policy sigma(m|s)."""
n, k = len(sender), len(sender[0])
pm = [sum(sender[s][m] for s in range(n)) / n for m in range(k)]
return sum(sender[s][m] / n * math.log2(sender[s][m] / pm[m])
for s in range(n) for m in range(k) if sender[s][m] > 0)
def play(n_states, n_signals, rounds, seed, reward=1.0):
rng = random.Random(seed)
send = [[1.0] * n_signals for _ in range(n_states)]
act = [[1.0] * n_states for _ in range(n_signals)]
for _ in range(rounds):
state = rng.randrange(n_states)
signal = draw(send[state], rng)
guess = draw(act[signal], rng)
if guess == state:
send[state][signal] += reward
act[signal][guess] += reward
sigma, rho = normalize(send), normalize(act)
code = tuple(max(range(n_signals), key=lambda m: sigma[s][m]) for s in range(n_states))
return dict(success=success(sigma, rho), info_bits=mutual_information(sigma), code=code)
def summarize(n_states, n_signals, seeds=30, rounds=3000):
runs = [play(n_states, n_signals, rounds, seed) for seed in range(seeds)]
near = [r for r in runs if r['success'] > 0.95]
return dict(states=n_states, signals=n_signals, seeds=seeds, rounds=rounds,
mean_success=round(sum(r['success'] for r in runs) / seeds, 4),
min_success=round(min(r['success'] for r in runs), 4),
runs_above_0_95=len(near),
distinct_majority_codes=len({r['code'] for r in runs}),
distinct_one_to_one_codes=len({r['code'] for r in runs
if len(set(r['code'])) == n_states}),
mean_info_bits=round(sum(r['info_bits'] for r in runs) / seeds, 4),
max_info_bits=round(math.log2(min(n_states, n_signals)), 4))
if __name__ == '__main__':
pooling_sender = [[1, 0, 0], [1, 0, 0], [0, 1, 0]]
pooling_receiver = [[.5, .5, 0], [0, 0, 1], [1 / 3, 1 / 3, 1 / 3]]
permuted = [[0, 1, 0], [0, 0, 1], [1, 0, 0]]
permuted_receiver = [[0, 0, 1], [1, 0, 0], [0, 1, 0]]
print(json.dumps(dict(
no_signal_baseline_3=round(1 / 3, 4),
partial_pooling_example=dict(success=round(success(pooling_sender, pooling_receiver), 4),
info_bits=round(mutual_information(pooling_sender), 4)),
permuted_signaling_system=dict(success=success(permuted, permuted_receiver),
info_bits=round(mutual_information(permuted), 4)),
learned=[summarize(2, 2), summarize(3, 3), summarize(4, 4), summarize(3, 2)],
longer_training_3x3=summarize(3, 3, rounds=12000),
), indent=2))
Recorded output
{
"no_signal_baseline_3": 0.3333,
"partial_pooling_example": {
"success": 0.6667,
"info_bits": 0.9183
},
"permuted_signaling_system": {
"success": 1.0,
"info_bits": 1.585
},
"learned": [
{
"states": 2,
"signals": 2,
"seeds": 30,
"rounds": 3000,
"mean_success": 0.9774,
"min_success": 0.7792,
"runs_above_0_95": 26,
"distinct_majority_codes": 2,
"distinct_one_to_one_codes": 2,
"mean_info_bits": 0.9352,
"max_info_bits": 1.0
},
{
"states": 3,
"signals": 3,
"seeds": 30,
"rounds": 3000,
"mean_success": 0.9161,
"min_success": 0.6483,
"runs_above_0_95": 21,
"distinct_majority_codes": 10,
"distinct_one_to_one_codes": 6,
"mean_info_bits": 1.3689,
"max_info_bits": 1.585
},
{
"states": 4,
"signals": 4,
"seeds": 30,
"rounds": 3000,
"mean_success": 0.8625,
"min_success": 0.7036,
"runs_above_0_95": 12,
"distinct_majority_codes": 24,
"distinct_one_to_one_codes": 18,
"mean_info_bits": 1.6378,
"max_info_bits": 2.0
},
{
"states": 3,
"signals": 2,
"seeds": 30,
"rounds": 3000,
"mean_success": 0.6555,
"min_success": 0.6082,
"runs_above_0_95": 0,
"distinct_majority_codes": 6,
"distinct_one_to_one_codes": 0,
"mean_info_bits": 0.8162,
"max_info_bits": 1.0
}
],
"longer_training_3x3": {
"states": 3,
"signals": 3,
"seeds": 30,
"rounds": 12000,
"mean_success": 0.9399,
"min_success": 0.6616,
"runs_above_0_95": 25,
"distinct_majority_codes": 9,
"distinct_one_to_one_codes": 6,
"mean_info_bits": 1.4437,
"max_info_bits": 1.585
}
}The no-signal baseline for three equally likely states is 1/3. The hand-built partial pooling pair, in which two states share a message, reaches success 0.6667 and carries 0.9183 bits; a permuted one-to-one code reaches success 1.0 and 1.585 bits.
| States × messages, rounds | Mean success | Minimum | Runs above 0.95 | Distinct majority codes | Distinct one-to-one codes | Mean bits / maximum |
|---|---|---|---|---|---|---|
| 2×2, 3000 | 0.9774 | 0.7792 | 26/30 | 2 | 2 | 0.9352 / 1.0 |
| 3×3, 3000 | 0.9161 | 0.6483 | 21/30 | 10 | 6 | 1.3689 / 1.585 |
| 4×4, 3000 | 0.8625 | 0.7036 | 12/30 | 24 | 18 | 1.6378 / 2.0 |
| 3×2, 3000 | 0.6555 | 0.6082 | 0/30 | 6 | 0 | 0.8162 / 1.0 |
| 3×3, 12000 | 0.9399 | 0.6616 | 25/30 | 9 | 6 | 1.4437 / 1.585 |
Three patterns appear. First, codes are arbitrary: in the 3×3 game all six possible one-to-one codes occur across 30 seeds, and in the 4×4 game 18 of the 24 possible permutations occur. A protocol learned with one partner is therefore a convention with that partner. Second, larger games are harder for the same training budget: the share of runs above 0.95 falls from 26/30 to 21/30 to 12/30. Some runs end in partial pooling; the worst 3×3 run reaches only 0.6483 success, close to the 2/3 bound for a sender using two messages. Quadrupling training to 12000 rounds raises the 3×3 count to 25/30 but leaves a run at 0.6616. Third, when there are fewer messages than states, the bound binds: with three states and two messages, the mean success 0.6555 cannot exceed 2/3 and no run gets near 0.95. The learned senders are stochastic, but the bound still applies: with uniform states, each message contributes at most 1/N to S, because the sum over s of σ(m|s)ρ(s|m) is at most the sum of ρ(s|m), which is 1.
Mutual information tracks success but is not identical to it. In the 2×2 game the mean is 0.9352 bits out of 1, because some runs still have a sender that has not fully separated the states.
High reward is not yet a language
Communicative success only shows that sender and receiver are coordinated with each other. The agnostic sender in Lazaridou and colleagues reached 99% success with two symbols on 463 concepts; those symbols cannot be words for objects, and the authors therefore test meaning separately with purity and with a human interpretability experiment. Semantic analysis Our toy has the same limitation: a perfect 3×3 code is just a permutation.
Arbitrariness matters when partners change. Two pairs trained separately in our game often learn different permutations. A sender from one run paired with a receiver from another succeeds only on the states where their codes happen to agree, even if each original pair was perfect. Evaluating with held-out partners, held-out inputs and humans is necessary before calling a protocol general.
Our urn learner also differs from the deep methods in important ways. It sees a single discrete state, not a sequence of private observations; it has no exploration schedule, function approximation or recurrent memory; and its results depend on initial weights, reward size and training length. The finite runs here show tendencies at a fixed budget, not limits; we did not read or verify convergence theorems for this rule.
The papers we read are 2016 preprints, read in their arXiv versions. They established the framework and early experiments; they do not show that emergent protocols scale to open-ended human conversation, and we make no such claim.
Read a code from its statistics
-
Foerster and colleagues say agents have an incentive to communicate only when multiple agents and partial observability coexist. Why does full observability remove the incentive in their setting?
Answer: Messages have no direct effect on the environment or reward; their only value is to give another agent information it lacks. If every agent observes the full state, a message can tell the receiver nothing new, so optimising reward cannot favour any particular protocol.
-
For three equally likely states, a sender maps states 1 and 2 to message A and state 3 to message B. The receiver guesses state 1 or 2 with equal probability after A and state 3 after B. Compute success and mutual information.
Answer: Success is (0.5+0.5+1)/3=2/3≈0.6667. The sender is deterministic, so I(S;M)=H(M); message A has probability 2/3 and B 1/3, giving H=−(2/3)log2(2/3)−(1/3)log2(1/3)≈0.9183 bits. Both match the program.
-
A referential-game sender reaches 99% success using only two symbols for hundreds of object categories. Does that show the agents developed a word for each category?
Answer: No. With one target and one distractor per game, two symbols can encode a relative property that separates the pair, such as which image is higher on some learned feature. High success then coexists with symbols that do not name categories, which is why Lazaridou and colleagues measure purity and human interpretability separately.
-
You want an emergent protocol that a new agent or a person can join later. Which tests would you add beyond training success, and what would you change in the environment?
Answer: Test with partners trained from other seeds, on held-out inputs, and with human interpretation; report mutual information and symbol usage, not just reward. In the environment, make the code’s structure useful: vary distractors so that conceptual distinctions matter, and include grounding or human data when interpretability is the goal, as the referential-game paper does.
What to measure in an emergent protocol
The deep multi-agent reinforcement learning paper explains why protocols are hard to discover, introduces RIAL and DIAL, and shows that centralised training with gradients through the channel can help; RIAL and DIAL the referential-game paper adds the question of what the symbols mean and shows that architecture and inputs change the answer. Referential games
When reading a new result, check whether it reports success alone or also information, symbol usage, behaviour with new partners and inputs, and human interpretability. A code can be perfect for its pair of agents and still be a private convention.
Make a prediction, then check
With three equally likely states, a deterministic sender uses only two distinct messages. What is the maximum communicative success?
Learning objectives
- Define communicative success, mutual information and the pooling bound in a signaling game, and explain the arbitrariness of learned codes.
- Compare the learning setups of RIAL, DIAL and referential games, and explain why high reward does not imply interpretable language.
Prerequisites & connections
Explore related knowledge →References
- Learning to Communicate with Deep Multi-Agent Reinforcement Learning — scoped arXiv v2
Jakob N. Foerster; Yannis M. Assael; Nando de Freitas; Shimon Whiteson · 2016 - Multi-Agent Cooperation and the Emergence of (Natural) Language — scoped arXiv v2
Angeliki Lazaridou; Alexander Peysakhovich; Marco Baroni · 2016
Version1 · Editorial status: Recorded technical checks completed
View technical check record (AI)
Claude · 2026-12-02 · Independent AI check (Claude subagent, not the author); this is an automated AI technical check, not a human or expert review. Ran example.py and diffed against example.stdout.txt (identical); confirmed byte-identical code in both languages; recomputed the partial-pooling example (success 2/3, I(S;M)=H(M)=0.9183 bits), the k/N bound and the mutual-information bound, and re-derived the joint REINFORCE score-function gradient for the factorised policy s(m|x)r(t|m,x), which the article correctly labels as its own restatement (the paper states only the loss −E[R] and the REINFORCE rule). Re-read via pdftotext Foerster et al. arXiv v2 sections 4–5 and the σ=2 sentence in section 6, and Lazaridou et al. arXiv v2 sections 1–4 with Table 1 and the receiver/sender architecture paragraphs. Not checked: Foerster's experiments and appendix, Lazaridou section 5 and the human-experiment results beyond their announcement in the introduction.
- Re-derived the joint REINFORCE gradient ∇E[R]=E[R∇(log s + log r)] and confirmed it is labelled as the article's restatement, not a printed equation; the urn rule is presented as the article's simplest illustrative choice, not attributed and not claimed to converge.
- Re-read Lazaridou section 4 and Table 1: the text's '1k rounds following the 10k training games' really conflicts with '50k iterations' and the '50K training games' caption; 99–100% success, 2 symbols for the agnostic sender, 10–58 for the informed sender and purity at most 46% match the table.
- Checked Foerster: messages have no direct effect on environment or reward, the incentive needs multiple agents plus partial observability, sparse positive reward, RIAL's |U|+|M| outputs and disabled replay, the DRU definition, σ=2 being essential and |m|=O(log|M|) all match.
- Added that the k/N bound also holds for stochastic senders, completing the argument for the 3×2 result; zh and en compared section by section and match.
Source locations checked:
- Learning to Communicate with Deep Multi-Agent Reinforcement Learning — scoped arXiv v2 · pdftotext of arXiv v2 pp.1–6 (extraction lines 1–330): setting sec 4, RIAL sec 5.1 (|U|+|M| outputs, no experience replay, parameter sharing), DIAL sec 5.2 (DRU logistic of noisy message in training, indicator at execution, σ=2 essential sec 6, binary encoding O(log|M|)). Not read: results figures, appendix A pseudocode, NIPS version.
- Multi-Agent Cooperation and the Emergence of (Natural) Language — scoped arXiv v2 · pdftotext of arXiv v2 pp.1–5 (extraction lines 1–360): game definition sec 2, setup sec 3 (463 concepts, vocab 10/100, REINFORCE, 50k iterations), sec 4 and Table 1. Inconsistency: '1k rounds following the 10k training games' vs '50K training games'. Not read: section 5 grounding details, human experiment results, appendix.
Related topics