Elamur Research

Compositionality and Generalization In Emergent Languages

Paper · 2020 · Rahma Chaabouni, Eugene Kharitonov, Diane Bouchacourt et al.

Summary

A speaker can describe an unfamiliar object using familiar words. The listener can work out what the speaker means because the words make contributions that carry over from one description to the next. Chaabouni and colleagues ask whether artificial agents that invent a communication code arrive at a similar solution. They distinguish the ability to communicate about an unseen combination, which they call generalization, from the use of message parts with stable meanings, which is the kind of compositionality they study. They also ask what happens when a new listener inherits a code that another pair of agents developed.

The authors train a sender and a receiver in a reconstruction game. Only the sender sees the input, which consists of categorical attributes such as color and shape. It sends a short string of discrete symbols, and the receiver tries to recover every attribute value. During testing, the sender and receiver encounter new combinations of familiar values. The paper measures how accurately the agents reconstruct these inputs and analyzes the codes they use. Its structural measures distinguish languages that assign different meanings to different message positions from languages in which symbol counts carry the information regardless of order. A broader measure asks whether similar inputs tend to have similar messages.

Successful pairs can achieve almost perfect test accuracy when their training environment offers enough variety in how attribute values combine. The study finds little consistent association between that accuracy and any of its compositionality measures when it compares runs with the same input and channel settings. In one configuration, codes that score very differently on all the structural measures can exceed 98% test accuracy. Strong positional structure is still informative in one direction. Among converged languages with a positional disentanglement score above 0.5, a proportion of 0.90 also exceeds 0.80 test accuracy. A close look at individual codes shows how the two findings can coexist. A code may give some positions recognizable jobs and rely on another position to resolve ambiguity. A much more entangled code can reach similarly high accuracy.

The results change when the authors keep a trained sender and replace its receiver. New receivers generally learn more quickly and generalize better when the inherited code scores higher on compositionality, especially on positional disentanglement. The association appears with receivers that share the original architecture, with smaller receivers, and with a feed-forward receiver. The original pair’s success therefore answers a different question from how readily another agent can acquire its conventions. In this game, learning to handle novel combinations leaves room for highly entangled codes. A code with more transparent structure has an advantage when the decoder has to be learned again.

Deep dive: Compositionality and Generalization In Emergent Languages

A signaling game tests how learned languages handle unseen combinations and why codes with clearer structure are easier for new receivers to learn. · about 35 minutes to read

The problem and its context

What an unfamiliar combination asks of a communication system

The experiment starts from a familiar feature of language. A listener can understand a description of something they have never encountered as long as they know the expressions used in the description and understand how they fit together. The same color term can apply to objects of many shapes. A term for a shape can apply to objects of many colors. Putting the terms together provides a way to communicate about a new combination without establishing an completely new convention for it. In linguistics this is an example of compositionality, a property of how the meaning of a complex expression depends on its parts and their arrangement. The paper focuses on this question within semantics.

Artificial agents playing a cooperative game have a reason to agree on messages. A sender benefits when its partner understands it, and a receiver benefits when it can reconstruct what the sender saw. But a training objective that rewards agreement leaves considerable freedom about the form of the agreement. The agents might settle on a symbol that consistently identifies a value across many contexts. They might instead distribute the information needed to identify that value across the whole message. A receiver trained alongside its sender has a chance to master either arrangement because it repeatedly encounters messages from the same evolving partner.

The authors use the word language for the code that emerges under these conditions. Its meanings are the inputs the agents need to communicate. Its forms are the strings produced by the sender. The research question concerns the relationship between these two sides of the code. A successful reconstruction shows that the receiver obtained the information needed for the task. To learn how that information is organized, a researcher has to inspect the association between messages and inputs or intervene on messages and observe the consequences.

Earlier studies sometimes treated successful reference to unseen combinations as evidence of compositionality. Chaabouni and colleagues give that observation its own name, generalization, and reserve compositionality for claims about the system behind the behavior. Imagine that the sender and receiver have encountered blue triangles and red circles and are now asked to communicate about a blue circle. Seeing the receiver recover the correct color and shape tells us that the pair has generalized. It leaves open whether the message has a piece the researcher could identify as meaning blue, another piece meaning circle, or a pattern whose interpretation depends on several symbols at once.

This distinction matters because the agents have learned both sides of the convention. If a researcher supplies a vocabulary and a set of combination rules, the intended contribution of each part is known in advance. Here, no dictionary tells the researcher which parts to inspect. The game produces observable strings, while the learned interpretation is distributed through the receiver. A measurement must identify properties of the code from examples of input and message pairs. It should also produce a graded result because a language can give some parts fairly consistent meanings while allowing other parts to carry information about several attributes.

What earlier measurements could reveal

The established quantitative approach described in the paper is topographic similarity. It compares distances among the things being communicated with distances among their messages. If two inputs share most of their attribute values, their messages might differ by only a small edit. If two inputs share little, their messages might require more edits to turn one into the other. A positive relationship across many pairs indicates that nearby meanings tend to have nearby forms.

That geometric observation can be valuable even when the code remains hard to read. Its breadth also makes it difficult to tell which convention produced the score. A message can be close to another because a symbol in a fixed slot changes. It can also be close because moving between the messages requires few insertions or deletions. The distance records the minimum editing cost. It does not identify the meaning of the edited symbols or tell the reader whether the same symbol plays a consistent role across contexts.

