Learning to Coordinate with Humans using Action Features

Mingwei Ma, Jizhou Liu, Samuel Sokota, Max Kleiman-Weiner, Jakob N. Foerster

Introduction: The Challenge of Arbitrary Conventions

In multi-agent reinforcement learning (MARL), agents are typically trained via self-play. While they become highly proficient at working with their own copies, they often fail when paired with a different agent or a human—a setting known as "cross-play." This failure stems from the emergence of "private languages": arbitrary conventions that make sense only to the agents during training. For example, an agent might learn to use a "red hat" to signal a desire for "blueberries" simply because that convention happened to emerge.

Humans, by contrast, exploit semantic relationships and action features to coordinate. If we don't share a language, we point at what we want, leveraging the similarity between observations and actions. This paper introduces an architectural inductive bias that encourages agents to learn these intuitive, human-like coordination patterns.

Methods: Self-Attention with Action as Input (SA2I)

The core contribution of this work is the Self-Attention with Action as Input (SA2I) architecture. Unlike standard models that process observations and actions separately or via simple concatenation, SA2I treats both observation objects and potential actions as a single set of input vectors.

Comparison of neural architectures for coordination: standard Self-Attention, Cross-Attention (CA2I), and the proposed SA2I architecture.

The "secret sauce" of SA2I is the use of shared weights to process both what the agent sees and what it can do. This forces the model to learn the underlying relationships between the two, creating a natural bias toward similarity-based reasoning.

The Hint-Guess Game

To evaluate these architectures, the researchers developed the Hint-Guess Game. In this benchmark, a "hinter" sees a secret target card and selects a card from their hand to show a "guesser." The guesser must then identify the target card from their own hand. Cards possess features like color, shape, or numerical values.

The study utilized two primary data sources:

  1. Procedural Hint-Guess Game: A synthetic environment with randomly generated card features to test coordination dimensions like exact matching, similarity, and mutual exclusivity.
  2. Human-AI Experiment: A zero-shot dataset from games played by university students, used to test if agents trained only via self-play could coordinate with humans.

Key Results and Insights

The SA2I architecture demonstrated a significant leap in cross-play performance. While standard MLPs and specialized algorithms like "Other-Play" struggled near chance levels (0.28), SA2I achieved a score of 0.77 in intra-algorithm cross-play.

Cross-play performance matrices for different architectures. SA2I shows a distinct block structure, indicating the emergence of consistent, interpretable strategy clusters.

Emergent Strategy Clusters

As shown in the performance matrices, SA2I agents tend to converge into two distinct "clusters":

  • SA2I Sim: Agents that maximize similarity between hints and targets, mirroring human behavior.
  • SA2I Dissim: Agents that maximize dissimilarity. Both clusters are highly structured and interpretable, unlike the chaotic "private languages" of MLP-based agents.

Human-AI Coordination

When paired with humans, SA2I Sim agents achieved a coordination score of 0.77, matching the performance of human-human pairs (0.75). Furthermore, SA2I agents agreed with human choices in 80.7% of games, compared to only 40.7% for the MLP baseline.

Emergent Implicature and Ordinal Reasoning

Beyond simple matching, SA2I agents learned complex cognitive behaviors:

  • Mutual Exclusivity: If an "obvious" hint for one card is missing, agents can infer the target by process of elimination.
  • Ordinal Reasoning: When using numerical features (e.g., sinusoidal encodings), agents learned to exploit "closeness"—for instance, hinting with a 4 or 6 when the target is 5.

Limitations and Future Work

While promising, the approach has limitations. Currently, action features must be explicitly provided, whereas in many real-world scenarios, these would need to be learned from raw data. Additionally, the Hint-Guess Game is a relatively simple environment. Future work will explore applying SA2I to more complex settings with abstract features (like word embeddings) or multi-modal data to scale these intuitive policies for human-centric AI applications.

Summary updated

BibTeX
@inproceedings{ma2023learning,
  author = {Mingwei Ma and Jizhou Liu and Samuel Sokota and Max Kleiman-Weiner and Jakob N. Foerster},
  title = {{Learning to Coordinate with Humans using Action Features}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=8OrM0aJbb2},
}
Figure