Manuscript Offprint

arXiv:2610.07686

BluffJAX: Adversarial Imperfect Information Games in JAX

Aryaman Reddi, Jan Peters, Carlo D'Eramo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Aryaman Reddi 1,2,∗^{1,2,*}, Jan Peters 1,2,3^{1,2,3}, Carlo D'Eramo 4^{4}

1^{1}Department of Computer Science, TU Darmstadt, Germany

2^{2}Hessian Center for Artificial Intelligence (Hessian.ai), Germany

3^{3}German Research Center for AI (DFKI), Systems AI for Robot Learning, Germany

4^{4}Center for Artificial Intelligence and Data Science, University of Würzburg, Germany

We introduce BluffJAX: an open-source suite of adversarial imperfect information games in JAX. We provide canonical implementations of games designed for high simulation throughputs and parallelization on GPU accelerators. Our suite consists of well-studied benchmarks such as Texas Hold'Em Poker and Kuhn Poker, as well as games that have not been previously studied in reinforcement learning research, such as Bluff, Stud Poker, and Kemps. We hope that implementing a variety of game mechanics and difficulties will introduce new challenges and foster novel research directions in game-theoretic methods for RL. We benchmark the throughput performance and memory usage of our environments in single and multi-GPU settings, demonstrating scaling of up to hundreds of millions of samples per second, and motivating the usage of BluffJAX over related GPU and CPU-based libraries. We benchmark reinforcement learning, tree search, and game-solving algorithms in JAX in order to provide users with baseline results and facilitate future comparisons.

Figure

(a) Kuhn Poker

Figure

(b) Leduc Poker

Figure

(c) Texas Hold'Em Limit Poker

Figure

(d) Texas Hold'Em No-Limit Poker

Figure

(e) Five Card Draw

Figure

(f) Seven Card Stud

Figure

(g) Goofspiel

Figure

(h) Werewolf

Figure

(i) Bluff

(j) Kemps

Figure 1: Games in BluffJAX.

1 Introduction

The development of algorithms that can achieve superhuman performance in games with intractably large state-action spaces has been a driving force in Artificial Intelligence (AI) research for decades [Mnih et al., 2015, Silver et al., 2016, 2017b]. Imperfect information games present unique challenges: in addition to large state and action spaces, inaccessibility to information and

*Correspondence to aryaman.reddi@tu-darmstadt.de

Preprint.

opponent strategy severely hampers standard learning methods like fictitious self-play, value estimation, and tree search - which can be seen in games such as Hold'Em Poker [Brown et al., 2020], Diplomacy [Bakhtin et al., 2022], and Dota 2 [Berner et al., 2019].

One bottleneck for scaling large-scale RL systems in such domains is the availability of data. High-speed simulators that can leverage hardware accelerators and collect diverse data from parallelized environments are a crucial ingredient in modern RL research. In particular, JAX [Frostig et al., 2019] has gained popularity among machine learning researchers in recent years by utilizing the XLA compiler infrastructure for JIT (just-in-time) compilation and automatic differentiation of Python functions.

In this work, we introduce BluffJAX, which is (to the best of our knowledge) the first open-source hardware-accelerated JAX suite focused primarily on imperfect information games. Our benchmark include well-studied games such as Texas Hold'Em Poker variants and Goofspiel, while also introducing games that have not been studied in RL research thus far, such as Bluff, Kemps, and multi-round Werewolf. We hope that providing high-speed implementations of well-known games will help alleviate the reproducibility crisis in RL research, as well as introduce new challenges to the RL community that will foster novel research directions in game-theoretic RL and search methods. All code is open-source and available at https://github.com/bluffjax/bluffjax.

Figure

Figure 2: Our philosophy and design criteria.

To validate the functionality and scalability of our suite, we benchmark the speed and memory usage of all 10 implemented games across varying numbers of parallel environments in single-GPU and multi-GPU settings. We also analyze the scaling performance of BluffJAX against related game libraries. We provide algorithm baseline results for some well-studied games to motivate our claim that the implementations use canonical game mechanics and are compatible with existing algorithms. Additionally, we include some pre-trained baseline models that we hope will provide users of BluffJAX with a predefined standard by which they can evaluate their own experiments. We implement fully JIT-compatible algorithms for certain games, including Counterfactual Regret Minimization [Zinkevich et al., 2007] (CFR) and exploitability metrics for Kuhn Poker and Leduc Poker. In large games, it is typically intractable to expand the entire game tree in order to perform CFR; thus, we also implement JIT-compatible deep RL and tree search algorithms.

Figure 2 outlines out philosophy and design criteria for BluffJAX. The contributions of our library are summarized as follows:

• Speed and vectorization: BluffJAX emphasizes high environment transition throughput rates using efficient game branching logic and leverages JAX-native parallelization, JIT compilation, and on-GPU processing.

• Simplicity: We use a simple API and well-documented code for ease of use.

• Extensibility: Our library is structured to enable easy addition of new games and mechanics.

• Reproducibility: We provide implementations of well-known game-solving and RL algorithms as well as baseline models to give users a reproducible starting point for their research directions.

• Integration: We include wrappers and helper functions to ease the on-boarding of users already familiar with other RL libraries.

• Centered on Deception and Hidden Information: To the best of our knowledge, GPU-accelerated implementations of imperfect information games remains a mostly-unfulfilled niche within the ecosystem of RL environment libraries. We aim to fill this gap by providing implementations of both well-known and new games.

References (52)