LongSkywork: A Training Recipe for Efficiently Extending Context Length in Large Language Models

Liang Zhao, Tianwen Wei, Liang Zeng, Cheng Cheng, Liu Yang +10 more
6/2/2024
cs.CLcs.AI

No confident code implementation found for this paper. 6 possible matches can be shown below.

Abstract

We introduce LongSkywork, a long-context Large Language Model (LLM) capable of processing up to 200,000 tokens. We provide a training recipe for efficiently extending context length of LLMs. We identify that the critical element in enhancing long-context processing capability is to incorporate a long-context SFT stage following the standard SFT stage. A mere 200 iterations can convert the standard SFT model into a long-context model. To reduce the effort in collecting and annotating data for long-context language modeling, we develop two novel methods for creating synthetic data. These methods are applied during the continual pretraining phase as well as the Supervised Fine-Tuning (SFT) phase, greatly enhancing the training efficiency of our long-context LLMs. Our findings suggest that synthetic long-context SFT data can surpass the performance of data curated by humans to some extent. LongSkywork achieves outstanding performance on a variety of long-context benchmarks. In the Needle test, a benchmark for long-context information retrieval, our models achieved perfect accuracy across multiple context spans. Moreover, in realistic application scenarios, LongSkywork-13B demonstrates performance on par with Claude2.1, the leading long-context model, underscoring the effectiveness of our proposed methods.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 6 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhao2024longskywork,
  title  = {LongSkywork: A Training Recipe for Efficiently Extending Context Length in Large Language Models},
  author = {Liang Zhao and Tianwen Wei and Liang Zeng and Cheng Cheng and Liu Yang and Peng Cheng and Lijie Wang and Chenxia Li and Xuejie Wu and Bo Zhu and Yimeng Gan and Rui Hu and Shuicheng Yan and Han Fang and Yahui Zhou},
  year   = {2024},
  eprint = {2406.00605},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.00605v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.00605.svg)](https://codeofpaper.com/paper/2406.00605)

Discussion