Iterative Value Function Optimization for Guided Decoding

Zhenhua Liu, Lijun Li, Ruizhe Chen, Yuxian Jiang, Tong Zhu, Zhaochen Su, Wenliang Chen, Jing Shao · OpenReview

Abstract

While Reinforcement Learning from Human Feedback (RLHF) has become the predominant method for controlling language model outputs, it suffers from high computational costs and training instability. Guided decoding, especially value-guided methods, offers a cost-effective alternative by controlling outputs without re-training models. However, the accuracy of the value function is crucial for value-guided decoding, as inaccuracies can lead to suboptimal decision-making and degraded performance. Existing methods struggle with accurately estimating the optimal value function, leading to less effective control. We propose Iterative Value Function Optimization (IVR), a novel framework that addresses these limitations through two key components: Monte Carlo Value Estimation, which reduces estimation variance by exploring diverse trajectories, and Iterative On-Policy Optimization, which progressively improves value estimation through collecting trajectories from value-guided policies. Extensive experiments on text summarization, multi-turn dialogue, and instruction following demonstrate the effectiveness of value-guided decoding approaches in aligning language models. These approaches not only achieve alignment but also significantly reduce computational costs by leveraging principled value function optimization for efficient and effective control.

Introduction

Aligning Large Language Models (LLMs) with human preferences is a critical challenge, typically addressed via Reinforcement Learning from Human Feedback (RLHF) methods like Proximal Policy Optimization (PPO) or Direct Preference Optimization (DPO). Despite their success, these methods are computationally intensive and often unstable. Guided decoding presents a compelling alternative: instead of retraining the base model, a separate "value function" (or critic) evaluates partial outputs during inference to steer the model toward high-reward trajectories.

However, conventional guided decoding suffers from a significant distributional gap. Value functions are typically trained on data from the unaligned "base" model. Since the base model rarely produces high-reward outputs, the critic lacks exposure to optimal behavior—a phenomenon often called the "Blind Critic" problem. This makes it an ineffective guide for reaching the "optimal policy" region.

Methodology: Iterative Value Refinement (IVR)

The proposed Iterative Value Refinement (IVR) framework addresses the distributional gap by treating value function training as an evolutionary, closed-loop process.

The IVR framework (b) bridges the distributional gap seen in conventional methods (a) by iteratively refining the value function through exploration and self-improvement.

The framework consists of three primary components:

  1. Value Exploration: To reduce estimation variance, the system samples multiple diverse trajectories for each prompt. This broader exploration allows the value function to learn from a wider variety of potential outcomes, including those with higher rewards.
  2. Iterative Self-Refinement: IVR employs an iterative on-policy optimization strategy. The value function learned in one iteration is used to guide the generation of higher-quality data for the next. This progressive refinement allows the critic to "see" better trajectories, effectively closing the gap between the base and optimal policies.
  3. Value-Guided Blockwise Beam Search: To mitigate the latency overhead of per-token value function calls, the authors introduce a blockwise approach. The value function evaluates sequences every few tokens (e.g., every 2 or 4), significantly accelerating inference without substantial performance loss.

Experimental Results

The IVR framework was evaluated on summarization (TL;DR), multi-turn dialogue (Anthropic HH), and instruction following (UltraFeedback).

Performance and Alignment

IVR demonstrates superior alignment capabilities compared to existing guided decoding baselines like FUDGE and VAS, as well as retraining methods like DPO. On multi-turn dialogue, IVR achieved a 77.52% win rate against the base policy in GPT-4 evaluations.

Comparison of Reward vs. KL Divergence for IVR and baseline methods across Summarization and Multi-turn Dialogue tasks.

As shown in the figures above, IVR maintains a higher average reward at lower KL-divergence levels. This indicates that the model remains closer to its original linguistic distribution while achieving significantly better alignment with human preferences.

Efficiency and Transferability

A key advantage of IVR is its computational efficiency. During the alignment phase, IVR required approximately half the FLOPs of DPO and IPO under experimental settings. Furthermore, the framework exhibits strong cross-model transferability: a value function trained on a 3B model can effectively guide models of different scales (e.g., 1B or 8B), suggesting that the learned reward signal is model-agnostic.

Conclusion

Iterative Value Refinement (IVR) provides a principled and efficient framework for LLM alignment via guided decoding. By iteratively closing the distributional gap, it achieves state-of-the-art performance with lower computational overhead than traditional RLHF. Future research will explore the application of IVR to complex reasoning tasks and further investigate the theoretical bounds of value function transferability across architectures.

Summary updated

BibTeX
@inproceedings{liu2026iterative,
  author = {Zhenhua Liu and Lijun Li and Ruizhe Chen and Yuxian Jiang and Tong Zhu and Zhaochen Su and Wenliang Chen and Jing Shao},
  title = {{Iterative Value Function Optimization for Guided Decoding}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.148},
}

Loading related content...

Figure