Manuscript Offprint

arXiv:2610.13835

Specialists Learn Faster: Knowledge Organization in Pre-training Shapes Knowledge Update Efficiency

Sheng Zhao, Yuhao Zhu

ABSTRACT

An ideal (language) model must continually update its knowledge. Existing work largely focuses on making these updates efficient after training. We investigate how the organization of time-varying knowledge during pre-training shapes the efficiency of subsequent updates. Models trained on chronologically ordered knowledge specialize in the most recently encountered knowledge; we call them specialists. In contrast, models trained on the same knowledge in randomly shuffled order perform well across all represented time periods; we call them generalists. Surprisingly, specialists require far fewer update steps than generalists to acquire new knowledge. To explain this advantage, we derive a law from first principles that relates update cost to the model's optimization dynamics and that closely predicts empirical results. Guided by these findings, we design a strategy for organizing pre-training data that preserves stable historical knowledge while enabling efficient updates to current knowledge. We also show that the benefits of temporal knowledge organization extend to real-world pre-trained models and existing knowledge update tools, and generalize to other knowledge orderings. Project page at: https://horizon-lab.org/specialist/.

1 INTRODUCTION

Both generalists and specialists have evolved in nature (Sachdeva et al., 2020). Generalists are fit across a range of environments although they are not particularly optimal for a particular environment. Specialists are well adapted to a particular environment but lack fitness outside their niche.

We show that generalists and specialists can emerge in language models, influenced by how knowledge is ordered and presented during training (Section 4). Without losing generality, we focus on biographical knowledge, which has a natural order — chronological order (Section 3). We find that models trained on chronologically ordered knowledge tend to become specialists: they perform best on the most recently encountered knowledge but poorly on knowledge from other periods. In contrast, models trained on the same knowledge in randomly shuffled order tend to become generalists: they perform reasonably well across all periods represented in training.

Perhaps surprisingly, specialists acquire new knowledge more efficiently during post-training updates (Section 5). To explain this advantage, we derive a law from first principles that describes knowledge-update dynamics in the model's optimization landscape. The law relates update cost to two quantities: the pre-trained model's initial gap in acquiring the new knowledge (the knowledge gap) and how quickly the model closes that gap (the update speed). Together with a gradient analysis, the law shows that specialists' advantage lies primarily in their larger initial gradient magnitudes, which allow them to close the (sometimes larger) knowledge gap much faster than generalists.

Our observations have practical values: an ideal (language) model must continually update its knowledge (Vu et al., 2024; Johnson et al., 2025) because, for instance, people change jobs over time or software APIs update across versions. After deployment, a model is usually updated through model editing (Meng et al., 2022; 2023; De Cao et al., 2021; Yao et al., 2023) or continued pre-training (Gururangan et al., 2020; Ibrahim et al., 2024). Most prior work focuses on making these updates cheaper and less harmful once the model has already been trained by, for example, meta-learning an editor (Mitchell et al., 2022a), storing updates in external memory (Mitchell et al., 2022b; Hartvigsen et al., 2023), or constraining updates to spare other knowledge (Fang et al., 2025).

These post-training approaches apply after a model has learned its knowledge. Our work studies the role of the original training data in update efficiency. Building on our findings, we design a strategy for organizing pre-training data that preserves rarely changing historical knowledge while enabling efficient updates to recent knowledge (Section 6.1). We also show that the benefits of temporal knowledge organization extends to real-world pre-trained models (Section 6.2) and existing knowledge update tools (Section 6.3), and generalize to other knowledge orderings (Section 6.4).

In summary, we make three main contributions.

  • We show that models trained on chronologically ordered knowledge require roughly half as many steps to learn new knowledge as those trained on temporally shuffled knowledge.

  • We derive a law governing the update cost. The law shows that the temporal order of knowledge reduces update cost primarily by substantially increasing the initial gradient of the model.

  • Using our findings, we show how to design temporal knowledge organizations to train models that are both generalists and specialists. The benefits extend to pre-trained (real-world) models and existing knowledge update tools, and generalize to other knowledge orderings.

References (53)

  • Physics of language models: Part 3.1, knowledge storage and extraction (opens arXiv in a new tab)
  • Curriculum learning
  • Specialists make faster decisions than generalists: experiments with aphids
  • Piqa: Reasoning about physical commonsense in natural language
  • Advances in neural information processing systems, 36:49205–49233, 2023
  • Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challenge
  • Editing factual knowledge in language models
  • Time-aware language models as temporal knowledge bases
  • Loss of plasticity in deep continual learning
  • AlphaEdit: Null-space constrained knowledge editing for language models
  • Does fine-tuning LLMs on new knowledge encourage hallucinations? In Proceedings of EMNLP, pp. 7765–7784, 2024
  • Lifelong knowledge editing requires better regularization
  • Language models represent space and time
  • Don’t stop pretraining: Adapt language models to domains and tasks
  • Aging with GRACE: Lifelong model editing with discrete key-value adaptors
  • LoRA: Low-rank adaptation of large language models
  • Simple and scalable strategies to continually pre-train large language models
  • TemporalWiki: A lifelong benchmark for training and evaluating ever-evolving language models
  • Towards continual knowledge learning of language models
  • Lifelong pretraining: Continually adapting language models to emerging corpora
  • Exploring collaborative genai agents in synchronous group settings: eliciting team perceptions and design considerations for the future of work
  • Continual pre-training of language models
  • Knowledge entropy decay during language model pretraining hinders new knowledge acquisition
  • Adam: A method for stochastic optimization
  • Proceedings of the national academy of sciences, 114(13):3521–3526, 2017
  • Mind the gap: Assessing temporal generalization in neural language models
  • A web-scale benchmark for time-continual llm pretraining
  • Drop dropout on single-epoch language model pretraining
  • TimeLMs: Diachronic language models from Twitter
  • An empirical study of catastrophic forgetting in large language models during continual fine-tuning (opens arXiv in a new tab)
  • Locating and editing factual associations in GPT. In Advances in Neural Information Processing Systems, 2022
  • Mass-editing memory in a transformer
  • Fast model editing at scale
  • Memory-based model editing at scale
  • Fine-tuning or retrieval? comparing knowledge injection in LLMs
  • Does time have its place? temporal heads: Where language models recall time-specific information
  • Decanting the web for the finest text data at scale
  • Understanding data temporality impact on large language models pre-training (opens arXiv in a new tab)
  • Tuning environmental timescales to evolve and maintain generalists
  • Fine-tuned language models are continual learners
  • Roformer: Enhanced transformer with rotary position embedding
  • Gemma 2: Improving Open Language Models at a Practical Size
  • Memorization without overfitting: Analyzing the training dynamics of large language models
  • An empirical study of example forgetting during deep neural network learning
  • FreshLLMs: Refreshing large language models with search engine augmentation
  • WISE: Rethinking the knowledge memory for lifelong model editing of large language models
  • When do curricula work? In International Conference on Learning Representations, 2021
  • Synthetic continued pretraining
  • Editing large language models: Problems, methods, and opportunities
  • Hellaswag: Can a machine really finish your sentence? In Proceedings of the 57th annual meeting of the association for computational linguistics, pp. 4791–4800, 2019
  • Set the clock: Temporal alignment of pretrained language models
  • Self-adapting language models (opens arXiv in a new tab)
  • Records: per epoch; LR: peak learning rate