cs.MAApr 1, 2026

Secure Forgetting: A Framework for Privacy-Driven Unlearning in Large Language Model (LLM)-Based Agents

Authors: Dayong Ye, Tainqing Zhu, Congcong Zhu, Feng He, Qi He, Shang Wang, Bo Liu, Wanlei Zhou

Abstract

Large language model (LLM)-based agents have recently gained considerable attention due to the powerful reasoning capabilities of LLMs. Existing research predominantly focuses on enhancing the task performance of these agents in diverse scenarios. However, as LLM-based agents become increasingly integrated into real-world applications, significant concerns emerge regarding their accumulation of sensitive or outdated knowledge. Addressing these concerns requires the development of mechanisms that allow agents to selectively forget previously learned knowledge, giving rise to a new term LLM-based agent unlearning. This paper initiates research on unlearning in LLM-based agents. Specifically, we propose a novel and comprehensive framework that categorizes unlearning scenarios into three contexts: state unlearning (forgetting specific states or items), trajectory unlearning (forgetting sequences of actions) and environment unlearning (forgetting entire environments or categories of tasks). Within this framework, we introduce a natural language-based unlearning method that trains a conversion model to transform high-level unlearning requests into actionable unlearning prompts, guiding agents through a controlled forgetting process. Moreover, to evaluate the robustness of the proposed framework, we introduce an unlearning inference adversary capable of crafting prompts, querying agents, and observing their behaviors in an attempt to infer the forgotten knowledge. Experimental results show that our approach effectively enables agents to forget targeted knowledge while preserving performance on untargeted tasks, and prevents the adversary from inferring the forgotten knowledge.

Figures & tables

Explore similar work

CardsList
  1. Can Agents Truly Forget? Explore Machine Unlearning for LLM Agents

    Oct 13, 2026Junkai Lin, Ge Xu, Zheng Xu +2Machine UnlearningLLM Unlearning

  2. Trajectory Unlearning on LLM-based Agents

    Sep 27, 2026Yingdan Shi, Ren WangLong-Horizon Agent TasksLLM Unlearning

  3. Forgotten in Weights, Recovered by Tools: Agentic Tool Unlearning for LLM Agents

    Aug 21, 2026Baicheng Chen, Zheyuan Liu, Jingyu Zhang +4LLM Unlearning