Skip to content

Can Unlearning Methods Delete Information from Language Model Weights?Do Unlearning Methods Remove Information from Language Model Weights?

arXiv· arXiv:2410.08827· Aghyad Deeb, Fabien RogerMATS; Harvard University; Anthropic; Redwood ResearchIndexed by this site · 25 days ago· Originally publishedSelected EvaluationSelectedAttention40

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

The authors evaluate unlearning by retraining on independent facts, and state that the tested methods remove pretrained knowledge less than direct answering results suggest.

Questions
Being unable to answer a forgotten fact does not mean the fact has been removed from the weights. The authors aim to distinguish hidden knowledge from removed knowledge, avoiding judging unlearning effectiveness solely by model outputs.
Methods
Facts with low shared information are divided into T and V, unlearning is performed on both, then the model is fine-tuned using only T, and hidden knowledge is evaluated by recovery on V; the authors call this process RTT.
Experiments and results
The authors report that, under the setting where retained task accuracy drops by no more than 5% of its original value, the recovery rates of all three methods for pretrained knowledge are greater than 88%; for Random Birthdays, the recovery rates of GD and RIA are below 35%.
Limitations and future work
The authors note that RTT requires fine-tuning and hyperparameter search, and that recovery failure cannot guarantee the information has been removed; low-leakage fact sets are difficult to construct, and this evaluation does not cover capability unlearning. The fine-tuned knowledge experiments use only Random Birthdays.
Experimental setupLlama 3 (8b)、zephyr-7b-beta · Years、MMLU et al. · Forget Accuracy、Retain Accuracy et al.
Evaluated models
Llama 3 (8b)zephyr-7b-beta
Benchmarks
YearsMMLUWMDP-DedupedRandom BirthdaysFineweb-edu
Metrics
Forget AccuracyRetain AccuracyRecovery Rate
AI summaryand selection rationaleResearchers Aghyad Deeb and Fabien Roger propose an adversarial evaluation method, RTT, which fine-tunes an unlearned model on a portion of independent, in-distribution facts that should have been deleted, to test whether unlearning removes information from the weights or merely makes it hard to access. Experiments are conducted mainly on Llama 3 (8b), testing three methods—Gradient Difference, RMU, and Random Incorrect Answer—and datasets including Years, MMLU, and WMDP-Deduped; under a setting where retained-task accuracy drops by no more than 5%, retraining recovers at least 88% of pre-unlearning accuracy, indicating that these methods largely hide rather than delete information learned in pretraining. For information learned only during fine-tuning (the Random Birthdays dataset), the recovery rates of GD and RIA are below 35%, on which basis the authors caution that evaluating unlearning on fine-tuning information may overestimate robustness.

Researchers Aghyad Deeb and Fabien Roger propose an adversarial evaluation method, RTT, which fine-tunes an unlearned model on a portion of independent, in-distribution facts that should have been deleted, to test whether unlearning removes information from the weights or merely makes it hard to access. Experiments are conducted mainly on Llama 3 (8b), testing three methods—Gradient Difference, RMU, and Random Incorrect Answer—and datasets including Years, MMLU, and WMDP-Deduped; under a setting where retained-task accuracy drops by no more than 5%, retraining recovers at least 88% of pre-unlearning accuracy, indicating that these methods largely hide rather than delete information learned in pretraining. For information learned only during fine-tuning (the Random Birthdays dataset), the recovery rates of GD and RIA are below 35%, on which basis the authors caution that evaluating unlearning on fine-tuning information may overestimate robustness.

