Untie the Knots: An Efficient Data Augmentation Strategy for Long-Context Pre-Training in Language Models

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Tian, Junfeng, Zheng, Da, Cheng, Yang, Wang, Rui, Zhang, Colin, Zhang, Debing
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866929490785992704
author Tian, Junfeng
Zheng, Da
Cheng, Yang
Wang, Rui
Zhang, Colin
Zhang, Debing
author_facet Tian, Junfeng
Zheng, Da
Cheng, Yang
Wang, Rui
Zhang, Colin
Zhang, Debing
contents Large language models (LLM) have prioritized expanding the context window from which models can incorporate more information. However, training models to handle long contexts presents significant challenges. These include the scarcity of high-quality natural long-context data, the potential for performance degradation on short-context tasks, and the reduced training efficiency associated with attention mechanisms. In this paper, we introduce Untie the Knots (\textbf{UtK}), a novel data augmentation strategy employed during the continue pre-training phase, designed to efficiently enable LLMs to gain long-context capabilities without the need to modify the existing data mixture. In particular, we chunk the documents, shuffle the chunks, and create a complex and knotted structure of long texts; LLMs are then trained to untie these knots and identify relevant segments within seemingly chaotic token sequences. This approach greatly improves the model's performance by accurately attending to relevant information in long context and the training efficiency is also largely increased. We conduct extensive experiments on models with 7B and 72B parameters, trained on 20 billion tokens, demonstrating that UtK achieves 75\% and 84.5\% accurracy on RULER at 128K context length, significantly outperforming other long context strategies. The trained models will open-source for further research.
format Preprint
id arxiv_https___arxiv_org_abs_2409_04774
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Untie the Knots: An Efficient Data Augmentation Strategy for Long-Context Pre-Training in Language Models
Tian, Junfeng
Zheng, Da
Cheng, Yang
Wang, Rui
Zhang, Colin
Zhang, Debing
Computation and Language
Artificial Intelligence
Large language models (LLM) have prioritized expanding the context window from which models can incorporate more information. However, training models to handle long contexts presents significant challenges. These include the scarcity of high-quality natural long-context data, the potential for performance degradation on short-context tasks, and the reduced training efficiency associated with attention mechanisms. In this paper, we introduce Untie the Knots (\textbf{UtK}), a novel data augmentation strategy employed during the continue pre-training phase, designed to efficiently enable LLMs to gain long-context capabilities without the need to modify the existing data mixture. In particular, we chunk the documents, shuffle the chunks, and create a complex and knotted structure of long texts; LLMs are then trained to untie these knots and identify relevant segments within seemingly chaotic token sequences. This approach greatly improves the model's performance by accurately attending to relevant information in long context and the training efficiency is also largely increased. We conduct extensive experiments on models with 7B and 72B parameters, trained on 20 billion tokens, demonstrating that UtK achieves 75\% and 84.5\% accurracy on RULER at 128K context length, significantly outperforming other long context strategies. The trained models will open-source for further research.
title Untie the Knots: An Efficient Data Augmentation Strategy for Long-Context Pre-Training in Language Models
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2409.04774