Explore the research collection
4 entries · Follow this search
- Paper
EngramEdit: Decoupled Knowledge Updates in LLMs through Conditional Memory
EngramEdit turns the n-gram conditional-memory modules of architectures like DeepSeek Engram into an editable knowledge interface, decoupling factual knowledge updates from the Transformer backbone. Conditional memory uses input n-grams to look up learned embeddings; ablations show disabling it collapses factual-knowledge performance (~39% of enabled) while largely preserving in-context understanding and reasoning (~72%), so facts live in the n-gram tables while computation lives in the backbone. The core problem: different phrasings of one fact activate different n-gram embeddings, and editing shared embeddings can corrupt unrelated facts. EngramEdit's procedure: (1) generate multiple expressions of each fact to broaden n-gram coverage; (2) temporarily add a shared learnable perturbation to the memory representations of its expressions and optimize only that perturbation by backpropagating the new-fact prediction loss, yielding a target memory representation per expression (mirroring ROME-style locate-then-edit FFN targeting); (3) jointly solve for updates to the shared n-gram embeddings that match these targets across all expressions and edits, with reuse-based regularization that penalizes large updates to frequently reused (short/frequent) n-gram embeddings more strongly. Results: near-perfect editing success on CounterFact and ZsRE, revised knowledge usable across unseen expressions and in multi-hop reasoning (nearly 3x the strongest baseline's MQuAKE accuracy under chain-of-thought prompting), with unrelated knowledge and general capabilities largely preserved under extended sequential editing. Because only a small subset of n-gram embeddings changes, the edit set is a few-MB overlay that can be swapped per user, enabling continual per-user learning without touching the backbone. Limitation: edits are currently primitive [subject, relation, object] triples only. Code: https://github.com/ModalityDance/EngramEdit
- Paper
Continual Learning via Sparse Memory Finetuning
Replaces one mid-stack FFN with a 1M-slot memory layer (k=32, 4 heads) and finetunes only the top-t slots that are highly accessed on the current batch relative to DCLM pretraining (TF-IDF). On a 1.3B model, TriviaQA 1K fact stream: NaturalQuestions F1 drops 11% vs 89% full finetuning and 71% LoRA at matched target learning; document-stream SimpleQA shows the same Pareto pattern. Naive memory FT and TF-only ranking forget more. No official code on abs.
- Paper
Infinite-Parameter LLMs: Generating and Adapting Weights from Live Data
Infinite-Parameter LLMs' (Hu, Clarke, Zhang, Hernández-Lobato, Cambridge) proposes an architecture where effective model weights are generated from live session data by a compact hypernetwork producing low-rank modulations of a frozen base, with a Bayesian belief updated online. Stored parameters stay fixed while compilable weights are effectively unbounded — a structural alternative to keeping all runtime knowledge in the prompt.
- Paper
Language Models Need Sleep: Learning to Self-Modify and Consolidate Memories
Sleep replaces train/test with wake/sleep: Knowledge Seeding distills a smaller self into newly unlocked lower-frequency CMS/MoE experts (on-policy GKD plus RL imitation), then Dreaming generates SEAL-style self-edits with a random extra expert. Nested Learning Hope backbone. Class-incremental CLINC/Banking/DBpedia; long-context RULER/LongHealth/QASPER; CTNL dual-language translation; BABILong; Qwen3-8B AIME-24 79.2 vs OPSD 76.6; SQuAD incorporation above SEAL; ARC few-shot 80% vs SEAL 72.5. No official code on the abs page.