In the "last mile" of training generative models—whether they are Large Language Models (LLMs) or diffusion models—researchers aim to align the model's outputs with specific rewards like human preference, code compilability, or protein binding affinity. Traditionally, this is framed as a Reinforcement Learning (RL) problem. However, standard RL often suffers from a "central paradox": as the model gets better at achieving high rewards, it becomes increasingly repetitive and narrow, a phenomenon known as mode collapse.
A growing body of research suggests that the culprit is the choice of objective function—specifically, the reliance on Reverse Kullback-Leibler (KL) divergence. To solve this, researchers are shifting toward Forward KL divergence and other mass-covering objectives to ensure models remain diverse and robust.
The Spotlight vs. The Blanket
To understand why this shift matters, we must distinguish between two ways of comparing probability distributions: mode-seeking and mode-covering.
Standard RL algorithms like PPO typically minimize the Reverse KL divergence, $D_{KL}(P_{\theta} || P_{target})$. This objective is "mode-seeking": if the target distribution has multiple peaks (modes) of high reward, the model $P_{\theta}$ will often pick just one peak and put all its probability mass there. It "seeks" a single mode to maximize its score. In practice, this looks like an LLM that gives the same "safe" answer to every prompt or a protein generator that only outputs one stable structure.
In contrast, Forward KL divergence, $D_{KL}(P_{target} || P_{\theta})$, is "mode-covering." Because the target distribution is in the first slot, the model is heavily penalized if it assigns zero probability to any region where the target has mass. As Sharan Vaswani and colleagues note in A general class of surrogate functions for stable and efficient reinforcement learning, this representational choice encourages exploration and prevents premature convergence to local optima. If Reverse KL is a spotlight focusing on one spot, Forward KL is a blanket trying to cover the entire landscape.
Preserving Generative Breadth in Code and Logic
The need for diversity is particularly acute in fields where there isn't just one "right" answer. In code generation, Tomasz Korbak, Hady Elsahar, and their team found that treating compilability as a hard constraint within an Energy-Based Model (EBM) framework allowed them to increase valid code rates without falling into mode collapse. By using distribution-matching rather than direct reward maximization, they ensured the model retained the full range of behaviors learned during pre-training Energy-Based Models for Code Generation under Compilability Constraints.
Similarly, in mathematical reasoning, Li Long and Zhijian Zhou identified that while standard RL improves single-attempt accuracy (Pass@1), it often destroys the model's ability to find multiple solution paths (Pass@k). Their framework, DPH-RL, swaps Reverse KL for mass-covering f-divergences, effectively turning the divergence term into a "rehearsal mechanism" that preserves the model's original knowledge base while learning new reasoning skills The Choice of Divergence: A Neglected Key to Mitigating Diversity Collapse in Reinforcement Learning with Verifiable Reward.
Alignment as Distribution Matching
This shift has led to a new family of alignment algorithms that treat the problem as Distribution Matching Policy Optimization (DMPO). Instead of asking "how do I get the highest reward?", these models ask "how do I match the distribution of all high-reward samples?"
- Diffusion Models: In biomolecular design, Xiner Li and Masatoshi Uehara introduced VIDD, which uses Forward KL to maintain structural diversity in proteins and DNA. This is critical because scientists often need a diverse library of candidate designs for experimental validation, not just one "perfect" molecule Iterative Distillation for Reward-Guided Fine-Tuning of Diffusion Models in Biomolecular Design.
- Large Language Models: Bo Pang 0004 and researchers at Salesforce developed ARM, which aligns LLMs by minimizing the Forward KL between the model and a reward-weighted target distribution. This prevents the repetitive, "robotic" behavior often seen in standard RLHF ARM: Alignment with Residual Energy-Based Model.
- Reasoning: Yuchen Zhu and Wei Guo demonstrated that DMPO can boost the reasoning "muscles" of diffusion-based LLMs by up to 67%, precisely because it encourages the model to cover the entire mass of the "reward-tilted" distribution Enhancing Reasoning for Diffusion LLMs via Distribution Matching Policy Optimization.
Why It Works: The Role of Low-Probability Tokens
The intuition behind Forward KL's success often comes down to how it treats "the long tail." In Low-probability Tokens Sustain Exploration in Reinforcement Learning with Verifiable Reward, Guanhua Huang and colleagues argue that standard RL prunes away low-probability tokens like "wait" or "however"—the very tokens that trigger new reasoning paths. Forward KL acts as a shield for these "Reasoning Sparks," penalizing the model if it tries to assign them zero probability.
By forcing the model to maintain a "mass-covering" distribution, researchers are finding they can achieve the best of both worlds: models that are highly aligned with human goals but retain the creative, diverse, and exploratory breadth of their original pre-training. As Jae-Woo Lee summarizes in the DAV framework, treating alignment as a variational expectation-maximization process allows models to treat high-reward trajectories as target data to be covered, rather than just peaks to be climbed Diffusion Alignment as Variational Expectation-Maximization.