Retentive or Forgetful? Diving into the Knowledge Memorizing Mechanism of Language Models

Boxi Cao, Qiaoyu Tang, Hongyu Lin, Shanshan Jiang, Bin Dong +4 more
5/16/2023
cs.CLcs.AI

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{cao2023retentive,
  title  = {Retentive or Forgetful? Diving into the Knowledge Memorizing Mechanism of Language Models},
  author = {Boxi Cao and Qiaoyu Tang and Hongyu Lin and Shanshan Jiang and Bin Dong and Xianpei Han and Jiawei Chen and Tianshu Wang and Le Sun},
  year   = {2023},
  eprint = {2305.09144},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.09144v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.09144.svg)](https://codeofpaper.com/paper/2305.09144)

Discussion