Inference-Time Language Model Alignment via Integrated Value Guidance

Zhixuan Liu, Zhanhui Zhou, Yuanfu Wang, Chao Yang, Yu Qiao

Introduction

Aligning Large Language Models (LLMs) with human preferences typically necessitates computationally intensive fine-tuning processes like Reinforcement Learning from Human Feedback (RLHF) or Direct Preference Optimization (DPO). While effective, these methods require updating billions of parameters, posing significant resource challenges. Inference-time alignment offers a compelling alternative by keeping the base model frozen and using a smaller "guide" model to steer decoding. However, existing inference-time methods often rely on either implicit guidance (token-level probability shifts) or explicit guidance (reward model scoring), each with distinct limitations. This paper introduces Integrated Value Guidance (IVG), a novel framework that harmonizes these two approaches to achieve superior alignment without fine-tuning.

Methodology: Integrated Value Guidance

IVG addresses the "granularity discrepancy" identified by the authors: implicit value functions excel at fine-grained token selection but lack global coherence, whereas explicit reward models provide strong contextual judgment but offer noisy token-level guidance. IVG integrates these at two distinct levels of granularity:

  1. Token-wise Sampling (Implicit): At each generation step, IVG adjusts the sampling distribution using an implicit value function derived from the log-probability differences between a small tuned model and its base version. This ensures immediate stylistic alignment.
  2. Chunk-level Beam Search (Explicit): Every $L$ tokens (a "chunk"), the system generates multiple candidate continuations. An explicit value function—a trained prefix scorer—ranks these candidates. The top-performing beams are retained, while others are pruned.
Figure 2: The IVG process integrates token-level sampling with chunk-level beam search to steer model generation.

By combining micro-level precision with macro-level contextual awareness, IVG leverages the complementary strengths of both guidance types.

Experimental Evaluation

The researchers evaluated IVG across three domains: controlled sentiment generation (IMDb), summarization (Reddit TL;DR), and complex instruction following (AlpacaEval 2.0). They utilized guidance models like Tulu-2-dpo-7b and UltraFeedback to steer larger target models, including Mistral-7B and Mixtral-8x7B.

Key Results

IVG consistently outperformed established baselines such as Best-of-N (BoN) sampling and standard search methods. On the AlpacaEval 2.0 benchmark, IVG significantly improved length-controlled win rates against GPT-4-Turbo. For instance, Mistral-7B-Instruct-v0.2 saw a performance jump from 19.51% to 26.51%, while Mixtral-8x7B-Instruct-v0.1 improved from 25.58% to 33.75% when guided by Tulu.

Figure 1: AlpacaEval 2.0 win rates across various models, showing IVG's consistent improvement over base models and other search baselines.

In sentiment and summarization tasks, IVG achieved higher "Gold Reward" scores than either implicit or explicit guidance could achieve in isolation, demonstrating the synergy of the integrated approach.

Discussion and Insights

A core insight of this work is that alignment knowledge can be effectively transferred across scales at inference time; a relatively small model (e.g., GPT-2 124M) can successfully steer a much larger model (e.g., GPT-2 XL 1.5B). Furthermore, by performing beam search at the chunk level rather than for every token, IVG manages computational overhead more efficiently than traditional token-level search methods.

Despite its success, IVG introduces increased inference latency due to the multiple forward passes required for the base model, reference model, and value functions. Future work may explore theoretical frameworks to better explain the performance divergence of value functions at different granularities and investigate the method's compatibility with other alignment strategies like PPO.

Conclusion

Integrated Value Guidance represents a significant step forward for inference-time alignment. By strategically combining implicit and explicit guidance, it provides a practical and robust method for steering frozen LLMs toward human preferences, achieving performance gains comparable to or exceeding traditional fine-tuning in several key benchmarks.

Summary updated

BibTeX
@inproceedings{liu2024inference,
  author = {Zhixuan Liu and Zhanhui Zhou and Yuanfu Wang and Chao Yang and Yu Qiao},
  title = {{Inference-Time Language Model Alignment via Integrated Value Guidance}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.242},
}
Figure