Forgotten in Weights, Recovered by Tools: Agentic Tool Unlearning for LLM Agents
This paper introduces Agentic Tool Unlearning (ATU), a two-stage framework that combines parametric knowledge suppression with trajectory-level reinforcement learning to prevent large language model agents from recovering forgotten information through external tools while preserving their utility for retained knowledge.
Original paper dedicated to the public domain under CC0 1.0 (http://creativecommons.org/publicdomain/zero/1.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Large language models are the engines behind many modern digital assistants, capable of generating text, answering questions, and holding conversations. For years, researchers have focused on teaching these models to "forget" specific information, such as private data or copyrighted stories, by adjusting the internal settings that store knowledge. This process, known as machine unlearning, aims to remove the influence of certain facts so the model can no longer recall them. However, a new complication has emerged as these models evolve from simple text generators into active agents. These agents do not rely solely on their internal memory; they can reach out to the outside world, using tools like web search engines or databases to find answers in real time. This shift creates a loophole: even if a model has successfully forgotten a fact internally, it might still retrieve that same fact from the internet and present it as its own answer, effectively bypassing the forgetting process.
A team of researchers has identified this specific failure mode, which they call "tool-mediated recovery," and developed a new method to close the gap. In their study, they demonstrated that standard techniques for unlearning knowledge are insufficient when the model is deployed as an agent with access to external tools. They found that while a model might appear to have forgotten a piece of information when tested in isolation, it could easily recover that information once allowed to search the web or look up data in a database. To solve this, the researchers proposed a two-stage training framework. The first stage performs the traditional work of suppressing the internal memory of the unwanted information. The second stage is more complex; it trains the model in a simulated environment where it acts as an agent, learning to recognize when a search or tool call would lead to the forbidden information and choosing instead to stop or provide a safe, non-revealing response.
The researchers tested this approach on real-world scenarios involving famous people and copyrighted books. In one set of experiments, they measured how often an unlearned model would accidentally reveal a forgotten fact. When the model was used as a standard text generator without tools, it successfully avoided the information. However, once the same model was given access to search tools, its ability to hide the information collapsed, and it began revealing the forgotten facts at a much higher rate. For instance, on a test involving public figures, the rate of accidental disclosure jumped from a low level in isolation to a high level when tools were enabled. This confirmed that the tools themselves were acting as a recovery channel, allowing the model to reconstruct knowledge it was supposed to have deleted.
To address this, the researchers applied their two-stage method. After the initial internal unlearning, they subjected the model to the second stage of training, where it practiced interacting with tools in a controlled setting. During this phase, the model was rewarded for avoiding the forbidden information even when the tools provided it, and penalized for trying to use the tools to find that specific data. The results showed that this additional training significantly reduced the model's ability to recover the forgotten information through tools. In the tests on public figures, the method reduced the rate of accidental disclosure by a substantial margin compared to models that only underwent the first stage of unlearning. Similarly, in tests involving copyrighted book content, the method prevented the model from using local databases to retrieve the hidden text.
Crucially, the researchers ensured that this new method did not break the model's ability to function normally. They verified that the model could still use tools effectively for tasks that did not involve the forbidden information, such as looking up general facts or performing calculations. The training did not force the model to refuse all tool use or become unhelpful; it simply taught the model to draw a line, knowing when to stop searching to protect specific sensitive data. The study suggests that for unlearning to be truly effective in the modern era of intelligent agents, it must account for how these agents interact with the world, not just how they store data internally. By training the model to resist the temptation of using tools to recover deleted knowledge, the researchers have created a more robust way to ensure that forgotten information stays forgotten, even in a connected digital environment.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.