SoLoPO: 通过短到长偏好优化解锁大语言模型的长上下文能力
SoLoPO: Unlocking Long-Context Capabilities in LLMs via Short-to-Long Preference Optimization
AI总结:
提出SoLoPO框架,将长上下文偏好优化解耦为短上下文偏好优化和短到长奖励对齐,以提升大语言模型的长上下文利用能力。
摘要:
尽管在扩展上下文大小的预训练方面取得了进展,但大语言模型(LLMs)在有效利用现实世界中的长上下文信息方面仍面临挑战,这主要是由于数据质量问题、训练效率低下以及缺乏设计良好的优化目标导致的长上下文对齐不足。为了解决这些限制,我们提出了一个名为 extbf{S}h extbf{o}rt-to- extbf{Lo}ng extbf{P}reference extbf{O}ptimization( extbf{SoLoPO})的框架,将长上下文偏好优化(PO)解耦为两个组成部分:短上下文PO和短到长奖励对齐(SoLo-RA),并得到了理论和实验证据的支持。具体来说,短上下文PO利用从短上下文中采样的偏好对来增强模型的情境知识利用能力。同时,SoLo-RA明确鼓励在包含相同任务相关信息的短上下文和长上下文条件下,响应的奖励分数一致性。这有助于将模型处理短上下文的能力迁移到长上下文场景中。SoLoPO与主流的偏好优化算法兼容,同时显著提高了数据构建和训练过程的效率。实验结果表明,SoLoPO增强了所有这些算法在各种长上下文基准测试中的长度和领域泛化能力,同时在计算和内存效率方面取得了显著提升。
英文摘要:
Despite advances in pretraining with extended context sizes, large language models (LLMs) still face challenges in effectively utilizing real-world long-context information, primarily due to insufficient long-context alignment caused by data quality issues, training inefficiencies, and the lack of well-designed optimization objectives. To address these limitations, we propose a framework named \textbf{S}h\textbf{o}rt-to-\textbf{Lo}ng \textbf{P}reference \textbf{O}ptimization (\textbf{SoLoPO}), decoupling long-context preference optimization (PO) into two components: short-context PO and short-to-long reward alignment (SoLo-RA), supported by both theoretical and empirical evidence. Specifically, short-context PO leverages preference pairs sampled from short contexts to enhance the model's contextual knowledge utilization ability. Meanwhile, SoLo-RA explicitly encourages reward score consistency for the responses when conditioned on both short and long contexts that contain identical task-relevant information. This facilitates transferring the model's ability to handle short contexts into long-context scenarios. SoLoPO is compatible with mainstream preference optimization algorithms, while substantially improving the efficiency of data construction and training processes. Experimental results show that SoLoPO enhances all these algorithms with respect to stronger length and domain generalization abilities across various long-context benchmarks, while achieving notable improvements in both computational and memory efficiency.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。