Fine-Grained and Efficient Self-Unlearning with Layered Iteration
Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 7643-7651.
https://doi.org/10.24963/ijcai.2025/850
Keywords
- Multidisciplinary Topics and Applications: MTA: Security and privacy
- AI Ethics, Trust, Fairness: ETF: Trustworthy AI
- AI Ethics, Trust, Fairness: ETF: Safety and robustness
Abstract
As machine learning models become widely deployed in data-driven applications, ensuring compliance with the 'right to be forgotten' as required by many privacy regulations is vital for safeguarding user privacy. To forget the given data, existing re-labeling based unlearning methods employ a single-step adjustment scheme that revises the decision boundaries in one re-labeling phase. However, such single-step approaches lead to coarse-grained changes in decision boundaries among the remaining classes and impose adverse effects on the model utility. To address these limitations, we propose 'Self-Unlearning with Layered Iteration (SULI),' a novel unlearning approach that introduces a layered iteration strategy to re-label the forgetting data iteratively and refine the decision boundaries progressively. We further develop a 'Selective Probability Adjustment (SPA)' technique, which uses a soft-label mechanism to promote smoother decision-boundary transitions. Comprehensive experiments on three benchmark datasets demonstrate that SULI achieves superior performance in effectiveness, efficiency, and privacy compared to the state-of-the-art baselines in both class-wise and instance-wise unlearning scenarios. The source code is released at https://github.com/Hongyi-Lyu-MQ/SULI.
- [Baumhauer et al., 2022] Thomas Baumhauer, Pascal Schöttle, and Matthias Zeppelzauer. Machine unlearning: Linear filtration for logit-based classifiers. Machine Learning, 111(9):3203-3226, 2022.
- [Bourtoule et al., 2021] Lucas Bourtoule, Varun Chan- drasekaran, Christopher A Choquette-Choo, Hengrui Jia, Adelin Travers, Baiwu Zhang, David Lie, and Nicolas Papernot. Machine unlearning. In 2021 IEEE Symposium on Security and Privacy (SP), pages 141-159. IEEE, 2021.
- [Cao and Yang, 2015] Yinzhi Cao and Junfeng Yang. To- wards making systems forget with machine unlearning. In 2015 IEEE symposium on security and privacy, pages 463-480. IEEE, 2015.
- [Cao et al., 2018] Qiong Cao, Li Shen, Weidi Xie, Omkar M Parkhi, and Andrew Zisserman. Vggface2: A dataset for recognising faces across pose and age. In 2018 13th IEEE international conference on automatic face & ges- ture recognition (FG 2018), pages 67-74. IEEE, 2018.
- [Carlini et al., 2021] Nicholas Carlini, Florian Tramer, Eric Wallace, Matthew Jagielski, Ariel Herbert-Voss, Kather- ine Lee, Adam Roberts, Tom Brown, Dawn Song, Ul- far Erlingsson, et al. Extracting training data from large language models. In 30th USENIX Security Symposium (USENIX Security 21), pages 2633-2650, 2021.
- [Cha et al., 2024] Sungmin Cha, Sungjun Cho, Dasol Hwang, Honglak Lee, Taesup Moon, and Moontae Lee. Learning to unlearn: Instance-wise unlearning for pre- trained classifiers, 2024.
- [Chen et al., 2023] Min Chen, Weizhuo Gao, Gaoyang Liu, Kai Peng, and Chen Wang. Boundary unlearning: Rapid forgetting of deep networks via shifting the decision boundary. 2023 IEEE/CVF Conference on Computer Vi- sion and Pattern Recognition (CVPR), pages 7766-7775, 2023.
- [Chundawat et al., 2022a] Vikram S Chundawat, Ayush K Tarun, Murari Mandal, and Mohan S. Kankanhalli. Can bad teaching induce forgetting? unlearning in deep networks using an incompetent teacher. ArXiv, abs/2205.08096, 2022.
- [Chundawat et al., 2022b] Vikram S Chundawat, Ayush K Tarun, Murari Mandal, and Mohan S. Kankanhalli. Zero- shot machine unlearning. IEEE Transactions on Informa- tion Forensics and Security, 18:2345-2354, 2022.
- [Di et al., 2024] Zonglin Di, Zhaowei Zhu, Jinghan Jia, Jiancheng Liu, Zafar Takhirov, Bo Jiang, Yuanshun Yao, Sijia Liu, and Yang Liu. Label smoothing improves ma- chine unlearning. arXiv preprint arXiv:2406.07698, 2024.
- [Foster et al., 2024] Jack Foster, Stefan Schoepf, and Alexandra Brintrup. Fast machine unlearning without retraining through selective synaptic dampening. In Pro- ceedings of the AAAI Conference on Artificial Intelligence, volume 38, pages 12043-12051, 2024.
- [Ginart et al., 2019] Antonio Ginart, Melody Guan, Gregory Valiant, and James Y Zou. Making ai forget you: Data deletion in machine learning. Advances in neural infor- mation processing systems, 32, 2019.
- [Goel et al., 2022] Shashwat Goel, Ameya Prabhu, Amartya Sanyal, Ser-Nam Lim, Philip Torr, and Ponnurangam Ku- maraguru. Towards adversarial evaluations for inexact ma- chine unlearning. arXiv preprint arXiv:2201.06640, 2022.
- [Golatkar et al., 2019] Aditya Golatkar, Alessandro Achille, and Stefano Soatto. Eternal sunshine of the spotless net: Selective forgetting in deep networks. 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 9301-9309, 2019.
- [Goldblum et al., 2020] Micah Goldblum, Dimitris Tsipras, Chulin Xie, Xinyun Chen, Avi Schwarzschild, Dawn Xi- aodong Song, Aleksander Madry, Bo Li, and Tom Gold- stein. Dataset security for machine learning: Data poison- ing, backdoor attacks, and defenses. IEEE Transactions on Pattern Analysis and Machine Intelligence, 45:1563- 1580, 2020.
- [Graves et al., 2020] Laura Graves, Vineel Nagisetty, and Vijay Ganesh. Amnesiac machine learning. In AAAI Con- ference on Artificial Intelligence, 2020.
- [Hayes et al., 2024] Jamie Hayes, Ilia Shumailov, Eleni Tri- antafillou, Amr Khalifa, and Nicolas Papernot. Inexact unlearning needs more careful evaluations to avoid a false sense of privacy. arXiv preprint arXiv:2403.01218, 2024.
- [He et al., 2016] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recog- nition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778, 2016.
- [Hu et al., 2022] Hongsheng Hu, Zoran Salcic, Lichao Sun, Gillian Dobbie, Philip S Yu, and Xuyun Zhang. Mem- bership inference attacks on machine learning: A survey. ACM Computing Surveys (CSUR), 54(11s):1-37, 2022.
- [Izzo et al., 2021] Zachary Izzo, Mary Anne Smart, Kama- lika Chaudhuri, and James Zou. Approximate data dele- tion from machine learning models. In International Conference on Artificial Intelligence and Statistics, pages 2008-2016. PMLR, 2021.
- [Kim and Woo, 2022] Junyaup Kim and Simon S Woo. Ef- ficient two-stage model retraining for machine unlearning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4361-4369, 2022.
- [Kingma and Ba, 2014] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. CoRR, abs/1412.6980, 2014.
- [Kong and Alfeld, 2022] Zhifeng Kong and Scott Alfeld. Approximate data deletion in generative models. ArXiv, abs/2206.14439, 2022.
- [Krizhevsky, 2009] Alex Krizhevsky. Learning multiple lay- ers of features from tiny images. University of Toronto, 2009.
- [Kurmanji et al., 2023] Meghdad Kurmanji, P. Triantafillou, and Eleni Triantafillou. Towards unbounded machine un- learning. ArXiv, abs/2302.09880, 2023.
- [Mehta et al., 2022] Ronak Mehta, Sourav Pal, Vikas Singh, and Sathya N Ravi. Deep unlearning via randomized con- ditionally independent hessians. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10422-10431, 2022.
- [Nguyen et al., 2022] Thanh Tam Nguyen, Thanh Trung Huynh, Phi Le Nguyen, Alan Wee-Chung Liew, Hongzhi Yin, and Quoc Viet Hung Nguyen. A survey of machine unlearning. arXiv preprint arXiv:2209.02299, 2022.
- [Selvaraju et al., 2020] Ramprasaath R Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, and Dhruv Batra. Grad-cam: visual explanations from deep networks via gradient-based localization. Inter- national journal of computer vision, 128:336-359, 2020.
- [Shokri et al., 2017] Reza Shokri, Marco Stronati, Con- gzheng Song, and Vitaly Shmatikov. Membership infer- ence attacks against machine learning models. In 2017 IEEE symposium on security and privacy (SP), pages 3- 18. IEEE, 2017.
- [Springenberg et al., 2014] Jost Tobias Springenberg, Alexey Dosovitskiy, Thomas Brox, and Martin Ried- miller. Striving for simplicity: The all convolutional net. arXiv preprint arXiv:1412.6806, 2014.
- [Tarun et al., 2021] Ayush K Tarun, Vikram S Chundawat, Murari Mandal, and Mohan S. Kankanhalli. Fast yet ef- fective machine unlearning. IEEE transactions on neural networks and learning systems, PP, 2021.
- [Tarun et al., 2022] Ayush K Tarun, Vikram S Chundawat, Murari Mandal, and Mohan S. Kankanhalli. Deep regres- sion unlearning. ArXiv, abs/2210.08196, 2022.
- [Thudi et al., 2022] Anvith Thudi, Hengrui Jia, Ilia Shu- mailov, and Nicolas Papernot. On the necessity of au- ditable algorithmic definitions for machine unlearning. In 31st USENIX Security Symposium (USENIX Security 22), pages 4007-4022, 2022.
- [van der Maaten and Hinton, 2008] Laurens van der Maaten and Geoffrey E. Hinton. Visualizing data using t-sne. Jour- nal of Machine Learning Research, 9:2579-2605, 2008.
- [Voigt and Von dem Bussche, 2017] Paul Voigt and Axel Von dem Bussche. The eu general data protection regu- lation (gdpr). A Practical Guide, 1st Ed., Cham: Springer International Publishing, 10(3152676):10-5555, 2017.
- [Wu et al., 2022] Chen Wu, Sencun Zhu, and Prasenjit Mi- tra. Federated unlearning with knowledge distillation. arXiv preprint arXiv:2201.09441, 2022.
- [Ye et al., 2022] Jingwen Ye, Yifang Fu, Jie Song, Xingyi Yang, Songhua Liu, Xin Jin, Mingli Song, and Xinchao Wang. Learning with recoverable forgetting. In European Conference on Computer Vision, pages 87-103, 2022.
- [Zhang et al., 2017] Zhifei Zhang, Yang Song, and Hairong Qi. Age progression/regression by conditional adversar- ial autoencoder. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 5810- 5818, 2017.
References were extracted automatically from the PDF and may contain errors.
Full text extracted automatically from the PDF; figures, tables and equations may differ. The PDF is the version of record.
1 Introduction
The rapid growth of machine learning (ML) applications has revolutionized operational efficiency and user experiences and introduced critical challenges in data privacy and regulatory compliance. The General Data Protection Regulation (GDPR) [Voigt and Von dem Bussche, 2017] emphasizes the Right to be Forgotten, i.e., organizations must remove personal data upon request both precisely and efficiently. This requirement places considerable challenges on data handlers in ensuring effective compliance with privacy protection.
Machine unlearning has emerged as a vital attempt to meet these regulatory demands while mitigating privacy threats such as data extraction attacks [Carlini et al., 2021] and membership inference attacks [Shokri et al., 2017; Hu et al., 2022]. It is still a challenge to efficiently remove the contribution of specific training data from an ML model while maintaining satisfactory model utility. Traditional approaches typically retrain models from scratch using the retaining data only [Nguyen et al., 2022], which achieves perfect forgetting, but such methods are often computationally expensive and impractical in most real-world scenarios [Foster et al., 2024]. To mitigate the unacceptable computational cost, a variety of unlearning methods without retraining have also been proposed to approximate the forgetting effect of model retraining [Kong and Alfeld, 2022; Golatkar et al., 2019; Graves et al., 2020; Chundawat et al., 2022b; Tarun et al., 2021; Chundawat et al., 2022a; Tarun et al., 2022; Foster et al., 2024; Baumhauer et al., 2022], but they often require full access to training data and still incur high computational overheads [Kurmanji et al., 2023].
∗Corresponding Author. Contact xuyun.zhang@mq.edu.au or hongsheng.hu@newcastle.edu.au
To address the limitations stated above, recently proposed unlearning methods [Chen et al., 2023; Cha et al., 2024] finetune the target model with re-labeled forgetting data. The forgetting data are re-labeled to their neighboring classes, and this re-labeling technique can fulfill efficient unlearning promisingly by accessing the forgetting data only. However, existing re-labeling based methods still suffer from the following limitations. While not explicitly specified in their design, they primarily follow a single-step re-labeling scheme where all forgetting data are re-labeled to their neighboring classes only once based on the original model. This scheme fails to consider the individual relationship between a forgetting data sample and the model decision boundaries. As a result, this coarse-grained re-labeling scheme can assign a forgetting sample to a class that is far away from the one it should belong to if retraining is adopted for unlearning. Besides, these methods only re-label the forgetting data with hard labels. This forces the corresponding forgetting data to have a significant correlation only with the re-labeled class but low correlations with the entire class distribution in feature space. Then, only one of the classification regions will significantly affect the decision boundary around the forgetting data. Hence, these methods will result in abrupt reconstruction of the decision boundaries during fine-tuning.
In this paper, we propose an approach named SelfUnlearning with Layered Iteration (SULI) to address the aforementioned limitations and improve unlearning efficacy further. The basic idea is to achieve an iterative fine-grained re-labeling process for the forgetting data, where the model is continuously fine-tuned and employed for label prediction in turn during unlearning. Specifically, the approach consists of two parts: the layered iteration strategy and the selective probability adjustment (SPA). The layered iteration strategy progressively refines the decision boundaries from the high entropy region to the low entropy region. This adaptive approach ensures smooth boundary transitions while preserving model stability and utility. SPA re-labels the forgetting data with the soft-labels by calculating the probability distribution of the corresponding forgetting sample. SULI can substantially maintain model utility, significantly reduce the computational cost, and enhance data privacy preservation.
Contributions.We summarize our contributions as follows:
- We propose a novel unlearning framework named SelfUnlearning with Layered Iteration (SULI). SULI modifies the single-step strategy with the layered iteration strategy, refining decision boundaries by prioritizing highuncertainty samples in the early stages of iteration. The iteration framework achieves smooth and accurate boundary adjustments, improving unlearning effectiveness.
- SULI employs the Selective Probability Adjustment (SPA) strategy to tackle the problem of re-labeling forgetting data with hard labels. SPA calculates a new soft label for each sample to reduce the influence of data instances.
- We evaluate our approaches on three benchmark datasets against the state-of-the-art baselines, using four metrics to assess unlearning effectiveness, utility, privacy, and efficiency, with a detailed ablation study. Experimental results show that SULI achieves superior performance.
2 RelatedWork
Machine Unlearning. Machine unlearning is increasingly essential for ensuring privacy in machine learning models, particularly when data must be deleted due to regulatory requirements and individual privacy concerns [Nguyen et al., 2022]. The existing machine unlearning methods can be divided into two categories:
- Exact Unlearning, introduced by [Cao and Yang, 2015; Bourtoule et al., 2021], ensures the model behaves like the deleted data were never part of training. This is typically achieved by retraining the model from scratch without the unlearned data, producing a parameter state unaffected by the forgetting data. Although effective, this method is computationally expensive and impractical for large-scale models or frequent deletion requests [Kurmanji et al., 2023].
- Approximate Unlearning aims to address these inefficiencies in exact unlearning by adjusting model parameters directly to emulate retraining effects [Izzo et al., 2021; Goldblum et al., 2020; Golatkar et al., 2019]. [Ginart et al., 2019] proposed a probabilistic framework based on differential privacy principles, requiring output distributions of unlearned models to resemble retrained models closely. However, [Thudi et al., 2022] argued that achieving specific parameter configurations does not always guarantee effective
| Method | Forgetting data | W/O retaining data | Class | Instance |
|---|---|---|---|---|
| Fisher Unlearning [Golatkar et al., 2019] | ✗ | ✗ | ✗ | ✓ |
| Batches Unlearning [Graves et al., 2020] | ✗ | ✗ | ✗ | ✓ |
| Fast Yet Unlearning [Tarun et al., 2021] | ✗ | ✗ | ✓ | ✓ |
| Zero-shot Unlearning [Chundawat et al., 2022b] | ✓ | ✗ | ✓ | ✓ |
| SSD [Foster et al., 2024] | ✓ | ✗ | ✓ | ✓ |
| SCRUB [Kurmanji et al., 2023] | ✓ | ✗ | ✓ | ✓ |
| L-CODEC [Mehta et al., 2022] | ✓ | ✗ | ✗ | ✓ |
| Contrastive Label [Kim and Woo, 2022] | ✓ | ✗ | ✓ | ✓ |
| Bad Teacher [Chundawat et al., 2022a] | ✓ | ✗ | ✓ | ✓ |
| Recoverable Forgetting [Ye et al., 2022] | ✓ | ✗ | ✓ | ✗ |
| Random Label [Graves et al., 2020] | ✓ | ✗ | ✓ | ✓ |
| UGradSL [Di et al., 2024] | ✓ | ✗ | ✓ | ✓ |
| NegGrad [Golatkar et al., 2019] | ✓ | ✓ | ✓ | ✓ |
| Boundary Unlearning [Chen et al., 2023] | ✓ | ✓ | ✓ | ✗ |
| Adversarial Unlearning [Cha et al., 2024] | ✓ | ✓ | ✗ | ✓ |
| Ours | ✓ | ✓ | ✓ | ✓ |
unlearning, as it may fail to remove all traces of the forgetting data. To address this limitation, [Goel et al., 2022] advocated focusing on functional equivalence, which ensures that the unlearned model behaves similarly to the retrained model.
Machine Unlearning in Deep Learning. Unlearning in deep neural networks presents significant challenges due to their high dimensionality and complex architectures [Nguyen et al., 2022]. Existing methods primarily focus on approximate unlearning and vary in reliance on retaining or forgetting data. Table 1 compares applicability to class and instance unlearning scenarios and whether using the forgetting or retaining data. Most existing approaches require access to the full dataset, whereas ours operates solely on forgetting data, supporting both class-wise and instance-wise unlearning.
Most unlearning methods still need access to the original training dataset, using the retaining data to help remove the influence of forgetting data while preserving model utility. Two-stage approaches, such as those by [Kim and Woo, 2022] and [Wu et al., 2022], first unlearn forgetting data and then recover utility using retaining data, achieving robust results but incurring significant computational and storage costs. Methods like Amnesiac Unlearning [Graves et al., 2020] and UGradSL [Di et al., 2024] employ random label assignments or gradient-based techniques to erase forgetting data, while teacher-student frameworks, including SCRUB [Kurmanji et al., 2023] and Bad Teacher [Chundawat et al., 2022a], aim to unlearn data without sacrificing performance. Noise-based approaches, such as error-maximizing noise matrices [Tarun et al., 2021] and Batch Unlearning [Graves et al., 2020], remove targeted gradient updates, and Zeroshot Unlearning [Chundawat et al., 2022b] replaces forgetting data with noise before updating the model. However, reliance on full dataset access imposes a large computational overhead. Other methods only rely on retaining or forgetting data, aiming to reduce computational costs while maintaining model utility. Fisher Unlearning [Golatkar et al., 2019] uses noise updates guided by the Fisher Information Matrix (FIM), which, despite reducing dataset requirements, incurs high computational costs and risks significantly degrading model utility. Similarly, Negative Gradient [Golatkar et al., 2019] applies gradient ascent to erase forgetting data, leading to substantial performance loss.
Recent advancements, including Boundary Unlearning

