arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2409.01893cs.CLcs.AI
收藏

构建有效的长上下文多跳指令数据集的关键因素是什么?洞见与最佳实践

What are the Essential Factors in Crafting Effective Long Context Multi-Hop Instruction Datasets? Insights and Best Practices

Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Research Center for Social Computing and Interactive Robotics(社会计算与交互机器人研究中心);Harbin Institute of Technology(哈尔滨工业大学);School of Computer Science and Engineering, Central South University(中南大学计算机科学与工程学院)

Zhi Chen, Qiguang Chen, Libo Qin, Qipeng Guo, Haijun Lv, Yicheng Zou, Wanxiang Che, Hang Yan, Kai Chen, Dahua Lin

AI总结:

针对现有长上下文多跳指令合成数据多跳占比低、质量差的问题,提出MIMG多智能体交互生成框架,经实验验证其合成数据可显著提升模型长上下文性能,效果优于更多人工标注数据训练的模型。

摘要:

大语言模型(LLM)在扩展上下文窗口方面的最新进展,显著提升了信息抽取、问答以及复杂规划场景等任务的表现。为了在长上下文任务中取得成功,已有大量工作通过合成数据来增强模型的长上下文能力。现有方法通常利用Self-Instruct(自指令)框架生成指令微调数据,以更好地提升长上下文能力。然而,我们的初步实验表明,生成的样本中不足35%为多跳样本,且超过40%的样本质量较差,这限制了对该领域的全面理解与进一步研究。\n为提升合成数据质量,我们提出Multi-agent Interactive Multi-hop Generation(MIMG,多智能体交互多跳生成)框架,该框架整合了质量验证智能体、单跳问题生成智能体、多问题采样策略以及多跳问题合并智能体。该框架提升了数据质量,使得高质量、多跳且具备多样性的数据占比超过85%。此外,我们通过在多种模型上开展大量实验,系统研究了文档选择、问题合并以及验证技术的相关策略。我们的研究结果表明,我们合成的高质量长上下文指令数据显著提升了模型性能,甚至超越了使用更大量人工标注数据训练的模型。我们的代码可在以下链接获取:https://github.com/WowCZ/LongMIT。

英文摘要:

Recent advancements in large language models (LLMs) with extended context windows have significantly improved tasks such as information extraction, question answering, and complex planning scenarios. In order to achieve success in long context tasks, a large amount of work has been done to enhance the long context capabilities of the model through synthetic data. Existing methods typically utilize the Self-Instruct framework to generate instruction tuning data for better long context capability improvement. However, our preliminary experiments indicate that less than 35% of generated samples are multi-hop, and more than 40% exhibit poor quality, limiting comprehensive understanding and further research. To improve the quality of synthetic data, we propose the Multi-agent Interactive Multi-hop Generation (MIMG) framework, incorporating a Quality Verification Agent, a Single-hop Question Generation Agent, a Multiple Question Sampling Strategy, and a Multi-hop Question Merger Agent. This framework improves the data quality, with the proportion of high-quality, multi-hop, and diverse data exceeding 85%. Furthermore, we systematically investigate strategies for document selection, question merging, and validation techniques through extensive experiments across various models. Our findings show that our synthetic high-quality long-context instruction data significantly enhances model performance, even surpassing models trained on larger amounts of human-annotated data. Our code is available at: https://github.com/WowCZ/LongMIT.

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

↑