- Open Access
Hamiltonian of polymatrix zero-sum games
Phys. Rev. Research 7, 043333 – Published 26 December, 2025
DOI: https://doi.org/10.1103/3gfz-lg1q
Abstract
The understanding of a dynamical system's properties can be significantly advanced by establishing it as a Hamiltonian system and then systematically exploring its inherent symmetries. By formulating agents’ strategies and cumulative payoffs as canonically conjugate variables, we identify the Hamiltonian function that generates the dynamics of polymatrix zero-sum games. We reveal the symmetries of our Hamiltonian and derive the associated conserved quantities, showing how the conservation of probability and the invariance of the Fenchel coupling are intrinsically encoded within the system. Furthermore, we propose the dissipation Follow-the-Regularized-Leader (DFTRL) dynamics by introducing a perturbation that dissipates the Fenchel coupling, proving convergence to the Nash equilibrium and linking DFTRL to last-iterate convergent algorithms. Our results highlight the potential of Hamiltonian dynamics in uncovering the structural properties of learning dynamics in games and pave the way for broader applications of Hamiltonian dynamics in game theory and machine learning.
Physics Subject Headings (PhySH)
Article Text
References (65)
- D. Fudenberg and D. K. Levine, The Theory of Learning in Games (MIT press, Cambridge, 1998), Vol. 2.
- J. F. Nash, Equilibrium points in -person games, Proc. Natl. Acad. Sci. USA 36, 48 (1950).
- P. Mertikopoulos, C. Papadimitriou, and G. Piliouras, Cycles in adversarial regularized learning, in Proceedings of the Twenty-Ninth Annual ACM-SIAM Symposium on Discrete Algorithms (SIAM, Philadelphia, 2018), pp. 2703–2717.
- S. Shalev-Shwartz and Y. Singer, Convex repeated games and fenchel duality, in Proceedings of the 20th International Conference on Neural Information Processing Systems (MIT Press, Cambridge, MA, USA, 2006), pp. 1265–1272.
- J. Hofbauer, Evolutionary dynamics for bimatrix games: A Hamiltonian system? J. Math. Biol. 34, 675 (1996).
- J. P. Bailey and G. Piliouras, Multi-agent learning in network zero-sum games is a Hamiltonian system, in Proceedings of the 18th International Conference on Autonomous Agents and MultiAgent Systems (2019), pp. 233–241.
- C. Daskalakis and C. H. Papadimitriou, On a network generalization of the minmax theorem, in International Colloquium on Automata, Languages, and Programming (Springer, 2009), pp. 423–434.
- Y. Cai and C. Daskalakis, On minmax theorems for multiplayer games, in Proceedings of the Twenty-Second Annual ACM-SIAM Symposium on Discrete Algorithms (SIAM, Philadelphia, 2011), pp. 217–234.
- Y. Cai, O. Candogan, C. Daskalakis, and C. Papadimitriou, Zero-sum polymatrix games: A generalization of minmax, Math. Oper. Res. 41, 648 (2016).
- We make comments on the paper by Bailey and Piliouras in Appendix pp3.
- Y. Sato, E. Akiyama, and J. D. Farmer, Chaos in learning a simple two-person game, Proc. Natl. Acad. Sci. USA 99, 4748 (2002).
- G. Ostrovski and S. van Strien, Piecewise linear Hamiltonian flows associated to zero-sum games: Transition combinatorics and questions on ergodicity, Regul. Chaot. Dyn. 16, 128 (2011).
- S. van Strien, Hamiltonian flows with random-walk behaviour originating from zero-sum games and fictitious play, Nonlinearity 24, 1715 (2011).
- D. Balduzzi, S. Racaniere, J. Martens, J. Foerster, K. Tuyls, and T. Graepel, The mechanics of -player differentiable games, in International Conference on Machine Learning (PMLR, 2018), pp. 354–363.
- A. Letcher, D. Balduzzi, S. Racaniere, J. Martens, J. Foerster, K. Tuyls, and T. Graepel, Differentiable game mechanics, J. Mach. Learn. Res. 20, 3032 (2019).
- H. N. Alishah and P. Duarte, Hamiltonian evolutionary games, J. Dyn. Games 2, 33 (2015).
- A. H. Najafi, Conservative replicator and lotka-volterra equations in the context of Diracbig-isotropic structures, J. Geom. Mech. 12, 149 (2020).
- Y. Cai, A. Oikonomou, and W. Zheng, Finite-time last-iterate convergence for learning in multi-player games, in Advances in Neural Information Processing Systems (2022).
- C. Daskalakis and I. Panageas, Last-iterate convergence: Zero-sum games and constrained min-max optimization, in 10th Innovations in Theoretical Computer Science (2019).
- C. Daskalakis, A. Ilyas, V. Syrgkanis, and H. Zeng, Training gans with optimism, in International Conference on Learning Representations (2018).
- V. Syrgkanis, A. Agarwal, H. Luo, and R. E. Schapire, Fast convergence of regularized learning in games, in Proceedings of the 29th International Conference on Neural Information Processing Systems - Volume 2 (MIT Press, Cambridge, MA, USA, 2015), pp. 2989–2997.
- S. Rakhlin and K. Sridharan, Optimization, learning, and games with predictable sequences, in Proceedings of the 27th International Conference on Neural Information Processing Systems - Volume 2 (Curran Associates Inc., Red Hook, NY, USA), pp. 3066–3074.
- S. Lee and D. Kim, Fast extra gradient methods for smooth structured nonconvex-nonconcave minimax problems, Adv. Neural Inf. Process. Syst. 34, 22588 (2021).
- P. Mertikopoulos, B. Lecouat, H. Zenati, C.-S. Foo, V. Chandrasekhar, and G. Piliouras, Optimistic mirror descent in saddle-point problems: Going the extra(-gradient) mile, in International Conference on Learning Representations (2019).
- G. M. Korpelevich, The extragradient method for finding saddle points and other problems, Ekon. mat. metod. 12, 747 (1976).
- R. A. Hemmat, A. Mitra, G. Lajoie, and I. Mitliagkas, LEAD: Min-max optimization from a physical perspective, ICML Workshop on New Frontiers in Learning, Control, and Dynamical Systems (2023).
- G. Zhang and Y. Wang, On the suboptimality of negative momentum for minimax optimization, in International Conference on Artificial Intelligence and Statistics (PMLR, 2021), pp. 2098–2106.
- N. B. Kovachki and A. M. Stuart, Continuous time analysis of momentum methods, J. Mach. Learn. Res. 22, 1 (2021).
- G. Gidel, R. A. Hemmat, M. Pezeshki, R. Le Priol, G. Huang, S. Lacoste-Julien, and I. Mitliagkas, Negative momentum for improved game dynamics, in The 22nd International Conference on Artificial Intelligence and Statistics (PMLR, 2019), pp. 1802–1811.
- B. T. Polyak, Some methods of speeding up the convergence of iteration methods, USSR Comput. Math. Math. Phys. 4, 1 (1964).
- Y. Feng, H. Fu, Q. Hu, P. Li, I. Panageas, B. Peng, and X. Wang, On the last-iterate convergence in time-varying zero-sum games: Extra gradient succeeds where optimism fails, Adv. Neural Inf. Process. Syst. 36, 21933 (2023).
- Y. Feng, P. Li, I. Panageas, and X. Wang, Last-iterate convergence separation between extra-gradient and optimism in constrained periodic games, Uncertainty in Artificial Intelligence (PMLR, 2024), pp. 1339–1370.
- The term can be consistently included in the sum, since by our definition of the corresponding payoff matrix is null; , which implies that agents do not engage in self-play (do not have self-interaction). The same applies in the subsequent sections generally, although we occasionally remove the term from the sum for clarity.
- In this paper, we focus on games of . However, the discussion in this subsection is generically applicable to , not only to .
- S. Shalev-Shwartz, Online learning and online convex optimization, Found. Trends Mach. Learn. 4, 107 (2012).
- P. D. Taylor and L. B. Jonker, Evolutionary stable strategies and game dynamics, Math. Biosci. 40, 145 (1978).
- P. D. Taylor, Evolutionarily stable strategies with two types of player, J. Appl. Probab. 16, 76 (1979).
- P. Schuster and K. Sigmund, Replicator dynamics, J. Theor. Biol. 100, 533 (1983).
- D. Friedman, Evolutionary games in economics, Econometrica 59, 637 (1991).
- A. Nagurney and D. Zhang, Projected dynamical systems in the formulation, stability analysis, and computation of fixed-demand traffic network equilibria, Transp. Sci. 31, 147 (1997).
- R. Lahkar and W. H. Sandholm, The projection dynamic and the geometry of population games, Games Econ. Behav. 64, 565 (2008).
- W. H. Sandholm, E. Dokumacı, and R. Lahkar, The projection dynamic and the replicator dynamic, Games Econ. Behav. 64, 666 (2008).
- P. Mertikopoulos and W. H. Sandholm, Learning in games via reinforcement and regularization, Math. Oper. Res. 41, 1297 (2016).
- P. Mertikopoulos and Z. Zhou, Learning in games with continuous action sets and unknown payoff functions, Math. Program. 173, 465 (2019).
- The code is available at https://github.com/Toshihiro-Ota/dftrl.
- J. Nash, Non-cooperative games, Ann. Math. 54, 286 (1951).
- E. Tewolde, B. H. Zhang, C. Oesterheld, T. Sandholm, and V. Conitzer, Computing game symmetries and equilibria that respect them, Proc. AAAI Conf. Artif. Intell. 39, 14148 (2025).
- J. Eisert, M. Wilkens, and M. Lewenstein, Quantum games and quantum strategies, Phys. Rev. Lett. 83, 3077 (1999).
- J. Eisert and M. Wilkens, Quantum games, J. Mod. Opt. 47, 2543 (2000).
- R. Jain, G. Piliouras, and R. Sim, Matrix multiplicative weights updates in quantum zero-sum games: Conservation laws & recurrence, Adv. Neural Inf. Process. Syst. 35, 4123 (2022).
- K. Lotidis, P. Mertikopoulos, and N. Bambos, Learning in quantum games, arXiv:2302.02333.
- W. Lin, G. Piliouras, R. Sim, and A. Varvitsiotis, Learning in quantum common-interest games and the separability problem, Quantum 9, 1689 (2025).
- R. T. Q. Chen, Y. Rubanova, J. Bettencourt, and D. Duvenaud, Neural ordinary differential equations, Adv. Neural Inf. Process. Syst. (2018).
- R. T. Q. Chen, Torchdiffeq, GitHub (2018), https://github.com/rtqichen/torchdiffeq.
- D. P. Bertsekas, Nonlinear programming, J. Oper. Res. Soc. 48, 334 (1997).
- R. Bergmann and R. Herzog, Intrinsic formulation of KKT conditions and constraint qualifications on smooth manifolds, SIAM J. Optim. 29, 2423 (2019).
- P. Libermann and C.-M. Marle, Symplectic Geometry and Analytical Mechanics (Springer, Dordrecht, 1987).
- V. I. Arnol’d, Mathematical Methods of Classical Mechanics (Springer, New York, NY, 1989).
- In a narrow sense, the term “Hamiltonian dynamics” may be referred to as the solution to the flow equation (B2) or (B3). However, we use this term collectively including the phase space, the Hamiltonian system, and its solutions, etc.
- In the literature, each time step of is implicitly assumed. Compared to our notation, our corresponds to their , etc.
- To be more precise, it should be , since the perturbative coefficient is a dimensionful parameter.
- Since this paper has established the Hamiltonian structure for learning dynamics in games, also known as evolutionary dynamics, applying or extending our results to various analyses of Rock-Paper-Scissors games using physics-based approaches (such as Refs. [63, 64, 65]) could yield insights.
- K. M. A. Kabir and J. Tanimoto, The role of pairwise nonlinear evolutionary dynamics in the rock–paper–scissors game with noise, Appl. Math. Comput. 394, 125767 (2021).
- M. Tenorio, E. Rangel, and J. Menezes, Adaptive movement strategy in rock-paper-scissors models, Chaos Solitons Fractals 162, 112430 (2022).
- R. R. Justino, B. F. de Oliveira, and F. E. A. dos Santos, Critical phenomena in the rock-paper-scissors model, Physica A 680, 131018 (2025).