The authors develop two more specific measurements around a common intuition. One way to communicate a set of attribute values is to put distinct kinds of information in distinct slots, much as an intersective adjective and noun can contribute different parts of an object description. Under this strategy, a symbol’s position helps determine which attribute it describes. Another way is to assign meanings to symbols that remain stable regardless of where they occur. The paper compares that possibility to conjunctions whose members can trade places while expressing the same combination. For that strategy, the occurrences of symbols matter and their order can be ignored.

The methodological precedent comes from research on disentanglement in representation learning. In the setting of this paper, the input already has separate factors of variation. Color can change while shape stays fixed, and shape can change while color stays fixed. A disentanglement measure asks whether a feature of the message reflects one of those factors more strongly than it reflects the others. The authors adapt an information-gap approach to discrete strings. They can apply it to the sequence of symbols or to the counts obtained after removing their ordering.

The paper also places its experiment alongside earlier work on language transmission. Studies with people and computational agents had investigated whether repeated learning or exposure to new learners favors more structured languages. Li and Bowling had also studied ease of teaching for hand-crafted languages. Chaabouni and colleagues take codes that have already emerged, preserve what their senders say, and measure how another receiver acquires the mapping. This makes transfer a separate test. Learning together asks whether a pair can establish a working convention. Replacing the decoder asks how readily that convention can be learned once the sender’s behavior is fixed.

Why use a reconstruction game

The game is a variant of Lewis’s signaling game. The authors also describe it as extending an environment used by Kottur and colleagues. A single message must convey the information that the receiver needs. The receiver returns the attribute values themselves, so the target is the same regardless of what other objects could have been present. In games that ask the receiver to choose among alternatives, a message can succeed by communicating only the distinction needed to pick the target on that turn. The paper notes that earlier work found such languages sensitive to the distractors supplied.

Reconstruction lets the authors compare whole-input success with recovery of individual attributes. It also makes the selection of test items straightforward. The experimenter knows the full set of combinations and can withhold particular ones while leaving their constituent values available in training. That design puts a narrow demand on generalization. The agents have to extend a learned convention to a new arrangement of familiar categorical elements. The meaning space supplied to them already has the form needed to ask whether their messages reflect that arrangement.

The method, step by step

Constructing the meanings and the channel

An input is a tuple of attribute values. Readers can think of the attributes as properties of an object, such as its color and shape. The same setup also allows a more abstract interpretation. The paper gives the example of slots for an agent and an action, where particular fillers might identify a dog and barking. The mechanics are the same in either reading. Each slot has a particular value on a given trial, and the receiver has to predict the full tuple.

The authors encode each attribute value with a one-hot vector, in which the entry for the chosen category is active and the other entries are inactive. Concatenating these vectors gives the sender a single input vector with a distinct part for each attribute. The values are categorical. Their identities matter, and the way they are numbered supplies no scale of similarity. All combinations of the allowed values are possible in the full environment.

|I| = i_val ^ i_att

Here I is the set of possible inputs, and |I| is the number of members of that set. The variable i_val denotes how many values each attribute can take, and i_att denotes the number of attributes. The caret denotes exponentiation. The same number of choices is available for each attribute, so the number of possible tuples grows as attributes or values are added. The paper varies i_att from 2 to 4 and i_val from 4 to 100 across the environments it studies.

The sender expresses a tuple using a fixed-length sequence drawn from a vocabulary of discrete symbols. A symbol has no assigned meaning before training. It can acquire a different role at different positions, or several positions can jointly communicate something about an attribute. Fixed length determines how many decisions the sender has to make. Vocabulary size determines how many symbols are available at each of those decisions.

|C| = c_voc ^ c_len

Here C is the set of strings permitted by the channel, and |C| is its capacity measured in distinct strings. The variable c_voc is the vocabulary size, and c_len is the number of positions in each string. The caret again denotes exponentiation. The main setup lists vocabulary sizes of 5, 10, 50, and 100 and lengths of 3, 4, 6, and 8. The authors choose channels with at least as many possible strings as there are possible inputs. This is a capacity condition for assigning every input a distinct message. The actual conventions that training discovers can use the available strings in many ways.

The grid of settings includes channels that can be tested across input environments. The authors also omit some combinations with much more capacity than the input requires so each input setting has a broadly comparable range of channel configurations. The appendix describes between 13 and 15 tested channel configurations per input setting. The usual procedure uses 10 different initializations for a setting. Those repetitions matter because an identical input space and channel can yield different conventions as the networks learn.

Training and testing the reconstruction game

The steps in order.

Training and testing the reconstruction gameStep 1: Split attribute combinations into training and test sets1. Split attribute combinations into training and test setsStep 2: Give the sender a training input2. Give the sender a training inputStep 3: Generate a fixed-length string of symbols3. Generate a fixed-length string of symbolsStep 4: Predict each attribute value from the string4. Predict each attribute value from the stringStep 5: Update both agents from reconstruction loss5. Update both agents from reconstruction lossStep 6: Test greedily on held-out combinations6. Test greedily on held-out combinationsStep 7: Score message structure on training inputs7. Score message structure on training inputs

Learning to send and reconstruct a message

The standard sender and receiver each use a single-layer gated recurrent unit, or GRU, with a hidden state of size 500. A GRU updates a running internal state each time it processes an element of a sequence. For the sender, that state initially comes from a linear transformation of the input tuple’s vector. At each message position, another linear transformation of the current state determines the parameters of a categorical distribution over symbols. That distribution assigns probabilities to the available discrete choices. During training, the sender samples a symbol, feeds it back into the GRU, and continues until it has filled the message. At test time it selects the highest-probability symbol at each step. The GRU architecture comes from work on the RNN Encoder–Decoder.