[Chen et al., 2023] and ADV+IMP [Cha et al., 2024], aim to achieve unlearning by recalibrating decision boundaries based exclusively on forgetting data, thereby eliminating the reliance on retaining data. These methods implement a single-step re-labeling strategy, where forgetting data are reassigned to their nearest class boundary based on their position in the feature space. However, this static approach exhibits significant limitations, as it narrowly focuses on the nearest class and fails to account for the global structure of all classes within the model. Such a constrained perspective often results in the misclassification of forgetting data into irrelevant classes, leading to disruptions in the model's class representation and a reduction in overall performance. This issue becomes particularly pronounced in scenarios with complex decision boundaries or diverse class distributions, where class relationships are intricate and dynamic.
3 Method
3.1 Preliminaries
In our approach, the original training dataset Dtrain = {(xi, yi)}ni=1 consists of samples xi ∈ Rd , representing ddimensional feature vectors, and their corresponding labels yi ∈ {1, 2, . . . ,K}, indicating their class among K unique categories. This dataset encompasses all categories foundational to our model's operation. We designate Df as the subset of data intended for unlearning and Dr as the retaining set for maintaining accurate classification. These subsets are mutually exclusive and collectively exhaustive, satisfying Dr ∪ Df = Dtrain and Dr ∩ Df = ∅. Each sample-label pair from Dtrain is denoted as (x, y) ∈ Dtrain, with (xf , yf ) ∈ Df and (xr, yr) ∈ Dr representing instances within the forgetting and retaining datasets, respectively.
The unlearning objective is to align the output distribution of the unlearned model fwu on the forgetting dataset Df with
Algorithm 1 Self-Unlearning with Layered Iteration (SULI)
- 1: Input: Original model fw0 , forgetting dataset Df , number of layers t, small positive value ϵ
- 2: Output: Unlearned model fwt
- 3: Compute entropy H(xf) for all xf ∈ Df
- 4: Sort Df in decreasing order of H(xf) and partition into t subsets {Df1,Df2, . . . ,Dft}
- 5: Set w0 ← parameters of original model
- 6: for each layer i = 1 to t do
- 7: SPAAdjustment:
- 8: for each x ∈ Dfi do
- 9: Compute P(y|xf ;wi-1)
- 10: Adjust P ′ (y|xf) using SPAwith ϵ
- 11: end for
- 12: Model Update:
- 13: Update wt by minimizing:
- 14: end for
- 15: return fwt
that of the retrained model fwr , specifically aiming for:
Here, fw(x) denotes the model's output probabilities for input x under parameters w. The retrained model fwr is trained exclusively on the retaining dataset Dr, thereby making predictions on Df without prior exposure and relying on generalized knowledge from Dr.
3.2 Challenges of Single-Step Re-labeling
This paper focuses on unlearning in image classification tasks. Current re-labeling based unlearning methods face significant challenges in effectively controlling the impact of forgetting Df . Processing the entire forgetting dataset in a single step often leads to abrupt and inconsistent parameter updates, causing sharp shifts in decision boundaries and compromising model utility. The single-step approaches lack the granularity to refine decision boundaries adaptively, leading to coarse updates and misclassifications, particularly for samples close to the class center.
Figure 1 illustrates this issue. Subfigure (a) shows the model's decision boundaries before unlearning, while (b) depicts the ideal boundaries achieved through retraining on the retaining dataset Dr. In contrast, the single-step approach shown in (c) abruptly adjusts boundaries by re-labeling all forgetting data, resulting in sharp shifts and deviations from the ideal boundaries. Samples near decision boundaries (highlighted in red) are prone to misclassification, weakening the model's ability to generalize and maintain stability.
3.3 Self-Unlearning with Layered Iteration (SULI)
The Self-Unlearning with Layered Iteration (SULI) framework addresses the limitations of single-step re-labeling by introducing a hierarchical iterative process, as illustrated in Figure 2. The unlearning process combines three key components: Layered Iteration Framework, Entropy-Based Prioritization, and Selective Probability Adjustment (SPA). This synergy ensures that the decision boundaries of the model are progressively refined, aligning closely with the ideal retrained state while maintaining stability and generalization. Compared to single-step re-labeling, SULI introduces a structured and layered process to ensure that unlearning progress is in a stable and interpretable manner, avoiding significant disruptions to the overall decision structure.

