mlsanityData to 14 Oct 2026

The Effect of Masking Strategies on Knowledge Retention by Language Models

arXiv 2306.07185 ↗First posted 12 Jun 2023cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Language models retain a significant amount of world knowledge from their pre-training stage. This allows knowledgeable models to be applied to knowledge-intensive tasks prevalent in information retrieval, such as ranking or question answering. Understanding how and which factual information is acquired by our models is necessary to build responsible models. However, limited work has been done to understand the effect of pre-training tasks on the amount of knowledge captured and forgotten by language models during pre-training. Building a better understanding of knowledge acquisition is the goal of this paper. Therefore, we utilize a selection of pre-training tasks to infuse knowledge into our model. In the following steps, we test the model's knowledge retention by measuring its ability to answer factual questions. Our experiments show that masking entities and principled masking of correlated spans based on pointwise mutual information lead to more factual knowledge being retained than masking random tokens. Our findings demonstrate that, like the ability to perform a task, the (factual) knowledge acquired from being trained on that task is forgotten when a model is trained to perform another task (catastrophic forgetting) and how to prevent this phenomenon. To foster reproducibility, the code, as well as the data used in this paper, are openly available.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 27 of its 32 references that are in the map. First posted on arXiv 12 Jun 2023.

Builds on

27 of 32 references.

References · 27

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  3. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  4. 2016Overcoming catastrophic forgetting in neural networkscited by 4,787
  5. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
  6. 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,141
  7. 2019Language Models as Knowledge Bases?cited by 1,936
  8. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
  9. 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,059
  10. 2019SpanBERT: Improving Pre-training by Representing and Predicting Spanscited by 834
  11. 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 719
  12. 2021Knowledge Neurons in Pretrained Transformerscited by 601
15 more
  1. 2020KILT: a Benchmark for Knowledge Intensive Language Taskscited by 573
  2. 2019ERNIE: Enhanced Language Representation with Informative Entitiescited by 528
  3. 2014New insights and perspectives on the natural gradient methodcited by 443
  4. 2019KG-BERT: BERT for Knowledge Graph Completioncited by 324
  5. 2018Analysis Methods in Neural Language Processing: A Surveycited by 277
  6. 2020On the Stability of Fine-tuning BERT: Misconceptions, Explanations, and Strong Baselinescited by 255
  7. 2021PAQ: 65 Million Probably-Asked Questions and What You Can Do With Themcited by 200
  8. 2021Towards Continual Knowledge Learning of Language Modelscited by 174
  9. 2020PMI-Masking: Principled masking of correlated spanscited by 54
  10. 2021BERTnesia: Investigating the capture and forgetting of knowledge in BERTcited by 40
  11. 2020Investigating Transferability in Pretrained Language Modelscited by 28
  12. 2021Elastic Weight Consolidation (EWC): Nuts and Boltscited by 23
  13. 2020Investigating Catastrophic Forgetting During Continual Training for Neural Machine Translationcited by 17
  14. 2021On the Influence of Masking Policies in Intermediate Pre-trainingcited by 12
  15. 2019Multi-task Learning and Catastrophic Forgetting in Continual Reinforcement Learningcited by 5

Built on by

Not cited yet.