Manuscript Offprint

arXiv:2609.08082

Inference-Time Nash Alignment

Hadi Hosseini, Debmalya Mandal, Duohan Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Preference-based fine-tuning methods such as RLHF and DPO require substantial compute and large preference datasets. They also need direct access to the model parameters which are not provided by many state-of-the art models. Inference-time alignment offers a cost-effective alternative without updating model parameters. However, existing inference-time methods rely on a scalar reward model derived under a Bradley-Terry assumption, which cannot represent general preferences. Following recent work on fine-tuning with generalized preferences, in this work, we initiate the study of inference-time alignment under general preferences. We formulate the problem as obtaining a Nash equilibrium of a two-player zero-sum game between policies. We propose two algorithms: Best-of-Nash (BoN) and Nash Mirror Descent (NMD). We prove that both algorithms achieve a duality gap that matches the problem lower bound. Empirically, we implement the two methods on three datasets, which shows that our methods substantially outperform the base policy, converging to the performance of the fine-tuned models. Moreover, our results show that NMD remains robust across the regularization parameter.

1 Introduction

Preference-based fine-tuning methods such as Reinforcement Learning with Human Feedback (RLHF) [Christiano et al., 2017] and Direct Preference Optimization (DPO) [Rafailov et al., 2023] have become quintessential for aligning Large Language Models (LLMs) with human preferences. These methods have proven highly effective across several domains including mathematical reasoning and finance. However, they require substantial effort in acquiring high-quality human data, along with considerable computational costs for training LLMs. For example, fine-tuning LLMs with either Proximal Policy Optimization (PPO) [Schulman et al., 2017] or Group Relative Policy Optimization (GRPO) [Shao et al., 2024] requires a large number of samples and often leads to instability in training. Equally importantly, these approaches rely on white-box access to model parameters, whereas many state-of-the-art models (e.g., GPT-5.4 Thinking [OpenAI, 2026], Gemini 3.1 Pro [Google, 2026], and Claude Opus 4.7 [Anthropic, 2026]) are only accessible as black-box APIs.

To bridge this gap, inference-time alignment has recently drawn much attention. Unlike preference-based fine-tuning, inference-time alignment modifies the generation process at run time without updating model parameters. A popular line of work adopts a sample-and-rank paradigm, of which Best-of-N sampling [Stiennon et al., 2020, Nakano et al., 2021, Huang et al., 2025] is the most widely used – N candidate responses are drawn for a given prompt and the one with the highest score under a reward model is returned. While simple in its nature, Best-of-N alignment is vulnerable to reward

*Corresponding author.

Preprint.

hacking: as NN grows, the estimated reward of the selected response increases monotonically while its true task performance can degrade [Gao et al., 2023, Stroebl et al., 2024, Chow et al., 2024]. This phenomenon arises because reward model is at best an imperfect proxy for the true human preference distribution, a manifestation of Goodhart's law.

Furthermore, most inference-time methods exclusively assume that preferences can be modeled by a scalar reward function under the Bradley-Terry model [Bradley and Terry, 1952]. This assumption is restrictive: even when individual preferences are transitive, aggregated group-level preferences need not be [Munos et al., 2024]. Generalized preference models, which directly specify a probability that one response is preferred to another, have recently been studied for fine-tuning in, e.g., Nash Learning from Human Feedback (NLHF) [Munos et al., 2024]. To the best of our knowledge, tackling generalized preferences remains an open challenge in inference-time methods.

In this work, we initiate the study of black-box inference-time alignment under generalized preferences. The preference model P∗\mathbb{P}^* takes two responses yy and y′y' conditioned on a prompt xx, and evaluates the score P∗(y≻y′∣x)\mathbb{P}^*(y \succ y'|x) as the probability that a randomly chosen human prefers response yy over y′y' given prompt xx. Then we formulate inference-time alignment with generalized preferences as a two-player zero-sum game P∗(π≻π′∣x):=Ey∼π,y′∼π′P∗(y≻y′∣x)\mathbb{P}^*(\pi \succ \pi'|x) := \mathbb{E}_{y \sim \pi, y' \sim \pi'} \mathbb{P}^*(y \succ y'|x) between row player's policy π\pi and column player's policy π′\pi' under the true preference P∗\mathbb{P}^*. However, we do not have access to P∗\mathbb{P}^*, and instead, use an imperfect preference model P^\widehat{\mathbb{P}} (e.g. one learned from preference data [Jiang et al., 2023, Dong et al., 2024, Munos et al., 2024]) to query at inference time. Specifically, we ask the following question:

Given a base policy πref\pi_{\text{ref}} from which we can query responses and an imperfect preference model P^\widehat{\mathbb{P}}, can we design an efficient algorithm to approximate the Nash equilibrium at inference time?

References (48)