SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.17509 · NeurIPS · 2024

WAGLE: Strategic Weight Attribution for Effective and Modular Unlearning in Large Language Models

Sijia Liu, Jinghan Jia, Yihua Zhang, Parikshit Ram, Jiancheng Liu, Nathalie Baracaldo

arXiv · PDF · Open in the Atlas

Code that ran

1 of 4 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 0 failures of our instrument; 3 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2410.17509.json · badge: /api/ran/2410.17509.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
OPTML-Group/WAGLE canonical (classifier label)
classifier basis: census
1 ran · 3 no recorded run
FunctionStatusWhere it lives
get_wikitext2 Ran
ran on a synthesized input
OPTML-Group/WAGLE/src/dataset/dataset.py
pointer only (licence: MIT); the stored copy get_code serves, from zyxxmu/dsnot, is pointer only (licence: NONE) · get_code("dee8be97b2cf4692")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from zyxxmu/dsnot, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_c4 Not yet run
unverified (harvested, no recorded run)
OPTML-Group/WAGLE/src/dataset/dataset.py
pointer only (licence: MIT); the stored copy get_code serves, from zyxxmu/dsnot, is pointer only (licence: NONE) · get_code("7630a157a3b32ab9")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from zyxxmu/dsnot, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_loaders Not yet run
unverified (harvested, no recorded run)
OPTML-Group/WAGLE/src/dataset/dataset.py
code served (permissive licence) · get_code("16994008353af958")
How it ran

no invocation recorded.

unlearncollector Not yet run
unverified (harvested, no recorded run)
OPTML-Group/WAGLE/src/dataset/Base.py
code served (permissive licence) · get_code("21b851de3f5356c4")
How it ran

no invocation recorded.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 4 later) and 0 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
get_wikitext2 15 other papers
10 dated earlier, 3 later, 2 same year, order not determinable · 1 only as an assembly brick
2306.11695 (2023-06)
A Simple and Effective Pruning Approach for Large Language Models
2310.01382 (2023-10)
Compressing LLMs: The Truth is Rarely Pure and Never Simple
2310.05175 (2023-10)
Outlier Weighed Layerwise Sparsity (OWL ): A Missing Secret Sauce for Pruning LLMs to High Sparsity
and 12 more not named here
get_c4 10 other papers
6 dated earlier, 2 later, 2 same year, order not determinable · 1 only as an assembly brick
2306.11695 (2023-06)
A Simple and Effective Pruning Approach for Large Language Models
2310.05175 (2023-10)
Outlier Weighed Layerwise Sparsity (OWL ): A Missing Secret Sauce for Pruning LLMs to High Sparsity
2310.08915 (2023-10)
Dynamic Sparse No Training: Training-Free Fine-tuning for Sparse LLMs
and 7 more not named here
get_loaders 9 other papers
7 dated earlier, 1 later, 1 same year, order not determinable
2306.11695 (2023-06)
A Simple and Effective Pruning Approach for Large Language Models
2310.01382 (2023-10)
Compressing LLMs: The Truth is Rarely Pure and Never Simple
2310.05175 (2023-10)
Outlier Weighed Layerwise Sparsity (OWL ): A Missing Secret Sauce for Pruning LLMs to High Sparsity
and 6 more not named here
unlearncollector 2 other papers
1 dated earlier, 1 later
2404.18239 (2024-04)
SOUL: Unlocking the Power of Second-Order Optimization for LLM Unlearning
2506.01339 (2025-06)
Invariance Makes LLM Unlearning Resilient Even to Unanticipated Downstream Fine-Tuning

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

The need for effective unlearning mechanisms in large language models (LLMs) is increasingly urgent, driven by the necessity to adhere to data regulations and foster ethical generative AI practices. LLM unlearning is designed to reduce the impact of undesirable data influences and associated model capabilities without diminishing the original utility of the model. Despite growing interest, much of the existing research has focused on varied unlearning method designs to boost effectiveness and efficiency. However, the inherent relationship between model weights and LLM unlearning has not been extensively examined. In this paper, we systematically explore how model weights interact with unlearning processes in LLMs and propose the weight attribution-guided LLM unlearning framework, WAGLE, which unveils the interconnections between 'influence' of weights and 'influence' of data to forget and retain in LLMs. By strategically guiding the LLM unlearning across different types of unlearning methods and tasks, WAGLE can erase the undesired content, while maintaining the performance of the original tasks. Our experiments show that WAGLE boosts unlearning performance across a range of LLM unlearning methods such as gradient difference and (negative) preference optimization, and applications such as fictitious unlearning (TOFU benchmark) and malicious use prevention (WMDP benchmark), under models including Zephyr-7b-beta and Llama2-7b. To the best of our knowledge, our work offers the first principled method for attributing and pinpointing the influential weights in enhancing LLM unlearning. It stands in contrast to previous methods that lack weight attribution and simpler weight attribution techniques. Codes are available at https://github.com/OPTML-Group/WAGLE. Machine unlearning (MU) for non-LLMs. The concept of MU was originally raised to address users' deletion requests for given machine learning (ML) models, without the need to retrain these models from scratch [3][4][5]. The capability to assess and erase the influences of data to be forgotten in model performance has broadened the MU concept across diverse ML paradigms, such as image classification [11,12,33,34], image generation [13,[35][36][37], generative language modeling [2, 38-40], graph neural networks [41][42][43], and federated learning [44][45][46]. The methodologies of MU include retraining-based exact unlearning [8,47], differential privacy (DP)-based unlearning [7,9,10,48], and fine-tuning-based approximate unlearning [8,11,12,[49][50][51].

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2410.17509")
get_code_for_paper("2410.17509")
have("2410.17509")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2410.17509.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2410.17509.svg)](https://syntology.ai/paper/2410.17509)

Connect an agent — have() is free.