Learning Intuitive Policies Using Action Features

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

The Challenge of Zero-Shot Coordination

In multi-agent reinforcement learning (MARL), coordination is frequently achieved through "conventions"—arbitrary rules established during training, much like humans agreeing to drive on the right side of the road. While standard MARL agents excel at learning these conventions during self-play, they often fail dramatically when paired with a novel AI partner or a human in a "cross-play" setting. This failure occurs because agents tend to develop "private languages" that are mathematically optimal for their specific training partner but semantically meaningless to anyone else.

Humans, by contrast, rely on intuitive policies grounded in semantic relationships. If we lack a shared language, we might point at a red object to indicate "redness" or hold up fingers to indicate a number. Most MARL frameworks treat actions as mere arbitrary indices (e.g., Action 1, Action 2), ignoring the fact that real-world actions possess features that relate directly to the environment. This paper investigates how to build an inductive bias into AI agents so they naturally exploit these semantic correspondences, enabling human-like zero-shot coordination (ZSC) without relying on human training data.

The Hint-Guess Game and Emergent Behaviors

To test this, the authors introduce a novel benchmark called the Hint-Guess Game. In this two-player procedural environment, a "hinter" sees a target card and must choose a card from their own hand to show a "guesser." The guesser then attempts to identify the target card from their own hand. Crucially, the cards are defined by specific features (e.g., Color: Red, Shape: Heart, Number: 3).

Examples of strategies in the Hint-Guess Game, including exact matching and complex implicatures like mutual exclusivity.

Without explicit programming, agents equipped with the right inductive biases developed sophisticated strategies mirroring human cognitive science concepts. These included Mutual Exclusivity (the assumption that if one hint refers to object A, a different hint must refer to object B) and complex Implicatures. Furthermore, when tested with sinusoidal encodings representing ordinal numbers (0-19), agents learned to coordinate based on the distance and rank between numbers rather than just categorical matches.

Architectural Innovations: Baking in Intuition

The core of the paper's solution lies in network architecture. The authors compared several models to see which best fostered intuitive coordination:

  • MLPs: Standard feedforward networks where actions are just output indices.
  • Attention (Attn): Uses attention on observations but treats actions as standard outputs.
  • Cross-Attention (CA2I): Uses action features as queries and observation features as keys/values.
  • Self-Attention with Action as Input (SA2I): The authors' core proposal, which passes a featurized action alongside featurized observations into a shared self-attention module.
Comparison of network architectures: standard Attention, Cross-Attention, and the proposed Self-Attention with Action as Input (SA2I).

The breakthrough insight is that SA2I processes both actions and observations using the same shared weights. This forces the model to learn a unified representation where the "meaning" of an observation feature is directly linked to the "meaning" of an action feature.

Interestingly, SA2I agents consistently converged into two distinct "cultures" during training: SA2I Sim (agents that maximize feature similarity) and SA2I Dissim (agents that maximize dissimilarity). While both are mathematically valid for coordination, the "Sim" cluster aligns perfectly with human intuition.

Key Results

The impact of this architectural shift is substantial, particularly in cross-play (XP) and human-AI coordination:

  • Cross-Play Performance: In the standard Hint-Guess setup, SA2I Sim achieved an XP score of 0.77, nearly matching its self-play score. Standard MLPs failed entirely, hovering around a near-chance score of 0.27.
  • Human-AI Coordination: When paired with human players (based on a dataset of 150 games played by university students), SA2I Sim agents achieved a coordination score of 0.77. This actually slightly exceeded the human-human average baseline of 0.75.
  • Behavioral Alignment: SA2I Sim agents agreed with human choices in 80.7% of scenarios, whereas standard MLP agents only agreed 40.7% of the time.
  • Robustness: These strong coordination results held true across varying hand sizes and different numbers of attention layers and heads.

Limitations and Future Work

While SA2I represents a significant step forward for zero-shot coordination, the approach relies on actions being explicitly "featurized." In many standard RL environments (like Atari games), actions are atomic and lack inherent semantic features.

Future work will need to explore how agents might learn these action features directly from the environment rather than relying on designer-provided labels. Additionally, extending this framework from single-step coordination to long-term action sequences (such as complex dialogue or multi-stage tasks), and moving beyond categorical features to multi-modal representations, remain exciting open challenges.

Summary updated

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