Efficient Adaptation in Mixed-Motive Environments via Hierarchical Opponent Modeling and Planning

Yizhe Huang, Anji Liu, Fanqi Kong, Yaodong Yang, Song-Chun Zhu, Xue Feng

Introduction

In the field of Multi-Agent Reinforcement Learning (MARL), most research has historically focused on the extremes of pure competition or pure cooperation. However, real-world scenarios—ranging from climate negotiations to traffic management—are typically "mixed-motive," where agents must balance conflicting individual interests with the need for group coordination. A significant challenge in these environments is few-shot adaptation: the ability for an agent to coordinate effectively with a new partner within just a few rounds of interaction.

Existing algorithms often fail in these settings because they assume fixed reward structures or require thousands of rounds to learn a co-player's behavior. To bridge this gap, researchers have introduced Hierarchical Opponent modeling and Planning (HOP), a framework that enables rapid adaptation through high-level goal inference and strategic planning.

The HOP Framework

The HOP framework decouples decision-making into two distinct hierarchical modules that work in tandem to model and respond to co-players:

  1. Opponent Modeling Module (Theory of Mind): This component functions as a high-level inference engine. It maintains a belief distribution over the possible goals of other agents (e.g., "Is my partner targeting the high-value stag or the safe hare?"). By focusing on goals rather than raw actions, the agent can form more stable and efficient priors. This module updates its beliefs both intra-episode (reacting to moves in real-time) and inter-episode (remembering tendencies across multiple games).
  2. Planning Module: Rather than using a static policy, HOP utilizes Monte Carlo Tree Search (MCTS). It samples multiple goal combinations for co-players from its current belief distribution and identifies the "best response" action that maximizes expected returns across those likely scenarios.
The HOP architecture consists of an Opponent Modeling Module for goal inference and a Planning Module using MCTS.

Experimental Setup

The researchers evaluated HOP using two spatially and temporally extended game theory paradigms designed to test social dilemmas:

  • Markov Stag-Hunt (MSH): A classic dilemma where hunting a "Stag" requires cooperation for a high reward, while hunting a "Hare" is a safe, low-reward solo activity.
  • Markov Snowdrift Game (MSG): Also known as the "Game of Chicken," where agents must decide whether to contribute to a shared task (clearing a snowdrift) or "free-ride" on the efforts of others.
Visualizations of the Markov Stag-Hunt (MSH) and Markov Snowdrift Game (MSG) environments.

Key Findings and Results

The hierarchical approach of HOP yielded several significant insights and performance gains:

  • Superior Adaptation: In few-shot tests against unseen baselines (such as LOLA and A3C), HOP achieved the highest adaptation percentage in 83.3% to 100% of scenarios across both MSH and MSG environments.
  • Efficiency of Goal Modeling: Modeling intent (goals) proved far more efficient than modeling raw actions. This allowed HOP agents to switch strategies mid-game; if a partner suddenly changed targets, HOP updated its belief and adjusted its plan immediately.
  • Emergent Social Intelligence: The framework demonstrated complex social behaviors, such as forming an "Alliance of the Disadvantaged," where two agents coordinated to bypass a greedier player to secure a cooperative reward.
  • Robustness: When facing "defector" agents who always play selfishly, HOP quickly identified their intent and switched to strategies that minimized losses or exploited the defector's predictability.

Conclusion and Future Work

HOP represents a significant step toward agents that can navigate complex social landscapes. While the current model relies on human-defined goal sets, future work aims to enable agents to autonomously abstract goal sets from raw data. Additionally, moving from "Level-0" Theory of Mind (thinking about what others want) to "Level-1" (thinking about what others think about the agent) could unlock even more sophisticated strategic capabilities. Finally, testing HOP's ability to adapt to the often unpredictable behavior of human participants remains a vital area for future exploration.

Summary updated

BibTeX
@inproceedings{huang2024efficient,
  author = {Yizhe Huang and Anji Liu and Fanqi Kong and Yaodong Yang and Song-Chun Zhu and Xue Feng},
  title = {{Efficient Adaptation in Mixed-Motive Environments via Hierarchical Opponent Modeling and Planning}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=disVlUOH4b},
}
Figure