Introduction
Offline Reinforcement Learning (RL) seeks to derive optimal policies from fixed datasets without further environment interaction. A primary challenge in this domain is distributional shift: when a learned policy selects actions poorly represented in the training data (out-of-distribution or OOD actions), value function estimates become unreliable, often leading to catastrophic performance failures.
In Multi-Agent Reinforcement Learning (MARL), this issue is compounded. Even if individual agents select "in-sample" actions, their combined joint action may still be OOD. Furthermore, offline datasets frequently contain "expert" behaviors that represent local optima. Standard conservative methods often fail to escape these traps, as they prioritize staying close to the most frequent data points rather than exploring the "long tail" of superior actions.
Methodology: In-Sample Sequential Policy Optimization (InSPO)
To address these challenges, we introduce In-Sample Sequential Policy Optimization (InSPO). This algorithm incorporates three key innovations:
- Sequential Policy Updates: Unlike traditional MARL where agents update policies simultaneously, InSPO employs a sequential approach. This allows each agent to condition its update on the latest policies of its teammates, enhancing coordination and preventing conflicting gradient directions.
- In-Sample Learning via KKT Conditions: To strictly avoid OOD joint actions, InSPO utilizes a closed-form solution for the optimal policy derived from Karush-Kuhn-Tucker (KKT) conditions. This ensures policy updates rely solely on actions present within the dataset, eliminating the need to query value functions for OOD samples.
- Maximum Entropy Regularization: By incorporating a policy entropy term, InSPO is incentivized to explore low-probability actions within the behavior policy. This mechanism enables the algorithm to "look past" dominant sub-optimal behaviors and identify global optima hidden in the dataset's noise.
Theoretically, InSPO guarantees monotonic policy improvement and converges to a Quantal Response Equilibrium (QRE), providing a robust game-theoretic foundation.
Key Insights: The IGM Trap and Coordination
A significant finding is the "IGM Trap." Many offline MARL methods rely on the Individual-Global-Max (IGM) principle for value decomposition. However, IGM's structural constraints can inadvertently force agents toward OOD joint actions in specific reward landscapes.
As shown in the XOR game (Figure 1), simultaneous updates can lead to uncoordinated behaviors. Sequential updates ensure the joint policy remains coherent and stays within the data manifold.
Experimental Evaluation
InSPO was evaluated on diverse benchmarks, including matrix games (XOR and M-NE), a grid-world task (Bridge), and high-dimensional StarCraft II Micromanagement (SMAC) scenarios.
Results
In the XOR game, InSPO consistently achieved the optimal return of 1.0, whereas baselines like OMIGA and OMAR often failed or selected the worst possible OOD joint actions.
In the M-NE game, where 64% of the data favored a local optimum, InSPO was the only algorithm to reach the global optimum (return of 20.0). On the SMAC benchmark, InSPO achieved a state-of-the-art average win rate of 0.55, outperforming CFCQL (0.54) and OMIGA (0.39).
Conclusion
InSPO effectively mitigates the risks of OOD joint actions and local optima in offline MARL through sequential updates and entropy-regularized in-sample learning. While the sequential scheme introduces some computational overhead, its superior coordination and performance on complex benchmarks like StarCraft II demonstrate its efficacy. Future research will focus on parallelizing these updates and improving data efficiency in sparse-reward scenarios.
Summary updated