Nash Equilibrium Text: A Game-Theoretic Decoding Framework for Text Generation

Alireza Jafari, Arman Adibi, Mohammad Ghavamzadeh, Hadi Daneshmand
10/5/2026
cs.AIcs.CL

No confident code implementation found for this paper.

Abstract

Text revision has become an integral component of large language models. This paper formulates revision such that it admits a Nash equilibrium: Token positions are players, vocabulary items are actions, and each player's utility is the language model's log conditional probability.

Show full abstract

We motivate the revision by showing that Nash equilibria can have exponentially higher likelihood than autoregressive outputs as the sequence length grows. We further propose Nash decoding, an algorithm that reaches an $\varepsilon$-Nash equilibrium in $O(1/\varepsilon)$ time given access to the joint probability of tokens conditioned on a prompt. In practice, we run Nash decoding using conditional probability estimates from large language models and evaluate the resulting equilibria on question-answering benchmarks. On CLAPNQ, PubMedQA, and CoQA, Nash equilibria obtained from masked language models achieve higher F1 and ROUGE scores than autoregressive models up to $18\times$ larger, without any fine-tuning or retraining, at the cost of additional test-time computation.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{jafari2026nash,
  title  = {Nash Equilibrium Text: A Game-Theoretic Decoding Framework for Text Generation},
  author = {Alireza Jafari and Arman Adibi and Mohammad Ghavamzadeh and Hadi Daneshmand},
  year   = {2026},
  eprint = {2610.05817},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.05817v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.05817.svg)](https://codeofpaper.com/paper/2610.05817)

Discussion