arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.11999cs.CLcs.AI
收藏

Token级直接偏好优化

Token-level Direct Preference Optimization

Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);Microsoft Research AI4Science(微软研究院AI4Science);University College London(伦敦大学学院)

Yongcheng Zeng, Guoqing Liu, Weiyu Ma, Ning Yang, Haifeng Zhang, Jun Wang

AI总结:

本文提出Token级直接偏好优化(TDPO),通过在token级别引入前向KL散度约束和基于Bradley-Terry模型的奖励系统,无需显式奖励建模即可提升LLM对齐性与生成多样性,实验表明其优于DPO和PPO-based RLHF方法。

摘要:

微调预训练大语言模型(LLMs)对于使其与人类价值观和意图对齐至关重要。该过程通常利用成对比较和针对参考LLM的KL散度等方法,侧重于评估模型生成的完整答案。然而,这些响应的生成发生在token级别,遵循顺序、自回归的方式。在本文中,我们提出了Token级直接偏好优化(TDPO),这是一种通过在token级别优化策略来使LLMs与人类偏好对齐的新方法。与之前面临散度效率挑战的方法不同,TDPO为每个token引入了前向KL散度约束,从而改善了对齐性和多样性。利用Bradley-Terry模型构建基于token的奖励系统,TDPO增强了对KL散度的调节,同时保持了简洁性,无需显式奖励建模。跨多种文本任务的实验结果表明,TDPO在平衡对齐性与生成多样性方面具有卓越性能。值得注意的是,在受控情感生成和单轮对话数据集上,使用TDPO进行微调比DPO取得了更好的平衡,并且与基于DPO和PPO的RLHF方法相比,显著提高了生成响应的质量。我们的代码已在 https://github.com/Vance0124/Token-level-Direct-Preference-Optimization 开源。

英文摘要:

Fine-tuning pre-trained Large Language Models (LLMs) is essential to align them with human values and intentions. This process often utilizes methods like pairwise comparisons and KL divergence against a reference LLM, focusing on the evaluation of full answers generated by the models. However, the generation of these responses occurs in a token level, following a sequential, auto-regressive fashion. In this paper, we introduce Token-level Direct Preference Optimization (TDPO), a novel approach to align LLMs with human preferences by optimizing policy at the token level. Unlike previous methods, which face challenges in divergence efficiency, TDPO incorporates forward KL divergence constraints for each token, improving alignment and diversity. Utilizing the Bradley-Terry model for a token-based reward system, TDPO enhances the regulation of KL divergence, while preserving simplicity without the need for explicit reward modeling. Experimental results across various text tasks demonstrate TDPO's superior performance in balancing alignment with generation diversity. Notably, fine-tuning with TDPO strikes a better balance than DPO in the controlled sentiment generation and single-turn dialogue datasets, and significantly improves the quality of generated responses compared to both DPO and PPO-based RLHF methods. Our code is open-sourced at https://github.com/Vance0124/Token-level-Direct-Preference-Optimization.

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

↑