Defending Compositionality in Emergent Languages

Michal Auersperger, Pavel PecinaStudent Research Workshop @ NAACL 2022

This research, presented at NAACL 2022, addresses a fundamental debate in emergent communication: do artificial neural networks (ANNs) require human-like "compositional" language to generalize effectively? While some recent studies suggested compositionality was unnecessary for neural agents, Auersperger and Pecina argue that these conclusions were drawn from limited testing environments. By shifting the focus to out-of-domain (OOD) generalization, they demonstrate that compositionality is a vital prerequisite for robust knowledge transfer.

The Compositionality Gap

In linguistics, compositionality is the principle that the meaning of a complex expression is derived from its constituent parts and the rules used to combine them. This allows humans to understand novel sentences like "The neon penguin danced on the moon."

In emergent language research, agents (a Sender and a Receiver) are trained to communicate using symbols to solve tasks. Previous influential work (e.g., Chaabouni et al., 2020) suggested that agents generalize well even with non-compositional languages. However, the authors of this paper argue that this success is an artifact of testing on in-domain (IND) data—data that follows the same distribution as the training set. The true utility of compositionality only becomes apparent in out-of-domain (OOD) scenarios, where agents must handle familiar concepts in entirely new, unseen combinations.

Methodology and Architectural Bias

The researchers utilized a synthetic dataset of attribute-value pairs (e.g., color and shape) with 10,000 total objects. To test OOD generalization, they held out a specific symbol (the value '0') so it appeared in very few contexts during training.

They compared a standard GRU-based baseline against a "biased" architecture: a seq2seq encoder-decoder with a modified attention mechanism. This design introduces an inductive bias that encourages the model to process input attributes independently—a key step toward compositional thinking.

To quantify language structure, they employed three metrics:

  1. Positional Disentanglement (posdis): Consistency of message positions referring to specific attributes.
  2. Bag-of-symbol Disentanglement (bosdis): Whether specific symbols signal attributes regardless of position.
  3. Topographic Similarity (topsim): The degree to which similar inputs produce similar messages.

Key Insights: Necessary but Not Sufficient

A central finding of the study is that compositionality is a "necessary but not sufficient" condition for OOD success. As shown in the correlation analysis, agents that failed to develop compositional languages (low posdis and topsim) universally failed at OOD tasks. Conversely, while high compositionality was required for success, it did not guarantee it; some agents developed structured languages but still failed to generalize due to other factors like unstable embeddings.

Correlation between compositionality metrics and OOD accuracy.

Key Results

The performance gap between the standard and biased architectures was most visible when moving from IND to OOD testing. While both architectures performed well on in-domain data, the baseline models essentially collapsed when faced with out-of-domain combinations.

Model IND Test Accuracy OOD Test Accuracy
Baseline (Chaabouni et al.) 91% 0%
Proposed (Biased Architecture) 98% 42%
Training dynamics for IND vs. OOD accuracy and metric distributions.

As illustrated in the training dynamics, IND accuracy (top left) stabilizes quickly for most runs. In contrast, OOD accuracy (bottom left) is highly volatile and difficult to achieve, highlighting that OOD generalization is a much stricter test of an agent's underlying linguistic logic.

Conclusion and Future Directions

The study concludes that standard neural architectures do not naturally gravitate toward compositionality. Specific inductive biases, such as the attention mechanism used here, are required to nudge agents toward structured communication. While the 42% OOD accuracy achieved by the biased model leaves room for improvement, it represents a significant leap over the 0% achieved by non-compositional baselines.

Future work may explore how population pressure (increasing the number of agents) or meta-learning could further incentivize the emergence of robust, compositional languages capable of handling the "long tail" of rare data combinations.

Summary updated

BibTeX
@inproceedings{auersperger2022defending,
  author = {Michal Auersperger and Pavel Pecina},
  title = {{Defending Compositionality in Emergent Languages}},
  booktitle = {Student Research Workshop @ NAACL},
  year = {2022},
  doi = {10.18653/v1/2022.naacl-srw.35},
}
Figure