[Paper Review] On Reinforcement Learning and Distribution Matching for Fine-Tuning Language Models with no Catastrophic Forgetting
This paper unifies Reward Maximization (RM) and Distribution Matching (DM) for fine-tuning language models without catastrophic forgetting. By reinterpreting KL-control in RM as a form of DM and introducing baselines into DM, the authors improve sample efficiency, stability, and constraint satisfaction in controllable text generation tasks such as sentiment, topic, and gender control.
The availability of large pre-trained models is changing the landscape of Machine Learning research and practice, moving from a training-from-scratch to a fine-tuning paradigm. While in some applications the goal is to "nudge" the pre-trained distribution towards preferred outputs, in others it is to steer it towards a different distribution over the sample space. Two main paradigms have emerged to tackle this challenge: Reward Maximization (RM) and, more recently, Distribution Matching (DM). RM applies standard Reinforcement Learning (RL) techniques, such as Policy Gradients, to gradually increase the reward signal. DM prescribes to first make explicit the target distribution that the model is fine-tuned to approximate. Here we explore the theoretical connections between the two paradigms, and show that methods such as KL-control developed for RM can also be construed as belonging to DM. We further observe that while DM differs from RM, it can suffer from similar training difficulties, such as high gradient variance. We leverage connections between the two paradigms to import the concept of baseline into DM methods. We empirically validate the benefits of adding a baseline on an array of controllable language generation tasks such as constraining topic, sentiment, and gender distributions in texts sampled from a language model. We observe superior performance in terms of constraint satisfaction, stability and sample efficiency.
Motivation & Objective
- Address catastrophic forgetting in language model fine-tuning, where models lose original capabilities when adapting to new preferences.
- Unify two dominant paradigms—Reward Maximization (RM) and Distribution Matching (DM)—to leverage their respective strengths.
- Overcome high gradient variance in DM methods by importing the baseline concept from RL, improving training stability.
- Enable distributional constraints (e.g., gender or topic balance) that are infeasible in standard RM due to sequence-level rewards.
- Demonstrate superior performance in sample efficiency, constraint adherence, and training stability across multiple controllable generation tasks.
Proposed method
- Reframe KL-control in RM as a form of Distribution Matching (DM), showing theoretical equivalence between penalized reward maximization and minimizing forward KL divergence.
- Introduce a baseline into Distribution Matching algorithms to reduce gradient variance, inspired by policy gradient methods in RL.
- Define target distributions using Energy-Based Models (EBMs) that encode desired preferences, such as sentiment, topic, or gender balance.
- Use Distributional Policy Gradients (DPG) to minimize forward KL divergence between the target distribution and the model’s output distribution.
- Apply hybrid constraints combining multiple features (e.g., 50% female mentions and inclusion of sports terms) via indicator functions and target means.
- Train models using a combination of policy gradient updates with baseline subtraction to stabilize learning in DM-based optimization.
Experimental results
Research questions
- RQ1Can KL-control in Reward Maximization be interpreted as a form of Distribution Matching?
- RQ2What are the theoretical and practical connections between RM and DM in the context of language model fine-tuning?
- RQ3Does introducing a baseline into DM methods improve training stability and sample efficiency?
- RQ4Can DM-based methods effectively enforce complex distributional constraints (e.g., gender or topic balance) in text generation?
- RQ5How does the proposed baseline-enhanced DM method compare to standard RM and DM baselines in constraint satisfaction and stability?
Key findings
- KL-control in RM is theoretically equivalent to minimizing forward KL divergence between the pre-trained model and a target distribution, placing it within the DM framework.
- The proposed baseline in DM significantly reduces gradient variance, leading to more stable training dynamics compared to standard DM methods.
- The method achieves superior constraint satisfaction—e.g., maintaining 50% female mentions in generated text—while preserving fluency and diversity.
- In tasks involving hybrid constraints (e.g., gender balance + topic inclusion), the model with baseline-enhanced DM outperforms both standard DM and RM baselines in sample efficiency and stability.
- Empirical results show that the method maintains the original model’s distributional properties better than standard RL fine-tuning, avoiding catastrophic forgetting.
- The approach generalizes across diverse controllable generation tasks, including sentiment control, topic control, and gender-balanced generation, with consistent improvements in all metrics.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.