Papers › A Cognac Shot To Forget Bad Memories: Corrective Unlearning for Graph Neural Networks

A Cognac Shot To Forget Bad Memories: Corrective Unlearning for Graph Neural Networks

1 Dec 2024arXiv:2412.00789archive 2025-07-28

Varshita Kolipaka, Akshit Sinha, Debangan Mishra, Sumit Kumar, Arvindh Arun, Shashwat Goel, Ponnurangam Kumaraguru

Graph Neural Networks (GNNs) are increasingly being used for a variety of ML applications on graph data. Because graph data does not follow the independently and identically distributed (i.i.d.) assumption, adversarial manipulations or incorrect data can propagate to other data points through message passing, which deteriorates the model's performance. To allow model developers to remove the adverse effects of manipulated entities from a trained GNN, we study the recently formulated problem of Corrective Unlearning. We find that current graph unlearning methods fail to unlearn the effect of manipulations even when the whole manipulated set is known. We introduce a new graph unlearning method, Cognac, which can unlearn the effect of the manipulation set even when only 5% of it is identified. It recovers most of the performance of a strong oracle with fully corrected training data, even beating retraining from scratch without the deletion set while being 8x more efficient. We hope our work assists GNN developers in mitigating harmful effects caused by issues in real-world data, post-training. Our code is publicly available at https://github.com/cognac-gnn-unlearning/corrective-unlearning-for-gnns

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="2412.00789")

Code

Syntology Ran 16 of 20 code samples harvested from 2 repositories linked to this paper; 4 have no recorded run. Of those that ran: 1 ran · violated contract; 14 ran · our draft was wrong; 1 ran with no contract checked.

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

cognac-gnn-unlearning/corrective-unlearning-for-gnns officialmentioned in papermentioned on GitHubpytorch report
varshitakolipaka/corrective-unlearning-for-gnns 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

20 samples harvested; 16 ran; 0 honoured the contract we drafted; 4 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.

1ran · violated contract
14ran · our draft was wrong
1ran
4unverified

Licence: 20 of the 20 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

BoundedKLDMean varshitakolipaka/corrective-unlearning-for-gnns/trainers/gnndelete.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 41fbee11514c9fe6 · report
BoundedKLDSum varshitakolipaka/corrective-unlearning-for-gnns/trainers/gnndelete.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · d7211c3da551067a · report
CosineDistanceMean varshitakolipaka/corrective-unlearning-for-gnns/trainers/gnndelete.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 75453f8bbb9b082b · report
CosineDistanceSum varshitakolipaka/corrective-unlearning-for-gnns/trainers/gnndelete.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 6f5ab12828b66ccb · report
LinearCKA varshitakolipaka/corrective-unlearning-for-gnns/trainers/gnndelete.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 9bf51323e6eddd19 · report
RBFCKA varshitakolipaka/corrective-unlearning-for-gnns/trainers/gnndelete.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · d89212ddb4a1c029 · report
Trainer cognac-gnn-unlearning/corrective-unlearning-for-gnns/trainers/cognac.py official repository ran no licence file found · pointer only · 82ceb13449ee8091 · report
centering varshitakolipaka/corrective-unlearning-for-gnns/trainers/gnndelete.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · c4698c3471ae618b · report
compare_results cognac-gnn-unlearning/corrective-unlearning-for-gnns/run_cognac_best.py official repository ran · our draft was wrong no licence file found · pointer only · 9583d125295289a4 · report
distill_kl_loss cognac-gnn-unlearning/corrective-unlearning-for-gnns/trainers/cognac.py official repository ran · our draft was wrong no licence file found · pointer only · aef32d5f9d2e066f · report
get_loss_fct varshitakolipaka/corrective-unlearning-for-gnns/trainers/gnndelete.py official repository ran · our draft was wrong no licence file found · pointer only · 81920fffae01e70d · report
kernel_HSIC varshitakolipaka/corrective-unlearning-for-gnns/trainers/gnndelete.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · bcd0dd0a115414f9 · report
linear_HSIC varshitakolipaka/corrective-unlearning-for-gnns/trainers/gnndelete.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 1736820e2d413f39 · report
rbf varshitakolipaka/corrective-unlearning-for-gnns/trainers/gnndelete.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 48b102488b75c27f · report
run_command cognac-gnn-unlearning/corrective-unlearning-for-gnns/run_cognac_best.py official repository ran · violated contract no licence file found · pointer only · f7b12db3f3b994f5 · report
time_it cognac-gnn-unlearning/corrective-unlearning-for-gnns/trainers/cognac.py official repository ran · our draft was wrong no licence file found · pointer only · 4630cf908a804bb0 · report
CognacTrainer cognac-gnn-unlearning/corrective-unlearning-for-gnns/trainers/cognac.py official repository unverified no licence file found · pointer only · a70915d6842ff5eb · report
GNNDeleteNodeembTrainer varshitakolipaka/corrective-unlearning-for-gnns/trainers/gnndelete.py official repository unverified no licence file found · pointer only · 2fff7bcfe4b696e5 · report
Trainer varshitakolipaka/corrective-unlearning-for-gnns/trainers/gnndelete.py official repository unverified no licence file found · pointer only · a1288bc2236215bf · report
parse_results_from_logs cognac-gnn-unlearning/corrective-unlearning-for-gnns/run_cognac_best.py official repository unverified no licence file found · pointer only · fa6364f2d155e1e9 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SET

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