Bootstrap Your Own Context Length(自举扩展你自己的上下文长度)
Bootstrap Your Own Context Length
AI总结:
本研究提出一种仅利用短上下文能力的自举方法,通过智能体工作流合成长上下文微调数据,将Llama-3系列模型上下文扩展至1M tokens,在多基准上取得更优性能。
摘要:
我们提出一种仅利用语言模型的短上下文能力来训练长上下文语言模型的自举方法。该方法采用简单的智能体工作流来合成多样化的长上下文指令微调数据,从而无需人工数据收集与标注。所提出的数据合成工作流仅需短上下文语言模型、文本检索器和文档集合,这些组件都可在开源生态中便捷获取。随后,我们使用合成数据对语言模型进行微调以扩展其上下文长度。通过这种方式,我们通过自举过程将语言模型的短上下文能力有效迁移到长上下文场景中。我们使用开源的Llama-3系列模型开展实验,证明该方法可成功将上下文长度扩展至最高1M tokens,在各类基准测试上取得了更优性能。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。