Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

LOGO -- Long cOntext aliGnment via efficient preference Optimization

About

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.

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

Related benchmarks

TaskDatasetResultRank
Long-context Question AnsweringEn.QA
SubEM36.75
36
Long-context Question Answering2WikiMQA
SubEM77.5
36
Long-context Question AnsweringNarrativeQA
SubEM20.5
36
Long-context Question AnsweringMFQA en
SubEM26.67
36
Long-context UnderstandingMuSiQue
SubEM51
27
Long-context Question AnsweringMuSiQue
F1 Score44.98
19
Long-context UnderstandingAverage Overall
SubEM34.43
18
Long-context UnderstandingLV-Eval 64k
SubEM28.33
9
Long-context UnderstandingAverage MuSiQue, 2WikiMQA, MFQA-En, NarrativeQA, En.QA
SubEM Score42.48
9
Long-context UnderstandingLV-Eval 128k
SubEM15.83
9
Showing 10 of 12 rows

Other info

Follow for update