NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Expressivity of Emergent Languages is a Trade-off between Contextual Complexity and Unpredictability

Shangmin Guo, Yi Ren, Kory Wallace Mathewson, Simon Kirby, Stefano V. Albrecht, Kenny Smith

Introduction

This paper reveals that the "expressivity" of emergent languages—their ability to encode detailed information about the world—isn't just a matter of making tasks harder. Instead, it is a delicate trade-off between contextual complexity (how similar objects are in a given environment) and unpredictability (how much the context changes from trial to trial). The authors find that languages generalize best when they emerge from a "Goldilocks zone" of moderate context size, and they introduce a contrastive loss function to prevent AI agents from becoming "linguistically lazy."

The Challenge of Referential Games

In the field of emergent communication, researchers train AI agents to invent their own languages to solve "referential games." In a typical setup, a Speaker agent describes a target object, and a Listener agent must pick that object out of a lineup of distractors. A long-standing challenge in this field is understanding why some emergent languages are highly expressive and generalize well to new tasks, while others end up brittle and ambiguous.

Previously, researchers assumed that simply increasing the number of distractors—thereby making the game harder—would always force agents to develop better, more precise languages. However, this paper argues that the environment's structure is far more nuanced. The authors set out to define and measure "expressivity" and to identify the specific environmental pressures that force agents to develop sophisticated communication protocols.

Methodology and Architecture

The researchers utilized a standard referential game framework with a few key technical upgrades to better measure and encourage expressivity:

  1. Agent Architecture: They used deep learning agents where the Speaker (an MLP + LSTM) generates a discrete message, and the Listener (an LSTM + MLP) interprets it. They employed the Gumbel-Softmax trick to allow gradients to flow smoothly through the discrete communication channel.
  2. Contrastive Loss: Standard referential games often struggle with "message type collapse," a phenomenon where agents lazily use the same message for many different objects. To fix this, the authors adapted a contrastive loss function, popular in self-supervised learning. This forces the model to not only identify the target but also maximize the distance between the target's representation and all other distractors in a large batch.
  3. Measuring Expressivity: Rather than just looking at raw accuracy, the researchers measured expressivity via transfer learning. They trained a language in a "source game" and then tested how well a new listener could learn to use that fixed language in a variety of "target games."
Agent Architecture for Referential Games

To run these experiments, the study used a controlled synthetic dataset consisting of 10,000 unique inputs. Each input is a concatenation of four one-hot vectors (representing different attributes), each of length 10. This structured but simple environment allowed the researchers to precisely calculate "Hamming distances" between objects to define complexity and similarity.

Key Insights: The Complexity vs. Unpredictability Trade-off

The paper's core hypothesis revolves around the tension between complexity and unpredictability:

  • Complexity increases with context size. As you add more distractors to a lineup, the Listener is more likely to encounter an object very similar to the target, which requires the Speaker to use more precise language.
  • Unpredictability, however, decreases as context size increases. In a massive lineup, the "average" difficulty becomes stable. In very small lineups, the specific distractors change wildly from trial to trial, forcing the speaker to be more robust to variance.

The "Goldilocks" Zone

Because of this trade-off, languages developed in environments with moderate context sizes (e.g., "refer1000," meaning 1,000 items in the context) showed the highest expressivity. These environments were complex enough to require detailed descriptions, but unpredictable enough to require robust, generalizable communication.

Generalization Accuracy Across Source Games

Overcoming Message Type Collapse

The authors discovered that in "easy" games, agents are inherently lazy. They might only use 500 unique messages for 10,000 objects because that level of ambiguity is "good enough" to win the simple game. However, this high ambiguity fails catastrophically during transfer to harder tasks. By implementing contrastive loss, the agents were pushed to use significantly more unique message types (increasing from ~500 to ~5,000). This effectively mitigated "degeneracy" (many-to-one mappings) and led to much more disambiguated and expressive languages.

Key Results Summary

  • Monotonic Complexity: In controlled games with zero unpredictability (fixed batches), generalization performance increased linearly with context size.
  • The Peak: In standard games where context varies naturally, the best-performing languages consistently emerged from context sizes between 1,000 and 5,000. Languages from very small contexts (refer2, refer10) performed poorly on complex transfer tasks.
  • Quantitative Gains: Contrastive loss allowed agents to maintain high accuracy while nearly decupling the number of unique message types used.

Limitations and Future Work

The authors acknowledge that their study relies on synthetic, attribute-based data. While this provides excellent experimental control, it remains to be seen how these trade-offs manifest in more "natural" data modalities, such as raw images or continuous sensory input.

Furthermore, while the paper successfully measures how much information is encoded (expressivity), it doesn't deeply explore the structure of that information—specifically compositionality (e.g., whether the language develops distinct "words" for "blue" and "square" that can be recombined). The authors suggest that future work should investigate how redundancy and neural network architecture influence the specific mapping structures of these emergent protocols.

Summary updated

BibTeX
@inproceedings{guo2022expressivity,
  author = {Shangmin Guo and Yi Ren and Kory Wallace Mathewson and Simon Kirby and Stefano V. Albrecht and Kenny Smith},
  title = {{Expressivity of Emergent Languages is a Trade-off between Contextual Complexity and Unpredictability}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
}
Figure