Skip to main content
QUICK REVIEW

[Paper Review] Retentive or Forgetful? Diving into the Knowledge Memorizing Mechanism of Language Models

Boxi Cao, Qiaoyu Tang|arXiv (Cornell University)|May 16, 2023
Topic ModelingComputer Science3 citations
TL;DR

This paper investigates the memorization dynamics of language models by comparing vanilla (non-pretrained) and pre-trained models during incremental learning of factual knowledge. It finds that vanilla models exhibit catastrophic forgetting, while pre-training transforms them into retentive systems; knowledge relevance and diversification are key factors in stable memory formation.

ABSTRACT

Memory is one of the most essential cognitive functions serving as a repository of world knowledge and episodes of activities. In recent years, large-scale pre-trained language models have shown remarkable memorizing ability. On the contrary, vanilla neural networks without pre-training have been long observed suffering from the catastrophic forgetting problem. To investigate such a retentive-forgetful contradiction and understand the memory mechanism of language models, we conduct thorough experiments by controlling the target knowledge types, the learning strategies and the learning schedules. We find that: 1) Vanilla language models are forgetful; 2) Pre-training leads to retentive language models; 3) Knowledge relevance and diversification significantly influence the memory formation. These conclusions are useful for understanding the abilities of pre-trained language models and shed light on designing and evaluating new learning and inference algorithms of language models.

Motivation & Objective

  • Understand the paradox of why pre-trained language models (PLMs) are retentive despite vanilla neural networks suffering from catastrophic forgetting.
  • Investigate how pre-training transforms forgetful models into retentive ones by analyzing memorization dynamics.
  • Identify critical factors influencing memory formation in PLMs, particularly knowledge relevance and diversity.
  • Model and analyze forgetting curves across different knowledge types and learning schedules to uncover patterns in memorization.

Proposed method

  • Controlled experiments using incremental training of factual knowledge across multiple types (e.g., continent, birthplace), with periodic evaluation of memorization retention.
  • Constructed forgetting curves to track knowledge retention over time, measuring performance on previously learned knowledge after new knowledge is introduced.
  • Varied knowledge diversity by mixing and shuffling K knowledge types per training step to test the impact of input diversity on memory stability.
  • Identified memory collapse singularities—sudden drops in performance—by analyzing forgetting curve anomalies and linking them to low-diversity knowledge types.
  • Used empirical analysis to correlate memory collapse frequency and depth with knowledge answer diversity (e.g., continent with only 7 possible answers).
  • Compared forgetting curves under different diversity settings (diversity 1, 2, 4, 8) to validate the hypothesis that higher diversity reduces memory collapse.

Experimental results

Research questions

  • RQ1Do language models follow consistent patterns in knowledge memorization and forgetting over time?
  • RQ2How does pre-training affect the transition from forgetful to retentive memory behavior in language models?
  • RQ3What factors—such as knowledge relevance or diversity—influence the stability and formation of long-term memory in pre-trained language models?
  • RQ4Why do memory collapses occur at specific training steps, and are they linked to the diversity of newly learned knowledge?

Key findings

  • Vanilla language models exhibit catastrophic forgetting, with knowledge rapidly lost after new training, showing short-term memory-like behavior.
  • Pre-training transforms language models into retentive systems, enabling gradual and stable memorization of knowledge across repeated learning.
  • Knowledge relevance significantly influences memorization: more relevant knowledge is retained longer and contributes more to stable memory formation.
  • Knowledge diversification plays a critical role—higher diversity in newly learned knowledge reduces the frequency and depth of memory collapses.
  • Memory collapse events are strongly correlated with low-answer-diversity knowledge types (e.g., continent with only 7 possible answers), indicating a vulnerability to sparse, repetitive inputs.
  • Forgetting curves under high-diversity training settings show faster convergence and fewer, shallower collapses, confirming that diversity stabilizes memory formation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.