Papers › Deep Unlearning: Fast and Efficient Gradient-free Approach to Class Forgetting

Deep Unlearning: Fast and Efficient Gradient-free Approach to Class Forgetting

1 Dec 2023arXiv:2312.00761archive 2025-07-28

Sangamesh Kodge, Gobinda Saha, Kaushik Roy

Machine unlearning is a prominent and challenging field, driven by regulatory demands for user data deletion and heightened privacy awareness. Existing approaches involve retraining model or multiple finetuning steps for each deletion request, often constrained by computational limits and restricted data access. In this work, we introduce a novel class unlearning algorithm designed to strategically eliminate specific classes from the learned model. Our algorithm first estimates the Retain and the Forget Spaces using Singular Value Decomposition on the layerwise activations for a small subset of samples from the retain and unlearn classes, respectively. We then compute the shared information between these spaces and remove it from the forget space to isolate class-discriminatory feature space. Finally, we obtain the unlearned model by updating the weights to suppress the class discriminatory features from the activation spaces. We demonstrate our algorithm's efficacy on ImageNet using a Vision Transformer with only ∼1.5% drop in retain accuracy compared to the original model while maintaining under 1% accuracy on the unlearned class samples. Furthermore, our algorithm exhibits competitive unlearning performance and resilience against Membership Inference Attacks (MIA). Compared to baselines, it achieves an average accuracy improvement of 1.38% on the ImageNet dataset while requiring up to 10 × fewer samples for unlearning. Additionally, under stronger MIA attacks on the CIFAR-100 dataset using a ResNet18 architecture, our approach outperforms the best baseline by 1.8%. Our code is available at https://github.com/sangamesh-kodge/class_forgetting.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2312.00761")

Code

Syntology Ran 10 of 17 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 10 ran with no contract checked.

By repository: official repository: 17 samples from 1 repository, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

sangamesh-kodge/class_forgetting officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 10 ran; 0 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

10ran
7unverified

Licence: 17 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from sangamesh-kodge/class_forgetting. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

calc_importance sangamesh-kodge/class_forgetting/analysis/runtime.py official repository ran no licence file found · pointer only · 3af2910671822920 · report
compute_conv_output_size sangamesh-kodge/class_forgetting/models/model_utils.py official repository ran no licence file found · pointer only · cec2ecd572648904 · report
forward_cache_activations sangamesh-kodge/class_forgetting/models/model_utils.py official repository ran no licence file found · pointer only · 4644048ebc1d3c4e · report
get_likelihood_ratio sangamesh-kodge/class_forgetting/analysis/interclass_confusion.py official repository ran no licence file found · pointer only · 6dbc8e4c893ad5e3 · report
get_projection_matrix sangamesh-kodge/class_forgetting/analysis/missing_class.py official repository ran no licence file found · pointer only · a416d8fda6cbebe2 · report
get_retain_forget_partition sangamesh-kodge/class_forgetting/utils.py official repository ran no licence file found · pointer only · 42fabf02e43fc9e3 · report
interpolate_embeddings sangamesh-kodge/class_forgetting/models/vit.py official repository ran no licence file found · pointer only · e9cd32628e2a4c34 · report
likelihood sangamesh-kodge/class_forgetting/analysis/interclass_confusion.py official repository ran fingerprinted no licence file found · pointer only · 223cc02f83103318 · report
make_layers sangamesh-kodge/class_forgetting/models/vgg.py official repository ran no licence file found · pointer only · ac62432dc5134b0d · report
reshape_conv_input_activation sangamesh-kodge/class_forgetting/models/model_utils.py official repository ran no licence file found · pointer only · 3e56c8da424bea73 · report
ResNet18 sangamesh-kodge/class_forgetting/models/resnet.py official repository unverified no licence file found · pointer only · 9e4fdf529e5eb35a · report
ResNet34 sangamesh-kodge/class_forgetting/models/resnet.py official repository unverified no licence file found · pointer only · b0429bb7e020f5fb · report
ResNet50 sangamesh-kodge/class_forgetting/models/resnet.py official repository unverified no licence file found · pointer only · ec4196f891e7dfe7 · report
get_dataset sangamesh-kodge/class_forgetting/utils.py official repository unverified no licence file found · pointer only · 8b15af7b68969b28 · report
train sangamesh-kodge/class_forgetting/analysis/shadow_train.py official repository unverified no licence file found · pointer only · 38d8b2e3aa6d1cc5 · report
vgg11 sangamesh-kodge/class_forgetting/models/vgg.py official repository unverified no licence file found · pointer only · 89caa00e82add35d · report
vgg11_bn sangamesh-kodge/class_forgetting/models/vgg.py official repository unverified no licence file found · pointer only · ea6c4b4731920685 · report

Tasks

Image ClassificationMachine Unlearning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformerVision Transformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections