Abstract
Competitive self-play has enabled significant breakthroughs in reinforcement learning, yet it remains plagued by inefficient opponent selection and training instabilities such as cycling. We present a principled approach to self-play by reframing the search for a Nash equilibrium as a saddle-point optimization problem. Our proposed Perturbation-based Self-Play (PSP) algorithm utilizes an adversarial selection rule within a population of agents to ensure last-iterate convergence. Empirical evaluations across matrix games, grid-world soccer, Gomoku, and high-dimensional RoboSumo demonstrate that PSP significantly outperforms standard self-play heuristics in both convergence stability and sample efficiency.
Introduction
In competitive multi-agent reinforcement learning (MARL), self-play serves as a powerful mechanism for generating an automated curriculum. By training an agent against its own previous versions, the complexity of the environment scales naturally with the agent's proficiency. However, the performance of self-play is highly sensitive to the choice of opponents. Common heuristics—such as playing against the most recent version, the historical best, or a random past iteration—often fail to provide a consistent gradient toward the Nash equilibrium. In particular, "naive" self-play (playing against the latest version) frequently results in "cycling," where agents continuously adapt to each other's current weaknesses without ever converging to a stable, optimal strategy.
Methods: Self-Play as Saddle-Point Optimization
The core contribution of this work is the mathematical bridge between game theory and classical optimization. Finding a Nash equilibrium in a two-player zero-sum game is equivalent to finding a saddle point $(x^*, y^*)$ of a payoff function $f(x, y)$, such that: $$f(x, y^*) \leq f(x^*, y^*) \leq f(x^*, y)$$ where $x$ and $y$ represent the strategies of the two players.
Perturbation-based Self-Play (PSP)
To solve this saddle-point problem, we introduce the Perturbation-based Self-Play (PSP) algorithm. Unlike standard methods that maintain a single agent, PSP maintains a population of $n$ pairs of agents. During each training iteration, an agent does not simply play against its fixed partner. Instead, it employs an Adversarial Selection rule: it identifies and trains against the opponent in the population that currently minimizes its expected reward (the "worst-case" opponent).
This selection process acts as a perturbation in the strategy space, preventing the optimization process from getting trapped in local cycles. Crucially, this method is designed for last-iterate convergence, meaning the final trained policy is the equilibrium solution. This avoids the need for strategy averaging, which is computationally prohibitive when using deep neural networks.
Experimental Results
We evaluated PSP against three common baselines: "latest" (training against the most recent version), "best" (training against the highest-rated historical version), and "random" (training against a random historical version).
Matrix Games and Convergence Stability
In simple matrix games like Matching Pennies and Rock-Paper-Scissors, naive self-play methods are known to orbit the Nash equilibrium indefinitely. As shown in the figures below, PSP successfully breaks these cycles.
In Matching Pennies, Naive Mirror Descent results in a circular trajectory in the strategy space, never reaching the center (the Nash equilibrium). In contrast, both the exact gradient and policy gradient versions of our method converge directly to the equilibrium, with the L2 distance to the Nash strategy dropping to zero.
Similar behavior is observed in Rock-Paper-Scissors. On the ternary simplex, the naive approach produces wide orbits, whereas PSP trajectories spiral inward toward the Nash equilibrium at the center.
Complex Environments and Sample Efficiency
The benefits of PSP extend to high-dimensional tasks. In Grid-world Soccer, Gomoku, and RoboSumo Ants, PSP achieved higher Elo ratings than all baseline heuristics given the same number of environment samples. In Gomoku, pre-training with human expert data followed by PSP self-play allowed agents to develop sophisticated strategies that outperformed those trained with standard heuristics. In the continuous control RoboSumo task, the adversarial population provided the necessary diversity to learn robust physical maneuvers.
Conclusion
This paper demonstrates that replacing heuristic opponent selection with a principled adversarial rule significantly improves the stability and efficiency of competitive self-play. By treating the problem as a saddle-point optimization, we provide a framework that is both theoretically grounded and practically effective for deep reinforcement learning. Future work will focus on scaling these population-based methods to even larger strategy spaces and multi-player (non-zero-sum) scenarios.
Summary updated