Unlearning Isn't Invisible: Detecting Unlearning Traces in LLMs from Model Outputs

Yiwei Chen, Soumyadeep Pal, Yimeng Zhang, Qing Qu, Sijia Liu
6/16/2025
cs.LG

No official code found. Best implementation: OPTML-Group/Unlearn-Trace (24 stars, MIT, last commit 2026-04-08).

Abstract

Machine unlearning (MU) for large language models (LLMs), commonly referred to as LLM unlearning, seeks to remove specific undesirable data or knowledge from a trained model, while maintaining its performance on standard tasks. While unlearning plays a vital role in protecting data privacy, enforcing copyright, and mitigating sociotechnical harms in LLMs, we identify a new vulnerability post-unlearning: unlearning trace detection. We discover that unlearning leaves behind persistent ''fingerprints'' in LLMs, detectable traces in both model behavior and internal representations. These traces can be identified from output responses, even when prompted with forget-irrelevant inputs. Specifically, even a simple supervised classifier can determine whether a model has undergone unlearning, using only its prediction logits or even its textual outputs. Further analysis shows that these traces are embedded in intermediate activations and propagate nonlinearly to the final layer, forming low-dimensional, learnable manifolds in activation space. Through extensive experiments, we demonstrate that unlearning traces can be detected with over 90% accuracy even under forget-irrelevant inputs, and that larger LLMs exhibit stronger detectability. These findings reveal that unlearning leaves measurable signatures, introducing a new risk of reverse-engineering forgotten information when a model is identified as unlearned, given an input query.

View on arXivView PDF

Code Implementations(1)

MIT

[ICLR26] Unlearning Isn't Invisible: Detecting Unlearning Traces in LLMs from Model Outputs

243PythonJun 15, 20256 months agoMIT
large-language-modelllmmachine-learningmachine-unlearningtrustworthy-ai

Similar Papers

Cite this paper

@article{chen2025unlearning,
  title  = {Unlearning Isn't Invisible: Detecting Unlearning Traces in LLMs from Model Outputs},
  author = {Yiwei Chen and Soumyadeep Pal and Yimeng Zhang and Qing Qu and Sijia Liu},
  year   = {2025},
  eprint = {2506.14003},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.14003v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.14003.svg)](https://codeofpaper.com/paper/2506.14003)

Discussion