# Inference Time Nash Alignment

*Hadi Hosseini, Debmalya Mandal, Duohan Zhang*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/153713) · [OpenReview](https://openreview.net/forum?id=JKuHvi1fHD) · [Open on the map](../papers.html#p153713)

Category: [Reinforcement Learning & Games](../pcat/10.md) › [Online Decision-Making under Uncertainty](../pgroup/539.md) · Type: new method · Keywords: inference-time alignment, generalized preferences, Nash equilibrium, zero-sum game, policy optimization, computational efficiency

Areas: [RL for LLMs & Agents](../areas/llm-rl.md) › Language Model Alignment › Preference Optimization

## Summary
Inference Time Nash Alignment introduces Best-of-Nash and Nash Mirror Descent algorithms to align models at inference time under general preferences, achieving performance comparable to fine-tuned models.

## Explained to a 5-year-old
We want a computer program to answer questions the way we like. Usually we have to change the program a lot, which takes a lot of time. This paper finds a way to make the program behave better just when it answers, without changing its inside. It does this by playing a game where two parts try to match each other. The result is a program that works almost as well as the ones that were changed a lot.

## Explained to a 5-year-old, longer
Imagine you have a robot friend that can talk to you and answer questions. Sometimes you want it to give answers that you think are better, like when a teacher wants a student to write a good essay. Changing the robot’s brain so it learns new answers takes a lot of time and a lot of computer power. This paper discovers a trick that lets the robot act nicer without actually changing its brain. It works like a game where two players try to guess each other’s choices. One player decides what answer to give, and the other player decides what you would like. By playing this game many times, the robot learns to give answers that match what you want. The game is designed so that both players improve together, reaching a fair solution. The researchers proved that this game has a special property: when it finishes, nobody can improve their score by changing their move. They tested the idea on three different sets of questions, and it worked really well. The robot’s performance became almost as good as when it was completely retrained with lots of data. This new way makes it possible to have smarter conversations on smaller computers, saving time and money.

## For a technical reader
The paper proposes a game-theoretic formulation for aligning models at inference time without parameter updates. It introduces two algorithms that find Nash equilibria and provably achieve optimal duality gaps. Empirical results on three datasets show the methods match fine-tuned model performance and are robust to regularization changes.

## Problem
Aligning language models to user preferences without updating model parameters is challenging because existing inference-time methods assume a simple scalar reward that cannot capture complex preferences. This paper addresses the need for a general-preference alignment framework that works purely at inference time.

## Method
The approach formulates alignment as a two-player zero-sum game between the policy and a preference adversary, seeking a Nash equilibrium. Two algorithms are proposed: one that samples best responses within the equilibrium and another that performs mirror descent on the game’s dual objective. Both are shown to achieve the optimal duality gap.

## Results
The approach substantially outperforms the base policy on three datasets, reaching performance comparable to fine-tuned models, and remains robust to variations in the regularization parameter.

## Contributions
The paper introduces a game-theoretic formulation for inference-time alignment under general preferences and demonstrates that the approach achieves optimal convergence and matches fine-tuned model performance without parameter updates.

## Research questions this paper is counted under

- [How can we align language models with human preferences when the preference data is noisy, scarce, or biased?](../q/29.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/153713)
