Abstract
In this work, we investigate how a model's tendency to broadly integrate its parametric knowledge evolves throughout pretraining, and how this behavior affects overall performance, particularly in terms of knowledge acquisition and forgetting. We introduce the concept of knowledge entropy, which quantifies the range of memory sources the model engages with; high knowledge entropy indicates that the model utilizes a wide range of memory sources, while low knowledge entropy suggests reliance on specific sources with greater certainty. Our analysis reveals a consistent decline in knowledge entropy as pretraining advances. We also find that the decline is closely associated with a reduction in the model's ability to acquire and retain knowledge, leading us to conclude that diminishing knowledge entropy (smaller number of active memory sources) impairs the model's knowledge acquisition and retention capabilities. We find further support for this by demonstrating that increasing the activity of inactive memory sources enhances the model's capacity for knowledge acquisition and retention.
Introduction
Large Language Models (LLMs) demonstrate remarkable capabilities after extensive pretraining. However, a significant challenge emerges as these models mature: they become increasingly "stiff," losing the plasticity required to integrate new factual knowledge. This phenomenon is often characterized by a trade-off in the stability-plasticity dilemma, where models struggle to learn new information without catastrophically forgetting previously acquired knowledge. While the existence of this stiffness is well-documented, the underlying internal dynamics causing it have remained largely unexplored. This paper, accepted at ICLR 2025, proposes that the root cause lies in the decay of "knowledge entropy" within the model's internal memory structures.
Methodology: Knowledge Entropy and the FFN-as-Memory Framework
To analyze internal dynamics, we adopt the perspective that Feed-Forward Networks (FFNs) in Transformers function as key-value memories. In this framework, the first projection matrix ($K$) generates coefficients that determine the relevance of specific memory slots, while the second matrix ($V$) contains the actual memory vectors (the parametric knowledge).
We define Knowledge Entropy (KE) as the entropy of the distribution of these memory coefficients. High KE signifies that the model is integrating a broad range of memory sources during processing. Conversely, low KE indicates that the model has become highly specialized, relying on a narrow set of "active" parameters with high certainty.
To test the causal link between KE and plasticity, we developed a "Resuscitation" algorithm. This method identifies the least active memory vectors (the bottom $p\%$) and artificially amplifies their weights in the $K$ matrix. By forcing the model to engage with these inactive memory slots, we can effectively increase knowledge entropy and observe the resulting impact on the model's ability to learn.
Empirical Evidence of Entropy Decay
Our investigation across various model architectures and sizes—including OLMo (1B and 7B) and Pythia (1.4B)—reveals a universal trend: knowledge entropy consistently decays as pretraining progresses. As the model sees more data, its internal focus narrows, and the distribution of memory coefficients becomes increasingly "spiky."
This decay is not limited to FFNs; we observed similar trends in Attention Entropy. However, our experiments showed that resuscitating the FFN layers was significantly more effective for restoring factual knowledge acquisition than modifying attention mechanisms.
Impact on Continual Learning
The decline in knowledge entropy has profound implications for a model's ability to undergo continual learning. We identified a strong correlation between KE and performance metrics:
- Knowledge Acquisition: There is a high positive correlation (0.94) between KE and the ability to learn new facts. As entropy drops, the "spiky" distribution of coefficients means that gradient updates during backpropagation are concentrated on a few already-active memory vectors. This leaves fewer available "slots" for new information.
- Catastrophic Forgetting: There is a strong negative correlation (-0.96) between KE and forgetting. Because updates are concentrated on a small set of parameters, existing knowledge is frequently overwritten, leading to the rapid loss of previously learned information.
Our results suggest a "Mid-stage Sweet Spot" around 50% of the pretraining schedule. At this point, models have acquired sufficient general language capability but still retain enough knowledge entropy to be highly plastic and receptive to new information.
Key Results from Resuscitation
The resuscitation experiments provided empirical validation for our hypothesis. By artificially increasing the activity of inactive memory vectors in final-stage models, we observed:
- Restored Acquisition: Knowledge acquisition rates in "stiff" models jumped significantly (e.g., from ~20% to over 60% in specific fictional knowledge benchmarks).
- Reduced Forgetting: By spreading updates across a wider array of memory vectors, the model avoided the concentrated overwriting that drives catastrophic forgetting, preserving its original knowledge base more effectively.
Conclusion
This research highlights that the increasing certainty and specialization of LLMs during pretraining comes at the cost of future learning capacity. Knowledge entropy decay serves as a measurable proxy for this loss of plasticity. Future work in model training should explore methods that maintain a diverse and active internal memory distribution, ensuring that LLMs remain capable of lifelong learning without sacrificing their foundational knowledge.
Summary updated