用短上下文模型自举训练出可处理百万级令牌的长文本模型
Bootstrap Your Own Context Length
- 仅用短上下文模型、检索器和文档集自动生成长文本训练数据
- 在Llama-3上实现100万令牌上下文长度,性能优于基准测试
- 适合想低成本扩展大模型上下文能力的研究者与开发者
我们提出一种自举方法,仅利用语言模型的短上下文能力来训练长上下文模型。该方法通过简单代理流程合成多样化的长上下文指令数据,避免了人工数据收集与标注。所需组件仅为短上下文语言模型、文本检索器和文档集合,均来自开源生态。随后使用合成数据对模型进行微调,以扩展其上下文长度。此过程实现了将短上下文能力迁移至长上下文场景。我们在Llama-3系列模型上进行了实验,证明该方法可成功将上下文长度扩展至100万令牌,并在多个基准测试中取得更优表现。
原文摘要 · Abstract (English)
We introduce a bootstrapping approach to train long-context language models by exploiting their short-context capabilities only. Our method utilizes a simple agent workflow to synthesize diverse long-context instruction tuning data, thereby eliminating the necessity for manual data collection and annotation. The proposed data synthesis workflow requires only a short-context language model, a text retriever, and a document collection, all of which are readily accessible within the open-source ecosystem. Subsequently, language models are fine-tuned using the synthesized data to extend their context lengths. In this manner, we effectively transfer the short-context capabilities of language models to long-context scenarios through a bootstrapping process. We conduct experiments with the open-source Llama-3 family of models and demonstrate that our method can successfully extend the context length to up to 1M tokens, achieving superior performance across various benchmarks.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。