Avoiding hashing and encouraging visual semantics in referential emergent language games

Daniela Mihai, Jonathon S. HarearXiv 2019

Abstract

There has been an increasing interest in the area of emergent communication between agents which learn to play referential signalling games with realistic images. In this work, we consider the signalling game setting of Havrylov and Titov and investigate the effect of the feature extractor's weights and of the task being solved on the visual semantics learned or captured by the models. We impose various augmentation to the input images and additional tasks in the game with the aim to induce visual representations which capture conceptual properties of images. Through our set of experiments, we demonstrate that communication systems which capture visual semantics can be learned in a completely self-supervised manner by playing the right types of game.

Introduction

In the field of emergent communication, researchers train AI agents—a Sender and a Receiver—to play "referential games." The Sender observes an image and transmits a message; the Receiver must then use that message to identify the correct image from a lineup of distractors. While agents often achieve high success rates, they frequently rely on "hashing"—creating unique pixel-level codes—rather than learning human-like visual semantics. This lack of grounding prevents the emergent language from generalizing to new scenarios. This study investigates methods to discourage hashing and promote the capture of conceptual properties.

Methodology

The researchers utilized a signaling game architecture where both agents employ a VGG-16 CNN for feature extraction and LSTMs for processing discrete token sequences. To maintain discreteness while enabling backpropagation, the Straight-Through Gumbel Softmax (ST-GS) was applied.

The base signaling game architecture featuring a Sender and Receiver communicating via discrete tokens.

The experimental design focused on three primary levers:

  1. Feature Extractor Weights: Comparing ImageNet-pretrained (fixed), random (fixed), and end-to-end learned CNNs.
  2. Asymmetric Augmentation: Introducing noise or random rotations to the Sender's input but not the Receiver's, forcing the communication of robust, abstract features.
  3. Auxiliary Tasks: Implementing self-supervised goals, such as rotation prediction, to encourage the recognition of "objectness."

Experiments were conducted using the CIFAR-10 dataset to facilitate rapid iteration and controlled class diversity.

Key Insights and Results

The study found that end-to-end models naturally default to hashing as the most efficient path to success. However, pretraining on ImageNet serves as a semantic prior, grounding the emergent language in established object categories. To measure semantic alignment, the authors tracked how often the Receiver's top guesses belonged to the same category as the target image.

Performance metrics for models under Gaussian noise and random rotation augmentations.

Asymmetric augmentations proved highly effective. When the Sender's images were randomly rotated, semantic measures improved across all configurations. Notably, for pretrained models, the target-class average rank improved from 46.58 to 41.89. Furthermore, adding a rotation prediction task to end-to-end models—a self-supervised approach requiring no human labels—improved their semantic rank from approximately 54 to 43-45, nearing the performance of models that had the advantage of ImageNet pretraining.

Discussion and Future Work

While auxiliary tasks and augmentations successfully nudge agents toward visual semantics, they introduce optimization challenges. Gradients from the primary game-play task (favoring hashing) and the auxiliary task (favoring semantics) can conflict. Future research should explore improved optimization strategies for these multi-task objectives. Additionally, a trade-off exists between communication efficiency (win rate) and semantic meaningfulness, suggesting that while semantics can emerge self-supervisely, further work is needed to match the raw efficiency of hashing-based systems.

Summary updated

BibTeX
@misc{mihai2019avoiding,
  author = {Daniela Mihai and Jonathon S. Hare},
  title = {{Avoiding hashing and encouraging visual semantics in referential emergent language games}},
  year = {2019},
  eprint = {1911.05546},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.05546},
}
Figure