Manuscript Offprint

arXiv:2608.29943

On the Recoverability of Private Information Unlearning in Large Language Models

Shicheng Hu, Runzhi Tian, Ziqiao Wang, Yongyi Mao

Abstract

Large language models (LLMs) can memorize sensitive information, raising serious privacy concerns. Machine unlearning offers a potential solution to remove such information, but it remains unclear whether existing methods truly erase it or merely hide it within the model. A key challenge is quantifying the persistence of sensitive data under a unified evaluation framework. To address this, we construct a synthetic dataset containing fake private information and propose a white-box auditing framework to systematically assess whether claimed-forgotten information is genuinely removed. Using this framework, we evaluate five existing unlearning methods and find that a simple “inverse greedy” decoding—selecting the least likely token at each step—can recover supposedly forgotten private information. Our results reveal that current unlearning approaches often fail to fully eliminate sensitive information, highlighting the need for more reliable methods to ensure privacy in deployed LLMs.

Code: https://github.com/rzTian/LLM-Unlearning-Recovery

Project page: https://brunstud.github.io/fpi-unlearning/

1 Introduction

While demonstrating remarkable capabilities across a wide range of tasks (Brown et al., 2020; Kaplan et al., 2020; OpenAI et al., 2024), large language models (LLMs) are prone to memorizing and reproducing copyrighted material verbatim, as well as exposing private or sensitive information contained in their training data (Huang et al., 2022; Zou et al., 2023; Zhang et al., 2021; Ippolito et al., 2023). These risks raise serious safety, ethical, and legal concerns. Developing methods to selectively remove such information while preserving useful capabilities is therefore critical, motivating the study of machine unlearning (Cao & Yang, 2015; Yao et al., 2024).

A growing body of work has proposed unlearning methods tailored to LLMs (Eldan & Russinovich, 2023; Ji et al., 2024; Yao et al., 2024; Zhang et al., 2024; Maini et al., 2024). These methods may serve different purposes. For example, some aim to prevent verbatim reproduction of copyrighted text (Shi et al., 2024), while others focus on removing hazardous knowledge (Li et al., 2024). As a result, evaluation metrics for unlearning algorithms are highly task-specific and vary substantially across benchmarks. Amid this diversity, most existing benchmarks (e.g., Maini et al. (2024); Shi et al. (2024); Li et al. (2024); Jin et al. (2024)) emphasize knowledge unlearning, i.e., erasing specific factual knowledge from models.

∗^{*}Equal contribution, listed in alphabetical order.

†^{\dagger}Work primarily conducted while at the University of Ottawa. The author has since graduated.

This paper focuses on an under-explored area of knowledge unlearning, which we term private information (PI) unlearning. In PI unlearning, one seeks to remove sensitive information about individuals (e.g., addresses, social insurance numbers) memorized by models. The importance of such a task is naturally justified by the need for data privacy, and is advocated by regulations such as the General Data Protection Regulation (GDPR), which grants individuals the “right to be forgotten” and requires that their data be erased from machine learning systems upon request. A central challenge in such tasks is arguably verifying whether the to-be erased private information has genuinely been removed from the model, rather than merely suppressed or hidden. This distinction is critical to ensuring data privacy, preventing leakage, and maintaining trust between data owners and model developers.

Notably, private information (PI) unlearning exhibits fundamentally different characteristics from knowledge unlearning. In knowledge unlearning, the data typically consist of free-form text or open-ended question-answer (QA) pairs, since a single piece of knowledge can be expressed in many valid ways. Consequently, there is often no single ground-truth answer, and evaluation relies on text-similarity metrics such as ROUGE (e.g., Shi et al. (2024); Maini et al. (2024)). In contrast, private information (e.g., social insurance numbers, phone numbers, addresses) is generally structured and uniquely defined. This enables the use of precise, attribute-specific metrics to quantify the extent to which PI remains in a model's outputs.

Moreover, private information corresponding to different individuals—or different types of PI for the same individual—is largely disentangled. One cannot infer person A's social insurance number (SIN) from person B's SIN, nor infer an SIN from a birthday. Factual knowledge, by contrast, is inherently entangled: removing a single fact often affects related information. For instance, knowledge of how to conduct a cyberattack is deeply intertwined with general cybersecurity concepts, and seemingly benign pieces of information may, when combined, enable the reconstruction of harmful knowledge, as shown in Li et al. (2024).

Due to these fundamental differences, existing knowledge-unlearning datasets (e.g., Maini et al. (2024); Shi et al. (2024); Jin et al. (2024); Li et al. (2024)) cannot be directly repurposed to study PI unlearning, nor do prior findings thereof necessarily transfer to PI unlearning. For example, Zhang et al. (2025) showed that in knowledge unlearning, forgotten knowledge can be partially recovered by quantizing the parameters of an unlearned model, effectively restoring erased information on knowledge-unlearning benchmarks. Such vulnerability to quantization however barely transfers to PI unlearning: as we will show later in this paper (Table 6), parameter quantization is not adequate to recover the forgotten information to a significant extent from models unlearned on PI datasets.

Remarkably, this result need not imply that PI unlearning guarantees the irrecoverability of the forgotten PI. In fact we show in this work that the PI claimed to be forgotten during unlearning is still recoverable by directly probing the logits of the unlearned models. This finding highlights that PI unlearning—due to its distinct structural and semantic properties—poses unique challenges that are not captured by existing knowledge-unlearning analyses. Consequently, PI unlearning deserves a dedicated investigation, and conclusions drawn from knowledge unlearning should not be assumed to generalize.

This work is, to our knowledge, the first systematic study of PI unlearning that focuses on the recoverability of PI that is intended to be forgotten. We carry out our investigation in a setting which we refer to as white-box auditing. In this setting, the auditor is given the full knowledge of the unlearning algorithm and the unlearned model; the objective of the auditor is to recover as much as possible the PI that the unlearning algorithm intends to erase. This setting is designed to test whether the information claimed to be forgotten has in fact been erased, or merely concealed. Notably, this white-box auditing framework is of great relevance to practice: for the third-party auditors to assure that the unlearned model has truly erased all PI, they must inspect the internal details of the model; understanding the model behavior only using black-box analysis is arguably far from adequate.

Building on the proposed white-box auditing setting, we focus exclusively on PI unlearning and systematically evaluate existing unlearning methods. Since no publicly available real-world PI-unlearning dataset currently exists — largely because strict privacy regulations (e.g., GDPR, CCPA) prohibit using or releasing real private data — we construct a synthetic dataset tailored for PI unlearning and refer to it as the Fake private information (FPI) dataset. The dataset consists of question-answer pairs, covering four types of private information, namely year of birth, blood type, social insurance number, and postcode. These attributes vary in nature—numerical, categorical, and sequential—allowing a comprehensive evaluation of unlearning methods. To simulate white-box auditing, we train an LLM to memorize the dataset and then designate a subset of private information as the unlearning target. We then apply various unlearning methods to remove this target information, obtaining a collection of unlearned models for auditing. We then investigate whether and to what extent the forgotten information is recoverable.

The synthetic FPI dataset includes clearly defined and controllable private-information fields, which allows the tracking of the ground truth of the information to be forgotten. It enables clean, attribute-specific evaluation metrics, which are essential for rigorous auditing, and also avoids ethical risks associated with handling real human data. This dataset also includes a set of diverse PI types (numeric, categorical, structured sequences), intentional private information entanglement (e.g., groups of individuals sharing last names), which introduces nontrivial correlations that unlearning methods must handle.

To assess whether this information has truly been erased, we design a novel restricted inverse greedy (RIG) decoding strategy. In particular, RIG generates the target information by greedily selecting tokens from a restricted candidate set with the lowest likelihood under the unlearned model's logits. Since many unlearning methods often operate by fine-tuning the model to increase the loss on target examples, the corresponding tokens are displaced into low-probability regions rather than being completely removed. RIG exploits this property by explicitly searching those regions, enabling the recovery of hidden information.

Our experiments reveal that sensitive private information claimed to be erased can, in fact, still be extracted. For example, on the FPI dataset, after applying the gradient-ascent-based unlearning with KL regularization to unlearn a prescribed set of postcode information, the unlearned model typically generates nonsensical outputs with no postcode content when queried directly. However, when we probe the model's logits restricted to postcode-relevant tokens (letters and digits), up to 97% of the supposedly forgotten postcodes can still be recovered by selecting the tokens with the lowest likelihood within this restricted set. Similar phenomena emerge under other unlearning methods, indicating that existing techniques often fail to fully erase sensitive information and highlighting the urgent need for more reliable approaches to safeguard privacy in deployed LLMs.

It is noteworthy that the auditing algorithms used in this work for PI recovery are quite simple and far from optimal. Thus the significant extent of recovery reported in our experiments should be alarming, as the security concerns of these unlearning algorithms revealed in this study are at best an underestimate. It is hence our hope that the white-box auditing framework proposed in this paper inspire further research in this direction, particularly on developing more advanced auditing algorithms. Unlearning algorithms that truly remove private information can only be developed through iterative games with ever stronger auditors.

To keep the main text focused, we defer the discussion of the extensive literature on machine unlearning and LLM unlearning to Appendix A.

References (46)