Emergent Communication: Generalization and Overfitting in Lewis Games

Mathieu Rita, Corentin Tallec, Paul Michel, Jean-Bastien Grill, Olivier Pietquin, Emmanuel Dupoux, Florian Strub

In the quest to build AI that can truly collaborate, researchers often turn to Lewis Signaling Games. In these games, two agents—a speaker and a listener—must develop a shared "language" from scratch to solve a cooperative task. However, a persistent problem has haunted this field: the languages these agents "invent" are often brittle, nonsensical to humans, and fail to generalize to new situations.

A new paper from researchers at INRIA, DeepMind, and Meta AI provides a mathematical diagnosis for this failure and offers a surprisingly simple cure.

TL;DR

The authors demonstrate that the failure of emergent AI languages to generalize is primarily caused by co-adaptation overfitting. Instead of building a robust communication protocol, the speaker learns to exploit the specific quirks of a particular listener. By analytically decomposing the game's objective and regularizing the listener's convergence, the researchers recover languages that are more compositional and generalize significantly better to unseen data.

The Problem: Multi-Agent "Inside Jokes"

When we train two neural networks to communicate, we typically provide them with a joint reward for success. While they often achieve high accuracy on the training task, the resulting "language" usually lacks compositionality—the ability to combine parts (like "red" + "square") to describe a novel concept ("red square").

Previous research suggested this might be due to a lack of "embodiment" or the simplicity of the training environments. This paper argues a different point: it’s a classic machine learning problem—overfitting—but manifesting in a multi-agent context. The agents develop highly specific protocols, akin to "inside jokes," that work perfectly on the training set but fall apart the moment a new object is introduced.

Methods: Decomposing the Loss

The authors’ core contribution is a mathematical decomposition of the standard Lewis Game loss ($\mathcal{L}_{\theta,\phi}$) into two distinct terms:

  1. Information Loss ($\mathcal{L}_{info}$): Measures how much information the speaker’s message actually carries about the object. It is minimized when every message refers to a unique object.
  2. Co-adaptation Loss ($\mathcal{L}_{adapt}$): Measures the "gap" between the current listener and an optimal listener. It quantifies how well the listener is currently tuned to the speaker’s specific, idiosyncratic protocol.

To study these components, the researchers introduced a Probing Method.

Diagram of the Probing Method, which freezes the agents to train a probe listener, allowing the decomposition of the loss into information and co-adaptation components.

By freezing the speaker and listener networks, they trained a separate "probe listener" to optimality. This allowed them to estimate the true information content of the messages independent of the current listener's flaws.

They then tested three training regimes for the listener to control this co-adaptation:

  • Continuous: The standard method of training the speaker and listener simultaneously.
  • Partial: Re-initializing and training the listener for a fixed number of steps for every speaker update.
  • Early Stopping: Re-initializing the listener but stopping its training as soon as it starts to overfit on a validation set.

Key Insights: The Listener is the Bottleneck

The experiments, conducted on both synthetic datasets (to measure exact compositionality) and real-world image datasets (CelebA and ImageNet), revealed several critical insights:

  • The "Inside Joke" Effect: The authors found that while Information Loss generalizes well to unseen data, Co-adaptation Loss overfits rapidly. The speaker stops trying to make the language "logical" and instead starts exploiting the listener's specific neural weights.
  • Weak Listeners Make Strong Languages: The speaker’s language is shaped by the pressure to be understood. If the listener is "too good" (overfitted to the training data), the speaker doesn't need to develop a structured, compositional language. Preventing the listener from fully converging forces the speaker to develop a more robust, "easier to learn" protocol.
  • Compositionality is a Tool: The paper shows a strong correlation between compositionality and generalization, but only when co-adaptation overfitting is actively controlled.

Key Results

By balancing the two loss terms and down-weighting the co-adaptation term, the authors achieved significant improvements in the emergent language.

Plots demonstrating that while information loss generalizes, co-adaptation loss overfits over time (left). Down-weighting this co-adaptation loss significantly improves overall test accuracy (right).
  • Generalization Boost: Controlling for co-adaptation yielded a 15-point gain in generalization accuracy on unseen data.
  • Optimal Training Window: In the "Partial Listener" experiments, they found a "Goldilocks zone" for listener training steps. Too few steps caused underfitting; too many caused overfitting.
  • Standard Regularization Works: Classic techniques like Dropout and Weight Decay applied only to the listener actually improved the speaker's language, though they didn't perform quite as well as the "Early Stopping" method.
  • Real-World Scaling: These findings held true on complex visual tasks. Controlling the listener's convergence consistently improved the agents' ability to communicate about images they had never seen before.

Limitations and Future Work

The primary limitation of this approach is computational cost. The "Early Stopping" and "Partial" listener methods require frequently re-initializing and training a listener from scratch, which is significantly slower than standard joint training.

Future work will need to focus on finding more efficient ways to regularize the co-adaptation process without full re-initialization. Additionally, while current metrics for compositionality work well for synthetic data, the authors note they struggle to capture the nuances of language structure in complex, image-based games, highlighting a need for better linguistic evaluation metrics in AI.

Summary updated

BibTeX
@inproceedings{rita2022emergent,
  author = {Mathieu Rita and Corentin Tallec and Paul Michel and Jean-Bastien Grill and Olivier Pietquin and Emmanuel Dupoux and Florian Strub},
  title = {{Emergent Communication: Generalization and Overfitting in Lewis Games}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=qqHMvHbfu6},
}
Figure