Source-linked AI summary

Opponent Modeling in Deep Reinforcement Learning

He He, Jordan Boyd-Graber, Kevin Kwok, Hal Daumé

arXiv:1609.05559v1cs.LG

TL;DR

Opponent modeling is difficult when competing agents adapt and when existing approaches are application-specific. The paper introduces neural models that jointly learn policies and opponent behavior, and evaluates them in soccer and quiz bowl, where they outperform DQN baselines and handle non-stationary strategies.

  • Problem

    Opponent modeling must account for interacting, changing strategies, while much prior work focuses on application-specific models and often poker requiring substantial domain knowledge.

  • Method

    DRON jointly learns Q-values and hidden opponent representations, combining them through concatenation or Mixture-of-Experts architectures with optional auxiliary supervision.

  • Results

    Across simulated soccer and online quiz bowl, DRON consistently achieves better results than DQN baselines and is more robust to non-stationary strategies.

  • Takeaways & Limitations

    Opponent behavior can be incorporated implicitly into policy learning without domain knowledge, while the architecture remains flexible enough to use explicit opponent supervision.

  • Takeaways & Limitations

    The analysis notes that treating opponents as part of the environment is valid when their policy is stationary, but this assumption is often unrealistic for adapting agents.

Abstract

from arXiv · show

Opponent modeling is necessary in multi-agent settings where secondary agents with competing goals also adapt their strategies, yet it remains challenging because strategies interact with each other and change. Most previous work focuses on developing probabilistic models or parameterized strategies for specific applications. Inspired by the recent success of deep reinforcement learning, we present neural-based models that jointly learn a policy and the behavior of opponents. Instead of explicitly predicting the opponent's action, we encode observation of the opponents into a deep Q-Network (DQN); however, we retain explicit modeling (if desired) using multitasking. By using a Mixture-of-Experts architecture, our model automatically discovers different strategy patterns of opponents without extra supervision. We evaluate our models on a simulated soccer game and a popular trivia game, showing superior performance over DQN and its variants.

1. Introduction

The paper proposes a general reinforcement-learning framework that jointly learns a policy and probabilistic opponent model, using hidden opponent representations and optional supervision. DRON is evaluated in soccer and quiz bowl, where it outperforms DQN baselines and handles changing strategies.

  • Opponent modeling matters because agents’ actions affect the world, enabling strategic responses in games, negotiation, and driving.
  • Prior work often targets poker-specific opponent models that require substantial domain knowledge, motivating a more general framework.
  • The framework models uncertainty over changing opponent strategies rather than assigning opponents to fixed stereotypes.
  • DRON jointly learns policy and opponent behavior, encoding opponent observations into adaptive Q-value computation instead of explicitly predicting actions.
  • DRON uses either concatenation or Mixture-of-Experts architectures and can incorporate extra supervision about opponent actions or strategies.
  • Across simulated soccer and online quiz bowl, DRON consistently outperforms the DQN baseline and responds robustly to non-stationary strategies.

2. Deep Q-Learning

This section introduces reinforcement learning and deep Q-learning as foundations for estimating action values from observed state transitions. DQN uses experience replay and a neural network to approximate the optimal Q-function.

  • In an MDP, an agent takes action a in state s, transitions to s′, and receives reward r according to the environment dynamics.
  • The objective is to find an optimal policy π∗ that maximizes expected discounted cumulative reward.
  • The Q-function represents expected reward from taking action a in state s and then following policy π.
  • Optimal policies select the action with the highest Q-value, while Q-learning estimates optimal values from observed transitions without knowing transition dynamics.
  • DQN approximates the Q-function with a neural network trained by minimizing squared loss on samples drawn from replay memory.

3. Deep Reinforcement Opponent Network

In multi-agent settings, changing opponent policies make outcomes dependent on other agents, so DRON jointly represents opponent behavior and action values to produce adaptive responses. Its concatenation, mixture-of-experts, and multitasking variants incorporate opponent information into Q-learning.

  • 3.1. Q-Learning with Opponents: Changing opponent policies make action outcomes unstable, invalidating the stationary-opponent simplification behind standard Q-learning.Adaptive or learning opponents can change their strategies over time, altering the effectiveness of the primary agent’s policy.
  • 3.2. DQN with Opponent Modeling: DRON jointly models the conditional Q-function and opponent policy using a Q-Network and an opponent network.The opponent network learns a representation of opponent strategy, which is combined with state information for action evaluation.
  • DRON-concat: DRON-concat combines state and opponent representations by concatenation, leaving later network layers to learn their interaction for Q-value prediction.Separate networks embed state and opponent features into hidden spaces before concatenation.
  • DRON-MOE: DRON-MOE uses multiple expert networks to represent different opponent-strategy-dependent Q-value distributions and a gating network to combine their predictions.The gating weights are computed from the opponent representation with a softmax transformation.
  • Multitasking with DRON: Multitasking adds direct supervision from observed opponent information to learn a shared opponent representation while predicting Q-values.This setting can also predict extra opponent information, such as strategy type, when available.

4. Experiments

Experiments on simulated soccer and quiz bowl show that DRON models outperform DQN baselines while adapting to opponents with varying strategies. Mixture-of-Experts models remain effective across expert counts, whereas extra supervision mainly benefits DRON-concat.

  • Soccer: DRON models achieve higher Soccer rewards than DQN in both maximum test reward and mean reward over the last 10 epochs.The evaluation reports maximum reward ever achieved and average reward over the final 10 epochs, with statistically significant improvements indicated in the table.
  • Soccer: DRON models are more stable than DQN during fifty Soccer training epochs.The learning curves show substantially smaller variance for the DRON models.
  • Soccer: DRON achieves rewards close to both opponent-specific upper bounds against offensive and defensive soccer opponents.DQN-world is confused by defensive behavior and sacrifices performance against offensive behavior, while DRON retains a better trade-off across opponents.
  • Soccer: DRON-MOE consistently outperforms DQN across two to four experts, with no significant difference from changing the number of experts in Soccer.Adding multitask supervision does not help DRON-MOE, while additional supervision improves DRON-concat.
  • Quiz Bowl: In quiz bowl, both DRON models significantly improve over DQN baselines, and DRON-MOE outperforms DRON-concat with lower variance than DQN-world.DRON-MOE also discovers different buzzing strategies, matching DQN-self against early-answering players while exploiting cautious players.
  • Quiz Bowl: Quiz-bowl DRON models exploit cautious players while holding their own against aggressive players, and DRON-MOE performs better with three experts than with other tested counts.Action supervision does not help, whereas high-level type supervision yields especially competent results with four experts.

5. Related Work and Discussion

Prior opponent-modeling work largely uses explicit models tailored to specific domains, especially poker, while implicit approaches optimize the agent’s reward without requiring full strategy identification. This work instead learns opponent representations and strategy selection jointly within reinforcement learning.

  • Most existing approaches explicitly predict opponent parameters such as actions, private information, or domain-specific strategies.
  • Implicit opponent modeling avoids explicitly identifying an opponent’s strategy by maximizing the agent’s expected reward directly.
  • Prior portfolio methods construct strategies offline from domain knowledge or experience, then select among them online with multi-arm bandits.
  • Unlike those methods, this approach jointly learns strategies and their selector probabilistically without a clear online/offline distinction.
  • Related neural approaches either classify opponent actions or identify opponent types using mixtures over pre-specified cardinal opponents rather than learned hidden representations.

6. Conclusion and Future Work

The paper incorporates implicit opponent-behavior prediction into policy learning without domain knowledge and provides flexible architectures that can also use supervision. It points to deeper and recurrent extensions for learning opponent-strategy hierarchies and representations from raw actions.

  • The approach incorporates implicit opponent-behavior prediction into policy learning without requiring domain knowledge.
  • Deep Q-learning is used to learn opponent representations that better maximize available rewards while capturing their interaction with Q-values.
  • The architectures can include supervision for opponent parameters, preserving flexibility between implicit and explicit modeling.
  • Future extensions could combine deep Mixture-of-Experts with hierarchical reinforcement learning to learn opponent-strategy hierarchies in large, complex domains.
  • Recurrent neural networks could learn opponent representations directly from raw opponent actions instead of hand-crafted features.
Loading 1609.05559v1…