paper-with-me

Papers

User as Engram: Internalizing Per-User Memory as Local Parametric Edits

2026-06-17 · Bojie Li arxiv

Personal memory in a language model is two problems: content and reasoning skill. The brain keeps the two apart (a sparse, local engram in the hippocampus for each episode, a slow neocortex for the shared skills that interpret it), so a new fact need not overwrite everything else. Most personalization today keeps a user's facts outside the weights, in a natural-language memory file or a retrieval index. When facts are written into the model instead, the standard recipe is the per-user LoRA adapter, which does the opposite of the brain, folding content and skill into one global weight delta. Writing a user's facts as a LoRA contaminates text unrelated to them; writing the same facts as local Engram rows leaves it mathematically untouched, resulting in a roughly 33,000x smaller memory footprint. We therefore propose User as Engram: store a user's content as surgical edits to the hash-keyed memory table of an Engram model, and carry the reasoning skill in one shared adapter. This layered design matches per-user LoRA's direct recall while delivering 5.6x higher indirect-reasoning accuracy on average, and never makes a single user worse at reasoning than the untouched base. The edit is a glass box: writing a fact switches on its lookup at exactly the trigger, adds the value the answer needs, leaves every other position unchanged to the last bit, and fails if written into the wrong layer. Because different users' facts land in disjoint hash slots, their edits compose: many users live in one shared table at once, stacking additively and losslessly, where a per-user LoRA, a single global weight delta, admits only one. Upon retrieval, a per-user Engram table does not grow with the population the retriever must search, so past ~100 facts it overtakes a retrieval pipeline on a 2.5x larger model.

📄 PDF Abstract BibTeX arXiv:2606.19172

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Models

2026-01-12 · Xin Cheng, Wangding Zeng, Damai Dai, Qinyu Chen 외 arxiv

While Mixture-of-Experts (MoE) scales capacity via conditional computation, Transformers lack a native primitive for knowledge lookup, forcing them to inefficiently simulate retrieval through computation. To address this…

TF-Engram: A Train-Free Engram with SSD-Backed Memory for Large Language Models

2026-07-08 · Yutang Ma, Kecheng Huang, Xikun Jiang, Zili Shao arxiv

Large Language Models (LLMs) store factual knowledge and domain-specific patterns implicitly in dense Transformer parameters, making knowledge expansion costly through pretraining, fine-tuning, retrieval augmentation, or…

Memory Grafting: Scaling Language Model Pre-training via Offline Conditional Memory

2026-05-20 · Runxi Cheng, Yuchen Guan, Yongxian Wei, Qianpu Sun 외 arxiv

Scaling conditional memory offers a promising way to increase language-model capacity, but existing methods such as Engram learn large memory tables from scratch during pre-training, making memory scaling expensive and s…

Does Engram Do Memory Retrieval in Autoregressive Image Generation?

2026-05-13 · Jinghao Wang, Qiyuan He, Chunbin Gu, Pheng-Ann Heng arxiv

The Engram module -- a hash-keyed, O(1) associative memory injected into Transformer layers -- was recently shown to improve large language model pretraining, with the appealing interpretation that it provides a content-…

Image Generation

Engram Memory Encoding and Retrieval: A Neurocomputational Perspective

2025-06-02 · Daniel Szelogowski

Despite substantial research into the biological basis of memory, the precise mechanisms by which experiences are encoded, stored, and retrieved in the brain remain incompletely understood. A growing body of evidence sup…

Retrieval