Neural Networks for Predicting Human Interactions in Repeated Games

Yoav Kolumbus, Gali Noti

Abstract

We consider the problem of predicting human players' actions in repeated strategic interactions. Our goal is to predict the dynamic step-by-step behavior of individual players in previously unseen games. We study the ability of neural networks to perform such predictions and the information that they require. We show on a dataset of normal-form games from experiments with human participants that standard neural networks are able to learn functions that provide more accurate predictions of the players' actions than established models from behavioral economics. The networks outperform the other models in terms of prediction accuracy and cross-entropy, and yield higher economic value. We show that if the available input is only of a short sequence of play, economic information about the game is important for predicting behavior of human agents. However, interestingly, we find that when the networks are trained with long enough sequences of history of play, action-based networks do well and additional economic details about the game do not improve their performance, indicating that the sequence of actions encode sufficient information for the success in the prediction task.

Introduction

In game theory, the "rational actor" model traditionally assumes players always choose the action that maximizes their utility. However, real-world human behavior is rarely perfectly rational; it is influenced by biases, learning processes, and reactions to an opponent's patterns. While behavioral economics has developed models to account for these factors, most focus on predicting aggregate behavior or static distributions.

This research addresses a more complex challenge: the dynamic, step-by-step prediction of individual players in previously unseen games. The objective is to develop a model capable of observing a human play a new game for a few rounds and then accurately predicting their next move, outperforming established models like Reinforcement Learning (RL) or Nash Equilibrium.

Methodology

The study utilized two classic neural network architectures: Multi-Layer Perceptrons (MLP) and Convolutional Neural Networks (CNN). The CNN was specifically chosen to capture local temporal patterns in the sequence of play, such as "tit-for-tat" strategies. These networks were trained in a supervised learning framework using a sliding window of the last 20 periods of play to predict the probability distribution of the player's next action.

Datasets and Evaluation

The researchers used a dataset from Selten and Chmura (2008), comprising 12 different 2x2 normal-form games. This dataset includes 108 independent experimental sessions with human participants, totaling 155,520 individual actions. To test the models' ability to generalize, a "leave-one-game-out" approach was employed, where the model was trained on 11 games and tested on the 12th, previously unseen game.

Key Results

The neural networks significantly outperformed all traditional benchmarks across multiple metrics. As shown in Figure 1, the CNN achieved approximately 79.5% accuracy, compared to roughly 70% for the best static distribution benchmarks. The cross-entropy loss was also notably lower for neural models (~0.42) than for static equilibrium models (~0.6), indicating better probability calibration.

Performance of CNN and MLP models compared to static equilibrium benchmarks across Loss, Accuracy, and Economic Value.

Furthermore, when compared to dynamic models like Reinforcement Learning (RL) and Normalized Fictitious Play (NFP), the neural networks maintained a clear lead. As illustrated in Figure 2, the CNN achieved over 87% of the optimal economic value—a measure of how much a rational player would earn using the model as an oracle—while traditional dynamic models and heuristics like "Inertia" or "Most Frequent" (MF) lagged behind.

Comparison of neural network architectures (CNN, MLP) against dynamic behavioral models (RL, NFP) and heuristics (Inertia, MF).

Key Insights

  • Actions Encode Payoffs: A major finding is that additional economic information (the payoff matrix) only assists the network when the history of play is very short (less than 11 rounds). With a longer sequence of actions, "action-only" models perform as well as "econ-aware" models, suggesting that human strategic considerations are implicitly encoded in their choices.
  • Universal Patterns: The ability of a model trained on one set of games to predict behavior in a completely different game suggests the existence of universal human patterns of strategic interaction that transcend specific game rules.
  • Temporal Structure: CNNs slightly outperformed MLPs, indicating that human play possesses "temporally-local" structures—specific response patterns to an opponent's recent moves—that convolutional filters are well-suited to detect.

Limitations and Future Work

While the results are promising, the study was limited to 2x2 games. Future research is needed to determine if these findings hold in more complex environments with larger action spaces or more players, such as poker or complex auctions. Additionally, while highly accurate, these neural networks function as "black boxes," lacking the explicit interpretability of traditional behavioral economics models. Finally, while a 20-round window was sufficient here, more complex games might require architectures like Transformers to capture longer-term strategic shifts.

Summary updated

BibTeX
@inproceedings{kolumbus2019neural,
  author = {Yoav Kolumbus and Gali Noti},
  title = {{Neural Networks for Predicting Human Interactions in Repeated Games}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  url = {https://openreview.net/forum?id=Fw4GUEKi7U},
}
Figure