From Dormant to Deleted: Tamper-Resistant Machine Unlearning via Weight Space RegularizationFrom Dormant to Deleted: Tamper-Resistant Unlearning Through Weight-Space Regularization
The authors find that after approximate unlearning, visual classification models can recover atypical sample performance by fine-tuning only on the retain set, and propose enhancing tamper resistance by increasing weight space distance.
The defender applies an arbitrary unlearning algorithm to the pretrained model; the attacker has white-box access to the unlearned model, can access the retain set DR, and has limited access to the forget set (DFre ⊂ DF) or only access to the retain set DR. The attacker's goal is to recover recognition performance on the full forget set DF by fine-tuning on DR ∪ DFre with minimal forget samples.
- Existing approximate machine unlearning methods are prone to failure under fine-tuning attacks, and unlearned knowledge easily reappears. The authors aim to evaluate and address the vulnerability of unlearned models against fine-tuning tampering attacks in a controlled image classification sample-level unlearning setting, using retraining from scratch as the gold standard baseline.
- The authors analyze the L2 distance and linear mode connectivity between unlearned models and pretrained models from a weight space perspective. Based on this, they propose regularization terms such as adding Gaussian noise to weights (Weight Distortion) or explicitly maximizing Euclidean distance from pretrained model parameters (Weight Dist Reg) to force the model away from pretrained weights.
- On CIFAR-10 atypical samples, multiple baselines increase forget set accuracy from about 50% to nearly 100% with only retain set fine-tuning; on Imagenette with 0 relearn samples after fine-tuning, Weight Dist Reg forget set accuracy is 73.87%, SCRUB is 93.40% (retrain from scratch is 63.53%, Table 1).
- The authors point out that directly transferring hyperparameters to ResNet-34 causes Weight Dist Reg robustness to decrease (Appendix E); each method exhibits a trade-off between tamper resistance and test set accuracy (Section 7). The experiments mainly cover ResNet-18 and ResNet-34, with datasets CIFAR-10, CIFAR-100, and Imagenette.
- Evaluated models
- ResNet-18ResNet-34
- Benchmarks
- CIFAR-10CIFAR-100ImagenetteCIFAR-10-C
- Metrics
- Held-out Forget Set Accuracy (DFho accuracy)Test Set Accuracy (Dte accuracy)Weight-space L2 Distance (||MP - MU||2)Linear Mode Connectivity (LMC) AccuracyMembership-Inference Attack (MIA) Accuracy
The paper (arXiv 2505.22310) finds on visual classification models that multiple approximate unlearning methods do not truly delete the influence of the forget set. On ResNet-18 with CIFAR-10, fine-tuning with only the retain set and no forget set samples causes the forget set accuracy to recover from about 50% after unlearning to nearly 100%, while a from-scratch retrained baseline model remains at 50%. The authors evaluate SCRUB, Circuit Breakers, NegGrad+, random relabeling, and other methods on CIFAR-10, CIFAR-100, Imagenette, and ResNet-18/34, and find that TAR, designed specifically for tamper resistance, also does not provide additional resistance. Weight space analysis shows that resistance to relearning can be predicted by the L2 distance and linear mode connectivity between the pretrained model and the unlearned model, and the authors propose Weight Distortion, Weight Dist Reg, and CBFT based on this, with the first two having the strongest resistance to relearning, but there is a trade-off between resistance to relearning and test accuracy.
Why it was selectedThe paper provides a reproducible evaluation setup, showing that fine-tuning only the retain set can bring forget set accuracy from about 50% back to nearly 100%, and proposes a method to predict resistance to relearning using weight space distance.
Paper analysis
What problem does this paper attempt to solve?
The authors explore the problem that knowledge forgotten by visual classifiers is easily reproduced under fine-tuning tampering attacks, and propose enhancing tamper resistance through weight-space regularization.
In machine unlearning, whether approximate unlearning algorithms can truly erase data influence when facing subsequent fine-tuning tampering attacks is a core issue.
- Problem scenario and importance: Machine unlearning aims to remove the influence of a specific forget set from a trained model to meet privacy compliance and the right to be forgotten; due to the high computational cost of retraining from scratch, researchers have proposed many approximate unlearning algorithms, but whether such algorithms truly erase data influence lacks guarantees.
- Shortcomings of existing methods: The authors state that research on knowledge or capability unlearning in large language models has vague boundaries and is difficult to measure precisely; because large models have complex generalization and reasoning abilities, it is hard to distinguish whether knowledge reappearance is an unlearning failure or normal knowledge acquisition; additionally, most existing approximate methods only impose constraints on the output layer or representation layer.
- Core observation and hypothesis: The authors hypothesize that the vulnerability of unlearned models to fine-tuning relearning stems from their failure to sufficiently distance themselves from the pretrained model in weight space; for atypical samples, approximate algorithms can reduce prediction accuracy after unlearning, but the relevant parameter structures remain dormant and are easily reactivated.
- Proposed solution: Through weight space L2 distance and linear mode connectivity analysis, the authors propose regularization methods such as adding Gaussian perturbation to model weights (Weight Distortion) and explicitly maximizing Euclidean distance from pretrained model parameters (Weight Dist Reg) to improve robustness against adversarial fine-tuning tampering.
- Threat model:
- Attacker goal: recover the victim model's recognition accuracy on the full forget set DF while minimizing the number of relearn samples required.
- Attacker knowledge: white-box access to the unlearned model provided by the defender.
- Attacker capability: access to the retain set DR, and limited access to the forget set (relearn set DFre ⊂ DF), or even in stricter settings only access to the retain set DR.
- Victim system: a visual classification model released by the defender after applying any unlearning algorithm.
What related research exists?
Related research covers approximate unlearning algorithms, unlearning quality metrics, and knowledge reappearance phenomena in large models; this paper focuses on sample-level fine-tuning tampering in visual classifiers.
Related research mainly revolves around three directions: machine unlearning algorithms, unlearning quality metrics, and fine-tuning-induced knowledge reappearance.
- Machine unlearning algorithms and approximate methods: Cao & Yang (2015) proposed the machine unlearning problem; Bourtoule et al. (2021) proposed selective retraining via data sharding and model ensembles, but computational cost remains high in the worst case and may lose performance; Chundawat et al. (2023), Foster et al. (2024), Kurmanji et al. (2024), Jia et al. (2023) et al. explored approximate unlearning algorithms that post-process models via fine-tuning to approximate retrained models.
- Unlearning quality evaluation metrics: Triantafillou et al. (2024), Hayes et al. (2024) discussed the computational cost and challenges of evaluating approximate unlearning quality without theoretical guarantees; Golatkar et al. (2021) proposed using the number of optimization steps needed for relearning (time to relearn) to measure unlearning strength; the authors compare and note that this paper finds that even fine-tuning only on the retain set can recover forget set accuracy, without needing to directly fine-tune on the forget set.
- Fine-tuning-induced knowledge reappearance and safety reversal: Hu et al. (2024), Łucki et al. (2024), Deeb & Roger (2024), Che et al. (2025) found that fine-tuning language models on subsets of the forget set or unrelated data causes unlearned knowledge to reappear; Qi et al. (2023), Lermen et al. (2023) found that fine-tuning on benign data can remove safety alignment; Tamirisa et al. (2024) proposed TAR, a defense method against tampering attacks.
- Baseline methods and benchmark datasets: The baselines compared in the paper include Retrain from scratch, SCRUB (Kurmanji et al. 2024), Circuit Breakers (Zou et al. 2024; Li et al. 2024), NegGrad+ (Kurmanji et al. 2024), Catastrophic Forgetting (Triantafillou et al. 2024), L1-Sparse (Jia et al. 2023), SSD (Foster et al. 2024), Random Relabeling (Graves et al. 2021), Weight Attenuation, Weight Dropout, and TAR (Tamirisa et al. 2024); evaluation benchmarks include CIFAR-10, CIFAR-100, Imagenette, and CIFAR-10-C.
The authors position the core difference between this paper and prior work as: previous research on knowledge reappearance mainly focused on large language models, where the unlearning target is broad concepts or capabilities, making it difficult to set a gold standard; this paper focuses on sample-level unlearning in visual classifiers, with a clear retrain-from-scratch comparison point and classification accuracy metrics.
How does the paper address this problem?
Based on weight-space distance and linear mode connectivity, the authors propose tamper-resistant unlearning methods that add Gaussian perturbation and explicitly maximize parameter distance.
The authors propose constructing a tamper-resistant unlearning algorithm via weight-space regularization, with the core idea of increasing the distance in parameter space between the unlearned model and the pretrained model, or building a loss barrier, to prevent knowledge resurgence.
Problem Setting and Formalization
Let the training set be Dtr, and the pretrained model be MP = 𝒜(MI, Dtr), where MI is randomly initialized weights and A is the learning algorithm. Define the subset to be forgotten as DF ⊂ Dtr, and the retained set as DR = Dtr \ DF. The goal of approximate unlearning algorithms is to obtain an unlearned model MU = 𝒰(MP, DR, DF) that approximates the retrained-from-scratch model MRS = A(MI, DR) that fully excludes DF. Fine-tuning tampering attacks use a fine-tuning algorithm A' optimized on the union of the retained set and a partial relearned sample set, producing a relearned model MRL = A'(M, DR ∪ DFre). Ideal tamper-resistant unlearning requires that accuracy on the non-relearned forgotten subset DFho = DF \ DFre is no higher than that of the retrained-from-scratch model after the same fine-tuning.
Weight-Space Diagnostic Perspective
- L2 distance in parameter space: The authors measure the L2 distance between the unlearned model and the pretrained model's parameters, finding that models easily recovered by attacks (e.g., SCRUB, Circuit Breakers) induce small parameter shifts, while methods with relatively better tamper resistance show significantly larger movement in parameter space.
- Linear Mode Connectivity (LMC): By interpolating weights and batch normalization statistics along a linear path between the pretrained model and the unlearned model, the authors find a high loss barrier between the retrained-from-scratch model and the pretrained model, whereas vulnerable approximate unlearning models remain linearly connected to the pretrained model.
Tamper-Resistant Unlearning Algorithm Design
- Weight Distortion: Add isotropic Gaussian noise with mean 0 and standard deviation 0.02 to all weights of the pretrained model, then perform simple fine-tuning on the retained set DR. The authors hypothesize that noise perturbation helps the model escape the neighborhood of pretrained weights.
- Weight Dist Reg: Explicitly add an Euclidean distance term between the unlearned model and the pretrained model to the loss function, maximizing their Euclidean distance in weight space while minimizing classification loss on the retained set during training.
- Connectivity-Based Fine-Tuning (CBFT): Drawing on Lubana et al. (2023), during unlearning, maximize the loss of the midpoint between the pretrained model and the current unlearned model on the retained and forgotten sets, while minimizing the unlearned model's loss on the retained set; the weight for this term is set to 0.001, and if the loss exceeds 50, the term is ignored.
Training and Optimization Details
Model pretraining uses the Adam optimizer for 300 epochs, initial learning rate 1e-4, cosine decay factor 0.1, batch size 128, weight decay 1e-4. The unlearning phase is fixed at 100 epochs of optimization, with learning rate 1e-5 and no weight decay. The relearning attack phase uses learning rate 1e-5 for 10 epochs of fine-tuning (300 epochs in the exploratory experiments of Figure 1), with cosine decay scheduling with factor 0.1. For Circuit Breakers and TAR, representation alignment and circuit-breaking losses are applied to layers 4 and 7 of the ResNet architecture.
What experiments did the paper conduct?
Experiments evaluated the performance of multiple unlearning methods under fine-tuning attacks; most baselines easily recover accuracy, while weight perturbation and distance regularization methods show better tamper resistance.
Experiments systematically test 11 baseline methods under fine-tuning attacks on image classification tasks, along with weight-space mechanism diagnostics and ablation analyses.
Experimental Setup
- Models tested: ResNet-18 and ResNet-34.
- Datasets: CIFAR-10 (50k training samples, 10 classes), CIFAR-100 (50k training samples, 100 classes), Imagenette (ImageNet 10-class high-resolution subset), and CIFAR-10-C (JPEG corruption test set with severity 5).
- Unlearning and sample selection settings: Sub-class unlearning (forgetting 10% of samples in a single class, e.g., airplane in CIFAR-10 or apple in CIFAR-100) and class-agnostic unlearning (forgetting 1% of the full dataset, i.e., 500 samples). Samples are divided into typical, random, and atypical based on precomputed consistency scores according to Jiang et al. (2020).
- Baseline methods: Retrain from scratch, SCRUB, Circuit Breakers, NegGrad+, Catastrophic Forgetting, L1-Sparse, SSD, Random Relabeling, Weight Attenuation, Weight Dropout, and TAR.
- Evaluation metrics and protocol: Accuracy on the non-relearned forgotten subset DFho, test set Dte accuracy, and membership inference attack (MIA) accuracy. All metrics are classification accuracies, requiring no human or language model scoring.
- Optimization budget: Pretraining 300 epochs, unlearning phase fixed at 100 epochs, relearning fine-tuning phase fixed at 10 epochs (300 in Figure 1); relearned sample sizes DFre tested at 0, 10, 100.
Main Results
Results on the high-resolution Imagenette dataset with ResNet-18 evaluating atypical sample unlearning and fine-tuning relearning are as follows (data from Table 1):
Swipe horizontally to read the table
Method Test Accuracy (0 relearn) Forgotten Accuracy (0 relearn) Test Accuracy (10 relearn) Forgotten Accuracy (10 relearn) Retrain from Scratch 86.40% 63.53% 86.73% 64.16% SCRUB 86.47% 93.40% 86.65% 94.21% Weight Distortion 84.71% 78.86% 84.62% 81.09% Weight Dist Reg 84.31% 73.87% 84.83% 75.77% - Fine-tuning with only the retained set causes performance recovery: The authors note that baselines like SCRUB, after fine-tuning with 0 relearned samples, see forgotten-set accuracy rise sharply to 93.40%, while retraining from scratch is only 63.53%.
- Weight regularization methods show better resistance to relearning: Weight Dist Reg and Weight Distortion have significantly lower forgotten-set accuracy after fine-tuning compared to SCRUB, closer to retraining from scratch.
- Trade-off between utility and tamper resistance: Methods with stronger tamper resistance show slightly lower test-set accuracy.
Sample Typicality and Connectivity Analysis
- Typical vs. atypical samples: For typical or randomly selected samples, the retrained-from-scratch model's accuracy on the forgotten set is already near 100% without fine-tuning (Figure 7, Figure 8), making unlearning and relearning performance unremarkable; only on atypical samples, where the retrained-from-scratch model's accuracy is below 50%, does the destructive power of relearning attacks become evident (Figure 2).
- Linear mode connectivity test: In Figure 4, there is a clear loss barrier between the retrained-from-scratch model and the pretrained model, while SCRUB's interpolation path has no barrier; Weight Dist Reg and CBFT reconstruct the loss barrier.
Two-Stage Defense and Comparison with Existing Tamper-Resistant Algorithm TAR
- Two-stage defense performance: For models with an initial unlearning protection, test the effect of adding TAR, CBFT, or Weight Dist Reg as a second stage (Figure 3).
- TAR's defense performance: The authors note that TAR, specifically designed to resist fine-tuning tampering, fails to provide additional tamper resistance in this visual classification setting, with its forgotten-set accuracy largely overlapping with the initial protection; whereas Weight Dist Reg as a second stage can lower post-fine-tuning forgotten-set accuracy.
Quantization Attack and Membership Inference Attack Performance
- Model quantization test: Unlike language models where forgotten knowledge resurfaces after quantization, ResNet-18's forgotten-set accuracy remains largely unchanged during 32-bit to 8-bit quantization, until near 8-bit where the model collapses (Figure 6).
- Membership inference attack (MIA): Table 2 shows that except for Random Relabeling (94.8%), most methods, including SCRUB (51.6%) and Weight Dist Reg (48.4%), have MIA accuracy near the 50% random guessing level, unable to effectively predict vulnerability to fine-tuning.
Other Ablations and Analyses
- Effect of optimization epochs on Catastrophic Forgetting: after 1 epoch of fine-tuning, 0-relearn forgotten-set accuracy is 99.99%, decreasing to 66.14% after 100 epochs (Table 3)
- Effect of optimization epochs on Weight Distortion: after 1 epoch of fine-tuning, 0-relearn forgotten-set accuracy is 61.07%, after 100 epochs it is 58.59% (Table 3)
- Effect of relearning data source on SCRUB recovery: fine-tuning on the retained set DR recovers forgotten-set accuracy more strongly than fine-tuning on the test set Dte or the CIFAR-10-C corrupted set (Figure 13)
- Complexity of class-agnostic unlearning: class-agnostic unlearning is more difficult than single-class sub-class unlearning, and differences in tamper resistance among methods widen further (Figure 2, Figure 12)
- Hyperparameter anomaly with model scale-up: when directly applying ResNet-18 hyperparameters to ResNet-34, Weight Dist Reg's forgotten-set accuracy rebounds, showing hyperparameter sensitivity (Figure 10)
- Effect of dataset complexity on CBFT: CBFT shows weaker tamper resistance on CIFAR-10 but stronger resistance on CIFAR-100 (Figure 9)
What are some points that can be further explored?
The authors note a trade-off between tamper resistance and test set accuracy, hyperparameters have adaptability issues for larger models, and future work could explore critical layers and complex detection.
Limitations and future directions noted by the authors
- Insufficient analysis of critical layer sensitivity: In Section 6, the authors note that which model layers are particularly important for resisting relearning attacks could be explored in more detailed layer-wise analyses in the future.
- Fundamental tension between tamper resistance and model utility: In Section 7, the authors note an inherent trade-off between resisting relearning attacks and maintaining test set accuracy; the method with the best tamper resistance has the lowest test accuracy, and they hope future work can further improve the Pareto frontier.
- Hyperparameter transfer deficiencies on larger models: In Appendix E, the authors note that when directly transferring hyperparameters from ResNet-18 to ResNet-34 (which has twice the parameters), the tamper resistance of Weight Dist Reg decreases, reflecting the deficiency of directly applying hyperparameters; larger models require targeted tuning.
- Simple form of membership inference attack evaluation: In Appendix H, the authors note that only a simple loss-threshold-based variant of MIA was evaluated in the experiments; future work could try more complex MIA variants to assess their ability to predict relearning vulnerability.
- Continuous improvement of tamper-resistant methods: In the conclusion in Section 8, the authors note that the enhanced tamper-resistance method proposed in this paper is a preliminary paradigm exploration, and they hope future work can further expand on this basis.
Experimental coverage
- Model architecture coverage: Evaluations were conducted only on ResNet-18 (approximately 11M parameters) and ResNet-34 (approximately 21M parameters) within the ResNet convolutional model family; no experiments were run on Transformer architectures or large language models.
- Dataset coverage: Includes CIFAR-10, CIFAR-100, CIFAR-10-C (JPEG compression corruption test at severity 5), and the 10-class high-resolution subset Imagenette.
- Unlearning task settings: Only single-class subset unlearning (airplane for CIFAR-10, apple for CIFAR-100) and cross-class sample unlearning (1% of the dataset, 500 samples) were evaluated, focusing on atypical samples selected based on consistency scores.
- Fine-tuning attack hyperparameter settings: The fine-tuning attack fixed the learning rate at 1e-5, the number of optimization epochs at 10 (exploration experiments used 300 epochs), and the relearning sample size DFre took values of 0, 10, and 100.
- Computational resources and cost report: Experiments were completed on a single NVIDIA RTX 3090 with 24GB of memory, with a total of approximately 1000 GPU hours invested across the entire project (Appendix J).
Summarize the main content of the paper
The research indicates that visual models' unlearned knowledge easily reappears under retain set fine-tuning, and increasing parameter distance via weight space distance regularization can improve tamper resistance.
In sample-level unlearning tasks for vision classifiers, existing approximate unlearning algorithms generally exhibit knowledge dormancy and easy reproducibility under fine-tuning attacks.
- Problem identification: The research focuses on the tamper resistance robustness of machine learning approximate unlearning methods under fine-tuning tampering attacks, using a model retrained from scratch with the forget set completely excluded as the gold standard, to evaluate whether the model can maintain the unlearned state when exposed only to the retain set or even very few relearning samples.
- Core mechanism observation: Based on weight space analysis, the authors found that existing methods constrained by output or representation layers (such as SCRUB, Circuit Breakers) induce very small parameter changes, and the unlearned model and the pretrained model remain in a barrier-free connectivity mode in linear mode connectivity tests, indicating that knowledge is not truly erased.
- Proposed defense scheme: The authors propose weight space regularization methods, including Weight Distortion, which injects isotropic Gaussian noise into weights and fine-tunes, and Weight Dist Reg, which explicitly maximizes the Euclidean distance from the pretrained model parameters in the training objective, forcing the model to move away from the pretrained point in parameter space.
- Key quantitative results: Evaluated on Imagenette with ResNet-18, after fine-tuning with 0 relearning samples, SCRUB's forget set accuracy rises to 93.40%, while Weight Dist Reg achieves 73.87% (retraining from scratch is 63.53%, Table 1); on CIFAR-10 after 1 epoch of unlearning, Weight Distortion's forget set accuracy after fine-tuning is 61.07%, significantly lower than Catastrophic Forgetting's 99.99% (Table 3).
- Author conclusions and implications: The authors believe that unlearning methods relying solely on output or representation alignment are insufficient to resist fine-tuning attacks, and explicit intervention and distance pushing in weight space is an effective path to tamper-resistant unlearning, while also pointing out a fundamental trade-off between tamper resistance and general test utility.
Related papers
Show 2 more papers
- Piracy Resistant Watermarks for Deep Neural NetworksDefensesarXiv