Relu and softplus neural nets as zero-sum turn-based games

Stephane Gaubert, Yiannis VlassopoulosarXiv 2025 · DOI

Abstract

This paper establishes a formal mathematical equivalence between the evaluation of ReLU and Softplus neural networks and the value of zero-sum, turn-based stopping games. By mapping network components—such as weights, biases, and layers—to game-theoretic elements like transition probabilities, rewards, and stages, the authors provide a novel framework for formal verification, robustness analysis, and a path-integral interpretation of information flow in deep learning.

Introduction

Despite their widespread success, deep neural networks are often criticized as "black boxes," making their behavior difficult to characterize mathematically for safety-critical applications. This paper addresses the challenge of interpretability and formal verification by reframing neural networks through the lens of Markov Decision Processes (MDPs) and Game Theory. The authors demonstrate that evaluating a network is not merely a sequence of matrix multiplications, but rather the calculation of a game's value, where network outputs can be "certified" by optimal strategies.

The ReLU Net Game

The core contribution is a construction mapping a ReLU network architecture onto a specific zero-sum, turn-based stopping game. In this framework, evaluating the network is equivalent to running the Shapley-Bellman backward recursion.

Key features of this mapping include:

  • Inverse Directionality: The game flows in the opposite direction of the network. The network's input serves as the game's terminal reward, while the network's output represents the value of the game's starting state.
  • Structural Mapping: Every neuron corresponds to two game states (one for each player, Max and Min). Weights are transformed into transition probabilities, and biases become intermediate rewards.
Table 1: Correspondence between ReLU Neural Network components and the ReLU net game.

Softplus and Entropic Regularization

The authors extend this correspondence to Softplus activation functions by introducing entropic regularization to the game. In this version, the network output corresponds to the "free energy" of the game, and the optimal policy becomes a Gibbs measure. This allows for a temperature-sensitive interpretation of the network, where the Softplus parameter $\tau$ acts as the entropy parameter in the game.

Table 2: Correspondence between Softplus Neural Networks and Entropy-regularized Games.

Key Insights and Applications

Policies as Certificates

In classification tasks, the "optimal policy" for the Max player acts as a mathematical certificate. If a network accepts an input, there exists a specific strategy—a set of paths through the layers—that proves the value exceeds a certain threshold. This provides a structural way to verify network decisions.

Order-Preserving Robustness

Because Shapley operators (the mathematical foundation of these games) are monotonic, the framework allows for more natural propagation of intervals (lower and upper bounds) through the network. This has immediate implications for static analysis and formal verification of neural network safety, as it simplifies the calculation of how much an output might change relative to input perturbations.

Training as an Inverse Game Problem

The paper suggests a paradigm shift in understanding training. Rather than simple gradient descent, training can be re-envisioned as an "inverse game problem": given a set of desired outcomes, find the transition probabilities (weights) and rewards (biases) of the game that would produce those outcomes.

Conclusion and Future Work

By deriving a discrete path-integral formula (a Feynman-Kac representation), the authors represent network output as an expected payoff over all possible game trajectories. While currently focused on ReLU and Softplus architectures, this work opens the door to applying game-theoretic tools to deep learning verification. Future research is needed to extend these results to more complex architectures like Transformers and to develop tighter safety bounds using relational domains beyond simple box invariants.

Summary updated

Abstract

We show that the output of a ReLU neural network can be interpreted as the value of a zero-sum, turn-based, stopping game, which we call the ReLU net game. The game runs in the direction opposite to that of the network, and the input of the network serves as the terminal reward of the game. In fact, evaluating the network is the same as running the Shapley-Bellman backward recursion for the value of the game. Using the expression of the value of the game as an expected total payoff with respect to the path measure induced by the transition probabilities and a pair of optimal policies, we derive a discrete Feynman-Kac-type path-integral formula for the network output. This game-theoretic representation can be used to derive bounds on the output from bounds on the input, leveraging the monotonicity of Shapley operators, and to verify robustness properties using policies as certificates. Moreover, training the neural network becomes an inverse game problem: given pairs of terminal rewards and corresponding values, one seeks transition probabilities and rewards of a game that reproduces them. Finally, we show that a similar approach applies to neural networks with Softplus activation functions, where the ReLU net game is replaced by its entropic regularization.
BibTeX
@misc{gaubert2025relu,
  author = {Stephane Gaubert and Yiannis Vlassopoulos},
  title = {{Relu and softplus neural nets as zero-sum turn-based games}},
  year = {2025},
  eprint = {2512.20582},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.20582},
}
Figure