MemoryPrompt: A Light Wrapper to Improve Context Tracking in Pre-trained Language Models
Abstract
MemoryPrompt enhances transformer-based language models by using an auxiliary recurrent network to track contextual information without full finetuning, outperforming larger models in specific tasks and avoiding catastrophic forgetting.
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.
Community
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Memory Decoder: A Pretrained, Plug-and-Play Memory for Large Language Models (2025)
- MLP Memory: Language Modeling with Retriever-pretrained External Memory (2025)
- Revisiting Replay and Gradient Alignment for Continual Pre-Training of Large Language Models (2025)
- Conflict-Aware Soft Prompting for Retrieval-Augmented Generation (2025)
- Textual Inversion for Efficient Adaptation of Open-Vocabulary Object Detectors Without Forgetting (2025)
- TiMoE: Time-Aware Mixture of Language Experts (2025)
- SelfAug: Mitigating Catastrophic Forgetting in Retrieval-Augmented Generation via Distribution Self-Alignment (2025)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment:
@librarian-bot
recommend
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper