Table of Contents
Fetching ...

PITA: Preference-Guided Inference-Time Alignment for LLM Post-Training

Sarat Chandra Bobbili, Ujwal Dinesha, Dheeraj Narasimha, Srinivas Shakkottai

TL;DR

PITA tackles the problem of aligning LLM outputs with user preferences without fine-tuning or pre-trained reward models. It introduces a preference-guided inference-time framework that learns a small guidance policy from user preferences and uses it to modulate the LLM's next-token distribution at decoding time, while keeping the base model frozen. Theoretical results show sub-linear regret under a linear preference model, and experiments across GSM8K, star-graph reasoning, and IMDB sentiment generation demonstrate competitive performance to reward-based methods, with robustness to various task types. The approach reduces computational cost and dependency on reward-model training, offering a data-efficient and practical alternative for LLM alignment in real-world applications.

Abstract

Inference-time alignment enables large language models (LLMs) to generate outputs aligned with end-user preferences without further training. Recent post-training methods achieve this by using small guidance models to modify token generation during inference. These methods typically optimize a reward function KL-regularized by the original LLM taken as the reference policy. A critical limitation, however, is their dependence on a pre-trained reward model, which requires fitting to human preference feedback--a potentially unstable process. In contrast, we introduce PITA, a novel framework that integrates preference feedback directly into the LLM's token generation, eliminating the need for a reward model. PITA learns a small preference-based guidance policy to modify token probabilities at inference time without LLM fine-tuning, reducing computational cost and bypassing the pre-trained reward model dependency. The problem is framed as identifying an underlying preference distribution, solved through stochastic search and iterative refinement of the preference-based guidance model. We evaluate PITA across diverse tasks, including mathematical reasoning and sentiment classification, demonstrating its effectiveness in aligning LLM outputs with user preferences.

PITA: Preference-Guided Inference-Time Alignment for LLM Post-Training

TL;DR

PITA tackles the problem of aligning LLM outputs with user preferences without fine-tuning or pre-trained reward models. It introduces a preference-guided inference-time framework that learns a small guidance policy from user preferences and uses it to modulate the LLM's next-token distribution at decoding time, while keeping the base model frozen. Theoretical results show sub-linear regret under a linear preference model, and experiments across GSM8K, star-graph reasoning, and IMDB sentiment generation demonstrate competitive performance to reward-based methods, with robustness to various task types. The approach reduces computational cost and dependency on reward-model training, offering a data-efficient and practical alternative for LLM alignment in real-world applications.

Abstract

Inference-time alignment enables large language models (LLMs) to generate outputs aligned with end-user preferences without further training. Recent post-training methods achieve this by using small guidance models to modify token generation during inference. These methods typically optimize a reward function KL-regularized by the original LLM taken as the reference policy. A critical limitation, however, is their dependence on a pre-trained reward model, which requires fitting to human preference feedback--a potentially unstable process. In contrast, we introduce PITA, a novel framework that integrates preference feedback directly into the LLM's token generation, eliminating the need for a reward model. PITA learns a small preference-based guidance policy to modify token probabilities at inference time without LLM fine-tuning, reducing computational cost and bypassing the pre-trained reward model dependency. The problem is framed as identifying an underlying preference distribution, solved through stochastic search and iterative refinement of the preference-based guidance model. We evaluate PITA across diverse tasks, including mathematical reasoning and sentiment classification, demonstrating its effectiveness in aligning LLM outputs with user preferences.

Paper Structure

This paper contains 40 sections, 5 theorems, 47 equations, 6 figures, 4 tables, 1 algorithm.

Key Result

Theorem 1

Let $\Psi(x) \triangleq \log{\frac{x}{(1-x)}}$. Then, assuming the BT preference model, we have where $s' = (s | a)$ is the state obtained by concatenating $a$ to state $s$.

Figures (6)

  • Figure 1: Overview of PITA training and inference time implementation. During training, our algorithm learns a Action-Value function $Q^*$ directly from the preference information. At Inference, the output distribution of the original LLM, $\pi_{\mathrm{ref}}$, is modified with exponentially weighted $Q^*$-values
  • Figure 2: Comparison of Incorrect Solution from the Reference model and the Correct Solution from PITA to a math reasoning problem.
  • Figure 3: Distribution of learned reward scores w.r.t. preferred/correct (green) and not preferred/incorrect (red) for ID (in-dist.)/OOD (out-of-dist.) data. The reward function training is brittle and sensitive to the amount of data used.
  • Figure 4: A $\mathcal{G}= (3,8)$ star-graph configuration with degree $d=3$ and path length $l=8$. The pre-trained model, using next-token prediction, learns a faulty shortcut: it selects a random first node and follows the path from there.
  • Figure 5: Comparison of IMDB review completions (constrained to 60 tokens) from $\pi_{\text{ref}}$ vs PITA. PITA is able to change the sentiment positive, while $\pi_{\text{ref}}$ fails to do so.
  • ...and 1 more figures

Theorems & Definitions (11)

  • Theorem 1
  • Lemma 1
  • Lemma 2
  • Theorem 2
  • proof
  • proof
  • Definition 1
  • Lemma 3: Strong Convexity of the MLE Loss
  • proof
  • proof : Proof sketch of Lemma \ref{['eqn:mle']}
  • ...and 1 more