Layered Iteration Framework. SULI partitions the forgetting dataset Df into L independent subsets based on entropy, ensuring that high-uncertainty samples are addressed first. Each subset Dft is processed iteratively, with the model parameters updated at each step t. The iterative update is guided by the following optimization objective:
where Lt(w) represents the loss function at the t-th iteration. This general form highlights the layered structure of SULI while deferring the specific details of Lt(w) to subsequent sections. As shown in Figure 2, the hierarchical structure ensures that the model's parameters are updated iteratively in a structured manner. The retaining data Dr anchors the decision boundaries, while the forgetting data Df undergoes selective adjustments. This layered approach mitigates abrupt changes and performs a stable transition to boundaries.
Entropy-based Prioritization. To determine the unlearning order of samples in Df , we compute entropy for each Df :
where P(yi | xf ;w0) is the model's predicted probability for class yi. Higher-entropy samples, typically near decision boundaries, are addressed first. Let {Df1, Df2, . . . , Dft} denote the resulting subsets in descending order of entropy. This prioritization directs the model to handle boundary-adjacent samples early, thereby minimizing their influence on subsequent iterations and enhancing the stability and efficiency of unlearning.
Selective Probability Adjustment (SPA). The SPA mechanismmodifies the output probabilities of the model for Df to simulate the effect of unlearning. For each sample xf ∈ Df , the adjusted probability distribution P ′ (y | xf ) is defined as:
where S = ∑y′∈Y\{yf } P (y′ |x; w0) ensures normalization, and ϵ represents the unlearning degree. A detailed discussion on the choice and effect of ϵ is provided in Appendix A. The iterative refinement process is formalized as:
This ensures that the model's parameters wt are updated to minimize the divergence between the adjusted probabilities P ′ (y | xft) and the current model predictions P(y | xft; wt-1). The process is repeated for each subset Dft, progressively refining the model's decision boundaries.
Self-Unlearning (SU). As a baseline, we introduce a straightforward, non-iterative approach, Self-Unlearning (SU), which facilitates the unlearning process by treating the forgetting dataset Df as unseen. This is achieved by modifying each sample's output distribution in a single pass using the SPA algorithm, effectively transforming Df into data that the model perceives similarly to unseen data. In SU, given an instance xf ∈ Df and its adjusted probability distribution P ′ (y | xf ), derived using the SPA algorithm, the SU approach updates the model through a single phrase of fine-tuning. The updated w′ are obtained by minimizing the distillation loss:
where DKL is the KL-divergence, P ′ (y | xf) is the SPAadjusted probability distribution, and P(y | xf ;w0) is the model's output distribution under w0.
4 Experiments
Datasets. We follow the previous works [Chen et al., 2023; Cha et al., 2024] and use three datasets: CIFAR10 [Krizhevsky, 2009], VGGFace2 [Cao et al., 2018], and UTKFace [Zhang et al., 2017]. These datasets are selected to evaluate different unlearning methods, including object recognition, face recognition, and age classification. Detailed dataset information is provided in Appendix B.
Models. Our experiments employ different models suitable for each dataset and train all models from scratch. For CIFAR-10 [Krizhevsky, 2009], we use a ResNet-18 model [He et al., 2016]. For the UTKFace dataset [Zhang et al., 2017], focusing on age prediction and demographic analysis, we adopt the All-CNN model [Springenberg et al., 2014]. For the VGGFace2 dataset [Cao et al., 2018], involving complex face recognition challenges, we utilize a ResNet50 model [He et al., 2016]. Detailed configurations and environment are provided in Appendix C.

