Scaling Instruction-Tuned LLMs to Million-Token Contexts via Hierarchical Synthetic Data Generation

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: He, Linda, Wang, Jue, Weber, Maurice, Zhu, Shang, Athiwaratkun, Ben, Zhang, Ce
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912332722995200
author He, Linda
Wang, Jue
Weber, Maurice
Zhu, Shang
Athiwaratkun, Ben
Zhang, Ce
author_facet He, Linda
Wang, Jue
Weber, Maurice
Zhu, Shang
Athiwaratkun, Ben
Zhang, Ce
contents Large Language Models (LLMs) struggle with long-context reasoning, not only due to the quadratic scaling of computational complexity with sequence length but also because of the scarcity and expense of annotating long-context data. There has been barely any open-source work that systematically ablates long-context data, nor is there any openly available instruction tuning dataset with contexts surpassing 100K tokens. To bridge this gap, we introduce a novel post-training synthetic data generation strategy designed to efficiently extend the context window of LLMs while preserving their general task performance. Our approach scalably extends to arbitrarily long context lengths, unconstrained by the length of available real-world data, which effectively addresses the scarcity of raw long-context data. Through a step-by-step rotary position embedding (RoPE) scaling training strategy, we demonstrate that our model, with a context length of up to 1M tokens, performs well on the RULER benchmark and InfiniteBench and maintains robust performance on general language tasks.
format Preprint
id arxiv_https___arxiv_org_abs_2504_12637
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Scaling Instruction-Tuned LLMs to Million-Token Contexts via Hierarchical Synthetic Data Generation
He, Linda
Wang, Jue
Weber, Maurice
Zhu, Shang
Athiwaratkun, Ben
Zhang, Ce
Computation and Language
Artificial Intelligence
Large Language Models (LLMs) struggle with long-context reasoning, not only due to the quadratic scaling of computational complexity with sequence length but also because of the scarcity and expense of annotating long-context data. There has been barely any open-source work that systematically ablates long-context data, nor is there any openly available instruction tuning dataset with contexts surpassing 100K tokens. To bridge this gap, we introduce a novel post-training synthetic data generation strategy designed to efficiently extend the context window of LLMs while preserving their general task performance. Our approach scalably extends to arbitrarily long context lengths, unconstrained by the length of available real-world data, which effectively addresses the scarcity of raw long-context data. Through a step-by-step rotary position embedding (RoPE) scaling training strategy, we demonstrate that our model, with a context length of up to 1M tokens, performs well on the RULER benchmark and InfiniteBench and maintains robust performance on general language tasks.
title Scaling Instruction-Tuned LLMs to Million-Token Contexts via Hierarchical Synthetic Data Generation
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2504.12637