Lune

EMNLP Findings2020

Large Product Key Memory for Pre-trained Language Models

Gyuwan Kim, Tae-Hwan Jung

Abstract

Product key memory (PKM) proposed by Lample et al. (2019) enables to improve prediction accuracy by increasing model capacity efficiently with insignificant computational overhead.However, their empirical application is only limited to causal language modeling.Motivated by the recent success of pretrained language models (PLMs), we investigate how to incorporate large PKM into PLMs that can be finetuned for a wide variety of downstream NLP tasks.We define a new memory usage metric, and careful observation using this metric reveals that most memory slots remain outdated during the training of PKMaugmented models.To train better PLMs by tackling this issue, we propose simple but effective solutions: (1) initialization from the model weights pretrained without memory and (2) augmenting PKM by addition rather than replacing a feed-forward network.We verify that both of them are crucial for the pretraining of PKM-augmented PLMs, enhancing memory utilization and downstream performance.Code and pretrained weights are available at https://github.com/clovaai/pkm-transformers.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • UltraMemV2: Memory Networks Scaling to 120B Parameters with Superior Long-Context Learning cites Ultra-Sparse Memory Network
  • Ultra-Sparse Memory Network cites Language Models are Few-Shot Learners
  • Retrieval Augmented Language Model Pre-Training cites Generalization through Memorization: Nearest Neighbor Language Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. UltraMemV2: Memory Networks Scaling to 120B Parameters with Superior Long-Context LearningZihao Huang, Yu Bao, Qiyang Min, Siyan Chen et al.ICLR 2026 · 6 citations
  2. Ultra-Sparse Memory NetworkZihao Huang, Qiyang Min, Hongzhi Huang, Yutao Zeng et al.ICLR 2025
  3. A Parametric Memory Head for Continual Generative RetrievalKidist Amde Mekonnen, Yubao Tang, Maarten de RijkeSIGIR 2026

Builds on6

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Retrieval Augmented Language Model Pre-TrainingKelvin Guu, Kenton Lee, Zora Tung, Panupong Pasupat et al.ICML 2020 · 2,937 citations
  3. Generalization through Memorization: Nearest Neighbor Language ModelsUrvashi Khandelwal, Omer Levy, Dan Jurafsky, Luke Zettlemoyer et al.ICLR 2020 · 1,038 citations
  4. Compressive Transformers for Long-Range Sequence ModellingJack W. Rae, Anna Potapenko, Siddhant M. Jayakumar, Chloe Hillier et al.ICLR 2020 · 833 citations
  5. Entities as Experts: Sparse Memory Access with Entity SupervisionThibault Févry, Livio Baldini Soares, Nicholas FitzGerald, Eunsol Choi et al.EMNLP 2020 · 39 citations

Related papers

  1. Decouple knowledge from paramters for plug-and-play language modelingXin Cheng, Yankai Lin, Xiuying Chen, Dongyan Zhao et al.ACL Findings 2023 · 4 citations
  2. G-MAP: General Memory-Augmented Pre-trained Language Model for Domain TasksZhongwei Wan, Yichun Yin, Wei Zhang, Jiaxin Shi et al.EMNLP 2022 · 2 citations
  3. Enhancing Elusive Clues in Knowledge Learning by Contrasting Attention of Language ModelsJian Gao, Xiao Zhang, Miao Li, Ji WuAAAI 2025 · 1 citation
  4. Memory Layers at ScaleVincent-Pierre Berges, Barlas Oguz, Daniel Haziza, Wen-tau Yih et al.ICML 2025
  5. MLP Memory: A Retriever-Pretrained Memory for Large Language ModelsRubin Wei, Jiaqi Cao, Jiarui Wang, Jushi Kai et al.ICLR 2026 · 16 citations
Dusk over the sea between two cliffs drawn in fine vertical lines