paper-with-me

Papers

Data Engineering for Scaling Language Models to 128K Context

2024-02-15 · Yao Fu, Rameswar Panda, Xinyao Niu, Xiang Yue, Hannaneh Hajishirzi, Yoon Kim, Hao Peng

We study the continual pretraining recipe for scaling language models' context lengths to 128K, with a focus on data engineering. We hypothesize that long context modeling, in particular \textit{the ability to utilize information at arbitrary input locations}, is a capability that is mostly already acquired through large-scale pretraining, and that this capability can be readily extended to contexts substantially longer than seen during training~(e.g., 4K to 128K) through lightweight continual pretraining on appropriate data mixture. We investigate the \textit{quantity} and \textit{quality} of the data for continual pretraining: (1) for quantity, we show that 500 million to 5 billion tokens are enough to enable the model to retrieve information anywhere within the 128K context; (2) for quality, our results equally emphasize \textit{domain balance} and \textit{length upsampling}. Concretely, we find that naively upsampling longer data on certain domains like books, a common practice of existing work, gives suboptimal performance, and that a balanced domain mixture is important. We demonstrate that continual pretraining of the full model on 1B-5B tokens of such data is an effective and affordable strategy for scaling the context length of language models to 128K. Our recipe outperforms strong open-source long-context models and closes the gap to frontier models like GPT-4 128K.

📄 PDF Abstract BibTeX arXiv:2402.10171

Code (1)

franxyao/long-context-data-engineering 공식 구현 pytorch

Tasks

4kContinual Pretraining

Methods 이 논문이 사용한 방법론

Position-Wise Feed-Forward Layer 설명 없음
Attention 설명 없음
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Focus 설명 없음
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…

Similar Papers 제목 키워드 기반

Generative AI Act II: Test Time Scaling Drives Cognition Engineering

2025-04-18 · Shijie Xia, Yiwei Qin, Xuefeng Li, Yan Ma 외

The first generation of Large Language Models - what might be called "Act I" of generative AI (2020-2023) - achieved remarkable success through massive parameter and data scaling, yet exhibited fundamental limitations su…

Prompt Engineering

LLMs learn governing principles of dynamical systems, revealing an in-context neural scaling law

2024-02-01 · Toni J. B. Liu, Nicolas Boullé, Raphaël Sarfati, Christopher J. Earls

Pretrained large language models (LLMs) are surprisingly effective at performing zero-shot tasks, including time-series forecasting. However, understanding the mechanisms behind such capabilities remains highly challengi…

Language ModelingLanguage ModellingPrompt EngineeringTime Series+1

How do Scaling Laws Apply to Knowledge Graph Engineering Tasks? The Impact of Model Size on Large Language Model Performance

2025-05-22 · Desiree Heim, Lars-Peter Meyer, Markus Schröder, Johannes Frey 외

When using Large Language Models (LLMs) to support Knowledge Graph Engineering (KGE), one of the first indications when searching for an appropriate model is its size. According to the scaling laws, larger models typical…

Language ModelingLanguage ModellingLarge Language Model

On Data Engineering for Scaling LLM Terminal Capabilities

2026-02-24 · Renjie Pi, Grace Lam, Mohammad Shoeybi, Pooya Jannaty 외 arxiv

Despite rapid recent progress in the terminal capabilities of large language models, the training data strategies behind state-of-the-art terminal agents remain largely undisclosed. We address this gap through a systemat…

SWE-Replay: Efficient Test-Time Scaling for Software Engineering Agents

2026-01-29 · Yifeng Ding, Lingming Zhang arxiv

Test-time scaling has been widely adopted to enhance the capabilities of Large Language Model (LLM) agents in software engineering (SWE) tasks. However, the standard approach of repeatedly sampling trajectories from scra…