arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2206.00761cs.LGcs.CLstat.ML
收藏

基于强化学习和分布匹配的无灾难性微调语言模型优化

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

University of Sussex(萨塞克斯大学);Naver Labs Europe(Naver欧洲实验室)

Tomasz Korbak, Hady Elsahar, Germán Kruszewski, Marc Dymetman

摘要:

大型预训练模型的可用性正在改变机器学习研究和实践的格局,从从头开始的训练转向微调范式。虽然在某些应用中,目标是将预先训练的分布“轻推”到首选输出,但在其他应用中,目标是将其引导到样本空间上的不同分布。两种主要的范式已经出现来应对这一挑战:奖励最大化(RM)和最近的分布匹配(DM)。RM应用标准的强化学习(RL)技术,例如策略梯度,以逐渐增加奖励信号。DM规定首先明确模型被微调以近似的目标分布。在这里,我们探讨了这两种范式之间的理论联系,并表明,如KL控制RM开发的方法也可以被解释为属于DM。我们进一步观察到,虽然DM不同于RM,但它可能会遇到类似的训练困难,例如高梯度方差。我们利用这两种范式之间的联系,将基线的概念导入DM方法。我们经验验证的好处,增加一个可控的语言生成任务,如约束主题,情感和性别分布的文本样本从语言模型的阵列上的基线。我们观察到优越的性能方面的约束满足,稳定性和样本效率。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