The receiver sees the symbols in sequence. After reading the entire message, it uses its final hidden state to produce a prediction for each attribute. A linear layer supplies the outputs used for the separate distributions over values. This means that a receiver can use evidence from anywhere in the message before issuing any of its predictions. A symbol late in the message can change how it interprets an earlier symbol, and there is no requirement that the receiver read a designated position for each attribute.

î = i

The symbol i denotes the actual input tuple and î denotes the receiver’s reconstructed tuple. Equality means that the prediction matches the input on every attribute. The training loss is the average cross-entropy over the attribute predictions. Cross-entropy penalizes the receiver more when it places less probability on the correct value. Averaging across attributes gives training a signal from each value, while whole-input accuracy counts a trial as correct only when all the values are recovered.

The receiver’s prediction loss can be differentiated through the receiver network by back-propagation. The sampled message poses a different problem for the sender. Its output is a sequence of discrete choices, so the authors use REINFORCE to estimate how changing the probabilities of those choices would affect the expected objective. A message associated with a better reconstruction outcome provides evidence about which choices should become more likely. A running mean serves as a baseline in the gradient estimate and reduces variance. This optimization baseline is distinct from an experimental comparison system.

The sender’s objective also includes a term that favors higher entropy in its symbol distribution. Entropy describes how spread out the distribution is. Giving the sender an incentive to keep more than one choice plausible helps it explore possible messages during training. The authors use the hybrid of back-propagation and REINFORCE because they report that earlier work found it more robust in convergence. The optimizer receives the resulting gradients and updates the network parameters at a learning rate of 0.001 using Adam. The game is implemented in EGG, and the authors identify their experiment code as part of that toolkit.

Holding out combinations and scoring the code

For the main experiments the authors divide the distinct input tuples into 90% for training and 10% for testing. Entire combinations are held out. A training tuple can share a color with one test tuple and a shape with another. The challenge is to reproduce the held-out tuple from a message generated for that particular conjunction of values. The test accuracy of the existing pair measures how frequently that succeeds. The analysis of generalization uses runs that exceed 99.9% training-set accuracy. As a result, a low test score in that analysis can occur even when the two agents have learned to communicate about nearly all the combinations they trained on.

The authors compute all the compositionality scores using training inputs and their messages. The test score and the structure scores therefore summarize different evidence. The structure scores describe the code where the agents had examples on which to develop it. Test accuracy evaluates the trained pair on messages for combinations outside that set. A relationship between the two would indicate that a property measurable on familiar inputs also tracks what happens when the same pair handles novel ones.

For topographic similarity, the authors compare pairs of inputs by the overlap in their attribute values and compare the corresponding pairs of strings by minimum edit distance. That distance counts how many edits are needed to transform one message into another. They calculate a Spearman correlation between the two sets of pairwise distances. Spearman correlation compares rankings. In this application a higher score indicates that pairs farther apart in meaning tend to be farther apart in message form. The paper abbreviates the measure as topsim. The result can be high for several different ways of encoding the inputs.

Positional disentanglement, or posdis, instead begins with a particular slot. Each message contributes the symbol found at that position, alongside the attributes of the corresponding input. The authors measure how much information that symbol carries about each attribute. Mutual information measures the dependence between two variables. Here it captures how much observing a symbol reduces uncertainty about an attribute’s value across the messages being analyzed. The authors rank the attributes by that quantity and compare the highest with the next highest.

aʲ₁ = arg maxₐ I(sⱼ; a)

Here sⱼ is the symbol at position j, and a ranges over the input attributes. The function I is mutual information, with its two arguments separated by a semicolon inside the notation. The expression arg max returns the attribute that maximizes the quantity. The result aʲ₁ is the attribute most strongly associated with the symbol at position j. The runner-up is chosen by applying the same rule to the other attributes.

aʲ₂ = arg maxₐ≠aʲ₁ I(sⱼ; a)

The symbol aʲ₂ denotes the runner-up attribute for position j. The subscript on arg max restricts the search to attributes a other than aʲ₁, as indicated by ≠. The function I and the symbol variable sⱼ have the same meanings as above. Comparing the two highest values means that a position can receive a low score even if it contains considerable information. It will do so if its symbol gives substantial evidence about more than one attribute.

posdis = (1 / c_len) ∑ⱼ [I(sⱼ; aʲ₁) − I(sⱼ; aʲ₂)] / H(sⱼ)

Here posdis is the language’s positional disentanglement score. The summation sign ∑ collects the contributions indexed by message position j, and c_len is the message length in the paper’s normalization. The mutual information terms for the strongest and runner-up attributes are subtracted, as shown by −. The function H denotes entropy, so H(sⱼ) is the variability of the symbol at that position. Dividing by it scales the gap by the information the position could carry. The authors skip positions with zero entropy. A constant position provides no way to distinguish attribute values. A high score describes positions whose symbols devote much of their information to a particular attribute.

The calculation chooses a leading attribute separately for each slot. It can therefore recognize a language that spreads information about the same attribute over several positions. It does not require a dictionary that identifies which slots should be pooled in advance. A position can also use the same inventory of symbols as another position and still specialize in a different attribute. Its contribution is measured in the context of its own slot.

