Learning to Play Against Any Mixture of Opponents

Max Smith, Thomas Anthony, Michael P. WellmanFrontiers Artif. Intell 2020

TL;DR

This paper introduces Q-Mixing, a novel transfer learning method for multi-agent reinforcement learning that allows agents to adapt to new opponent strategy mixtures without retraining. By learning against individual pure-strategy opponents and then combining these learned values, Q-Mixing enables agents to generalize to unseen opponent distributions, significantly reducing the need for extensive new simulations.

What Problem Does This Paper Address?

In multi-agent reinforcement learning (MARL), agents often interact with a population of other agents (opponents) whose strategies can vary. Traditional MARL approaches typically require retraining or significant adaptation when the opponent's strategy distribution changes. This is computationally expensive and inefficient, especially in dynamic environments. The paper addresses the challenge of enabling an agent to learn a policy that is effective against any mixture of opponent strategies, even those not encountered during initial training, by leveraging prior learning against individual opponent types.

Methods

The core of the proposed method is Q-Mixing. The fundamental idea is to first train an agent's Q-values (representing expected future rewards) against each of the opponent's pure strategies independently. When faced with a new mixture of opponent strategies, Q-Mixing approximates the Q-value for that mixture by taking a weighted average of the Q-values learned against each pure strategy. The weights are determined by the probability distribution of the opponent mixture.

Key extensions and components include:

  • Q-Mixing-Prior: The basic formulation described above, assuming a known prior distribution of opponent strategies.
  • Q-Mixing-OPC (Opponent Policy Classifier): To handle situations where the agent can observe evidence about the opponent's strategy during play, an opponent classifier is introduced. This classifier, trained in parallel with the Q-learning, predicts the opponent's pure strategy based on current observations. These predictions are then used to dynamically re-weight the Q-values, leading to a more adaptive policy.
  • Q-Mixing-Value-Iteration (QMVI): A theoretical formulation for deriving exact Q-values against mixed strategies, requiring a full dynamics model. While computationally expensive, it serves as a benchmark for correctness.
  • Policy Distillation: To address the potential computational complexity of Q-Mixing (which grows with the number of pure strategies), policy distillation is used to compress the learned Q-Mixing policy into a smaller, more efficient model.

Datasets

The paper evaluates Q-Mixing on two environments:

  • Grid-World Soccer: A simple, small-state and action-space environment used for initial validation and demonstrating the core Q-Mixing concept.
  • Sequential Social Dilemma (Gathering Game): A more complex grid-world environment that models a tragedy-of-the-commons scenario, featuring partial observability and strategic interactions. This environment is used to test the robustness of Q-Mixing and the effectiveness of the opponent classifier.

The paper does not introduce new datasets but uses these established environments for empirical evaluation.

Key Insights and Ideas

  • Decomposition is Key: The core insight is that learning against individual components (pure strategies) of a complex problem (mixed strategies) can be more efficient and transferable than learning directly against the complex whole.
  • Leveraging Prior Knowledge: Q-Mixing elegantly demonstrates how prior experience with simpler scenarios (pure strategies) can be recombined to tackle more complex ones (mixed strategies) without additional learning.
  • Adaptability through Observation: The introduction of an opponent classifier highlights the importance of dynamic adaptation. By using observations to infer the opponent's current strategy, the agent can refine its policy in real-time, leading to better performance.
  • Compression for Practicality: The use of policy distillation is crucial for making Q-Mixing practical in scenarios with many opponent types, as it addresses the potential for large model sizes and computational overhead.

Key Results

  • Effective Transfer: Q-Mixing successfully transfers learned Q-values across different opponent mixtures in both the soccer and social dilemma environments, outperforming baseline methods that train directly against a uniform mixed-strategy opponent.
  • Improved Performance with OPC: Augmenting Q-Mixing with an opponent policy classifier (Q-Mixing-OPC) leads to improved performance, especially in more complex environments with partial observability, by allowing the agent to adapt its strategy based on observed evidence.
  • Policy Distillation Success: Policy distillation effectively compresses the Q-Mixing policy, allowing a smaller student network to recover much of the teacher network's performance, making the approach more computationally feasible.
  • Coverage of Strategy Space: In the soccer game, Q-Mixing demonstrated good coverage of the opponent strategy space, generalizing well to various mixtures.

Limitations and Future Work

  • Computational Cost of QMVI: The exact QMVI formulation is computationally expensive due to its reliance on a full dynamics model and value iteration, limiting its practical use.
  • Variance with OPC: While Q-Mixing-OPC improves performance, it can introduce higher variance, which the authors suggest could be further investigated and mitigated.
  • Hyperparameter Tuning: Finding optimal hyperparameters for Q-Mixing can be challenging due to the complexity of multi-agent settings and the interaction between different opponent types. The paper outlines a pragmatic approach but acknowledges that more sophisticated methods might be beneficial.
  • Extension to More Agents: The current formulation is primarily for two-agent settings. Extending Q-Mixing to handle more than two agents while maintaining computational tractability is a significant area for future work.
  • Dynamic Opponent Models: The current OPC focuses on identifying the opponent's pure strategy. Future work could explore more sophisticated opponent modeling that accounts for dynamic opponent behavior or learning.

Summary updated

BibTeX
@inproceedings{smith2020learning,
  author = {Max Smith and Thomas Anthony and Michael P. Wellman},
  title = {{Learning to Play Against Any Mixture of Opponents}},
  booktitle = {Frontiers Artif. Intell},
  year = {2020},
  url = {https://openreview.net/forum?id=AxWLtSsRtyd},
}
Figure