---
title: "Miss Tools and Mr Fruit: Emergent Communication in Agents"
description: "In the fruit and tools game, agents learn to exchange useful messages, yet a successful partnership can depend on who is speaking."
canonical: "https://research.elamur.ai/free/en/papers/bouchacourt-2019-miss-tools-mr-fruit-emergent/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/bouchacourt-2019-miss-tools-mr-fruit-emergent/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2019](https://md.research.elamur.ai/free/en/papers/2019/) / Miss Tools and Mr Fruit: Emergent Communication in Agents Learning about Object Affordances

# Miss Tools and Mr Fruit: Emergent Communication in Agents Learning about Object Affordances

Paper · 2019 · Diane Bouchacourt and Marco Baroni

**Authors:** [Diane Bouchacourt](https://md.research.elamur.ai/free/en/authors/diane-bouchacourt/) and [Marco Baroni](https://md.research.elamur.ai/free/en/authors/marco-baroni/) · **Year:** 2019 · **Venue:** Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[Cited by **3** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/bouchacourt-2019-miss-tools-mr-fruit-emergent/cited-by/) · Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/P19-1380/)
- [PDF](https://aclanthology.org/P19-1380.pdf)
- [DOI 10.18653/v1/p19-1380](https://doi.org/10.18653/v1/p19-1380)

## Summary

A pair of agents can learn to make good decisions together without learning a code that either agent can use with a different partner. Bouchacourt and Baroni investigate that distinction in a game about choosing a tool for a fruit. One player sees the fruit and the other sees the tools. Either player can make the final choice, and the same agent may play either role or take the opening turn. The reward depends on how well the chosen tool suits the fruit relative to the alternative. The players receive no instruction about what their symbols should mean.

The game makes communication useful even though much can be learned from the objects alone. Some tools tend to be useful across many fruits, and agents that cannot exchange symbols can learn to favor them. On the in-domain test set, agents with memory chose the best tool in 88.5% of games when the symbol channel was blocked and in 97.4% when it was available. On the transfer set, where the fruit categories were new to the players, the same settings reached 87.7% and 95.3%, respectively. The comparison shows what the exchange contributes beyond a strong default strategy.

The authors look at what the players do with the symbols and what an observer can recover from them. They test the effect of replacing a received symbol while keeping the listener’s circumstances fixed. With memory and the channel enabled, the resulting measure detected influence in both directions in 78% of games on each test set. In successful in-domain games, separate classifiers could also recover information about the fruit and both tools from the exchanges. Together, the tests show that the players listen to each other and that their messages carry information relevant to the decision.

The conventions were harder to transfer than the task skills. When an agent played with a copy of itself in place of its usual partner, best-tool accuracy fell to 67% on the in-domain test set and 65% on the transfer set. A classifier trained on conversations with the original assignment of agents to roles also lost its decoding advantage when those assignments were reversed on the same inputs. The authors interpret these results as evidence for distinct idiolects, or agent-specific ways of communicating. Symmetric opportunities to speak, listen and act were enough for a working partnership in this game, while a common code remained out of reach.

## Deep dive: Miss Tools and Mr Fruit: Emergent Communication in Agents Learning about Object Affordances

In the fruit and tools game, agents learn to exchange useful messages, yet a successful partnership can depend on who is speaking. · about 37 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What a successful game can establish

A cooperative task gives researchers a simple way to create a reason for agents to communicate. Divide useful information between the players, give them a channel, and reward them for achieving an outcome together. The hard part comes after training. A high score tells the researcher that the agents found a successful strategy. It leaves open how much the channel contributed, what the symbols signaled and whether the convention would survive a change of partner.

Those questions matter because the paper treats emergent communication as a way to investigate conditions that might favor language-like behavior. If an agent can solve a task by following a regularity in the environment, a successful run may reveal little about listening. If the agents use a symbol as a reliable shortcut for a particular choice, an analyst still needs evidence about how that symbol relates to the objects and their properties. An experiment designed to study communication therefore needs both a reason to communicate and a way to distinguish communication from other successful strategies.

The motivating picture comes in part from Tomasello’s account of cooperative interaction. The authors take the relevant pressure to be a practical one. A partner knows something that can help with a shared problem, and the payoff comes from what the pair does with that information. A fruit can be described accurately and the pair can still pick a poor tool. A short message that draws attention to a useful property may suffice for a good decision. The game is designed around that difference between identifying something and acting on what has been learned about it.

As a result, the paper asks about an affordance in relation to a particular object and choice. A tool’s features give it potential uses. Which use matters depends on the fruit, and which tool wins depends on the other available tool. A player who has seen the fruit may know something important about what needs doing. A player who has seen the tools may know whether the decision is easy or whether a fruit property could change it. This division gives each player a possible contribution even when one of them is more likely to make the final choice.

#### From reference to joint decisions

As the paper describes the field, earlier simulations explored how agents might develop conventions, including a drawing-and-guessing task in which the players had to establish a way of referring. A later line of neural-agent work concentrated on referential games. In a standard version, a sender sees a target and emits a message, then a receiver tries to identify the target. Under that design, successful reference is itself what earns the reward. A single message can be enough to play the whole episode.

Some previous games made the interaction richer. Evtimova and colleagues gave agents different kinds of views of the referent and allowed several message rounds. The players kept their assigned roles and turn order, and their reward still depended on identifying the referent. Das and colleagues studied an image-guessing task with distinct question and answer roles. As Bouchacourt and Baroni present it, that work showed the emergence of grounded communication through a cooperative exchange. Both settings make room for dialogue while assigning the participants different jobs in advance.

Negotiation offered a different route to a practical outcome. The paper discusses Cao and colleagues’ extension of the kind of item-allocation task used in [Deal or No Deal?](https://md.research.elamur.ai/free/en/papers/lewis-2017-deal-or-no-deal-end/). Both players see the items, receive private utility functions, and converse about how to divide the items. The values can change with the episode. In the fruit and tools game, the relationship between a tool property and a fruit property is deliberately stable across episodes. The agents can carry forward what they learn about a tool’s typical usefulness, then use the current exchange to adapt that knowledge to the particular case.

The authors also discuss work by Mordatch and Abbeel in which symmetric agents use flexible communication while pursuing goals in a maze. Navigation supplies a reason to talk and adds its own demands to the task. The fruit and tools game reduces the setting to a decision between visible alternatives on one side and a relevant object on the other. That narrower task gives the authors a way to analyze what the agents might be talking about, since they can name the candidate objects and test how much information about each one appears in the exchanges.

#### Why listening needs its own test

Previous work had already raised doubts about what a game’s score could tell researchers about its protocol. The authors cite studies in which task success could coexist with communication tailored closely to the training environment or with little effective use of the channel. Their earlier study [How Agents See Things](https://md.research.elamur.ai/free/en/papers/bouchacourt-2018-how-agents-see-things-visual/) belongs to the line of work they use to motivate closer inspection. A score judged only at the end of the game leaves much of the interaction during the game unexplained.

Lowe and colleagues’ distinction between positive signaling and positive listening gives the paper a more specific starting point. A sender shows positive signaling when what it says varies with its own state. A listener shows positive listening when a received signal affects what it does. The distinction is easy to see in the fruit and tools setting. A fruit holder could consistently send different symbols for different kinds of fruit. An outside observer might then infer the fruit from the symbols even if the tool holder makes its decisions from the tools alone.

Bouchacourt and Baroni extend the listening question to both directions. If the fruit holder changes the tool holder’s behavior, and the tool holder also changes the fruit holder’s behavior in the same game, the exchange has a form of mutual influence that a one-way signaling test would miss. The analysis belongs to pragmatics in the paper’s sense of the term. It examines what an utterance does in the interaction. A separate analysis addresses [semantics](https://md.research.elamur.ai/free/en/concepts/semantics/) by asking which parts of the situation are recoverable from the utterances.

Memory is another reason to look beyond the score. The paper describes earlier studies in which depriving a participant of memory helped make multi-turn communication useful or helped a meaningful code emerge. Such a restriction can make the channel necessary because the agents have fewer ways of retaining information on their own. The fruit and tools game lets the researchers examine whether communication still matters when both players can carry forward an internal state. It also makes room for an unexpected possibility. Remembering how a game has unfolded can make something other than the symbols informative.

### The method, step by step

#### How an episode works

Each episode presents a fruit and a pair of tools. One participant is assigned the fruit, and the other is assigned the tools. The paper calls these temporary roles Fruit Player and Tool Player. The opening position is randomized as well. Thus, who holds the fruit, who holds the tools and who makes the first move can vary. The participants themselves keep their identities across games, which later allows the authors to ask whether each has learned its own conventions.

On its turn, a player can select either indexed tool and end the game. The fruit holder can do this even though it receives no direct description of the tools. The player can also continue, in which case the other participant gets the turn and receives a symbol. Messages come from a vocabulary of size 10. The passage of the turn follows the decision to continue, so a player that ends the game makes a tool choice while any symbol produced on that turn goes unheard.

Consider the paper’s example of a peach. If the alternatives are an axe and a spoon, the spoon is preferable under the game’s scoring rule. If they are an axe and a hammer, the axe is preferable. The fruit holder could be in exactly the same situation from its own point of view in both games. The tool holder can tell the cases apart, and information about the fruit may help it choose. The task rewards the better tool among those offered, giving the same tool different consequences across decisions.

The players receive a common payoff. A successful outcome means the tool they select attains the higher utility, with a tie also sufficient. The calculation is performed by the game environment. The agents learn from the payoff and the inputs on their side of the game. An episode also has a turn cap, so the players have to finish in time if their exchange is to earn a reward.

How the fruit and tools game proceeds The steps in order.

#### What the objects represent

The objects are described by properties. The authors select 16 tool categories and 31 fruit categories, using human-elicited descriptions from the collections of McRae and colleagues and Silberer and colleagues, with some extensions. The fruit representations use 11 features and the tool representations use 15. These features include properties such as having a pit, being small and having a blade. A feature vector gives each object a value for each property available to that kind of object.

A category description supplies typical values, and sampling produces the instances the agents encounter. The authors rescale the elicitation frequencies to the interval below and manually revise some values they consider counterintuitive.

```
[0, 1]
```

The brackets indicate that the endpoints are included. The values 0 and 1 are the lower and upper limits on the rescaled category properties. These category values enter the generation of instances in different ways depending on the feature.

For a binary property such as having a pit, the authors draw from a Bernoulli distribution with probability given by the category value. This is a draw that decides whether a particular instance has the property. For a continuous property such as smallness, the draw comes from an interval around the category value.

```
[µ − 0.1, µ + 0.1]
```

Here µ is the category value for the continuous property. The minus and plus signs place the lower and upper endpoints on either side of that value, and 0.1 is the amount by which each endpoint differs from it. Uniform sampling gives equally wide portions of the interval equal probability. The result is that a player trained on a fruit category can encounter a new instance of that category with a different property profile.

The utility function uses interactions between fruit and tool properties. It first expresses the input properties in terms of a smaller set of functional features, such as hardness for a fruit or cutting and breaking for a tool. The paper illustrates this with an apple whose crunchiness is 0.7, resulting in a high hardness value. A knife with a blade value of 1 receives a high cutting value, which makes it useful for the hard apple. The scoring step brings together what the fruit calls for and what the tool can do.

Some object properties contribute to the descriptions without affecting utility. A tool’s handle is the paper’s example. Keeping such features means that the inputs contain information an agent can observe even though it has no bearing on the payoff. The property vectors therefore provide both clues and distractions. The agents have to learn which properties matter for their decisions, and the semantic analysis later has to allow for the possibility that the players describe an object through a useful feature rather than signaling its category directly.

Utility is computed for the sampled instances. A general preference for one tool can work well when its useful features recur across the fruits in the environment. Individual instances still matter because the scoring rule evaluates the tools against the particular fruit in the game. The regularities across games and the conditions in a single game can therefore support different kinds of knowledge. The former can be learned over many episodes, while the latter sometimes has to come from a partner.

#### What each player does on a turn

The agents share an architectural design. Each learns how to use either kind of private input, how to receive a symbol and how to act at different points in the exchange. The game assigns the roles through the objects each agent receives. The paper specifies that the agents must learn to recognize which role they have been given. The input to an individual player is thus always the fruit or the tool pair for that episode, even as the player’s state changes during the conversation.

At the start, a linear layer and a tanh transformation convert the private input into an embedding. An embedding here is a vector of learned numerical features derived from the player’s input. The linear layer combines the incoming values, and tanh adds a nonlinear transformation. The resulting vector accompanies the player throughout the episode. It is available each time the player has to interpret a symbol or choose what to do.

In the paper’s example, agent A starts at turn t = 0, so A acts on even turns and B acts on odd turns. On an ordinary turn for A, the most recent message came from B on the preceding turn. A’s own previous state is from its last opportunity to act. A recurrent neural network processes the incoming symbol. Its output is joined to the stored state and the private-input embedding. This gives the next stage access to what A saw, what it retained and what its partner just said.

The authors call that next stage the Body. It applies a linear transformation followed by tanh and produces a new internal state. That state goes to separate decoders for messages and choices. The message decoder is a recurrent neural network initialized from the new state. In this game it produces a distribution over individual symbols. The choice decoder is a linear layer followed by a softmax, which converts its output into probabilities over the available actions.

```
cᴬₜ ∈ {0, 1, 2}
```

Here c is the choice, the superscript A identifies agent A, and the subscript t marks the current turn. The membership sign ∈ means that the choice takes one of the values in braces. The value 0 continues the game, 1 selects tool 1 and 2 selects tool 2. Either tool selection ends the episode.

```
p(mᴬₜ | sᴬₜ)
```

Here p denotes a probability distribution. The variable m is the symbol A produces, and s is A’s new internal state. The superscript A marks both as A’s and t places them on the same turn. The vertical bar means that the symbol probabilities are conditioned on the internal state.

```
p(cᴬₜ | sᴬₜ)
```

Here p is the distribution over actions. The variable c is the choice of A at turn t, and s is that agent’s internal state on that turn. The vertical bar makes the state the condition for the choice probabilities. Both decoders can respond to the same new state, so what a player is prepared to say and what it is prepared to do are both available to the analysis of listening.

A special symbol stands in for a previous message at the opening, before anyone has spoken. Fixed dummy states initialize the agents’ memories. The messenger and decision-maker then alternate whenever the current player elects to continue. In a version with memory removed, the fixed state is supplied at every turn. This leaves the private input and the current message available to the player. In a version without symbol exchange, each delivered message is replaced by the fixed dummy symbol, while the continue and stop decisions still operate.

#### How the choices are scored and learned

At a terminal choice, the environment evaluates each available tool against the fruit. The condition for a rewarded choice is as follows.

```
U(selected tool, fruit) ≥ U(alternative tool, fruit)
```

Here U is the utility function. The selected tool and the alternative tool are the actual instances in the episode, and fruit is the instance assigned to the Fruit Player. The greater-than-or-equal sign includes a tie among the successful outcomes. The argument order emphasizes that each evaluation concerns a particular fruit and a particular tool.

```
R = 1 if the choice meets the utility condition, and 0 otherwise
```

Here R is the reward received by both players. The value 1 denotes a successful episode and 0 denotes an unsuccessful one. The latter includes reaching the turn cap while the choice is still unresolved.

```
Tₘₐₓ = 20
```

Here T is the turn limit, with the subscript max indicating the maximum allowed for an episode. The value 20 is that cap in turns. A conversation can end earlier as soon as either player selects a tool.

During training, the agents sample from their message and action distributions. This lets them experience different choices and utterances even in comparable situations. The authors use REINFORCE to pass the signal from the shared final reward back to the decisions that led to it. The supervision comes from the success of the completed interaction. There is no supplied symbol for a particular fruit category, property or tool, and the players receive the same outcome even when one handles the final choice.

At test time the decoders take the most probable message and action rather than sampling them for ordinary play. This is separate from the later Message Effect calculation, which examines the players’ output distributions. A deterministic action during a test episode can therefore coexist with a diagnostic that measures how the probabilities would respond to different received symbols.

#### What is held out for testing

The training and evaluation plan distinguishes new instances from new fruit categories. Of the 31 fruit categories, 21 belong to the in-domain set. The validation and transfer sets contain 5 categories each. The in-domain portion is itself divided into training and test samples. The agents learn on the in-domain training partition, and the authors monitor convergence on validation fruit. Final performance is reported for the in-domain test partition and the transfer set.

A peach illustrates the in-domain case. Training and testing can both contain peaches, with distinct sampled instances. A nectarine illustrates transfer because its category is reserved for that test. The agent can still process a nectarine because the fruit feature space stays the same. It can use what it has learned about combinations of properties on a category whose instances it has yet to encounter during training.

The authors generate 210, 000 in-domain training samples and 25, 000 samples for each of the other sets. They balance sampling across fruits and tools, and the tool categories are shared across the sets. A pair of tools in a game always comes from different categories. The paper announces plans to release the dataset with the complete category property vectors along with the code. The split tests generalization through familiar kinds of features and tool choices, with the fruit category providing the main change on transfer.

#### How to test whether a player listens

The authors’ Message Effect measure asks what would happen to a listener’s next possible actions and utterances if the incoming symbol were replaced. Imagine that A speaks and continues the game. The analyst can run B’s response to that actual symbol, then ask how B would respond to alternative symbols at the same point. B keeps the same private input and the same previous state. A’s decision to continue is fixed so that B has a turn in every version of the comparison.

This is an intervention on the message. It differs from collecting episodes where another symbol happened to occur. In ordinary episodes, the symbol may vary with the fruit, the tools or the history of play. Comparing across those episodes can therefore mix a change in symbol with a change in the listener’s circumstances. Holding those circumstances fixed lets the authors attribute a change in the response distribution to the substituted input in their game’s causal account.

The response contains both what the listener chooses to do and what it is prepared to say.

```
zᴮₜ₊₁ = (cᴮₜ₊₁, mᴮₜ₊₁)
```

Here z is the response pair for agent B on the turn after A speaks. The superscript B marks the listener, and the subscript t + 1 is the turn following A’s turn t. The parentheses group c, B’s action, with m, B’s outgoing symbol. The comma separates the pair’s components.

The paper first describes the response probability conditional on the listener’s newly computed state. It then writes that probability in terms of the inputs that determine the state.

```
p(zᴮₜ₊₁ | mᴬₜ, cᴬₜ, sᴮₜ₋₁, iᴮ)
```

Here p denotes the conditional distribution over B’s response pair z on turn t + 1. The bar separates that response from its conditions. These are m, A’s message at turn t, and c, A’s choice at that turn, together with s, B’s state from its previous turn t − 1, and i, B’s private-input embedding. Superscripts A and B identify which agent each quantity belongs to. In the remaining expressions, A’s decision to continue and B’s previous state and embedding are held fixed and left implicit.

For a comparison distribution, the authors combine the listener’s responses to different possible inputs. Each replacement symbol contributes to the mixture according to an intervention distribution chosen by the analyst.

```
p̃(zᴮₜ₊₁) = ∑ₘ′ p(zᴮₜ₊₁ | m′) p̃(m′)
```

Here p̃ on the left is the mixture distribution over B’s action and message at turn t + 1. The summation sign ∑ runs over possible replacement symbols m′. For each replacement, p gives the probability of the response pair conditional on that symbol, and p̃ of m′ is the probability assigned to the replacement under the intervention. The primes distinguish alternative messages from A’s actual message. In the experiments the intervention distribution is uniform over the vocabulary.

The comparison is between the listener’s response when it receives the actual message and this mixture of responses under intervention. The authors use Kullback–Leibler divergence, abbreviated KL, to express the discrepancy.

```
MEᴬ→ᴮₜ = KL(p(zᴮₜ₊₁ | mᴬₜ) ∥ p̃(zᴮₜ₊₁))
```

Here ME is Message Effect at turn t, and the arrow from A to B gives the direction of influence. The first distribution inside KL is B’s response to A’s actual symbol m on that turn. The second is the mixture p̃ over B’s next-turn responses to replacements. The double vertical line separates the arguments of the divergence. The order matters because the measure assesses how the probabilities of responses under the actual message compare with their probabilities under the mixture.

The calculation uses sampled response pairs and sampled counterfactuals. The paper writes the response draw as follows.

```
zᴮₜ₊₁,ₖ ∼ p(zᴮₜ₊₁ | mᴬₜ)
```

Here z with index k is a sampled action-and-message pair for B at turn t + 1. The symbol ∼ means that the pair is drawn from the distribution on its right. That distribution conditions B’s response on the actual message m from A’s turn t, with the other conditions still fixed. The number of response draws is K = 10, with K denoting the sample count.

```
m′ⱼ ∼ p̃(m′)
```

Here m′ with index j is one sampled replacement for A’s message. The draw sign ∼ gives the distribution used to obtain it, and p̃ is the uniform intervention distribution. The number of counterfactual draws is J = 10, with J denoting the count of replacement samples.

For each response draw, the printed algorithm expresses its counterfactual probability using the replacement messages.

```
p̃(zᴮₜ₊₁,ₖ) = ∑ⱼ p(zᴮₜ₊₁,ₖ | m′ⱼ) p̃(m′ⱼ)
```

Here the summation runs over the J indexed replacement draws j. The left side is the quantity used for the sampled response k in the counterfactual calculation. Within the sum, p gives the probability of that same response when B receives replacement m′ with index j, and p̃ of the replacement is its intervention weight. The earlier mixture expression defines the target distribution over possible symbols. This step of the algorithm presents the corresponding calculation indexed by sampled counterfactuals.

```
MEᴬ→ᴮₜ = (1/K) ∑ₖ log[p(zᴮₜ₊₁,ₖ | mᴬₜ) / p̃(zᴮₜ₊₁,ₖ)]
```

Here ME again denotes the estimated influence of A on B at turn t. K is the number of actual-response draws and the sum runs over their indices k. The factor 1/K takes their average. The logarithm, written log, applies to the ratio inside the brackets. Its numerator is the probability of the sampled response under A’s actual message, and its denominator is the counterfactual response quantity for the same pair. The slash denotes division. The estimator therefore uses the responses B tends to give under the actual message and checks how their probabilities change when that message is replaced.

#### From a turn effect to a dialogue

A large effect on one turn establishes influence in a particular direction. The authors’ bilateral measure adds a requirement at the level of the game. Each agent has to exert a sufficiently large effect at some point in that episode. The qualifying turns can be different.

```
∃ t, t′ such that MEᴬ→ᴮₜ > θ and MEᴮ→ᴬₜ′ > θ
```

Here ∃ means that there exist turns t and t′ satisfying the conditions. A and B are the agents, and each arrow indicates the direction of the turn’s Message Effect. The greater-than signs give the strict cutoff, with θ denoting the threshold. The authors set θ = 0.1. A game satisfying both conditions receives a positive bilateral score, and aggregating these scores gives the percentage of games showing bilateral influence.

The analysis also measures influence by player role and by opening position. This lets the authors distinguish a Fruit Player effect from a first-player effect even when the participants’ identities stay the same across episodes. For these role and position measures, effects are first averaged over messages during each test game, and the authors then report averages across the games.

The opening dummy input participates in the intervention analysis. If the opening player relies on the input to recognize the start of an episode, replacing it can change that player’s behavior. Including this sensitivity affects the reported influence towards the opening position. Symbols generated when an agent stops are excluded because the other player never hears them. These conventions matter when interpreting very short exchanges, where a dummy input can account for much of the influence that is measurable.

#### How the authors look for meaning

The semantic test begins with conversations from successful in-domain test games. The authors train classifiers with the fruit category, the category of the first tool or the category of the second tool as separate prediction targets. A classifier uses the symbolic exchange to predict a category. The target is the object’s identity at category level, even though the agents themselves received sampled property vectors.

Suppose the objects are an apple, a knife and a spoon, as in the paper’s example. A classifier that frequently recovers the apple category is picking up some regularity linking the exchanges to the fruit. A separate classifier may recover the knife or spoon. This design gives each position in the game a distinct prediction task, so a signal about the first tool cannot automatically count as successful recovery of the second one.

The classifiers are trained from different portions of the conversation. One setting uses both players’ utterances, another uses only utterances from the Fruit Player, and a third uses only those from the Tool Player. A statistical baseline makes guesses based on the training category distribution. This gives a check against success that can be obtained from how often categories occur. The probes complement the intervention analysis because recoverable content and a causal effect on the listener answer different questions.

### Experiments and results

#### Choosing the better tool

The main evaluation crosses the availability of symbol exchange with the availability of memory. It includes agents with both features enabled, with either feature individually removed and with both removed. The paper reports the mean and standard error of the mean across training seeds that finish above 85% on validation performance. In these results, task performance is the percentage of test games in which the best tool is chosen. The standard errors describe the precision of the reported means across the qualifying runs.

Best-tool accuracy on the in-domain test set Symbol exchange improves task accuracy with either memory setting, and the agents with both features achieve the highest score.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| No symbol exchange, no memory | 84.83 |
| No symbol exchange, with memory | 88.5 |
| Symbol exchange, no memory | 96.9 |
| Symbol exchange, with memory (this paper) | 97.4 |

The strongest in-domain result is 97.4 ± 0.12 with communication and memory. With the channel available and memory removed, the result is 96.9 ± 0.32. With memory available and the channel blocked, the agents reach 88.5 ± 0.11. Removing both leaves 84.83 ± 0.09. These are percentages of in-domain test games with the best tool selected. The best-performing setting demonstrates that the agents can make use of both sources of information in the same task.

The baseline with both features removed is already well above the paper’s chance reference of about 50%. The underlying choice is often possible from the tool pair alone because the game’s utilities favor some properties across many fruits. A player can learn that a certain kind of tool generally makes the better choice when matched against another type. The game thus makes communication compete with a substantial amount of knowledge acquired directly from experience.

Best-tool accuracy on the transfer fruit test set The advantage of the symbol channel carries over to fruit categories held out from training.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| No symbol exchange, no memory | 84.0 |
| No symbol exchange, with memory | 87.7 |
| Symbol exchange, no memory | 94.5 |
| Symbol exchange, with memory (this paper) | 95.3 |

On transfer fruit, the full agents achieve 95.3 ± 0.16, compared with 94.5 ± 0.37 when they exchange symbols without memory. The blocked-channel conditions achieve 87.7 ± 0.16 with memory and 84.0 ± 0.11 without it. The ordering of the settings carries over to this test, and each mean stays close to its counterpart on the in-domain fruit. The outcome shows that the agents’ practical skills can transfer to new fruit categories represented in the same feature space and presented with familiar tool categories.

The authors also report that experiments with raw or normalized scalar utility as the reward yielded similar performance. The binary outcome used in the main comparison is therefore one of several reward representations they tried. The percentages in the charts retain the paper’s criterion of choosing the better available tool, which makes the main conditions directly comparable even though the players can differ in how they get to the decision.

#### How often the symbols matter to both players

The task results show that the channel helps. The Message Effect results indicate how the agents use it. With communication and memory, 78 ± 2.55% of in-domain games and 78 ± 2.65% of transfer games qualify as bilateral. With communication and no memory, the corresponding rates are 88 ± 2.49% and 89 ± 2.24%. The setting with the best accuracy and the setting with the most often detected bilateral influence are different.

Games with bilateral message influence on the in-domain test set Mutual influence is frequent when the symbol channel is open and is detected most often when previous states are removed.

**The numbers**

| System or setting | games with bilateral communication % |
| --- | --- |
| No symbol exchange, no memory | 1.4 |
| No symbol exchange, with memory | 3.8 |
| Symbol exchange, with memory | 78 |
| Symbol exchange, no memory (this paper) | 88 |

With the channel blocked, bilateral scores are low. In the setting without memory, the reported rates are 1.4 ± 0.31% on the in-domain set and 1.3 ± 0.40% on transfer. With memory, they are 3.8 ± 0.61% and 4.6 ± 0.68%, respectively. The intervention diagnostic still asks what would happen if a different input reached the listener in these settings. Its small positive rates can therefore be read alongside the actual channel condition, in which every delivered symbol input is the fixed dummy.

The role-specific results reveal an asymmetry. On the in-domain test set with symbols and memory, the mean Message Effect from Fruit Player to Tool Player is 3.0 ± 0.29, while the reverse effect is 1.8 ± 0.22. Without memory, those in-domain means are 5.0 ± 0.39 and 3.9 ± 0.38. The table marks the Fruit Player’s influence as significantly greater than its reverse in these comparisons. A symmetric assignment procedure can therefore yield systematically different contributions for the two roles within an episode.

Choice behavior gives this asymmetry some context. In the full setting the Tool Player makes the terminal choice in 81 ± 2.94% of in-domain games and 81 ± 3.00% of transfer games. With symbols and without memory, the shares are 85 ± 2.09% and 83 ± 2.56%. The authors suggest that the player who sees the tools has particular reason to listen carefully to what the fruit holder says. This player has the alternatives in view and typically has responsibility for the decision.

With symbols and memory, the average recorded conversation length is 2.7 ± 0.11 turns in each test set. Without memory and with symbols, it is 2.16 ± 0.08 in-domain and 2.21 ± 0.10 on transfer. These values are another view of interaction and serve a different purpose from bilateral scores. The players can use a longer exchange while relying less heavily on the incoming symbol at a given turn, especially if previous state and the course of play supply useful context.

#### What can be recovered from the exchanges

The semantic classifiers use successful in-domain conversations. With both agents’ utterances available, they reach 37 ± 1.70% accuracy for fruit category, 31 ± 1.21% for the first tool and 24 ± 1.07% for the second tool. For those same targets, the category-distribution baseline gives 5.786 ± 0.00%, 8.76 ± 0.01% and 7.682 ± 0.01%. Each target is recoverable above its baseline from what the two agents say during a successful game.

Access to just the Fruit Player’s messages yields 37 ± 1.75% accuracy on the fruit. It gives 23.3 ± 0.66% on the first tool and 16.7 ± 0.51% on the second. With just the Tool Player’s messages, the corresponding results are 14.1 ± 0.79% for fruit, 32 ± 1.17% for the first tool and 25 ± 1.04% for the second. These accuracies are means across successful training seeds, reported with standard errors. Each role’s speech makes its own side of the game especially accessible to the probes.

Categories from the partner’s side are also recoverable above the baseline. This is compatible with players responding to information they have already obtained. It is also compatible with associations among inputs in the successful games used for probing. The paper raises the possibility of something like a question, where an utterance might convey information about what its speaker wants to learn. Category accuracy alone leaves those accounts open.

The experiments also show that the first and second tool are recovered with different accuracy. Both tools appear in the semantic evidence, even though they are unequally accessible to the probes. This matters because the task depends on the alternative as well as the chosen tool. The individual targets establish that information about either position can be found in the conversation. An additional attempt to predict the full fruit-and-tools triple with a single classifier produced low accuracy, though it still exceeded its baseline.

#### Changing who speaks the code

Two tests examine whether the agents’ learned conventions are interchangeable. In the first, the authors replace B’s architecture modules and input embedders with the corresponding components from the trained A. A then plays with a copy of itself. The two copies still receive different private inputs in their assigned roles. The substitution asks whether a player that can act in either role has also learned a code that it can use with another instance of itself.

Best-tool accuracy under self-play falls to 67% on the in-domain test set and 65% on transfer. These results are below those of the blocked-channel agents, although above the chance reference. A shared code would give the authors reason to expect the substitution to preserve coordination. The loss indicates that familiarity with both roles does not by itself teach an agent to communicate smoothly with a copy of itself.

The second test targets the exchanges themselves. A semantic classifier learns from conversations in which A sees the fruit and B sees the tools. At evaluation, the researchers swap those roles while keeping the game inputs the same. Decoding then falls to the level of the category-distribution baseline. The result supports the authors’ idiolect interpretation because the messages produced after the swap no longer support the category predictions learned on the original role assignment. High transfer accuracy with the original partner and poor transfer across role-specific speakers are therefore compatible findings.

### What the ablations show

#### Strong play without symbols has a simple source

The setting without communication or memory shows what the arrangement of the task itself affords. Nearly every final decision comes from the Tool Player. With neither feature, the Tool Player ends 99.4 ± 0.63% of in-domain games and 99.6 ± 0.56% of transfer games. The Fruit Player generally continues. If it starts, its pass allows the Tool Player to decide on the next turn. If the Tool Player starts, it can immediately choose using what it knows about which tools typically work better.

The conversation statistic in that condition matches the observed strategy. The authors describe a length of 0 when the tool holder starts and immediately selects a tool, and 1 when the fruit holder has to pass first. The test-set means are 0.508 ± 0.01 in-domain and 0.52 ± 0.01 on transfer. A short episode can thus reflect an efficient use of a learned default. To understand the value of the messages, the relevant comparison is with agents that already know something useful about the world of the game.

This setting also exposes a measurement detail. The paper initially finds a larger effect toward the opening player than toward the other position. In a game that ends on the opening move, the researchers can intervene on the dummy message delivered to the first player. There will be no next turn on which to measure the opposite direction. When Fruit Player starts and passes, both directions can enter the calculation. The treatment of the opening together with the distribution of game lengths can create a positional pattern even in the absence of actual utterances reaching a partner.

The authors check that explanation by removing single-turn games from the comparison. The apparent extra influence toward the first player disappears. The result gives a concrete example of how turn structure can affect an average over message interventions. The opening intervention measures the sensitivity of a real input to the agent, and its interpretation depends on whether the resulting effect is being used to describe opening behavior or a conversation between players.

#### The channel adds value beyond the strong default

Comparing the blocked and open channel while holding the memory setting fixed isolates the effect of making symbols available as part of the game. Accuracy improves in both comparisons. The increase is accompanied by longer conversations and much higher bilateral communication rates. These observations connect the return from the channel to a change in the way the agents interact. They have a reason to continue, and both receive symbols that affect their subsequent behavior.

The same comparison clarifies the directional asymmetry. When agents can communicate, nearly all conversations extend beyond the first turn, including those opened by the Tool Player. Both role directions can then be assessed in the ordinary exchange. The greater influence of the Fruit Player is consequently supported by episodes where both sides have an opportunity to affect their partners. The paper links it to the fruit holder’s private knowledge and the tool holder’s usual responsibility for choosing.

The separation between role and position reveals a further detail. With communication and without memory, the in-domain effect from the second position to the first is 5.0 ± 0.38, while the reverse is 3.9 ± 0.29. The authors report that the advantage for Fruit Player influence is especially pronounced when the Fruit Player occupies the second position. They interpret the positional pattern through that uneven distribution of role influence. The result illustrates why a position average can reflect the experienced demands of the roles even when the positions were assigned randomly.

#### Memory supports another way to convey information

The contrast between the two blocked-channel settings shows what agents can do when they remember the previous course of an episode. In-domain best-tool accuracy rises from 84.83% without memory to 88.5% with it. The Tool Player’s share of final choices drops to 87.3 ± 1.34% in the setting with memory. In-domain conversation length reaches 1.50 ± 0.06 turns. On transfer, the corresponding tool-holder choice share is 85.8 ± 1.48% and length is 1.46 ± 0.06.

An example inspected by the authors shows how continuing can become informative. A Tool Player can learn to pass when the first tool has a round end. A Fruit Player that gets the next turn can use that event as evidence about the tools. It can combine the evidence with what it knows about the fruit, then either select a tool or wait for further information. In this strategy, the fact that the conversation reached a particular point carries information.

A game with the symbol channel blocked therefore still offers a rudimentary way to signal through behavior. The continuation decision determines whether a partner gets another opportunity to act, and a player with memory can distinguish stages of the exchange. Removing the symbol input tests the contribution of those symbols in a setting where passing remains available. This makes the baseline more demanding and helps account for the improvement seen when memory is added to the blocked-channel agents.

With communication and memory together, both kinds of interaction can matter. The authors observe turn-based strategies in the communicating agents and suggest that they help explain the lower Message Effect and bilateral rates in the full setting compared with the communicating setting without memory. A state that captures the history of play gives the listener another source of evidence. A lower measured effect of replacing the immediate symbol can coexist with more successful choices and longer exchanges.

The positional effects also become almost equal when both features are enabled. On in-domain games, the first-to-second mean is 2.4 ± 0.29 and the second-to-first mean is 2.4 ± 0.22. The authors suggest that memory may help the opening player identify its position in the episode, reducing its reliance on the opening dummy symbol. The observed rates show that bilateral communication survives when the agents retain their own states. In this game, removing memory is unnecessary for the agents to make active use of the symbol channel.

#### Switching partners and switching roles test different dependencies

The self-play intervention preserves one agent’s ability to receive either object input and occupy either position. It changes the relationship between the player who generates a symbol and the player who interprets it. A partner trained alongside A has learned to respond to A’s speech. A copy of A brings the listener that was trained in the presence of B. Even when the copy is competent at the task, the choice of speaker can disrupt this pairing.

Self-play performance remains above chance, which leaves open more than one account when considered by itself. Parts of the two codes might align. Alternatively, the agents might still get a reasonable fraction of decisions right from stable tool preferences. The below-baseline comparison with communication-deprived agents is relevant here, since those agents show how much success ordinary world knowledge can support even when the delivered symbols are uninformative.

The role-reversal probe addresses the same ambiguity from the decoding side. Keeping the fruit and tools fixed while changing which agent handles each role preserves the things the classifier has to identify. The fact that its accuracy falls to the statistical baseline gives the authors reason to favor a learned task strategy as the explanation for above-chance self-play. Taken together, the comparisons support coordination tied to the trained partners and their own ways of expressing what they see. A player can generalize its choice strategy across fruit categories while depending on a familiar speaker for the most effective exchange.

### Limitations

#### Limits discussed by the authors

The symbols are deliberately small units. A player can produce one symbol on a turn, and the conversation can extend across turns. The authors chose this design to make the exchange easier to analyze. They identify sequences within a turn as a direction for later experimentation, including the possibility of compositionality. That question concerns whether parts of a message can make systematic contributions to the meaning of a larger expression. The experiments here give evidence about role-specific messages and turn-by-turn exchange, with the richer question left open.

The semantic analysis supports reference at the level of recoverable object information. The authors describe that conclusion tentatively. In particular, the fact that a Fruit Player’s messages reveal something about a tool, or that a Tool Player’s messages reveal something about the fruit, has several plausible explanations. Correlations among the game inputs could supply clues. A player could also be responding to its partner in a way that begins to resemble a question or another familiar conversational move. Different tests would be needed to identify the function of such a message.

The authors also flag the asymmetric recovery of the tools as an open question. Being able to decode both tool categories rules out an account in which the conversation carries information about only one of the alternatives. The accuracy ordering leaves open why one position is easier to recover from the utterances. Category classification provides evidence about the presence of information and gives limited access to the way the players organize it.

The paper treats the emergence of a common convention as a problem for further investigation. It discusses Graesser and colleagues’ finding that conventions in their signaling games benefited from diffusion across a larger community. Bouchacourt and Baroni propose testing a larger population in the fruit and tools game. They also suggest giving agents access to their own outgoing messages as an input, which could encourage consistency between producing and interpreting the same symbol. The reported idiolect evidence concerns pairs trained under the original arrangement.

Further plans concern the scale of the task and the inputs available to the agents. The authors propose larger and more demanding datasets and consider more realistic perceptual inputs. The reported game starts from manually selected and rescaled properties and scores a decision using a designed utility function. Its results show what agents can learn from a controlled representation of everyday affordances. The authors leave open how the same approach would work when relevant properties have to be inferred from richer observations.

#### Limits of the experimental evidence

The transfer result has a specific scope. Test fruits can belong to categories held out from training, but the feature vocabulary, tool categories and relationships used by the utility function carry over. A transfer game therefore requires the agents to apply learned behavior to a new category description within a familiar decision framework. It leaves open performance on held-out tools, new kinds of properties or environments where a previously useful property has a different consequence.

The reported means are also conditional on successful training seeds, defined through the validation criterion. They characterize how completed, qualifying runs behave on the test sets. They give limited evidence about how frequently a fresh training run reaches that criterion. This matters especially when comparing strategies. A strong mean for successful runs can establish that a behavior occurs and that it works in those runs without characterizing how reliably the learning procedure reaches it across initializations.

Message Effect is local to a turn. It records how the listener’s next response distribution changes under an intervention, with its private input, prior state and opportunity to act held fixed. A change can be concentrated in the next message, the choice or both. The bilateral rate then applies a threshold to effects in each direction. It establishes mutual sensitivity somewhere in the episode and leaves the full trajectory of influence, including how a particular change affects the eventual choice, to be examined separately. The task-level channel ablation supplies complementary evidence at that larger scale.

The intervention distribution also defines the comparison. The paper uses a uniform distribution of replacements. Some replacements may be unusual given what the original speaker has seen or what has already happened in the conversation. Their effects show how the listener responds to inputs permitted by the symbol vocabulary. They may differ from the effects of alternative utterances the speaker would naturally have produced in that situation. The diagnostic is most precise when read as sensitivity to the specified substitutions.

The semantic probes answer a different question again. They test whether a classifier can infer an object category from exchanges in successful in-domain games. A category prediction can draw on any regularity in those exchanges. The probes do not provide a dictionary of meanings, show that a given symbol names an object directly, or establish that a listener uses exactly the distinctions a probe learns. Since input properties vary within categories, a message about a functional feature could help identify a category even when the category itself has no dedicated name in the code.

Conditioning the semantic analysis on successful games matters for the same reason. The selection focuses attention on interactions where the pair picked the better tool, which is appropriate for asking what information is available in successful communication. It leaves open how messages differ in failed episodes and how often the same regularities appear across the entire test set. The paper confines this analysis to in-domain games, so the strong task performance on transfer fruits does not on its own establish that the same category-level decoding patterns would hold there.

Finally, the tests of shared conventions address interchangeability in the studied pairs. A self-play failure can reflect a mismatch in symbols, how they are interpreted, or when the agents expect to hear them. The role-reversal probe adds evidence at the level of recoverable object content, and the interpretation of distinct idiolects fits both results. The warranted claim is about the insufficiency of symmetric roles and positions in this training arrangement. The conditions that would make a shared convention more likely across a broader population remain open.

### What came after

A later systematic survey cites the fruit and tools game in the broader field of [dialogue systems](https://md.research.elamur.ai/free/en/topics/dialogue-systems/). The scope indicated by the survey’s title is deep-learning approaches to dialogue, while Bouchacourt and Baroni’s study addresses the narrower question of how a task-trained pair learns to exchange information without being taught a vocabulary. The citation places the experiment in that broader literature. It establishes a connection at the level of a survey, with the survey’s treatment of the individual findings and any reuse of the game or its measures unspecified. [Recent Advances in Deep Learning Based Dialogue Systems](https://md.research.elamur.ai/free/en/papers/ni-2022-recent-advances-deep-learning-based/)

## Cite

Cite as Diane Bouchacourt and Marco Baroni. 2019. Miss Tools and Mr Fruit: Emergent Communication in Agents Learning about Object Affordances. Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/p19-1380](https://doi.org/10.18653/v1/p19-1380)

```bibtex
@inproceedings{bouchacourt2019miss,
  title = {{Miss Tools and Mr Fruit: Emergent Communication in Agents Learning about Object Affordances}},
  author = {Diane Bouchacourt and Marco Baroni},
  booktitle = {Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/p19-1380},
  url = {https://doi.org/10.18653/v1/p19-1380}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
