Abstract
Policy-Space Response Oracles (PSRO) as a general algorithmic framework has achieved state-of-the-art performance in learning equilibrium policies of two-player zero-sum games. However, the hand-crafted hyperparameter value selection in most of the existing works requires extensive domain knowledge, forming the main barrier to applying PSRO to different games. In this work, we make the first attempt to investigate the possibility of self-adaptively determining the optimal hyperparameter values in the PSRO framework. Our contributions are three-fold: (1) Using several hyperparameters, we propose a parametric PSRO that unifies the gradient descent ascent (GDA) and different PSRO variants. (2) We propose the self-adaptive PSRO (SPSRO) by casting the hyperparameter value selection of the parametric PSRO as a hyperparameter optimization (HPO) problem where our objective is to learn an HPO policy that can self-adaptively determine the optimal hyperparameter values during the running of the parametric PSRO. (3) To overcome the poor performance of online HPO methods, we propose a novel offline HPO approach to optimize the HPO policy based on the Transformer architecture. Experiments on various two-player zero-sum games demonstrate the superiority of SPSRO over different baselines.
Introduction
In the domain of AI for competitive games, Policy-Space Response Oracles (PSRO) represent the gold-standard framework for finding equilibria in two-player zero-sum environments. PSRO iteratively expands a population of strategies by calculating a meta-strategy from existing plays and training a "Best Response" (BR) to counter it. However, the effectiveness of PSRO is heavily dependent on manual hyperparameter tuning, specifically regarding the choice of meta-solver (e.g., Nash Equilibrium vs. Uniform distribution) and oracle settings (e.g., training steps $K$ and weight initialization $\beta$). These settings are typically game-specific, requiring significant domain expertise and preventing a "one-size-fits-all" solution. This research introduces Self-adaptive PSRO (SPSRO) to automate this selection process, allowing the algorithm to adapt dynamically to the game's characteristics.
Methods
The SPSRO framework is built upon three core components:
- Parametric PSRO (PPSRO): A unified mathematical framework that treats various PSRO iterations as points in a hyperparameter space. Instead of selecting a single meta-solver, PPSRO utilizes a weighted mixture ($\alpha$) of solvers.
- SPSRO Framework: Hyperparameter selection is reformulated as a Hyperparameter Optimization (HPO) problem. The goal is to learn a policy that dynamically selects $\alpha, \beta,$ and $K$ at each epoch to minimize NashConv while balancing computational costs.
- Offline Transformer-based HPO: To avoid the inefficiencies of online tuning, the authors treat game-solving as a sequence modeling task. A Transformer model is trained on a large offline dataset of PSRO runs. During a new game, this Transformer analyzes the run's history to predict optimal hyperparameters for the subsequent epoch.
Experiments and Results
The researchers evaluated SPSRO on Normal-Form Games (NFGs) with varying payoff matrices and Extensive-Form Games (EFGs) such as Leduc Poker, Goofspiel, and Liar’s Dice. A key focus was zero-shot generalization, testing the Transformer on games entirely different from its training set.
Key Insights
- Dynamic Solver Superiority: No single meta-solver dominates throughout a run. SPSRO achieves lower NashConv by dynamically switching or mixing solvers (e.g., starting with Uniform and transitioning to more specialized solvers like $\alpha$-Rank or PRD).
- Computational Efficiency: The Transformer effectively manages the "training budget," suggesting fewer reinforcement learning updates for simpler meta-games and increasing effort only when necessary to break a stalemate.
- Generalization: The model demonstrates impressive "plug-and-play" capabilities. A Transformer trained on specific NFGs successfully solved games of different sizes and reward scales without fine-tuning, significantly outperforming classic baselines and online HPO tools like Optuna.
Conclusion
SPSRO represents a significant step toward automatic game solvers by mitigating the "hyperparameter headache" of PSRO. While the initial data generation for the Transformer is computationally expensive and the current focus is limited to two-player zero-sum games, the framework's ability to learn a "prior" for game theory that generalizes across titles is a powerful advancement. Future work will explore extending these self-adaptive capabilities to multi-player and general-sum games.
Summary updated