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

片段作为手臂:多臂老虎机引导的长上下文LLM偏好优化采样

Chunks as Arms: Multi-Armed Bandit-Guided Sampling for Long-Context LLM Preference Optimization

School of Computer Science and Engineering, Northeastern University, China(东北大学计算机科学与工程学院);Microsoft Research Asia, China(微软亚洲研究院);Department of Computer Science and Technology, Institute for AI, Tsinghua University, China(清华大学计算机科学与技术系及人工智能研究院)

Shaohua Duan, Pengcheng Huang, Xinze Li, Zhenghao Liu, Xiaoyuan Yi, Yukun Yan, Shuo Wang, Yu Gu, Ge Yu, Maosong Sun

AI总结:

本文提出LongMab框架,利用多臂老虎机策略从长上下文中选择最有信息量的片段,生成高质量多样化的响应,用于直接偏好优化训练,提升长上下文推理能力。

摘要:

长上下文建模对于广泛的实际任务至关重要,包括长上下文问答、摘要和复杂推理任务。最近的研究探索了通过合成数据微调大型语言模型(LLMs)以增强其长上下文能力。然而,此类方法的有效性常受到生成数据低多样性和事实不一致性的限制。为了解决这些挑战,我们提出了LongMab,一种新颖的框架,利用多臂老虎机(MAB)滚动策略来识别给定长上下文中的最有信息量的片段,以生成高质量和多样化的响应,并构建偏好数据对用于直接偏好优化(DPO)训练。具体而言,我们将上下文片段视为MAB的臂,根据其预期奖励分数选择片段输入LLM生成响应,并根据奖励反馈迭代更新这些分数。在滚动过程中,探索和利用使LLM专注于最相关的上下文段落,从而生成并收集高质量和多样化的响应。在Llama和Qwen上的实验结果表明,LongMab在长上下文推理基准上实现了超过4%的改进。所有数据和代码将在https://github.com/NEUIR/LongMab-PO上发布。

英文摘要:

Long-context modeling is critical for a wide range of real-world tasks, including long-context question answering, summarization, and complex reasoning tasks. Recent studies have explored fine-tuning Large Language Models (LLMs) with synthetic data to enhance their long-context capabilities. However, the effectiveness of such approaches is often limited by the low diversity and factual inconsistencies in the generated data. To address these challenges, we propose LongMab, a novel framework that leverages a Multi-Armed Bandit (MAB) rollout strategy to identify the most informative chunks from the given long context for sampling high-quality and diverse responses and constructing preference data pairs for Direct Preference Optimization (DPO) training. Specifically, we treat context chunks as arms of MAB, select chunks based on their expected reward scores to input into LLMs to generate responses, and iteratively update these scores based on reward feedback. Both exploration and exploitation during the rollout process enable the LLM to focus on the most relevant context segments, thereby generating and collecting high-quality and diverse responses. Experimental results on both Llama and Qwen show the effectiveness of LongMab by achieving more than a 4% improvement on long-context reasoning benchmarks. All data and code will be released on https://github.com/NEUIR/LongMab-PO.

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

↑