# Memoir: Let the Model Direct Its Own Story for Robust Cross-Domain Knowledge Editing

*Jea Kwon, Jiwon Kim, Dong Kyum Kim, Meeyoung Cha*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/152387) · [Open on the map](../papers.html#p152387)

Category: [LLM Reasoning, Memory & RAG](../pcat/19.md) › [LLM Knowledge Editing](../pgroup/252.md) · Type: new method · Keywords: knowledge editing, covariance preservation, model internal distribution, cross-domain editing, language model robustness

## Summary
Memoir estimates the preservation covariance directly from the model’s own decoding distribution, enabling more robust cross-domain knowledge editing without external data.

## Explained to a 5-year-old
When we teach a big computer brain new facts, it can forget how to solve math problems. We look at how the brain already talks to itself to find the right information. By listening to the brain’s own words, we can keep its old skills safe. This helps the brain stay smart while learning new things. It works like a special helper that doesn’t need extra books.

## Explained to a 5-year-old, longer
Imagine a big robot brain that never changes after it learns everything. When we try to add a new fact, the robot sometimes forgets how to do math or write code, but it still remembers simple facts. The problem is that the robot’s memory is based on old books, not on how it talks now. The researchers noticed this mismatch and decided to use the robot’s own conversations to understand its current way of thinking. They pick a random word from the robot’s vocabulary and ask it to continue the story, which gives them a sample of how the robot really thinks. By collecting many such samples, they can build a map of the robot’s current knowledge. This map helps them edit the robot without breaking its old skills. The new method works like a special tool that fits into any editing process and doesn’t need any extra data. They tested it on several robot brains and found that after many edits, the robot kept much better at solving math problems compared to using old books. This shows that using the robot’s own voice is a smarter way to keep its abilities intact while learning new things.

## For a technical reader
The paper identifies a mismatch between the static reference corpora used by covariance-based editors and the dynamic distribution of a deployed model after post-training. To address this, the authors sample from the model’s own decoding distribution using a single random token, bypassing instruction templates, and compute the preservation covariance from these samples. This yields a drop-in component that requires no external data and can be plugged into any existing editor. Experiments across OLMo-2, Llama-3.1, and Qwen-3 show substantial gains in retaining reasoning capabilities, e.g., 79.9% GSM8K accuracy after 20k edits versus 10.9% with a Wikipedia baseline.

## Problem
Knowledge editing of frozen language models degrades core capabilities like mathematical and programmatic reasoning while preserving encyclopedic recall, due to a distributional mismatch between the editor’s reference corpus and the model’s post-training distribution.

## Method
The approach samples from the model’s own decoding distribution using a single random vocabulary token to bypass instruction templates, then estimates the preservation covariance from these samples, providing a drop-in component for any covariance-based editor.

## Results
The approach retains 79.9% GSM8K accuracy after 20,000 batch edits on Qwen3-8B, compared to 10.9% with the Wikipedia baseline, and consistently improves preservation across OLMo-2, Llama-3.1, and Qwen-3 under both MEMIT and AlphaEdit.

## Contributions
It introduces a method to estimate preservation covariance directly from the model’s own decoding distribution, eliminating the need for external corpora, and demonstrates significantly better retention of reasoning capabilities during knowledge editing across multiple models and editing regimes.

## Practical relevance
It enables robust, non-destructive knowledge editing for deployed language models without relying on hard-to-obtain external corpora.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/152387)
