Mid-training

Mid-training is a stage between pre-training and post-training in which a language model keeps training on a smaller, higher-quality or specialised data mix to strengthen chosen skills.

Large language models used to be described as having two stages: broad pre-training on web-scale text, then fine-tuning to make them useful. Mid-training names a stage in between. After the long run on general data, the model keeps training on a smaller, more carefully chosen mix, often with the learning rate turned down, to sharpen particular abilities before post-training begins. A survey published in October 2025 describes it as bridging pre-training and post-training, building up skills such as mathematics, coding, reasoning and handling long inputs while keeping the model's general abilities intact.

Ai2's OLMo 2 models, described in a paper published on December 31, 2024, give a clear example because the whole recipe is public. Their first stage used at least 90 per cent of the training compute, mostly on web data. The second stage, which the team calls mid-training, took 5 to 10 per cent. It up-weighted the highest-quality web documents and curated non-web sources and added synthetic data written to patch weak maths skills. The team trained several runs of this stage on the same data in different orders and averaged the results. To choose data cheaply, they tested candidate sources with short trial runs they called microanneals.

The term is newer than the practice. A second October 2025 survey notes that there had been no earlier survey treating mid-training as a single approach, and it groups under the heading techniques that model reports describe as data annealing, learning-rate scheduling and long-context extension. So when one lab says mid-training and another says annealing or continued pre-training, they may be describing much the same thing.

In practice, mid-training is where a lab decides what its base model will be especially good at. It sits inside the base model's creation, so users never interact with it directly, but its effects show up in benchmark scores for maths and code and in how well the model copes with long documents.

Common questions

What is mid-training in large language models?

It is an intermediate training stage after general pre-training and before post-training. The model continues learning on a smaller, higher-quality or specialised data mix, often with a lower learning rate, to strengthen skills such as maths, coding or long-context handling without losing its general knowledge.

How is mid-training different from fine-tuning?

Mid-training still uses the same next-token prediction as pre-training, on large amounts of curated text, and its aim is a stronger base model. Fine-tuning and other post-training come afterwards and teach the model to follow instructions and behave as an assistant, usually with much smaller, task-shaped datasets.

Is mid-training the same as continued pre-training or annealing?

The terms overlap heavily. Surveys published in 2025 group phases that model reports call annealing, data curricula or long-context extension under the mid-training label. Different labs use different names, so it is best to look at what data and schedule were actually used.

Why do labs add a mid-training stage?

General web data is broad but noisy, so later tokens add less and less. Switching to cleaner and more targeted data near the end of training, as Ai2 did with OLMo 2, gives each extra token more value and lets a lab patch specific weaknesses, such as maths, at a small share of the total compute.

Finding more

Search for "LLM mid-training", "data annealing language models" or "OLMo 2 Dolmino" to see how labs structure this stage. The most reliable sources are technical reports from labs that publish their full recipes, such as Ai2, and survey papers on arXiv. Treat brief mentions of mid-training in product announcements with care, because the term is used loosely and rarely comes with details of the data involved.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.