Bag-of-symbols disentanglement, or bosdis, applies the same idea after discarding positions. For each vocabulary symbol, the authors count its occurrences in the message and compare the count with each possible input attribute. If a symbol consistently expresses something about one attribute regardless of where the sender puts it, a count can carry the relevant evidence. Any permutation of a message produces the same counts, so the representation cannot distinguish strings by order.

bosdis = (1 / c_voc) ∑ⱼ [I(nⱼ; aʲ₁) − I(nⱼ; aʲ₂)] / H(nⱼ)

Here bosdis denotes bag-of-symbols disentanglement, and c_voc denotes vocabulary size. The index j in the sum now refers to a vocabulary entry, and nⱼ counts how frequently that entry occurs in a message. The attributes aʲ₁ and aʲ₂ are the most and next most informative for that count, as determined by mutual information I. The subtraction gives the gap between those two associations. The denominator H(nⱼ) is the entropy of the count, and division by it scales the gap by how much information that count can carry. The two disentanglement measures thus ask what a relatively simple feature of the string tells us, with each using a different feature.

Replacing the original listener

For the transmission experiment the authors first obtain languages by letting pairs learn the usual reconstruction game. They run 30 games for the input setting with 2 attributes and 100 values per attribute while varying the channels. They retain pairs with original generalization accuracy of at least 0.80. For each qualifying game they freeze its sender and train a fresh receiver from scratch, repeating the receiver training 3 times with different initializations. Freezing the sender makes the test about learning an established convention. A sender that could adapt might simplify its messages or change their meanings in response to the new partner.

One replacement is a GRU with hidden size 500, the same size and architecture as the original receiver. Another is a GRU with hidden size 50. The third is a two-layer feed-forward network with hidden size 500 and a rectified linear, or ReLU, nonlinearity. The feed-forward receiver sees a flattened one-hot representation of the message. It has access to which symbols occupy which positions, but receives them together as a vector and has no recurrent state for reading them in order. The authors measure learning speed by the area under the training accuracy curve over epochs. A receiver that attains higher training accuracy earlier will tend to have a larger area. They also measure the new receiver’s test accuracy after successful training. That second outcome asks whether learning the familiar examples led to an interpretation that works on held-out combinations.

Experiments and results

Generalization in larger input spaces

The main evidence comes from the game’s generated tuples. The experiments compare training runs across input and channel configurations and compare the codes that different initializations produce within a configuration. Several analyses use other settings of the same game as controls. The hand-crafted miniature languages serve to calibrate the structure measurements, and the replacement receivers provide comparisons for the transfer question. These comparisons address different sources of variation in a setup where every experimental pair is trained to reconstruct the same kind of input.

Among successful runs in the main grid, larger input spaces tend to yield higher accuracy on held-out combinations. The reported Spearman correlation between input-space size and test accuracy is 0.86, with p ≈ 0. The mean accuracies in the larger environments can be near perfect. The figure groups settings that have the same number of possible inputs but reach that size by using different numbers of attributes and values. Tests of those matched settings report p > 0.01. Within those comparisons the study finds no significant difference in accuracy attributable to which of those routes produced the size.

The broad relationship mixes several properties of the training environment. The main split uses a constant fraction of the possible tuples. Increasing the number of possible combinations therefore also increases the absolute number of examples made available for training. It also changes which contexts a particular value can appear in. A learner that encounters the same color across many shapes has more evidence about what stays constant when shape changes. In a small environment it may see enough examples to learn successful responses for the familiar tuples while seeing much less evidence for a convention it can extend.

The fixed-sample comparison isolates part of this issue. The authors sample 10,000 combinations from each of the environments in that comparison. The channels and number of attributes are held fixed at a message length of 3, a vocabulary size of 100, and 2 attributes. The number of available values per attribute is 100, 140, or 200. The sampled combinations occupy a smaller proportion of the possible grid as the number of values grows. The authors again train on 90% and test on 10% of the sampled items and ensure that every attribute value appears in training. Thus the lower-density settings still test new combinations of familiar values.

Test reconstruction accuracy at fixed sample count in the density experiment

The densest sampled input space yields the highest accuracy on held-out combinations.

Test reconstruction accuracy at fixed sample count in the density experimentDensity 0.25, 200 values per attribute: 22.8Density 0.25, 200 values per attribute22.8Density 0.51, 140 values per attribute: 66.7Density 0.51, 140 values per attribute66.7Density 1, 100 values per attribute (this paper): 92.7Density 1, 100 values per attribute(this paper)92.7
The numbers
System or settingaccuracy %
Density 0.25, 200 values per attribute22.8
Density 0.51, 140 values per attribute66.7
Density 1, 100 values per attribute (this paper)92.7

The fixed-sample test accuracies are 92.7%, 66.7%, and 22.8% at densities of 1, 0.51, and 0.25, respectively. In the main grid, more possible inputs go with better generalization. In the fixed-sample comparison, a larger universe of potential inputs spreads the same number of examples across more possible pairings, and generalization is poorer. The authors interpret these observations in terms of the combinations the agents actually encounter. Seeing a value at least once establishes its presence in training. Seeing it paired with a range of other values provides evidence that it can be used independently of a particular companion.

Channel capacity also changes the conditions for obtaining a successful language. In environments with at least 625 possible inputs, the authors take the smallest observed channel-to-input capacity ratio among converging runs for each configuration and report an average of 5.9, with a standard deviation of 4.4. This measures the available space of strings relative to the possible meanings. It is not a count of strings that the resulting code actually uses. An ideal compact code can be described with a channel just large enough to distinguish the inputs. The trained agents in those large environments required a larger channel even to reach the criterion for training success.

