Referential communication in heterogeneous communities of pre-trained visual deep networks

Mateo Mahaut, Francesca Franzon, Roberto Dessì, Marco Baroni

Abstract

As autonomous systems proliferate, the ability for heterogeneous AI models to coordinate becomes critical. This research investigates whether diverse, pre-trained vision models—such as ResNets and Vision Transformers—can develop a shared communication protocol. By employing a referential game setup with frozen core architectures and trainable interface layers, the study demonstrates that these models can achieve near-perfect coordination. The findings suggest that shared semantic representations emerge across different architectures, enabling efficient communication and rapid integration of new agents into a community.

Introduction

In the near future, autonomous systems—ranging from self-driving cars from different manufacturers to industrial robots on a shared factory floor—will need to coordinate their actions. However, these systems are often powered by different "brains": one might utilize a classic convolutional neural network (CNN), while another employs a modern Vision Transformer (ViT).

Most research in emergent communication assumes a "homogeneous" setup where all agents share the same architecture. In real-world applications, models are heterogeneous, viewing the world through different mathematical lenses and categorization schemes. This study addresses a fundamental challenge: Can these diverse models develop a "lingua franca" to refer to objects in their environment without requiring the retraining of their massive internal weights?

Methodology

The Referential Game

The researchers utilized a Referential Game setup to facilitate communication. In each round:

  1. The Sender observes a target image and generates a message in the form of a continuous vector.
  2. The Receiver receives this message along with a set of candidate images (the target plus several distractors).
  3. The Objective: The Receiver must correctly identify the target based solely on the Sender's message.

The "Light Interface" Approach

To ensure the models were not fundamentally altered, the core vision modules (e.g., pre-trained VGG11, ResNet, or Swin Transformer) remained frozen. The researchers only trained a small "Communication Module"—consisting of a few linear layers—on top of the frozen architectures. This approach allows models to map their internal, pre-existing representations into a shared communication space.

Training was conducted using two paradigms: one-to-one training (specific sender/receiver pairs) and population-based training (where any model in a pool of seven could act as either sender or receiver at any time).

Experimental Setup and Datasets

The protocol was evaluated across several datasets to test robustness and generalization:

  • ImageNet1k: The primary dataset for communication training and in-domain testing.
  • ImageNet-21k (OOD): A filtered subset of 52 classes not present in ImageNet1k, used to evaluate "zero-shot" generalization.
  • Cifar100, Places205, and CelebA: Used to test protocol transfer across entirely different image domains, such as faces versus landscapes.
  • Single-class ImageNet: A high-difficulty test requiring models to distinguish between different instances of the same category (e.g., identifying a specific bird within a group of the same species).

Key Insights

Semantic Convergence

Despite their architectural differences, ResNets and ViTs tend to extract similar high-level semantic features (e.g., "has wheels" or "is a bird") during their initial pre-training. This shared latent understanding provides a foundation that makes it surprisingly easy for heterogeneous models to align their communication protocols.

The Universal Protocol

Population-trained models converged to a single, mutually intelligible protocol. When a brand-new model (a "learner") was introduced to an established community, it acquired the existing protocol significantly faster than the community could develop a new one from scratch. This suggests that the emergent language is both robust and easily adoptable.

Continuous vs. Discrete Communication

While human language is discrete, the researchers found that continuous vectors were far more robust and easier for the models to optimize. Attempts to force the models to use discrete symbols resulted in significantly lower performance, indicating that high-dimensional continuous spaces are better suited for machine-to-machine referential tasks.

Interpretability via Sparse Autoencoders

Using Sparse Autoencoders (SAEs) to decode the emergent messages, the authors identified specific dimensions in the communication space that correspond to human-understandable concepts, such as "metallic grids," "airplanes," or "large animals." This confirms that the models are communicating based on recognizable semantic features.

Results

  • Coordination Accuracy: Heterogeneous pairs achieved 95-99% accuracy on in-domain ImageNet data.
  • Generalization: The protocol demonstrated partial transfer to out-of-domain data. Models trained on ImageNet communicated about unseen categories in the OOD set with approximately 72% accuracy (compared to a chance level of ~1.6%).
  • Learning Efficiency: New agents joining a community reached 90% accuracy within just a few epochs of training their interface layer.
  • Validation: The models failed a "Gaussian blobs" test (communicating about noise), proving they were discussing actual image features rather than exploiting low-level pixel artifacts.

Limitations and Future Work

While promising, the study identifies several areas for further research. The current setup uses static, cropped images; real-world agents deal with dynamic, egocentric image flows where perspectives vary. Additionally, the current communication is one-way; future work should explore multi-turn dialogues where agents can request clarification. Finally, while generalization was better than chance, a significant performance gap remains when moving to entirely new datasets like CelebA, suggesting that creating a truly universal visual protocol remains an open challenge.

Summary updated

BibTeX
@inproceedings{mahaut2023referential,
  author = {Mateo Mahaut and Francesca Franzon and Roberto Dessì and Marco Baroni},
  title = {{Referential communication in heterogeneous communities of pre-trained visual deep networks}},
  booktitle = {AAMAS},
  year = {2023},
}
Figure