SoLoPO: Unlocking Long-Context Capabilities in LLMs via Short-to-Long Preference Optimization

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Sun, Huashan, Liao, Shengyi, Han, Yansen, Bai, Yu, Gao, Yang, Fu, Cheng, Shen, Weizhou, Wan, Fanqi, Yan, Ming, Zhang, Ji, Huang, Fei
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866915547669594112
author Sun, Huashan
Liao, Shengyi
Han, Yansen
Bai, Yu
Gao, Yang
Fu, Cheng
Shen, Weizhou
Wan, Fanqi
Yan, Ming
Zhang, Ji
Huang, Fei
author_facet Sun, Huashan
Liao, Shengyi
Han, Yansen
Bai, Yu
Gao, Yang
Fu, Cheng
Shen, Weizhou
Wan, Fanqi
Yan, Ming
Zhang, Ji
Huang, Fei
contents Despite advances in pretraining with extended context lengths, 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 utilization 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.
format Preprint
id arxiv_https___arxiv_org_abs_2505_11166
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle SoLoPO: Unlocking Long-Context Capabilities in LLMs via Short-to-Long Preference Optimization
Sun, Huashan
Liao, Shengyi
Han, Yansen
Bai, Yu
Gao, Yang
Fu, Cheng
Shen, Weizhou
Wan, Fanqi
Yan, Ming
Zhang, Ji
Huang, Fei
Computation and Language
Artificial Intelligence
Despite advances in pretraining with extended context lengths, 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 utilization 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.
title SoLoPO: Unlocking Long-Context Capabilities in LLMs via Short-to-Long Preference Optimization
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2505.11166