The capacity result looks different when all input sizes are pooled. The appendix reports a Spearman correlation of 0.14 between channel capacity and test accuracy in that aggregate analysis. In comparisons within large input environments, capacity needs to clear a threshold above the size of the input space to enable near-perfect accuracy. Further increases beyond the threshold coexist with strong generalization. A weak pooled association and a threshold within particular environments can both occur when the relative sizes of the channel and input space matter more than the channel’s absolute size.

How closely code structure tracks test accuracy

The structural metrics overlap, though they frequently give different rankings. Across the converging runs, the reported Spearman correlation is 0.08 between topographic similarity and positional disentanglement, 0.38 between topographic similarity and bag-of-symbols disentanglement, and 0.31 between the two disentanglement measures. All these associations have p < 0.01. The especially small association between topographic similarity and positional disentanglement fits the difference in what they measure. Similar messages for similar inputs can arise through many conventions. Positional disentanglement asks specifically whether a slot is informative about one attribute to a greater degree than it is about any other.

The paper observes that topographic similarity and bag-of-symbols disentanglement both tend to decline as channel capacity increases. Because capacity can also affect whether the game succeeds, the authors calculate correlations with test accuracy separately within each environment and channel configuration. Across 141 settings, only 4 show a significant relationship at p < 0.01 for any of the structural measures. The paper reports 3 significant settings for topographic similarity, 3 for positional disentanglement, and 1 for bag-of-symbols disentanglement. These are counts by metric, and a setting can figure in more than one count.

The authors examine one configuration in detail because it produces many generalizing runs. It has 2 attributes with 100 values each, messages of length 3, and a vocabulary of 100 symbols. Among runs with test accuracy above 98%, positional disentanglement ranges from 0.02 to 0.72. Bag-of-symbols disentanglement ranges from 0.03 to 0.4, and topographic similarity ranges from 0.11 to 0.64. Each range describes the variation in structure among highly accurate runs in the same setting. Even the upper ends fall below the theoretical maximum of 1. The scatter of results gives direct examples of accurate communication with very low scores, without requiring a comparison between different architectures or input spaces.

The authors also ask how frequently a high structure score accompanies good test performance. For each metric they select converged languages across configurations with a score above 0.5. They then report the proportion of that group with test accuracy above 0.80. The comparison concerns how informative a high score is as a sign of successful generalization. It does not give the proportion of all generalizing languages that reach that structure score.

Proportion above 0.80 held-out accuracy among converged languages scoring above 0.5 on each structure measure

A high positional disentanglement score accompanies strong generalization most often.

Proportion above 0.80 held-out accuracy among converged languages scoring above 0.5 on each structure measureTopographic similarity: 0.11Topographic similarity0.11Bag-of-symbols disentanglement: 0.50Bag-of-symbols disentanglement0.50Positional disentanglement (this paper): 0.90Positional disentanglement (this paper)0.90
The numbers
System or settingproportion
Topographic similarity0.11
Bag-of-symbols disentanglement0.50
Positional disentanglement (this paper)0.90

For positional disentanglement the proportion is 0.90. For bag-of-symbols disentanglement it is 0.50, and for topographic similarity it is 0.11. This is the empirical basis for the paper’s argument that positional compositionality can suffice for generalization. At the reported thresholds it supports a statement about likelihood within the sampled, converged runs. It leaves exceptions, and the metrics select different groups of languages. Together with the scatter of scores among accurate runs, the result gives an asymmetric picture. Strong position-specific structure is often a sign that the original pair generalizes, while successful generalization can arise across a wide span of structural scores.

How new receivers learn an established code

The replacement experiment produces a clearer association between code structure and performance. In the setting with 2 attributes, 100 values, messages of length 3, and a vocabulary of 100, the correlations are positive across the reported receiver architectures and structural measures. The paper gives separate correlations with learning speed and with the new receiver’s accuracy on held-out combinations. The first outcome concerns acquisition of the familiar portion of the code. The second concerns how well the learned interpretation extends to unseen tuples.

Correlation with learning speed for the replacement GRU of size 500 in the length 3, vocabulary 100 game

Positional disentanglement has the strongest association with faster learning by a fresh receiver.

Correlation with learning speed for the replacement GRU of size 500 in the length 3, vocabulary 100 gameTopographic similarity: 0.35Topographic similarity0.35Bag-of-symbols disentanglement: 0.71Bag-of-symbols disentanglement0.71Positional disentanglement (this paper): 0.87Positional disentanglement (this paper)0.87
The numbers
System or settingSpearman correlation
Topographic similarity0.35
Bag-of-symbols disentanglement0.71
Positional disentanglement (this paper)0.87

For the replacement GRU of size 500, the Spearman correlation with learning speed is 0.87 for positional disentanglement, 0.71 for bag-of-symbols disentanglement, and 0.35 for topographic similarity. With replacement test accuracy, the corresponding correlations are 0.80, 0.55, and 0.50. These values compare languages. For instance, 0.80 describes the association between a code’s positional disentanglement and a new receiver’s generalization. It is distinct from the original pair’s qualifying test accuracy of at least 0.80.

For the GRU of size 50, positional disentanglement correlates at 0.85 with learning speed and 0.81 with held-out accuracy. The corresponding correlations for the feed-forward receiver are 0.87 and 0.79. All entries in the main transmission comparison are significant at p < 0.01. The feed-forward result shows that replacement success can extend to a receiver without the recurrent sequence processing used by the original pair. It still has access to each symbol’s position through the arrangement of the input vector, so it can exploit regularities tied to particular slots.

