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

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Chen, Yiwei, Pal, Soumyadeep, Zhang, Yimeng, Qu, Qing, Liu, Sijia
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866910274364112896
author Chen, Yiwei
Pal, Soumyadeep
Zhang, Yimeng
Qu, Qing
Liu, Sijia
author_facet Chen, Yiwei
Pal, Soumyadeep
Zhang, Yimeng
Qu, Qing
Liu, Sijia
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2506_14003
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Unlearning Isn't Invisible: Detecting Unlearning Traces in LLMs from Model Outputs
Chen, Yiwei
Pal, Soumyadeep
Zhang, Yimeng
Qu, Qing
Liu, Sijia
Machine Learning
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.
title Unlearning Isn't Invisible: Detecting Unlearning Traces in LLMs from Model Outputs
topic Machine Learning
url https://arxiv.org/abs/2506.14003