Skip to main content
QUICK REVIEW

[Paper Review] Aligning Language Models with Preferences through f-divergence Minimization

Dongyoung Go, Tomasz Korbak|arXiv (Cornell University)|Feb 16, 2023
Topic ModelingComputer Science5 citations
TL;DR

This paper introduces f-DPG, a unified framework for fine-tuning language models to align with preference-based target distributions by minimizing any f-divergence, including forward KL, reverse KL, TV, and Jensen-Shannon (JS) divergence. The key contribution is demonstrating that JS divergence consistently outperforms forward KL in alignment quality and diversity, even when evaluated under forward KL, and that divergence choice significantly impacts model behavior across model sizes.

ABSTRACT

Aligning language models with preferences can be posed as approximating a target distribution representing some desired behavior. Existing approaches differ both in the functional form of the target distribution and the algorithm used to approximate it. For instance, Reinforcement Learning from Human Feedback (RLHF) corresponds to minimizing a reverse KL from an implicit target distribution arising from a KL penalty in the objective. On the other hand, Generative Distributional Control (GDC) has an explicit target distribution and minimizes a forward KL from it using the Distributional Policy Gradient (DPG) algorithm. In this paper, we propose a new approach, f-DPG, which allows the use of any f-divergence to approximate any target distribution that can be evaluated. f-DPG unifies both frameworks (RLHF, GDC) and the approximation methods (DPG, RL with KL penalties). We show the practical benefits of various choices of divergence objectives and demonstrate that there is no universally optimal objective but that different divergences present different alignment and diversity trade-offs. We show that Jensen-Shannon divergence strikes a good balance between these objectives, and frequently outperforms forward KL divergence by a wide margin, leading to significant improvements over prior work. These distinguishing characteristics between divergences persist as the model size increases, highlighting the importance of selecting appropriate divergence objectives.

Motivation & Objective

  • To unify existing language model alignment methods—such as RLHF and GDC—under a single framework that supports any f-divergence.
  • To investigate how different f-divergences affect alignment quality, diversity, and training dynamics in preference-based language model fine-tuning.
  • To demonstrate that the choice of divergence objective is not neutral, but introduces distinct trade-offs between alignment and diversity.
  • To show that JS divergence offers a favorable balance, frequently outperforming forward KL in practice.
  • To validate that divergence choice effects persist as model size increases, highlighting the importance of objective selection.

Proposed method

  • Propose f-DPG, a generalization of the Distributional Policy Gradient (DPG) algorithm that supports minimization of any f-divergence between a target energy-based model (EBM) and the language model policy.
  • Define the target distribution as an unnormalized EBM, enabling explicit modeling of desired behaviors such as factual consistency, bias reduction, or lexical constraints.
  • Implement four variants: KL-DPG (forward KL), RKL-DPG (reverse KL), TV-DPG (Total Variation), and JS-DPG (Jensen-Shannon), each minimizing a different f-divergence.
  • Use stochastic gradient descent to optimize the policy, with gradients computed via reparameterization and importance sampling to handle the EBM form.
  • Decouple the target distribution definition from the approximation algorithm, allowing flexible combination of objectives and optimization methods.
  • Evaluate all methods using multiple f-divergences as metrics, enabling cross-comparison of alignment quality across objectives.
Figure 1: On many target distributions, the Jensen-Shannon (JS) divergence (green) outperforms the Kullback-Leibler (KL) divergence (blue) as an objective, even when performance is measured in terms of KL from the target $p$ (left panel, $\downarrow$ better). See Sec. 4.2 .
Figure 1: On many target distributions, the Jensen-Shannon (JS) divergence (green) outperforms the Kullback-Leibler (KL) divergence (blue) as an objective, even when performance is measured in terms of KL from the target $p$ (left panel, $\downarrow$ better). See Sec. 4.2 .

Experimental results

Research questions

  • RQ1Does the choice of f-divergence objective significantly affect alignment performance and diversity in language model fine-tuning?
  • RQ2Can JS divergence serve as a superior alternative to forward KL in aligning language models with human preferences?
  • RQ3How do different divergence objectives compare in terms of convergence, stability, and generalization across model sizes?
  • RQ4To what extent do the trade-offs between alignment and diversity persist as model scale increases?
  • RQ5Can f-DPG unify existing frameworks like RLHF and GDC under a single, flexible optimization scheme?

Key findings

  • Jensen-Shannon divergence consistently outperforms forward KL divergence in alignment quality, even when measured using forward KL, indicating a more favorable inductive bias.
  • The improvement from using JS divergence over forward KL is significant and persistent across multiple alignment tasks, including factual consistency, bias mitigation, and lexical control.
  • Different f-divergences lead to distinct model behaviors, with no single objective universally optimal—trade-offs between alignment and diversity are inherent to the choice of divergence.
  • The benefits of JS divergence are not limited to small models; the performance gap persists as model size increases, underscoring its robustness.
  • f-DPG successfully generalizes both DPG and RL with KL penalties, unifying existing approaches under a single framework with flexible divergence selection.
  • Total Variation and reverse KL divergences show limited gains over forward KL, while JS divergence emerges as the most effective alternative in practice.
Figure 2: Comparison of $f$ -DPG on sentiment preference. Evaluation metrics: four $f$ -divergences $D_{f}(\pi_{\theta}||p)$ (↓ better), alignment score $\mathbb{E}_{\pi_{\theta}}[\phi(x)]$ (↑ better), entropy (↑ better), standard deviation of pseudo-reward $\mathrm{std}(r_{\theta}(x))$ .
Figure 2: Comparison of $f$ -DPG on sentiment preference. Evaluation metrics: four $f$ -divergences $D_{f}(\pi_{\theta}||p)$ (↓ better), alignment score $\mathbb{E}_{\pi_{\theta}}[\phi(x)]$ (↑ better), entropy (↑ better), standard deviation of pseudo-reward $\mathrm{std}(r_{\theta}(x))$ .

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.