Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

On Reinforcement Learning and Distribution Matching for Fine-Tuning Language Models with no Catastrophic Forgetting

About

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.

Tomasz Korbak, Hady Elsahar, Germ\'an Kruszewski, Marc Dymetman• 2022

Related benchmarks

TaskDatasetResultRank
Controllable Language Generation-ve Sentiment Pointwise Constraint
Dist-30.94
17
Controllable Language GenerationWord WikiLeaks Pointwise Constraint
Ctrl Score0.77
5
Controllable Language GenerationWordlist Politics Pointwise Constraint
Ctrl0.49
5
Controllable Language GenerationWord Amazing Pointwise Constraint
Control Score0.69
5
Controllable Language GenerationWordlist Science Pointwise Constraint
Ctrl Score54
5
Controllable Language Generation+ve Sentiment Pointwise Constraint
Control Success Rate60
5
Controllable Language GenerationSingle Distributional Constraint
Ctrl0.81
3
Controllable Language GenerationMultiple Distributional Constraint
Ctrl0.95
3
Controllable Language GenerationHybrid Science Distributional Constraint
Ctrl0.7
3
Controllable Language GenerationHybrid Sports Distributional Constraint
Ctrl Score85
3
Showing 10 of 10 rows

Other info

Code

Follow for update