SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.08109 · ICLR · 2025

A Closer Look at Machine Unlearning for Large Language Models

Tianyu Pang, Min Lin, Weiming Zhang, Chao Du, Xiaojian Yuan, Kejiang Chen

arXiv · PDF · Open in the Atlas

Code that ran

12 of 17 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; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 9 failures of our instrument; 5 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.08109.json · badge: /api/ran/2410.08109.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
sail-sg/closer-look-LLM-unlearning canonical (classifier label)
classifier basis: census
8 ran · 4 no recorded run
sail-sg/closer-look-llm-unlearning canonical (classifier label)
classifier basis: classifier_2025
4 ran · 1 no recorded run
FunctionStatusWhere it lives
collate_fn Ran
ran, honoured the contract we drafted
sail-sg/closer-look-LLM-unlearning/dataset/data_module.py
pointer only (licence: NONE) · get_code("cdd171f20cd6f53d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/closer-look-LLM-unlearning 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.

compute_token_entropy Ran
ran, honoured the contract we drafted
sail-sg/closer-look-LLM-unlearning/metrics/metrics.py
pointer only (licence: NONE) · get_code("3953f493940e88b8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/closer-look-LLM-unlearning 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.

find_all_linear_names Ran
ran; our contract draft was wrong, not the code
sail-sg/closer-look-LLM-unlearning/forget.py
pointer only (licence: NONE) · get_code("649fc48067a48529")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/closer-look-LLM-unlearning 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.

ga_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
sail-sg/closer-look-llm-unlearning/trainer/losses.py
pointer only (licence: NONE) · get_code("c2d4937262b0ac28")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/closer-look-llm-unlearning 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.

general_eval Ran
ran; our contract draft was wrong, not the code
sail-sg/closer-look-LLM-unlearning/real_world_eval.py
pointer only (licence: NONE) · get_code("a2f425992cbade01")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/closer-look-LLM-unlearning 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_me_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
sail-sg/closer-look-llm-unlearning/trainer/losses.py
pointer only (licence: NONE) · get_code("01f406043cd388be")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/closer-look-llm-unlearning 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_total_len Ran
ran, honoured the contract we drafted
sail-sg/closer-look-LLM-unlearning/utils/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from CityU-MLO/DualOptimPlus, is pointer only (licence: NONE) · get_code("6c542acea5aa211c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/closer-look-LLM-unlearning 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.

me_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
sail-sg/closer-look-llm-unlearning/trainer/losses.py
pointer only (licence: NONE) · get_code("340f1a6783f01f95")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/closer-look-llm-unlearning 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.

merge_dicts Ran
ran; our contract draft was wrong, not the code
sail-sg/closer-look-LLM-unlearning/utils/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from CityU-MLO/DualOptimPlus, is pointer only (licence: NONE) · get_code("8076aab5782c4d02")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/closer-look-LLM-unlearning 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.

npo_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
sail-sg/closer-look-llm-unlearning/trainer/losses.py
pointer only (licence: NONE) · get_code("a3b77597ef1aa5c9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/closer-look-llm-unlearning 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.

summary_results Ran
ran; our contract draft was wrong, not the code
sail-sg/closer-look-LLM-unlearning/real_world_eval.py
pointer only (licence: NONE); the stored copy get_code serves, from CityU-MLO/DualOptimPlus, is pointer only (licence: NONE) · get_code("10c5cb88157f0830")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/closer-look-LLM-unlearning 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.

token_entropy Ran
ran; our contract draft was wrong, not the code
sail-sg/closer-look-LLM-unlearning/metrics/metrics.py
pointer only (licence: NONE) · get_code("9b8e27aa12ba922b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/closer-look-LLM-unlearning 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.

convert_raw_data_to_model_format Not yet run
unverified (harvested, no recorded run)
sail-sg/closer-look-LLM-unlearning/dataset/data_module.py
pointer only (licence: NONE); the stored copy get_code serves, from wujwyi/CMC, is pointer only (licence: NONE) · get_code("7dec325d088c0b76")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/closer-look-LLM-unlearning 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.

convert_raw_forget_data_to_model_format Not yet run
unverified (harvested, no recorded run)
sail-sg/closer-look-LLM-unlearning/dataset/data_module.py
pointer only (licence: NONE); the stored copy get_code serves, from CityU-MLO/DualOptimPlus, is pointer only (licence: NONE) · get_code("28aa527377c5b4e8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/closer-look-LLM-unlearning 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.

ga_loss Not yet run
unverified (harvested, no recorded run)
sail-sg/closer-look-LLM-unlearning/trainer/losses.py
pointer only (licence: NONE); the stored copy get_code serves, from CityU-MLO/DualOptimPlus, is pointer only (licence: NONE) · get_code("3c6bd6e091c76ca3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/closer-look-LLM-unlearning 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_loss Not yet run
unverified (harvested, no recorded run)
sail-sg/closer-look-llm-unlearning/trainer/losses.py
pointer only (licence: NONE) · get_code("0605aa76e6497ba3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/closer-look-llm-unlearning 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_model_identifiers_from_yaml Not yet run
unverified (harvested, no recorded run)
sail-sg/closer-look-LLM-unlearning/utils/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from safolab-wisc/fiubench, is pointer only (licence: NONE) · get_code("06448b0513272463")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sail-sg/closer-look-LLM-unlearning 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.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 10 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 3 the same month, 10 later) and 6 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
find_all_linear_names 22 other papers
15 dated earlier, 2 the same month, 4 later, 1 same year, order not determinable
2308.09936 (2023-08)
BLIVA: A Simple Multimodal LLM for Better Handling of Text-Rich Visual Questions
2310.13023 (2023-10)
GraphGPT: Graph Instruction Tuning for Large Language Models
2311.13194 (2023-11)
Towards Improving Document Understanding: An Exploration on Text-Grounding via MLLMs
and 19 more not named here
collate_fn 9 other papers
4 dated earlier, 2 the same month, 3 later
2401.06121 (2024-01)
TOFU: A Task of Fictitious Unlearning for LLMs
2406.11614 (2024-06)
Intrinsic Test of Unlearning Using Parametric Knowledge Traces
2406.13356 (2024-06)
UNLEARNING OR OBFUSCATING? JOGGING THE MEM-ORY OF UNLEARNED LLMS VIA BENIGN RELEARNING CONTENT WARNING: THIS MANUSCRIPT CONTAINS EXAMPLES OF HARMFUL/HAZARDOUS TEXT
and 6 more not named here
get_model_identifiers_from_yaml 9 other papers
6 dated earlier, 3 later
2401.06121 (2024-01)
TOFU: A Task of Fictitious Unlearning for LLMs
2406.11614 (2024-06)
Intrinsic Test of Unlearning Using Parametric Knowledge Traces
2406.13356 (2024-06)
UNLEARNING OR OBFUSCATING? JOGGING THE MEM-ORY OF UNLEARNED LLMS VIA BENIGN RELEARNING CONTENT WARNING: THIS MANUSCRIPT CONTAINS EXAMPLES OF HARMFUL/HAZARDOUS TEXT
and 6 more not named here
convert_raw_data_to_model_format 5 other papers
2 dated earlier, 2 the same month, 1 later
2401.06121 (2024-01)
TOFU: A Task of Fictitious Unlearning for LLMs
2407.01920 (2024-07)
To Forget or Not? Towards Practical Knowledge Unlearning for Large Language Models
2410.07163 (2024-10)
Simplicity Prevails: Rethinking Negative Preference Optimization for LLM Unlearning
and 2 more not named here
get_total_len 5 other papers
3 dated earlier, 2 later
2401.06121 (2024-01)
TOFU: A Task of Fictitious Unlearning for LLMs
2406.11614 (2024-06)
Intrinsic Test of Unlearning Using Parametric Knowledge Traces
2406.13356 (2024-06)
UNLEARNING OR OBFUSCATING? JOGGING THE MEM-ORY OF UNLEARNED LLMS VIA BENIGN RELEARNING CONTENT WARNING: THIS MANUSCRIPT CONTAINS EXAMPLES OF HARMFUL/HAZARDOUS TEXT
and 2 more not named here
merge_dicts 3 other papers
1 dated earlier, 2 later
2406.11614 (2024-06)
Intrinsic Test of Unlearning Using Parametric Knowledge Traces
2025.findings-acl.949 (2025 (year only))
A General Framework to Enhance Fine-tuning-based LLM Unlearning
2605.21539 (2026-05)
DualOptim+: Bridging Shared and Decoupled Optimizer States for Better Machine Unlearning in Large Language Models
convert_raw_forget_data_to_model_format 1 other paper
1 later
2605.21539 (2026-05)
DualOptim+: Bridging Shared and Decoupled Optimizer States for Better Machine Unlearning in Large Language Models
ga_loss 1 other paper
1 later
2605.21539 (2026-05)
DualOptim+: Bridging Shared and Decoupled Optimizer States for Better Machine Unlearning in Large Language Models
npo_loss 1 other paper
1 later
2605.21539 (2026-05)
DualOptim+: Bridging Shared and Decoupled Optimizer States for Better Machine Unlearning in Large Language Models
summary_results 1 other paper
1 later
2605.21539 (2026-05)
DualOptim+: Bridging Shared and Decoupled Optimizer States for Better Machine Unlearning in Large Language Models

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

Large language models (LLMs) may memorize sensitive or copyrighted content, raising privacy and legal concerns. Due to the high cost of retraining from scratch, researchers attempt to employ machine unlearning to remove specific content from LLMs while preserving the overall performance. In this paper, we discuss several issues in machine unlearning for LLMs and provide our insights on possible approaches. To address the issue of inadequate evaluation of model outputs after unlearning, we introduce three additional metrics to evaluate token diversity, sentence semantics, and factual correctness. We then categorize unlearning methods into untargeted and targeted, and discuss their issues respectively. Specifically, the behavior that untargeted unlearning attempts to approximate is unpredictable and may involve hallucinations, and existing regularization is insufficient for targeted unlearning. To alleviate these issues, we propose using the objective of maximizing entropy (ME) for untargeted unlearning and incorporate answer preservation (AP) loss as regularization for targeted unlearning. Experimental results across three scenarios, i.e., fictitious unlearning, continual unlearning, and real-world unlearning, demonstrate the effectiveness of our approaches. The code is available at https://github.com/sail-sg/closer-look-LLM-unlearning.

For agents

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

get_harvested_code_for_paper("2410.08109")
get_code_for_paper("2410.08109")
have("2410.08109")

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

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

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

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

Connect an agent — have() is free.