betaFeedback

WorksComputer Science

Field-Time Transformers: Universal Model Architecture for Imperfect-Information Games by Structured Attention

Abstract

Self-play reinforcement learning in imperfect-information games is an active research area. While most of the recent progress focuses on the learning algorithm side, there is surprisingly little focus on the model architecture. Most agents rely on recurrent methods such as LSTM to encode the history information, which tends to compress the entire game into one state. However, this is different from how people play unfamiliar games in the real world: a useful reasoning strategy is to track the individual components of the game and analyze their self-interaction or cross-interaction over time. For example, a player can inspect the card colors or ranks in Hanabi independently rather than mixing everything. In this work, we propose the Field-Time Transformer (FTT) inspired by this thinking pattern. FTT takes the history of different components, or fields, as inputs, and alternately uses field attention among the fields at the same timestep and temporal attention along each field's history. As almost all games admit such a decomposable structure, this design provides a general architecture for imperfect-information games. FTT presents strong empirical performance on a variety of games. For cooperative games where an absolute score is available, we show that the FTT agent is more sample efficient compared to the previous LSTM baselines. It reaches the state-of-the-art scores of 24.78, 24.96, 24.95, and 24.86, with perfect rates of 84.75%, 97.12%, 95.84%, and 88.80% in two- to five-player Hanabi, respectively. In more competitive game environments, Dou Dizhu, Guan Dan, and Dark Chess, the FTT agents also achieve stronger performance compared to the released agents in a variety of games, including those with test-time improvement.

Introduction

An increasingly popular approach for solving imperfect-information games is self-play reinforcement learning, as recent training recipes have demonstrated its strong performance. It has produced the best-known agents in a variety of strategic games and even achieved superhuman performance; examples include Stratego [27, 34], Hanabi [15, 17], Mahjong [11, 20, 37], Dou Dizhu [9, 43, 45], and Generals.io [35]. Previous studies generally focus on the training algorithm. Methods including regularized policy gradients [33], centralized critics [44], and lower-variance advantage estimates [9] improve the convergence speed as well as the stability during training.

However, there has been surprisingly little attention to the model architecture that encodes the policy. Since the policy of an imperfect-information game might rely on small changes in the game history, the policy generally needs to account for any factor of the past. The most common approach is thus to compress the game history into a single hidden state with recurrent neural networks, with the network taking a flat hand-designed feature vector as input [2]. This approach is not ideal as the long-term dependency is not naturally encoded in a small recurrent state and is generally hard to distinguish from noise. More recent approaches choose to replace the recurrent network over states with a Transformer over a stream of events [9], or manually select the long-term features and parse the game states with a Transformer on the current time frame [34, 35].

People generally follow a more structured thinking pattern different from these agents. A more natural reasoning strategy is to track the persistent components in the games. In card games like Hanabi, a natural way is to think over the cards grouped by different colors individually, dividing the task into smaller groups and trying to come up with a policy that focuses on only a small portion of the cards, then integrating the thoughts from different parts to synthesize a reasoning move. Compared to the straightforward approach that investigates the game as a complex object as a whole, corresponding to compressing the entire game history into a state vector, this divide-and-conquer reasoning pattern can have better alignment with the structure of the game and thus can enable more effective reasoning.

In this work, we introduce the Field-Time Transformer (FTT) inspired by this structured reasoning pattern. FTT keeps track of the persistent components, referred to as fields, and treats them as first-class elements of the model architecture. Rather than compressing the game history into a single vector stream as in the recurrent neural network approaches, FTT maintains a set of parallel streams associated with the fields over timesteps. The field streams are processed by attention mechanisms applied in a factorized and interleaved manner, across fields at each timestep and across timesteps within each field, similar to the divided space-time attention for video modeling in ViViT [1] and TimeSformer [5]. The action heads are further organized according to the game’s structure such that each action is read out from the field it relates to. This creates a structured representation of the action space rather than using a flat output layer with thousands of largely unrelated heads.

We benchmark the performance of FTT on a variety of games and present strong performance across all of them. In the cooperative game Hanabi, the FTT agent reaches self-play scores of 24.78, 24.96, 24.95, and 24.86 in two- to five-player games. These scores exceed every published result we are aware of, including those with test-time policy improvement. Under the same amount of environment timesteps and matched actor computation, the FTT agent learns much faster and reaches higher final scores and perfect-game rates compared to the LSTM actors. In the competitive games, the FTT agent outperforms the previous state-of-the-art bot Ataraxos [34] in Dou Dizhu by 0.19 points per deal with its test-time policy improvement enabled, and its base policy by 0.24. In Guan Dan, the FTT agent wins 72.7% of the hands against the public baseline DanZero [22]. In Dark Chess, the FTT agent scores 59.6% against our reimplementation of the search of the superhuman Obscuro [47], which solves subgames at test time, with a search tree of one million nodes.

To summarize, our main contributions are:

  • We propose FTT, an architecture for imperfect-information game agents that models the observation history as parallel field streams evolving over time.

  • Experiments show that FTT agents achieve state-of-the-art performance in Hanabi, Dou Dizhu, and Guan Dan, and score above one half against our reimplementation of the search of Obscuro in Dark Chess.

Related Work

Model Architecture for Imperfect-Information Games. In imperfect-information games, different game histories imply different world states, and thus agents need to make decisions based on the information in the past. A standard approach to processing temporal information is to encode each timestep into a frame and process it using an LSTM [14]. In Hanabi, the feature vector is created using a flat, hand-designed encoding on the current observation [2, 15, 16, 17, 34]. The superhuman video game agents AlphaStar [41] and OpenAI Five [4] further use self-attention or pooling to combine the units to form the observation. Another line of work uses hand-crafted observation tensors to include past move history. In Dou Dizhu and Guan Dan, DouZero [45] and PerfectDou [43] encode the hands, played cards, and the most recent 15 moves into card matrices processed with a CNN. The Guan Dan agent DanZero [22] uses a similar encoding but uses a fully connected network as the main trunk. In Stratego, DeepNash [27] stacks the last 40 moves into a board tensor and processes it with a CNN. More recent approaches, including Ataraxos in Stratego [34] and AverageJoe in Generals.io [35], use hand-designed history information and process the board with a Transformer.

Factorized Attention. The tasks of video models generally need to comprehend patches across the frames. While a full computation among all patches of the video can be inefficient, one of the most standard approaches is to factorize the computation into the spatial axis and the temporal axis, as P3D [28], R(2+1)D [38] and S3D [42] do for 3D convolutions. TimeSformer [5] brings this factorization to attention: each block first attends to the same patch location across frames and then to the other patches of the same frame. ViViT [1] compares several such factorizations with joint attention over all space-time tokens, and other models apply the two attentions separately or in stages [12, 24, 48]. Another line of work keeps joint attention but restricts it to local windows [21], pooled keys and values [8] or motion trajectories [26]. Video generation models mostly use the factorized form [6, 13, 32], and Latte [23] finds alternating spatial and temporal blocks the best of four decompositions. In most of these models the temporal attention covers a whole clip in both directions, while Phenaki [40] and the world model Genie [7] make it causal. Outside video, Scene Transformer [25] alternates attention across time and across the agents in driving scenes.

The Field-Time Transformer

In this section, we introduce the Field-Time Transformer (FTT), shown in Figure 1. We first describe how to represent the game using fields in § 3.1. We then explain how the field streams are processed over time and how the actions are read out in § 3.2. Further details on individual games are provided in Appendix § 7.

FTT architecture

Figure 1. FTT. Each arrow carries one vector per field, and the block is repeated LL times.

Representing Games with Fields

The intuition behind FTT is to track persistent components of a game throughout an episode, which we refer to as fields. Fields can be chosen flexibly according to the structure of each game, preferably capturing strategically relevant aspects. At every decision step a field holds what the player currently knows about its component, and over an episode this forms a data stream that records all events relevant to it. Information that does not naturally belong to any specific field is instead assigned to an additional global field. The information corresponding to the field is generally sparse with respect to the possible features. As a result, we prefer to use a fixed list of slots, each holding one token from a large feature vocabulary. While this is equivalent to a sparse 0-1 encoding, it allows the model to have an encoding that supports a variety of tokens.

Take Hanabi as an example: the color and the rank are two persistent components of the game, so we set up one field for each color and one for each rank. Each field then records the history of its component: for each color field, we record the height of that color’s firework, which ranks have been played or discarded, which of the partner’s cards are that color, and which cards in any player’s hand could still be that color. The field of a rank records similar information but corresponding to the ranks. Additional information like players’ seats, who is acting, and the number of hint and life tokens goes to the global field stream. Other games like Dou Dizhu take the rank as the fields, and each field counts the cards of that rank in the player’s hand and played by each player. Detailed information of other games can be found in Appendix § 7.

