NfgTransformer: Equivariant Representation Learning for Normal-form Games
Siqi Liu, Luke Marris, Georgios Piliouras, Ian Gemp, Nicolas Heess
TL;DR
The paper addresses the challenge of learning compact, generalizable representations for normal-form games by leveraging permutation equivariance inherent to NFGs. It introduces NfgTransformer, an encoder that represents payoff tensors as action embeddings refined through permutation-equivariant attention blocks, enabling end-to-end solving of Nash equilibria, deviation gains, and payoff reconstruction, even for incomplete or varying-sized games. Across synthetic and empirical DISC games, the approach achieves state-of-the-art performance, demonstrates interpretability through attention patterns and embeddings, and remains parameter-efficient with a size-independent parameter budget. This work paves the way for integrating game-theoretic reasoning into deep learning systems used in competitive and cooperative human-AI settings.
Abstract
Normal-form games (NFGs) are the fundamental model of strategic interaction. We study their representation using neural networks. We describe the inherent equivariance of NFGs -- any permutation of strategies describes an equivalent game -- as well as the challenges this poses for representation learning. We then propose the NfgTransformer architecture that leverages this equivariance, leading to state-of-the-art performance in a range of game-theoretic tasks including equilibrium-solving, deviation gain estimation and ranking, with a common approach to NFG representation. We show that the resulting model is interpretable and versatile, paving the way towards deep learning systems capable of game-theoretic reasoning when interacting with humans and with each other.