| Dataset | Metric | Original | Retrain | NegGrad | Random Label | Initial Label | Boundary | ADV+IMP | SU (Ours) | SULI (Ours) |
|---|---|---|---|---|---|---|---|---|---|---|
| CIFAR-10 | ADr (↑) ADf (↓) ADtr (↑) ADtf(↓) | 100 100 95 94.98 | 100±0.0 0±0.0 92.26±0.11 0.0±0.0 | 29.62±2.65 0.0±0.0 39.43±2.27 0.0±0.0 | 78.77±2.47 0.0±0.0 74.14±2.44 0.02±0.04 | 14.54±1.34 9.69±0.03 14.35±1.16 5.20±2.93 | 89.94±0.17 12.54±0.0 85.12±0.14 14.06±0.34 | 47.35±2.94 0.0±0.0 47.34±2.77 0.02±0.04 | 94.54±0.29 0.0±0.0 88.89±0.27 0.0±0.0 | 96.03±0.12 0.0±0.0 89.81±0.17 0.0±0.0 |
| UTKFace | ADr (↑) ADf (↓) ADtr(↑) ADtf(↓) | 99.97 99.95 83.04 82.16 | 99.96±0.04 0.0±0.0 83.21±0.09 0.0±0.0 | 86.79±3.11 0.0±0.0 75.91±1.71 0.0±0.0 | 84.33±3.31 0.0±0.0 76.65±4.69 0.16±0.12 | 72.45±6.12 21.84±3.09 66.37±2.53 17.56±3.58 | 94.08±0.98 8.13±0.12 75.85±1.18 9.61±3.97 | 78.52±2.52 0.0±0.0 77.89±3.24 0.0±0.0 | 96.86±0.24 0.0±0.0 68.78±0.19 0.0±0.0 | 98.42±0.11 0.0±0.0 79.81±0.13 0.0±0.0 |
| VggFace2 | ADr (↑) ADf (↓) ADtr(↑) ADtf(↓) | 100 100 80.95 81.48 | 100±0.0 0±0.0 81.12±0.02 0.0±0.0 | 84.01±0.19 0.0±0.0 60.85±0.21 0.0±0.0 | 83.10±3.78 0.0±0.0 63.60±3.72 0.0±0.0 | 90.46±0.37 17.25±0.13 64.62±0.54 9.52±0.34 | 93.92±0.08 6.96±0.06 71.96±0.14 3.61±0.19 | 56.62±3.12 0.0±0.0 41.11±2.56 0.0±0.0 | 95.65±0.25 0.0±0.0 72.49±0.16 0.0±0.0 | 97.51±0.21 0.0±0.0 72.62±0.14 0.0±0.0 |
Baselines. In this study, we select state-of-the-art machine unlearning methods as our baseline: (a) The Original model is trained on Dtrain. (b) The Retrained model is retrained on Dr from scratch. (c) 'Negative Gradient' (NegGrad)[Golatkar et al., 2019] modifies the original model by fine-tuning on Df through gradient ascent . (d) 'Random Label' (RL) [Graves et al., 2020] assigns arbitrary new labels to Df and fine-tunes the network using these random labels. (e) 'Initial Label' (IL) [Chundawat et al., 2022a] involves re-labeling Df with new labels generated by an initial model and fine-tuning model with new labels. (f ) 'Boundary Shrink' (Boundary) creates adversarial examples from Df and assigns adversarial labels to induce boundary contraction towards disparate classes [Chen et al., 2023]. (g) 'Adversarial Unlearning' (ADV+IMP) [Cha et al., 2024] uses adversarial examples to re-label and weighted importance to update parameters.
Metrics. We adopt the following metrics to evaluate:
- Accuracy on the unlearning and retaining datasets (ADf and ADr ): This assesses the method's capability to unlearn
without compromising the overall model performance.
- Accuracy on the test datasets (ADt ): This metric analyzes the model's generalization performance, further subdivided into unlearning test set (ADtf ) and retaining test set (ADtr ).
- Membership Inference Attack (MIA): MIA assesses unlearning effectiveness by measuring how much information about the forgetting data remains in the model. We perform MIA techniques from [Kurmanji et al., 2023]. Distance metrics like Activation Distance are used to measure unlearning success, but they fail to reflect actual outcomes due to inherent neural network variability [Hayes et al., 2024].
- Runtime: This metric evaluates the method's temporal efficiency, providing a comparative computational cost analysis across various unlearning methods.
Implement Settings and Unlearning Tasks. Our experimental environment includes an NVIDIA RTX 4070 GPU, Python 3.11, and PyTorch 2.1.1. We utilize the ADAM optimizer [Kingma and Ba, 2014] with carefully selected learning rates optimized for both class-wise and instance-wise unlearning tasks. To ensure consistent evaluation, the same set of forgetting data (Df ) is applied across all methods. We perform a grid search (the results are shown in appendix D) to optimize the hyperparameter t within the range [1, 25], selecting t = 2 for all experiments as it balances model utility and unlearning effectiveness. Our experiments cover two primary unlearning scenarios: class-wise unlearning, where early stops when the model's accuracy on Df approaches zero, and instance-wise unlearning, where unlearning ceases when the model's accuracy on Df matches that on a 1% reference dataset. For both scenarios, we designate each class as Df and report averages and standard deviations over five seeds to ensure reproducibility. Detailed implementation setups are provided in Appendix E.
| CIFAR-10 | UTKFace | VggFace2 | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| n = 64 | n = 128 | n = 256 | n = 512 | n = 64 | n = 128 | n = 256 | n = 512 | n = 64 | n = 128 | n = 256 | n = 512 | |
| Original | 100 | 100 | 100 | 100 | 99.82 | 99.82 | 99.86 | 99.93 | 99.07 | 99.06 | 99.06 | 99.05 |
| Retrain | 100 | 100 | 100 | 100 | 99.82 | 99.82 | 99.79 | 96.43 | 100 | 99.81 | 99.56 | 99.61 |
| Negative Gradient | 99.86 | 99.18 | 96.39 | 95.39 | 92.23 | 86.47 | 75.66 | 67.71 | 95.23 | 83.66 | 84.22 | 82.48 |
| Random Label | 97.21 | 95.10 | 90.33 | 77.10 | 89.49 | 84.47 | 76.64 | 67.37 | 94.02 | 87.62 | 79.97 | 78.57 |
| Dr (↑) Initial Label | 99.23 | 81.96 | 98.95 | 96.01 | 99.59 | 88.13 | 79.82 | 73.17 | 93.13 | 86.72 | 84.19 | 81.44 |
| Boundary Shrink | 99.56 | 99.87 | 99.49 | 94.86 | 99.28 | 97.39 | 96.48 | 65.67 | 96.47 | 91.20 | 88.71 | 83.70 |
| Adv+Imp | 92.05 | 81.96 | 82.82 | 78.76 | 96.91 | 87.48 | 82.86 | 77.60 | 88.43 | 83.73 | 81.39 | 78.84 |
| SU (Ours) | 99.97 | 99.76 | 99.15 | 96.77 | 99.24 | 98.21 | 95.31 | 93.79 | 97.10 | 93.13 | 89.50 | 84.26 |
| SULI (Ours) | 99.99 | 99.91 | 99.68 | 97.27 | 99.29 | 98.32 | 97.57 | 96.13 | 98.12 | 96.93 | 93.92 | 91.49 |
| Original | 100.0 | 100 | 100 | 100 | 100.0 | 100.0 | 99.61 | 99.64 | 100 | 100 | 99.21 | 99.21 |
| Retrain | 85.06 | 85.6 | 87.11 | 85.74 | 81.53 | 81.46 | 81.38 | 82.44 | 81.25 | 83.94 | 84.23 | 86.73 |
| Negative Gradient | 82.81 | 85.16 | 85.55 | 85.55 | 81.29 | 80.47 | 80.13 | 81.36 | 83.74 | 83.82 | 83.79 | 83.71 |
| Random Label | 82.19 | 81.88 | 83.75 | 80.35 | 80.13 | 80.72 | 80.19 | 80.71 | 83.70 | 83.71 | 83.72 | 83.68 |
| Df Initial Label | 85.94 | 85.47 | 83.34 | 82.38 | 81.25 | 81.11 | 79.55 | 80.89 | 83.75 | 83.78 | 83.80 | 83.69 |
| Boundary Shrink | 85.94 | 85.16 | 85.77 | 84.67 | 80.56 | 81.04 | 81.33 | 81.34 | 83.76 | 83.77 | 83.73 | 83.68 |
| Adv+Imp | 85.94 | 85.47 | 82.62 | 79.01 | 81.81 | 80.46 | 81.03 | 80.08 | 83.75 | 83.72 | 83.76 | 83.68 |
| SU (Ours) | 82.81 | 84.38 | 85.55 | 82.97 | 81.12 | 80.63 | 80.46 | 81.03 | 83.71 | 83.69 | 83.75 | 83.72 |
| SULI (Ours) | 85.94 | 85.94 | 85.16 | 84.30 | 81.56 | 81.71 | 80.5 | 80.13 | 83.72 | 83.73 | 83.70 | 83.74 |
| Original | 86.34 | 86.34 | 86.34 | 86.34 | 82.96 | 82.96 | 82.96 | 82.96 | 84.52 | 84.52 | 84.52 | 84.52 |
| Retrain | 85.2 | 86.15 | 85.67 | 86.09 | 81.41 | 82.51 | 82.86 | 82.31 | 83.26 | 83.52 | 84.56 | 85.27 |
| Negative Gradient | 85.1 | 82.64 | 79.82 | 76.32 | 77.49 | 72.83 | 63.61 | 61.63 | 77.63 | 72.13 | 74.56 | 73.43 |
| Random Label | 78.87 | 77.82 | 73.25 | 68.65 | 73.47 | 64.72 | 55.39 | 51.39 | 77.07 | 76.41 | 71.86 | 70.24 |
| Dtest (↑) Initial Label | 84.42 | 69.54 | 81.15 | 76.96 | 81.73 | 75.54 | 62.79 | 58.12 | 75.48 | 74.18 | 69.27 | 64.35 |
| Boundary Shrink | 83.98 | 83.89 | 83.07 | 78.78 | 81.47 | 79.43 | 78.89 | 70.45 | 76.33 | 72.29 | 69.29 | 64.03 |
| Adv+Imp | 75.19 | 69.54 | 67.08 | 66.87 | 79.69 | 74.03 | 71.44 | 69.71 | 75.72 | 73.21 | 69.53 | 65.30 |
| SU (Ours) | 85.10 | 83.76 | 81.84 | 79.30 | 82.53 | 80.72 | 79.04 | 74.36 | 79.27 | 74.41 | 76.29 | 71.29 |
| SULI (Ours) | 85.37 | 84.33 | 83.78 | 80.44 | 82.93 | 81.14 | 79.68 | 78.65 | 82.19 | 79.97 | 78.46 | 77.56 |
| CIFAR-10 | UTKFace | VGGFace2 | ||||
|---|---|---|---|---|---|---|
| Method | Class | Instance | Class | Instance | Class | Instance |
| Original | 0.57±0.04 | 0.61±0.02 | 0.63±0.02 | 0.62±0.03 | 0.63±0.02 | 0.64±0.02 |
| Retrain | 0.51±0.01 | 0.50±0.01 | 0.51±0.01 | 0.50±0.01 | 0.50±0.02 | 0.51±0.01 |
| NegGrad | 0.62±0.05 | 0.50±0.03 | 0.63±0.04 | 0.56±0.02 | 0.37±0.02 | 0.43±0.03 |
| RLabel | 0.54±0.01 | 0.52±0.03 | 0.55±0.03 | 0.56±0.04 | 0.57±0.07 | 0.55±0.04 |
| ILabel | 0.49±0.01 | 0.47±0.03 | 0.57±0.07 | 0.46±0.09 | 0.83±0.05 | 0.63±0.06 |
| Boundary | 0.56±0.01 | 0.53±0.03 | 0.62±0.07 | 0.57±0.04 | 0.61±0.09 | 0.58±0.04 |
| ADV+IMP | 0.57±0.03 | 0.49±0.04 | 0.45±0.03 | 0.46±0.02 | 0.44±0.02 | 0.46±0.04 |
| SU (Ours) | 0.52±0.01 | 0.48±0.03 | 0.52±0.01 | 0.52±0.02 | 0.53±0.03 | 0.52±0.02 |
| SULI (Ours) | 0.51±0.01 | 0.50±0.01 | 0.51±0.01 | 0.50±0.01 | 0.49±0.02 | 0.51±0.01 |
| Metrics (s) | ADV+IMP | Ilabel | Boundary | NegGrad | RLabel | SU (Ours) | SULI (Ours) |
|---|---|---|---|---|---|---|---|
| Class Runtime | 107.16 | 45.76 | 31.66 | 19.36 | 10.36 | 3.68 | 0.93 |
| Instance Runtime | 3.67 | 1.33 | 0.98 | 0.81 | 0.55 | 0.28 | 0.21 |
Trade-offs. Achieving effective machine unlearning involves balancing multiple objectives: unlearning quality, model utility, unlearning effectiveness, and runtime efficiency. These objectives inherently involve trade-offs; for instance, maximizing unlearning quality might reduce efficiency or degrade performance on retaining data (Dr) [Kurmanji et al., 2023]. SULI is designed to navigate these trade-offs effectively, ensuring forgetting data (Df ) is treated as unseen while maintaining strong performance on retaining data. It consistently outperforms other methods across multiple metrics (see Figure 3). Detailed discussions are provided in Appendix F.
Class-wise Accuracy. In class-wise unlearning, the goal is to reduce the model's accuracy on forgetting data (ADf ) and ADtf to zero while preserving high accuracy on (ADr ). Table 2 shows that Model Retraining and NegGrad eliminate ADf but harm ADr . Initial Label and Boundary Shrink methods struggle to sufficiently reduce ADf and also degrade ADr . In contrast, ADV+IMP, SU and SULI successfully bring ADf and ADtf to zero. Notably, SULI preserves the highest ADr and maintains the model utility.
Instance-wise Accuracy. In instance-wise unlearning, the goal is to align the model's accuracy on forgetting data (Df ) with its performance on unseen reference data, ensuring fairness and generalizability. For simplicity, small standard deviations are omitted in subsequent instance-wise tables. Table 3 shows that while all methods reduce Df accuracy, SU and SULI outperform others by achieving unlearning targets while maintaining high accuracy on Dr and Dtest.
Privacy Protection and Unlearning Quality Comparison. Effective unlearning is essential for robust privacy, preventing adversaries from using Membership Inference Attacks (MIA) to distinguish removed data from data never in the model. Following Kurmanji et al. [Kurmanji et al., 2023], we train a binary classifier on loss values from Df and Dtest. An accuracy nearing 50% indicates strong privacy protection, as the classifier fails to differentiate between these datasets. To ensure consistent data distributions in class-wise unlearning, Df and Dtf share the same categories. We then use tenfold cross-validation to derive average MIA accuracies, minimizing outlier effects. Table 4 compares unlearning methods across class- and instance-level forgetting, revealing that SULI remains near the ideal 50% attack success rate, thus effectively obscuring data membership. Their hierarchical iteration and Selective Probability Adjustment (SPA) enable controlled, seamless unlearning with minimal utility loss. Further details appear in Appendix G.