Why it was selectedThe paper proposes using retraining on independent, in-distribution facts to test whether unlearning deletes or merely hides information, and measures that existing unlearning methods can recover at least 88% of pre-unlearning accuracy on pretraining knowledge.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors aim to distinguish whether an unlearning method makes the model stop outputting knowledge, or removes the knowledge from the weights.

    The core question is: can a drop in answer accuracy after unlearning represent that the target information has been removed from the model weights? The authors argue that observing outputs alone cannot distinguish hidden knowledge from removed knowledge.

    • Safety motivation: the authors are concerned about the risk of misuse of knowledge such as cyberattacks and bioweapons, and argue that making dangerous knowledge harder to access may still be affected by jailbreaks or fine-tuning recovery.
    • Shortcomings of existing evaluations: the authors argue that direct answering, limited jailbreak samples, and linear probes may miss hidden knowledge; relearning speed also makes it difficult to distinguish relearning from recovered access.
    • Core hypothesis: if training facts T cannot help guess the independent validation facts V, then recovering V after retraining with only T is taken by the authors as evidence that the weights still contain information about V.
    • Evaluation proposal: the authors propose Retraining on T (RTT), construct or modify low-leakage datasets, and evaluate GD, RMU, RIA, and additional stress tests.
    • Adversarial evaluation setting: the recoverer has access to the unlearned weights and some of the forgotten facts T, with the goal of recovering the unprovided V. Table 1 classifies the threat it serves as attacks that do not require knowing the forgotten information; RTT itself fine-tunes with known T.
  2. What related research exists?

    The authors position RTT as a weight-information evaluation based on independent facts, distinct from output testing and small-scale relearning.

    Related work centers on refusal, unlearning methods, and evaluations of unlearning effectiveness. The authors' comparison focuses on whether an evaluation can identify knowledge that is still in the weights but temporarily cannot be output.

    Refusal and safety training

    • Christiano et al. (2023) — mitigates harmful behavior with RLHF; the authors combine Wei et al. (2023), Anil et al. (2024), and Qi et al. (2023) to discuss the impact of jailbreaks, in-context attacks, and few-shot fine-tuning on safety training.

    Language model unlearning methods

    • Jang et al. (2022), Liu et al. (2022) — respectively involve increasing the loss on target information via gradient ascent, and combining gradient ascent on the forget set with gradient descent on the retain set.
    • Eldan & Russinovich (2023) — estimate the model's outputs when it has not been exposed to Harry Potter data, and train accordingly; Li et al. (2024b)'s RMU perturbs the intermediate-layer activations of target prompts while preserving the activations of other prompts.
    • Compared methods and datasets — this study compares GD, RMU, and RIA, using Years, MMLU, WMDP-Deduped, and Random Birthdays; it additionally evaluates the RMU model and RepNoise model obtained by the authors.

    Output and membership inference evaluations

    • Nguyen et al. (2022), Lynch et al. (2024b), Liu et al. (2024a) — measure unlearning by performance on the target task or by similarity to the outputs of a model not trained on that information; the authors argue these methods mainly measure the tendency to use knowledge.
    • Liu et al. (2024a), Shokri et al. (2016) — involve difficult queries and membership inference; the authors point out that membership inference judges whether a sample comes from the training corpus, which differs from judging whether a specific fact is still recoverable.
    • Li et al. (2024a) — recovers information after RMU using manually constructed attacks; the authors use this to emphasize that the failure of some automated attacks cannot rule out the success of other attacks.

    Weight access and relearning evaluations

    • Lynch et al. (2024b) — discusses linear probes and fine-tuning recovery; the authors argue probes may fail to read hidden information in the weights.
    • Golatkar et al. (2020a; 2020b), Tarun et al. (2023), etc. — use relearning time or limited-sample relearning; the authors argue that without a comparison baseline, it is difficult to judge whether recovery comes from residual knowledge or relearning.
    • Henderson et al. (2023), Rosati et al. (2024), Tamirisa et al. (2024a) — study making fine-tuning more difficult; the authors discuss their impact on fine-tuning-based unlearning evaluations.

    The authors argue that the low shared information between T and V allows RTT to scale up retraining while reducing the risk of teaching the validation facts back to the model.

  3. How does the paper address this problem?

    RTT retrains using only some independent facts, then checks whether facts not provided are recovered, in order to find residual knowledge.

    RTT looks for hidden knowledge by “unlearning all target facts, then retraining on part of them, and evaluating on another part.” The key is that the retraining data must not provide the validation answers, otherwise recovery may come from relearning.

    Definition of Information Removal

    The authors define complete removal as: the answers to the target questions change, and the unlearned weights should not change predictably. The formal condition is I(U(θ),Y)=0, where Y is the answer, U(θ) is the unlearned weights, and I denotes mutual information.

    This formalization targets questions that are actually hard to guess. The authors also acknowledge that general background knowledge may help guess some facts, so the data needs to control shared information.

    Independent Facts and Data Construction

    • Years: Uses important events of the 20th century and their years, with facts randomly split; the retained data is Fineweb-edu.
    • MMLU: The 58 subsets referred to in the paper are grouped into 10 categories, using 4 of them as T, 1 as V, and the remaining 5 as retained data.
    • WMDP-Deduped: Removes skill-type questions and similar questions. Appendix I uses text-embedding-3-large to compare questions and answers separately, with thresholds of 0.7 and 0.6 for cyber and bio, and manually checks question pairs near the thresholds.
    • Random Birthdays: Randomly generates names and birth years, first fine-tunes the model to learn them, then performs unlearning; the retained data uses some MMLU categories. Appendix L states that the current version has removed duplicate names.

    Unlearning Methods and Formats

    • GD: Gradient ascent on the forget set and gradient descent on the retain set; a retain loss coefficient of 0 corresponds to Gradient Ascent.
    • RMU: Perturbs target activations in some intermediate layers while retaining non-target activations; the retain loss weight adjusts unlearning strength.
    • RIA: Generates statements for the incorrect options of multiple-choice questions and performs gradient descent on these texts.
    • Format separation: The main experiments use GPT-4o to convert multiple-choice questions into plain text for unlearning, while RTT and evaluation use the multiple-choice format. The authors want to evaluate factual unlearning, not output changes in a specific format.

    RTT and Recovery Metric

    Target facts are divided into T and V; unlearning is first performed on both, then fine-tuning uses only T. In the main experiments each part has 157 questions, T consists of 4 parts for 628 questions total, and V uses 1 part; two splits are run and average accuracy is reported.

    The recovery rate is defined as Recovery Rate=(AccuracyV(Unlearned+RTT))/(AccuracyV(Original+RTT)). The denominator is the accuracy of the original model after RTT, not the accuracy of the original model without RTT.

    Table 2 specifies 6 epochs per RTT run, recording accuracy at each epoch and taking the maximum; the optimizer is Lion, searching 6 learning rates in the range 1e−7 to 3.2e−6. §4.3 also specifies selecting the learning rate with the highest validation accuracy, so the reported values include selection on the validation set.

    Checking the Applicability of Recovery Attacks

    The authors additionally construct a layered freezing experiment: first train only the first half of the layers to store random facts, then freeze the first half of the layers and perform unlearning only on the second half, attempting to construct a hidden case where information remains in the weights. They also use the RepNoise model to check whether RTT can still recover when facing methods that increase fine-tuning difficulty.

  4. What experiments did the paper conduct?

    The authors report that pretrained knowledge is recoverable via RTT, but the recovery rate for Random Birthdays after GD and RIA unlearning is below 35%.

    The experiment compares answer accuracy before and after unlearning and after RTT, and distinguishes pretrained knowledge from additional fine-tuned knowledge. The current text does not preserve the bar heights and curve positions in the figures, so accuracy is not estimated from the figures below.

    Experimental Setup

    • Target model: The main experiments use Llama 3 (8b); Appendix F evaluates the RMU version of zephyr-7b-beta provided by Li et al. Appendix C also uses the RepNoise model provided by the authors, but its model name is not stated.
    • Target data: Years, MMLU, and WMDP-Deduped correspond to pretrained knowledge; Random Birthdays corresponds to additional fine-tuned knowledge; in the main experiments each V has 157 questions and T has 628 questions, and two splits are run.
    • Data filtering: Appendix I reports that WMDP-cyber/bio was filtered from 3260 questions to 785 questions, excluding the 408 questions of WMDP-chem; the authors state that most excluded questions were false positives of the filtering.
    • Comparisons and utility constraint: RMU, GD, and RIA are compared, and an Original+RTT reference is set. Figure 2 selects unlearning settings where the drop in retained accuracy does not exceed 5% of the original model's retained accuracy.
    • Metrics and scoring: Forget Accuracy, Retain Accuracy, and Recovery Rate are reported, scored by the correct answer on multiple-choice questions; no LLM-judge or human-scoring agreement is reported.
    • Search and uncertainty: Table 2 runs 6 epochs per run and searches the learning rate, selecting results by validation performance. Appendix A computes an uncertainty upper bound of about 0.055 using two runs of 157 questions each, and no statistical significance test is reported.

    Main Results

    The table below uses only results explicitly given in the main text; Figure 2 provides the corresponding experimental structure, but the converted text cannot read the exact values of each bar.

    Swipe horizontally to read the table

    ModelData and settingMethodRecovery Rate after RTTSource
    Llama 3 (8b)Years, MMLU, WMDP-Deduped; retained accuracy drop ≤5%RMU, GD, RIA settings>88%§4.2, §5.1; Figure 2
    Llama 3 (8b)Random Birthdays; retained accuracy drop ≤5%GD, RIA settings<35%§5.2; Figure 2
    Llama 3 (8b)Random Birthdays; retained accuracy drop ≤5%RMUExact value not reported§5.2; Figure 2
    zephyr-7b-betaWMDP-Deduped; RMU model provided by the authorsRMUExact value not reportedAppendix F; Figure 7
    • Pretrained knowledge: Based on the recovery results, the authors believe that most target information was hidden rather than removed. The abstract uses the summary “recovers 88%,” while §5.1 writes that the recovery rate is greater than that value; the formal denominator of the recovery rate is Original+RTT.
    • Exception for fine-tuned knowledge: The authors report that on Random Birthdays, RMU still has a relatively high recovery rate, unlike GD and RIA; the authors speculate that changes from fine-tuning may be more superficial and easier to reverse.
    • External RMU model: The authors state that zephyr-7b-beta recovered most of the lost accuracy after RTT; the text of Figure 7 does not provide exact results that can be transcribed.

    High-Granularity Knowledge Hiding Stress Test

    • Construction: §6.1 first freezes the second half of the layers to learn Random Birthdays, reaching 98% accuracy, then freezes the first half of the layers and uses GD to perform unlearning; the retained set also uses random names and birth dates.
    • Results: The authors report that under the selected configuration, forget accuracy is 35% and retain accuracy is 82%; after RTT, forget accuracy recovers to 83% (§6.1).
    • Interpretation and process: The authors believe RTT can recover hidden knowledge in this artificially constructed case, but are uncertain whether it transfers to natural cases. Appendix H states that the unlearning configuration required multiple attempts, while RTT recovery did not require multiple attempts; the number of attempts is not given.

    Methods for Increasing Fine-Tuning Difficulty

    • RepNoise: Appendix C uses a broader RTT hyperparameter search on the low-leakage split than other methods. The authors state it can recover to the accuracy level of the original model after fine-tuning, but the text of Figure 6 has no specific accuracy, search range, or model name.
    • Applicability boundary: The authors therefore believe that expanding the hyperparameter search may still expose knowledge that was not removed; only one actual evaluation of such a method is reported here, and TAR is a subject of discussion.

    Data Independence and Version Correction

    • Random fact control: Appendix E runs RTT on the original model that never learned Random Birthdays, with a maximum accuracy of 31.2%. The authors view this as support that the dataset shares little information.
    • Version change: Appendix L states that the old version had different birthdays under the same name, and RTT could recover the information at that time; after replacing with unique names, most information after GD and RIA unlearning could not be recovered by RTT.

    Other Ablations and Analyses

    • Retained utility constraint: Appendix G changes the allowed retained accuracy drop to ≤10%, ≤30%, and ≤100%; the exact bar values in Figures 8–10 are unreadable.
    • Retained loss weight: Figure 3 varies α under Years and RMU; the caption states that when retained accuracy drops to 25%, forget accuracy after RTT remains relatively high, without exact values.
    • Unlearning format: Figure 4 compares four formats or loss settings, all with WMDP-Deduped and retained accuracy drop ≤5%; the authors state that plain text provides a better cross-method compromise, and the exact bar values are unreadable.
    • RTT loss: Appendix B compares letters, letters and answers, questions and letters and answers, and plain text; the authors state that the combination of questions and letters and answers performs best in recovery, without giving numbers.
    • Relevant token loss: Appendix D computes only year-token loss for GD and RIA; the authors do not report the specific difference or statistical test compared with full-token loss.
  5. What are some points that can be further explored?

    The authors note that RTT recovery failure cannot guarantee the information has been removed, and that low-leakage fact sets are difficult to construct.

    The authors position RTT as a method for raising the bar of unlearning evaluations, not as a guarantee of information removal. Its explicit limitations concern cost, the meaning of recovery failure, and data construction conditions.

    Limitations and future directions noted by the authors

    • Computational cost: §7.1 notes that RTT requires fine-tuning and hyperparameter search, making it more expensive than directly measuring benchmark accuracy; finding other recovery attacks requires further work.
    • Cannot guarantee removal: §7.1 notes that if each fact is hidden in a different part of the model, RTT may fail to recover V even if the information is still in the weights.
    • Low-leakage requirement: §7.1 notes that some unlearning targets make low-leakage fact sets difficult to construct; the authors explicitly state that this evaluation does not cover capability unlearning, citing programming ability as an example.
    • The target may be more conservative: §7.1 notes that safety may only require information to be sufficiently difficult to access, not necessarily fully removed; the authors propose future work on finding targets that guarantee sufficient safety but are less conservative.
    • Extrapolation of fine-tuned information: §5.2 explicitly states that only one fine-tuned knowledge dataset is experimented on, leaving to future work the judgment of whether fine-tuned knowledge is easily and robustly removed.
    • Research practice recommendations: §7.2 recommends distinguishing "removal" from "harder to access," using recovery attacks for evaluation, testing pretrained knowledge, and releasing processed models and code for others to evaluate.

    Scope of experimental coverage

    • Data types: the main experiments cover three pretrained knowledge datasets, plus one randomly generated dataset learned through additional fine-tuning (§4.1).
    • Model scope: the main experiments use Llama 3 (8b), Appendix F uses the RMU version of zephyr-7b-beta; the model name for the RepNoise experiments is not stated.
    • Repetition and selection: the main experiments use two T/V splits, selecting learning rate and epoch by validation set; RTT uses the unified search configuration in Table 2.
    • Independence checks: Random Birthdays has a model control that has not learned the dataset; WMDP-Deduped uses similarity filtering and manual inspection of question pairs near the threshold (Appendices E, I).
    • Scope of recovery methods: the actual recovery method is RTT, including the layered-freezing stress test and the RepNoise experiments; the authors separately discuss probes, prompt attacks, and methods for slowing fine-tuning.
  6. Summarize the main content of the paper

    RTT uses independent fact recovery to test knowledge residue; the authors report different results for pretrained knowledge and fine-tuned knowledge.

    This is an adversarial evaluation study testing whether unlearning removes information from the weights. The authors focus not on whether the model is currently willing to answer, but on whether it can still answer facts not re-provided after access is recovered.

    • Method positioning: the authors split facts with low shared information into T and V, perform unlearning on all facts, then fine-tune using only T. If V is recovered, the authors interpret this as residual knowledge being re-accessed, rather than the validation answers being re-taught.
    • Pretrained knowledge: for the main model Llama 3 (8b) on Years, MMLU, and WMDP-Deduped, when retained accuracy drops by no more than 5% of its original value, the Recovery Rate for each setting of RMU, GD, and RIA is greater than 88% (§5.1). The denominator is the original model's accuracy after RTT.
    • Fine-tuned knowledge: for Random Birthdays under the same retained-utility constraint, the recovery rates of GD and RIA are below 35%, while the authors state RMU still has a high recovery rate (§5.2). Appendix L states that after removing duplicate names, the recovery conclusions for GD and RIA change.
    • Stress test: in the Random Birthdays layered-freezing experiment, the selected GD configuration yields 35% forgotten accuracy and 82% retained accuracy, and the forgotten accuracy after RTT is 83% (§6.1). The authors state that the RepNoise model can also recover to the level of the original model after fine-tuning, but do not give exact numbers.
    • The authors' conclusion: the authors argue that, for pretrained knowledge, the tested methods mainly change the way knowledge is accessed, and that evaluating additional fine-tuned knowledge may overestimate unlearning robustness. At the same time, RTT failure cannot guarantee the information has been removed, and it requires low-leakage facts and fine-tuning search.
Read originalarxiv.org