Compositionality and Generalization In Emergent Languages

Rahma Chaabouni, Eugene Kharitonov, Diane Bouchacourt, Emmanuel Dupoux, Marco Baroni

Introduction

In the study of emergent communication, a central question is whether artificial agents naturally develop human-like language structures. Specifically, researchers investigate compositionality—the principle where the meaning of a complex expression is determined by the meanings of its constituent parts and the rules used to combine them (e.g., combining "red" and "square" to understand "red square"). Historically, the ability of a model to generalize to unseen combinations has been treated as synonymous with compositionality. This research challenges that assumption, demonstrating that while compositionality is a sufficient condition for generalization, it is not a necessary one.

Methodology: The Reconstruction Signaling Game

The authors employ a reconstruction signaling game involving two neural agents: a Sender and a Receiver.

  1. Sender: Observes an input object defined by a vector of attributes (e.g., color, shape, size) and generates a discrete message.
  2. Receiver: Receives the message and attempts to reconstruct the original attribute values.

To evaluate the structural properties of the emergent languages, three metrics are utilized:

  • Topographic Similarity (topsim): Measures the correlation between meaning distances and message distances.
  • Positional Disentanglement (posdis): Quantifies the extent to which specific message positions encode specific attributes.
  • Bag-of-symbols Disentanglement (bosdis): Measures attribute encoding independent of symbol position.

The experiments use a synthetic attribute-value space, varying from small (16 objects) to extremely large (100 million objects). A 90/10 train/test split ensures that the agents must generalize to novel attribute combinations.

Scaling and Generalization

A primary finding is that generalization is largely a function of environmental scale. In small environments, agents tend to memorize mappings, failing to generalize. However, as the combinatorial variety of the input space increases, generalization emerges naturally.

Test accuracy as a function of input size.

As shown in the figure above, there is a strong correlation ($\rho = 0.86$) between the size of the input space and the agents' test accuracy. This suggests that generalization is a byproduct of the pressure to compress information in a sufficiently complex environment.

Decoupling Compositionality from Generalization

Surprisingly, the study reveals that agents can achieve near-perfect generalization using "entangled" codes that lack clear compositional structure. These languages are functional for the trained agents but appear as "inscrutable" gibberish to human observers.

Correlation between compositionality metrics and test accuracy.

The scatter plots above demonstrate a lack of significant correlation between compositionality metrics (posdis, bosdis, and topsim) and test accuracy. While highly compositional languages (high metric scores) almost always generalize well, many non-compositional languages (low metric scores) also achieve high accuracy. Thus, compositionality is a "sufficient but not necessary" strategy for generalization in neural agents.

The Social Advantage: Ease of Transmission

If compositionality is not required for generalization, why does it exist in human language? The authors propose that the advantage is social rather than functional. Through transmission experiments, they found that compositional languages are significantly easier for new agents to learn.

When a "naive" Receiver is trained to understand a frozen Sender's language, the learning speed and final accuracy are strongly correlated with the language's compositionality (correlations up to $\rho = 0.90$). This advantage persists even across different neural architectures, such as a simple Feed-Forward Network learning from a complex Recurrent Neural Network.

Conclusion

This research clarifies the relationship between structure and function in emergent communication. While deep learning agents can generalize using messy, entangled codes, compositional languages provide a distinct evolutionary advantage: they are easier to transmit across generations and between agents with different internal architectures. This suggests that the systematicity of human language may be driven by the need for efficient social transmission rather than simple task performance.

Summary updated

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