Do LLMs Forget What They Should? Evaluating In-Context Forgetting in Large Language Models
Yuli Qian, Zechuan Yang, Wenbiao Ding, Hongzhi Li, Yutao Xie
Abstract
Large Language Models (LLMs) have been extensively studied for their memory ability, yet the capacity to selectively forget during inference remains underexplored. We introduce ICF-Bench, a comprehensive benchmark for evaluating In-Context Forgetting (ICF). We define ICF as the ability of LLMs to selectively forget interference information while retaining useful knowledge in context without parameter updates. Built on high-quality datasets, ICF-Bench comprises 2k multi-turn dialogues with annotations that reflect realistic scenarios. Extensive experiments of advanced LLMs on ICF-Bench reveal that: (1) models perform well without forgetting interference but struggle significantly when interference is present; (2) stronger memory capacity without forgetting interference does not transfer into stronger ICF capacity, highlighting an asymmetry between memory and ICF; and (3) context length has different effects on ICF capacity across scenarios. These findings expose critical vulnerabilities of current LLMs in terms of privacy protection, adaptability, and user autonomy. Our code and data will be available at https://anonymous.4open.science/r/ICF-Bench-B1C7.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
Lineage
Builds on14
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- LMSYS-Chat-1M: A Large-Scale Real-World LLM Conversation DatasetLianmin Zheng, Wei-Lin Chiang, Ying Sheng, Tianle Li et al.ICLR 2024 · 419 citations
- In-Context Unlearning: Language Models as Few-Shot UnlearnersMartin Pawelczyk, Seth Neel, Himabindu LakkarajuICML 2024 · 217 citations
- LongBench: A Bilingual, Multitask Benchmark for Long Context UnderstandingYushi Bai, Xin Lv, Jiajie Zhang, Hongchang Lyu et al.ACL 2024 · 94 citations
- Selective Forgetting: Advancing Machine Unlearning Techniques and Evaluation in Language ModelsLingzhi Wang, Xingshan Zeng, Jinsong Guo, Kam-Fai Wong et al.AAAI 2025 · 43 citations
Related papers
- Evaluating Memory in LLM Agents via Incremental Multi-Turn InteractionsYuanzhe Hu, Yu Wang, Julian McAuleyICLR 2026 · 246 citations
- LastingBench: Defend Benchmarks Against Knowledge LeakageYixiong Fang, Tianran Sun, Yuling Shi, Min Wang et al.EMNLP Findings 2025 · 1 citation
- 100-LongBench: Are de facto Long-Context Benchmarks Literally Evaluating Long-Context Ability?Wang Yang, Hongye Jin, Shaochen Zhong, Song Jiang et al.ACL Findings 2025
- PersistBench: When Should Long-Term Memories Be Forgotten by LLMs?Sidharth Pulipaka, Oliver Chen, Manas Sharma, Taaha Saleem Bajwa et al.ICML 2026
- CIMemories: A Compositional Benchmark For Contextual Integrity In LLMsNiloofar Mireshghallah, Neal Mangaokar, Narine Kokhlikyan, Arman Zharmagambetov et al.ICLR 2026 · 10 citations
