Paper deep dive
Textual Unlearning Gives a False Sense of Unlearning
Jiacheng Du, Zhibo Wang, Jie Zhang, Xiaoyi Pang, Jiahui Hu, Kui Ren
Models: GPT-2-1.5b, OPT-1.3b, Pythia-1.4b
Intelligence
Status: succeeded | Model: google/gemini-3.1-flash-lite-preview | Prompt: intel-v1 | Confidence: 97%
Last extracted: 3/12/2026, 6:52:46 PM
Summary
The paper investigates the effectiveness and security of textual unlearning in Language Models (LMs). It introduces U-LiRA+, a rigorous auditing method, and TULA, a suite of leakage attacks (membership inference and data reconstruction). The authors demonstrate that existing textual unlearning methods fail to fully erase data and can inadvertently expose sensitive information, creating a 'false sense of unlearning'.
Entities (4)
Relation Signals (3)
Machine Unlearning ā appliedto ā Language Models
confidence 100% Ā· machine unlearning has emerged as a promising approach for enabling LMs to efficiently 'forget' specific texts
U-LiRA+ ā evaluates ā Machine Unlearning
confidence 95% Ā· U-LiRA+ enables a rigorous evaluation on the erasing effectiveness for existing unlearning methods
TULA ā exploits ā Machine Unlearning
confidence 95% Ā· we conduct an in-depth investigation on the privacy risks of textual unlearning mechanisms in deployment and present the Textual Unlearning Leakage Attack (TULA)
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:Language Models (LMs) are prone to ''memorizing'' training data, including substantial sensitive user information. To mitigate privacy risks and safeguard the right to be forgotten, machine unlearning has emerged as a promising approach for enabling LMs to efficiently ''forget'' specific texts. However, despite the good intentions, is textual unlearning really as effective and reliable as expected? To address the concern, we first propose Unlearning Likelihood Ratio Attack+ (U-LiRA+), a rigorous textual unlearning auditing method, and find that unlearned texts can still be detected with very high confidence after unlearning. Further, we conduct an in-depth investigation on the privacy risks of textual unlearning mechanisms in deployment and present the Textual Unlearning Leakage Attack (TULA), along with its variants in both black- and white-box scenarios. We show that textual unlearning mechanisms could instead reveal more about the unlearned texts, exposing them to significant membership inference and data reconstruction risks. Our findings highlight that existing textual unlearning actually gives a false sense of unlearning, underscoring the need for more robust and secure unlearning mechanisms.
Tags
Links
- Source: https://arxiv.org/abs/2406.13348
- Canonical: https://arxiv.org/abs/2406.13348
Trouble viewing inline? Open PDF directly ā
Full Text
130,021 characters extracted from source content.
Expand or collapse full text
Textual Unlearning Gives a False Sense of Unlearning Jiacheng Du Zhibo Wangā Jie Zhang Xiaoyi Pang Jiahui Hu Kui Ren Abstract Language Models (LMs) are prone to āmemorizingā training data, including substantial sensitive user information. To mitigate privacy risks and safeguard the right to be forgotten, machine unlearning has emerged as a promising approach for enabling LMs to efficiently āforgetā specific texts. However, despite the good intentions, is textual unlearning really as effective and reliable as expected? To address the concern, we first propose Unlearning Likelihood Ratio Attack+ (U-LiRA+), a rigorous textual unlearning auditing method, and find that unlearned texts can still be detected with very high confidence after unlearning. Further, we conduct an in-depth investigation on the privacy risks of textual unlearning mechanisms in deployment and present the Textual Unlearning Leakage Attack (TULA), along with its variants in both black- and white-box scenarios. We show that textual unlearning mechanisms could instead reveal more about the unlearned texts, exposing them to significant membership inference and data reconstruction risks. Our findings highlight that existing textual unlearning actually gives a false sense of unlearning, underscoring the need for more robust and secure unlearning mechanisms. 1 Introduction Figure 1: Textual unlearning gives a false sense of unlearning. Our findings highlight that: (1) the unlearned data could still be detected after unlearning via rigorous auditing. (2) An adversary could instead infer the unlearned data by analyzing the models before and after unlearning. In recent years, language models (LMs) have demonstrated impressive capabilities, driven by extensive training samples. Among them, a significant portion of real-world user data is contained to improve LMs in deployment. For instance, Amazon collects user conversations via smart speakers to enhance command-interaction capabilities (Valinsky, 2019), and OpenAI gathers user inputs to improve ChatGPT (OāFlaherty, 2024). However, user data often contains sensitive information, such as phone numbers and home addresses (Liu et al., 2023). Recent studies have revealed that the training data of LMs can be maliciously inferred or extracted (Mattern et al., 2023; Carlini et al., 2021), raising serious privacy concerns. Besides, the users are entitled to the āRight To Be Forgottenā (Rosen, 2011). Various regulations, such as the General Data Protection Regulation (GDPR, 2018), grant users the right to request a complete deletion of personal data, even when it has already been trained. Addressing these concerns necessitates the mechanisms to āundoā the impact of specific training samples on LMs, safeguarding data security and individual rights. Machine unlearning (MU) aims to erase the impact of specific training samples on a trained model (Bourtoule et al., 2021). There are generally two categories: exact unlearning and inexact unlearning. Exact unlearning directly removes the unlearned samples from the training set and retrains the model on the remaining samples (Bourtoule et al., 2021). While straightforward, this approach is computationally expensive, particularly for LMs with extensive training samples and parameters. Therefore, inexact unlearning methods have attracted much attention, aiming to efficiently approximate the retrained model without retraining from scratch. They typically fine-tune the original model with the unlearned samples and an āinverse learningā objective, such as gradient ascent (Jang et al., 2022). After a few fine-tuning steps, the unlearned model behaves as if it were a retrained model that has not been trained on unlearned data. Despite promising intentions, existing MU methods may be less effective than expected. Recent studies suggest that the traces of the unlearned data, such as membership (Hayes et al., 2024) or adversarial image triggers (Pawelczyk et al., 2024), may not be completely erased after unlearning. Besides, MU methods may reveal extra information about unlearned data. Specifically, comparing models before and after unlearning could further expose the membership (Chen et al., 2021) or visual features (Hu et al., 2024) of the unlearned samples. However, related studies primarily focus on image data, while the vulnerability and privacy risks of textual unlearning on LMs remain under-explored. To fill the gap, we conduct a deep investigation into textual unlearning on LMs. From the first principle, a successful textual unlearning process should at least ensure that the memory of unlearned texts is completely erased from the model and no new privacy risks are further introduced. Thus, we propose two key research questions (RQ): ā ā RQ1: Can textual unlearning really achieve clean erasure? ā ā RQ2: Will textual unlearning backfire and pose new privacy risks? To address RQ1, we introduce a rigorous auditing method called Unlearning Likelihood Ratio Attack+ (U-LiRA+). By auditing the most-vulnerable samples in the training set (Aerni et al., 2024), U-LiRA+ enables a rigorous evaluation on the erasing effectiveness for existing unlearning methods in the worst case. For RQ2, we explore the privacy risks of textual unlearning mechanisms in deployment by developing Textual Unlearning Leakage Attacks (TULA). In the black-box scenarios, we employ TULA for Membership Inference (TULA-MI), which enables an adversary to infer the membership of the unlearned text by querying the models before and after unlearning. In the white-box scenarios, we propose TULA for Data Reconstruction (TULA-DR). With access to model weights, the adversary could effectively reconstruct the unlearned texts via continuous constrained optimization. Through extensive evaluations, our findings critically reveal that textual unlearning actually gives a false sense of unlearning! Existing methods for textual unlearning fail to completely erase unlearned texts, and their deployment will instead introduce heightened privacy risks. Specifically, we highlight the following key findings: ⢠Unlearned texts remain detectable with high confidence on the unlearned LMs. We argue that previous unlearning auditing methods highly overestimate the erasing effectiveness of existing textual unlearning methods. In the worst case, over 70%percent7070\%70 % of unlearned texts can still be correctly inferred after unlearning, with an error rate below 0.1%percent0.10.1\%0.1 %. ⢠The textual unlearning mechanism additionally introduces new risks of leaking membership information on the unlearned texts. By querying the model before and after unlearning, a malicious user can confidently infer the membership of unlearned texts by comparing the model outputs, even when only loss values are available. ⢠The textual unlearning mechanism poses a substantial risk of malicious reconstruction on unlearned texts. With access to model weights before and after unlearning, an adversary could reconstruct unlearned texts with even more than 80%percent8080\%80 % accuracy. Our approaches, along with the concurrent works (Pawelczyk et al., 2024; Hayes et al., 2024; Huang et al., 2024; Shumailov et al., 2024; Hu et al., 2024), highlight the importance of rigorous evaluation for unlearning mechanisms. Prior to widespread deployment, these mechanisms should undergo thorough auditing and analysis to prevent misleading conclusions and potential security risks. 2 Related Works and Preliminaries 2.1 Machine Unlearning Machine unlearning aims to erase the impact of specific training data on a trained model (Bourtoule et al., 2021). There are generally two categories: exact unlearning and inexact unlearning. Exact unlearning methods remove the unlearned samples (uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptD_unlearnDitalic_u n l e a r n) from the training set (DD) and retrain the original model (ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lsubscriptā³M_originalMitalic_o r i g i n a l) on the remaining data (rā¢eā¢mā¢iā¢aā¢nsubscriptD_remianDitalic_r e m i a n) from scratch, which provides the cleanest erase and is considered as the āgold standardā (Bourtoule et al., 2021). However, exact unlearning has a high computational overhead in practice, especially for LMs, given their large training corpus and massive parameters. To improve practicality and efficiency, inexact unlearning methods are proposed to efficiently approximate the retrained model without retraining from scratch. Their basic idea is to fine-tune ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lsubscriptā³M_originalMitalic_o r i g i n a l on the uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptD_unlearnDitalic_u n l e a r n with an āinverse learningā objective. Specifically, Jang et al. propose to fine-tune ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lsubscriptā³M_originalMitalic_o r i g i n a l by Gradient Ascent (GA) based on an intuition that unlearning should be the inverse process of learning (Jang et al., 2022). Later, Chen et al. propose to maximize the Kullback-Leibler divergence of the outputs between ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lsubscriptā³M_originalMitalic_o r i g i n a l and unlearned model (ā³uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptā³M_unlearnMitalic_u n l e a r n) on uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptD_unlearnDitalic_u n l e a r n (Chen & Yang, 2023). Besides, Zhang et al. treat uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptD_unlearnDitalic_u n l e a r n as negative preference samples and transform unlearning to a Negative Preference Optimization (NPO, (Rafailov et al., 2024)) problem on LMs (Zhang et al., 2024b). 2.2 Machine Unlearning Auditing A successful unlearning process should ensure that the ā³uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptā³M_unlearnMitalic_u n l e a r n does not disclose any membership information, indicating that uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptD_unlearnDitalic_u n l e a r n is part of DD. Therefore, Membership Inference Attacks (MIAs) (Shokri et al., 2017) are widely used to audit MU methods (U-MIAs). MIAs aim to determine whether a sample belongs to the training set by analyzing model output discrepancies (e.g., loss values). Consequently, if the adversary cannot confidently distinguish whether a sample originates from the uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptD_unlearnDitalic_u n l e a r n or the unseen dataset uā¢nā¢sā¢eā¢eā¢nsubscriptD_unseenDitalic_u n s e e n (e.g., nearly random guess) on ā³uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptā³M_unlearnMitalic_u n l e a r n, the unlearning process is deemed successful. Existing MU methods mainly use population-based U-MIAs for auditing (Shi et al., 2024), and recent works (Hayes et al., 2024; Pawelczyk et al., 2024) attempt to use per-sample U-MIAs to improve auditing precision. Population-based U-MIAs. Previous studies typically employ simple population-based MIAs to audit MU methods. The general approach involves an adversary selecting K/22K/2K / 2 samples from DD and unlearning them with the audited MU method to obtain ā³uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptā³M_unlearnMitalic_u n l e a r n. Subsequently, K/22K/2K / 2 unseen samples (e.g., holdout data from DD) are randomly chosen to form an auditing set of size K. The adversary then guesses that one of the audited samples x belongs to DD if ā¢(ā³uā¢nā¢lā¢eā¢aā¢rā¢n;x)>Ļsubscriptā³S(M_unlearn;x)> ( Mitalic_u n l e a r n ; x ) > Ļ, where SS is a scoring function (e.g., negative cross-entropy loss) and Ļ is a threshold. If the attack accuracy, typically measured using AUC-ROC (Shokri et al., 2017), is close to 50%, it indicates that the adversary cannot distinguish uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptD_unlearnDitalic_u n l e a r n and uā¢nā¢sā¢eā¢eā¢nsubscriptD_unseenDitalic_u n s e e n on ā³MM, suggesting that the unlearning process has been successful. Per-sample U-MIAs. Per-sample U-MIA (Hayes et al., 2024; Pawelczyk et al., 2024) builds upon the Likelihood Ratio Attack (LiRA) method proposed by Carlini et al. (Carlini et al., 2022), which formulates MIA as a hypothesis testing problem. For an audited sample x, the adversary models the score distributions under the hypotheses that x is a member of uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptD_unlearnDitalic_u n l e a r n, and that x is one of uā¢nā¢sā¢eā¢eā¢nsubscriptD_unseenDitalic_u n s e e n. Given the score of x on ā³uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptā³M_unlearnMitalic_u n l e a r n, the attack then applies a likelihood ratio test to distinguish between the two hypotheses. To estimate the distributions, the adversary trains multiple shadow models (Shokri et al., 2017) by repeatedly sampling an identically distributed auxiliary training set ā²superscriptā²D Dā². For the target x, the adversary trains the unseen shadow model ā³oā¢uā¢tsubscriptā³M_outMitalic_o u t on ā²superscriptā²D Dā², and trains the unlearn shadow model ā³iā¢nsubscriptā³M_inMitalic_i n on xāŖā²x x āŖ Dā² after unlearning x. With a sufficient number of shadow models, the adversary fits two Gaussians ā¢(μx,in,Ļx,in2)subscriptinsuperscriptsubscriptin2N( _x,in, _x,in^2)N ( μitalic_x , in , Ļitalic_x , in2 ) and ā¢(μx,out,Ļx,out2)subscriptoutsuperscriptsubscriptout2N( _x,out, _x,out^2)N ( μitalic_x , out , Ļitalic_x , out2 ) to the scores from ā³iā¢nsubscriptā³M_inMitalic_i n and ā³oā¢uā¢tsubscriptā³M_outMitalic_o u t models on the target sample x. Finally, the adversary applies a standard NeymanāPearson test to determine whether the observed score from the ā³uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptā³M_unlearnMitalic_u n l e a r n is more likely if x is an unlearned or unseen sample: ā¢(ā³uā¢nā¢lā¢eā¢aā¢rā¢n,x):=ā¢(ā¢(ā³uā¢nā¢lā¢eā¢aā¢rā¢n;x)ā£Ī¼x,in,Ļx,in2)ā¢(ā¢(ā³uā¢nā¢lā¢eā¢aā¢rā¢n;x)ā£Ī¼x,out,Ļx,out2).assignsubscriptā³conditionalsubscriptā³subscriptinsuperscriptsubscriptin2conditionalsubscriptā³subscriptoutsuperscriptsubscriptout2A(M_unlearn,x):= N(S(M% _unlearn;x) _x,in, _x,in^2)N% (S(M_unlearn;x) _x,out, _x,% out^2).A ( Mitalic_u n l e a r n , x ) := divide start_ARG N ( S ( Mitalic_u n l e a r n ; x ) ⣠μitalic_x , in , Ļitalic_x , in2 ) end_ARG start_ARG N ( S ( Mitalic_u n l e a r n ; x ) ⣠μitalic_x , out , Ļitalic_x , out2 ) end_ARG . Overall, per-sample U-MIAs provide more precise auditing than population-based methods, since the methods discriminate each sample independently rather than with a global threshold. However, we argue that all the existing auditing methods for unlearning are not rigorous, as they fundamentally fail to properly select the audited samples. 2.3 Privacy Attacks against Machine Unlearning Existing privacy attacks on MU generally follow a basic idea: inferring the privacy of the unlearned data via comparing the models before and after the unlearning process. Based on the adversaryās objective, there are two primary paradigms: MIA and Data Reconstruction Attack (DRA). Chen et al. demonstrate that the MU mechanism can inadvertently reveal membership information about unlearned data (Chen et al., 2021). Specifically, for a target sample x, an adversary randomly selects an identically distributed auxiliary dataset ā²superscriptā²D Dā² and trains two models, ā³ā²oā¢rā¢iā¢gā¢iā¢nā¢aā¢lsubscriptsuperscriptā³ā²M _originalMā²italic_o r i g i n a l and ā³ā²uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptsuperscriptā³ā²M _unlearnMā²italic_u n l e a r n (after unlearning x), on xāŖā²x x āŖ Dā². The adversary queries both models with x, combining their outputs to create the positive feature. For the negative feature, the adversary randomly selects another unseen sample, queries both models, and combines the outputs. By repeating this process multiple times, a dataset of feature pairs is constructed to train a binary classification attack model determining whether x is a member of training data. Hu et al. demonstrate that adversaries can reconstruct an unlearned sample by exploiting the difference in model weights before and after unlearning, Īā¢Īø=ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lāā³uā¢nā¢lā¢eā¢aā¢rā¢nĪsubscriptā³subscriptā³ Īø=M_original-M_unlearnĪ Īø = Mitalic_o r i g i n a l - Mitalic_u n l e a r n (Hu et al., 2024). This approach relies on the assumption that āāsuperscriptā^*āā aligns with the gradient direction of the unlearned sample x on ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lsubscriptā³M_originalMitalic_o r i g i n a l. Specifically, the adversary begins by inferring the label yā² of the unlearned sample using a probing technique. Next, the adversary randomly initializes a dummy sample xā² with the same shape as x and computes the gradient āā²ā āā² of (xā²,yā²) on ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lsubscriptā³M_originalMitalic_o r i g i n a l. By minimizing the cosine similarity between Īā¢ĪøĪ ĪøĪ Īø and āā²ā āā², the adversary iteratively updates xā² until convergence. However, existing studies focus solely on image data, and the potential privacy threats against textual unlearning remain underexplored. 3 Rigorous Auditing on Textual Unlearning Letās go back to the drawing board to rethink the unlearning auditing. The basic idea is to test whether an adversary could confidently distinguish an unlearned sample from an unseen sample through outputs on ā³uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptā³M_unlearnMitalic_u n l e a r n. However, existing auditing methods ignore a crucial and fundamental issue: the proper selection of audited samples. Typically, these methods randomly partition the dataset into unseen data uā¢nā¢sā¢eā¢eā¢nsubscriptD_unseenDitalic_u n s e e n and training data DD. A subset of DD is then randomly selected as unlearned data uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptD_unlearnDitalic_u n l e a r n, while an equal number of unseen and unlearned samples are designated as the audited samples. However, this approach inadvertently causes ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lsubscriptā³M_originalMitalic_o r i g i n a l to exhibit āfalse memoryā, where the model acts as if it had been trained on unseen samples. Such results mainly arise from the modelās ability to generalize, as the audited samples are from the same distribution. Furthermore, the inherent overlap and redundancy among text samples exacerbate such an effect (Duan et al., 2024). The false memory effect leads to considerable overlap between the output distributions of uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptD_unlearnDitalic_u n l e a r n and uā¢nā¢sā¢eā¢eā¢nsubscriptD_unseenDitalic_u n s e e n on ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lsubscriptā³M_originalMitalic_o r i g i n a l, which makes MIA-based auditing methods unable to well distinguish between the samples even before unlearning. This flawed foundation undermines the fairness and rigor of unlearning auditing, as the distinguishability between uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptD_unlearnDitalic_u n l e a r n and uā¢nā¢sā¢eā¢eā¢nsubscriptD_unseenDitalic_u n s e e n could be inherently poor. To conduct rigorous unlearning auditing, it is crucial to utilize audited samples with āzero memoryā, ensuring the model knows nothing about them before being trained. To address this, we propose U-LiRA+, which performs rigorous auditing on unlearning algorithms by additionally constructing and injecting mislabeled samples. Mislabeled samples naturally occur in real-world datasets. For instance, in a sentiment classification task, a text such as āI love this movie so much!ā may be incorrectly labeled as negative instead of positive due to human error. Since mislabeled samples are typically small in number and counterfactual, a normal model cannot generalize to them unless explicitly trained (Aerni et al., 2024). As a result, mislabeled samples are considered as the most vulnerable samples to unlearning, since whether they have been trained makes a significant difference in model outputs. In other words, their presence provides a worst-case scenario, enabling fair and rigorous auditing on the effectiveness of unlearning algorithms. The detailed process of U-LiRA+ is outlined in Algorithm 1. To rigorously audit the unlearning algorithm U, we first sample an audit dataset aā¢uā¢dā¢iā¢tsubscriptD_auditDitalic_a u d i t from the training data distribution and mislabel it. Next, we create a binary mask vector to randomly divide aā¢uā¢dā¢iā¢tsubscriptD_auditDitalic_a u d i t into two equal parts: unlearned samples and unseen samples. We then train a test model MāsuperscriptM^*Mā to evaluate the effectiveness of U. For each audited sample, we generate T groups of shadow models to estimate the distribution of model outputs when the sample is either unlearned or unseen. Subsequently, we query MāsuperscriptM^*Mā with the audited sample and determine which distribution its output corresponds to, predicting whether the sample has been unlearned. Finally, we compute the Tā¢Pā¢Rā¢@ā¢Lā¢oā¢wā¢Fā¢Pā¢R@TPR@LowFPRT P R @ L o w F P R of the predictions against the ground truth mask. If the value is (nearly) zero, the unlearning process is deemed successful. Algorithm 1 U-LiRA+ Args: model ā³MM, mislabel function QQ, learning algorithm A, unlearning algorithm U, number of shadow models T, size of audited set N, logit function Ļitalic-ĻĻĻ. aā¢uā¢dā¢iā¢tā¼Dā¢sample the audit setsimilar-tosubscriptsample the audit setD_audit D the audit setDitalic_a u d i t ā¼ D sample the audit set aā¢uā¢dā¢iā¢tāā¢(aā¢uā¢dā¢iā¢t)ā¢mislabel the audited samplesāsubscriptsubscriptmislabel the audited samplesD_audit (D_audit) % mislabel the audited samplesDitalic_a u d i t ā Q ( Ditalic_a u d i t ) mislabel the audited samples Mā¢aā¢sā¢kāmiā£miā¼Uā¢nā¢iā¢fā¢oā¢rā¢mā¢(0,1),i=1,ā¦,Nāconditional-setsubscriptformulae-sequencesimilar-tosubscript011ā¦Maskā\m_i m_i Uniform(0,1),i=1,ā¦,N\M a s k ā mitalic_i ⣠mitalic_i ā¼ U n i f o r m ( 0 , 1 ) , i = 1 , ⦠, N āā¼Dā¢sample a tested training setsimilar-tosuperscriptsample a tested training setD^* D a tested training setDā ā¼ D sample a tested training set ā³āāAā¢(āāŖMā¢aā¢sā¢kāaā¢uā¢dā¢iā¢t)ā¢inject audited samplesāsuperscriptā³superscriptdirect-productsubscriptinject audited samplesM^*ā A(D^*āŖ Mask _audit)% audited samplesMā ā A ( Dā āŖ M a s k ā Ditalic_a u d i t ) inject audited samples ā³āāUā¢(ā³ā,Mā¢aā¢sā¢kāaā¢uā¢dā¢iā¢t)ā¢unlearn audited samplesāsuperscriptā³superscriptā³direct-productsubscriptunlearn audited samplesM^*ā U(M^*,Mask _audit) % unlearn audited samplesMā ā U ( Mā , M a s k ā Ditalic_a u d i t ) unlearn audited samples Pā¢rā¢eā¢dā¢sāPredsā\\P r e d s ā while nā¤Nn⤠Nn ⤠N do OāOā\\O ā , O^ā Oā\\over start_ARG O end_ARG ā while tā¤Tt⤠Tt ⤠T do ā¼Dā¢sample a shadow training datasetsimilar-tosample a shadow training datasetD D a shadow training datasetD ā¼ D sample a shadow training dataset āāŖ(xn,ynā)ā¢inject a audited sampleāsubscriptsubscriptsuperscriptinject a audited sampleD āŖ(x_n,y^-_n) a % audited sampleD ā D āŖ ( xitalic_n , y-n ) inject a audited sample ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lāAā¢()āsubscriptā³M_originalā A(D)Mitalic_o r i g i n a l ā A ( D ) ā³uā¢nā¢lā¢eā¢aā¢rā¢nāU(ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢l,(xn,ynā)))M_unlearnā U(M_original,(x_n,y_n^-)))Mitalic_u n l e a r n ā U ( Mitalic_o r i g i n a l , ( xitalic_n , yitalic_n- ) ) ) ā³rā¢eā¢tā¢rā¢aā¢iā¢nāAā¢(\(xn,ynā))āsubscriptā³ _retrainā A(D (x_n,y_n^-))Mitalic_r e t r a i n ā A ( D \ ( xitalic_n , yitalic_n- ) ) Oā¢[t]āĻā¢((xn,ynā);ā³uā¢nā¢lā¢eā¢aā¢rā¢n)ādelimited-[]italic-Ļsubscriptsuperscriptsubscriptsubscriptā³O[t]āĻ((x_n,y_n^-);M_unlearn)O [ t ] ā Ļ ( ( xitalic_n , yitalic_n- ) ; Mitalic_u n l e a r n ) O^ā¢[t]āĻā¢((xn,ynā);ā³rā¢eā¢tā¢rā¢aā¢iā¢n)ā^delimited-[]italic-Ļsubscriptsuperscriptsubscriptsubscriptā³ O[t]āĻ((x_n,y_n^-);M_retrain)over start_ARG O end_ARG [ t ] ā Ļ ( ( xitalic_n , yitalic_n- ) ; Mitalic_r e t r a i n ) end while μ,Ļāfit Gaussianā¢(O)āfit Gaussianμ,Ļ Gaussian(O)μ , Ļ ā fit Gaussian ( O ) μ^,Ļ^āfit Gaussianā¢(O^)ā^^fit Gaussian μ, Ļ Gaussian( O)over start_ARG μ end_ARG , over start_ARG Ļ end_ARG ā fit Gaussian ( over start_ARG O end_ARG ) oāĻā¢((xn,ynā);ā³ā)āitalic-Ļsubscriptsuperscriptsubscriptsuperscriptā³oāĻ((x_n,y_n^-);M^*)o ā Ļ ( ( xitalic_n , yitalic_n- ) ; Mā ) pmemberāā¢(o;μ,Ļ2)ā¢(o;μ,Ļ2)+ā¢(o;μ^,Ļ^2)āsubscriptmembersuperscript2superscript2^superscript^2p_memberā N(o;μ,Ļ^2)N(o;% μ,Ļ^2)+N(o; μ, Ļ^2)pmember ā divide start_ARG N ( o ; μ , Ļ2 ) end_ARG start_ARG N ( o ; μ , Ļ2 ) + N ( o ; over start_ARG μ end_ARG , over start_ARG Ļ end_ARG2 ) end_ARG If pmember>12subscriptmember12p_member> 12pmember > divide start_ARG 1 end_ARG start_ARG 2 end_ARG Then Pā¢rā¢eā¢dā¢sā¢[n]ā1ādelimited-[]1Preds[n]ā 1P r e d s [ n ] ā 1 Else Pā¢rā¢eā¢dā¢sā¢[n]ā0ādelimited-[]0Preds[n]ā 0P r e d s [ n ] ā 0 end while Return Tā¢Pā¢Rā¢@ā¢Lā¢oā¢wā¢Fā¢Pā¢RāRā¢Oā¢Cā¢(Pā¢rā¢eā¢dā¢s,Mā¢aā¢sā¢k)ā@TPR@LowFPRā ROC(Preds,Mask)T P R @ L o w F P R ā R O C ( P r e d s , M a s k ) 4 Textual Unlearning Leakage Attacks In this section, we investigate the potential privacy risks of textual unlearning mechanisms in deployment. We propose the Textual Unlearning Leakage Attack (TULA) and its variants in black- and white-box scenarios: TULA for Membership Inference (TULA-MI) and TULA for Data Reconstruction (TULA-DR). 4.1 Problem Statement Figure 2: An overview of Textual Unlearning Leakage Attack (TULA) against ML systems. TULA for Membership Inference (TULA-MI) infers the membership of the unlearned texts by querying the models before and after unlearning. TULA for Data Reconstruction (TULA-DR) reconstructs the unlearned texts using the weight differences between the two models. In an ML system, there are three primary roles: data contributors, the model developer, and beneficiaries (including users and collaborators), as shown in Figure 2. Data contributors provide their private data to the model developer, who utilizes the samples to train a model. Beneficiaries are categorized based on their access to the models. Users can query the model via the developerās API (e.g., ChatGPT (OpenAI, 2023)). In contrast, collaborators, such as organizations contracting with the developer, have full access to the weights and can modify or deploy the model locally. Suppose a contributor requests the developer to delete its private data x. Upon receiving this request, the developer will utilize unlearning algorithms to obtain ā³uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptā³M_unlearnMitalic_u n l e a r n and remove the unlearned x from the database. Subsequently, both the user-oriented API and the weights shared with collaborators will be updated to completely eliminate the contribution of x to the system. However, the unlearning mechanism inevitably creates a new risk, even x are perfectly unlearned: users and collaborators can access both the models before (ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lsubscriptā³M_originalMitalic_o r i g i n a l) and after unlearning (ā³uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptā³M_unlearnMitalic_u n l e a r n), which instead emphasizes the ānon-existenceā of the unlearned sample and opens a new window for inferring x. 4.2 TULA for Membership Inference In this subsection, we introduce TUAL-MI, where a malicious user aims to infer the membership information of unlearned data through black-box model access. Depending on different levels of black-box knowledge, we investigate both strict and relaxed black-box cases to reveal the adversaryās threat boundaries in this scenario. 4.2.1 TULA-MI in Strict Black-Box Case Threat Model. Given a target sample x, a malicious user aims to determine whether x is unlearned data by querying the models before and after unlearning. In a strict black-box scenario, the user inputs x via API and receives only the output score, e.g., loss value āā¢(x,y)āL(x,y)L ( x , y ), quantifying the modelās confidence on x. Such scenarios are common in real-world applications, such as emotion diagnosis systems that output an emotion label along with a confidence score based on dialogues. Besides, the adversary could easily detect the occurrence of unlearning in practice by continuously querying the model with target samples. If the outputs from two consecutive sets of queries change, the adversary could execute the attack to infer whether any samples have been unlearned. The strict black-box case represents the minimal knowledge an adversary can access in practice, thereby indicating the lower bound of potential privacy leakage. Method. Typically, the model yields higher confidence for training samples compared to unseen ones. For example, in terms of loss value, ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lsubscriptā³M_originalMitalic_o r i g i n a l exhibits a lower loss for an unlearned sample, while ā³uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptā³M_unlearnMitalic_u n l e a r n produces a higher one. In contrast, for an unseen sample, both models maintain similarly high loss values. This observation highlights that unlearned samples undergo significant confidences changes before and after unlearning, whereas unseen samples generally do not. Therefore, we propose TULA-MI in the strict case, leveraging confidence variations to infer the membership information of target samples. The adversary evaluates the confidence change of a target sample before and after unlearning using a threshold γ, |ā¢(ā³uā¢nā¢lā¢eā¢aā¢rā¢nā¢(x),y)āā¢(ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lā¢(x),y)|subscriptā³subscriptā³|S(M_unlearn(x),y)-S(M_original(x)% ,y)|| S ( Mitalic_u n l e a r n ( x ) , y ) - S ( Mitalic_o r i g i n a l ( x ) , y ) |. If the change exceeds γ, x is likely to be an unlearned sample. The detailed procedure is outlined in Algorithm 2. Algorithm 2 TULA-MI in the Strict Case Inputs: Black-box models ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lsubscriptā³M_originalMitalic_o r i g i n a l, ā³uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptā³M_unlearnMitalic_u n l e a r n, target sample (x,y)(x,y)( x , y ), score function SS,threshold γ. if |ā¢(ā³uā¢nā¢lā¢eā¢aā¢rā¢nā¢(x),y)āā¢(ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lā¢(x),y)|>γsubscriptā³subscriptā³|S(M_unlearn(x),y)-S(M_original(x)% ,y)|>γ| S ( Mitalic_u n l e a r n ( x ) , y ) - S ( Mitalic_o r i g i n a l ( x ) , y ) | > γ then Return (x,y)(x,y)( x , y ) is an unlearned sample else Return (x,y)(x,y)( x , y ) is an unseen sample end if 4.2.2 TULA-MI in Relaxed Black-Box Case Threat Model. Previous MIAs typically assume a relaxed black-box scenario (Chen et al., 2021; Carlini et al., 2022). Specifically, the adversary could obtain the modelās logits via queries, additionally possess an identically distributed auxiliary dataset, and know the model architecture. This case reflects the maximum knowledge an adversary can obtain in black-box scenarios, thereby indicating the upper bound of potential privacy leakage. Method. In this setting, a powerful adversary should be capable of performing targeted MIA for each sample. Ideally, the adversary determines the membership of x by carefully fitting two distributions to its output features: the distributions when x is an unlearned sample (Duā¢nā¢lā¢eā¢aā¢rā¢nxsubscriptsuperscriptD^x_unlearnDitalic_xitalic_u n l e a r n) or an unseen sample (Duā¢nā¢sā¢eā¢eā¢nxsubscriptsuperscriptD^x_unseenDitalic_xitalic_u n s e e n). To achieve this goal, we decompose the process into three steps: (1) Feature Space Construction: For the target sample x, we construct the feature vector [loā¢rā¢i,luā¢l,loā¢rā¢iāluā¢l]subscriptsubscriptsubscriptsubscript[l_ori,l_ul,l_ori-l_ul][ litalic_o r i , litalic_u l , litalic_o r i - litalic_u l ] based on its logits from models before and after unlearning, denoted as loā¢rā¢isubscriptl_orilitalic_o r i and luā¢lsubscriptl_ullitalic_u l, respectively. The term loā¢rā¢iāluā¢lsubscriptsubscriptl_ori-l_ullitalic_o r i - litalic_u l serves as an augmentation to capture logit changes more effectively. (2) Distribution Estimation: We first sample a training set DD from the auxiliary dataset, train shadow model ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lsubscriptā³M_originalMitalic_o r i g i n a l on āŖxDāŖ xD āŖ x, and obtain ā³uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptā³M_unlearnMitalic_u n l e a r n after unlearning x. The two models are then queried with x to construct the output feature. By repeating this process multiple times, we estimate the Duā¢nā¢lā¢eā¢aā¢rā¢nxsubscriptsuperscriptD^x_unlearnDitalic_xitalic_u n l e a r n for x. For Duā¢nā¢sā¢eā¢eā¢nxsubscriptsuperscriptD^x_unseenDitalic_xitalic_u n s e e n, we sample another training set ā²superscriptā²D Dā² but exclude x, train ā³ā²oā¢rā¢iā¢gā¢iā¢nā¢aā¢lsubscriptsuperscriptā³ā²M _originalMā²italic_o r i g i n a l on DD, and obtain ā³ā²uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptsuperscriptā³ā²M _unlearnMā²italic_u n l e a r n after randomly unlearning a sample xā². Similarly, we can obtain Duā¢nā¢sā¢eā¢eā¢nxsubscriptsuperscriptD^x_unseenDitalic_xitalic_u n s e e n after multiple rounds of sampling and querying. (3) Attack Model Training: Features sampled from the two distributions are labeled as 1111 and 00, respectively. A classifier is then trained to infer the membership of x. The detailed procedure is outlined in Algorithm 4 in Appendix G. 4.3 TULA for Data Reconstruction In this subsection, we introduce TULA-DR, where a malicious collaborator aims to reconstruct the unlearned texts with white-box model access. 4.3.1 Threat Model In the white-box scenario, the adversary has access to the model weights both before (Īøoā¢rā¢iā¢gā¢iā¢nā¢aā¢lsubscript _originalĪøitalic_o r i g i n a l) and after (Īøuā¢nā¢lā¢eā¢aā¢rā¢nsubscript _unlearnĪøitalic_u n l e a r n) unlearning and aims to reconstruct the unlearned samples. Additionally, we assume the adversary knows the unlearning algorithm U employed by the model developer. This assumption could be practical. First, the unlearning algorithm itself is not highly confidential, thereby posing a risk of disclosure (e.g., via a complicit developer). Second, model developers may be obligated to disclose details of the unlearning algorithm, performance, and other relevant information to collaborators to uphold transparency and ensure informed updates regarding model versions. 4.3.2 The Proposed Method Suppose that an unlearned sample consists of text x and label y, where x is a sequence of L tokens (āØtā¢k1,ā¦,tā¢kLā©subscript1ā¦subscript tk_1,ā¦,tk_L ⨠t k1 , ⦠, t kitalic_L ā©) with each tā¢klsubscripttk_lt kitalic_l representing a number in the vocabulary VV, and yāā1ĆCsuperscriptā1y ^1Ć Cy ā blackboard_R1 Ć C corresponds to one of C categories. Intuitively, the adversary randomly selects L tokens from VV and guesses a label c among C categories. The guessed sample is then evaluated by applying the unlearning algorithm U to check whether it enables updating Īøoā¢rā¢iā¢gā¢iā¢nā¢aā¢lsubscript _originalĪøitalic_o r i g i n a l to Īøuā¢nā¢lā¢eā¢aā¢rā¢nsubscript _unlearnĪøitalic_u n l e a r n. However, this approach is computationally infeasible: (1) The text is represented in a large discrete space, making the search challenging. The adversary faces the task of identifying the target unlearned sample from CĆL||superscriptCĆ L^|V|C Ć L| V | candidates, which is practically intractable. (2) The search process is poorly guided, as the weight differences before and after unlearning are not well incorporated. (3) The lack of constraints for effective search. Algorithm 3 TULA-DR Inputs: original weights Īøoā¢rā¢iā¢gā¢iā¢nā¢aā¢lsubscript _originalĪøitalic_o r i g i n a l, unlearned weights Īøuā¢nā¢lā¢eā¢aā¢rā¢nsubscript _unlearnĪøitalic_u n l e a r n, unlearning algorithm U, token embedding dimension ā1Ćdsuperscriptā1R^1Ć dblackboard_R1 Ć d, learning rate α, regularization factor β, the maximum number of iterations N. x^ā¼āLĆd,y^ā¼ā1ĆCā¢candidate random initializationformulae-sequencesimilar-to^superscriptāsimilar-to^superscriptā1candidate random initialization x ^LĆ d, y ^1Ć C % candidate random initializationover start_ARG x end_ARG ā¼ blackboard_RL Ć d , over start_ARG y end_ARG ā¼ blackboard_R1 Ć C candidate random initialization Īā¢ĪøāĪøoā¢rā¢iā¢gā¢iā¢nā¢aā¢lāĪøuā¢nā¢lā¢eā¢aā¢rā¢nāĪsubscriptsubscript Īøā _original- _unlearnĪ Īø ā Īøitalic_o r i g i n a l - Īøitalic_u n l e a r n while not reaching N do āĪøoā¢rā¢iā¢gā¢iā¢nā¢aā¢lU(x^,y^)āāUā¢(Īøoā¢rā¢iā¢gā¢iā¢nā¢aā¢l,(x^,y^))āĪøoā¢rā¢iā¢gā¢iā¢nā¢aā¢lāsubscriptsuperscriptāsubscript^^subscript^^subscriptā^U_ _original( x, y)ā ā U(% _original,( x, y))ā _originalāUitalic_Īø start_POSTSUBSCRIPT o r i g i n a l end_POSTSUBSCRIPT ( over start_ARG x end_ARG , over start_ARG y end_ARG ) ā divide start_ARG ā U ( Īøitalic_o r i g i n a l , ( over start_ARG x end_ARG , over start_ARG y end_ARG ) ) end_ARG start_ARG ā Īøitalic_o r i g i n a l end_ARG ārā¢eā¢cā1āāĪøoriginalU(x^,y^)ā Īā¢ĪøāāĪøoriginalU(x^,y^)ā2ā¢āĪā¢Īøā2āsubscriptā1ā subscriptsuperscriptāsubscriptoriginal^^Īsubscriptnormsubscriptsuperscriptāsubscriptoriginal^^2subscriptnormĪ2L_recā 1- ā^U_ _original( % x, y)Ā· Īø \|ā^U_ _original(% x, y) \|_2 \| Īø \|_2Litalic_r e c ā 1 - divide start_ARG āUitalic_Īø start_POSTSUBSCRIPT original end_POSTSUBSCRIPT ( over start_ARG x end_ARG , over start_ARG y end_ARG ) ā Ī Īø end_ARG start_ARG ā„ āUitalic_Īø start_POSTSUBSCRIPT original end_POSTSUBSCRIPT ( over start_ARG x end_ARG , over start_ARG y end_ARG ) ā„2 ā„ Ī Īø ā„2 end_ARG ārā¢eā¢gā(1nā¢āi=1nāx^iā2ā1ā¢āj=1āejā2)2āsubscriptāsuperscript1superscriptsubscript1subscriptnormsubscript^21superscriptsubscript1subscriptnormsubscript22L_regā ( 1n _i=1^n\| x_i\|_2-% 1V _j=1^V\|e_j\|_2 )^2Litalic_r e g ā ( divide start_ARG 1 end_ARG start_ARG n end_ARG āi = 1n ā„ over start_ARG x end_ARGi ā„2 - divide start_ARG 1 end_ARG start_ARG V end_ARG āj = 1V ā„ eitalic_j ā„2 )2 x^āx^+αā ā(ārā¢eā¢c+βā ārā¢eā¢g)āx^ā^^ā subscriptāā subscriptā xā x+α· ā(L_rec+β% Ā·L_reg)ā xover start_ARG x end_ARG ā over start_ARG x end_ARG + α ā divide start_ARG ā ( Litalic_r e c + β ā Litalic_r e g ) end_ARG start_ARG ā over start_ARG x end_ARG end_ARG y^āy^+αā ā(ārā¢eā¢c+βā ārā¢eā¢g)āy^ā^^ā subscriptāā subscriptā yā y+α· ā(L_rec+β% Ā·L_reg)ā yover start_ARG y end_ARG ā over start_ARG y end_ARG + α ā divide start_ARG ā ( Litalic_r e c + β ā Litalic_r e g ) end_ARG start_ARG ā over start_ARG y end_ARG end_ARG Clip(x^;xlā¢oā¢w,xuā¢p)^subscriptsubscript( x;x_low,x_up)( over start_ARG x end_ARG ; xitalic_l o w , xitalic_u p ) end while Return Decoding(x^,y^)^^( x, y)( over start_ARG x end_ARG , over start_ARG y end_ARG ) Therefore, we propose TULA-DR, a method that efficiently reconstructs unlearned samples by exploiting weight differences before and after unlearning: Candidate Initialization: To address the challenge (1), we reformulate the discrete optimization problem as a continuous one. Specifically, assuming the token embedding dimension ā1Ćdsuperscriptā1R^1Ć dblackboard_R1 Ć d and a token embedding layer Wwā¢oā¢rā¢dā¢Eā¢bā¢d:ā||Ćd:subscriptsuperscriptāW_wordEbd:R^|V|Ć dWitalic_w o r d E b d : blackboard_R| V | Ć d, a tokenized text x can be represented with an embedding vector in āLĆdsuperscriptāR^LĆ dblackboard_RL Ć d. Such transformation significantly reduces the search space as dāŖ||much-less-thand |V|d āŖ | V |. Additionally, gradient-based optimizers (e.g., Adam (Kingma & Ba, 2014)) can be utilized to efficiently search the target text. Reconstruction Objective: To address the challenge (2), we design a loss function that guides the optimization by mirroring the unlearning process and approximating the weight differences. Inspired by (Hu et al., 2024) the gradient of the unlearned samples over the original model aligns with the difference in model weights before and after unlearning (Īā¢ĪøĪ ĪøĪ Īø). Consequently, we compute the gradient of the candidate (x^,y^)^^( x, y)( over start_ARG x end_ARG , over start_ARG y end_ARG ) on ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lsubscriptā³M_originalMitalic_o r i g i n a l executing the unlearning algorithm U, and then use cosine similarity to compute the angle between the gradient and weight difference, which is utilized as the loss to update candidate: ārā¢eā¢c=1āāĪøoriginalU(x^,y^)ā Īā¢ĪøāāĪøoriginalU(x^,y^)ā2ā¢āĪā¢Īøā2.subscriptā1ā superscriptsubscriptāsubscriptoriginal^^Īsubscriptnormsuperscriptsubscriptāsubscriptoriginal^^2subscriptnormĪ2L_rec=1- _ _original^U( x, % y)Ā· Īø \| _ _original^U( x,% y) \|_2 \| Īø \|_2.Litalic_r e c = 1 - divide start_ARG āĪø start_POSTSUBSCRIPT original end_POSTSUBSCRIPTU ( over start_ARG x end_ARG , over start_ARG y end_ARG ) ā Ī Īø end_ARG start_ARG ā„ āĪø start_POSTSUBSCRIPT original end_POSTSUBSCRIPTU ( over start_ARG x end_ARG , over start_ARG y end_ARG ) ā„2 ā„ Ī Īø ā„2 end_ARG . (1) Embedding Constraints: To address the challenge (3), we introduce sentence regularization and boundary clipping mechanisms to constrain the distribution of reconstructed embeddings and accelerate convergence. The word embedding layer Wwā¢oā¢rā¢dā¢Eā¢bā¢dsubscriptW_wordEbdWitalic_w o r d E b d pre-stores all possible candidate tokens in a vocabulary. Based on this intuition, we first introduce a sentence regularization term that enforces the norm of reconstructed sentence embeddings to approximate the average norm of the vocabulary (Balunovic et al., 2022), preventing the optimization process from local optima: ārā¢eā¢g=(1nā¢āi=1nāx^iā2ā1ā¢āj=1āejā2)2.subscriptāsuperscript1superscriptsubscript1subscriptnormsubscript^21superscriptsubscript1subscriptnormsubscript22L_reg= ( 1n _i=1^n\| x_i\|_2- 1% V _j=1^V\|e_j\|_2 )^2.Litalic_r e g = ( divide start_ARG 1 end_ARG start_ARG n end_ARG āi = 1n ā„ over start_ARG x end_ARGi ā„2 - divide start_ARG 1 end_ARG start_ARG V end_ARG āj = 1V ā„ eitalic_j ā„2 )2 . (2) Additionally, we propose a boundary clipping mechanism to ensure that each embedding element remains within the maximum and minimum values of all potential tokens at the corresponding element position, thereby calibrating the optimization direction and accelerating convergence: Clipā¢(x^;xlā¢oā¢w,xuā¢p)=minā”(maxā”(x^,xlā¢oā¢w),xuā¢p),Clip^subscriptsubscript^subscriptsubscriptClip( x;x_low,x_up)= ( ( x,x_low )% ,x_up ),Clip ( over start_ARG x end_ARG ; xitalic_l o w , xitalic_u p ) = min ( max ( over start_ARG x end_ARG , xitalic_l o w ) , xitalic_u p ) , (3) where xlā¢oā¢wsubscriptx_lowxitalic_l o w and xuā¢psubscriptx_upxitalic_u p are calculated in Wwā¢oā¢rā¢dā¢Eā¢bā¢dsubscriptW_wordEbdWitalic_w o r d E b d. The detailed procedure is outlined in Algorithm 3. Besides, the Decoding(ā )ā (Ā·)( ā ) function refers to transforming the reconstructed embeddings into text space. Specifically, we use the modelās embedding layer as a āvocabularyā and apply cosine similarity to match the indices of the embeddings and then convert them into readable texts via the tokenizer. 5 Experiments 5.1 Experimental Setups Datasets: In this paper, we investigate unlearning mechanisms on fine-tuned LMs, since the fine-tuning datasets are more configurable and practical for evaluations (Maini et al., 2024). We manually construct two synthetic datasets, SynthPAI-age and SynthPAI-inc, for the evaluations. They are two binary text classification datasets for attribute inference tasks, where texts consist of comments generated by GPT-4-based agents during interactions, labels are commentersā attributes, such as age (young or old) and income (low or high). A detailed introduction on datasets is presented in Appendix A. Besides, we focus on the text classification tasks, because: (1) they enable us to design rigorous audit samples for rigorous unlearning auditing in the worst case. Specifically, the utilized mislabeled samples have been found to be most vulnerable to privacy leakage on image classification tasks (Aerni et al., 2024), and rigorous samples for text generation tasks are currently under-explored. (2) They ensure a fair evaluation on MIA-based auditing and attack methods (Pawelczyk et al., 2023), as MIA remains poorly defined and lacks robust metrics for text generation tasks (Duan et al., 2024). Why synthetic datasets: Previous studies indicate that LMs might have āalready seenā the fine-tuned samples in public datasets during pre-training, potentially undermining the reliability of unlearning processes (Maini et al., 2024). In addition, the real-world data can not meet our requirement, since: (1) pre-trained models are trained on vast amounts of real-world data, which is typically closed-sourced. (2) Recent studies indicate that we can not yet robustly detect whether a specific sample was used among massive pre-training data (Zhang et al., 2024a). Therefore, we utilize synthetic datasets to rigorously ensure the fine-tuning on previously āunseenā data. Specifically, the synthetic samples are entirely based on fictional scenarios, and generated by GPT-4-based agents released after the models we utilized. Through these efforts, we hope to ensure that the setups are rigorous and thus avoid being potentially misleading. Models: We employ Pythia-1.4b (Biderman et al., 2023) and OPT-1.3b (Zhang et al., 2022) LMs for evaluations. To ensure effective learning, we apply full-parameter fine-tuning and meticulously configure the training process to prevent overfitting. Detailed training configurations and performance results are provided in Appendix B. Unlearning Methods: We conduct a comprehensive investigation on both exact and inexact unlearning mechanisms. For exact unlearning, we examine the retraining method (Retrain). For inexact unlearning, we evaluate four widely adopted methods: gradient ascent (GA), maximizing Kullback-Leibler divergence (KL), negative preference optimization (NPO), and task vector (TaskVec). To ensure erasure is as thorough as possible, we apply full-parameter fine-tuning and carefully configure each method. Detailed descriptions and configurations are provided in Appendix C. 5.2 Evaluations on Textual Unlearning Auditing Figure 3: Auditing unlearning methods on SynthPAI-inc dataset. The lines and bars represent the auditing results on the original models and corresponding unlearned models, respectively. OPT-1.3b model (Top), Pythia-1.4b model (Bottom). In this subsection, we evaluate our proposed auditing method, U-LiRA+, across five unlearning methods on SynthPAI-inc dataset, as shown in Figure 3. We employ the SOTA auditing method U-LiRA as a baseline (Hayes et al., 2024). Detailed implementation of U-LiRA+ and results on SynthPAI-age dataset are provided in Appendix D. We default the unlearning ratio to 1%percent11\%1 %. We employ the True-Positive Rate at a low False-Positive Rate (Tā¢Pā¢Rā¢@ā¢0.1%ā¢Fā¢Pā¢R@percent0.1TPR@0.1\%FPRT P R @ 0.1 % F P R) as the audit metric, reflecting how confidently an adversary compromises individual privacy. For ā³uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptā³M_unlearnMitalic_u n l e a r n, a lower value indicates that the adversary has less confidence in distinguishing audit samples (unlearned and unseen samples), implying more successful unlearning. Through rigorous auditing of existing unlearning methods, our empirical results reveal that the current auditing method significantly overestimates the effectiveness of unlearning mechanisms. For instance, in the audit results of KL method on the OPT-1.3b model in Figure 3, the baseline suggests that KL substantially reduces TPR on the unlearned model (from 12.25%percent12.2512.25\%12.25 % to 0.28%percent0.280.28\%0.28 %). However, our U-LiRA+ method shows that TPR remains at 41.60%percent41.6041.60\%41.60 % on ā³uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptā³M_unlearnMitalic_u n l e a r n, indicating that the adversary can still effectively distinguish audit samples after unlearning. Moreover, while Retrain could achieve a thorough erasure, inexact unlearning methods typically present a false sense of unlearning. Across various settings, inexact unlearning methods fail to effectively erase audited samples compared to Retrain, as evidenced by the consistently high TPR observed with U-LiRA+. 5.3 Exploring Black-Box Privacy Risks against Textual Unlearning Systems In this subsection, we evaluate the proposed TULA-MI against textual unlearning systems when the adversary has black-box access to the models before and after unlearning. 5.3.1 TULA-MI in Strict Black-Box Case Table 1: TULA-MI in strict black-box cases. The metric is averaged Nā¢Tā¢Sā¢@ā¢1ā¢Fā¢S@1NTS@1FSN T S @ 1 F S, and the presented results are evaluated on the Pythia-1.4b model and SynthPAI-age dataset. N ScoreFunc Retrain GA KL NPO TaskVec 32 Confidence 4.7 6.45 4.65 4.6 6.35 CrossEntropy 11.4 4.75 7.6 4.3 4.75 Hinge 4.6 7.4 4.35 9.5 7.35 64 Confidence 4.55 14.25 10.2 10.55 13.95 CrossEntropy 27.55 4.7 10.1 5.85 4.7 Hinge 4.45 18.2 8.8 21.75 18.05 We begin with the strict black-box scenarios where the adversary can only access output scores. To ensure a comprehensive evaluation, we examine three commonly used score functions: confidence (fā¢(x)ysubscriptf(x)_yf ( x )y), cross-entropy loss (ālā¢oā¢gā¢(fā¢(x)y)subscript-log( (x)_y)- l o g ( f ( x )y )), and hinge loss (lā¢oā¢gā¢(p/(1āp))1log(p/(1-p))l o g ( p / ( 1 - p ) ), p=fā¢(x)ysubscriptp=f(x)_yp = f ( x )y). Additionally, we consider two unlearning ratios, 0.5%percent0.50.5\%0.5 % and 1%percent11\%1 % (the number of audited samples N=32,643264N=32,64N = 32 , 64 for SynthPAI-age and 24,48244824,4824 , 48 for SynthPAI-inc). Besides, we incorporate the metric Nā¢Tā¢Sā¢@ā¢1ā¢Fā¢S@1NTS@1FSN T S @ 1 F S (Number of True Samples @@@@ 1111 False Sample), which quantifies the number of correctly inferred samples with only one mistake. We present the results on Pythia-1.4b and SynthPAI-age dataset in Table 1, and results in other settings are provided in Appendix E. The results reveal that even with only access to output scores, the adversary can effectively infer membership information of the unlearned samples, with several samples correctly identified while just one incorrect. Moreover, Retrain is more vulnerable than inexact unlearning methods in such cases. As shown in Table 1, with a single incorrect guess, the adversary can infer more than 27 correct samples against the retrained model. 5.3.2 TULA-MI in Relaxed Black-Box Case Figure 4: MIAs in relaxed black-box case on SynthPAI-age dataset. OPT-1.3b model (Top), Pythia-1.4b model (Bottom). Table 2: Text reconstruction performance of TULA-DR. Model Method SynthPAI-age SynthPAI-inc R-1 R-2 R-L R-1 R-2 R-L Pythia-1.4b GA 81.04 66.75 81.35 81.92 58.16 75.15 KL 78.8 43.29 71.18 65.8 43.58 65.47 NPO 69.61 32.31 64.42 74.27 44.43 69.54 TaskVec 81.94 65.59 65.6 72.63 41.24 67.8 OPT-1.3b GA 43.57 17.5 40.36 38.05 10.28 35.13 KL 15.06 1.82 12.83 17.35 4.25 16.46 NPO 32.1 10.69 30.81 31.28 7.3 26.61 TaskVec 41.27 16.91 38.18 46.95 22 40.29 We then move to the relaxed black-box cases, where the adversary can query the model to obtain logit vectors, is aware of the model architecture, and has access to an identically distributed auxiliary dataset. Under these conditions, we evaluate two baseline methods: LiRA (Carlini et al., 2022) and ULeaks (Chen et al., 2021). Detailed descriptions and implementations of these methods are provided in Appendix G. As shown in Figure 4, we present the MIA results on SynthPAI-age dataset, and additional results on SynthPAI-inc dataset are included in Appendix F. With a wrong guess below 0.1%percent0.10.1\%0.1 %, TULA-MI accurately infers membership for over 18%percent1818\%18 % of the samples, highlighting significant privacy risks. Compared to ULeaks, our method achieves superior performance by employing a more accurate per-sample attack strategy. While LiRA also utilizes a per-sample attack and fits normal distributions for unlearned and unseen outputs, its effectiveness is hindered by redundancy and overlap among textual samples, making it challenging to fit independent distributions for reliable discrimination. In contrast, our method explicitly learns complex decision boundaries for target samples in unlearned and unseen cases, enabling more robust MIA. 5.4 Exploring White-Box Privacy Risks against Textual Unlearning Systems In this subsection, we examine the effectiveness of TULA-DR with white-box access to model weights before and after unlearning. To ensure a fair evaluation, we employ three metrics to assess reconstruction performance: ROUGE-1 (R-1), ROUGE-2 (R-2), and ROUGE-L (R-L) (Lin, 2004), which respectively measure the ratios of reconstructed unigrams, bigrams, and the longest-matching subsequence. Additionally, reconstructed examples are provided in Appendix J. We assume a default scenario where ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lsubscriptā³M_originalMitalic_o r i g i n a l is trained on 1000100010001000 samples, with one sample subsequently unlearned. Furthermore, our method can be extended to batch unlearning scenarios, and the results are presented in Appendix H. For TULA-DR, the learning rate α is set to 0.10.10.10.1 for the Pythia-1.4b model and 0.450.450.450.45 for the OPT-1.3b model, and the regularization factor β is fixed at 0.10.10.10.1. Besides, an ablation study is further provided in Appendix I. As shown in Table 2, discrepancies in unlearning weights can result in substantial textual privacy leakage. Specifically, for the Pythia-1.4b model, over 80%percent8080\%80 % of the original words were accurately reconstructed, as the R-1 values show. Besides, the reconstructed sentences preserved both semantic structure and meaning with high R-2 and R-L values, respectively. Besides, for the OPT-1.3b model, although the reconstructed sentences exhibited disordered semantic structure, an average of 40%percent4040\%40 % of the original words were still recovered, exposing much information. Specifically, the adversary could still utilize the reconstructed words to infer the useful information of the original texts. 6 Conclusion In this paper, we investigated textual unlearning methods on LMs, highlighting their vulnerabilities and privacy risks. We introduced a rigorous unlearning auditing method, U-LiRA+, providing an accurate assessment of erasure effectiveness. Additionally, to explore the privacy risks of textual unlearning mechanisms, we proposed TULA and its variants in black- and white-box scenarios: TULA-MI and TULA-DR. Through extensive evaluations, our findings revealed that textual unlearning actually gives a false sense of unlearning. Current methods fail to completely erase unlearned texts, which remain highly detectable after unlearning. Moreover, deploying textual unlearning mechanisms could instead increase privacy risks. Specifically, by examining models before and after unlearning, membership information of unlearned texts can be confidently inferred using TULA-MI. In the white-box scenario, they can even be accurately reconstructed using TULA-DR. Our findings indicated that existing textual unlearning methods are less effective and reliable than expected, highlighting the need for more robust and secure unlearning mechanisms on LMs. Acknowledgements This work is supported by National Natural Science Foundation of China (Grants No. U24B20182, 62122066), National Key R&D Program of China (Grant No. 2021ZD0112803), and Key R&D Program of Zhejiang (Grant No. 2022C01018). Impact Statement This paper presents work whose goal is to advance the field of Machine Learning. We reveal the vulnerabilities and privacy risks of existing machine unlearning methods on language models and encourage the development of more robust and secure unlearning mechanisms. There are many potential societal consequences of our work, none of which we feel must be specifically highlighted here. References Aerni et al. (2024) Aerni, M., Zhang, J., and TramĆØr, F. Evaluations of machine learning privacy defenses are misleading. In Proceedings of the 2024 on ACM SIGSAC Conference on Computer and Communications Security, p. 1271ā1284, 2024. Balunovic et al. (2022) Balunovic, M., Dimitrov, D., JovanoviÄ, N., and Vechev, M. Lamp: Extracting text from gradients with language model priors. Advances in Neural Information Processing Systems, 35:7641ā7654, 2022. Biderman et al. (2023) Biderman, S., Schoelkopf, H., Anthony, Q. G., Bradley, H., OāBrien, K., Hallahan, E., Khan, M. A., Purohit, S., Prashanth, U. S., Raff, E., et al. Pythia: A suite for analyzing large language models across training and scaling. In International Conference on Machine Learning, p. 2397ā2430. PMLR, 2023. Bourtoule et al. (2021) Bourtoule, L., Chandrasekaran, V., Choquette-Choo, C. A., Jia, H., Travers, A., Zhang, B., Lie, D., and Papernot, N. Machine unlearning. In 2021 IEEE Symposium on Security and Privacy (SP), p. 141ā159. IEEE, 2021. Carlini et al. (2021) Carlini, N., Tramer, F., Wallace, E., Jagielski, M., Herbert-Voss, A., Lee, K., Roberts, A., Brown, T., Song, D., Erlingsson, U., et al. Extracting training data from large language models. In 30th USENIX Security Symposium (USENIX Security 21), p. 2633ā2650, 2021. Carlini et al. (2022) Carlini, N., Chien, S., Nasr, M., Song, S., Terzis, A., and Tramer, F. Membership inference attacks from first principles. In 2022 IEEE Symposium on Security and Privacy (SP), p. 1897ā1914. IEEE, 2022. Chen & Yang (2023) Chen, J. and Yang, D. Unlearn what you want to forget: Efficient unlearning for llms. arXiv preprint arXiv:2310.20150, 2023. Chen et al. (2021) Chen, M., Zhang, Z., Wang, T., Backes, M., Humbert, M., and Zhang, Y. When machine unlearning jeopardizes privacy. In Proceedings of the 2021 ACM SIGSAC conference on computer and communications security, p. 896ā911, 2021. Duan et al. (2024) Duan, M., Suri, A., Mireshghallah, N., Min, S., Shi, W., Zettlemoyer, L., Tsvetkov, Y., Choi, Y., Evans, D., and Hajishirzi, H. Do membership inference attacks work on large language models? arXiv preprint arXiv:2402.07841, 2024. GDPR (2018) GDPR, G. D. P. R. General data protection regulation. URL: https://gdpr-info. eu/[accessed 2020-11-21], 2018. Hayes et al. (2024) Hayes, J., Shumailov, I., Triantafillou, E., Khalifa, A., and Papernot, N. Inexact unlearning needs more careful evaluations to avoid a false sense of privacy. arXiv preprint arXiv:2403.01218, 2024. Hu et al. (2024) Hu, H., Wang, S., Dong, T., and Xue, M. Learn what you want to unlearn: Unlearning inversion attacks against machine unlearning. arXiv preprint arXiv:2404.03233, 2024. Huang et al. (2024) Huang, Y., Liu, D., Chua, L., Ghazi, B., Kamath, P., Kumar, R., Manurangsi, P., Nasr, M., Sinha, A., and Zhang, C. Unlearn and burn: Adversarial machine unlearning requests destroy model accuracy. arXiv preprint arXiv:2410.09591, 2024. Ilharco et al. (2022) Ilharco, G., Ribeiro, M. T., Wortsman, M., Gururangan, S., Schmidt, L., Hajishirzi, H., and Farhadi, A. Editing models with task arithmetic. arXiv preprint arXiv:2212.04089, 2022. Jang et al. (2022) Jang, J., Yoon, D., Yang, S., Cha, S., Lee, M., Logeswaran, L., and Seo, M. Knowledge unlearning for mitigating privacy risks in language models. arXiv preprint arXiv:2210.01504, 2022. Ke et al. (2017) Ke, G., Meng, Q., Finley, T., Wang, T., Chen, W., Ma, W., Ye, Q., and Liu, T.-Y. Lightgbm: A highly efficient gradient boosting decision tree. Advances in neural information processing systems, 30, 2017. Kingma & Ba (2014) Kingma, D. P. and Ba, J. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. Lin (2004) Lin, C.-Y. Rouge: A package for automatic evaluation of summaries. In Text summarization branches out, p. 74ā81, 2004. Liu et al. (2023) Liu, Y., Yao, Y., Ton, J.-F., Zhang, X., Cheng, R. G. H., Klochkov, Y., Taufiq, M. F., and Li, H. Trustworthy llms: a survey and guideline for evaluating large language modelsā alignment. arXiv preprint arXiv:2308.05374, 2023. Loshchilov (2017) Loshchilov, I. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017. Maini et al. (2024) Maini, P., Feng, Z., Schwarzschild, A., Lipton, Z. C., and Kolter, J. Z. Tofu: A task of fictitious unlearning for llms. arXiv preprint arXiv:2401.06121, 2024. Mattern et al. (2023) Mattern, J., Mireshghallah, F., Jin, Z., Schƶlkopf, B., Sachan, M., and Berg-Kirkpatrick, T. Membership inference attacks against language models via neighbourhood comparison. arXiv preprint arXiv:2305.18462, 2023. OāFlaherty (2024) OāFlaherty, K. Can gpt-4o be trusted with your private data?, 2024. https://w.wired.com. OpenAI (2023) OpenAI. Chatgpt (mar 14 version) [large language model], 2023. https://chat.openai.com/chat. Pawelczyk et al. (2023) Pawelczyk, M., Neel, S., and Lakkaraju, H. In-context unlearning: Language models as few shot unlearners. arXiv preprint arXiv:2310.07579, 2023. Pawelczyk et al. (2024) Pawelczyk, M., Di, J. Z., Lu, Y., Kamath, G., Sekhari, A., and Neel, S. Machine unlearning fails to remove data poisoning attacks. arXiv preprint arXiv:2406.17216, 2024. Rafailov et al. (2024) Rafailov, R., Sharma, A., Mitchell, E., Manning, C. D., Ermon, S., and Finn, C. Direct preference optimization: Your language model is secretly a reward model. Advances in Neural Information Processing Systems, 36, 2024. Rosen (2011) Rosen, J. The right to be forgotten. Stan. L. Rev. Online, 64:88, 2011. Shi et al. (2024) Shi, W., Lee, J., Huang, Y., Malladi, S., Zhao, J., Holtzman, A., Liu, D., Zettlemoyer, L., Smith, N. A., and Zhang, C. Muse: Machine unlearning six-way evaluation for language models. arXiv preprint arXiv:2407.06460, 2024. Shokri et al. (2017) Shokri, R., Stronati, M., Song, C., and Shmatikov, V. Membership inference attacks against machine learning models. In 2017 IEEE symposium on security and privacy (SP), p. 3ā18. IEEE, 2017. Shumailov et al. (2024) Shumailov, I., Hayes, J., Triantafillou, E., Ortiz-Jimenez, G., Papernot, N., Jagielski, M., Yona, I., Howard, H., and Bagdasaryan, E. Ununlearning: Unlearning is not sufficient for content regulation in advanced generative ai. arXiv preprint arXiv:2407.00106, 2024. Valinsky (2019) Valinsky, J. Amazon reportedly employs thousands of people to listen to your alexa conversations, 2019. https://edition.cnn.com/2019/04/11/tech/amazon-alexa-listening/index.html. Yukhymenko et al. (2024) Yukhymenko, H., Staab, R., Vero, M., and Vechev, M. A synthetic dataset for personal attribute inference. arXiv preprint arXiv:2406.07217, 2024. Zhang et al. (2024a) Zhang, J., Das, D., Kamath, G., and TramĆØr, F. Membership inference attacks cannot prove that a model was trained on your data. arXiv preprint arXiv:2409.19798, 2024a. Zhang et al. (2024b) Zhang, R., Lin, L., Bai, Y., and Mei, S. Negative preference optimization: From catastrophic collapse to effective unlearning. arXiv preprint arXiv:2404.05868, 2024b. Zhang et al. (2022) Zhang, S., Roller, S., Goyal, N., Artetxe, M., Chen, M., Chen, S., Dewan, C., Diab, M., Li, X., Lin, X. V., et al. Opt: Open pre-trained transformer language models. arXiv preprint arXiv:2205.01068, 2022. Appendix A Detailed Description and Discussion On Datasets To ensure rigorous evaluation, we construct two synthetic datasets derived from the SynthPAI dataset (Yukhymenko et al., 2024), enabling fine-tuning on previously āunseenā data. SynthPAI is a synthetic dataset primarily designed for evaluating attribute inference attacks. It leverages multiple GPT-4-based agents simulating commenters with different attributes (e.g., age, gender, income) communicating with each other, aiming to test whether an adversary can infer these attributes based on the comments. From SynthPAI, we create two binary text classification datasets: SynthPAI-age and SynthPAI-inc. In SynthPAI-age, the labels correspond to age groups (young or old), with young defined as age ā¤20absent20⤠20⤠20 and old as age >50absent50>50> 50, resulting in a total of 3200320032003200 samples. For SynthPAI-inc, we adopt the original SynthPAI partition for income levels (low and high), yielding a total of 2400240024002400 samples. Table 3: Memory reconstruction results on the utilized models with the proposed datasets. ROUGE-1 (R-1), ROUGE-2 (R-2), and ROUGE-L (R-L). And lower ROUGE values indicate the generated texts are less similar to the ground-truth texts. Model SynthPAI-age SynthPAI-inc R-1 R-2 R-L Loss R-1 R-2 R-L Loss Pythia-1.4b 0.047 0.003 0.046 5.68 0.067 0 0.063 5.92 OPT-1.3b 0.055 0.001 0.051 5.54 0.046 0 0.045 5.69 Since SynthPAI consists of synthetic samples in fictional scenarios, and GPT-4 was released after the LMs used in our experiments, our proposed datasets maintain considerable rigor. To further validate this, we conduct memory extraction attacks (Carlini et al., 2021) on the models using our proposed datasets. Specifically, we select 100100100100 samples from the datasets and use 50%percent5050\%50 % of a sample as a prompt to evaluate the modelsā ability to generate the remaining 50%percent5050\%50 %. As shown in Table 3, the ROUGE values are very low (generated texts are nearly random guesses), indicating that the models have not been trained on the synthetic samples. Appendix B Training Configurations We utilize the AdamW optimizer (Loshchilov, 2017) to full-parameter fine-tune the model to obtain ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lsubscriptā³M_originalMitalic_o r i g i n a l, with the learning rate set to 1ā¢eā51superscript51e^-51 e- 5, the batch size to 64646464, and the number of training rounds to 2222. We carefully prevent the models from overfitting and further provide train accuracy and test accuracy in Table 4. Table 4: Training accuracy and test accuracy of ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lsubscriptā³M_originalMitalic_o r i g i n a l. Model SynthPAI-age SynthPAI-inc Train ACC Test ACC Train ACC Test ACC Pythia-1.4b 95.21% 85.31% 93.68% 89.06% OPT-1.3b 95.11% 86.85% 93.53% 89.27% Appendix C Introduction to Unlearning Methods and Configurations In this part, we present the details of the textual unlearning methods we utilized along with their configurations. All the unlearning methods are implemented via full-parameter fine-tuning on the target LMs to ensure the effectiveness of erasing. ā ā Retrain: remove the unlearned samples (uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptD_unlearnDitalic_u n l e a r n) from the training set (DD) and retrain the original model (ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lsubscriptā³M_originalMitalic_o r i g i n a l) on the remaining data (rā¢eā¢mā¢iā¢aā¢nsubscriptD_remianDitalic_r e m i a n) from scratch, which provides the cleanest erase and is considered as the āgold standardā (Bourtoule et al., 2021). The retrain setting is kept the same as the original fine-tuning. ā ā Gradient Ascent (GA): minimizes the likelihood of predictions on the unlearned samples (uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptD_unlearnDitalic_u n l e a r n) by performing gradient ascent on the cross-entropy loss (the opposite of gradient descent) (Jang et al., 2022; Shi et al., 2024). The unlearning batch size is set to 32323232 for SynthPAI-age and SynthPAI-inc datasets, respectively. The unlearning rate is set to 1ā¢eā41superscript41e^-41 e- 4 and the unlearning epoch is 4444. ā ā Maximizing Kullback-Leibler divergence (KL): maximizes the KL divergence of the outputs between ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lsubscriptā³M_originalMitalic_o r i g i n a l and unlearned model (ā³uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptā³M_unlearnMitalic_u n l e a r n) on uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptD_unlearnDitalic_u n l e a r n (Chen & Yang, 2023). The unlearning batch size is set to 32323232 for SynthPAI-age and SynthPAI-inc datasets, respectively. The unlearning rate is set to 1ā¢eā41superscript41e^-41 e- 4 and the unlearning epoch is 1111. ā ā Negative Preference Optimization (NPO): treats uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptD_unlearnDitalic_u n l e a r n as negative preference data and adjust the offline DPO objective to fine-tune ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lsubscriptā³M_originalMitalic_o r i g i n a l such that it assigns a low likelihood to uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptD_unlearnDitalic_u n l e a r n (Zhang et al., 2024b). āNPOā¢(ā³uā¢nā¢lā¢eā¢aā¢rā¢n)=ā2βā¢xā¼unlearnā¢[logā”Ļā¢(āβā¢logā”ā³uā¢nā¢lā¢eā¢aā¢rā¢nā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢l)],subscriptāNPOsubscriptā³2subscriptsimilar-tosubscriptunlearndelimited-[]subscriptā³subscriptā³L_NPO(M_unlearn)=- 2βE_% x _unlearn [ Ļ (-β % M_unlearnM_original ) ],Lroman_NPO ( Mitalic_u n l e a r n ) = - divide start_ARG 2 end_ARG start_ARG β end_ARG blackboard_Ex ā¼ D start_POSTSUBSCRIPT unlearn end_POSTSUBSCRIPT [ log Ļ ( - β log divide start_ARG Mitalic_u n l e a r n end_ARG start_ARG Mitalic_o r i g i n a l end_ARG ) ] , where Ļ is the sigmoid function, and β is a hyperparameter that controls the allowed divergence of ā³uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptā³M_unlearnMitalic_u n l e a r n from its initialization ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lsubscriptā³M_originalMitalic_o r i g i n a l. Following (Shi et al., 2024), we set β to 0.10.10.10.1. The unlearning batch size is set to 32323232 for SynthPAI-age and SynthPAI-inc datasets, respectively. The unlearning rate is set to 1ā¢eā41superscript41e^-41 e- 4 and the unlearning epoch is 7777. ā ā Task Vectors (TaskVec): performs unlearning in two stages (Ilharco et al., 2022). ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lsubscriptā³M_originalMitalic_o r i g i n a l is first overfitted on uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptD_unlearnDitalic_u n l e a r n to create an intermediary model (ā³rā¢eā¢iā¢nā¢fā¢oā¢rā¢cā¢esubscriptā³M_reinforceMitalic_r e i n f o r c e). The unlearned model (ā³uā¢nā¢lā¢eā¢aā¢rā¢nsubscriptā³M_unlearnMitalic_u n l e a r n) is then obtained directly by subtracting the weight differences: ā³uā¢nā¢lā¢eā¢aā¢rā¢n=ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lā(ā³rā¢eā¢iā¢nā¢fā¢oā¢rā¢cā¢eāā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢l)subscriptā³subscriptā³subscriptā³subscriptā³M_unlearn=M_original-(M_reinforce- % M_original)Mitalic_u n l e a r n = Mitalic_o r i g i n a l - ( Mitalic_r e i n f o r c e - Mitalic_o r i g i n a l ). The unlearning batch size is set to 32323232 for SynthPAI-age and SynthPAI-inc datasets, respectively. The unlearning rate is set to 1ā¢eā41superscript41e^-41 e- 4 and unlearning epoch is 4444. Appendix D Implementation on U-LiRA+ and Additional Results We default the unlearning ratio to 1%percent11\%1 %, indicating that N=6464N=64N = 64 or 48484848 audited samples are required for SynthPAI-age and SynthPAI-inc datasets (half unlearn or unseen samples), respectively. Besides, considering that the datasets have an equal number of 00 or 1111 labeled samples, we default all the audited samples are selected from 1111-labeled samples. To implement our proposed auditing method, we train 100100100100 shadow models for each audited sample, where T=8585T=85T = 85 of them are for estimating the distributions of model outputs when the sample is either unlearned or unseen, and 15151515 of them are acting as tested models ā³āsuperscriptā³M^*Mā for computing Tā¢Pā¢Rā¢@ā¢Lā¢oā¢wā¢Fā¢Pā¢R@TPR@LowFPRT P R @ L o w F P R evaluating the audited unlearning methods. Ideally, we need to fine-tune at least NĆTNĆ TN Ć T shadow models to complete one time of auditing, which is too much computational and storage overhead for LMs. Therefore, we adopt the optimization scheme mentioned in the original LiRA-MIA (Carlini et al., 2022), requiring only T shadow models, where each model is randomly trained (and then unlearned) on half of the audit samples. Such a scheme enables T/22T/2T / 2 shadow models for each audit sample to approximate the unlearned and unseen distributions, which significantly reduces the computational overhead while keeping the auditing accuracy as much as possible. Figure 5: Auditing unlearning methods on SynthPAI-age dataset. The lines and bars represent the auditing results on the original models and corresponding unlearned models, respectively. OPT-1.3b model (Top), Pythia-1.4b model (Bottom). Appendix E Additional Results of TULA-MI in Strict Cases Table 5: TULA-MI in strict black-box cases. The presented results are evaluated on the OPT-1.3b model and SynthPAI-age dataset. N LossFunc Retrain GA KL NPO TaskVec 32 Confidence 6.55 3.45 5.1 2.7 8.25 CrossEntropy 10.35 4.25 5.8 4.4 5.9 Hinge 5.65 1.55 4.6 1.8 8.05 64 Confidence 6.25 5.6 7.7 5.6 16.55 CrossEntropy 25.1 4.15 7.1 6.35 6.95 Hinge 6.9 0.8 6.55 1.75 17.85 Table 6: TULA-MI in strict black-box cases. The presented results are evaluated on the OPT-1.3b model and SynthPAI-inc dataset. N LossFunc Retrain GA KL NPO TaskVec 24 Confidence 3.75 2.35 3.5 1.8 4.15 CrossEntropy 8.2 3.1 5.3 2.8 4.55 Hinge 3.8 1.6 3.55 2.35 4.85 48 Confidence 9.1 3.5 5.65 2.75 10.55 CrossEntropy 16.25 4.95 8.4 4.5 8.05 Hinge 7.75 1 7.4 2.5 11.5 Table 7: TULA-MI in strict black-box cases. The presented results are evaluated on the Pythia-1.4b model and SynthPAI-inc dataset. N LossFunc Retrain GA KL NPO TaskVec 24 Confidence 4.55 5.65 4.85 4.15 5.65 CrossEntropy 7.6 4.55 4.9 6.75 4.55 Hinge 4.4 5.3 3.25 8.8 5.2 48 Confidence 9.6 9.8 10.55 9.55 9.7 CrossEntropy 14.7 9.5 9.3 14.05 9.5 Hinge 9.3 9.85 7.85 15.85 9.8 Appendix F Additional Results of TULA-MI in Relaxed Cases Figure 6: MIAs in relaxed black-box case on SynthPAI-inc dataset. OPT-1.3b model (Top), Pythia-1.4b model (Bottom). Appendix G Detailed Implementation of TULA-MI in Relaxed Cases We train 100100100100 shadow models to implement the baseline LiRA (Carlini et al., 2022), as referred in Appendix D. Besides, to implement ULeaks (Chen et al., 2021), we follow its original settings and utilize a random forest classifier as the attack model, with nā¢_ā¢eā¢sā¢tā¢iā¢mā¢aā¢tā¢oā¢rā¢s=500_500n\_estimators=500n _ e s t i m a t o r s = 500 and mā¢iā¢nā¢_ā¢sā¢aā¢mā¢pā¢lā¢eā¢sā¢_ā¢lā¢eā¢aā¢f=30__30min\_samples\_leaf=30m i n _ s a m p l e s _ l e a f = 30. We train the attack model with the output features on shadow models, where the logits of unlearned samples on ā³uā¢nā¢lā¢eā¢aā¢nā¢rsubscriptā³M_unleanrMitalic_u n l e a n r and ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lsubscriptā³M_originalMitalic_o r i g i n a l are combined as positive features, and these of unseen samples are utilized as negative features. To implement our proposed TULA-MI, we utilize LightGBM classifier (Ke et al., 2017) as the attack model, with nā¢uā¢mā¢_ā¢lā¢eā¢aā¢vā¢eā¢s=2_2num\_leaves=2n u m _ l e a v e s = 2, lā¢eā¢aā¢rā¢nā¢iā¢nā¢gā¢_ā¢rā¢aā¢tā¢e=0.05_0.05learning\_rate=0.05l e a r n i n g _ r a t e = 0.05 and fā¢eā¢aā¢tā¢uā¢rā¢eā¢_ā¢fā¢rā¢aā¢cā¢tā¢iā¢oā¢n=0.9_0.9feature\_fraction=0.9f e a t u r e _ f r a c t i o n = 0.9. Algorithm 4 TULA-MI in the Relaxed Case Inputs: original black-box model ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lāsubscriptsuperscriptā³M^*_originalMāitalic_o r i g i n a l, unlearned black-box model ā³uā¢nā¢lā¢eā¢aā¢rā¢nāsubscriptsuperscriptā³M^*_unlearnMāitalic_u n l e a r n, target sample (x,y)(x,y)( x , y ),random sample (xā²,yā²)superscriptā²(x ,y )( xā² , yā² ), auxiliary dataset aā¢uā¢xsubscriptD_auxDitalic_a u x, learning algorithm A, unlearning algorithm U, number of shadow models T, logit function Ļitalic-ĻĻĻ. Duā¢nā¢lā¢eā¢aā¢rā¢nxāsubscriptsuperscriptD^x_unlearnā\\Ditalic_xitalic_u n l e a r n ā , Doā¢rā¢iā¢gā¢iā¢nā¢aā¢lxāsubscriptsuperscriptD^x_originalā\\Ditalic_xitalic_o r i g i n a l ā while tā¤Tt⤠Tt ⤠T do ā¼aā¢uā¢xā¢sample a shadow training datasetsimilar-tosubscriptsample a shadow training datasetD _aux a shadow training datasetD ā¼ Ditalic_a u x sample a shadow training dataset ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lāAā¢(āŖ(x,y))āsubscriptā³M_originalā A(DāŖ(x,y))Mitalic_o r i g i n a l ā A ( D āŖ ( x , y ) ) ā³uā¢nā¢lā¢eā¢aā¢rā¢nāU(ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢l,(x,y)))M_unlearnā U(M_original,(x,y)))Mitalic_u n l e a r n ā U ( Mitalic_o r i g i n a l , ( x , y ) ) ) loā¢rā¢ixāĻā¢((x,y);ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢l),luā¢lxāĻā¢((x,y);ā³uā¢nā¢lā¢eā¢aā¢rā¢n)formulae-sequenceāsubscriptsuperscriptitalic-Ļsubscriptā³āsubscriptsuperscriptitalic-Ļsubscriptā³l^x_oriāĻ((x,y);M_original),l^x_ulā% Ļ((x,y);M_unlearn)litalic_xitalic_o r i ā Ļ ( ( x , y ) ; Mitalic_o r i g i n a l ) , litalic_xitalic_u l ā Ļ ( ( x , y ) ; Mitalic_u n l e a r n ) Duā¢nā¢lā¢eā¢aā¢rā¢nxā¢[t]ā([loā¢rā¢ix,luā¢lx,loā¢rā¢ixāluā¢lx],1)āsubscriptsuperscriptdelimited-[]subscriptsuperscriptsubscriptsuperscriptsubscriptsuperscriptsubscriptsuperscript1D^x_unlearn[t]ā([l^x_ori,l^x_ul,l^x_ori-l^x_ul],1)Ditalic_xitalic_u n l e a r n [ t ] ā ( [ litalic_xitalic_o r i , litalic_xitalic_u l , litalic_xitalic_o r i - litalic_xitalic_u l ] , 1 ) labeled with 1 ā²ā¼aā¢uā¢xā¢sample another shadow dataset excluding xsimilar-tosuperscriptā²subscriptsample another shadow dataset excluding xD _aux another shadow % dataset excluding $x$Dā² ā¼ Ditalic_a u x sample another shadow dataset excluding x ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lā²āAā¢(ā²)āsubscriptsuperscriptā³ā²M _originalā A(D )Mā²italic_o r i g i n a l ā A ( Dā² ) ā³uā¢nā¢lā¢eā¢aā¢rā¢nā²āU(ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lā²,(xā²,yā²)))M _unlearnā U(M _original,(x^% ,y )))Mā²italic_u n l e a r n ā U ( Mā²italic_o r i g i n a l , ( xā² , yā² ) ) ) loā¢rā¢iā²xāĻā¢((x,y);ā³oā¢rā¢iā²),luā¢lā²xāĻā¢((x,y);ā³uā¢nā¢lā¢eā¢aā¢rā¢nā²)formulae-sequenceāsubscriptsuperscriptsuperscriptā²italic-Ļsubscriptsuperscriptā³ā²āsubscriptsuperscriptsuperscriptā²italic-Ļsubscriptsuperscriptā³ā²l^x_ori āĻ((x,y);M _ori),l^x_ul% āĻ((x,y);M _unlearn)litalic_xitalic_o r iā² ā Ļ ( ( x , y ) ; Mā²italic_o r i ) , litalic_xitalic_u lā² ā Ļ ( ( x , y ) ; Mā²italic_u n l e a r n ) Duā¢nā¢sā¢eā¢eā¢nxā¢[t]ā([loā¢rā¢iā²x,luā¢lā²x,loā¢rā¢iā²xāluā¢lā²x],0)āsubscriptsuperscriptdelimited-[]subscriptsuperscriptsuperscriptā²subscriptsuperscriptsuperscriptā²subscriptsuperscriptsuperscriptā²subscriptsuperscriptsuperscriptā²0D^x_unseen[t]ā([l^x_ori ,l^x_ul ,l^x_% ori -l^x_ul ],0)Ditalic_xitalic_u n s e e n [ t ] ā ( [ litalic_xitalic_o r iā² , litalic_xitalic_u lā² , litalic_xitalic_o r iā² - litalic_xitalic_u lā² ] , 0 ) labeled with 0 end while ā³Aā¢dā¢vātrain attack model on ā¢Duā¢nā¢lā¢eā¢aā¢rā¢nxāŖDuā¢nā¢sā¢eā¢eā¢nxāsubscriptā³train attack model on subscriptsuperscriptsubscriptsuperscriptM_Advā attack model on D^x_unlearn% āŖ D^x_unseenMitalic_A d v ā train attack model on Ditalic_xitalic_u n l e a r n āŖ Ditalic_xitalic_u n s e e n loā¢rā¢iāxāĻā¢((x,y);ā³oā¢rā¢iā¢gā¢iā¢nā¢aā¢lā),luā¢lāxāĻā¢((x,y);ā³uā¢nā¢lā¢eā¢aā¢rā¢nā)formulae-sequenceāsubscriptsuperscriptsuperscriptitalic-Ļsubscriptsuperscriptā³āsubscriptsuperscriptsuperscriptitalic-Ļsubscriptsuperscriptā³l^x_ori^*āĻ((x,y);M^*_original),l^x_ul^*% āĻ((x,y);M^*_unlearn)litalic_xitalic_o r iā ā Ļ ( ( x , y ) ; Māitalic_o r i g i n a l ) , litalic_xitalic_u lā ā Ļ ( ( x , y ) ; Māitalic_u n l e a r n ) Return ā³Aā¢dā¢vā¢([loā¢rā¢iāx,luā¢lāx,loā¢rā¢iāxāluā¢lāx])subscriptā³subscriptsuperscriptsuperscriptsubscriptsuperscriptsuperscriptsubscriptsuperscriptsuperscriptsubscriptsuperscriptsuperscriptM_Adv([l^x_ori^*,l^x_ul^*,l^x_ori^*-l^x_ul^*% ])Mitalic_A d v ( [ litalic_xitalic_o r iā , litalic_xitalic_u lā , litalic_xitalic_o r iā - litalic_xitalic_u lā ] ) Appendix H Evaluations on TULA-DR against Batch Unlearning In this section, we evaluate the reconstruction performance of the proposed TULA-DR compared to batch unlearning, as presented in Tables 8, 9, 10, 11. TULA-DR retains the ability to reconstruct certain sensitive information even from batched unlearned texts, particularly when using the Pythia-1.4b model. Furthermore, the reconstruction accuracy decreases with an increase in batch size (B). This decline is attributed to the expansion of the embedding space, which complicates the search process. Notably, as batch size increases, the R-2 score of the reconstructed text declines more significantly than the R-1 and R-L scores. This indicates that batch unlearning effectively reduces an adversaryās ability to reconstruct the semantic structure of a sentence, although keywords and word order can still be partially reconstructed. Table 8: TULA-DR against batch unlearning (GA). Model B SynthPAI-age SynthPAI-inc R-1 R-2 R-L R-1 R-2 R-L Pythia-1.4b 2 32.54 16.66 28.83 39.1 23.28 37.91 4 28.43 9.32 26.31 28.32 7.73 27.62 6 32.27 16.18 30.52 28.35 8.7 26.48 8 18.63 2.95 18.09 24.38 6.61 23.27 OPT-1.3b 2 12.41 0 8.7 19.9 4.76 17.01 4 15.8 0 12.61 20.07 3.42 18.18 6 17.92 1.62 16.1 16.12 1.72 15.3 8 14.94 2.04 14.14 13.13 1.04 12.63 Table 9: TULA-DR against batch unlearning (KL). Model B SynthPAI-age SynthPAI-inc R-1 R-2 R-L R-1 R-2 R-L Pythia-1.4b 2 57.93 28.57 48.31 40.23 21.69 40.23 4 33.92 23.82 34.06 30.8 8.61 28.03 6 25.58 9.04 26.07 24.54 4.07 23.92 8 18.85 5.506 16.96 28.03 5.456 20.55 OPT-1.3b 2 12.03 1.85 10.37 15.18 2.38 15.18 4 14.31 0 14.48 15 2.89 14.02 6 11.34 1.38 11.4 13.55 1.66 12.98 8 14.37 1.44 13.71 15.75 1.5 15.19 Table 10: TULA-DR against batch unlearning (NPO). Model B SynthPAI-age SynthPAI-inc R-1 R-2 R-L R-1 R-2 R-L Pythia-1.4b 2 47.91 24 43.15 45.86 7.93 45.86 4 32.13 9.37 29.32 20.02 5.83 19 6 23.02 2.03 20.11 30.85 13.82 31.53 8 29.13 7.29 28.5 24.96 5.76 21.09 OPT-1.3b 2 16.2 4.16 16.01 23.06 4.16 23.06 4 18.65 0 14.73 15.08 2.02 14.16 6 13.19 1.23 11.94 11.78 3.51 12.12 8 13.57 0.52 12.14 13 3.24 13 Table 11: TULA-DR against batch unlearning (TaskVec). Model B SynthPAI-age SynthPAI-inc R-1 R-2 R-L R-1 R-2 R-L Pythia-1.4b 2 24.68 7.4 23.01 44.82 11.31 41.54 4 27.97 9.72 26.88 26.99 8.05 26.51 6 23.91 9.92 21.34 27.05 8.73 25.79 8 21.97 7.5 20.25 24.18 10.78 23.02 OPT-1.3b 2 23.28 6.25 23.28 30.45 9.25 28.14 4 19.62 1.04 18.47 16.93 4.79 16.93 6 14.04 2.42 13.22 11.24 1.58 11.29 8 13.11 0.98 10.76 9.87 1.11 9.17 Appendix I Ablation Study on TULA-DR In this section, we perform an ablation study on TULA-DR to analyze its design components. Four settings are compared, representing different configurations to reconstruct the unlearned texts: (ārā¢eā¢csubscriptāL_recLitalic_r e c) using only cosine distance, (ārā¢eā¢csubscriptāL_recLitalic_r e c(l2subscript2l_2l2-based)) using only Euclidean distance, (ārā¢eā¢c+ārā¢eā¢gsubscriptāsubscriptāL_rec+L_regLitalic_r e c + Litalic_r e g) combining cosine distance with ārā¢eā¢gsubscriptāL_regLitalic_r e g sentence regularization, and (ārā¢eā¢c+Cā¢lā¢iā¢psubscriptāL_rec+ClipLitalic_r e c + C l i p) combining cosine distance with the boundary clipping mechanism. First, cosine distance demonstrates superior reconstruction performance compared to Euclidean distance. This advantage arises because cosine distance captures directional similarity in high-dimensional model weight vectors more effectively, facilitating better guidance for reconstructing unlearned texts, whereas Euclidean distance is harder to optimize in such cases. Furthermore, incorporating ārā¢eā¢gsubscriptāL_regLitalic_r e g sentence regularization significantly enhances reconstruction accuracy by providing additional statistical information (mean embedding values), which helps the reconstructed embeddings align more closely with the correct distribution. Lastly, adding the boundary clipping mechanism also improves reconstruction effectiveness. By calibrating the value domain of reconstructed embeddings during optimization, this mechanism accelerates convergence and prevents falling into local optima. Table 12: Ablation study on TULA-DR against GA. Model Setting SynthPAI-age SynthPAI-inc R-1 R-2 R-L R-1 R-2 R-L Pythia-1.4b ārā¢eā¢csubscriptāL_recLitalic_r e c 66.66 25 59.25 29.76 4.76 29.76 ārā¢eā¢csubscriptāL_recLitalic_r e c(l2subscript2l_2l2-based) 0 0 0 0 0 0 ārā¢eā¢c+ārā¢eā¢gsubscriptāsubscriptāL_rec+L_regLitalic_r e c + Litalic_r e g 80.15 36.66 70.63 66.31 34.12 62.97 ārā¢eā¢c+Cā¢lā¢iā¢psubscriptāL_rec+ClipLitalic_r e c + C l i p 92.59 62.5 84.12 80.55 60.11 76.38 OPT-1.3b ārā¢eā¢csubscriptāL_recLitalic_r e c 6.061 0 6.061 16.36 0 16.36 ārā¢eā¢csubscriptāL_recLitalic_r e c(l2subscript2l_2l2-based) 11.57 0 11.57 5.55 0 5.55 ārā¢eā¢c+ārā¢eā¢gsubscriptāsubscriptāL_rec+L_regLitalic_r e c + Litalic_r e g 51.54 12.96 44.04 40.74 13.69 33.33 ārā¢eā¢c+Cā¢lā¢iā¢psubscriptāL_rec+ClipLitalic_r e c + C l i p 54.49 23.61 46.03 66.55 37.61 62.39 Table 13: Ablation study on TULA-DR against KL. Model Setting SynthPAI-age SynthPAI-inc R-1 R-2 R-L R-1 R-2 R-L Pythia-1.4b ārā¢eā¢csubscriptāL_recLitalic_r e c 61.11 17.5 57.4 45.83 10.31 45.83 ārā¢eā¢csubscriptāL_recLitalic_r e c(l2subscript2l_2l2-based) 0 0 0 0 0 0 ārā¢eā¢c+ārā¢eā¢gsubscriptāsubscriptāL_rec+L_regLitalic_r e c + Litalic_r e g 90.27 58.09 81.94 73.14 52.61 68.98 ārā¢eā¢c+Cā¢lā¢iā¢psubscriptāL_rec+ClipLitalic_r e c + C l i p 79.16 52.38 79.16 88.42 48.21 77.31 OPT-1.3b ārā¢eā¢csubscriptāL_recLitalic_r e c 7.4 0 7.4 9.39 0 9.39 ārā¢eā¢csubscriptāL_recLitalic_r e c(l2subscript2l_2l2-based) 6.36 0 6.36 9.97 0 9.97 ārā¢eā¢c+ārā¢eā¢gsubscriptāsubscriptāL_rec+L_regLitalic_r e c + Litalic_r e g 14.94 0 11.24 9.97 0 9.97 ārā¢eā¢c+Cā¢lā¢iā¢psubscriptāL_rec+ClipLitalic_r e c + C l i p 9.52 5.55 9.52 13.42 0 13.42 Table 14: Ablation study on TULA-DR against NPO. Model Setting SynthPAI-age SynthPAI-inc R-1 R-2 R-L R-1 R-2 R-L Pythia-1.4b ārā¢eā¢csubscriptāL_recLitalic_r e c 47.4 12.5 47.4 44.16 15.87 44.16 ārā¢eā¢csubscriptāL_recLitalic_r e c(l2subscript2l_2l2-based) 0 0 0 0 0 0 ārā¢eā¢c+ārā¢eā¢gsubscriptāsubscriptāL_rec+L_regLitalic_r e c + Litalic_r e g 63.75 41.46 56.34 55.35 23.81 55.35 ārā¢eā¢c+Cā¢lā¢iā¢psubscriptāL_rec+ClipLitalic_r e c + C l i p 88.88 71.9 88.88 70.56 38.69 70.56 OPT-1.3b ārā¢eā¢csubscriptāL_recLitalic_r e c 17.18 3.33 14.15 3.7 0 3.7 ārā¢eā¢csubscriptāL_recLitalic_r e c(l2subscript2l_2l2-based) 3.33 0 3.33 9.09 0 9.09 ārā¢eā¢c+ārā¢eā¢gsubscriptāsubscriptāL_rec+L_regLitalic_r e c + Litalic_r e g 20.87 0 17.17 35.83 9.52 35.83 ārā¢eā¢c+Cā¢lā¢iā¢psubscriptāL_rec+ClipLitalic_r e c + C l i p 60.74 31.94 49.63 61.11 28.7 50.37 Table 15: Ablation study on TULA-DR against TaskVec. Model Setting SynthPAI-age SynthPAI-inc R-1 R-2 R-L R-1 R-2 R-L Pythia-1.4b ārā¢eā¢csubscriptāL_recLitalic_r e c 60.18 22.61 56.01 34.72 9.52 34.72 ārā¢eā¢csubscriptāL_recLitalic_r e c(l2subscript2l_2l2-based) 0 0 0 0 0 0 ārā¢eā¢c+ārā¢eā¢gsubscriptāsubscriptāL_rec+L_regLitalic_r e c + Litalic_r e g 67.46 24.44 57.14 79.16 44.04 71.29 ārā¢eā¢c+Cā¢lā¢iā¢psubscriptāL_rec+ClipLitalic_r e c + C l i p 91.07 68.25 86.31 53.24 36.31 53.24 OPT-1.3b ārā¢eā¢csubscriptāL_recLitalic_r e c 12.03 0 7.87 20 3.7 20 ārā¢eā¢csubscriptāL_recLitalic_r e c(l2subscript2l_2l2-based) 12.5 0 12.5 5.55 0 5.55 ārā¢eā¢c+ārā¢eā¢gsubscriptāsubscriptāL_rec+L_regLitalic_r e c + Litalic_r e g 33.59 3.7 33.59 37.56 11.11 33.86 ārā¢eā¢c+Cā¢lā¢iā¢psubscriptāL_rec+ClipLitalic_r e c + C l i p 49.93 32.93 49.93 63.78 26.66 56.37 Appendix J Examples of the Reconstructed Texts via TULA-DR We list some reconstructed examples in Tab. 16, 17, 18 and Tab. 19, 20, 21, for SynthPAI-age and SynthPAI-inc datasets respectively. Besides, to fairly evaluate the reconstruction attack, we additionally add padding characters (<<</s>>> for OPT-1.3b, <|<|< |endoftext|>|>| > for Pythia-1.4b) to fix the length of unlearned texts. Table 16: Reconstructed examples on SynthPAI-age dataset. Reference text: <<<padding>>><<<padding>>><<<padding>>><<<padding>>>strict timelines? more like stress recipes. Model Method Reconstructed Texts Pythia-1.4b GA <|<|< |endoftext|>|>| > nowadays<|<|< |endoftext|>|>| >strict timelines? more like stress KL <|<|< |endoftext|>|>| >usi morestrict more timelines? like stress NPO <|<|< |endoftext|>|>| ><|<|< |endoftext|>|>| ><|<|< |endoftext|>|>| ><|<|< |endoftext|>|>| ><|<|< |endoftext|>|>| >strictelines. like stress TaskVec <|<|< |endoftext|>|>| ><|<|< |endoftext|>|>| ><|<|< |endoftext|>|>| >strict timelines? more like stress OPT-1.3b GA like timelines?More like<<</s>>>st.<<</s>>> stress stressa KL like<<</s>>><<</s>>> timeframe at plaster<<</s>>> Stress stressful<<</s>>><<</s>>>a NPO like stricter timelines<<</s>>><<</s>>><<</s>>> lingurict? Like stressa TaskVec like<<</s>>><<</s>>> timelines stress coachMore?) timelinesmare Likea Table 17: Reconstructed examples on SynthPAI-age dataset. Reference text: <<<padding>>><<<padding>>>Evolution inevitable; historic sites always layers deep! Model Method Reconstructed Texts Pythia-1.4b GA <|<|< |endoftext|>|>| ><|<|< |endoftext|>|>| >Evolution inevitable; historic sites always layers KL Ev<|<|< |endoftext|>|>| ><|<|< |endoftext|>|>| >olution; historic sites layers always layers NPO Ev<|<|< |endoftext|>|>| >Evolution sites inevitable; always historic layers TaskVec necess<|<|< |endoftext|>|>| >Evolution inevitable; historic sites layers deep OPT-1.3b GA likeolution; sites always layers deep horse Hogwartsa KL like<<</s>>> Ramos Craw<<</s>>> fossils favourite aECT ONLY Breakinga NPO like;historic sites perenn always just layers deep menstruossusa TaskVec likeEvolution inevitable; feudal historic historic sites always layersa Table 18: Reconstructed examples on SynthPAI-age dataset. Reference text: <<<padding>>>Engineering sure throws curveballs despite hefty spreadsheets! Model Method Reconstructed Texts Pythia-1.4b GA Engineering sure throwsballs despite hefty spreadshe KL Engineering spread sure throws curveballs despite hefty NPO Engineering sure throwsballs despite hefty spreadshe TaskVec Engineering sure throwsballs despite hefty spreadshe OPT-1.3b GA likeEngineering sure throws curveballs hearty despite heftysheetsa KL like<<</s>>>āā<<</s>>>ā.######## I toesales lords Tha NPO like grotesque tsundespiteborghEngineering sure sly threwsheetsa TaskVec likeEngineering throws curveballs despite hefty spreadscffffccsheetsa Table 19: Reconstructed examples on SynthPAI-inc dataset. Reference text: <<<padding>>><<<padding>>>film school grind pays off here - editing gigs underway. Model Method Reconstructed Texts Pythia-1.4b GA pays off here<|<|< |endoftext|>|>| >film school here - editing gig KL <|<|< |endoftext|>|>| ><|<|< |endoftext|>|>| >film school pays off here - editing gig NPO pays<|<|< |endoftext|>|>| > -<|<|< |endoftext|>|>| >film school here pays editing gig TaskVec <|<|< |endoftext|>|>| >film school grind pays off here - editing gig OPT-1.3b GA like<<</s>>> grind here<<</s>>> editing cryptocssl - gigs gigsa KL like eagerbreakersknownliesarnaev<<</s>>> documentation adversity funds majoritya NPO like editing_-_Filmitism Izanft gigs editing pledginga TaskVec like<<</s>>><<</s>>>film school - fishes gigs editing gigs ALECa Table 20: Reconstructed examples on SynthPAI-inc dataset. Reference text: <<<padding>>>real growth happens inside too - gotta both be evolving Model Method Reconstructed Texts Pythia-1.4b GA realrealFrame growth - both gotta be evolving KL real growth - gotta be both - be evolving NPO real headed growth happens - gotta be both evolving TaskVec real to growth too - both gotta be evolving OPT-1.3b GA likereal growth inside shenan egregious - gotta both evolving evolvinga KL like growers dope antid Qt activ evolve Damascus Yin Lyme Vermonta NPO likereal gotta evolvingrenchesYep Krugutical mysql Okawarua TaskVec likereal growth happensburghreal - gotta both be evolvinga Table 21: Reconstructed examples on SynthPAI-inc dataset. Reference text: <<<padding>>><<<padding>>><<<padding>>><<<padding>>><<<padding>>>had tape fix countertop once lol Model Method Reconstructed Texts Pythia-1.4b GA <|<|< |endoftext|>|>| ><|<|< |endoftext|>|>| >had tape fixā countertop tape once KL <|<|< |endoftext|>|>| > Veter<|<|< |endoftext|>|>| >had tape fix counter countertop once NPO <|<|< |endoftext|>|>| ><|<|< |endoftext|>|>| ><|<|< |endoftext|>|>| ><|<|< |endoftext|>|>| >had tape tape countertop once TaskVec <|<|< |endoftext|>|>| ><|<|< |endoftext|>|>| ><|<|< |endoftext|>|>| > countertop fix<|<|< |endoftext|>|>| >had tape once OPT-1.3b GA like<<</s>>><<</s>>>had<<</s>>>Countertop tape fix Latvia oncea KL like<<</s>>>Tags<<</s>>>buf counter<<</s>>><<</s>>><<</s>>>Once tapea NPO like<<</s>>>Impl<<</s>>><<</s>>><<</s>>>had tape fixtop oncea TaskVec like<<</s>>><<</s>>><<</s>>><<</s>>>had tape fixtop tape oncea