arXiv:2409.01893cs.CLcs.AI2024-09ACL被引 13

提升长文本多跳指令数据质量,关键在多智能体协作生成与严格筛选

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

  • 用多智能体协作生成多跳问题,提升数据多样性与准确性
  • 高质量多跳数据占比超85%,显著优于现有方法的不足35%
  • 适合做长文本理解、复杂推理任务的模型训练与评估

大型语言模型(LLMs)在扩展上下文窗口后,在信息提取、问答和复杂规划等任务上取得显著进展。为提升长上下文能力,现有方法多采用Self-Instruct框架生成合成指令数据。然而初步实验显示,生成样本中多跳比例不足35%,且超过40%质量较差,制约了模型全面理解。为此,本文提出多智能体交互多跳生成(MIMG)框架,包含质量验证代理、单跳问题生成代理、多跳问题采样策略及多跳问题合并代理。该框架使高质量、多跳、多样化数据比例超过85%。通过在多种模型上系统实验,我们验证了文档选择、问题合并与验证技术的有效性。结果表明,该合成数据显著提升模型性能,甚至优于使用更大规模人工标注数据训练的模型。代码已开源:https://github.com/WowCZ/LongMIT。

原文摘要 · Abstract (English)

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.

长上下文多跳推理数据生成智能体协作

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。