We set up the action readout according to the field each action relates to. An action that concerns the component of a local field is read out from that field; otherwise it is attached to the global field. In Hanabi, we read out hints that name a color or a rank from the local field corresponding to that color or rank. Playing or discarding a card from the hand names no color or rank, and we thus attach it to the global field. In Dou Dizhu, actions that name a rank are read out from that rank’s field, while pass, bidding and doubling go to the global field. In games with turns, a player that is not to act still observes the step and takes a Noop, which the global field reads out. Table 1 lists the number of fields, token slots and outputs of every game.

GameField TypeField CountKKLocalGlobalTotal ActionsLocalGlobal
Hanabi 2Pcolor or rank1026921111
Hanabi 3Pcolor or rank10361031211
Hanabi 4Pcolor or rank1039113939
Hanabi 5Pcolor or rank1047124949
Dou Dizhucard rank156301341011
Guan Dancard rank152434172134
Dark Chessboard square64164,865761

Table 1. The parameters of the games considered in this work. Action readout gives the output width per field. Unused rank outputs in the card games are omitted from the action set, and the actions include Noop where applicable.

Field Attention and Temporal Attention

Input Embedding. Denote by oto_t the observation tensor at decision step tt such that ot[k,j]o_t[k,j] contains the token in slot jj of field kk. The embedding layer of FTT embeds the tokens into a vector with a shared table E\mathbf{E} together with the field’s own embedding pkp_k:

xt,k0=pk+∑jE[ot[k,j]],k∈[0,K].(1)x^0_{t,k}=p_k+\sum_j \mathbf{E}[o_t[k,j]], \qquad k\in[0,K]. \tag*{(1)}

Here k=0,…,K−1k=0,\ldots,K-1 are the local fields and k=Kk=K is the global field, which takes its tokens from a table of its own. While pkp_k is generally a field-specific encoding, for structured fields like a board, pkp_k can be chosen as the sum of its row and column embeddings.

The FTT Block. The backbone of the network is a stack of LL identical blocks, each containing three sub-layers: a temporal attention sub-layer, a field attention sub-layer, and a feed-forward network:

