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

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

About

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.

Jiajie Zhang, Zhongni Hou, Xin Lv, Shulin Cao, Zhenyu Hou, Yilin Niu, Lei Hou, Yuxiao Dong, Ling Feng, Juanzi Li• 2024

Related benchmarks

TaskDatasetResultRank
Long-context UnderstandingLongBench
Overall Average Score62.1
115
Long-context Question AnsweringMFQA en
SubEM29.33
36
Long-context Question AnsweringNarrativeQA
SubEM21
36
Long-context Question AnsweringEn.QA
SubEM35.61
36
Long-context Question Answering2WikiMQA
SubEM76
36
Long-context UnderstandingMuSiQue
SubEM48.5
27
Long-context Question AnsweringMuSiQue
F1 Score41.94
19
Long-context UnderstandingAverage Overall
SubEM34.51
18
Multi-TaskLongbench-Chat
Point-wise Rate72.6
10
Instruction FollowingAlpacaEval2 short-context
AlpacaEval2 Score15.4
10
Showing 10 of 18 rows

Other info

Code

Follow for update