Larimar: Large Language Models with Episodic Memory Control

Payel Das, Subhajit Chaudhury, Elliot Nelson, Igor Melnyk, Sarath Swaminathan +7 more
2/12/2026

No official code found. Best implementation: IBM/larimar (35 stars, Apache-2.0, last commit 2025-09-18).

Abstract

Efficient and accurate updating of knowledge stored in Large Language Models (LLMs) is one of the most pressing research challenges today. This paper presents Larimar - a novel, brain-inspired architecture for enhancing LLMs with a distributed episodic memory. Larimar's memory allows for dynamic, one-shot updates of knowledge without the need for computationally expensive re-training or fine-tuning. Experimental results on multiple fact editing benchmarks demonstrate that Larimar attains accuracy comparable to most competitive baselines, even in the challenging sequential editing setup, but also excels in speed - yielding speed-ups of 8-10x depending on the base LLM - as well as flexibility due to the proposed architecture being simple, LLM-agnostic, and hence general. We further provide mechanisms for selective fact forgetting, information leakage prevention, and input context length generalization with Larimar and show their effectiveness. Our code is available at https://github.com/IBM/larimar

View on arXivView PDF

Code Implementations(1)

IBM/larimarCommunity100%
Apache-2.0

Code for ICML 2024 paper

351Shell, PythonJun 3, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{das2026larimar,
  title  = {Larimar: Large Language Models with Episodic Memory Control},
  author = {Payel Das and Subhajit Chaudhury and Elliot Nelson and Igor Melnyk and Sarath Swaminathan and Sihui Dai and Aurélie C. Lozano and Georgios Kollias and Vijil Chenthamarakshan and Jirí Navrátil and Soham Dan and Pin-Yu Chen},
  year   = {2026},
  eprint = {2403.11901},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2403.11901},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.11901.svg)](https://codeofpaper.com/paper/2403.11901)

Discussion