EngramEdit: Decoupled Knowledge Updates in LLMs through Conditional Memory
Abstract
Conditional memory architectures such as DeepSeek Engram use input n-grams to look up learned embeddings, expanding the capacity of large language models (LLMs) with limited additional computation. Beyond model scaling, this architecture has demonstrated the potential to decouple factual knowledge storage from general-purpose computation, offering a promising route to updating factual knowledge while keeping the Transformer backbone fixed. Realizing this potential is challenging because different expressions of a fact may activate different n-gram embeddings, while updating shared embeddings can unintentionally change the model's predictions about other facts. We propose EngramEdit for decoupled knowledge updates through conditional memory. EngramEdit first computes target memory representations that make the model predict the updated fact across multiple expressions. It then jointly updates the shared n-gram embeddings to match these targets across expressions and edits, penalizing updates to frequently reused embeddings more strongly to preserve unrelated knowledge. Experiments show that EngramEdit enables independent factual knowledge updates through conditional memory, achieving near-perfect editing success. Revised knowledge is usable across unseen expressions and in multi-hop reasoning, with nearly three times the strongest baseline's accuracy under chain-of-thought (CoT) prompting. Unrelated knowledge and general capabilities are largely preserved even as factual updates accumulate. These findings show that EngramEdit turns conditional memory into an editable knowledge interface, extending its role beyond model scaling to support decoupled knowledge updates.
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
- FactorEngram: Factorized N-gram Memory with Basis-Level Gating for Language Models (2026)
- When to Adapt: Conditional Memory Adapters for Retention-Preserving Domain Specialization (2026)
- RPMem: Learning Long-Term Recurrent Parametric Memory Across Sessions for LLM Agents (2026)
- Improving Atomic-Fact Recall via Focused Views in Unstructured Knowledge Editing (2026)
- MoME: Mixture-of-Memory Embeddings for Context-Aware Sparse Lookup (2026)
- Towards Evolving Context Parameterization for Large Language Models (2026)
- Frozen Memory Is Not Enough: Rethinking External Memory as Extraction (2026)
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
Get this paper in your agent:
hf papers read 2610.10533 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 3
ModalityDance/EngramEdit-LongCat-Flash-Lite-zsRE-2K
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper