[Paper Review] A Deep Policy Inference Q-Network for Multi-Agent Systems
This paper proposes DPIQN, a deep Q-network that improves multi-agent reinforcement learning by inferring policy features from raw observations of collaborators and opponents, integrating them as hidden vectors to enhance Q-value prediction. The model outperforms DQN and DRQN in 1v1 and 2v2 soccer environments, especially under dynamic policy shifts, with DRPIQN showing superior stability and generalization in non-stationary settings.
We present DPIQN, a deep policy inference Q-network that targets multi-agent systems composed of controllable agents, collaborators, and opponents that interact with each other. We focus on one challenging issue in such systems---modeling agents with varying strategies---and propose to employ "policy features" learned from raw observations (e.g., raw images) of collaborators and opponents by inferring their policies. DPIQN incorporates the learned policy features as a hidden vector into its own deep Q-network (DQN), such that it is able to predict better Q values for the controllable agents than the state-of-the-art deep reinforcement learning models. We further propose an enhanced version of DPIQN, called deep recurrent policy inference Q-network (DRPIQN), for handling partial observability. Both DPIQN and DRPIQN are trained by an adaptive training procedure, which adjusts the network's attention to learn the policy features and its own Q-values at different phases of the training process. We present a comprehensive analysis of DPIQN and DRPIQN, and highlight their effectiveness and generalizability in various multi-agent settings. Our models are evaluated in a classic soccer game involving both competitive and collaborative scenarios. Experimental results performed on 1 vs. 1 and 2 vs. 2 games show that DPIQN and DRPIQN demonstrate superior performance to the baseline DQN and deep recurrent Q-network (DRQN) models. We also explore scenarios in which collaborators or opponents dynamically change their policies, and show that DPIQN and DRPIQN do lead to better overall performance in terms of stability and mean scores.
Motivation & Objective
- Address the challenge of modeling agents with varying strategies in non-stationary multi-agent systems (MAS), where opponents and collaborators may dynamically change policies.
- Overcome limitations of prior methods that rely on prior knowledge of agent structures or rule-based assumptions, which are impractical in real-world scenarios.
- Enable a controllable agent to learn effective policies without access to internal agent logic, using only raw observations such as images.
- Improve training stability and convergence speed in multi-agent settings through an adaptive loss function that prioritizes policy feature learning before Q-value learning.
- Demonstrate generalizability of the model in unseen scenarios where collaborators or opponents change policies unpredictably during testing.
Proposed method
- Design a deep policy inference Q-network (DPIQN) built on DQN, with three components: a feature extraction module, a Q-value learning module, and an auxiliary policy feature learning module.
- Learn policy features from raw observations (e.g., images) of collaborators and opponents using a separate network branch, which are then injected as a hidden vector into the main DQN.
- Introduce an adaptive loss function combining Q-value loss $L^Q$ and policy inference loss $L^{PI}$, with a dynamic weighting coefficient $\lambda$ that shifts focus from policy feature learning to Q-value learning during training.
- Extend DPIQN to DRPIQN by incorporating a recurrent network (LSTM) to handle partial observability in environments with delayed or incomplete observations.
- Train the model using an adaptive procedure that adjusts attention between learning policy features and optimizing Q-values, improving stability and convergence.
- Use auxiliary tasks in representation learning to enrich feature space, enabling better modeling of non-stationary collaborators and opponents.
Experimental results
Research questions
- RQ1Can a deep reinforcement learning agent effectively infer and utilize policy features of collaborators and opponents from raw observations in a multi-agent system?
- RQ2How does incorporating learned policy features as a hidden vector improve Q-value prediction and overall agent performance compared to standard DQN and DRQN?
- RQ3To what extent can DPIQN and DRPIQN generalize to scenarios where collaborators or opponents dynamically change their strategies during testing?
- RQ4Does the proposed adaptive loss function enhance training stability and convergence speed in multi-agent RL settings?
- RQ5How does the recurrent variant DRPIQN perform under partial observability compared to the non-recurrent DPIQN?
Key findings
- In the 1v1 scenario, DPIQN achieved an average reward of 0.909 and DRPIQN achieved 0.947 against unfamiliar opponents, significantly outperforming baseline DQN and DRQN.
- In the 2v2 scenario, both DPIQN and DRPIQN maintained strong performance across all test cases, with DRPIQN (O) achieving the highest average reward ratio (1.36x) compared to DQN in unfamiliar opponent settings.
- DRPIQN demonstrated superior stability and faster convergence due to the adaptive loss function, which reduced fluctuations in the Q-value loss $L^Q$ during training.
- The ablative study confirmed that both the policy inference loss $L^{PI}$ and adaptive weighting $\lambda$ are essential—models trained with both converged faster and showed less loss fluctuation.
- When collaborating with an unfamiliar agent, DPIQN and DRPIQN agents scored more goals independently, indicating robustness despite lack of knowledge about collaborator intentions.
- The models generalized well to dynamic policy shifts: when opponents or collaborators changed strategies unpredictably (every 4–10 timesteps), DPIQN and DRPIQN maintained high mean scores and stability, outperforming baselines in all such test cases.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.