Finite-sample Guarantees for Nash Q-learning with Linear Function Approximation

Pedro Cisneros-Velarde, Oluwasanmi O Koyejo

Abstract

Nash Q-learning is a foundational algorithm in multi-agent reinforcement learning (MARL) designed to find Nash equilibria in general-sum Markov games. While its asymptotic convergence in tabular settings has been established for decades, its performance in large-scale environments requiring function approximation has remained theoretically under-explored. This paper introduces the Nash Q-learning with Optimistic Value Iteration (NQOVI) algorithm and provides the first finite-sample guarantees for Nash Q-learning using linear function approximation. We demonstrate that NQOVI achieves a regret bound of $\tilde{O}(\sqrt{Kd^3H^5})$, nearly matching the efficiency of single-agent reinforcement learning and confirming that multi-agent Nash equilibria can be learned efficiently in large or continuous state spaces.

Introduction

In Multi-Agent Reinforcement Learning (MARL), the primary objective is often to identify a Nash Equilibrium (NE)—a strategy profile where no agent can increase their expected utility by unilaterally changing their own strategy. Since its introduction in 2003, Nash Q-learning has been a cornerstone of the field. However, early theoretical work was limited to asymptotic convergence (guaranteeing the algorithm works "eventually") and restricted to the tabular regime, where the state and action spaces are small enough to be represented in a discrete table.

Modern applications, such as autonomous driving and smart grid management, involve massive or continuous state spaces that render tabular methods computationally and statistically infeasible. To address this, researchers utilize linear function approximation, representing state-action values as linear combinations of feature vectors. This paper bridges the gap between classical MARL theory and modern scalable RL by providing the first formal finite-sample guarantees—mathematical proofs of sample efficiency—for Nash Q-learning in the linear regime.

The NQOVI Algorithmic Framework

The authors propose Nash Q-learning with Optimistic Value Iteration (NQOVI) to handle the complexities of general-sum Markov games with linear structures. The algorithm is built upon several key pillars:

1. Linear Markov Games

The framework assumes that the transition dynamics and reward functions of the environment can be expressed as linear functions of a known feature map $\phi(s, a)$. This allows the agents to generalize learning from visited states to unvisited ones based on feature similarity.

2. Optimism in the Face of Uncertainty

To ensure efficient exploration, NQOVI incorporates an "optimism bonus" into its Q-function estimates. By adding a bonus term derived from the covariance of observed features, the agents are encouraged to explore state-action pairs where the model's uncertainty is high. This principle, well-established in single-agent RL, is here adapted to the strategic multi-agent setting.

3. Stage Game Decomposition

At each time step within an episode, agents treat their current, optimistic Q-function estimates as the payoffs for a static "stage game." By computing a Nash Equilibrium for this localized game, the agents determine their policy for the current step. Notably, this approach does not require the game to possess specific properties (like global optima or saddle points) that were necessary in earlier convergence proofs.

4. Least-Squares Value Iteration

The algorithm employs a ridge-regression style update to estimate the weights of the linear Q-functions. By maintaining a running covariance matrix of the features encountered across episodes, NQOVI updates its parameters to minimize the bellman error efficiently.

Theoretical Results and Sample Efficiency

The core contribution of this work is the derivation of a regret bound for NQOVI. The authors prove that the total regret after $K$ episodes is bounded by:

$$\text{Regret}(K) = \tilde{O}(\sqrt{Kd^3H^5})$$

Where:

  • $K$ is the number of episodes.
  • $d$ is the dimension of the feature space.
  • $H$ is the horizon (episode length).

Key Implications

  • Polynomial Complexity: The number of episodes required to reach an $\epsilon$-approximate Nash Equilibrium scales as $K = \tilde{O}(d^3H^5 / \epsilon^2)$. This confirms that the algorithm is sample-efficient, as the data requirements grow polynomially rather than exponentially with the problem's dimensions.
  • Single-Agent Parity: In the case of a single agent ($n=1$), NQOVI simplifies to the standard LSVI-UCB algorithm. The results show that the complexity of finding a Nash Equilibrium is the primary additional hurdle in MARL, yet it remains manageable.
  • Agent Scaling: The regret bound exhibits a logarithmic dependence on the number of agents ($n$). While the feature dimension $d$ may naturally increase as more agents are added to a system, the explicit mathematical overhead for coordinating multiple decision-makers is surprisingly low.

Discussion and Limitations

While NQOVI is highly sample-efficient, the authors note that it may not be computationally efficient in all scenarios. Finding an exact Nash Equilibrium for the stage games is a PPAD-complete problem, which is computationally demanding. In practice, agents may need to rely on approximate equilibrium solvers.

Furthermore, the analysis relies on the Linear Markov Game assumption. While this is a standard stepping stone in RL theory, real-world environments often exhibit non-linear dynamics. Future research is needed to extend these finite-sample guarantees to non-linear function approximators, such as deep neural networks, and to close the polynomial gap ($H^5$ vs $H^4$) between linear and tabular results to reach theoretical optimality.

Conclusion

This work provides a critical theoretical foundation for Nash Q-learning in large-scale environments. By proving that linear function approximation can be combined with optimistic value iteration to achieve near-optimal regret in general-sum games, the authors demonstrate that efficient multi-agent coordination is possible even when the state space is too large to be enumerated.

Summary updated

BibTeX
@inproceedings{cisnerosvelarde2023finite,
  author = {Pedro Cisneros-Velarde and Oluwasanmi O Koyejo},
  title = {{Finite-sample Guarantees for Nash Q-learning with Linear Function Approximation}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2023},
  url = {https://openreview.net/forum?id=Njs8LKhwV6h},
}
Figure