ut,k=xt,kℓ−1+Att⁡ℓT(N(xt,kℓ−1);{N(xτ,kℓ−1)}τ∈Wt),vt,k=ut,k+Att⁡ℓF(N(ut,k);{N(ut,k′)}k′=0K),xt,kℓ=vt,k+Fℓ(N(vt,k)).(2)\begin{aligned} u_{t,k}&=x^{\ell-1}_{t,k}+\operatorname{Att}^{T}_{\ell}\left(N\left(x^{\ell-1}_{t,k}\right);\left\{N\left(x^{\ell-1}_{\tau,k}\right)\right\}_{\tau\in\mathcal{W}_t}\right),\\ v_{t,k}&=u_{t,k}+\operatorname{Att}^{F}_{\ell}\left(N(u_{t,k});\left\{N(u_{t,k'})\right\}_{k'=0}^{K}\right),\\ x^\ell_{t,k}&=v_{t,k}+F_\ell\left(N(v_{t,k})\right). \tag*{(2)} \end{aligned}
vt,k=ut,k+Att⁡ℓF(N(ut,k);{N(ut,k′)}k′=0K)(3)v_{t,k}=u_{t,k}+\operatorname{Att}^{F}_{\ell}\left(N(u_{t,k});\left\{N(u_{t,k'})\right\}_{k'=0}^{K}\right) \tag*{(3)}
xt,kℓ=vt,k+Fℓ(N(vt,k)).(4)x^\ell_{t,k}=v_{t,k}+F_\ell\left(N(v_{t,k})\right). \tag*{(4)}

where NN is the RMS normalization [46] applied to the input of each sub-layer, Att⁡(q;c1,…,cn)\operatorname{Att}(\mathbf{q};\mathbf{c}_1,\ldots,\mathbf{c}_n) is multi-head attention of a query over a set of context vectors [39] and FℓF_\ell is a gated feed-forward network [31] applied to each field separately.

In the temporal attention (2), we adopt sliding-window attention [3] with RoPE [36] so the attention is distributed over the last WW timesteps of the episode of the same field. The field attention (3) then takes all fields at the timestep and applies a self-attention across all the fields of the current time step. The feed-forward network uses the SwiGLU activation.

This architecture can be considered as a counterpart of the divided space-time attention of TimeSformer [5] with fields in place of image patches. The factorization keeps the attention affordable compared with a full attention over all fields and timesteps, and since the fields follow the structure of the game, the separation is also aligned with the common reasoning pattern of people.

We further remark that the temporal attention is causal and windowed, which allows fast inference: KV caches are maintained for each temporal attention sub-layer, so that when a new observation oto_t arrives, only the states of step tt need to be computed. This makes FTT comparable in efficiency to the previous LSTM approaches.

Action Readout. Denote by At\mathcal{A}_t the legal actions at timestep tt. Every action aa is assigned to a field k(a)k(a), either local or global, and to an output s(a)s(a) of the readout, which has a weight vector ws\mathbf{w}_s and a bias bsb_s for each output ss. The action reads its field’s final representation ht,k=N(xt,kL)h_{t,k}=N(x^L_{t,k}) through its output:

zt(a)=ws(a)Tht,k(a)+bs(a),π(a∣o1:t)=exp⁡zt(a)∑a′∈Atexp⁡zt(a′)for a∈At.(5)z_t(a)=\mathbf{w}_{s(a)}^\mathsf{T}h_{t,k(a)}+b_{s(a)},\qquad\pi(a\mid o_{1:t})=\frac{\exp z_t(a)}{\sum_{a'\in\mathcal{A}_t}\exp z_t(a')}\quad\text{for }a\in\mathcal{A}_t. \tag*{(5)}

All local fields share the same outputs, so two actions of the same kind on different fields, such as hints to the same partner that name different colors, use the same weights and differ only in the field they read. The global field has outputs of its own, including the one of Noop. For structured games that contain a board, such as Dark Chess, a move is read out from the field of its source square, with one output for each displacement, knight move and promotion.

Experiments

In this section, we evaluate the performance of FTT in a variety of games. The models are trained using VRPO [9], with the hyperparameters listed in Appendix § 8. The detailed description of each game can be found in Appendix § 6.

Hanabi: A Case Study on Different Architectures

We first benchmark the performance of FTT in Hanabi [2]. Hanabi is a cooperative card game in which players are not allowed to see their own hand of cards but only their teammates’. The goal of the players is to play a total of 25 cards in order. The score is the number of cards played, and a game in which all 25 cards are played is called perfect.

In Hanabi, the local fields of FTT are the five colors and the five ranks, encoded as in § 3.1. Each hint is read out from the field of the color or rank it names, with one output per partner, while playing or discarding each card of the hand and the Noop of a player who is not acting are read out from the global field.

We train FTT agents on Hanabi for 2 to 5 players (Hanabi 2P to Hanabi 5P) using VRPO with a total of 40,000 iterations, with each iteration using 512 environments in parallel for 512 steps, forming a training schedule of approximately 1.05×10101.05 \times10^{10} timesteps. Each setting is trained with 3 random seeds, and we report the averaged results in Table 2. Compared to the previous results, the FTT agent achieves the highest score and the highest perfect rate at every player count, even including those methods such as SPARTA [19] and Ataraxos [34] that are equipped with test-time improvement routines. Among all the settings, the FTT agent has the greatest improvement in 5-player Hanabi, improving the results to 24.864 from 24.410 achieved by Ataraxos and playing a perfect game in about 89% of the games, improved from 58%.

GameTest-time policy improvementAgentScorePerfect rate (%)
Hanabi 2PNoFTT24.777±0.00524.777 \pm0.00584.747±0.28084.747 \pm0.280
SAD [15]24.010±0.01024.010 \pm0.01052.390
SAD + Aux [15]24.080±0.01024.080 \pm0.01056.090
Ataraxos [34]24.454±0.00824.454 \pm0.00869.580±0.33069.580 \pm0.330
Forkel et al. [10]24.510±0.02024.510 \pm0.020
YesSPARTA [19]24.610±0.01024.610 \pm0.01075.500
Ataraxos [34]24.654±0.00724.654 \pm0.00777.530±0.42077.530 \pm0.420
Hanabi 3PNoFTT24.962±0.00224.962 \pm0.00297.120±0.11197.120 \pm0.111
SAD [15]23.930±0.01023.930 \pm0.01048.050
SAD + Aux [15]23.810±0.01023.810 \pm0.01049.740
Ataraxos [34]24.612±0.00824.612 \pm0.00877.610±0.29077.610 \pm0.290
Forkel et al. [10]24.760±0.02024.760 \pm0.020
YesSPARTA [19]24.610±0.01024.610 \pm0.01074.500
Ataraxos [34]24.863±0.00524.863 \pm0.00589.900±0.30089.900 \pm0.300
Hanabi 4PNoFTT24.949±0.00124.949 \pm0.00195.840±0.08395.840 \pm0.083
SAD [15]23.810±0.01023.810 \pm0.01041.450
SAD + Aux [15]23.470±0.01023.470 \pm0.01033.870
Ataraxos [34]24.466±0.00824.466 \pm0.00868.520±0.33068.520 \pm0.330
Forkel et al. [10]24.590±0.04024.590 \pm0.040
YesSPARTA [19]24.490±0.01024.490 \pm0.01064.200
Ataraxos [34]24.852±0.00524.852 \pm0.00588.400±0.32088.400 \pm0.320
Hanabi 5PNoFTT24.864±0.00424.864 \pm0.00488.800±0.34288.800 \pm0.342
SAD [15]23.010±0.01023.010 \pm0.01013.930
SAD + Aux [15]22.250±0.01022.250 \pm0.0107.330
Ataraxos [34]23.485±0.01223.485 \pm0.01226.810±0.31026.810 \pm0.310
Forkel et al. [10]24.090±0.06024.090 \pm0.060
YesSPARTA [19]23.910±0.01023.910 \pm0.01032.900
Ataraxos [34]24.410±0.00924.410 \pm0.00958.050±0.49058.050 \pm0.490

Table 2. Hanabi self-play score and perfect rate. Methods with test-time policy improvement serve as performance references. FTT’s SEM is across training seeds, as is that of Forkel et al. [10], whereas the other published errors are over evaluation games; unreported values are left blank. The reported uncertainty is 1.0×1.0 \times SEM.

Architectural Ablations. We study the performance of different architectures in 2- and 3-player Hanabi. Each model is trained with the same centralized critic but with different actor architectures. Each ablated model is trained under the same schedule of our main line FTT, with either the parameters or the FLOPs per forward matching the main model. Field-attention-only FTT removes the temporal attention from every block and moves the width to field attention so that both the parameters and the FLOPs per forward match the main model. Since the encoding writes the results of the hints into the cards, the field-attention-only FTT keeps what the hints revealed but cannot see the order of the hints and the card plays. We also compare the model with LSTM, which is the standard actor of the Hanabi literature [15, 16, 17]. The model operates on an observation of one flat one-hot vector with two LSTM layers and a projection readout. The feature dimensions of the LSTM are chosen to approximately match the number of parameters or FLOPs used per timestep, resulting in feature dimensions of 1280 and 384, respectively.

We track the score and the perfect rate during training, and present the result in Figure 2. It can be seen that the FTT agent has a much faster learning curve as well as a higher final score. After

Figure 2. Different architectures in Hanabi. The shaded area presents the uncertainty of 1.0×SEM1.0 \times\mathrm{SEM}.

40,000 iterations, the FTT agent plays a perfect game in 84.7% of the 2-player and 97.1% of the 3-player games, against 73.2% and 83.4% for the compute-matched LSTM, which has more than ten times as many parameters. In 2-player Hanabi, the FTT agent surpasses the base policy of Ataraxos after only 3,000 iterations, roughly 7.9×1087.9 \times10^{8} timesteps. The field-attention-only FTT already learns faster and scores higher than both LSTM actors, and the temporal attention further improves both the learning speed and the final performance.

Dou Dizhu, Guan Dan, and Dark Chess

We also apply FTT to several competitive multi-player imperfect-information games and compare it with existing agents. Each FTT agent is trained using VRPO for 40,000 iterations, with each iteration using 1,024 environments in parallel for 512 steps, forming a training schedule of approximately 2.10×10102.10 \times10^{10} timesteps.

Dou Dizhu. Dou Dizhu is a three-player card game between one landlord and two peasants using a 54-card poker deck. A landlord is decided by a bidding phase at game start and plays against the other two players. The goal of the players is to discard all their hands first within a set of available patterns in the subsequent playing phase.

We treat the card rank as fields in Dou Dizhu. This results in 15 local fields containing 13 normal poker ranks and two additional joker ranks. At each time step, each local field records how many cards are discarded by every player, held by the hero player, and revealed as the landlord’s extra cards. The actions are split into multiple stages of decisions so that the kickers are decided in auxiliary timesteps. This allows us to restrict the main actions to solo, pair, three of a kind, straights, etc., each read out from the field of its main rank through its own output. In this way, FTT encodes the large action set of more than 27,000 distinct card combinations without a flat output layer over all of them.

We evaluate the performance of the FTT agent using the fixed-landlord card-play benchmark according to PerfectDou [43] with only the playing phase considered: each deal is played twice with the roles exchanged, where the landlord receives ±2\pm2 points, doubled for every bomb. The performance is then evaluated by the average gain over the two role assignments.

The FTT agent presents a strong performance under this benchmark. It surpasses the previous best agent, Ataraxos, in 6,000 iterations, or roughly 3.1×1093.1 \times10^{9} timesteps. Under an evaluation of 10,000 duplicate deals, the FTT agent presents an average gain of 0.236±0.0150.236 \pm0.015 against the base policy of Ataraxos [34], 0.366±0.0160.366 \pm0.016 against PerfectDou [43], and 0.548±0.0160.548 \pm0.016 against DouZero [45]. It also beats Ataraxos by 0.194±0.0150.194 \pm0.015 points with the test-time policy improvement of Ataraxos enabled, at a nominal rollout budget of 200 per decision and an update-equivalent step size of 5.

Guan Dan. Guan Dan is a four-player card game between two teams using two poker decks of a total of 108 cards. Similar to Dou Dizhu, the goal of the players is to discard all their hands before the opponent team. The game has a leveling on top of the normal gameplay structure in which winning a hand proceeds to the next level, and the team reaching the final level wins.

We treat the card rank as fields in Guan Dan similar to Dou Dizhu. This again results in 15 local fields containing 13 normal poker ranks and two additional joker ranks. Since the suit in Guan Dan has functionality for feasible patterns, each local field records how many cards are discarded by every player with different suits counted separately. As there are wild cards in Guan Dan, the actions are split into two stages, where in the first stage the pattern of the formed action is decided, and in the second stage the individual cards are selected to fulfill the pattern.

We evaluate the performance of the FTT agent in single hands at the first level. The FTT agent gains 1.532±0.0231.532 \pm0.023 levels and a win rate of 72.7% per hand against DanZero [22] over 2,000 duplicate deals.

Dark Chess. Dark Chess is a chess variant with fog of war: the players can only see their own pieces and the squares they can move to. This allows bluffing and requires the players to anticipate threats they cannot see.

We treat the 64 squares of the board as the local fields in Dark Chess. At each time step, each square field holds a single token for what the player sees there: whether it is a hidden square, an empty square, a self piece, a visible enemy piece, or an invisible square of the enemy that blocks the pawn. The global field further contains the additional information, including the player’s color, whether it is to move, the castling rights and the move numbers. A move is read out from the field of its source square, with one output for each displacement, knight move and promotion.

We evaluate the FTT agent with a round robin among the checkpoints of its run and compare it with the search of Obscuro [47] in Figure 4. As no code of Obscuro is published, we reimplemented its search with a budget in nodes of the search tree; at its published setting of 5 seconds per move, Obscuro searches 1,070,552 nodes on average. With one forward pass per decision, the final FTT policy scores above one half against every tree size from 1,000 to 3,000,000 nodes, including 59.6 ± 2.0% against 1,000,000 nodes, a tree size that the training curve passes after about 21,000 iterations. Appendix § 9 describes the reimplementation, and Appendix § 10.§ 2 lists all matches.

Figure 4. Dark Chess. Elo of the FTT checkpoints during training relative to the final checkpoint, from a round robin among them, and of our reimplementation of the search of Obscuro at four tree sizes (dotted), fitted into the same ratings from its matches against the checkpoints (Appendix § 9). The shaded area presents the uncertainty of 1.0×SEM1.0 \times\mathrm{SEM}.

Conclusion

The Field-Time Transformer treats the observation history of an imperfect-information game as a grid of fields over time, attends across the fields of each observation and along the history of each field, and reads every action from the field it belongs to. With one forward pass per decision, the FTT agent scores above the published Hanabi results at every player count, including the results of agents that use test-time policy improvement, and in five-player Hanabi it raises the perfect rate from 58% to 89%. The ablations attribute this to the architecture. Sharing one set of weights across the fields of the observation makes learning faster and the final policy stronger than a recurrent actor on a flat vector, and an LSTM with the same compute per decision and more than ten times as many parameters does not close the gap. Letting every field attend over its own past then adds several points of perfect rate. The same organization transfers to the large games. With only the input tokens and the readouts specific to the game, the FTT agents beat the released agents in Dou Dizhu and Guan Dan, among them Ataraxos with its test-time policy improvement enabled. In Dark Chess, the FTT agent scores above one half against our reimplementation of the search of Obscuro at every tree size from 1,000 to 3,000,000 nodes, a range that contains the tree size of Obscuro’s published setting.

Games Description

Hanabi. Hanabi is a cooperative card game for two to five players [2]. The deck has 50 cards in five colors, and each color has three cards of rank 1, two each of ranks 2 to 4 and one of rank 5. A player holds five cards in games of two or three players and four cards in games of four or five, and sees every hand except its own. On its turn a player gives a hint, discards a card or plays a card. A hint names a color or a rank, points out all cards of that color or rank in one teammate’s hand and costs one of the eight hint tokens. A discard returns a hint token. A played card has to be the next rank of its color’s firework; otherwise the team loses one of its three lives. Completing a firework with its rank-5 card also returns a hint token. The game ends when all five fireworks are complete, when the lives are used up, or one round after the deck runs out. The score is the number of cards played, at most 25, and it is zero when all lives are lost. We use the games with two to five players (Hanabi 2P to Hanabi 5P).

Dou Dizhu. Dou Dizhu is a three-player shedding game with a 54-card deck, played by one landlord against two peasants. After the deal the players bid for the role of the landlord, who receives three extra cards that are shown to everyone, and the players may then double the stakes. In the playing phase the players take turns to play a combination of cards that beats the previous one, such as a single card, a pair, a triple with attached cards, a straight or a bomb, or to pass. The side of the first player to empty its hand wins. The stakes double with every bomb played. Dou Dizhu is a standard benchmark for self-play reinforcement learning [43, 45]. Our comparisons use the card-play benchmark of PerfectDou, in which the landlord is fixed and only the playing phase is played.

Guan Dan. Guan Dan is a four-player shedding game between two teams of partners who sit opposite each other, played with two 54-card decks, 27 cards per player [22]. A hand is played at a level, which is one of the thirteen ranks. Cards of the level rank are higher than every other card except the jokers, and the two hearts of the level rank are wild cards. The combinations are singles, pairs, triples, full houses, five-card straights, three consecutive pairs, two consecutive triples, bombs of four to ten cards of one rank, straight flushes and the four jokers. The team of the first player to finish wins the hand and advances three levels if the partner finishes second, two if third and one if last. The next hand starts with a tribute, in which the losers give their highest cards to the winners, and a match is won by the team that reaches the final level. We train and evaluate on single hands.

Dark Chess. Dark Chess, also called fog-of-war chess, is chess in which a player sees only its own pieces and the squares to which they can move [47]. A pawn sees the square in front of it only when that square is empty and its capture squares only when they hold an enemy piece. When a pawn is blocked by a piece it cannot see, the player learns that the square is occupied and nothing more. There is no check: a move may leave the player’s own king attacked, a player whose king can be captured loses, and so does a player without a move. Castling and en passant are available. A game is drawn by threefold repetition, by the fifty-move rule or after 1,000 plies.

Game Encoding

Every entry of a field is one categorical token in Eq. (1), and the local and global readouts are those of Eq. (5). In Table 1, Field Count is the number KK of local fields, Token Slots the number of entries of a local field and of the global field, Total Actions the size of the action set including Noop, and Action Readouts the outputs of a local field and of the global field.

Hanabi

Local Fields. The ten local fields are the five colors and the five ranks, and the two kinds share one slot format written along the other axis, the ranks of a color field and the colors of a rank field. A field records its progress, the height of that color’s firework or the number of colors on which that rank has been played; which values of the other axis have been played and how many copies of each have been discarded; for every card in a partner’s hand, the card’s other-axis value if the card belongs to this field; and, for every card in every hand, whether the hints given so far allow the card to be of this color or rank. These possibility entries are those of the standard Hanabi observation and never reveal the identity of a card in the player’s own hand.

Global Field. The global field holds the player’s seat, whose turn it is, the hint and life tokens, the size of the deck, the end-game countdown, every hand’s size and the last public action.

Action Readout. A hint is read from the field of the color or rank it names, with one output per partner, P−1P - 1 per local field. Playing or discarding a position and Noop are read from the global field, 2H+12H + 1 outputs for a hand of HH cards.

Rewards. Every player receives the final score at the end of the game.

Dou Dizhu

Local Fields. The fifteen local fields are the thirteen ranks and the two jokers. A rank’s field has six entries, each a count from zero to four: the cards of that rank in the player’s hand, the cards of that rank played so far by each of the three players, those among the landlord’s three revealed cards, and those already selected for the combination that the acting player is assembling.

Global Field. The global field has 30 entries, among them the phase of the game, the seats of the landlord and of the acting player, the bids and doublings, the combination to beat, the number of bombs played, the cards remaining in each hand, and the state of the combination being assembled.

Action Readout. A combination is built over consecutive decisions. Actions that name a rank use ten outputs of that rank’s readout: a single, a pair, a triple or four of a kind of the rank; the start of a straight, of a chain of pairs or of a chain of triples at the rank; and the end of a chain at the rank, plain or with single or paired attachments. Passing, the rocket, the kind of attachment, bids, doubling and Noop use eleven outputs of the global readout. Not every output is meaningful for every rank, which leaves 134 actions in total.

Rewards. A peasant’s stake is the bid, doubled for every bomb or rocket played, for a spring, in which the peasants have played no card or the landlord has played only its first combination, and for a doubling. Each peasant wins or loses its stake, and the landlord wins or loses the sum of the two.

Guan Dan

Local Fields. The fifteen local fields are again the ranks. Suits matter in Guan Dan, for straight flushes and for the wild cards of the current level, so a rank’s field has 24 entries: for each of the four suits, the number of cards (zero to two, since two decks are used) in the player’s hand, in the cards played by each of the four players, and in the combination being assembled.

Global Field. The global field has 34 entries, among them the level, the seats of the acting and the finished players, the combination to beat, the cards left in each hand and the tribute cards.

Action Readout. A combination is chosen in two stages, first its pattern and then the cards that fill it. The readout has thirteen outputs per rank and four for the global field: 172 actions.

Rewards. Each player of the winning team receives the number of levels won, three, two or one, and each player of the losing team the negative of it.

Dark Chess

Local Fields. The 64 local fields are the squares of the board, and the embedding of a field is the sum of a rank embedding and a file embedding. A square’s field has a single entry with fifteen values: hidden, visibly empty, one of the twelve pieces, or an enemy piece of unknown type, which occurs when a pawn is blocked by a piece it cannot see.

Global Field. The global field has six entries: the player’s color, whether it is to move, its two castling rights and the move number in two digits.

Action Readout. A move is read from the field of its source square, which has 76 outputs: 56 for a displacement of one to seven squares in one of eight directions, eight for the knight moves, and twelve for a promotion in one of three directions to one of four pieces. The 64 squares thus give 4,864 moves, and Noop is read from the global field.

Rewards. The winner receives +1+1 and the loser −1-1, and both players receive 0 in a draw.

Training Details

Training Objective. All networks are trained by self-play with Variance-Reduced Policy Optimization (VRPO) [9], a PPO-style algorithm [30] for stochastic self-play. VRPO trains a centralized action-value critic Q(s,a)Q(s,a) on the full state ss of the game, including the information hidden from the acting player, and estimates the advantage of the action taken at step tt by

A^t=Q(st,at)−Vˉ(st)+∑τ≥tλτ−tδτ,(6)\hat{A}_t = Q(s_t,a_t) - \bar{V}(s_t) + \sum_{\tau\ge t} \lambda^{\tau-t}\delta_\tau, \tag*{(6)}
Vˉ(s)=∑aπ(a∣s)Q(s,a),δτ=rτ+Vˉ(sτ+1)−Q(sτ,aτ),\bar{V}(s) = \sum_a \pi(a \mid s)Q(s,a), \qquad\delta_\tau= r_\tau+ \bar{V}(s_{\tau+1}) - Q(s_\tau,a_\tau),

where λ\lambda is a trace parameter and π(a∣s)\pi(a \mid s) is the probability that the player who acts in ss chooses aa. Taking the expectation over the policy in Vˉ\bar{V} removes the noise that sampled future actions add to generalized advantage estimation [29], which matters when policies are as stochastic as they are in these games. Let πold\pi^{\mathrm{old}} be the policy that collected the data of an iteration, ρt=π(at∣o1:t)/πold(at∣o1:t)\rho_t = \pi(a_t \mid o_{1:t})/\pi^{\mathrm{old}}(a_t \mid o_{1:t}) the probability ratio of the action taken, and A~t\tilde{A}_t the advantage estimate of Eq. (C.1) normalized over the minibatch to zero mean and unit variance. The policy-gradient part of the actor’s objective is

−Et[min⁡{ρtct, clip⁡(ρt,1−ϵ,1+ϵ)ct}],ct=A~t−κlog⁡ρt,(7)-\mathbb{E}_t\left[\min\left\{\rho_t c_t,\ \operatorname{clip}(\rho_t,1-\epsilon,1+\epsilon)c_t\right\}\right], \qquad c_t = \tilde{A}_t - \kappa\log\rho_t, \tag*{(7)}

where ctc_t is treated as a constant in the gradient; the term −κlog⁡ρt-\kappa\log\rho_t in ctc_t penalizes KL⁡(π∥πold)\operatorname{KL}(\pi\mathbin{\|} \pi^{\mathrm{old}}) with coefficient κ\kappa. The critic is trained by regression of Q(st,at)Q(s_t,a_t) on the target Q(st,at)+∑τ≥tλτ−tδτQ(s_t,a_t) + \sum_{\tau\ge t}\lambda^{\tau-t}\delta_\tau with the residuals δτ\delta_\tau of Eq. (C.1), the target being held fixed. Rewards are the scores of the game at its end and are not discounted. Fan and Farina [9] derive the estimator and analyze its variance.

Sequence Training. An iteration collects a fixed number of steps from parallel environments, so the collected fragments generally begin in the middle of an episode. The actor is trained on a fragment starting from the memory it had at the fragment’s first step, and no gradient flows into that memory. Attention never crosses the boundary between two episodes inside a fragment.

Training Hyperparameters. We use Muon [18] with momentum 0.95 and weight decay 0.01 for the weight matrices of the attention projections, the feed-forward networks, the actor’s readouts and the LSTM layers, and Adam with β=(0.9,0.999)\beta=(0.9,0.999) and no weight decay for the remaining parameters, namely the embedding tables, the gains of the normalizations, the biases and the output layer of the critic. Gradients are clipped to norm 1. Every iteration performs one actor epoch and one critic epoch, each over 16 minibatches. The base clipping coefficient is ϵbase=0.2\epsilon_{\mathrm{base}}=0.2, the reverse-KL coefficient is κ=0.02\kappa=0.02, and the trace parameter is λ=0.95\lambda=0.95. Table 4 lists the base learning rate η\eta, the schedule constant TT and the training budget of each game. Hanabi is trained with three seeds, and Dou Dizhu, Guan Dan and Dark Chess with one. Dark Chess starts with 5,000 iterations of imitating a chess policy that sees the full board and uses no test-time policy improvement, and its 40,000 iterations count the self-play that follows.

GameddWWη\etaTTEnvironmentsStepsIterationsTransitions
Hanabi 2P192324×10−44 \times10^{-4}10,00051251240,0001.05×10101.05 \times10^{10}
Hanabi 3P192324×10−44 \times10^{-4}10,00051251240,0001.05×10101.05 \times10^{10}
Hanabi 4P192324×10−44 \times10^{-4}10,00051251240,0001.05×10101.05 \times10^{10}
Hanabi 5P192324×10−44 \times10^{-4}10,00051251240,0001.05×10101.05 \times10^{10}
Dou Dizhu384642×10−42 \times10^{-4}10,0001,02451240,0002.10×10102.10 \times10^{10}
Guan Dan384642×10−42 \times10^{-4}10,0001,02451240,0002.10×10102.10 \times10^{10}
Dark Chess384642×10−42 \times10^{-4}10,0001,02451240,0002.10×10102.10 \times10^{10}

Table 4. Hyperparameters by game: the residual width dd and history window WW of the actor, the base learning rate η\eta, the schedule constant TT, the parallel environments, the steps per environment and iteration, the iterations and the environment transitions of a run. In a transition every player receives an observation. Dark Chess counts self-play after its imitation phase.

At iteration ii, the actor learning rate, the critic learning rate and the clipping coefficient are

ηactor=ηf(i),ηcritic=ηf(i),ϵ=ϵbasef(i),f(i)=min⁡{1,Ti}.(8)\eta_{\mathrm{actor}} = \eta f(i), \qquad\eta_{\mathrm{critic}} = \eta\sqrt{f(i)}, \qquad\epsilon= \epsilon_{\mathrm{base}}f(i), \qquad f(i)=\min\left\{1,\frac{T}{i}\right\}. \tag*{(8)}

Every evaluation uses the exponential moving average of the actor’s weights with decay 0.999.

Model Architecture. The actor is the FTT of § 3 with L=6L = 6 blocks. Both attentions have four heads and width 2d/32d/3, the feed-forward networks have width 2d2d, and the residual width dd and the history window WW of each game are given in Table 4. The centralized critic has its own parameters and is used only in training; it uses L=6L = 6 blocks with field attention only over the fields of the full state, with the same feature and FFN widths as the corresponding FTT actor.

Evaluation Details

Hanabi

We evaluate Hanabi policies in self-play with the averaged weights of Appendix § 8, taking the most probable action at every decision. A game that loses all its lives scores zero. Checkpoints are saved every 1,000 iterations and evaluated on 2,000 games, the final checkpoint on 5,000, and all checkpoints and actors share the same random seeds. All 30 training runs use the hyperparameters of Table 4. We checked our environment against the Hanabi Learning Environment [2] by replaying 40 games with 2,478 decisions, and the two agreed in every observation and outcome.

Actor Compute. The FLOPs of Table 3 are the floating-point additions and multiplications of one decision by one player’s actor with a full history window, including the update of its memory. A multiply-add counts as two operations. The count covers the embedding, the blocks and the readout, and it leaves out the environment, the critic and training.

Actor ArchitectureParametersFLOPs per forward
FTT2.56M58.8M
FTT, field-attention only2.55M58.0M
LSTM, compute-matched (dim 1280)27.70M55.4M
LSTM, parameter-matched (dim 384)2.81M5.6M

Table 3. Parameters and FLOPs per forward of the actor architectures in 2-player Hanabi.

Published Reference Values. The FTT rows of Table 2 are means over the three training seeds, with no selection among the runs. The reference rows are taken from the publications, and each keeps the training and evaluation budget of its paper. The SAD values are from Table 2 of Hu and Foerster [15], where every entry is the best of 13 training runs, evaluated on 100,000 games with a score of zero when all lives are lost. For SPARTA we take, at each player count, the highest-scoring variant in Table 1 and Table 2 of Lerer et al. [19]: multi-agent search with a maximum range of 2,000 for two players and single-agent search for three to five players, all on learned blueprints. Both papers report standard errors for the scores and none for the perfect rates of these policies, so those cells of the table are blank. The values of Forkel et al. [10] are the greedy self-play scores of IPPO with an LSTM and entropy coefficient 0.01 in their Table 1, the variant with the highest self-play score at every player count; each is a mean over four training seeds, five in five-player Hanabi, each evaluated on 5,000 games, with the standard error over the seeds, and the paper reports no perfect rates. The Ataraxos values are from Supplementary Table S32 of Sokota et al. [34], with 10,000 evaluation games and, for test-time policy improvement, 10,000 rollouts per decision by every player. Values that a publication gives with fewer than three decimals are padded with zeros.

Dou Dizhu and Guan Dan

§ 4.2 defines the gain and the exchange of roles. For Dou Dizhu deal jj, let rjLr_j^L be the landlord’s score when the candidate is the landlord and rjPr_j^P the landlord’s score when the reference is the landlord; the gain on that deal is gj=(rjL−rjP)/2g_j = (r_j^L - r_j^P)/2. The benchmark has no bidding, so the actor’s history starts with a fixed bidding sequence that selects the benchmark’s landlord without doubling. In Guan Dan our rules engine is the referee, DanZero plays with its released weights and its own observation encoder, the opening seat is fixed, and each deal is played under both team assignments.

The final FTT policy plays 10,000 paired deals each against PerfectDou, DouZero and Ataraxos without test-time policy improvement, 10,000 against Ataraxos with test-time policy improvement, and 2,000 against DanZero. A paired deal is two hands with the roles exchanged, and the 10,000 deals against DouZero and against Ataraxos are all distinct. DouZero uses its released ADP weights for each of its three roles, and all FTT checkpoints use averaged weights. Ataraxos faces the FTT agent on the same 10,000 deals and the same role pairing with and without test-time policy improvement, so the two results can be compared deal by deal: test-time policy improvement recovers 0.042 ± 0.018 of the 0.236 points per deal.

For Ataraxos we use the 40,000-iteration policy checkpoint of its original Dou Dizhu experiments, which takes the most probable action when it plays without test-time policy improvement. With test-time policy improvement, the same policy is combined with its 40,000-iteration belief checkpoint and improved by an update-equivalent step with terminal-rollout action values and a step size of 5; the belief-sampling temperature is 1, and the rollout and final-action temperatures are 0. The nominal rollout budget is 200 per decision: each searched action receives ⌈200/A⌉\lceil200/A \rceil belief-world rollouts, where AA is the number of searched actions, so rounding can make the total exceed 200. To check our Ataraxos adapter, we replayed the published comparison of its base policy against PerfectDou on 1,000 separate pairs and obtained 0.159 ± 0.049 points, consistent with the published 0.152 ± 0.004.

In Figure 3, the horizontal lines and the 20,000-iteration points come from matches in which the final policy is the candidate. We plot them from the other side, with every paired gain negated and its standard error unchanged. The curves start from a uniform-random policy, which samples uniformly among the legal plays, including a pass when it is legal, over 1,000 paired deals in Dou Dizhu and 500 in Guan Dan.

Figure 3. Average gain against the final FTT policy during training in Dou Dizhu and Guan Dan, where the final policy’s comparison with itself is zero by definition. Horizontal lines present the performance of the released agents against the same final policy. The shaded area presents the uncertainty of 1.0×SEM1.0 \times\mathrm{SEM}.

Dark Chess

The round robin of Section 4.2 plays every pair of the 21 checkpoints at iterations 0, 2,000 and so on up to 40,000, where iteration 0 is the policy at the start of self-play, after the imitation phase. A pairing consists of 256 pairs of games, each pair played with the colors exchanged and the same random seed. Both policies use averaged weights, sample their first five moves and then take the most probable action. A game counts one for a win, one half for a draw and zero for a loss, and the standard error of a pairing is taken over its 256 pair means.

We fit one rating per checkpoint by maximum likelihood under the Elo model, in which a checkpoint rated rir_i is expected to score 1/(1+10(rj−ri)/400)1/(1 + 10^{(r_j-r_i)/400}) against one rated rjr_j and a draw counts as half a win. The rating of the first checkpoint is set to zero, and Figure 4 shows every rating relative to the final checkpoint. There, each of the tree sizes 1,000, 10,000, 100,000 and 1,000,000 of the reimplemented search is placed at the rating that maximizes the likelihood of its matches against the checkpoints after 10,000, 20,000, 30,000 and 40,000 iterations under the same model, with the ratings of the checkpoints held fixed; a match with score ss and standard error ee over its pairs counts as s(1−s)/e2s(1-s)/e^2 games. The fit underestimates the score of the checkpoint after 10,000 iterations against every tree size, by 2.7 to 4.8 standard errors, and overestimates that of the final checkpoint, by 1.6 to 3.4, so the round robin spreads the checkpoints farther apart than their matches against the search do. The standard errors of the ratings, about 7 points, come from resampling the 256 pairs of every pairing. The ratings are fitted to all 210 pairings at once, so a rating measures the strength of a checkpoint against the whole set of checkpoints.

Reimplementation of the Search of Obscuro. The opponent of Section 4.2 is our C++ reimplementation of the search of Zhang and Sandholm [47], whose authors have released no code. It follows the paper in the components of the search: the set of possible positions is kept exactly, the subgame is the 2-KLUSS subgame over the tree kept from the previous move, it is solved by PCFR+ with the Resolve and Maxmargin gadgets, the tree is expanded by one-sided GT-CFR, and leaves are valued by Stockfish 14 at depth 1. It differs from the paper in four points. The budget is the number of nodes of the search tree at the moment the move is chosen, in place of a time limit; the paper reports 1,070,552 nodes on average at 5 seconds per move. One thread interleaves the paper’s solver thread and its two expansion threads in a fixed order. The rules are those of our environment (Appendix § 6), in which a move that leaves the mover’s king attacked ends the game. Repetition and the fifty-move rule are not modelled inside the tree. Two choices that the paper leaves open were set so that the first moves of the engine match the opening statistics of the paper. As a check, the engine played itself at 1,000,000 nodes. White scores 0.570, against 0.575 in the paper, and the tree has 999,639 nodes and 12,858 information sets on average, against 1,070,552 and 14,404. The games have more draws than those of the paper (0.257 against 0.162), are shorter (105.1 plies against 116.6) and have larger sets of possible positions (135,055 on average against 17,264). Our results are results against this reimplementation.

Matches against the Reimplementation. The final policy plays 256 pairs of games with the colors exchanged against each of the eight tree sizes 1,000, 3,000, 10,000, 30,000, 100,000, 300,000, 1,000,000 and 3,000,000, with the same seed for a pair at every size, and the policies after 10,000, 20,000 and 30,000 iterations play 128 pairs each against the trees of 1,000, 10,000, 100,000 and 1,000,000 nodes. The FTT agent plays as in the round robin, with averaged weights, its first five moves sampled and the most probable action afterwards. It runs on CPU in these matches and chooses the move of the round-robin harness in 98.8% of its decisions after 40,000 iterations and in 99.1% to 99.4% after 10,000, 20,000 and 30,000. The score is the mean over the complete pairs, and the standard error is taken over the pair means. Of the 7,168 games, 51 have no result, 49 because the engine’s set of possible positions passed 10⁹ and two because the engine gave no answer within two hours. These games are not scored, and a pair counts only when both of its games do; counting all of them as lost or as won by the FTT agent changes no score by more than 1.3 points.

More Experiment Results

Hanabi

Table 5 gives the final result of every training run behind Figure 2 and Table 2.

GameAgentSeedScorePerfect rate (%)
Hanabi 2PFTT024.771±0.00924.771 \pm0.00984.400±0.51384.400 \pm0.513
124.773±0.00924.773 \pm0.00984.540±0.51184.540 \pm0.511
224.788±0.00824.788 \pm0.00885.300±0.50185.300 \pm0.501
FTT, field-attention only024.707±0.01024.707 \pm0.01081.360±0.55181.360 \pm0.551
124.743±0.00924.743 \pm0.00982.860±0.53382.860 \pm0.533
224.744±0.00924.744 \pm0.00983.020±0.53183.020 \pm0.531
LSTM, compute-matched024.552±0.01224.552 \pm0.01272.700±0.63072.700 \pm0.630
124.519±0.01524.519 \pm0.01571.620±0.63871.620 \pm0.638
224.579±0.01424.579 \pm0.01475.180±0.61175.180 \pm0.611
LSTM, parameter-matched024.485±0.01424.485 \pm0.01468.840±0.65568.840 \pm0.655
124.464±0.01424.464 \pm0.01469.000±0.65469.000 \pm0.654
224.452±0.01524.452 \pm0.01568.540±0.65768.540 \pm0.657
Hanabi 3PFTT024.964±0.00324.964 \pm0.00396.980±0.24296.980 \pm0.242
124.959±0.00624.959 \pm0.00697.340±0.22897.340 \pm0.228
224.964±0.00324.964 \pm0.00397.040±0.24097.040 \pm0.240
FTT, field-attention only024.953±0.00424.953 \pm0.00496.340±0.26696.340 \pm0.266
124.944±0.00624.944 \pm0.00696.140±0.27296.140 \pm0.272
224.948±0.00424.948 \pm0.00495.820±0.28395.820 \pm0.283
LSTM, compute-matched024.728±0.01324.728 \pm0.01382.840±0.53382.840 \pm0.533
124.741±0.01324.741 \pm0.01384.080±0.51784.080 \pm0.517
224.737±0.01124.737 \pm0.01183.280±0.52883.280 \pm0.528
LSTM, parameter-matched024.605±0.01524.605 \pm0.01576.460±0.60076.460 \pm0.600
124.648±0.01124.648 \pm0.01178.060±0.58578.060 \pm0.585
224.555±0.01324.555 \pm0.01373.440±0.62573.440 \pm0.625
Hanabi 4PFTT024.949±0.00424.949 \pm0.00495.800±0.28495.800 \pm0.284
124.951±0.00424.951 \pm0.00496.000±0.27796.000 \pm0.277
224.946±0.00424.946 \pm0.00495.720±0.28695.720 \pm0.286
Hanabi 5PFTT024.869±0.00624.869 \pm0.00689.360±0.43689.360 \pm0.436
124.866±0.00624.866 \pm0.00688.860±0.44588.860 \pm0.445
224.855±0.00624.855 \pm0.00688.180±0.45788.180 \pm0.457

Table 5. Hanabi score and perfect rate after 40,000 iterations for each training seed, mean ±1\pm1 SEM over 5,000 evaluation games. These within-run errors differ from the across-seed SEMs in Figure 2 and Table 2.

Dark Chess

The round robin behind the Dark Chess ratings of Figure 4 has 210 pairings and 107,520 games, of which 7% are draws; Appendix § 9 gives its protocol. A later checkpoint scores 55% on average against the checkpoint 2,000 iterations before it, 65% at a distance of 10,000 iterations and 74% at 20,000. Play among the checkpoints is not fully transitive, and Figure 5 gives the score of every single pairing.

Figure 5. Dark Chess round robin: the match score of the checkpoint on the vertical axis against the checkpoint on the horizontal axis, over 512 games per pairing.

Table 6 lists the matches against our reimplementation of the search of Obscuro (Appendix § 9). The final policy scores above one half at every tree size, and against the tree of 1,000,000 nodes the score rises with training and reaches one half after 20,000 iterations.

Tree nodesFTT iterationsPairsWinsDrawsLossesScore (%)
1,00040,00025444166187.4±1.587.4 \pm1.5
3,00040,00025242287484.5±1.784.5 \pm1.7
10,00040,000252392159779.3±1.879.3 \pm1.8
30,00040,0002523602511973.9±1.973.9 \pm1.9
100,00040,0002533133016364.8±2.164.8 \pm2.1
300,00040,0002522784018659.1±2.159.1 \pm2.1
1,000,00040,0002502764418059.6±2.059.6 \pm2.0
3,000,00040,0002532526019455.7±2.155.7 \pm2.1
1,00010,00012619735278.8±2.778.8 \pm2.7
1,00020,00012620654182.7±2.382.7 \pm2.3
1,00030,00012821853386.1±2.286.1 \pm2.2
10,00010,000127170107468.9±2.968.9 \pm2.9
10,00020,00012618995476.8±2.576.8 \pm2.5
10,00030,00012419194878.8±2.478.8 \pm2.4
100,00010,0001271302310155.7±2.855.7 \pm2.8
100,00020,000125141208960.4±2.960.4 \pm2.9
100,00030,000127153247765.0±2.865.0 \pm2.8
1,000,00010,000127963212644.1±3.044.1 \pm3.0
1,000,00020,0001251142411250.4±3.250.4 \pm3.2
1,000,00030,000127143129958.7±3.158.7 \pm3.1

Table 6. Dark Chess: the FTT agent against our reimplementation of the search of Obscuro. Wins, draws and losses are those of the FTT agent over the complete pairs of games with the colors exchanged. The score is the mean over the pairs with ±1\pm1 SEM.

References

  1. [1]Anurag Arnab, Mostafa Dehghani, Georg Heigold, Chen Sun, Mario Lucic, and Cordelia Schmid. ViViT: A video vision transformer. In Proceedings of the IEEE/CVF International Conference on Computer Vision, 2021. URL https://openaccess.thecvf.com/content/ICCV2021/html/Arnab_ViViT_A_Video_Vision_Transformer_ICCV_2021_paper.html.
  2. [2]Nolan Bard, Jakob N. Foerster, Sarath Chandar, Neil Burch, Marc Lanctot, H. Francis Song, Emilio Parisotto, Vincent Dumoulin, Subhodeep Moitra, Edward Hughes, Iain Dunning, Shibl Mourad, Hugo Larochelle, Marc G. Bellemare, and Michael Bowling. The hanabi challenge: A new frontier for AI research, 2019. URL https://arxiv.org/abs/1902.00506.
  3. [3]Iz Beltagy, Matthew E. Peters, and Arman Cohan. Longformer: The long-document transformer, 2020.arxiv.org/abs/2004.05150
  4. [4]Christopher Berner, Greg Brockman, Brooke Chan, Vicki Cheung, Przemysław Dębiak, Christy Dennison, David Farhi, Quirin Fischer, Shariq Hashme, Chris Hesse, et al. Dota 2 with large scale deep reinforcement learning, 2019. URL https://arxiv.org/abs/1912.06680.
  5. [5]Gedas Bertasius, Heng Wang, and Lorenzo Torresani. Is space-time attention all you need for video understanding? In Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pages 813–824, 2021. URL https://proceedings.mlr.press/v139/bertasius21a.html.arxiv.org/abs/2102.05095
  6. [6]Andreas Blattmann, Robin Rombach, Huan Ling, Tim Dockhorn, Seung Wook Kim, Sanja Fidler, and Karsten Kreis. Align your latents: High-resolution video synthesis with latent diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2023. doi: 10.1109/CVPR52729.2023.02161. URL https://doi.org/10.1109/CVPR52729.2023.02161.
  7. [7]Jake Bruce, Michael D. Dennis, Ashley Edwards, Jack Parker-Holder, Yuge Shi, Edward Hughes, Matthew Lai, Aditi Mavalankar, Richie Steigerwald, Chris Apps, et al. Genie: Generative interactive environments. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 4603–4623, 2024. URL https://proceedings.mlr.press/v235/bruce24a.html.arxiv.org/abs/2402.15391
  8. [8]Haoqi Fan, Bo Xiong, Karttikeya Mangalam, Yanghao Li, Zhiceng Yan, Jitendra Malik, and Christoph Feichtenhofer. Multiscale vision transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, 2021. doi: 10.1109/ICCV48922.2021.00675. URL https://doi.org/10.1109/ICCV48922.2021.00675.
  9. [9]Zhiyuan Fan and Gabriele Farina. GAE falls short in imperfect-information self-play reinforcement learning, 2026. URL https://arxiv.org/abs/2605.19235.
  10. [10]Johannes Forkel, Constantin Ruhdorfer, Michael Beukman, Andreas Bülling, and Jakob Foerster. High entropy leads to symmetry-equivariant policies in Dec-POMDPs, 2025. URL https://arxiv.org/abs/2511.22581.
  11. [11]Haobo Fu, Weiming Liu, Shuang Wu, Yijia Wang, Tao Yang, Kai Li, Junliang Xing, Bin Li, Bo Ma, Qiang Fu, and Yang Wei. Actor-critic policy optimization in a large-scale imperfect-information game. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=DTXZqTNV5nW.
  12. [12]Rohit Girdhar and Kristen Grauman. Anticipative video transformer. In Proceedings of the IEEE/CVF International Conference on Computer Vision, 2021. doi: 10.1109/ICCV48922.2021.01325. URL https://doi.org/10.1109/ICCV48922.2021.01325.
  13. [13]Jonathan Ho, Tim Salimans, Alexey Gritsenko, William Chan, Mohammad Norouzi, and David J. Fleet. Video diffusion models. In Advances in Neural Information Processing Systems, 2022. doi: 10.52202/068431-0628. URL https://doi.org/10.52202/068431-0628.
  14. [14]Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural Computation, 9 (8):1735–1780, 1997.
  15. [15]Hengyuan Hu and Jakob N. Foerster. Simplified action decoder for deep multi-agent reinforcement learning, 2019. URL https://arxiv.org/abs/1912.02288.
  16. [16]Hengyuan Hu, Adam Lerer, Alex Peysakhovich, and Jakob Foerster. “other-play” for zero-shot coordination. In Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pages 4399–4410, 2020. URL https://proceedings.mlr.press/v119/hu20a.html.arxiv.org/abs/2003.02979
  17. [17]Hengyuan Hu, Adam Lerer, Brandon Cui, Luis Pineda, Noam Brown, and Jakob Foerster. Off-belief learning. In Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pages 4369–4379, 2021. URL https://proceedings.mlr.press/v139/hu21c.html.arxiv.org/abs/2103.04000
  18. [18]Keller Jordan, Yuchen Jin, Vlado Boza, Jiacheng You, Franz Cesista, Laker Newhouse, and Jeremy Bernstein. Muon: An optimizer for hidden layers in neural networks, 2024. URL https://kellerjordan.github.io/posts/muon/.
  19. [19]Adam Lerer, Hengyuan Hu, Jakob Foerster, and Noam Brown. Improving policies via search in cooperative partially observable games, 2019. URL https://arxiv.org/abs/1912.02318.
  20. [20]Junjie Li, Sotetsu Koyamada, Qiwei Ye, Guoqing Liu, Chao Wang, Ruihan Yang, Li Zhao, Tao Qin, Tie-Yan Liu, and Hsiao-Wuen Hon. Suphx: Mastering mahjong with deep reinforcement learning, 2020. URL https://arxiv.org/abs/2003.13590.
  21. [21]Ze Liu, Jia Ning, Yue Cao, Yixuan Wei, Zheng Zhang, Stephen Lin, and Han Hu. Video Swin transformer. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022. doi: 10.1109/CVPR52688.2022.00320. URL https://doi.org/10.1109/CVPR52688.2022.00320.
  22. [22]Yudong Lu, Jian Zhao, Youpeng Zhao, Wengang Zhou, and Houqiang Li. DanZero: Mastering GuanDan game with reinforcement learning, 2022. URL https://arxiv.org/abs/2210.17087.
  23. [23]Xin Ma, Yahui Wang, Xinyuan Chen, Gengyun Jia, Ziwei Liu, Yuan-Fang Li, Cunjian Chen, and Yu Qiao. Latte: Latent diffusion transformer for video generation. Transactions on Machine Learning Research, 2025. ISSN 2835-8856. URL https://openreview.net/forum?id=ntGPYNUF3t.
  24. [24]Daniel Neimark, Omri Bar, Maya Zohar, and Dotan Asselmann. Video transformer network. In Proceedings of the IEEE/CVF International Conference on Computer Vision Workshops, 2021. doi: 10.1109/ICCVW54120.2021.00355. URL https://doi.org/10.1109/ICCVW54120.2021.00355.
  25. [25]Jiquan Ngiam, Benjamin Caine, Vijay Vasudevan, Zhengdong Zhang, Hao-Tien Lewis Chiang, Jeffrey Ling, Rebecca Roelofs, Alex Bewley, Chenxi Liu, Ashish Venugopal, David Weiss, Ben Sapp, Zhifeng Chen, and Jonathon Shlens. Scene transformer: A unified architecture for predicting multiple agent trajectories. In International Conference on Learning Representations, 2022. URL https://arxiv.org/abs/2106.08417.
  26. [26]Mandela Patrick, Dylan Campbell, Yuki Asano, Ishan Misra, Florian Metze, Christoph Feichtenhofer, Andrea Vedaldi, and João F. Henriques. Keeping your eye on the ball: Trajectory attention in video transformers. In Advances in Neural Information Processing Systems, 2021. URL https://arxiv.org/abs/2106.05392.
  27. [27]Julien Perolat, Bart De Vylder, Daniel Hennes, Eugene Tarassov, Florian Strub, Vincent de Boer, Paul Muller, Jerome T. Connor, Neil Burch, Thomas Anthony, et al. Mastering the game of Stratego with model-free multiagent reinforcement learning. Science, 378(6623): 990–996, 2022.DOI
  28. [28]Zhaofan Qiu, Ting Yao, and Tao Mei. Learning spatio-temporal representation with pseudo-3D residual networks. In Proceedings of the IEEE International Conference on Computer Vision, 2017. doi: 10.1109/ICCV.2017.590. URL https://doi.org/10.1109/ICCV.2017.590.
  29. [29]John Schulman, Philipp Moritz, Sergey Levine, Michael Jordan, and Pieter Abbeel. High-dimensional continuous control using generalized advantage estimation, 2015. URL https://arxiv.org/abs/1506.02438.
  30. [30]John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms, 2017. URL https://arxiv.org/abs/1707.06347.
  31. [31]Noam Shazeer. GLU variants improve transformer, 2020. URL https://arxiv.org/abs/2002.05202.
  32. [32]Uriel Singer, Adam Polyak, Thomas Hayes, Xi Yin, Jie An, Songyang Zhang, Qiyuan Hu, Harry Yang, Oron Ashual, Oran Gafni, Devi Parikh, Sonal Gupta, and Yaniv Taigman. Make-A-Video: Text-to-video generation without text-video data. In International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=nJfylDvgz1q.arxiv.org/abs/2209.14792
  33. [33]Samuel Sokota, Ryan D’Orazio, J. Zico Kolter, Nicolas Loizou, Marc Lanctot, Ioannis Mitliagkas, Noam Brown, and Christian Kroer. A unified approach to reinforcement learning, quantal response equilibria, and two-player zero-sum games, 2022. URL https://arxiv.org/abs/2206.05825.
  34. [34]Samuel Sokota, Eugene Vinitsky, Hengyuan Hu, Zhiyuan Fan, J. Zico Kolter, and Gabriele Farina. Scalable decision-making for games of imperfect information. Nature, 658:55–59, 2026. doi: 10.1038/s41586-026-11036-y. URL https://www.nature.com/articles/s41586-026-11036-y.DOI
  35. [35]Matej Straka, Viliam Lisý, and Martin Schmid. Superhuman AI for Generals.io using self-play reinforcement learning, 2026. URL https://arxiv.org/abs/2606.23348.
  36. [36]Jianlin Su, Yu Lu, Shengfeng Pan, Ahmed Murtadha, Bo Wen, and Yunfeng Liu. RoFormer: Enhanced transformer with rotary position embedding, 2021. URL https://arxiv.org/abs/2104.09864.
  37. [37]TechNode. Tencent’s mahjong AI sets new gaming record on international mahjong platform. TechNode, 12 July 2023, 2023. URL https://technode.com/2023/07/12/tencent-s-mahjong-ai-sets-new-gaming-record-on-international-mahjong-platform.
  38. [38]Du Tran, Heng Wang, Lorenzo Torresani, Jamie Ray, Yann LeCun, and Manohar Paluri. A closer look at spatiotemporal convolutions for action recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2018. doi: 10.1109/CVPR.2018.00675. URL https://doi.org/10.1109/CVPR.2018.00675.
  39. [39]Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, 2017. URL https://arxiv.org/abs/1706.03762.
  40. [40]Ruben Villegas, Mohammad Babaeizadeh, Pieter-Jan Kindermans, Hernan Moraldo, Han Zhang, Mohammad Taghi Saffar, Santiago Castro, Julius Kunze, and Dumitru Erhan. Phenaki: Variable length video generation from open domain textual descriptions. In International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=v0EXS39n0F.arxiv.org/abs/2210.02399
  41. [41]Oriol Vinyals, Igor Babuschkin, Wojciech M. Czarnecki, Michaël Mathieu, Andrew Dudzik, Junyoung Chung, David H. Choi, Richard Powell, Timo Ewalds, Petko Georgiev, et al. Grand-master level in StarCraft II using multi-agent reinforcement learning. Nature, 575(7782): 350–354, 2019.DOI
  42. [42]Saining Xie, Chen Sun, Jonathan Huang, Zhuowen Tu, and Kevin Murphy. Rethinking spatiotemporal feature learning: Speed-accuracy trade-offs in video classification. In Proceedings of the European Conference on Computer Vision, 2018. doi: 10.1007/978-3-030-01267-0_19. URL https://doi.org/10.1007/978-3-030-01267-0_19.
  43. [43]Guan Yang, Minghuan Liu, Weijun Hong, Weinan Zhang, Fei Fang, Guangjun Zeng, and Yue Lin. PerfectDou: Dominating DouDizhu with perfect information distillation. In Advances in Neural Information Processing Systems, 2022. URL https://arxiv.org/abs/2203.16406.
  44. [44]Chao Yu, Akash Velu, Eugene Vinitsky, Jiaxuan Gao, Yu Wang, Alexandre Bayen, and Yi Wu. The surprising effectiveness of PPO in cooperative, multi-agent games. In Advances in Neural Information Processing Systems, Datasets and Benchmarks Track, 2022. URL https://arxiv.org/abs/2103.01955.
  45. [45]Daochen Zha, Jingru Xie, Wenye Ma, Sheng Zhang, Xiangru Lian, Xia Hu, and Ji Liu. DouZero: Mastering DouDizhu with self-play deep reinforcement learning. In Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pages 12333–12344, 2021. URL https://proceedings.mlr.press/v139/zha21a.html.arxiv.org/abs/2106.06135
  46. [46]Biao Zhang and Rico Sennrich. Root mean square layer normalization. In Advances in Neural Information Processing Systems, 2019. URL https://arxiv.org/abs/1910.07467.
  47. [47]Brian Hu Zhang and Tuomas Sandholm. General search techniques without common knowledge for imperfect-information games, and application to superhuman fog of war chess. In International Conference on Learning Representations, 2026. URL https://arxiv.org/abs/2506.01242.
  48. [48]Yanyi Zhang, Xinyu Li, Chunhui Liu, Bing Shuai, Yi Zhu, Biagio Brattoli, Hao Chen, Ivan Marsic, and Joseph Tighe. VidTr: Video transformer without convolutions. In Proceedings of the IEEE/CVF International Conference on Computer Vision, 2021. doi: 10.1109/ICCV48922.2021.01332. URL https://doi.org/10.1109/ICCV48922.2021.01332.

Paper details

vlnc:W_5m4txnvv
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 2

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents