TL;DR
EMAgnet introduces an adaptive regularization technique for Reinforcement Learning (RL) agents in competitive games. By regularizing a policy toward an exponential moving average (EMA) of its own past weights—rather than a fixed uniform distribution—agents learn to ignore "garbage" strategies and converge to Nash equilibria faster and more reliably in complex environments.
What Problem Does This Paper Address?
In two-player zero-sum games (like Poker or StarCraft), AI agents often learn through "self-play," where they play against versions of themselves to improve. To prevent the agent from prematurely collapsing into a single, predictable strategy, researchers use regularization.
The current gold standard is regularizing toward a uniform distribution (often via an entropy bonus). This essentially tells the agent, "Don't forget that other moves exist." However, this approach is "strategically agnostic." It forces the agent to keep considering every possible move equally, even those that are obviously terrible (strictly dominated strategies).
In simple games, this is fine. But in complex games, the vast majority of possible action sequences are useless. Wasting "regularization budget" on these irrelevant strategies slows down learning and can prevent the agent from ever finding an optimal strategy (the Nash equilibrium).
Methods
The authors propose PPO-EMAg, which replaces the fixed uniform target with a moving "magnet" target.
- The Magnet: Instead of a uniform distribution, the target is an Exponential Moving Average (EMA) of the policy’s own network parameters.
- Parameter-Space Averaging: Unlike previous "moving magnet" attempts that tried to average policies at every possible game state (which is impossible in large games), EMAgnet simply averages the neural network weights.
- The Objective: During training with Proximal Policy Optimization (PPO), a Kullback–Leibler (KL) divergence term is added to the loss function. This penalizes the current policy if it drifts too far from the EMA magnet.
- Continuous Adaptation: After every update, the magnet's weights are nudged slightly toward the current policy's weights. This creates a target that "trails" the agent, evolving as the agent discovers better strategies.
Datasets
The researchers evaluated EMAgnet using the OpenSpiel framework on three types of benchmarks:
- Standard Games: Biased Rock-Paper-Scissors (RPS), 4-Card Goofspiel, and Kuhn Poker.
- Forfeit (FF) Variants: Modified versions of the standard games where a "forfeit" action is added. This action is strictly worse than any other move, testing if the agent can learn to ignore it.
- Control Variants: A more complex transformation where players must navigate a grid-world to "pick up" their chosen action. If they fail to reach a square in time, they forfeit. This creates a massive strategy space where most paths lead to failure.
Key Insights and Ideas
- The Dual Property: EMAgnet performs a balancing act. It forgets bad strategies (as the policy stops choosing them, the magnet stops regularizing toward them) while remembering good ones (the EMA naturally accumulates a mixture of strategies encountered during training cycles).
- Avoiding the "Uniform Dilemma": In games with many bad options, uniform regularization faces a catch-22. If regularization is strong, the agent wastes time on bad moves; if it's weak (annealed), the agent loses the "pressure" needed to explore and collapses into a sub-optimal pure strategy. EMAgnet maintains strong regularization pressure but directs it only toward viable strategies.
- The Magnet is Often the Best Player: Interestingly, the EMA magnet policy itself often achieves lower exploitability (is harder to beat) than the "last-iterate" policy actually being trained.
Key Results
- Lower Exploitability: Across almost all tested environments, PPO-EMAg reached lower exploitability than PPO with uniform regularization (using both linear and power-law annealing schedules).
- Superiority in "Messy" Games: The advantage was most significant in the Control variants. In Control Biased RPS, the uniform baseline failed to learn for 7 million steps, while EMAgnet converged by 2 million steps.
- Efficiency: EMAgnet achieved these gains with minimal computational overhead—just one extra weight update per training step.
Limitations and Future Work
The authors note that while EMAgnet excels in games with many dominated strategies, its effectiveness likely depends on other structural properties of the game, such as the balance between "transitive" (A is better than B) and "cyclic" (A beats B, B beats C, C beats A) elements.
Future work aims to investigate how the nature of these strategic cycles affects adaptive regularization. Additionally, while the benchmarks used are standard for game theory research, testing EMAgnet on even larger-scale "real-world" games (like full-scale StarCraft or complex economic simulations) remains an open challenge.
Summary updated