The appendix repeats the transmission analysis across channel settings and reports positive significant relationships in most cases. The authors describe stronger relationships in some comparisons with larger receivers and shorter messages. A channel with a different message length can produce codes with different learning demands, and the strength of an association need not be uniform across all those conditions. In the detailed setting, positional disentanglement has the clearest relationship to both transmission outcomes. Topographic similarity remains informative for some outcomes, particularly replacement generalization, even though its association with learning speed is weaker there.

What the ablations show

Testing the structure measures with known codes

Before interpreting a learned string, it helps to know how the measures behave when the convention is fully visible. The authors construct 3 miniature languages for an environment with 2 attributes and 4 values per attribute. Messages have length 3, and the available vocabulary has 8 symbols. Each language pairs every input with a distinct message. This establishes a common level of expressivity for the exercise. The comparison concerns the organization of each mapping.

In the first miniature language, the beginning of the message encodes one attribute using a pair of symbols, and the last symbol encodes the other attribute. Each position varies with only one attribute, so positional disentanglement reaches 1. Topographic similarity is 0.82. Some changes in the first attribute affect more than one message position, although they still involve only that attribute. The overall order of edit distances therefore departs from the order of input distances. This example shows that the distance metric can penalize a mapping that cleanly separates the attributes.

The other two miniature languages both have topographic similarity of 0.75. Their disentanglement profiles differ. The second scores 0.79 on positional disentanglement and 0.13 on bag-of-symbols disentanglement. The third scores 0.43 on positional disentanglement and 1 on bag-of-symbols disentanglement. For the third, the count of each symbol can be associated with one attribute even though relevant symbols occupy different positions in different messages. The matched similarity scores show how two conventions can preserve comparable relationships between input distances and edit distances while making their information available in different forms.

This calibration explains why a single ranking would lose detail about the emergent languages. A researcher who wants to know whether positions specialize needs evidence about positions. A researcher who wants to know whether a receiver could ignore order needs evidence about symbol counts or about what happens when a message is reordered. The hand-crafted examples concern the scores themselves. The learned-language ablations then ask how those different properties relate to a receiver’s actual dependence on the symbols it gets.

Disrupting a largely positional code

The first learned code selected for close analysis has positional disentanglement of 0.70 and test accuracy above 99%. It comes from the setting with 2 attributes, 100 values per attribute, a 100-symbol vocabulary, and messages of length 3. A simple positional scheme could use length 2 in this setting by assigning one slot to each attribute and one symbol per value within a slot. The observed code uses a longer message. The authors examine whether the extra position merely repeats information or contributes to correct reconstruction.

The mutual information pattern suggests nearly independent roles for two positions. Position 2 has mutual information of 4.16 with attribute 2 and 0.19 with attribute 1. Position 3 has mutual information of 4.44 with attribute 1 and 0.13 with attribute 2. Position 1 has values of 1.10 with attribute 1 and 2.01 with attribute 2. That profile makes the first position less specialized, but the profile alone cannot establish what evidence the receiver uses when reading a complete message. A weak or mixed association with an attribute could still be useful in the contexts where the specialized position gives an ambiguous signal.

To test the receiver’s dependence on each position, the authors take messages the trained sender produced for training and test inputs. They retain cases the trained receiver decoded correctly before intervention, more than 99% of the messages in the pool. They then shuffle symbols across examples in selected positions and pass the altered strings through the same receiver. The reported percentages average 10 random shufflings, with standard deviations of approximately 0. This keeps the receiver’s learned interpretation in place while disrupting the alignment between particular symbols and the meanings they originally accompanied.

With position 2 preserved and the other positions shuffled, attribute 2 is reconstructed with 68% accuracy. The corresponding accuracy for attribute 1 is 1%, and joint accuracy is 0%. With position 3 preserved, attribute 1 accuracy is 89%, attribute 2 accuracy is 1%, and joint accuracy is 1%. Keeping only position 1 yields 1% accuracy on attribute 1, 3% on attribute 2, and 0% on the complete tuple. The two specialized positions therefore retain much of the receiver’s ability to recover their associated attributes, even when the other parts of the message carry misleading values from different examples.

The complementary intervention preserves the alignment of two positions and shuffles the remaining one. Shuffling position 2 leaves positions 1 and 3 intact and yields 100% accuracy on attribute 1. Shuffling position 3 leaves positions 1 and 2 intact and yields 100% on attribute 2. In either case, the less specialized position helps the receiver resolve the remaining cases that the most informative position cannot reliably handle on its own. When position 1 is the one shuffled, the receiver gets 89% on attribute 1, 69% on attribute 2, and 61% on the full tuple. The specialization of the other positions carries the code a long way, while the supplementary evidence makes a substantial contribution to exact reconstruction.

Vocabulary usage gives a concrete reason for some of that dependence. Position 2 uses 96 distinct symbols and position 3 uses 98, with each position largely responsible for an attribute that has 100 possible values. The authors describe the resulting convention as partly disentangled. Some values have to share a symbol in a specialized slot, and another position can supply evidence to resolve the ambiguity. Position 1 uses 91 symbols across the messages on the full training and test input sets. Its varied use and the shuffling results both indicate that it participates in the convention.

The authors quantify this complementary role with a measure of cue validity. For a given symbol in a particular position, they ask how confidently one could choose the most likely value of a particular attribute after seeing that symbol.

