NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Surprise, Episodic Context, and Catastrophic Forgetting in LLM Fine-Tuning: An Empirical Study

Zied B Houidi, Alexis Huet, Alberto Eusebio, Francesco Mantovani, Dario Rossi

NeurIPS page · Open on the map

Category: LLM Reasoning, Memory & RAG › Knowledge Representation and Reasoning in Transformers · Type: empirical study · Keywords: catastrophic forgetting, episodic context, surprise, LLM fine-tuning, knowledge retention, habit transfer

Areas: LLM Reasoning › Efficient Reasoning › Memory and Forgetting; Memory › Agent Memory Systems › Memory Augmentation; Continual Learning & Adaptation › Catastrophic Forgetting and Unlearning › Catastrophic Forgetting

Summary

We empirically study how surprise and episodic context affect catastrophic forgetting in LLM fine-tuning, finding that contextualizing updates preserves original knowledge and mitigates harmful habit transfer.

Explained to a 5-year-old

We study how big computer brain models remember things when we teach them new facts. Sometimes the new facts make the old ones disappear, especially when the new facts are surprising. If we tell the model when the new fact happened (give it a time context), it keeps both old and new facts. This helps stop the model from forgetting things it already knew. The study shows that adding context is like a shield protecting memory.

Explained to a 5-year-old, longer

We look at how big computer brain models, like ChatGPT, learn new information while keeping what they already know. When we teach them something new that is very surprising, they sometimes forget the old facts completely. This forgetting can spread to other topics that have nothing to do with the new fact. To help them remember, we can give them a little story about when the new fact happened, like a time stamp. When we add this time context, the model seems to keep two copies of the information: one for the old way and one for the new way. This way, the old knowledge stays safe even after learning something new. The study also found that when a surprising fact is learned, the model sometimes starts answering unrelated questions with code, which is a weird side effect. This side effect becomes much more common as the surprise gets bigger. By using context, we can reduce this weird behavior and protect the model's memory. The researchers built many small learning sets that test different levels of surprise across facts, ethics, and coding. They checked the models on a big test set that includes many different kinds of questions. The results show that adding context is a simple trick that can make models more reliable and safer to use.

For a technical reader

The paper investigates how surprise and episodic context during supervised fine-tuning affect catastrophic forgetting in large language models. Using 15 curated update datasets that vary in surprise across facts, ethics, and code, they evaluate models on a held-out cross-domain sentinel set of 1.8 M judgments. They find that without explicit temporal context, high-surprise updates overwrite target memories and damage unrelated knowledge, sometimes causing near-complete factual collapse and cross-domain spill-over. Adding a temporal frame to each update creates two coexisting traces, preserving original knowledge and rescuing unrelated knowledge. The study also identifies habit transfer, where overwriting a related fact induces transferable response patterns on unrelated prompts, such as code bleeding rising from 4% to 73% with surprise.

Problem

How does surprise and lack of context during supervised fine-tuning cause catastrophic forgetting and harmful knowledge transfer in large language models?

Method

We construct multiple update datasets with varying surprise levels and pair each update with or without an explicit temporal context, then evaluate models on a held-out cross-domain test set to measure forgetting and habit transfer.

Results

Without context, high-surprise updates cause near-complete factual collapse and cross-domain damage, while contextualizing updates preserves original knowledge and reduces harm; habit transfer such as code bleeding increases from 4% to 73% with surprise.

Contributions

We provide an empirical characterization of how surprise and episodic context influence catastrophic forgetting and habit transfer in LLMs, revealing context as a protective shield and highlighting the risk of cross-domain knowledge loss.

Practical relevance

The findings suggest a practical direction for safer post-training by contextualizing high-surprise updates, which can help maintain model reliability and reduce harmful knowledge loss.

Research questions this paper is counted under

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