arXiv:2610.29352cs.CLOct 2026

Manuscript Offprint

arXiv:2610.29352

Don't Stop Long-Context Continual Pre-Training Too Early: An Empirical Scaling Law

Ziqing Qiao, Xiaoyue Xu, Sikui Zhang, Yinuo Xu, Bingxiang He, Chaojun Xiao, Xu Han

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

ABSTRACT

Long-context continual pre-training (LCCP) is widely used to improve long-context capability, but how its benefits scale with the number of tokens used for LCCP remains unclear. We investigate this question through modeling, monitoring, and validating the benefits of scaling LCCP. First, we establish an empirical additive power law relating long-context performance to model size and the respective token budgets of short-context pre-training and LCCP. Experiments across five model scales and more than one hundred short- and long-context budget configurations show that the fitted law reproduces the observed trends and extrapolates well to held-out model scales. Second, we introduce CONSTANT-LAST4, a training and observation protocol that averages the four most recent consecutive checkpoints from a constant-learning-rate run to enable stable monitoring along a single extensible training trajectory. Under this protocol, the same scaling-law form fits well and accurately predicts the LCCP performance trajectory of a 1.22B-parameter model trained on approximately 100B LCCP tokens. Finally, downstream evaluations along this trajectory show continued improvements in long-context performance, with no clear sign of saturation within the evaluated range. These gains persist after both 128K context extension and supervised fine-tuning, with benefits extending to long-context understanding and agentic tasks. Together, these results argue for continuing to scale LCCP rather than stopping early: its gains are stably observable along an extensible trajectory, quantitatively predictable, and transferable to downstream tasks. 1^{1}

1 INTRODUCTION

Long-context capability is fundamental to language models, supporting complex long-horizon tasks and agentic workflows (Kimi Team et al., 2026; Zeng et al., 2026; Liu et al., 2025). However, training on long sequences from the beginning of pre-training incurs substantial computational costs (Grattafiori et al., 2024). Long-context continual pre-training (LCCP) is therefore widely adopted, often as a brief stage following short-context pre-training. It uses longer sequences and a long-context-oriented data mixture to extend the context window and improve long-context performance (Xiong et al., 2024; Gao et al., 2025). A range of studies and models adopt relatively limited additional training to extend context windows (Liu et al., 2024; Fu et al., 2024; Hu et al., 2025).

As applications increasingly demand long-context understanding and sustained agentic interaction, some training recipes devote substantial token budgets to long-context pre-training (Grattafiori et al., 2024; Zeng et al., 2026). Yet how long-context performance scales with the LCCP training budget remains insufficiently characterized. We therefore ask: Does continued LCCP yield sustained improvements in long-context capability, and can these gains be quantitatively predicted?

In this work, we address this question by modeling, monitoring, and validating the benefits of scaling up LCCP. As illustrated in Figure 1, we conduct a systematic empirical study of how long-context performance evolves with increasing LCCP budgets, spanning short-context pre-training,

∗^{*}Equal contribution.

†^{\dagger}Corresponding authors.

1^{1}The code is released at https://github.com/thunlp/dont-stop-lccp.

Figure

Figure 1: Overview of our framework for modeling, monitoring, and validating long-context performance during LCCP scaling. We develop an empirical scaling law for long-context performance, introduce CONSTANT-LAST4 as an extensible training and observation protocol, and evaluate downstream performance gains after context extension and supervised fine-tuning.

32K LCCP, subsequent 128K context extension, and supervised fine-tuning(SFT). We first establish an empirical scaling law for modeling long-context performance during LCCP, jointly accounting for model size, short-context pre-training tokens, and long-context training tokens. We then introduce a stable observation protocol for extensible LCCP, enabling performance monitoring along a constant-learning-rate trajectory and, together with the scaling law, prediction from early checkpoints. Finally, we conduct downstream evaluations on long-context and agentic tasks, thereby validating whether gains from additional LCCP translate into downstream improvements and persist through subsequent training stages.

Modeling LCCP Scaling. Unlike pre-training from scratch, LCCP starts from a model that has already acquired basic capabilities, meaning that its long-context performance may depend on the preceding short-context pre-training stage (Wu et al., 2025b). We therefore jointly model the non-embedding parameter count N, short-context pre-training tokens DsD_{s}, and long-context training tokens DlD_{l}. Using LongPPL (Fang et al., 2025) as a proxy for long-context performance, we evaluate 109 training configurations across five model scales under a linear-decay learning-rate schedule. We find that an additive power law with an offset accurately captures the observed performance trends and extrapolates to held-out model scales under the evaluated budget settings, providing a quantitative basis for predicting long-context performance under different training budgets.

Monitoring LCCP Scaling. To study continued LCCP scaling, we need a training and observation protocol that enables consistent performance monitoring along a single extensible trajectory. Although linear-decay schedules provide stable endpoint performance, they require a predefined training budget and are therefore inconvenient for open-ended training. In contrast, a constant learning rate avoids this endpoint dependence, allowing cumulative long-context training tokens DlD_{l} to serve as a common coordinate for monitoring training progress.

Raw constant-learning-rate checkpoints, however, exhibit substantial performance fluctuations and underperform budget-matched linear-decay models. Motivated by prior work on training dynamics and checkpoint merging (Wen et al., 2024; Tian et al., 2026), we introduce the CONSTANT-LAST4 protocol, which averages the four most recent checkpoints for evaluation. Across evaluated configurations, this protocol provides more stable observations and closely matches linear-decay performance. Under this protocol, the same scaling-law form fits well and extrapolates from smaller models to the approximately 100B-token LCCP trajectory of a 1.22B model. Moreover, when model size and the short-context training budget are fixed, the law simplifies to a power law in DlD_{l} that predicts later LongPPL from a fit to early LCCP checkpoints. Together, CONSTANT-LAST4 and the empirical scaling law support stable monitoring and performance prediction when scaling up LCCP.

Validating Capability Gains. The practical value of the scaling law depends on whether the performance improvements it captures translate into gains in downstream long-context and agentic tasks. We therefore validate the scaling trend along the 32K LCCP trajectory using RULER (Hsieh et al., 2024), where aggregate performance improves as the long-context training budget increases, with no clear sign of saturation within the evaluated range. Since LCCP is typically not the final training stage, we further evaluate checkpoints obtained at different LCCP budgets after 128K context extension and SFT for long-context and agentic tasks, using identical training procedures within each setting. The benefits of LCCP scaling remain observable after both subsequent training stages and across multiple long-context and agentic benchmarks. Together, these findings provide a quantitative basis for assessing the downstream benefits of continued LCCP.

References (100)

Couldn't load all references. Reload the page to try again.