paper-with-me

홈 › Papers

Memorization and Knowledge Injection in Gated LLMs

2025-04-30 · Xu Pan, Ely Hahami, Zechen Zhang, Haim Sompolinsky

Large Language Models (LLMs) currently struggle to sequentially add new memories and integrate new knowledge. These limitations contrast with the human ability to continuously learn from new experiences and acquire knowledge throughout life. Most existing approaches add memories either through large context windows or external memory buffers (e.g., Retrieval-Augmented Generation), and studies on knowledge injection rarely test scenarios resembling everyday life events. In this work, we introduce a continual learning framework, Memory Embedded in Gated LLMs (MEGa), which injects event memories directly into the weights of LLMs. Each memory is stored in a dedicated set of gated low-rank weights. During inference, a gating mechanism activates relevant memory weights by matching query embeddings to stored memory embeddings. This enables the model to both recall entire memories and answer related questions. On two datasets - fictional characters and Wikipedia events - MEGa outperforms baseline approaches in mitigating catastrophic forgetting. Our model draws inspiration from the complementary memory system of the human brain.

📄 PDF Abstract BibTeX arXiv:2504.21239

Code (1)

xup5/MEGA 공식 구현

Tasks

Continual LearningMemorizationRetrieval-augmented Generation

Methods 이 논문이 사용한 방법론

SET Dynamic Sparse Training method where weight mask is updated randomly periodically

Similar Papers 제목 키워드 기반

SPARQL Query Generation with LLMs: Measuring the Impact of Training Data Memorization and Knowledge Injection

2025-07-18 · Aleksandr Gashkov, Aleksandr Perevalov, Maria Eltsova, Andreas Both arxiv

Nowadays, the importance of software with natural-language user interfaces cannot be underestimated. In particular, in Question Answering (QA) systems, generating a SPARQL query for a given natural-language question (oft…

Question AnsweringKnowledge Graphs

Bidirectional LMs are Better Knowledge Memorizers? A Benchmark for Real-world Knowledge Injection

2025-05-18 · Yuwei Zhang, Wenhao Yu, Shangbin Feng, Yifan Zhu 외

Despite significant advances in large language models (LLMs), their knowledge memorization capabilities remain underexplored, due to the lack of standardized and high-quality test ground. In this paper, we introduce a no…

MemorizationWorld Knowledge

Rote Learning Considered Useful: Generalizing over Memorized Data in LLMs

2025-07-29 · Qinyuan Wu, Soumi Das, Mahsa Amani, Bishwamittra Ghosh 외 arxiv

Rote learning is a memorization technique based on repetition. Many researchers argue that rote learning hinders generalization because it encourages verbatim memorization rather than deeper understanding. This concern e…

GSS: Gated Subspace Steering for Selective Memorization Mitigation in LLMs

2026-02-09 · Xuanqi Zhang, Haoyang Shang, Xiaoxiao Li arxiv

Large language models (LLMs) can memorize and reproduce training sequences verbatim -- a tendency that undermines both generalization and privacy. Existing mitigation methods apply interventions uniformly, degrading perf…

Scaling Laws for Fact Memorization of Large Language Models

2024-06-22 · Xingyu Lu, Xiaonan Li, Qinyuan Cheng, Kai Ding 외

Fact knowledge memorization is crucial for Large Language Models (LLM) to generate factual and reliable responses. However, the behaviors of LLM fact memorization remain under-explored. In this paper, we analyze the scal…

Memorization