Interpretable agent communication from scratch (with a generic visual processor emerging on the side)

Roberto Dessi, Eugene Kharitonov, Marco Baroni

TL;DR

Researchers have trained two AI agents to develop their own discrete "language" to describe natural images from scratch, without using any pre-trained models. Not only does this result in a partially human-interpretable communication protocol, but the agents "accidentally" learn high-quality visual features that rival dedicated self-supervised learning methods like SimCLR.

What Problem Does This Paper Address?

As we deploy autonomous agents (like self-driving cars or robots), we need them to talk to each other. Ideally, this communication should be discrete (using symbols like words) and interpretable (understandable by humans).

Previous research in "emergent communication" often cheated by using visual processors already pre-trained on human-labeled data (like ImageNet). This meant the agents weren't really "inventing" concepts; they were just recycling human ones. When researchers tried to train agents from scratch, the agents often developed "cheating" strategies, focusing on low-level pixel patterns rather than actual objects—making their "language" useless for describing new things or for human oversight.

Methods

The authors use a Referential Game setup to train the agents:

Referential game setup showing the Sender and Receiver agents.
  1. The Sender sees a "target" image and must pick one discrete symbol from a vocabulary of 2,048 to describe it.
  2. The Receiver gets that symbol and a lineup of images (the target plus 127 distractors). It must identify the target based only on the symbol.

The Secret Sauce: Data Augmentation. To prevent the agents from just "matching pixels," the authors borrowed a trick from self-supervised learning (SSL). The Sender and Receiver see different "views" of the same image (different crops, colors, or blurs). This forces the agents to communicate about high-level semantic features that survive these transformations—essentially, the "essence" of the object.

To make the system end-to-end trainable despite the discrete symbols, they used the Gumbel-Softmax estimator, which allows gradients to flow through the non-differentiable bottleneck of picking a single symbol.

Datasets

  • ILSVRC-2012 (ImageNet): Used for the primary training and validation (1.3M images, 1k categories).
  • OOD (Out-of-Distribution) Set: A custom set of 80 categories not found in the training data (e.g., "hamster," "drawer") to test if the agents' language generalizes to novel objects.
  • Downstream Tasks: For evaluating the "bonus" visual features, they tested on Places205, iNaturalist2018, and VOC07.

Key Insights and Ideas

  • Communication as Self-Supervision: The paper reveals a deep link between communication games and contrastive learning. Identifying a target among distractors is mathematically very similar to the "pretext tasks" used in SSL.
  • The "Gaussian Blob" Sanity Check: To prove the agents weren't just looking at low-level noise, the authors tested them on images of random noise. Agents trained without data augmentation could still "talk" about noise perfectly, proving their language was shallow. Agents trained with augmentation failed on noise but succeeded on real objects, proving they had learned meaningful concepts.
  • Accidental Vision Experts: By simply trying to talk to each other, the agents' internal visual processors (ResNet-50s) became highly sophisticated. The features they developed were nearly as good as those from SimCLR, a model specifically designed for computer vision.

Key Results

  • High Accuracy: The agents achieved over 90% accuracy in the referential game on seen categories and maintained roughly 90% on totally new (OOD) categories.
  • Interpretability: The symbols weren't just random noise. By looking at which images triggered specific symbols, the researchers found symbols representing distinct, human-understandable concepts like "glowing objects in the dark," "birds on branches," and "human artifacts with flat shapes."
Examples of images grouped by the discrete symbols they trigger.
  • Competitive Vision: In "linear evaluation" (using the frozen visual features to solve new tasks), the communication-trained model achieved 60.2% top-1 accuracy on ImageNet, trailing the specialized SimCLR (60.6%) by only a negligible margin.

Limitations and Future Work

The biggest limitation is that the agents currently communicate using only a single symbol. Human language is combinatorial—we combine words to create complex meanings. The authors note that moving toward multi-symbol "sentences" is the next logical step.

Additionally, the "distractor" images in this study were chosen at random. In the real world, distractors are often contextually related (e.g., a dog among other dogs). Future work will need to address how agents develop more nuanced language when the differences between objects are much subtler.

Summary updated

BibTeX
@inproceedings{dessi2021interpretable,
  author = {Roberto Dessi and Eugene Kharitonov and Marco Baroni},
  title = {{Interpretable agent communication from scratch (with a generic visual processor emerging on the side)}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=1AvtkM4H-y7},
}
Figure