atlas

Research map / Large language models / Retrieval and knowledge

Larimar: Large Language Models with Episodic Memory Control

ICML 2024 · Large language models › Retrieval and knowledge · approach: Knowledge editing in LLMs · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Larimar augments LLMs (GPT-2 Large and GPT-J-6B decoders) with a hierarchical, Kanerva-machine-style episodic memory that is updated in one shot via pseudo-inverse least-squares writes, enabling fast training-free knowledge editing, selective forgetting, leakage prevention, and long-context recall.

Problem

Efficiently and accurately updating factual knowledge in LLMs without expensive retraining or fine-tuning, while supporting sequential editing, forgetting, and long-context generalization.

Approach

Couple a fast-writing, distributed generative episodic memory (Generative Pseudo-inverse Memory / Kanerva Machine style) to an LLM decoder via a learned projection into a KV cache; edits are written in one shot by least-squares pseudo-inverse updates, with no gradient steps on edits, and forgetting is done by writing with negative weight.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add 2 rephrases to memory (ablation)Larimar-6B · CounterFact single fact editingParaphrase S: 88.4 to 93.6Helped
Remove the scope detector (ablation)Larimar-6B · CounterFact single fact editingNeighborhood: 80.4 -> 13.7Hurt
Remove the memory module (ablation)Larimar-6B · CounterFact single fact editingEdit Success S: 99.6 -> 15.8Hurt
Add 2 rephrases to memory (ablation)Larimar-6B · ZsRE single fact editingParaphrase: 70.4% to 82.2%Helped
Use Larimar rather than GRACEsequential editing · ZsREEdit Retention Rate: 0.93 -> 0.97Helped
Use Larimar rather than SERACsequential editing · sequential fact editingERR: ERR=0.31; ERR=0.98Helped
Increase batch edits from 512 to 1024Larimar-6B · CounterFact batch editingrewrite accuracy: near 100% ... 82%Hurt
Write additional paraphrases to memory (ablation)Larimar · CounterFact single fact editingParaphrase S: 88.4 to 93.6Helped
Use Larimar-1.3B instead of Mistral-7B (3-shot)long-context fact recall · FastFacts, 256 factsrecall rate: 0.42 -> 0.86Helped
Use the scope detector (ablation)Larimar-6B · CounterFact single fact editingNeighborhood: 13.7 -> 80.4Helped

Surprising findings

Limitations

Experimental setup

Datasets: WikiText CounterFact ZsRE CNN Fast Facts EasyEdit

Benchmarks: CounterFact ZsRE FastFacts

Metrics: edit success paraphrase accuracy neighborhood specificity edit retention rate F1 wall clock time recall attack success rate

Baselines: ROME MEMIT MEND GRACE IKE FT SERAC Supersizing Transformer

Builds on: Kanerva Machine Generative Pseudo-inverse Memory ROME GRACE

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy