arXiv:2610.17659cs.AIOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.17659

Can Agents Truly Forget? Explore Machine Unlearning for LLM Agents

Junkai Lin, Ge Xu, Zheng Xu, Junkai Chen, Xiangyuan Lan

Abstract

Large language model (LLM) agents have shown strong capabilities in interactive problem solving, tool use, and long-horizon task execution. However, they may also acquire sensitive or private knowledge during training and expose it during deployment. Retraining a model from scratch to remove such knowledge is prohibitively costly, making machine unlearning a more practical approach. Machine unlearning aims to remove targeted undesirable knowledge from trained models without retraining from scratch while preserving general utility. When language models are deployed as agents, parameter-level unlearning becomes insufficient: forgotten information may still persist in memory artifacts or be reacquired via tool calls. In this paper, we formulate the problem of agent unlearning as removing private information from an LLM-based agent across three information channels: parametric knowledge, persistent memory, and tool-call acquisition. To study this problem, we introduce we introduce Agent Unlearning Benchmark (AUBench), a controlled benchmark that extends the fictitious-author setting of TOFU into an agent environment with persistent memory, an offline web snapshot, tool-accessible documents, and provenance-tracked interaction trajectories. By evaluating existing parameter-level and memory-level unlearning methods in this setting, AUBench reveals the gap between model-level forgetting and system-level agent unlearning, and provides a foundation for developing unlearning methods that operate across the full lifecycle of LLM agents.

1 Introduction

Large language models (LLMs) are increasingly deployed not only as passive text generation systems but also as autonomous agents capable of planning, maintaining persistent memory, invoking external tools, and interacting with complex environments (Yao et al., 2022; Park et al., 2023; Packer et al., 2023; Schick et al., 2023). These capabilities substantially expand utility, but they also change how information enters, persists within, and influences an AI system.

However, agents may also acquire sensitive or private knowledge during training and expose it during deployment (Carlini et al., 2021). Persistent memory and access to external tools create additional pathways through which such information may persist or resurface (Packer et al., 2023; Wang et al., 2026; Shao et al., 2024). Privacy requirements, data deletion requests, and copyright concerns make the removal of specific information increasingly important (Bourtoule et al., 2021; Eldan and Russinovich, 2023). Retraining the underlying model from scratch to remove knowledge encoded in its parameters is prohibitively costly, making machine unlearning a more practical approach (Yao and Xu, 2024).

Machine unlearning studies how the influence of designated training data can be removed from a learned model without requiring complete retraining (Bourtoule et al., 2021). Given a forget set and a retain set, the objective is to produce an unlearned model whose behavior approaches that of an ideal model trained without the forget data while preserving performance on retained knowledge (Ginart et al., 2019; Maini et al., 2024).

Existing unlearning methods primarily focus on information encoded in model parameters (Thudi et al., 2022; Liu et al., 2022; Zhang et al., 2024a; Fan et al., 2026; Maini et al., 2024). This model-centric formulation becomes incomplete for LLM agents, whose future behavior depends on multiple coupled components through which information may persist or be reacquired (Lewis et al., 2020; Packer et al., 2023; Yao et al., 2022). Accordingly, agent unlearning must address three coupled pathways: parametric knowledge encoded in model weights; persistent memory retaining interaction records, summaries, or retrieval embeddings after model updates; and tool-call acquisition through policies that actively seek targeted information from external resources. Removing information from a single component does not necessarily eliminate its influence on the overall agent (Wang et al., 2026): an agent may stop answering a sensitive question directly while still retrieving the same information from memory or reacquiring it through tools.

Additionally, existing evaluations mainly assess residual knowledge through output extraction and privacy attacks (Maini et al., 2024; Shi et al., 2025). Such evaluation must distinguish effective forgetting from indiscriminate refusal (Lynch et al., 2025; Deeb and Roger, 2024). An agent can reduce privacy leakage by refusing all requests related to a subject or disabling its tools, yet such behavior may substantially damage legitimate capabilities. Effective agent unlearning should preserve the ability to answer questions about retained knowledge, retrieve public information, and complete authorized tool-based tasks. Moreover, evaluating forgetting across LLM agent pathways requires environmental control that existing benchmarks do not provide (Maini et al., 2024; Shi et al., 2025; Li et al., 2024). Open-web experiments face changing search results, unknown locations of private information, and incomplete fact provenance. These limitations make it difficult to attribute failures to residual parametric knowledge, persistent memory, or tool-mediated reacquisition.

To address these challenges, we introduce AUBench, a benchmark for evaluating unlearning across the information lifecycle of LLM agents. AUBench provides a controlled offline environment containing synthetic subjects, public and private facts, persistent memories, synthetic web documents, searchable indexes, and tool-interaction trajectories. Synthetic subjects reduce privacy and pretraining-contamination risks, while the offline environment enables reproducible tool observations across methods. AUBench further provides fact-level provenance for failure attribution, a retain-only oracle constructed under matched conditions to assess forgetting and retained utility, and adaptive evaluations beyond exact queries and fixed tool interfaces. Our main contributions are summarized as follows:

• We formulate Agent Unlearning as eliminating the influence of designated sensitive information across three pathways: parametric knowledge, persistent memory, and tool-call acquisition.

• We introduce AUBench, a controlled benchmark with synthetic subjects, an offline web snapshot, persistent memory, and tool-call trajectories, supported by fact-level provenance and a full-agent retain-only oracle.

• We evaluate major unlearning methods on privacy leakage, retain utility, authorized tool use, robustness to adaptive attacks, and counterfactual behavioral equivalence, identifying their strengths and limitations to guide future research.

References (19)