Behavioral Evaluation of Hanabi Rainbow DQN Agents and Rule-Based Agents

Rodrigo Canaan, Xianbo Gao, Youjin Chung, Julian Togelius, Andy Nealen, Stefan Menzel

TL;DR

While Deep Reinforcement Learning (RL) agents can master the cooperative card game Hanabi through self-play, they often fail when paired with new partners. This research demonstrates that training RL agents alongside specific human-inspired rule-based partners—particularly those that are less predictable—forces the model to learn more robust, "grounded" strategies that generalize better to unknown teammates.

The Challenge of Ad-hoc Teamplay

Hanabi is a unique benchmark for AI because it requires Theory of Mind. Players see everyone’s cards except their own and must infer their hand based on hints from others. The core challenge is ad-hoc teamplay: playing effectively with a partner never encountered during training.

Standard RL agents, such as Rainbow DQN, excel at "self-play" (SP), where they play against copies of themselves. However, these agents often develop "secret handshakes"—arbitrary conventions that are unintelligible to outsiders. When paired with humans or different AI agents, this cooperation collapses. This study investigates whether training RL agents with diverse, rule-based partners can break this self-play bias.

Methodology

The researchers utilized the Rainbow DQN algorithm within the Hanabi Learning Environment (HLE). To test generalization, they selected six distinct rule-based agents to serve as training partners:

  1. Internal/Outer: Simple agents prioritizing "sure" cards; Internal lacks memory of previous hints.
  2. IGGI: A reliable agent that only hints at playable cards.
  3. Piers/VDB: Agents using probabilistic reasoning for decision-making.
  4. Flawed: An intentionally poor agent making random moves.

Nine versions of the Rainbow agent were trained, ranging from those paired with a single partner to those trained against a pool of all partners ($R_{All}$) or a mix of all partners and self-play ($R_{All+SP}$).

Key Insights: The Self-Play Silo and the Value of Noise

Self-Play is a Silo

Agents trained purely through self-play ($R_{SP}$) achieved the highest individual scores (nearly 20/25) but exhibited the worst aggregate performance when playing with others. This confirms that self-play excellence does not equate to cooperative intelligence.

Training progress of various Rainbow agents, highlighting the high self-play score of Self-Play compared to aggregate performance.

The "Reliability Trap"

Counter-intuitively, training with a "perfect" partner can be detrimental. The agent trained with IGGI (the most predictable partner) achieved the highest score with that specific partner but performed poorly with everyone else, effectively "overfitting" to IGGI’s specific reliability.

The Value of Unpredictability

The agent trained with Internal generalized surprisingly well. Because Internal is somewhat randomized and memory-less, the RL agent could not rely on "secret handshakes." Instead, it had to learn a balanced strategy focused on the actual state of the board.

Information Per Play (IPP)

All RL agents showed low "Information Per Play" (IPP < 1.0), meaning they frequently played cards without full explicit knowledge (color/rank). They "read between the lines" of their partner's actions—a behavior that is efficient in known pairs but fragile when partners change.

Key Results

Cross-play performance matrix showing average scores (and standard deviations) for Rainbow agents across different partners.
  • Generalization Winner: The $R_{All+SP}$ agent (trained on a mix of all rule-based agents and itself) was the most robust, achieving an aggregate score of 13.54 across all partners.
  • The "Internal" Surprise: Among agents trained with only one partner, $R_{Internal}$ was the clear winner for generalization, with an aggregate score of 12.21. In contrast, the agent trained with the "perfect" IGGI only managed an aggregate of 5.35.
  • Training Time: Longer training significantly improved the performance of $R_{Internal}$, suggesting that learning to cooperate with "difficult" or unpredictable partners takes more time but yields a more flexible policy.

Limitations and Future Work

The study identifies several areas for future research:

  • Memory Constraints: The Rainbow DQN used a feed-forward architecture. Adding recurrent connections (like LSTM) might allow agents to identify a partner's strategy mid-game.
  • Scalability: This study focused on 2-player Hanabi; cooperation dynamics change significantly as team size grows.
  • Human Interaction: The ultimate goal is human-AI cooperation. Future work should evaluate whether these robust agents feel more intuitive to human players than self-play specialists.

Summary updated

BibTeX
@inproceedings{canaan2020behavioral,
  author = {Rodrigo Canaan and Xianbo Gao and Youjin Chung and Julian Togelius and Andy Nealen and Stefan Menzel},
  title = {{Behavioral Evaluation of Hanabi Rainbow DQN Agents and Rule-Based Agents}},
  booktitle = {AIIDE},
  year = {2020},
}
Figure