🤖 AI Summary
To address the dual challenges in large language model (LLM) pretraining—insufficient domain knowledge injection leading to weak specialization, and excessive injection causing catastrophic forgetting—this paper proposes a knowledge injection scaling law grounded in critical collapse point analysis. Through systematic experiments across multiple model scales, we identify a model-size-dependent critical threshold for knowledge injection volume and formulate a generalizable scaling law to optimally predict injection magnitude and enable cross-scale transfer. Our method significantly improves downstream task performance across diverse model sizes and pretraining token budgets, while preserving general-purpose capabilities and preventing memory collapse. The core contribution is the first empirical discovery of a principled scaling relationship governing knowledge injection magnitude with model scale, yielding an interpretable, quantifiable, and reusable injection strategy.
📝 Abstract
Large language models (LLMs) have attracted significant attention due to their impressive general capabilities across diverse downstream tasks. However, without domain-specific optimization, they often underperform on specialized knowledge benchmarks and even produce hallucination. Recent studies show that strategically infusing domain knowledge during pretraining can substantially improve downstream performance. A critical challenge lies in balancing this infusion trade-off: injecting too little domain-specific data yields insufficient specialization, whereas excessive infusion triggers catastrophic forgetting of previously acquired knowledge. In this work, we focus on the phenomenon of memory collapse induced by over-infusion. Through systematic experiments, we make two key observations, i.e. 1) Critical collapse point: each model exhibits a threshold beyond which its knowledge retention capabilities sharply degrade. 2) Scale correlation: these collapse points scale consistently with the model's size. Building on these insights, we propose a knowledge infusion scaling law that predicts the optimal amount of domain knowledge to inject into large LLMs by analyzing their smaller counterparts. Extensive experiments across different model sizes and pertaining token budgets validate both the effectiveness and generalizability of our scaling law.