Learning to Ground Multi-Agent Communication with Autoencoders

Toru Lin, Jacob Huh, Christopher Stauffer, Ser-Nam Lim, Phillip Isola

Overview

In Multi-Agent Reinforcement Learning (MARL), agents often need to communicate to solve complex tasks. However, establishing a meaningful communication protocol from scratch is notoriously difficult. In a fully decentralized setting, agents have no pre-agreed "lingua franca" (common language).

When agents start with random utterances, they create a "grounding problem": a listener doesn't know what a speaker's symbols mean, and a speaker doesn't know how its symbols affect the listener. This leads to high-variance noise that often prevents agents from ever using the communication channel effectively. Prior solutions often relied on centralized training or differentiable communication channels, which don't reflect how communication emerges in nature—without a central coordinator and through independent optimization.

This paper demonstrates that grounding emergent communication in visual observations via simple autoencoders allows decentralized agents to coordinate effectively. By using learned representations of the world as a common language, agents bypass the difficult trial-and-error process of learning a language from scratch, significantly outperforming standard reinforcement learning baselines.

Methods: Grounding via Representation Learning

The authors propose a simple framework where communication is grounded in representation learning. Instead of learning what to say based on task rewards, agents learn to say things that describe what they see.

Each agent consists of two main components:

  1. Speaker Module: This module takes the agent's raw pixel observation and passes it through an image encoder. A Communication Autoencoder then maps these features into a discrete message. Crucially, this autoencoder is trained to reconstruct the original image features from the message. This ensures the message is a compressed, grounded representation of the agent's view.
  2. Listener Module: This module receives messages from other agents and combines them with its own local observation. It uses a standard policy network (like A3C) to decide on an action.
The overall schematic of the multi-agent system showing the Speaker and Listener modules.

The system uses a straight-through estimator to allow gradients to flow through the discrete communication bottleneck during the autoencoder's training.

Evaluation Environments

The researchers evaluated their approach on three distinct environments designed to test different aspects of communication:

  • CIFAR Game: A referential game where two agents see different images from the CIFAR-10 dataset and must describe them to each other to correctly classify both.
  • FindGoal: A multi-agent navigation task in a grid world where agents must find a goal. Sharing the goal's location helps everyone finish faster.
  • RedBlueDoors: An ordinal task where agents must open a red door before a blue door to get a reward. This requires one agent to signal the other when the first step is complete.
The MarlGrid environments: FindGoal (left) and RedBlueDoors (right).

Key Insights and Results

  • Autoencoding as a "Physical Bias": In nature, communication is grounded in physical reality (e.g., a specific sound corresponds to a specific predator). Autoencoding mimics this by forcing symbols to represent environmental states, providing the "common ground" necessary for language to start.
  • The Failure of Joint Optimization: Surprisingly, the authors found that trying to train the Speaker module using the task's reinforcement learning reward (jointly with the autoencoder) actually degraded performance. The "dissonance" between the stable grounding signal and the high-variance RL signal makes optimization harder.
  • Emergent Semantics: The autoencoder naturally clustered messages into meaningful categories, such as "no doors visible" vs. "red door opened," even without explicit labels for these states.

The proposed method, ae-comm, consistently outperformed all baselines, including standard RL-based communication and models with specialized inductive biases. For instance, in the RedBlueDoors task, ae-comm achieved a near-perfect average reward of 0.984, while the standard RL communication baseline struggled at 0.174. In FindGoal, agents using ae-comm reached the goal much faster, with an average episode length of 103.5 steps compared to 169.0 for agents without communication.

Limitations and Future Work

  • Homogeneous Agents: The current model assumes all agents share the same architecture and loss functions. Real-world applications might involve heterogeneous agents with different sensors or goals.
  • Indiscriminate Broadcasting: Agents currently broadcast their entire "view" of the world. In more complex scenarios, agents might need to learn to be more selective about what information they share to save bandwidth or avoid overwhelming others.
  • Cooperative Focus: The study focused on fully cooperative settings. In competitive or adversarial environments, robust strategies would be needed to prevent agents from using grounded communication to lie or manipulate others.

Summary updated

BibTeX
@inproceedings{lin2021learning,
  author = {Toru Lin and Jacob Huh and Christopher Stauffer and Ser-Nam Lim and Phillip Isola},
  title = {{Learning to Ground Multi-Agent Communication with Autoencoders}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=dCHSm-usLx},
}

Loading related content...

Figure