Do LLMs Forget What They Should? Evaluating In-Context Forgetting in Large Language Models

Yuli Qian, Zechuan Yang, Wenbiao Ding, Hongzhi Li, Yutao XieICLR 2026

While we have spent years making Large Language Models (LLMs) better at remembering, we have largely neglected their ability to "un-learn" on the fly. A new benchmark, ICF-Bench, evaluates In-Context Forgetting (ICF), revealing that even the most advanced models struggle to ignore outdated or discarded information during a conversation. Strikingly, a model’s ability to remember information has almost no correlation with its ability to selectively forget it.

The Problem: Letting Go of the Past

As LLM context windows expand to hundreds of thousands of tokens, models are increasingly used for complex, multi-turn interactions like virtual assistants or coding partners. In these scenarios, users frequently change their minds, revise subtasks, or ask the model to "ignore previous instructions" for privacy or relevance.

While "Machine Unlearning" (removing data from model weights) is well-studied, In-Context Forgetting—the ability to selectively discard interference during inference without updating parameters—is poorly understood. If a model cannot "let go" of a discarded preference or an old instruction, it becomes less reliable, potentially leaks private data, and fails to adapt to dynamic user needs.

Methodology: Measuring Forgetting

Researchers formalized ICF as the ability to suppress "interference information" while retaining "useful knowledge." To evaluate this, they developed a framework using two task forms for every sample:

  1. NoForget: A baseline where the model just needs to remember and use provided information.
  2. Forget: The same scenario, but with an added instruction to discard or update specific parts of that information.
Overview of the ICF-Bench framework, illustrating the multi-session setup and evaluation protocols.

To accurately measure this, the authors introduced a novel core metric: Selective Forgetting Retention Rate (SFRR). Unlike standard accuracy, SFRR specifically measures the proportion of originally correct responses that remain correct after forgetting interference is introduced. This isolates the "forgetting" capability from the model's general intelligence.

The study evaluated 11 state-of-the-art models, including open-source heavyweights (Llama-3, Qwen2.5, Mistral) and proprietary systems (GPT-4o, GPT-O3mini, and a version referred to as GPT-5).

ICF-Bench: Three Realistic Scenarios

The authors created ICF-Bench, a dataset of 2,000 multi-turn dialogues annotated for three realistic scenarios. To simulate real-world "noise," they interleaved these tasks with unrelated conversational turns from the LMSYS-Chat-1M dataset.

Examples of the three realistic forgetting scenarios evaluated in ICF-Bench.
  • Instructional Forgetting: Explicit commands to erase specific facts (e.g., "Forget my friend's favorite color"). Derived from ChatAlpaca.
  • Subtask Revision: Modifying or removing parts of a complex multi-task instruction. Derived from FollowBench.
  • Dynamic Preference: Updating user tastes mid-conversation (e.g., "I don't like Author X anymore"). Derived from PrefEval.

Key Insights and Results

  • The Memory-Forgetting Asymmetry: You might assume a model with a "great memory" would be better at managing that memory, including forgetting. The data says no. Strong performance in the NoForget task does not guarantee strong ICF capacity. Some models with near-perfect memory retention collapsed to near-zero accuracy when told to forget a single fact.
  • Performance Collapse: Even top-tier models struggle. GPT-5 (as tested in the paper) achieved 88.75% accuracy in memory tasks but dropped to 64.83% when interference was introduced. Open-source models fared worse: Llama3-8B saw a catastrophic decline, falling from 69.85% to just 22.78% accuracy under forgetting conditions.
  • Instructional Forgetting is the Hardest: Models are surprisingly stubborn. When told explicitly to "forget X," they often suffer from "anchoring bias," where the initial information is so deeply embedded in the context that the model cannot stop itself from using it. For example, Qwen2.5-7B had an SFRR of only 0.23% in this scenario, meaning it almost never successfully ignored information it was told to forget.
  • Context Length is a Double-Edged Sword: In Instructional Forgetting, longer contexts make it harder to forget because the interference persists. However, in Subtask Revision, longer contexts actually help. The authors suggest "attention decay" caused by distance makes it easier for the model to ignore old, distant instructions in favor of new ones.
  • Prompt Engineering Helps: Simply adding a reminder like "You need to pay attention to forgotten instructions" significantly boosts the model's ability to let go, suggesting that current ICF failures are partly due to how models are prompted to prioritize context.

Future Directions

While ICF-Bench currently focuses on dialogue-based scenarios, the authors suggest that future benchmarks should expand to multi-document reasoning (forgetting specific facts across massive document sets) and tool-augmented pipelines (ensuring models do not call tools based on outdated parameters). Ultimately, moving beyond prompting to investigate "forgetting gates" or attention-level modulation could give LLMs a more reliable, human-like ability to prune their own working memory.

Summary updated

BibTeX
@inproceedings{qian2026do,
  author = {Yuli Qian and Zechuan Yang and Wenbiao Ding and Hongzhi Li and Yutao Xie},
  title = {{Do LLMs Forget What They Should? Evaluating In-Context Forgetting in Large Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=hcJywRYc3n},
}
Figure