MemoryPrompt: A Light Wrapper to Improve Context Tracking in Pre-trained Language Models
Not on the map. Why?
Abstract (arXiv)
Transformer-based language models (LMs) track contextual information through large, hard-coded input windows. We introduce MemoryPrompt, a leaner approach in which the LM is complemented by a small auxiliary recurrent network that passes information to the LM by prefixing its regular input with a sequence of vectors, akin to soft prompts, without requiring LM finetuning. Tested on a task designed to probe a LM's ability to keep track of multiple fact updates, a MemoryPrompt-augmented LM outperforms much larger LMs that have access to the full input history. We also test MemoryPrompt on a long-distance dialogue dataset, where its performance is comparable to that of a model conditioned on the entire conversation history. In both experiments we also observe that, unlike full-finetuning approaches, MemoryPrompt does not suffer from catastrophic forgetting when adapted to new tasks, thus not disrupting the generalist capabilities of the underlying LM.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 15 of its 25 references that are in the map. First posted on arXiv 23 Feb 2024.
Builds on
15 of 25 references.
References · 15
- 2017Attention Is All You Needcited by 59,932
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
- 2021Measuring and Improving Consistency in Pretrained Language Modelscited by 361
- 2021Factual Probing Is [MASK]: Learning vs. Learning to Recallcited by 291
- 2021Beyond Goldfish Memory: Long-Term Open-Domain Conversationcited by 266
- 2022Block-Recurrent Transformerscited by 107
3 more
- 2023Scaling Transformer to 1M tokens and beyond with RMTcited by 97
- 2023Neurons in Large Language Models: Dead, N-gram, Positionalcited by 88
- 2015Inferring Algorithmic Patterns with Stack-Augmented Recurrent Netscited by 76
Built on by
Citing papers per year: 2025: 1.
1 paper.
- 2025M+: Extending MemoryLLM with Scalable Long-Term Memorycited by 51
- 2025M+: Extending MemoryLLM with Scalable Long-Term Memory1 Feb 2025