NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Does Machine Unlearning Truly Remove Model Knowledge? A Framework for Auditing Unlearning in LLMs

Haokun Chen, Yueqi Zhang, Yuan Bi, Yao Zhang, Tong Liu, Jinhe Bi, Jian Lan, Jindong Gu, Claudia Grosser, Denis Krompass, Nassir Navab, Volker Tresp · OpenReview

Abstract

In recent years, Large Language Models (LLMs) have achieved remarkable advancements, drawing significant attention from the research community. Their capabilities are largely attributed to large-scale architectures, which require extensive training on massive datasets. However, such datasets often contain sensitive or copyrighted content sourced from the public internet, raising concerns about data privacy and ownership. Regulatory frameworks, such as the General Data Protection Regulation (GDPR), grant individuals the right to request the removal of such sensitive information. This has motivated the development of machine unlearning algorithms that aim to remove specific knowledge from models without the need for costly retraining. Despite these advancements, evaluating the efficacy of unlearning algorithms remains a challenge due to the inherent complexity and generative nature of LLMs. In this work, we introduce a comprehensive auditing framework for unlearning evaluation, comprising three benchmark datasets, six unlearning algorithms, and five prompt-based auditing methods. By using various auditing algorithms, we evaluate the effectiveness and robustness of different unlearning strategies. To explore alternatives beyond prompt-based auditing, we propose a novel technique that leverages intermediate activation perturbations, addressing the limitations of auditing methods that rely solely on model inputs and outputs.

Introduction

As Large Language Models (LLMs) are trained on massive scrapes of the public internet, they inevitably ingest personally identifiable information (PII) and copyrighted material. Regulations like the GDPR grant individuals the "right to be forgotten," requiring developers to remove specific data. Since retraining a model like Llama-3 every time a deletion request arrives is computationally prohibitive, researchers use "approximate unlearning" to nudge the model into forgetting specific facts.

However, the community lacks a standardized way to verify if this knowledge is actually removed or merely suppressed. If a model is simply trained to say "I don't know" when asked about sensitive content, but a clever "jailbreak-style" prompt can still force it to reveal that content, the unlearning has failed. This research seeks to quantify that gap through a rigorous auditing framework.

Auditing Framework and Methodology

The authors developed a multi-layered evaluation framework consisting of three core components:

  1. Unlearning Algorithms: Six popular methods were tested, including Gradient Ascent (GA), Rejection Tuning (RT), Direct Preference Optimization (DPO), and Negative Preference Optimization (NPO).
  2. Auditing Strategies: Five prompt-based "attacks" were employed to bypass unlearning, such as AOA (Absolutely Obedient Agent) and adversarial suffix optimization methods like GCG and SoftGCG.
  3. ActPert (Activation Perturbation-based Auditing): This is the paper's primary technical contribution. Instead of relying solely on text prompts, ActPert injects random noise into the token embeddings of the "sensitive" target during inference. By calculating the difference in internal activations between original and noisy inputs, the researchers create a "steering direction" that helps the model bypass its refusal training and reveal residual knowledge.

Experimental Setup

The framework utilizes three distinct benchmarks:

  • WHP (Who is Harry Potter?): Targets world-famous copyrighted fiction knowledge.
  • TOFU (Task of Fictitious Unlearning): Uses a synthetic dataset of 200 fictitious author biographies, allowing for exact ground truth comparison.
  • RWKU (Real-World Knowledge Unlearning): Targets real-world public figures to test factual knowledge absorbed during massive pre-training.

Key Insights and Results

The study reveals that unlearning is often just "refusal" in disguise. Many algorithms do not erase weights; they instead train the model to prioritize a refusal response. Auditing methods like AOA are highly effective at stripping away this thin layer of refusal.

Table 1: Comparison of unlearning performance across different auditing methods using ROUGE-L and Exact Match metrics.

A consistent gap was found between "baseline" unlearning performance and "audited" performance. On the RWKU benchmark, models that appeared to have forgotten facts saw their ROUGE-L scores jump significantly when audited with ActPert or AOA. ActPert proved to be a formidable auditor, often matching or exceeding the performance of state-of-the-art adversarial prompt attacks while being more computationally efficient.

Table 2: ROUGE-L scores for various unlearning algorithms under different auditing strategies, including adversarial attacks like GCG and SoftGCG.

Furthermore, knowledge learned during the initial pre-training phase (RWKU/WHP) is significantly harder to remove than knowledge added during a later fine-tuning stage (TOFU). Preference-based methods like DPO and NPO were found to be more robust than simple Rejection Tuning because they teach the model to provide plausible alternative (but incorrect) answers, making detection harder for auditors.

Conclusion

The findings suggest that current unlearning techniques are often superficial, leaving residual knowledge in the model's internal activations. True unlearning may require architectural or weight-level changes rather than just output-level alignment. Future work should focus on "pre-training aware" unlearning methods that can reach deeper into the foundational layers of a model where the most stubborn knowledge resides.

Summary updated

BibTeX
@inproceedings{chen2025does,
  author = {Haokun Chen and Yueqi Zhang and Yuan Bi and Yao Zhang and Tong Liu and Jinhe Bi and Jian Lan and Jindong Gu and Claudia Grosser and Denis Krompass and Nassir Navab and Volker Tresp},
  title = {{Does Machine Unlearning Truly Remove Model Knowledge? A Framework for Auditing Unlearning in LLMs}},
  booktitle = {Lock-LLM @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=lp3vhna4uN},
}
Figure