mlsanityData to 7 Oct 2026

Neural Knowledge Bank for Pretrained Transformers

arXiv 2208.00399 ↗First posted 31 Jul 2022cs.CL cs.AIcited by 16

Not on the map. Why?

Abstract (arXiv)

The ability of pretrained Transformers to remember factual knowledge is essential but still limited for existing models. Inspired by existing work that regards Feed-Forward Networks (FFNs) in Transformers as key-value memories, we design a Neural Knowledge Bank (NKB) and a knowledge injection strategy to introduce extra factual knowledge for pretrained Transformers. The NKB is in the form of additional knowledgeable memory slots to the FFN and the memory-like architecture makes it highly interpretable and flexible. When injecting extra knowledge with the Salient Span Masking (SSM) pretraining objective, we fix the original pretrained model and train only the NKB. This training strategy makes sure the general language modeling ability of the original pretrained model is not influenced. By mounting the NKB onto the T5 model, we verify its strong ability to store extra factual knowledge based on three closed-book question answering datasets. Also, we prove that mounting the NKB will not degrade the general language modeling ability of T5 through two representative tasks, summarization and machine translation. Further, we thoroughly analyze the interpretability of the NKB and reveal the meaning of its keys and values in a human-readable way. Finally, we show the flexibility of the NKB by directly modifying its value vectors to update the factual knowledge stored in it.

Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). Builds on 32 of its 39 references that are in the map. First posted on arXiv 31 Jul 2022.

Builds on

32 of 39 references.

References · 32

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  5. 2016Gaussian Error Linear Units (GELUs)cited by 3,431
  6. 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
  7. 2019Language Models as Knowledge Bases?cited by 1,922
  8. 2018A Call for Clarity in Reporting BLEU Scorescited by 1,790
  9. 2017Decoupled Weight Decay Regularizationcited by 1,722
  10. 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,308
  11. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
  12. 2019How Can We Know What Language Models Know?cited by 953
20 more
  1. 2018Adafactor: Adaptive Learning Rates with Sublinear Memory Costcited by 896
  2. 2017Reading Wikipedia to Answer Open-Domain Questionscited by 777
  3. 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 713
  4. 2019Latent Retrieval for Weakly Supervised Open Domain Question Answeringcited by 691
  5. 2019Unified Language Model Pre-training for Natural Language Understanding and Generationcited by 668
  6. 2021Knowledge Neurons in Pretrained Transformerscited by 590
  7. 2019ERNIE: Enhanced Language Representation with Informative Entitiescited by 525
  8. 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 522
  9. 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 411
  10. 2021Measuring and Improving Consistency in Pretrained Language Modelscited by 361
  11. 2019KEPLER: A Unified Model for Knowledge Embedding and Pre-trained Language Representationcited by 356
  12. 2020K-Adapter: Infusing Knowledge into Pre-Trained Models with Adapterscited by 318
  13. 2019K-BERT: Enabling Language Representation with Knowledge Graphcited by 303
  14. 2019Knowledge Enhanced Contextual Word Representationscited by 294
  15. 2019Pay Less Attention with Lightweight and Dynamic Convolutionscited by 211
  16. 2021Knowledgeable or Educated Guess? Revisiting Language Models as Knowledge Basescited by 107
  17. 2019HEAD-QA: A Healthcare Dataset for Complex Reasoningcited by 100
  18. 2019A Discrete Hard EM Approach for Weakly Supervised Question Answeringcited by 78
  19. 2019Knowledge Guided Text Retrieval and Reading for Open Domain Question Answeringcited by 59
  20. 2022Kformer: Knowledge Injection in Transformer Feed-Forward Layerscited by 37

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 8; 2024: 5; 2025: 1; 2026: 2.

16 papers.

Sort:

By area:

  1. 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questionscited by 1,582
  2. 2023Knowledge Editing for Large Language Models: A Surveycited by 189
  3. 2023Trends in Integration of Knowledge and Large Language Models: A Survey and Taxonomy of Methods, Benchmarks, and Applicationscited by 28
  4. 2023Memory Injections: Correcting Multi-Hop Reasoning Failures during Inference in Transformer-Based Language Modelscited by 21
  5. 2024Memory-Space Visual Prompting for Efficient Vision-Language Fine-Tuningcited by 20
  6. 2023Improving Factual Consistency for Knowledge-Grounded Dialogue Systems via Knowledge Enhancement and Alignmentcited by 19
  7. 2023Forgetting before Learning: Utilizing Parametric Arithmetic for Knowledge Updating in Large Language Modelscited by 15
  8. 2024Knowledge Entropy Decay during Language Model Pretraining Hinders New Knowledge Acquisitioncited by 15
  9. 2023Statistical Knowledge Assessment for Large Language Modelscited by 5
  10. 2023Decouple knowledge from parameters for plug-and-play language modelingcited by 3
  11. 2024Stealth edits to large language modelscited by 3
  12. 2024Locating and Extracting Relational Concepts in Large Language Modelscited by 3
4 more
  1. 2025LayerCake: Token-Aware Contrastive Decoding within Large Language Model Layerscited by 3
  2. 2024DIEKAE: Difference Injection for Efficient Knowledge Augmentation and Editing of Large Language Modelscited by 0
  3. 2026The Cost of Knowing: A Resource-Aware Protocol for Benchmarking Hallucination Beyond Static Leaderboardscited by 0
  4. 2026Hallucinations in LLMs: A Lifecycle-Based Survey of Causes, Detection, Mitigation, and Preventioncited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026Mixture of Chapters: Scaling Learnt Memory in Transformers
  2. 2024Does Transformer Interpretability Transfer to RNNs?
  3. 2025Pretraining with hierarchical memories: separating long-tail and common knowledge
  4. 2026Adaptive Loops and Memory in Transformers: Think Harder or Know More?
  5. 2024AttnLRP: Attention-Aware Layer-Wise Relevance Propagation for Transformers
  6. 2024Superposition in Transformers: A Novel Way of Building Mixture of Experts
  7. 2026Loop, Think, & Generalize: Implicit Reasoning in Recurrent-Depth Transformers
  8. 2025Identifying Multi-modal Knowledge Neurons in Pretrained Transformers via Two-stage Filtering