Sparse Memory Finetuning as a Low-Forgetting Alternative to LoRA and Full Finetuning

Prakhar Gupta, Garv Shah, Satyam Goyal, Anirudh Kanchi
5/4/2026
cs.CLcs.LG

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Adapting a pretrained language model to a new task often hurts the general capabilities it already had, a problem known as catastrophic forgetting. Sparse Memory Finetuning (SMF) tries to avoid this by adding key-value memory layers to the model and, on each training step, updating only the small set of memory rows that the current batch reads most heavily. We re-implement SMF on Qwen-2.5-0.5B-Instruct and compare it with LoRA and full finetuning on MedMCQA, a 4-choice medical exam task, using WikiText perplexity and TriviaQA accuracy as forgetting probes. SMF improves MedMCQA by 2.5 percentage points while keeping both forgetting probes within roughly 1 point of the base model, whereas LoRA and full finetuning achieve larger gains but with clear drift on both. We also compare two row-selection rules (KL-divergence and TF-IDF), which balance the two forgetting metrics differently.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{gupta2026sparse,
  title  = {Sparse Memory Finetuning as a Low-Forgetting Alternative to LoRA and Full Finetuning},
  author = {Prakhar Gupta and Garv Shah and Satyam Goyal and Anirudh Kanchi},
  year   = {2026},
  eprint = {2605.03229},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.03229v1}
}

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/2605.03229.svg)](https://codeofpaper.com/paper/2605.03229)

Discussion