Computational Complexity. Table 5 compares the runtime efficiency of various unlearning methods. SULI is the fastest method, requiring significantly less runtime than all other baselines (Table 5). In particular, it is 3 times faster than the adversarial re-labeling methods, which spend substantial time on iterative adversarial example generation. By contrast, SULI updates the model solely based on output distributions, avoiding the costly fine-grained perturbation steps. Overall, SULI provides the best balance of unlearning efficacy, privacy, and efficiency. Let |Df | be the number of samples to be forgotten and K be the number of classes. SULI's total cost can be approximated as O(|Df | ×K), reflecting that it primarily involves computing probabilities and redistributing them for each sample-class pair, rather than performing computationally expensive adversarial example generation. Details are provided in Appendix H.
Visualization of Feature Space. To enable a more intuitive observation of how the decision boundary changes after the machine unlearning, we visualize the decision boundary of the target model's feature space using the tDistributed Stochastic Neighbor Embedding (t-SNE) technique [van der Maaten and Hinton, 2008]. The t-SNE maps high-dimensional data to a low-dimensional space through probability distributions, facilitating the visualization of complex data structures in graphs [van der Maaten and Hinton, 2008]. In figure 4 (d), we observe that the green triangles representing Df are successfully dispersed across adjacent classes, effectively diluting their association with the original class. Concurrently, the clustering of other categories (depicted as dots) remains stable, and the decision boundaries between Dr classes are preserved without significant alteration. Dispersing Df while keeping the decision boundaries of Dr demonstrates the effectiveness of SULI in unlearning target data without compromising the model's utility.
Figure 5: Gradient-weighted class activation mapping of the target models before and after the unlearning.
Class Activation Mapping. Gradient-weighted Class Activation Mapping (Grad-CAM) visualizes the decision-making processes of convolutional neural networks by highlighting image regions that most influence classification decisions [Selvaraju et al., 2020]. Figure 5 compares attention maps across different models. For facial recognition, critical facial features are the eyes and mouth. SULI further disperses attention while concentrating on the face, albeit less on primary features and more on other facial regions. Despite the unlearning processes, the model continues to identify facial features by focusing on less discriminative areas. SULI's facial recognition attention pattern is similar to the retrain model.
5 Conclusion
We have introduced Self-Unlearning with Layered Iteration (SULI), a machine unlearning framework that iteratively refines decision boundaries to remove specified data while maintaining accuracy in retaining data. By circumventing complete dataset access and avoiding abrupt re-labeling, SULI significantly reduces the influence of forgetting data while preserving model utility and privacy. The layered, stepwise design ensures model stability and effectively addresses the limitations of single-step boundary adjustments. In future work, we will explore scaling SULI to larger models and investigate theoretical guarantees for complete unlearning.
Acknowledgments
The work was partially supported by The State Key Laboratory of Novel Software Technology (KFKT2024A03).
@inproceedings{ijcai2025p850,
title = {Fine-Grained and Efficient Self-Unlearning with Layered Iteration},
author = {Lyu, Hongyi and Zhang, Xuyun and Hu, Hongsheng and Wang, Shuo and He, Chaoxiang and Qi, Lianyong},
booktitle = {Proceedings of the Thirty-Fourth International Joint Conference on
Artificial Intelligence, {IJCAI-25}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {James Kwok},
pages = {7643--7651},
year = {2025},
month = {8},
note = {Main Track},
doi = {10.24963/ijcai.2025/850},
url = {https://doi.org/10.24963/ijcai.2025/850},
}
TY - CPAPER TI - Fine-Grained and Efficient Self-Unlearning with Layered Iteration AU - Lyu, Hongyi AU - Zhang, Xuyun AU - Hu, Hongsheng AU - Wang, Shuo AU - He, Chaoxiang AU - Qi, Lianyong T2 - Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI-25 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2025 SP - 7643 EP - 7651 DO - 10.24963/ijcai.2025/850 UR - https://doi.org/10.24963/ijcai.2025/850 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: