Paper deep dive
Learning to Refuse: Towards Mitigating Privacy Risks in LLMs
Zhenhua Liu, Tong Zhu, Chuanyuan Tan, Wenliang Chen
Intelligence
Status: succeeded | Model: google/gemini-3.1-flash-lite-preview | Prompt: intel-v1 | Confidence: 96%
Last extracted: 3/12/2026, 7:32:29 PM
Summary
The paper introduces RETURN, a dataset of 2,492 individuals with QA pairs for evaluating machine unlearning (MU) in LLMs, and proposes the Name-Aware Unlearning Framework (NAUF) to protect private information while maintaining model utility. NAUF utilizes Name-Aware Refusal Answers and Contrastive Data Augmentation to achieve state-of-the-art unlearning performance.
Entities (4)
Relation Signals (3)
NAUF ā uses ā Contrastive Data Augmentation
confidence 98% Ā· The framework comprises two key components: Name-Aware Refusal Answer and Contrastive Data Augmentation.
RETURN ā evaluates ā Machine Unlearning
confidence 95% Ā· RETURN... to evaluate machine unlearning (MU) methods for protecting personal data
NAUF ā improves ā Machine Unlearning
confidence 95% Ā· NAUF achieves a state-of-the-art average unlearning score, surpassing the best baseline method
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:Large language models (LLMs) exhibit remarkable capabilities in understanding and generating natural language. However, these models can inadvertently memorize private information, posing significant privacy risks. This study addresses the challenge of enabling LLMs to protect specific individuals' private data without the need for complete retraining. We propose \return, a Real-world pErsonal daTa UnleaRNing dataset, comprising 2,492 individuals from Wikipedia with associated QA pairs, to evaluate machine unlearning (MU) methods for protecting personal data in a realistic scenario. Additionally, we introduce the Name-Aware Unlearning Framework (NAUF) for Privacy Protection, which enables the model to learn which individuals' information should be protected without affecting its ability to answer questions related to other unrelated individuals. Our extensive experiments demonstrate that NAUF achieves a state-of-the-art average unlearning score, surpassing the best baseline method by 5.65 points, effectively protecting target individuals' personal data while maintaining the model's general capabilities.
Tags
Links
Trouble viewing inline? Open PDF directly ā
Full Text
65,248 characters extracted from source content.
Expand or collapse full text
Learning to Refuse: Towards Mitigating Privacy Risks in LLMs Zhenhua Liu, Tong Zhu, Chuanyuan Tan, Wenliang Chen Institute of Artificial Intelligence, School of Computer Science and Technology, Soochow University, China zhliu0106, tzhu7, cytan17726@stu.suda.edu.cn, wlchen@suda.edu.cn Corresponding author Abstract Large language models (LLMs) exhibit remarkable capabilities in understanding and generating natural language. However, these models can inadvertently memorize private information, posing significant privacy risks. This study addresses the challenge of enabling LLMs to protect specific individualsā private data without the need for complete retraining. We propose RETURN, a Real-world pErsonal daTa UnleaRNing dataset, comprising 2,492 individuals from Wikipedia with associated QA pairs, to evaluate machine unlearning (MU) methods for protecting personal data in a realistic scenario. Additionally, we introduce the Name-Aware Unlearning Framework (NAUF) for Privacy Protection, which enables the model to learn which individualsā information should be protected without affecting its ability to answer questions related to other unrelated individuals. Our extensive experiments demonstrate that NAUF achieves a state-of-the-art average unlearning score, surpassing the best baseline method by 5.65 points, effectively protecting target individualsā personal data while maintaining the modelās general capabilities111Our code and dataset are available at https://github.com/zhliu0106/learning-to-refuse. Learning to Refuse: Towards Mitigating Privacy Risks in LLMs Zhenhua Liu, Tong Zhu, Chuanyuan Tan, Wenliang Chenā thanks: Corresponding author Institute of Artificial Intelligence, School of Computer Science and Technology, Soochow University, China zhliu0106, tzhu7, cytan17726@stu.suda.edu.cn, wlchen@suda.edu.cn 1 Introduction Large language models (LLMs) demonstrate extraordinary abilities to understand and generate natural languages following instructions, attributing to the massive amounts of parameters and training data Brown et al. (2020); Anil et al. (2023). However, these models sometimes memorize about private contents since there are personally identifiable information in the pre-training corpus Carlini et al. (2021); Huang et al. (2022). This presents a significant privacy concern, as an adversary can prompt the model to extract an individualās name, email address, phone number, or other sensitive information for malicious purposes, as shown in Figure 1. The General Data Protection Regulation European Parliament and Council of the European Union (2016) gives individuals Right To Be Forgotten (RTBF), which can limit the direct and indirect commercial use of their personal information. This situation leads us to the question: How can we enable LLMs to protect specific individualās private data to mitigate privacy risks? Figure 1: The example of extracting private information from LLMs. When an individual practices RTBF, the model should protect his/her private information. Figure 2: The construction of RETURN and the process for evaluating Machine Unlearning (MU) methods using this dataset. With the costly training process of LLMs, removing all private information from the training data and retraining it from scratch is not a practical solution Lison et al. (2021); Kandpal et al. (2022); Liu et al. (2024a). Therefore, researchers have attempted to adopt machine unlearning (MU) as an alternative, which aims to eliminate the influence of undesirable data and associated model capabilities without retraining Cao and Yang (2015); Bourtoule et al. (2021); Jang et al. (2022); Si et al. (2023); Zhang et al. (2023a); Maini et al. (2024); Liu et al. (2024a). To evaluate the performance of MU methods, some studies have experimented with question-answering datasets Patil et al. (2023), fictitious biographies Maini et al. (2024), and copyrighted contents Eldan and Russinovich (2023). However, there is a lack of evaluation of MU methods for protecting personal privacy data in real-world scenarios, where the target individuals exist in reality and have been memorized by LLMs. Considering these problems, we propose RETURN, a Real-world pErsonal daTa UnleaRNing dataset. As illustrated in Figure 2, we collect extensive background information on celebrities from Wikipedia and use GPT-4 Achiam et al. (2023) to generate 20ĆQA pairs for each individual. After manual and automated validation, we obtain a dataset of 2,492 individuals, each with a (Name, 20ĆQA pairs) data instance. Next, we could select a base model to evaluate the MU methods on this dataset. In this work, we take LLaMA-3-8B-Instruct AI@Meta (2024) as an example. We first identify individuals with deep memorization in the model and then divide them into the forget set and the retain set. Our goal is for the model to protect the information of individuals in the forget set, ensuring that questions related to these individuals are not answered correctly, while maintaining the modelās performance on the retain set. Existing MU methods often face challenges. One category, based on gradient ascentLiu et al. (2024a), suffers from sensitivity to hyperparameter selection or inability to effectively distinguish between the forget set and the retain set. Another category transforms traditional gradient ascent into gradient descent on a relabeled forget set, such as Relabeled Gradient Descent (RGD) Maini et al. (2024). By training the model to generate uninformed answers like "I donāt know", RGD achieves better performance in protecting the privacy of individuals in the forget set. However, our pilot study finds that RGD significantly affects the modelās performance on the retain set, causing the model to refuse to answer questions it should address. To overcome these limitations, we propose a simple yet novel unlearning method: Name-Aware Unlearning Framework (NAUF) for privacy protection. The framework comprises two key components: Name-Aware Refusal Answer and Contrastive Data Augmentation. The Name-Aware Refusal Answer is designed to help the model learn which individualsā information should be protected, and the Contrastive Data Augmentation aims to expand the distribution of both the forget set and the retain set for enhancing the generalization of our method. We evaluate the effectiveness of NAUF on our proposed dataset and compare it with the baseline methods, and the results show that our proposed NAUF achieves a state-of-the-art average unlearning score, outperforming the best baseline method by 5.65 points. Our contributions can be summarized as follows: ā ā We propose RETURN, which consists of 2,492 real individual names and 20ĆQA pairs for each individual. As far as we know, this is the first dataset for evaluating MU methods for protecting personal data in a real-world scenario. ā ā We propose a simple yet novel method NAUF for privacy protection. This method could help the model protect the privacy of individuals in the forget set while maintaining the modelās performance on the retain set. ā ā We conduct extensive experiments on RETURN to evaluate the effectiveness of our proposed method and compare it with the baseline methods. The results show that our proposed NAUF achieves a state-of-the-art average unlearning score, outperforming the best baseline method by 5.65 points. Through comprehensive experimental analysis, we demonstrate the effectiveness of our proposed method in protecting the privacy of individuals in the forget set while maintaining the modelās performance on the retain set. 2 RETURN: Real-world pErsonal daTa UnleaRNing In order to evaluate various MU methods in a practical scenario, we propose RETURN, a Real-world pErsonal daTa UnleaRNing dataset. We take Llama-3-8B-Instruct AI@Meta (2024) as an example to demonstrate how to use the dataset to evaluate MU methods. It is worth noting that we could use any LLM to replace Llama-3-8B-Instruct as the base model for evaluation. 2.1 Data Construction We begin by leveraging PopQA Mallen et al. (2022) to collect a large set of names of individuals. PopQA is a large-scale open-domain question-answering (QA) dataset constructed by Mallen et al. (2022), consisting of 14k entity-centric QA pairs. Each pair comes with the original [subject entity, relationship type, object entity] annotation, as well as the Wikipedia monthly page views for both the subject and object entities, which serve as a measure of their popularity. Specifically, for the data in PopQA, we collect āsubject entityā if the ārelationship typeā is within [occupation, place of birth, father, mother]; and we collect āobject entityā if the ārelationship typeā is within [producer, director, screenwriter, composer, author]. After gathering these names, we retrieve their corresponding Wikipedia pages and extract the abstracts from these pages as background information222https://github.com/martin-majlis/Wikipedia-API. We then filter the background information to retain only those whose word count falls between 100 and 500 words. Through this process, we ultimately obtain 2,516 records consisting of (Name, Background Information). Next, given each pair of name and the background information, we use a prompt to generate 20ĆQA pairs with GPT4 Achiam et al. (2023). The prompt template is shown in Appendix D. Item Value #Instances 2,492 #QA pairs per instance 20 Avg. background information tokens 315.0 Avg. question tokens 15.2 Avg. abstract tokens 18.8 Table 1: Data statistics of RETURN. The numbers of tokens are estimated with LLaMA-3-8B-Instruct. As shown in Table 1, after manually verifying and filtering out data with content or formatting errors, we finally obtain RETURN consisting of 2,492 (Name, 20ĆQA pairs). Next, we will demonstrate how to use the dataset to evaluate MU methods with LLaMA-3-8B-Instruct AI@Meta (2024). 2.2 Identifying Individuals with Deep Memorization To perform unlearning on LLaMA-3, we first need to identify which individuals the model has deeply memorized. We ask the model to answer the questions for each individual in the dataset, then calculate the average accuracy by comparing the modelās predicted answers with the gold answers using a Natural Language Inference (NLI) model 333We choose deberta-v3-base-tasksource-nli Sileo (2023) to evaluate the correctness of modelās prediction.. If the prediction is "entailment" or "neutral," we consider the modelās answer correct; if the NLI modelās prediction is "contradiction," we consider the modelās answer incorrect444When the modelās predicted answer is partially correct and does not conflict with the gold answer, the NLI modelās prediction is āneutral.ā Therefore, we will consider āneutralā as correct in this context.. The accuracy distribution of LLaMA-3 on RETURN is shown in Figure 3. The higher the accuracy, the more deeply the model memorizes the individualās information. Finally, we take 466 individuals with accuracy ā„ 0.8 as individuals with deep memorization for the subsequent unlearning experiments. We analyze the popularity of individuals in our dataset, categorized by those with and without LLaMA-3ās deep memorization. We find that there is a significant difference in average popularity: 68620.9 for individuals with deep memorization versus 36841.1 for those without. This may be because highly popular individuals tend to have more diverse and detailed information available online, such as biographical details, interviews, news coverage, and social media activity, thus increasing the likelihood of deep memorization. Figure 3: Accuracy distribution of LLaMA-3 on RETURN. 2.3 Evaluation Setup We split the 466 individuals into 2 sets in a ratio of 1:9: forget set FsuperscriptD^FDitalic_F and retain set RsuperscriptD^RDitalic_R. We mark the original model as ā³osubscriptā³M_oMitalic_o and the unlearned model as ā³usubscriptā³M_uMitalic_u. We want the model to learn to protect the privacy of individuals in the forget set, ensuring that questions related to these individuals are not answered correctly, while not affecting the performance on the retain set and other tasks. Specifically, we aim for the following: 1. For questions regarding individuals in FsuperscriptD^FDitalic_F, the model should not answer correctly, or refuse to respond to protect their privacy. 2. For questions regarding individuals in RsuperscriptD^RDitalic_R, the model should respond normally. 3. Meanwhile, MU methods should not affect the modelās general capabilities on other tasks. 2.4 Evaluation Metrics We measure MU methodsā comprehensive performance using the following metrics: Forget Score. To quantify the modelās ability to protect the privacy of individuals in the forget set, we propose the Forget Score. It is calculated as the relative decrease in accuracy on FsuperscriptD^FDitalic_F after unlearning compared to the original modelās accuracy on FsuperscriptD^FDitalic_F: Fā¢oā¢rā¢gā¢eā¢tā¢Sā¢cā¢oā¢rā¢e=Aā¢cā¢cā³oā¢(F)āAā¢cā¢cā³uā¢(F)Aā¢cā¢cā³oā¢(F)=1āAā¢cā¢cā³uā¢(F)Aā¢cā¢cā³oā¢(F)subscriptsubscriptā³superscriptsubscriptsubscriptā³superscriptsubscriptsubscriptā³superscript1subscriptsubscriptā³superscriptsubscriptsubscriptā³superscript splitForgetScore=& Acc_M_o(D^F)-Acc_% M_u(D^F)Acc_M_o(D^F)\\ =&1- Acc_M_u(D^F)Acc_M_o(% D^F) splitstart_ROW start_CELL F o r g e t S c o r e = end_CELL start_CELL divide start_ARG A c ccaligraphic_M start_POSTSUBSCRIPT o end_POSTSUBSCRIPT ( Ditalic_F ) - A c ccaligraphic_M start_POSTSUBSCRIPT u end_POSTSUBSCRIPT ( Ditalic_F ) end_ARG start_ARG A c ccaligraphic_M start_POSTSUBSCRIPT o end_POSTSUBSCRIPT ( Ditalic_F ) end_ARG end_CELL end_ROW start_ROW start_CELL = end_CELL start_CELL 1 - divide start_ARG A c ccaligraphic_M start_POSTSUBSCRIPT u end_POSTSUBSCRIPT ( Ditalic_F ) end_ARG start_ARG A c ccaligraphic_M start_POSTSUBSCRIPT o end_POSTSUBSCRIPT ( Ditalic_F ) end_ARG end_CELL end_ROW (1) Retain Score. To quantify the modelās ability to retain the performance on the retain set after unlearning, we propose the Retain Score. It is calculated as the ratio of the unlearned modelās accuracy on RsuperscriptD^RDitalic_R to the original modelās accuracy on RsuperscriptD^RDitalic_R: Rā¢eā¢tā¢aā¢iā¢nā¢Sā¢cā¢oā¢rā¢e=Aā¢cā¢cā³uā¢(R)Aā¢cā¢cā³oā¢(R)subscriptsubscriptā³superscriptsubscriptsubscriptā³superscript splitRetainScore=& Acc_M_u(D^R)Acc_% M_o(D^R) splitstart_ROW start_CELL R e t a i n S c o r e = end_CELL start_CELL divide start_ARG A c ccaligraphic_M start_POSTSUBSCRIPT u end_POSTSUBSCRIPT ( Ditalic_R ) end_ARG start_ARG A c ccaligraphic_M start_POSTSUBSCRIPT o end_POSTSUBSCRIPT ( Ditalic_R ) end_ARG end_CELL end_ROW (2) Downstream Task Accuracy. To quantify the influence of unlearning on the modelās general capabilities, we evaluate the model on 5 downstream natural language processing tasks: WinoGrande Sakaguchi et al. (2021), PIQA Bisk et al. (2020), LogiQA Liu et al. (2020), LAMBADA Paperno et al. (2016), and ARC-c Clark et al. (2018). We use the accuracy of the downstream tasks as the evaluation metric. 3 Name-Aware Unlearning Framework Existing MU methods often face challenges in effectively protecting privacy in the forget set while maintaining model performance on the retain set. To address these challenges, we propose a novel method: Name-Aware Unlearning Framework (NAUF) for privacy protection. The framework comprises two key components: Name-Aware Refusal Answer and Contrastive Data Augmentation. Name-Aware Refusal Answer. First, we relabel the questions in the forget set with a name-aware refusal answer, such as "Iām afraid I canāt help with inquiries about NAME." Then we could perform gradient descent on the loss over the relabeled forget set. The name-aware refusal answer is designed to help the model learn which individualsā information should be protected. We curate 100 name-aware refusal answer templates rā¢eā¢fā¢uā¢sā¢esuperscriptD^refuseDitalic_r e f u s e using GPT-4, which are shown in Appendix E. Figure 4: The example of CDA for an individual in the forget set. Here we take Darrell Hammond as target individual. Contrastive Data Augmentation. In addition, due to the limited number of QA pairs available for each individual, we propose contrastive data augmentation (CDA) as a straightforward and cost-effective method to enhance the quantity and diversity of data. This approach aims to improve the modelās ability to generalize across information related to the targeted individuals. Specifically: ⢠For each individual in the forget set, we randomly sample questions from other individuals in the forget or retain set and replace the name with the target individualās name. Then relabel the questions with the name-aware refusal answer. An example is shown in Figure 4. ⢠For each individual in the retain set, we also randomly sample questions from other individuals in the forget or retain set and replace the name with the target individualās name. Then we input the modified questions into the original model, and use the original modelās prediction for that question as the relabeled answer. An example is shown in Figure 5. This contrastive data augmentation strategy expands the distribution of both the forget set and the retain set, and subsequent experiments demonstrate that it significantly improves the performance of our proposed method. For simplicity, we expand the forget set and the retain set by doubling the amount of data. Figure 5: The example of CDA for an individual in the retain set. Here we take Brian Eno as target individual. 4 Experiments 4.1 Baseline Methods A typical MU method generally consists of two components: unlearning on the forget set and regularization on the retain set. These two types of loss can be used in any combination. Unlearning on Forget Set: The unlearning process on the forget set includes methods such as Gradient Ascent (GA), Negative Preference Optimization (NPD), Relabeled Gradient Descent (RGD), and Relabeled Direct Preference Optimization (RDPO). The details of these methods are available in Appendix B. Regularization on Retain Set. The regularization methods on the retain set include Gradient Descent (GD) regularization and Kullback-Leibler Divergence (KLR) regularization . The details of these regularization methods are available in Appendix C. 4.2 Implementation Details Due to the limited training data available for unlearning, we aim to use this limited data to teach the model to protect all privacy information of the target individuals, which places stricter requirements on the generalization capability of the MU methods. Considering this situation, we divide the QA pairs for each individual in the forget set and retain set into train and test sets in a ratio of 1:1, as well as tā¢rā¢aā¢iā¢nF,tā¢eā¢sā¢tF,tā¢rā¢aā¢iā¢nRsuperscriptsubscriptsuperscriptsubscriptsuperscriptsubscriptD_train^F,D_test^F,D_train^RDitalic_t r a i nitalic_F , Ditalic_t e s titalic_F , Ditalic_t r a i nitalic_R, and tā¢eā¢sā¢tRsuperscriptsubscriptD_test^RDitalic_t e s titalic_R. We use tā¢rā¢aā¢iā¢nFsuperscriptsubscriptD_train^FDitalic_t r a i nitalic_F and tā¢rā¢aā¢iā¢nRsuperscriptsubscriptD_train^RDitalic_t r a i nitalic_R to perform unlearning on the model and then evaluate each MU method on tā¢eā¢sā¢tFsuperscriptsubscriptD_test^FDitalic_t e s titalic_F and tā¢eā¢sā¢tRsuperscriptsubscriptD_test^RDitalic_t e s titalic_R. Considering a computing budget that scales with the size of the forget set, we randomly sample an example from RsuperscriptD^RDitalic_R every time we see an example from FsuperscriptD^FDitalic_F to stay within the constraints following Maini et al. (2024). The β for NPO and RDPO is set to 0.1. We use the AdamW optimizer with a learning rate of 1e-5 for all experiments. We set the batch size to 32 and train the model for 5 epochs. Considering the computational budget, we constraint that the number of samples used from the retain set is equal to the number of the entire forget set in each epoch. All experiments are conducted with 2 NVIDIA A100-40GB GPUs, and each take approximately 1-2 hours with Deepspeed Zero3 Offload. 4.3 Main Results Method Unlearning Score Downstream Task Accuracy Forget S. Retain S. Avg. WG PIQA LQA LAM ARC-c Avg. Oracle 0.00 100.00 50.00 72.14 78.40 33.18 71.92 56.83 62.49 Without Regularization GA NS NS 0.00 48.70 47.06 22.89 0.02 25.68 28.87 NPO 15.66 84.67 50.16 56.27 59.47 26.27 37.98 29.35 41.87 RGD 96.46 3.16 49.81 70.56 75.24 28.26 46.15 36.43 51.33 RDPO 25.25 72.47 48.86 55.33 56.42 26.57 26.86 21.93 37.42 NAUF(ours) 100.00 0.06 50.03 69.77 75.68 29.03 62.84 35.41 54.55 - CDA 99.75 0.25 50.00 70.01 76.17 27.19 68.64 37.54 55.91 With GD Regularization GA NS 70.79 35.40 69.61 73.29 21.66 71.67 38.31 54.91 NPO 33.33 80.81 57.07 71.74 78.40 29.19 73.24 45.90 59.69 RGD 89.65 60.58 75.11 72.85 78.13 29.03 73.12 47.01 60.03 RDPO 32.07 81.37 56.72 72.14 77.86 29.19 73.26 44.03 59.29 NAUF(ours) 81.06 76.25 78.65 73.01 79.60 30.11 73.16 50.94 61.36 - CDA 70.71 75.71 73.21 72.61 78.84 28.88 75.57 47.18 60.62 With KLD Regularization GA NS NS 0.00 50.28 43.63 21.97 0.91 22.87 27.93 NPO 30.30 87.60 58.95 68.67 77.69 29.34 73.34 48.21 59.45 RGD 96.21 52.01 74.11 71.51 79.33 26.42 72.11 50.77 60.03 RDPO 22.47 87.44 54.96 71.43 79.22 29.65 71.86 50.09 60.45 NAUF(ours) 93.69 67.82 80.76 72.22 79.27 29.80 72.21 50.51 60.80 - CDA 94.44 63.82 79.13 71.11 79.60 28.88 74.46 50.51 60.91 Table 2: The main results of the experiments. Forget S. denotes Forget Score, Retain S. denotes Retain Score, WG denotes WinoGrande, LQA denotes LogiQA, LAM denotes LAMBADA. Oracle refers to using the original model directly to compute the metrics without applying any unlearning. Notably, NS denotes "NonSense", which means the modelās prediction is meaningless, and we take it as 0 for computing the average. We highlight the best results in bold, the second highest in underline. Figure 6: Impact of the number of unlearning epochs on the performance of MU methods (best viewed in color). Figure 7: Average unlearning score vs average downstream task accuracy across different numbers of epochs (best viewed in color). We present the main results of the experiments in Table 2. We report the average unlearning score and average downstream task accuracy to evaluate the overall performance of the model. The results show that our proposed NAUF with KLD regularization achieves a state-of-the-art average unlearning score, outperforming the best baseline method (RGD with GD regularization) by 5.65 points. The GA method performs the worst on our dataset, and the unlearned model generates meaningless predictions for questions in the forget set and significantly impacts the retain score and the performance on downstream tasks. The decline in the retain score and the performance on downstream tasks is mitigated to some extent only when using GD regularization. We find that the RGD method achieves a better forget score than our method when using any regularization method, but it significantly affects the retain score. Intuitively, this could be attributed to the uninformed answer like "I donāt know", which could not teach the model to distinguish the individuals whose information should be protected. Our proposed name-aware refusal answer can help the model learn which individualsā information should be protected, thereby achieving a better balance between the forget score and the retain score. 4.4 Analysis Importance of Regularization on Retain Set. Without regularization on retain set, the average unlearning score of all methods except GA is around 50 points, and the average downstream task accuracy is also affected to varying degrees. With any regularization, the unlearned model performs well on downstream tasks with any MU method, showing performance close to the original model. This indicates that regularization on the retain set can effectively protect the modelās general capabilities. The experimental results indicate that our method, when using GD regularization, achieves similar forget and retain scores, with a difference of only 5 points between them. In contrast, when using KLD regularization, the forget score reaches 93.69, but the retain score is only 67.82, resulting in a difference of 26 points. This demonstrates that GD regularization can achieve a better balance between unlearning metrics. Importance of Contrastive Data Augmentation. To analyze the importance of CDA, we evaluate the performance of our unlearning framework without this component. The results are presented in Table 2. We find that without regularization, CDA has almost no effect. However, it can improve our methodās forget score by 10 points when using the GD regularization. With the KLD regularization, it can increase the retain score by 4 points while maintaining a similar forget score. Notably, our method without CDA also achieves a competitive (with GD regularization) or better (with KLD regularization) average unlearning score compared to the baseline methods, which demonstrates the effectiveness of the name-aware refusal answer. These findings indicate that CDA can enhance performance on the forget set or retain set depending on the regularization method used, thereby enhancing the generalization of our proposed unlearning framework. Unlearning Performance across Different Numbers of Epochs. We investigate the impact of the number of unlearning epochs on the performance of MU methods. Specifically, We evaluate RGD and NAUF with 1, 3, 5, and 10 epochs, and the results are shown in Figure 6. For the Forget Score, our method with KLD regularization demonstrates relatively stable performance across different epochs. With GD regularization, the Forget Score improves as the number of epochs increases. Conversely, for the Retain Score, our method with GD regularization shows little variation across epochs, while KLD regularization leads to a gradual improvement in the Retain Score with increasing epochs. Our methodās average unlearning score improves with an increasing number of epochs, while RGD shows little to no improvement from the 5 to the 10 epoch, which indicates our method still has room for further optimization. Average Unlearning Score vs Average Downstream Task Accuracy across Different Numbers of Epochs. We analyze the relationship between the average unlearning score and the average downstream task accuracy across different numbers of epochs. We choose RGD and NAUF with KLD regularization for this analysis, and the results are shown in Figure 7. We observe that as the number of epochs increases, both the average unlearning score and the average downstream task accuracy increase proportionally. However, our method surpasses RGD in all aspects after just 3 epochs. Additionally, from the 5 to the 10 epoch, RGD shows a decline in average downstream task accuracy without any significant improvement in the average unlearning score. In contrast, our method continues to achieve higher average unlearning scores at the 10 epoch while maintaining stable average downstream task accuracy. Method Forget Score Retain Score Avg. Forget:Retain = 1:99 RGD 96.67 22.89 59.78 NAUF 93.33 28.46 60.90 Forget:Retain = 5:95 RGD 86.87 26.19 56.53 NAUF 94.95 67.59 81.27 Forget:Retain = 10:90 RGD 96.21 52.01 74.11 NAUF 93.69 67.82 80.76 Forget:Retain = 20:80 RGD 43.02 75.08 59.05 NAUF 93.53 71.32 82.43 Table 3: Unlearning Performance of RGD/NAUF with KLD Regularization across Different Ratio between Forget Set and Retain Set. Unlearning Performance across Different Ratio between Forget Set and Retain Set. We conduct additional analyze the impact of different data ratios on the MU algorithms. As shown in Table 3, the results demonstrate that increasing the proportion of the forget set could improve the retain score, which because we constraint the number of samples used from the retain set is equal to the number of the entire forget set in each epoch. We also find that our method consistently maintains high forget scores (90+). Figure 8: Average unlearning score of NAUF with KLD Regularization across different numbers of augmented data. Average Unlearning Score of Different CDA Number. We conducted experiments to assess the impact of different number of augmented data on the average unlearning score, as shown in Figure 8. The results indicate that as the number of augmented data increases, the performance gradually improves, reaching its peak when the augmented data count reaches 40. This suggests that appropriate data augmentation can enhance unlearning performance. 5 Conclusion and Future Work In this work, we introduce RETURN, a novel benchmark designed to evaluate MU methods for protecting personal data in a real-world scenario. We also present the Name-Aware Unlearning Framework (NAUF), which integrates Name-Aware Refusal Answer and Contrastive Data Augmentation to enhance the generalization of unlearning methods. Our experimental results show that NAUF not only effectively protects the privacy of individuals in the forget set but also maintains the performance of the model on the retain set, achieving an average unlearning score that outperforms the best baseline method by 5.65 points. These findings underscore the potential of NAUF to advance privacy protection in large language models. This study focuses on individual-level privacy protection through a name-aware unlearning framework. To broaden this approach to other types of sensitive data, future work could generalize the protection to the entity level or concept level. Such a modification would enable the model to learn to refuse instructions related to specific entitiesālike anime charactersāor concepts such as locations in copyrighted books. These adaptations would enhance the frameworkās versatility and applicability to a wider range of privacy concerns. Limitations The Size of Dataset. The proposed RETURNdataset is constructed based on PopQA, containing a total of 2,492 entries. Technically, extracting data directly from Wikipedia to construct a larger dataset is feasible. However, due to our limited resources, we cannot afford the costs associated with GPT-4 api for constructing QA pairs. Therefore, we left the development of a larger scale dataset as future work. Fine-grained Protection. The current work is focused on exploring whether a model can protect all information about an individual based on partial data, thereby maximizing privacy security for that individual. However, this method does not provide fine-grained protection of the target individualās information. Future work could explore fine-grained protection of the target individualās information. The goal is to enable the model to autonomously discern which pieces of information might be exploited for harmful purposes and therefore should be protected, without compromising the accessibility of benign information. References Achiam et al. (2023) Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. 2023. Gpt-4 technical report. arXiv preprint arXiv:2303.08774. AI@Meta (2024) AI@Meta. 2024. Llama 3 model card. Anil et al. (2023) Rohan Anil, Andrew M Dai, Orhan Firat, Melvin Johnson, Dmitry Lepikhin, Alexandre Passos, Siamak Shakeri, Emanuel Taropa, Paige Bailey, Zhifeng Chen, et al. 2023. Palm 2 technical report. arXiv preprint arXiv:2305.10403. Bisk et al. (2020) Yonatan Bisk, Rowan Zellers, Jianfeng Gao, Yejin Choi, et al. 2020. Piqa: Reasoning about physical commonsense in natural language. In Proceedings of the AAAI conference on artificial intelligence, volume 34, pages 7432ā7439. Bourtoule et al. (2021) Lucas Bourtoule, Varun Chandrasekaran, Christopher A Choquette-Choo, Hengrui Jia, Adelin Travers, Baiwu Zhang, David Lie, and Nicolas Papernot. 2021. Machine unlearning. In 2021 IEEE Symposium on Security and Privacy (SP), pages 141ā159. IEEE. Brown et al. (2020) Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. 2020. Language models are few-shot learners. Advances in neural information processing systems, 33:1877ā1901. Cao and Yang (2015) Yinzhi Cao and Junfeng Yang. 2015. Towards making systems forget with machine unlearning. In 2015 IEEE symposium on security and privacy, pages 463ā480. IEEE. Carlini et al. (2021) Nicholas Carlini, Florian Tramer, Eric Wallace, Matthew Jagielski, Ariel Herbert-Voss, Katherine Lee, Adam Roberts, Tom Brown, Dawn Song, Ulfar Erlingsson, et al. 2021. Extracting training data from large language models. In 30th USENIX Security Symposium (USENIX Security 21), pages 2633ā2650. Che et al. (2023) Tianshi Che, Yang Zhou, Zijie Zhang, Lingjuan Lyu, Ji Liu, Da Yan, Dejing Dou, and Jun Huan. 2023. Fast federated machine unlearning with nonlinear functional theory. In International conference on machine learning, pages 4241ā4268. PMLR. Clark et al. (2018) Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. 2018. Think you have solved question answering? try arc, the ai2 reasoning challenge. arXiv preprint arXiv:1803.05457. Dwork et al. (2006) Cynthia Dwork, Frank McSherry, Kobbi Nissim, and Adam Smith. 2006. Calibrating noise to sensitivity in private data analysis. In Theory of Cryptography: Third Theory of Cryptography Conference, TCC 2006, New York, NY, USA, March 4-7, 2006. Proceedings 3, pages 265ā284. Springer. Eldan and Russinovich (2023) Ronen Eldan and Mark Russinovich. 2023. Whoās harry potter? approximate unlearning in llms. arXiv preprint arXiv:2310.02238. European Parliament and Council of the European Union (2016) European Parliament and Council of the European Union. 2016. Regulation (EU) 2016/679 of the European Parliament and of the Council. Accessed: 2024-06-06. Fan et al. (2023) Chongyu Fan, Jiancheng Liu, Yihua Zhang, Dennis Wei, Eric Wong, and Sijia Liu. 2023. Salun: Empowering machine unlearning via gradient-based weight saliency in both image classification and generation. arXiv preprint arXiv:2310.12508. Ginart et al. (2019) Antonio Ginart, Melody Guan, Gregory Valiant, and James Y Zou. 2019. Making ai forget you: Data deletion in machine learning. Advances in neural information processing systems, 32. Golatkar et al. (2020) Aditya Golatkar, Alessandro Achille, and Stefano Soatto. 2020. Eternal sunshine of the spotless net: Selective forgetting in deep networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9304ā9312. Huang et al. (2022) Jie Huang, Hanyin Shao, and Kevin Chen-Chuan Chang. 2022. Are large pre-trained language models leaking your personal information? arXiv preprint arXiv:2205.12628. Jang et al. (2022) Joel Jang, Dongkeun Yoon, Sohee Yang, Sungmin Cha, Moontae Lee, Lajanugen Logeswaran, and Minjoon Seo. 2022. Knowledge unlearning for mitigating privacy risks in language models. arXiv preprint arXiv:2210.01504. Jayaraman and Evans (2019) Bargav Jayaraman and David Evans. 2019. Evaluating differentially private machine learning in practice. In 28th USENIX Security Symposium (USENIX Security 19), pages 1895ā1912. Kandpal et al. (2022) Nikhil Kandpal, Eric Wallace, and Colin Raffel. 2022. Deduplicating training data mitigates privacy risks in language models. In International Conference on Machine Learning, pages 10697ā10707. PMLR. Kumari et al. (2023) Nupur Kumari, Bingliang Zhang, Sheng-Yu Wang, Eli Shechtman, Richard Zhang, and Jun-Yan Zhu. 2023. Ablating concepts in text-to-image diffusion models. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 22691ā22702. Lison et al. (2021) Pierre Lison, Ildikó PilĆ”n, David SĆ”nchez, Montserrat Batet, and Lilja Ćvrelid. 2021. Anonymisation models for text data: State of the art, challenges and future directions. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 4188ā4203. Liu et al. (2020) Jian Liu, Leyang Cui, Hanmeng Liu, Dandan Huang, Yile Wang, and Yue Zhang. 2020. Logiqa: A challenge dataset for machine reading comprehension with logical reasoning. arXiv preprint arXiv:2007.08124. Liu et al. (2024a) Sijia Liu, Yuanshun Yao, Jinghan Jia, Stephen Casper, Nathalie Baracaldo, Peter Hase, Xiaojun Xu, Yuguang Yao, Hang Li, Kush R Varshney, et al. 2024a. Rethinking machine unlearning for large language models. arXiv preprint arXiv:2402.08787. Liu et al. (2024b) Zhenhua Liu, Tong Zhu, Chuanyuan Tan, Haonan Lu, Bing Liu, and Wenliang Chen. 2024b. Probing language models for pre-training data detection. arXiv preprint arXiv:2406.01333. Liu et al. (2023) Ziyao Liu, Yu Jiang, Jiyuan Shen, Minyi Peng, Kwok-Yan Lam, and Xingliang Yuan. 2023. A survey on federated unlearning: Challenges, methods, and future directions. arXiv preprint arXiv:2310.20448. Lu et al. (2022) Ximing Lu, Sean Welleck, Jack Hessel, Liwei Jiang, Lianhui Qin, Peter West, Prithviraj Ammanabrolu, and Yejin Choi. 2022. Quark: Controllable text generation with reinforced unlearning. Advances in neural information processing systems, 35:27591ā27609. Maini et al. (2024) Pratyush Maini, Zhili Feng, Avi Schwarzschild, Zachary C Lipton, and J Zico Kolter. 2024. Tofu: A task of fictitious unlearning for llms. arXiv preprint arXiv:2401.06121. Mallen et al. (2022) Alex Mallen, Akari Asai, Victor Zhong, Rajarshi Das, Daniel Khashabi, and Hannaneh Hajishirzi. 2022. When not to trust language models: Investigating effectiveness of parametric and non-parametric memories. arXiv preprint arXiv:2212.10511. McMahan et al. (2017) H Brendan McMahan, Daniel Ramage, Kunal Talwar, and Li Zhang. 2017. Learning differentially private recurrent language models. arXiv preprint arXiv:1710.06963. Nasr et al. (2023) Milad Nasr, Nicholas Carlini, Jonathan Hayase, Matthew Jagielski, A Feder Cooper, Daphne Ippolito, Christopher A Choquette-Choo, Eric Wallace, Florian TramĆØr, and Katherine Lee. 2023. Scalable extraction of training data from (production) language models. arXiv preprint arXiv:2311.17035. Paperno et al. (2016) Denis Paperno, GermĆ”n Kruszewski, Angeliki Lazaridou, Quan Ngoc Pham, Raffaella Bernardi, Sandro Pezzelle, Marco Baroni, Gemma Boleda, and Raquel FernĆ”ndez. 2016. The lambada dataset: Word prediction requiring a broad discourse context. arXiv preprint arXiv:1606.06031. Patil et al. (2023) Vaidehi Patil, Peter Hase, and Mohit Bansal. 2023. Can sensitive information be deleted from llms? objectives for defending against extraction attacks. arXiv preprint arXiv:2309.17410. Rafailov et al. (2024) Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D Manning, Stefano Ermon, and Chelsea Finn. 2024. Direct preference optimization: Your language model is secretly a reward model. Advances in Neural Information Processing Systems, 36. Sakaguchi et al. (2021) Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. 2021. Winogrande: An adversarial winograd schema challenge at scale. Communications of the ACM, 64(9):99ā106. Sekhari et al. (2021) Ayush Sekhari, Jayadev Acharya, Gautam Kamath, and Ananda Theertha Suresh. 2021. Remember what you want to forget: Algorithms for machine unlearning. Advances in Neural Information Processing Systems, 34:18075ā18086. Shi et al. (2023) Weijia Shi, Anirudh Ajith, Mengzhou Xia, Yangsibo Huang, Daogao Liu, Terra Blevins, Danqi Chen, and Luke Zettlemoyer. 2023. Detecting pretraining data from large language models. arXiv preprint arXiv:2310.16789. Shokri and Shmatikov (2015) Reza Shokri and Vitaly Shmatikov. 2015. Privacy-preserving deep learning. In Proceedings of the 22nd ACM SIGSAC conference on computer and communications security, pages 1310ā1321. Si et al. (2023) Nianwen Si, Hao Zhang, Heyu Chang, Wenlin Zhang, Dan Qu, and Weiqiang Zhang. 2023. Knowledge unlearning for llms: Tasks, methods, and challenges. arXiv preprint arXiv:2311.15766. Sileo (2023) Damien Sileo. 2023. tasksource: Structured dataset preprocessing annotations for frictionless extreme multi-task learning and evaluation. arXiv preprint arXiv:2301.05948. Thakkar et al. (2021) Om Dipakbhai Thakkar, Swaroop Ramaswamy, Rajiv Mathews, and Francoise Beaufays. 2021. Understanding unintended memorization in language models under federated learning. In Proceedings of the Third Workshop on Privacy in Natural Language Processing, pages 1ā10. Wang et al. (2022) Junxiao Wang, Song Guo, Xin Xie, and Heng Qi. 2022. Federated unlearning via class-discriminative pruning. In Proceedings of the ACM Web Conference 2022, pages 622ā632. Zhang et al. (2023a) Dawen Zhang, Pamela Finckenberg-Broman, Thong Hoang, Shidong Pan, Zhenchang Xing, Mark Staples, and Xiwei Xu. 2023a. Right to be forgotten in the era of large language models: Implications, challenges, and solutions. arXiv preprint arXiv:2307.03941. Zhang et al. (2023b) Eric Zhang, Kai Wang, Xingqian Xu, Zhangyang Wang, and Humphrey Shi. 2023b. Forget-me-not: Learning to forget in text-to-image diffusion models. arXiv preprint arXiv:2303.17591. Zhang et al. (2024) Ruiqi Zhang, Licong Lin, Yu Bai, and Song Mei. 2024. Negative preference optimization: From catastrophic collapse to effective unlearning. arXiv preprint arXiv:2404.05868. Appendix A Related Work Memorization and Privacy Risks of LLMs. Previous works show that LLMs can memorize sensitive information from the training data Thakkar et al. (2021); Carlini et al. (2021); Huang et al. (2022). Adversaries can utilize membership inference attacks to infer whether a specific data point was in the LLMsā training set Shi et al. (2023); Liu et al. (2024b). They can also recover the training data by powerful data extraction attacks Carlini et al. (2021); Nasr et al. (2023). These privacy risks can be mitigated by removing the sensitive information from the LLMs. However, retraining the LLMs from scratch is impractical due to the high cost of training Lison et al. (2021); Kandpal et al. (2022); Liu et al. (2024a). One approach to minimizing the memorization of sensitive information is to apply differential privacy techniques in model training Dwork et al. (2006); Shokri and Shmatikov (2015); McMahan et al. (2017). Unfortunately, these methods often reduce the accuracy and increase the training time, making them less common in practice Jayaraman and Evans (2019). Machine Unlearning for LLMs. Machine unlearning (MU) aims to eliminate the influence of undesirable data and remove associated model capabilities while preserving model performance for other data Cao and Yang (2015); Bourtoule et al. (2021); Jang et al. (2022); Si et al. (2023); Zhang et al. (2023a); Maini et al. (2024); Liu et al. (2024a). The study of MU methods encompasses diverse domains, such as image classification Ginart et al. (2019); Golatkar et al. (2020); Sekhari et al. (2021); Fan et al. (2023), text-to-image generation Kumari et al. (2023); Zhang et al. (2023b); Fan et al. (2023), and federated learning Wang et al. (2022); Liu et al. (2023); Che et al. (2023). Specifically in the era of LLMs, MU has been applied to addressing trustworthiness concerns, such as toxicity Lu et al. (2022), copyright Eldan and Russinovich (2023), and privacy Jang et al. (2022); Patil et al. (2023); Maini et al. (2024). We find that these studies have tested MU methods on question-answering datasets Jang et al. (2022); Patil et al. (2023), fictitious biographies Maini et al. (2024), and copyrighted contents Eldan and Russinovich (2023), but have not yet evaluated the methods for protecting personal privacy data in real-world scenarios. Considering the practical applications, we propose RETURN to evaluate MU methods when an individual practices his/her RTBT in a black-box setting, where adversaries can only interact with the model through API query. Jang et al. (2022) shows that simply performing gradient ascent on target token sequences is effective at forgetting them with little to no degradation of general language modeling performances. Maini et al. (2024) tries to unlearn the memorized information in LLMs by relabeling the target data with uninformed answers such as "I donāt know". We believe that these methods have their drawbacks: gradient ascent is sensitive to hyperparameters and could easily cause model training to crash; simply allowing the model to learn to respond with uninformed answers could easily affect the modelās performance on the retain set. Therefore, we propose Name-Aware Unlearning Framework, to mitigate these issues and achieve a better balance between privacy protection and model performance. Appendix B Unlearning on Forget Set Gradient Ascent. Gradient ascent (GA) stands as the most straightforward method for unlearning, which is simply performing gradient ascent on the loss over forget set. GA is to minimize the likelihood of correct predictions on the forget set, denoted as: āGā¢Aā¢(F,ā³u)=ā(x,y)ā¼Fā¢[ālogā”(ā³uā¢(y|x))]=(x,y)ā¼Fā¢[logā”(ā³uā¢(y|x))]subscriptāsuperscriptsubscriptā³subscriptsimilar-tosuperscriptdelimited-[]subscriptā³conditionalsubscriptsimilar-tosuperscriptdelimited-[]subscriptā³conditional splitL_GA(D^F,M_u)=&-E_(% x,y) ^F[- (M_u(y|x))]\\ =&E_(x,y) ^F[ (M_u(y|x))] splitstart_ROW start_CELL Litalic_G A ( Ditalic_F , Mitalic_u ) = end_CELL start_CELL - blackboard_E( x , y ) ā¼ Ditalic_F [ - log ( Mitalic_u ( y | x ) ) ] end_CELL end_ROW start_ROW start_CELL = end_CELL start_CELL blackboard_E( x , y ) ā¼ Ditalic_F [ log ( Mitalic_u ( y | x ) ) ] end_CELL end_ROW (3) Negative Preference Optimization. Zhang et al. (2024) proposed Negative Preference Optimization (NPO), a simple alignment-inspired method that could efficiently and effectively unlearn a target dataset. The loss function of NPO is defined as: āNā¢Pā¢Oā¢(F,ā³u,ā³o)subscriptāsuperscriptsubscriptā³subscriptā³ _NPO(D^F,M_u,M_o)Litalic_N P O ( Ditalic_F , Mitalic_u , Mitalic_o ) (4) =2βā¢(x,y)ā¼Fā¢[logā”(1+(ā³uā¢(y|x)ā³oā¢(y|x))β)]absent2subscriptsimilar-tosuperscriptdelimited-[]1superscriptsubscriptā³conditionalsubscriptā³conditional = 2βE_(x,y) ^F[ (% 1+( M_u(y|x)M_o(y|x))^β)]= divide start_ARG 2 end_ARG start_ARG β end_ARG blackboard_E( x , y ) ā¼ Ditalic_F [ log ( 1 + ( divide start_ARG Mitalic_u ( y | x ) end_ARG start_ARG Mitalic_o ( y | x ) end_ARG )β ) ] Relabeled Gradient Descent. A variant of GA is to transform it into a gradient descent approach, which aims to maximize the likelihood of predictions on relabeled forget set. Following Maini et al. (2024), we relabel the question in the forget set with an uninformed answer like "I donāt know." (or any one of 100 versions of this response, we name the uninformed answer set as iā¢dā¢ksuperscriptD^idkDitalic_i d k). The loss function of Relabeled Gradient Descent (RGD) is defined as: āRā¢Gā¢Dā¢(F,ā³u)subscriptāsuperscriptsubscriptā³ _RGD(D^F,M_u)Litalic_R G D ( Ditalic_F , Mitalic_u ) (5) =ā(x,y)ā¼F,yiā¢dā¢kā¼iā¢dā¢kā¢[logā”(ā³uā¢(yiā¢dā¢k|x))]absentsubscriptformulae-sequencesimilar-tosuperscriptsimilar-tosuperscriptsuperscriptdelimited-[]subscriptā³conditionalsuperscript =-E_(x,y) ^F,y^idk % D^idk[ (M_u(y^idk|x))]= - blackboard_E( x , y ) ā¼ Ditalic_F , yitalic_i d k ā¼ Ditalic_i d k [ log ( Mitalic_u ( yitalic_i d k | x ) ) ] Relabeled Direct Preference Optimization. Direct Preference Optimization (DPO) seeks to fine-tune the model with human preferences Rafailov et al. (2024). We take the uninformed answer from iā¢dā¢ksuperscriptD^idkDitalic_i d k as preferred answer, the gold answer as the dispreferred answer. The loss function of Relabeled Direct Preference Optimization (RDPO) is defined as: āRā¢Dā¢Pā¢Oā¢(F,ā³u,ā³o)subscriptāsuperscriptsubscriptā³subscriptā³ _RDPO(D^F,M_u,M_o)Litalic_R D P O ( Ditalic_F , Mitalic_u , Mitalic_o ) (6) =ā(x,y)ā¼F,yiā¢dā¢kā¼iā¢dā¢k[logĻ(βlogā³uā¢(yiā¢dā¢k|x)ā³oā¢(yiā¢dā¢k|x) =-E_(x,y) ^F,y^idk % D^idk[ Ļ(β M_u(y^idk|x)M_o% (y^idk|x)= - blackboard_E( x , y ) ā¼ Ditalic_F , yitalic_i d k ā¼ Ditalic_i d k [ log Ļ ( β log divide start_ARG Mitalic_u ( yitalic_i d k | x ) end_ARG start_ARG Mitalic_o ( yitalic_i d k | x ) end_ARG āβlogā³uā¢(y|x)ā³oā¢(y|x))] -β M_u(y|x)M_o(y|x))]- β log divide start_ARG Mitalic_u ( y | x ) end_ARG start_ARG Mitalic_o ( y | x ) end_ARG ) ] Appendix C Regularization on Retain Set MU methods should not only protect the privacy of individuals in the forget set but also maintain the modelās performance on the retain set. Regularization methods are designed to achieve this goal. If we only fine-tune the model to maximize the likelihood of the uninformed answer on the forget set, the model may also refuse to answer the questions on the retain set. To achieve a balance between the forget set and the retain set, there are two regularization methods: Gradient Descent Regularization. Simply performing gradient descent (GD) on the loss over the retain set. The loss function is defined as: āGā¢Dā¢(R,ā³u)subscriptāsuperscriptsubscriptā³ _GD(D^R,M_u)Litalic_G D ( Ditalic_R , Mitalic_u ) (7) =ā(x,y)ā¼Rā¢[logā”(ā³uā¢(y|x))]absentsubscriptsimilar-tosuperscriptdelimited-[]subscriptā³conditional =-E_(x,y) ^R[ (M_u% (y|x))]= - blackboard_E( x , y ) ā¼ Ditalic_R [ log ( Mitalic_u ( y | x ) ) ] Kullback-Leibler Divergence Regularization. Minimizing the Kullback-Leibler divergence (KLD) between the predictions on the retain set of the original model and the unlearned model. The loss function is defined as: āKā¢Lā¢(R,ā³u,ā³o)subscriptāsuperscriptsubscriptā³subscriptā³ _KL(D^R,M_u,M_o)Litalic_K L ( Ditalic_R , Mitalic_u , Mitalic_o ) (8) =(x,y)ā¼R[KL(ā³o(y|x)||ā³u(y|x))] =E_(x,y) ^R[KL(M_o(y% |x)||M_u(y|x))]= blackboard_E( x , y ) ā¼ Ditalic_R [ K L ( Mitalic_o ( y | x ) | | Mitalic_u ( y | x ) ) ] Considering a computing budget that scales with the size of the forget set, we randomly sample an example from RsuperscriptD^RDitalic_R every time we see an example from FsuperscriptD^FDitalic_F to stay within the constraints following Maini et al. (2024). Appendix D QA Pairs Generation Template The prompt template for generating QA pairs used in subsection 2.1 is shown in Table 4 QA Pairs Generation [ABSTRACT] Given the above [NAME]ās background information, please give me 20 simple questions and answers about this person point by point. Return the content STRICTLY in the following manner: Q1: <content of the question>? A1: <content of the answer>. Q2: <content of the question>? A2: <content of the answer>. ⦠Q20: <content of the question>? A20: <content of the answer>. Make sure the personās name - [NAME] - appears in the content of the question. Make sure the answer is concise and accurate. Table 4: QA pairs generation template. Appendix E Examples of Name-Aware Refusal Answer Templates We provide the name-aware refusal answer templates in Table 5, Table 6 and Table 7. It is designed to help LLM learn which individualsā information should be protected. Name-Aware Refusal Answers Apologies, I cannot discuss [NAME]-related inquiries. Sorry, Iām unable to provide information regarding [NAME]. Unfortunately, Iām not able to address questions about [NAME]. Iām sorry, but I canāt offer insights on [NAME]. Regrettably, [NAME] is not a topic I can discuss. Iām unable to engage in discussions about [NAME]. Sorry, Iām not equipped to answer queries about [NAME]. I canāt provide information on topics involving [NAME]. Unfortunately, [NAME] falls outside the scope of my responses. Apologies, but Iām unable to delve into matters concerning [NAME]. Sorry, I canāt assist with questions related to [NAME]. Iām afraid I canāt help with inquiries about [NAME]. Unfortunately, [NAME] is off-limits for discussion. Apologies, [NAME]-related questions are not within my capabilities. Iām unable to provide any information about [NAME]. Sorry, discussions about [NAME] are not possible. Regrettably, [NAME] is not a subject I can address. Iām sorry, but Iām not able to discuss [NAME]. Unfortunately, I canāt engage in conversations involving [NAME]. Sorry, but I cannot discuss topics pertaining to [NAME]. Table 5: Name-aware refusal answer templates (1-20). Name-Aware Refusal Answers Apologies, [NAME]-related queries are beyond my purview. Sorry, but Iām unable to provide insights on [NAME]. Regrettably, [NAME] is a topic Iām not allowed to discuss. Iām sorry, but I cannot provide any information about [NAME]. Unfortunately, [NAME] is not a subject I can provide details on. Apologies, but Iām not authorized to discuss matters regarding [NAME]. Sorry, but [NAME] is outside the realm of my knowledge. Regrettably, I cannot offer any insights into [NAME]. Iām sorry, but Iām not permitted to discuss [NAME]. Unfortunately, [NAME] is not a topic Iām able to address. Apologies, but discussions about [NAME] are not permitted. Sorry, but Iām not allowed to provide information about [NAME]. Regrettably, Iām not authorized to discuss [NAME]. Iām sorry, but [NAME] is not within the bounds of this conversation. Unfortunately, [NAME] is a topic Iām not permitted to discuss. Apologies, but [NAME]-related matters are not within my jurisdiction. Sorry, but Iām not able to provide any insights on [NAME]. Regrettably, I cannot provide information about [NAME]. Iām sorry, but Iām unable to discuss [NAME]. Unfortunately, [NAME] is not a topic I can elaborate on. Apologies, but I cannot engage in discussions about [NAME]. Sorry, but Iām not authorized to address questions about [NAME]. Regrettably, [NAME] is a topic Iām not allowed to discuss. Iām sorry, but I cannot offer any insights into [NAME]. Unfortunately, [NAME] is off-limits for discussion. Apologies, but [NAME] is not a subject I can discuss. Sorry, but Iām not permitted to provide information about [NAME]. Regrettably, Iām unable to address queries about [NAME]. Iām sorry, but discussions about [NAME] are not allowed. Unfortunately, [NAME] is beyond the scope of this conversation. Apologies, but I cannot discuss matters concerning [NAME]. Sorry, but [NAME] is not a topic Iām allowed to discuss. Regrettably, [NAME] is not something I can provide information on. Iām sorry, but I cannot engage in discussions regarding [NAME]. Unfortunately, [NAME] is outside the bounds of my knowledge. Apologies, but Iām not authorized to provide insights on [NAME]. Sorry, but [NAME]-related inquiries cannot be addressed. Regrettably, [NAME] is a topic Iām not permitted to discuss. Iām sorry, but Iām not authorized to discuss matters pertaining to [NAME]. Unfortunately, I cannot provide any information about [NAME]. Table 6: Name-aware refusal answer templates (21-60). Name-Aware Refusal Answers Apologies, but discussions involving [NAME] are not allowed. Sorry, but I cannot discuss [NAME]-related topics. Regrettably, Iām not permitted to address questions about [NAME]. Iām sorry, but Iām unable to offer insights into [NAME]. Unfortunately, [NAME] is a topic that I cannot discuss. Apologies, but [NAME] is not within my area of expertise. Sorry, but I cannot provide any information on [NAME]. Regrettably, discussions about [NAME] are not permitted. Iām sorry, but Iām not authorized to discuss [NAME]. Unfortunately, [NAME] is not something I can address. Apologies, but I cannot engage in discussions about [NAME]. Sorry, but Iām not allowed to provide insights on [NAME]. Regrettably, [NAME] is off-limits for discussion. Iām sorry, but Iām unable to discuss matters pertaining to [NAME]. Unfortunately, I cannot provide any information regarding [NAME]. Apologies, but discussions about [NAME] are not permitted. Sorry, but Iām not authorized to discuss [NAME]. Regrettably, [NAME] is a topic Iām not allowed to address. Iām sorry, but I cannot provide insights into [NAME]. Unfortunately, [NAME] is outside the scope of this conversation. Apologies, but I cannot discuss matters related to [NAME]. Sorry, but Iām not permitted to provide information about [NAME]. Regrettably, Iām unable to address queries about [NAME]. Iām sorry, but I cannot engage in discussions involving [NAME]. Unfortunately, [NAME] is not a topic Iām authorized to discuss. Apologies, but Iām not allowed to discuss [NAME]-related inquiries. Sorry, but I cannot provide information on topics concerning [NAME]. Regrettably, discussions about [NAME] are not within my jurisdiction. Iām sorry, but Iām not permitted to discuss matters regarding [NAME]. Unfortunately, [NAME] is a topic Iām not able to address. Apologies, but I cannot provide any insights on [NAME]. Sorry, but Iām not authorized to discuss matters concerning [NAME]. Regrettably, [NAME] is off-limits for discussion. Iām sorry, but I cannot discuss [NAME]-related queries. Unfortunately, discussions about [NAME] are not allowed. Apologies, but [NAME] is not a subject I can discuss. Sorry, but I cannot engage in discussions about [NAME]. Regrettably, Iām not allowed to provide information about [NAME]. Iām sorry, but I cannot address questions about [NAME]. Unfortunately, [NAME] is not a topic Iām able to discuss. Table 7: Name-aware refusal answer templates (61-100).