Nash Neural Networks : Inferring Utilities from Optimal Behaviour

John J. Molina, Simon K. Schnyder, Matthew S. Turner, Ryoichi YamamotoarXiv 2022 · DOI

Introduction

Understanding the underlying motivations behind observed behavior is a fundamental challenge in economics, biology, and the social sciences. While we can observe the actions of "rational" agents—individuals or groups making decisions to optimize their outcomes—the internal "utility function" that guides these decisions remains hidden. Researchers from Kyoto University and the University of Warwick have introduced Nash Neural Networks ($N^3$), a novel class of Physics-Informed Neural Networks (PINNs) designed to solve this "inverse" problem by observing behavior in competitive, dynamic environments.

The Inverse Optimal Control Problem

The core challenge addressed is the inverse optimal control problem within the framework of game theory. In a forward problem, known costs (e.g., the health risks of infection vs. the social costs of isolation) are used to calculate optimal behavior. The inverse problem reverses this: given observed behavior (e.g., social distancing patterns), the goal is to infer the specific weights agents assign to different costs and benefits.

This task is complicated by three factors:

  1. Interdependence: In a Nash equilibrium, an agent's optimal strategy depends on the strategies of others.
  2. Dynamics: The "best" move evolves over time as the environment (e.g., an epidemic) changes.
  3. Hidden Variables: Optimization models often rely on unobservable "shadow prices" or Lagrange multipliers.

The Nash Neural Network ($N^3$) Architecture

The $N^3$ framework leverages inductive biases from classical mechanics to constrain the learning process. Unlike standard neural networks, $N^3$ incorporates the mathematical structure of the problem directly into its architecture.

Schematic of the Nash Neural Network ($N^3$) architecture, illustrating the integration of the Lagrangian and neural network components.

The network is built around an Augmented Lagrangian that includes the system's dynamics as constraints. By enforcing the Euler-Lagrange equations, the model ensures that the learned behavior is mathematically optimal. The system uses automatic differentiation to calculate gradients of the utility function, allowing it to find the roots of the optimality condition during training. This self-consistent approach enables the network to predict a utility function and verify it against observed data.

Experimental Validation: The SIR Model

The researchers validated $N^3$ using synthetic data from a Susceptible-Infectious-Recovered (SIR) model. In this simulation, individuals choose social distancing levels to maximize utility, balancing the cost of infection against the cost of reduced social activity. Three datasets were generated with varying infection costs ($\alpha_0 = 100, 200, 400$), representing weak, moderate, and strong distancing behaviors.

Results and Insights

The $N^3$ model demonstrated high fidelity in recovering hidden utility functions. It successfully distinguished between state-dependent costs (being infected) and action-dependent costs (distancing), even though both simultaneously influence observed trajectories.

Recovery of the hidden utility function $V$ across different infection costs, demonstrating the model's ability to infer the "why" behind observed behavior.

Key findings include:

  • Unsupervised Discovery: The network learns the payoff function without being shown the "true" utility during training, discovering the underlying logic solely from behavioral trajectories.
  • Extrapolation Power: By encoding the "physics" of decision-making, the model can accurately predict utility functions in regions of the state space not present in the training data.
  • Dynamic Accuracy: The model correctly predicts the time-evolution of population states and unobservable Lagrange multipliers.

Conclusion and Future Work

Nash Neural Networks represent a significant advancement in using AI to decode the hidden incentives driving complex systems. While current iterations assume perfect rationality and require knowledge of shadow prices, future work aims to address noisy real-world data and multi-level games involving government policy. $N^3$ provides a robust framework for reverse-engineering the "why" behind behavior in fields ranging from epidemiology to market economics.

Summary updated

Abstract

We propose Nash Neural Networks ($N^3$) as a new type of Physics Informed Neural Network that is able to infer the underlying utility from observations of how rational individuals behave in a differential game with a Nash equilibrium. We assume that the dynamics for both the population and the individual are known, but not the payoff function, which specifies the cost per unit time of being in any particular state. We construct our network in such a way that the Euler-Lagrange equations of the corresponding optimal control problem are satisfied and the optimal control is self-consistently determined. In this way, we are able to learn the unknown payoff function in an unsupervised manner. We have applied the $N^3$ to study the optimal behaviour during epidemics, in which individuals can choose to socially distance depending on the state of the pandemic and the cost of being infected. Training our network against synthetic data for a simple SIR model, we showed that it is possible to accurately reproduce the hidden payoff function, in such a way that the game dynamics are respected. Our approach will have far-reaching applications, as it allows one to infer utilities from behavioural data, and can thus be applied to study a wide array of problems in science, engineering, economics and government planning.
BibTeX
@misc{molina2022nash,
  author = {John J. Molina and Simon K. Schnyder and Matthew S. Turner and Ryoichi Yamamoto},
  title = {{Nash Neural Networks : Inferring Utilities from Optimal Behaviour}},
  year = {2022},
  eprint = {2203.13432},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.13432},
}
Figure