LongReward enables LLMs to handle long documents by teaching them through AI feedback.
Teaching LLMs to read long stuff by letting AI be the teacher.
π https://arxiv.org/abs/2410.21252
π€ Original Problem:
Current LLMs struggle with long-context tasks due to poor quality of synthesized training data. Getting reliable rewards for long-context responses remains unexplored, limiting the use of reinforcement learning to enhance model performance.
-----
π§ Solution in this Paper:
β’ LongReward: Uses off-the-shelf LLMs to score model responses on 4 dimensions:
- Helpfulness: Checks query relevance and requirement fulfillment
- Logicality: Ensures internal consistency
- Faithfulness: Verifies information matches context
- Completeness: Confirms all key points coverage
β’ Implementation:
- Direct LLM scoring for helpfulness/logicality
- Breaks responses into factual statements for faithfulness check
- Extracts question-relevant info from context chunks for completeness
- Combines with Direct Preference Optimization (DPO) for training
-----
π‘ Key Insights:
β’ First method to provide reliable rewards for long-context responses
β’ Novel long-context RL framework combining LongReward with DPO
β’ Can be combined with short-context DPO without performance degradation
β’ Improves both long and short instruction following abilities
-----
π Results:
β’ DPO models with LongReward outperformed SFT models by:
- 4.9% on Llama-3.1-8B
- 5.5% on GLM-4-9B
β’ 46% more wins against SFT baseline in human evaluation
β’ Higher FactScore showing improved faithfulness
β’ Better performance on MT-Bench and AlpacaEval2










