LongReward: Improving Long-context Large Language Models with AI Feedback

Jiajie Zhang, Zhongni Hou, Xin Lv, Shulin Cao, Zhenyu Hou +5 more
10/28/2024
cs.CLcs.LG

No official code found. Best implementation: THUDM/LongReward (62 stars, Apache-2.0, last commit 2024-10-29).

Abstract

Though significant advancements have been achieved in developing long-context large language models (LLMs), the compromised quality of LLM-synthesized data for supervised fine-tuning (SFT) often affects the long-context performance of SFT models and leads to inherent limitations. In principle, reinforcement learning (RL) with appropriate reward signals can further enhance models' capacities. However, how to obtain reliable rewards in long-context scenarios remains unexplored. To this end, we propose LongReward, a novel method that utilizes an off-the-shelf LLM to provide rewards for long-context model responses from four human-valued dimensions: helpfulness, logicality, faithfulness, and completeness, each with a carefully designed assessment pipeline. By combining LongReward and offline RL algorithm DPO, we are able to effectively improve long-context SFT models. Our experiments indicate that LongReward not only significantly improves models' long-context performance but also enhances their ability to follow short instructions. We also find that long-context DPO with LongReward and conventional short-context DPO can be used together without hurting either one's performance.

View on arXivView PDF

Code Implementations(1)

THUDM/LongRewardCommunity100%
Apache-2.0
625PythonOct 16, 20241 years agoApache-2.0

Cite this paper

@article{zhang2024longreward,
  title  = {LongReward: Improving Long-context Large Language Models with AI Feedback},
  author = {Jiajie Zhang and Zhongni Hou and Xin Lv and Shulin Cao and Zhenyu Hou and Yilin Niu and Lei Hou and Yuxiao Dong and Ling Feng and Juanzi Li},
  year   = {2024},
  eprint = {2410.21252},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.21252v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.21252.svg)](https://codeofpaper.com/paper/2410.21252)

Discussion