CV(sₚ, a) = maxₐ̄ P(ā | sₚ)

The function CV denotes cue validity. The variable sₚ is the symbol at position p, and a is an attribute being predicted. The variable ā ranges over the possible values of that attribute. The function P gives the conditional probability of a particular value ā given the observed symbol sₚ, with the vertical bar marking the condition. The maximum selects the largest of those probabilities. A symbol has high cue validity for an attribute if one candidate value is especially likely in the messages where that symbol occurs.

For attribute 2, position 1 has significantly higher cue validity in messages where position 2 gives a below-average cue. The analogous pattern holds for attribute 1 when position 3 gives a below-average cue. The authors report p ≈ 0 for both comparisons across the training and test messages used in the analysis. The result helps explain why the extra slot can be important in spite of its poor performance in isolation. Its evidence is especially helpful on messages where the specialized slot leaves more uncertainty. The authors mention contextual resolution of lexical ambiguity in natural language as a point of comparison, while treating the learned code as a much simpler system.

Disrupting a highly entangled code

The appendix compares that code with another from the same configuration. This second language also attains test accuracy above 99%, but its positional disentanglement is 0.05. Its mutual information profile is more even. For attribute 1, the mutual information at positions 1, 2, and 3 is 1.72, 1.95, and 1.74. For attribute 2 the corresponding values are 1.71, 2.16, and 1.77. The signal available from any one position is spread across the attributes. The code also uses 99, 99, and 100 distinct symbols in its respective positions across the full training and test input sets.

The shuffles reveal the consequences for decoding. In this language, keeping only position 3 gives 8% accuracy for attribute 1 and 5% for attribute 2, with 0% accuracy on both together. The same intervention in the more positional code preserved attribute 1 accuracy at 89%. Keeping only position 2 in the highly entangled code gives 4% on each attribute and 0% for the whole tuple. Under both interventions the receiver has lost much of the evidence needed to read either attribute.

Alterations that preserve two positions still cause large losses in the highly entangled code. After shuffling position 2, reconstruction accuracies are 30% for attribute 1 and 25% for attribute 2, with 8% for the complete tuple. After shuffling position 3, they are 15%, 20%, and 3%, respectively. This is compatible with a code whose receiver combines evidence from several positions to reach both attribute predictions. It also shows a functional difference between the two languages that their similar performance on intact held-out inputs would conceal. In the more positional code, an intact specialized position can preserve much of the meaning associated with its attribute when other parts are disturbed.

The authors perform another intervention by reordering the symbols within each message so that all of them move. That preserves the symbol counts for each message while changing the positions that carry those symbols. In both languages, exact reconstruction accuracy under this manipulation is 0%. The highly entangled language thus depends heavily on order even though its slots score poorly as independently interpretable carriers of particular attributes. Order sensitivity asks whether positions matter to the decoder. Positional disentanglement asks whether individual positions have separately identifiable jobs. A code can show considerable dependence on the former while exhibiting little of the latter.

Varying the learners and their environment

The appendix also addresses the possibility that poor generalization in a small input space reflects using too large a recurrent network for the amount of data. The authors compare GRU capacities in a small setting with 2 attributes and 10 values per attribute and a larger one with 2 attributes and 100 values per attribute. In the smaller environment, a single-layer GRU with a hidden state of size 100 still gives test accuracy of 0. In the larger environment, the authors observe good generalization even with two-layer GRUs of hidden size 500. This comparison supports the interpretation that the variation available in the input environment matters alongside the capacity of the agents.

The fixed-sample comparison tests a different explanation by holding the number of sampled inputs constant. Its coverage condition guarantees exposure to each value, including in the sparse environments. The results show that this guarantee alone leaves large differences in test accuracy. Having an opportunity to learn that a value exists and having repeated evidence about what it contributes across different tuples are distinct conditions. The latter is closer to the combinatorial experience the authors invoke to explain the strong performance in their richest environments.

Channel comparisons qualify another proposed explanation, that restricting bandwidth is what forces a productive code to emerge. The settings with ample channel capacity still produce highly generalizing agents once the channel crosses the range needed for reliable success. At the same time, the scores for topographic similarity and bag-of-symbols disentanglement are sensitive to channel capacity. These findings explain why the authors compare the structure and performance of languages within the same configuration. A change to the channel can influence available solutions and the distribution of scores at once.

Taken together, the controls probe several different parts of the result. The capacity and density comparisons concern the conditions under which the agents learn generalizing codes. The miniature languages explain what the measuring instruments detect. The shuffles test what information individual parts of an already learned message supply to its receiver. Keeping those levels distinct helps account for the paper’s central observation. A code can solve the held-out task well even when other tests expose substantial dependencies among its symbols.

Limitations

Limits the authors identify

The authors explicitly restrict their notion of composition to the kinds of meanings represented in the game. Inputs are collections of categorical elements, and the communication problem is to describe their combination. Positional and bag-of-symbols disentanglement are designed for ways of assembling those elements by juxtaposing symbols. Natural language also has expressions in which a part contributes a function that takes another expression as its argument. Measuring such organization would require a setup that expresses those relationships and a structural measure sensitive to them.

The study’s abstract environment also limits how far the generalization result can travel. The authors call for replication under different conditions. Their input representation exposes the component attributes directly to the sender, and the receiver gets explicit predictions for those attributes as its learning target. Success here demonstrates what agents can learn when the task already supplies a factorized meaning space. Establishing a shared code when the relevant factors themselves must be extracted from observations would add another learning problem.

