跳到主要导航 跳到搜索 跳到主要内容

Breaking the Stage Barrier: A Novel Single-Stage Approach to Long Context Extension for Large Language Models

  • Haoran Lian
  • , Junmin Chen
  • , Wei Huang
  • , Yizhe Xiong
  • , Wenping Hu
  • , Guiguang Ding*
  • , Hui Chen
  • , Jianwei Niu*
  • , Zijia Lin*
  • , Fuzheng Zhang
  • , Di Zhang
  • *此作品的通讯作者
  • Beihang University
  • Kuaishou
  • Beijing University of Posts and Telecommunications
  • Tsinghua University
  • Zhongguancun Laboratory
  • Zhengzhou University

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

Recently, Large language models (LLMs) have revolutionized Natural Language Processing (NLP). Pretrained LLMs, due to limited training context size, struggle with handling long token sequences, limiting their performance on various downstream tasks. Current solutions toward long context modeling often employ multi-stage continual pertaining, which progressively increases the effective context length through several continual pretraining stages. However, those approaches require extensive manual tuning and human expertise. In this paper, we introduce a novel single-stage continual pretraining method, Head-Adaptive Rotary Position Encoding (HARPE), to equip LLMs with long context modeling capabilities while simplifying the training process. Our HARPE leverages different Rotary Position Encoding (RoPE) base frequency values across different attention heads and directly trains LLMs on the target context length. Extensive experiments on 4 language modeling benchmarks, including the latest RULER benchmark, demonstrate that HARPE excels in understanding and integrating long-context tasks with single-stage training, matching and even outperforming existing multi-stage methods. Our results highlight that HARPE successfully breaks the stage barrier for training LLMs with long context modeling capabilities.

源语言英语
主期刊名Main Conference
编辑Owen Rambow, Leo Wanner, Marianna Apidianaki, Hend Al-Khalifa, Barbara Di Eugenio, Steven Schockaert
出版商Association for Computational Linguistics (ACL)
4897-4909
页数13
ISBN(电子版)9798891761964
出版状态已出版 - 2025
活动31st International Conference on Computational Linguistics, COLING 2025 - Abu Dhabi, 阿拉伯联合酋长国
期限: 19 1月 202524 1月 2025

出版系列

姓名Proceedings - International Conference on Computational Linguistics, COLING
ISSN(印刷版)2951-2093

会议

会议31st International Conference on Computational Linguistics, COLING 2025
国家/地区阿拉伯联合酋长国
Abu Dhabi
时期19/01/2524/01/25

学术指纹

探究 'Breaking the Stage Barrier: A Novel Single-Stage Approach to Long Context Extension for Large Language Models' 的科研主题。它们共同构成独一无二的学术指纹。

引用此