arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.18533cs.CLcs.AI
收藏

LOGO——通过高效偏好优化实现长上下文对齐

LOGO -- Long cOntext aliGnment via efficient preference Optimization

School of Computer Science and Technology, Soochow University(苏州大学计算机科学与技术学院)

Zecheng Tang, Zechen Sun, Juntao Li, Qiaoming Zhu, Min Zhang

AI总结:

针对长上下文模型生成不对齐问题,提出LOGO训练策略,利用无参考偏好优化和位置合成数据高效对齐,并以低成本使Llama-3模型达到接近GPT-4的长上下文表现。

摘要:

长上下文模型(LCM)在便捷且有效地处理长输入序列(甚至超过100M tokens)方面展现出巨大潜力。随着显著进展,近期研究指出,LCM能够在上下文中准确定位token级别的显著信息。然而,这些LCM的生成性能仍远不能令人满意,并可能导致响应不对齐,例如幻觉。为增强LCM的生成能力,已有工作研究了预训练和指令微调中数据规模与质量的影响。尽管取得了有意义的改进,但以往方法在有效性或效率方面存在不足。本文提出LOGO(Long cOntext aliGnment via efficient preference Optimization,通过高效偏好优化实现长上下文对齐),这是一种首次将偏好优化引入长上下文对齐的训练策略。为克服长序列导致的GPU显存受限问题,LOGO采用无参考偏好优化策略,并使用位置合成方法构建训练数据。通过仅使用0.3B数据,在单台8×A800 GPU机器上训练16小时,LOGO使Llama-3-8B-Instruct-80K模型在真实长上下文任务上达到与GPT-4相当的性能,同时保留模型在其他任务上的原有能力,例如语言建模和MMLU。此外,LOGO能够在提升生成性能的同时扩展模型的上下文窗口大小。

英文摘要:

Long-context models(LCMs) have shown great potential in processing long input sequences(even more than 100M tokens) conveniently and effectively. With significant progress, recent research has pointed out that LCMs can accurately locate token-level salient information within the context. Yet, the generation performance of these LCMs is far from satisfactory and might result in misaligned responses, such as hallucinations. To enhance the generation capability of LCMs, existing works have investigated the effects of data size and quality for both pre-training and instruction tuning. Though achieving meaningful improvement, previous methods fall short in either effectiveness or efficiency. In this paper, we introduce LOGO(Long cOntext aliGnment via efficient preference Optimization), a training strategy that first introduces preference optimization for long-context alignment. To overcome the GPU memory-bound issue caused by the long sequence, LOGO employs a reference-free preference optimization strategy and adopts a position synthesis method to construct the training data. By training with only 0.3B data on a single 8$\times$A800 GPU machine for 16 hours, LOGO allows the Llama-3-8B-Instruct-80K model to achieve comparable performance with GPT-4 in real-world long-context tasks while preserving the model's original capabilities on other tasks, e.g., language modeling and MMLU. Moreover, LOGO can extend the model's context window size while enhancing its generation performance.

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

↑