The authors report that they informally reproduced their main findings with LSTMs, which took longer to converge. They were unable to get Transformers to play the game successfully in their attempts. The systematic architecture comparisons for the original game center on GRUs. The feed-forward result addresses a narrower question about replacing the receiver after the code has already been learned. It demonstrates that a different kind of receiver can acquire a fixed sender’s code under the tested conditions.

The authors also leave transmission across multiple generations for future work. A fresh receiver learns an unchanged sender’s convention, and the experiment measures that receiver’s performance. There is no subsequent stage in which the replacement learner becomes a sender whose productions shape another learner’s training. The suggestion that more structured languages may persist or spread follows from the observed acquisition advantage. Persistence in a changing population is a further outcome to test.

Finally, the paper recognizes that its structural measures often behave similarly in the major analyses in spite of their modest pairwise correlations. The miniature languages verify that the measures can distinguish specific patterns, and the strong positional results offer one empirical distinction. The highly entangled examples remain difficult for the authors to interpret in detail. Their evidence identifies some dependencies and rules out simple slot-by-slot explanations for the analyzed code. A fuller account of the conventions enabling successful reconstruction would require further analysis.

Limits of the experimental evidence

The reported generalization is recombination within a fixed setup. Agents encounter new tuples assembled from values that are already part of their environment. The number of attributes, the prediction format, and the channel stay the same between training and testing. Success in this split gives evidence about extending a convention across combinations. Generalization to a previously unavailable attribute value, a different arrangement of semantic roles, or a different prediction problem would require its own evaluation.

The findings also depend on which runs enter each analysis. The main accuracy correlations use runs with more than 99.9% training accuracy. That condition makes it possible to ask whether a functioning code extends past its training examples, but leaves unsuccessful training attempts outside the comparison. The transmission experiment adds an original test-accuracy threshold of at least 0.80. Its findings describe ease of acquiring languages that already generalize reasonably well with their original partners. The relationship across all possible emergent languages, including ones with poor original generalization, remains open.

The structural scores use summaries of individual positions, individual symbol counts, or pairwise message distances. Those summaries give different perspectives on the string, and each leaves out possible regularities. In particular, a low positional score can arise when information about an attribute becomes identifiable only after several positions are considered together. The low-scoring language’s sensitivity to reordering shows that its slots have consequences for decoding. Whether the receiver applies a systematic operation that is difficult to recover from individual positions remains unresolved. The evidence supports generalization with little of the compositional structure targeted by the paper’s measures.

The claim about sufficient positional compositionality needs the numerical conditions attached. The reported proportion of 0.90 applies to converged languages selected for a positional score above 0.5, with high generalization defined as test accuracy above 0.80. It describes a strong tendency in those runs. The comparison uses the same score threshold for different metrics, but the miniature languages and the pooled correlations show that those measures describe different kinds of regularity. The selected groups can differ in size and composition, so the proportions should be read as the outcomes of those particular selection rules.

There are also limits to what the ablations establish. Shuffling supplies the trained receiver with a message whose pieces may be inconsistent with each other. Such a message can be unfamiliar to the receiver even if each symbol is common in that position. An accuracy drop therefore tests dependence on the original arrangement under a particular disruption. It leaves several possible explanations for how the decoder combines its evidence. In the partly disentangled code, the alignment between the mutual information profile, the cue-validity analysis, and the attribute-specific recoveries gives a more detailed picture. For the highly entangled code, disruption establishes dependence more clearly than it identifies a decoding rule.

Freezing the sender controls one important part of the transmission comparison. It ensures that differences in how the new receivers learn do not arise from their senders adapting during retraining. The languages still come from separate training runs, and their compositionality varies along with other properties of the learned conventions. The study correlates structure scores with the outcomes of retraining. A direct estimate of the effect of changing the structure of an otherwise matched code would need a further intervention. The repeated positive results show that the structural measures, especially positional disentanglement, can serve as indicators of acquisition performance within this experiment.

The channel measurements have a related scope. Available capacity counts every string a sender could produce. A large channel can host a code that uses a small part of that space, and a message can contain redundancy or complementary evidence even when a more economical scheme exists in principle. The observed minimum capacity among successful runs characterizes the combinations of architectures, training procedures, and settings the authors explored. It gives evidence about how readily these agents discover successful conventions under those conditions. The representational capacity required for an ideal code is a separate question.

What came after

Experience Grounds Language cites the study in work on how experience grounds language. Its title points to a broader question than the reconstruction game. Chaabouni and colleagues give their agents a set of meanings with an explicit internal structure and ask what kind of communication develops around it. A question about grounding also concerns where the meanings available to a learner come from. The citation establishes a connection between these research questions. The particular result or method taken up by the citing work is unspecified.

Cite

Cite as Rahma Chaabouni, Eugene Kharitonov, Diane Bouchacourt, Emmanuel Dupoux and Marco Baroni. 2020. Compositionality and Generalization In Emergent Languages. Proceedings of the 58th 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/2020.acl-main.407

@inproceedings{chaabouni2020compositionality,
  title = {{Compositionality and Generalization In Emergent Languages}},
  author = {Rahma Chaabouni, Eugene Kharitonov, Diane Bouchacourt, Emmanuel Dupoux and Marco Baroni},
  booktitle = {Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.407},
  url = {https://doi.org/10.18653/v1/2020.acl-main.407}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/chaabouni-2020-compositionality-generalization-emergent-languages/