SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2025.findings-acl.949 · ACL Findings · 2025

A General Framework to Enhance Fine-tuning-based LLM Unlearning

Yue Xing, Zhen Li, Jie Ren, Xianfeng Tang, Hui Liu, Rahul Goutam, Suhang Wang, Qi He, Zhenwei Dai, Jingying Zeng

Open in the Atlas

Code that ran

10 of 13 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; 4 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 3 no recorded run), measured 2026-11-24; 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/2025.findings-acl.949.json · badge: /api/ran/2025.findings-acl.949.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
renjie3/GRUN canonical (classifier label)
classifier basis: census
10 ran · 3 no recorded run
FunctionStatusWhere it lives
collate_fn Ran
ran, honoured the contract we drafted
renjie3/GRUN/baseline/data_module.py
code served (permissive licence) · get_code("cdd171f20cd6f53d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 3, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from torch.nn.utils.rnn import pad_sequence

torch.manual_seed(0)

# Create sample batch data
# Each item in batch is a tuple of (input_ids, attention_mask)
# input_ids and attention_masks should be 1D tensors of different lengths

batch = [
    (torch.tensor([1, 2, 3], dtype=torch.long), torch.tensor([1, 1, 1], dtype=torch.long)),
    (torch.tensor([4, 5], dtype=torch.long), torch.tensor([1, 1], dtype=torch.long)),
]

ARGS = {
    "batch": batch
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 3, dtype family int — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_metrics Ran
ran; our contract draft was wrong, not the code
renjie3/GRUN/baseline/dataloader.py
code served (permissive licence) · get_code("88a4f13abd54a00c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Create a simple pred object with predictions and label_ids attributes
class PredObject:
    def __init__(self, predictions, label_ids):
        self.predictions = predictions
        self.label_ids = label_ids

# Create small tensors: batch_size=2, vocab_size=4, seq_length=3
batch_size = 2
vocab_size = 4
seq_length = 3

# predictions shape: (batch_size, seq_length, vocab_size) - logits
predictions = np.random.randn(batch_size, seq_length, vocab_size).astype(np.float32)

# label_ids shape: (batch_size, seq_length) - token indices
# Use values in range [0, vocab_size) or -100 for ignore_index
label_ids = np.array([
    [1, 2, 0],
    [3, 1, -100]
], dtype=np.int64)

# Create pred object
pred = PredObject(predictions, label_ids)

ARGS = {
    'pred': pred
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
count_parameters Ran
ran, honoured the contract we drafted
renjie3/GRUN/pyreft/reft_model.py
code served (permissive licence) · get_code("1cd5252a6c21c50e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a simple model with parameters that require gradients
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
        self.param = nn.Parameter(torch.randn(5))
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

model = SimpleModel()

ARGS = {
    'model': model
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
custom_data_collator_forget Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
renjie3/GRUN/baseline/dataloader.py
code served (permissive licence) · get_code("21d81f7df56f3525")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 4, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function expects samples to be a list of tuples
# Each tuple contains either 2 or 3 elements (idk, forget, retain) or (forget, retain)
# Each element is itself a tuple of (input_ids, labels, attention_mask)
# where input_ids, labels, attention_mask are all tensors

# Create sample data for the 3-element case
sample_1_forget = (torch.tensor([1, 2, 3, 4]), torch.tensor([0, 1, 0, 1]), torch.tensor([1, 1, 1, 1]))
sample_1_idk = (torch.tensor([5, 6, 7, 8]), torch.tensor([1, 0, 1, 0]), torch.tensor([1, 1, 1, 0]))
sample_1_retain = (torch.tensor([9, 10, 11, 12]), torch.tensor([0, 0, 1, 1]), torch.tensor([1, 1, 0, 0]))

sample_2_forget = (torch.tensor([2, 3, 4, 5]), torch.tensor([1, 1, 0, 0]), torch.tensor([1, 1, 1, 1]))
sample_2_idk = (torch.tensor([6, 7, 8, 9]), torch.tensor([0, 1, 0, 1]), torch.tensor([1, 0, 1, 0]))
sample_2_retain = (torch.tensor([10, 11, 12, 13]), torch.tensor([1, 0, 1, 0]), torch.tensor([0, 1, 1, 0]))

# Create samples as tuples of (idk, forget, retain)
samples_3_element = [
    (sample_1_idk, sample_1_forget, sample_1_retain),
    (sample_2_idk, sample_2_forget, sample_2_retain)
]

ARGS = {
    "samples": samples_3_element
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 4, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
custom_data_collator_forget_wmdp Ran
ran, honoured the contract we drafted
renjie3/GRUN/baseline/dataloader.py
code served (permissive licence) · get_code("7308b4c1cc99dd1c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 4, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create sample data with 3 types: idk, forget, retain
# Each sample is a tuple of 3 dicts (idk_sample, forget_sample, retain_sample)
sample1 = (
    {'input_ids': torch.tensor([1, 2, 3, 4]), 'labels': torch.tensor([1, 2, 3, 4]), 'attention_mask': torch.tensor([1, 1, 1, 1])},
    {'input_ids': torch.tensor([5, 6, 7, 8]), 'labels': torch.tensor([5, 6, 7, 8]), 'attention_mask': torch.tensor([1, 1, 1, 0])},
    {'input_ids': torch.tensor([9, 10, 11, 12]), 'labels': torch.tensor([9, 10, 11, 12]), 'attention_mask': torch.tensor([1, 1, 0, 0])}
)

sample2 = (
    {'input_ids': torch.tensor([13, 14, 15, 16]), 'labels': torch.tensor([13, 14, 15, 16]), 'attention_mask': torch.tensor([1, 1, 1, 1])},
    {'input_ids': torch.tensor([17, 18, 19, 20]), 'labels': torch.tensor([17, 18, 19, 20]), 'attention_mask': torch.tensor([1, 0, 0, 0])},
    {'input_ids': torch.tensor([21, 22, 23, 24]), 'labels': torch.tensor([21, 22, 23, 24]), 'attention_mask': torch.tensor([0, 0, 0, 0])}
)

samples = [sample1, sample2]

ARGS = {
    'samples': samples
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 4, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
eval_rouge_recall Ran
ran; our contract draft was wrong, not the code
renjie3/GRUN/grun_eval.py
code served (permissive licence) · get_code("75d3f7f1709e3961")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

# The function expects two parameters:
# 1. gen_outputs: list of generated text strings
# 2. ground_truths: list of ground truth text strings

# Both are iterated over with zip and each element is passed to scorer.score()
# scorer.score() expects two string arguments (reference, hypothesis)

ARGS = {
    'gen_outputs': [
        'the quick brown fox jumps over the lazy dog',
        'a cat sat on the mat'
    ],
    'ground_truths': [
        'the quick brown fox jumps over a lazy dog',
        'the cat is sitting on the mat'
    ]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, rouge_score, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
find_all_linear_names Ran
ran; our contract draft was wrong, not the code
renjie3/GRUN/baseline/finetune.py
code served (permissive licence) · get_code("649fc48067a48529")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Build a minimal model with Linear layers
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.layer1 = nn.Linear(4, 3)
        self.layer2 = nn.Sequential(
            nn.Linear(3, 2),
            nn.ReLU()
        )
        self.lm_head = nn.Linear(2, 5)
        self.other_linear = nn.Linear(5, 4)
    
    def forward(self, x):
        x = self.layer1(x)
        x = self.layer2(x)
        x = self.lm_head(x)
        x = self.other_linear(x)
        return x

model = SimpleModel()

ARGS = {
    "model": model
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_total_len Ran
ran, honoured the contract we drafted
renjie3/GRUN/baseline/utils.py
pointer only (licence: MIT); 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: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from CityU-MLO/DualOptimPlus, 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.

load_file Ran
ran; our contract draft was wrong, not the code
renjie3/GRUN/grun_wdmp_eval_mcq.py
code served (permissive licence) · get_code("b96c2e4b55fd5a75")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import tempfile
import os

# Create temporary .json file
json_data = [{"key": "value1"}, {"key": "value2"}]
with tempfile.NamedTemporaryFile(mode='w', suffix='.json', delete=False) as f:
    json.dump(json_data, f)
    json_file_path = f.name

# Create temporary .jsonl file
jsonl_data = [{"key": "value1"}, {"key": "value2"}]
with tempfile.NamedTemporaryFile(mode='w', suffix='.jsonl', delete=False) as f:
    for item in jsonl_data:
        f.write(json.dumps(item) + '\n')
    jsonl_file_path = f.name

# Use the .json file for the test
ARGS = {
    'file_path': json_file_path
}

# Cleanup will happen after test execution
# Note: In practice, you'd want to clean up these temp files:
# os.unlink(json_file_path)
# os.unlink(jsonl_file_path)
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
merge_dicts Ran
ran; our contract draft was wrong, not the code
renjie3/GRUN/baseline/utils.py
pointer only (licence: MIT); 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: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from CityU-MLO/DualOptimPlus, 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.

convert_raw_data_to_model_format Not yet run
unverified (harvested, no recorded run)
renjie3/GRUN/baseline/data_module.py
pointer only (licence: MIT); 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: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from wujwyi/CMC, 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_model_identifiers_from_yaml Not yet run
unverified (harvested, no recorded run)
renjie3/GRUN/baseline/utils.py
pointer only (licence: MIT); 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: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from safolab-wisc/fiubench, 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.

unlearncollector Not yet run
unverified (harvested, no recorded run)
renjie3/GRUN/baseline/data_module.py
code served (permissive licence) · get_code("52f769b837c6e32a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 9 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 0 the same month, 6 later) and 4 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
count_parameters 180 other papers
157 dated earlier, 13 later, 10 same year, order not determinable · 8 only as an assembly brick
1705.08415 (2017-05)
Supervised Community Detection with Line Graph Neural Networks
1707.01926 (2017-07)
Diffusion Convolutional Recurrent Neural Network: Data-Driven Traffic Forecasting
1808.09367 (2018-08)
Deriving Machine Attention from Human Rationales
and 177 more not named here
find_all_linear_names 22 other papers
19 dated earlier, 2 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
7 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 6 more not named here
get_model_identifiers_from_yaml 9 other papers
8 dated earlier, 1 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
compute_metrics 6 other papers
4 dated earlier, 2 same year, order not determinable
2401.06121 (2024-01)
TOFU: A Task of Fictitious Unlearning for LLMs
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
2407.16997 (2024-07)
Revisiting Who's Harry Potter: Towards Targeted Unlearning from a Causal Intervention Perspective
and 3 more not named here
convert_raw_data_to_model_format 5 other papers
5 dated earlier
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
4 dated earlier, 1 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
2 dated earlier, 1 later
2406.11614 (2024-06)
Intrinsic Test of Unlearning Using Parametric Knowledge Traces
2410.08109 (2024-10)
A Closer Look at Machine Unlearning for Large Language Models
2605.21539 (2026-05)
DualOptim+: Bridging Shared and Decoupled Optimizer States for Better Machine Unlearning in Large Language Models
unlearncollector 1 other paper
1 dated earlier
2410.07163 (2024-10)
Simplicity Prevails: Rethinking Negative Preference Optimization for LLM Unlearning

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-24.

Repositories linked to this paper

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

Abstract

Unlearning has been proposed to remove copyrighted and privacy-sensitive data from Large Language Models (LLMs). Existing approaches primarily rely on fine-tuning-based methods, which can be categorized into gradient ascent-based (GA-based) and suppressionbased methods. However, they often degrade model utility (the ability to respond to normal prompts). In this work, we aim to develop a general framework that enhances the utility of fine-tuning-based unlearning methods. To achieve this goal, we first investigate the common property between GA-based and suppression-based methods. We unveil that GA-based methods unlearn by distinguishing the target data (i.e., the data to be removed) and suppressing related generations-essentially the same strategy employed by suppressionbased methods. Inspired by this finding, we introduce Gated Representation UNlearning (GRUN) which has two components: a soft gate function for distinguishing target data and a suppression module using Representation Finetuning (ReFT) to adjust representations rather than model parameters. Experiments show that GRUN significantly improves the unlearning and utility. Meanwhile, it is general for finetuning-based methods, efficient and promising for sequential unlearning. Our code is available at github.com/renjie3/GRUN.

For agents

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

get_harvested_code_for_paper("2025.findings-acl.949")
get_code_for_paper("2025.findings-acl.949")
have("2025.findings-acl.949")

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

curl https://syntology.ai/api/ran/2025.findings-acl.949.json

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

[![Syntology run record](https://syntology.ai/api/ran/2025.findings-acl.949.svg)](https://syntology.ai/paper/2025.findings-acl.949)

Connect an agent — have() is free.