arXiv:2409.01369cs.LGcs.AI2024-09NeurIPS被引 26

用逆强化学习提升语言模型生成多样性与性能

Imitating Language via Scalable Inverse Reinforcement Learning

论文配图:Imitating Language via Scalable Inverse Reinforcement Learning
图 1 · 摘自论文原文
  • 将逆软Q学习重构为基于时序差分的MLE扩展
  • 在固定微调数据上提升生成多样性和任务表现
  • 适合追求高质量多样输出的模型优化场景

当前语言模型训练主要依赖模仿学习,以最大似然估计(MLE)为基础,虽具简洁可扩展性,但未能充分利用自回归生成的序列结构。本文从逆强化学习(IRL)视角出发,通过提取奖励函数并直接优化生成序列,而非单一词元概率,探索其在监督微调(SFT)中的优势。提出将逆软Q学习重构为时序差分正则化的MLE扩展,建立MLE与IRL之间的理论联系,并可在复杂度与生成性能、多样性间灵活权衡。实验表明,在固定SFT数据集上,基于IRL的模仿学习显著提升生成多样性且不损失任务性能,是无需在线数据生成的有力替代方案。进一步分析显示,该方法能构建更鲁棒的奖励函数,促进监督与偏好驱动后训练的深度融合。

原文摘要 · Abstract (English)

The majority of language model training builds on imitation learning. It covers pretraining, supervised fine-tuning, and affects the starting conditions for reinforcement learning from human feedback (RLHF). The simplicity and scalability of maximum likelihood estimation (MLE) for next token prediction led to its role as predominant paradigm. However, the broader field of imitation learning can more effectively utilize the sequential structure underlying autoregressive generation. We focus on investigating the inverse reinforcement learning (IRL) perspective to imitation, extracting rewards and directly optimizing sequences instead of individual token likelihoods and evaluate its benefits for fine-tuning large language models. We provide a new angle, reformulating inverse soft-Q-learning as a temporal difference regularized extension of MLE. This creates a principled connection between MLE and IRL and allows trading off added complexity with increased performance and diversity of generations in the supervised fine-tuning (SFT) setting. We find clear advantages for IRL-based imitation, in particular for retaining diversity while maximizing task performance, rendering IRL a strong alternative on fixed SFT datasets even without online data generation. Our analysis of IRL-extracted reward functions further indicates benefits for more robust reward functions via tighter integration of supervised and preference-based LLM post-training.

逆强化学习语言模型生成多样性

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。