arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.03939cs.CL
收藏

利用短指令与合成位置进行长上下文对齐

Long Context Alignment with Short Instructions and Synthesized Positions

Peking University(北京大学);University of Washington(华盛顿大学);University of Edinburgh(爱丁堡大学);The Ohio State University(俄亥俄州立大学)

Wenhao Wu, Yizhong Wang, Yao Fu, Xiang Yue, Dawei Zhu, Sujian Li

AI总结:

本文提出 SkipAlign,通过在短指令样本中策略性插入跳过位置来合成长程依赖,从而无需扩展训练数据长度即可增强 LLM 的长上下文对齐能力。

摘要:

有效处理具有极长上下文的指令对大语言模型(LLM)而言仍是一项挑战,这通常需要高质量的长数据和大量计算资源。本文介绍了 Step-Skipping Alignment(SkipAlign),这是一项旨在在对齐阶段增强 LLM 长上下文能力的新技术,除了使用原始数据长度进行训练之外,无需额外工作。SkipAlign 的开发基于这样一个前提:长程依赖对于增强 LLM 的长上下文能力至关重要。与单纯扩展输入样本长度不同,SkipAlign 从位置索引的角度合成长程依赖。这是通过在指令遵循样本中策略性地插入跳过的位置来实现的,该方法利用数据的语义结构有效扩展上下文。通过在具有多种上下文窗口大小的基础模型上进行大量实验,SkipAlign 在一系列长上下文任务中证明了其有效性。尤其值得注意的是,通过精心选择基础模型和对齐数据集,仅具有 6B 参数的 SkipAlign 取得了最佳性能,并在 LongBench 上与 GPT-3.5-Turbo-16K 等强大基线相当。

英文摘要:

Effectively handling instructions with extremely long context remains a challenge for Large Language Models (LLMs), typically necessitating high-quality long data and substantial computational resources. This paper introduces Step-Skipping Alignment (SkipAlign), a new technique designed to enhance the long-context capabilities of LLMs in the phase of alignment without the need for additional efforts beyond training with original data length. SkipAlign is developed on the premise that long-range dependencies are fundamental to enhancing an LLM's capacity of long context. Departing from merely expanding the length of input samples, SkipAlign synthesizes long-range dependencies from the aspect of positions indices. This is achieved by the strategic insertion of skipped positions within instruction-following samples, which utilizes the semantic structure of the data to effectively expand the context. Through extensive experiments on base models with a variety of context window sizes, SkipAlign demonstrates its effectiveness across a spectrum of long-context tasks. Particularly noteworthy is that with a careful selection of the base model and alignment datasets, SkipAlign with only 6B parameters achieves it's best performance and comparable with strong baselines like GPT-3.5-Turbo-16K on LongBench.

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

↑