arXiv:2506.11116cs.CLcs.AI2025-06被引 52

用740万条指令训练大模型,让开源模型更接近闭源水平。

Infinity Instruct: Scaling Instruction Selection and Synthesis to Enhance Language Models

  • 分两阶段构建数据集:先筛选740万条基础指令,再合成150万条对话指令。
  • 在多个开源模型上测试,性能超越官方微调版本,部分任务超GPT-4 8.6%。
  • 适合想提升模型通用能力的研究者和开发者,尤其关注指令训练的团队。

大型语言模型(LLMs)在实际应用中表现强劲,但现有开源指令数据集多集中于数学、编程等狭窄领域,限制了泛化能力并拉大与闭源模型的差距。为此,我们提出Infinity-Instruct,一个通过双阶段流程增强基础与对话能力的高质量指令数据集。第一阶段从超1亿样本中采用混合数据选择技术,构建740万条高质量基础指令(InfInstruct-F-7.4M)。第二阶段通过两阶段流程——指令选择、演化与诊断过滤,合成150万条高质量对话指令(InfInstruct-G-1.5M)。我们在Mistral、LLaMA、Qwen、Yi等多个开源模型上进行微调评估,结果显示在基础与指令遵循任务上均有显著提升,均优于官方微调版本。值得注意的是,InfInstruct-LLaMA3.1-70B在指令遵循任务上比GPT-4-0314高8.6%,同时具备相当的基础性能。该结果揭示了基础与对话训练的协同效应,为大模型整体发展提供了新思路。数据集与代码已公开。

原文摘要 · Abstract (English)

Large Language Models (LLMs) demonstrate strong performance in real-world applications, yet existing open-source instruction datasets often concentrate on narrow domains, such as mathematics or coding, limiting generalization and widening the gap with proprietary models. To bridge this gap, we introduce Infinity-Instruct, a high-quality instruction dataset designed to enhance both foundational and chat capabilities of LLMs through a two-phase pipeline. In Phase 1, we curate 7.4M high-quality foundational instructions (InfInstruct-F-7.4M) from over 100M samples using hybrid data selection techniques. In Phase 2, we synthesize 1.5M high-quality chat instructions (InfInstruct-G-1.5M) through a two-stage process involving instruction selection, evolution, and diagnostic filtering. We empirically evaluate Infinity-Instruct by fine-tuning several open-source models, including Mistral, LLaMA, Qwen, and Yi, and observe substantial performance gains across both foundational and instruction following benchmarks, consistently surpassing official instruction-tuned counterparts. Notably, InfInstruct-LLaMA3.1-70B outperforms GPT-4-0314 by 8.6\% on instruction following tasks while achieving comparable foundational performance. These results underscore the synergy between foundational and chat training and offer new insights into holistic LLM development. Our dataset\footnote{https://huggingface.co/datasets/BAAI/Infinity-Instruct} and codes\footnote{https://gitee.com/li-touch/infinity-instruct} have been publicly released.

指令数据大模型训练开源模型生成式AI

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