SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.15153 · 2024

Evaluating Deep Unlearning in Large Language Models

arXiv · PDF · Open in the Atlas

Code that ran

9 of 12 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; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 7 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.15153.json · badge: /api/ran/2410.15153.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
wrh14/deep_unlearning canonical (classifier label)
classifier basis: census
9 ran · 3 no recorded run
FunctionStatusWhere it lives
add_dataset_index Ran
ran; our contract draft was wrong, not the code
wrh14/deep_unlearning/utils.py
code served (permissive licence) · get_code("669009a59e41c2c9")
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 Mock. 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 numpy as np
from unittest.mock import Mock

# Create a mock dataset object that has the required methods
mock_dataset = Mock()

# The function calls len(dataset) and dataset.add_column('index', indexing)
# So we need to mock these behaviors
mock_dataset.__len__ = Mock(return_value=5)
mock_dataset.add_column = Mock(return_value=mock_dataset)

ARGS = {
    'dataset': mock_dataset
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Mock — a Mock output has no array shape of its own; none is 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
check_if_in_deductive_closure Ran
ran; our contract draft was wrong, not the code
wrh14/deep_unlearning/utils_metric.py
code served (permissive licence) · get_code("dd8e0c53b94c1011")
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 bool, ndim 0, dtype family float, 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.

from copy import deepcopy

class Rule:
    """Stand-in class for rules used in the function"""
    def __init__(self, right_tuple, rule_id):
        self.right_tuple = right_tuple
        self.rule_id = rule_id
    
    def get_up_edges_list(self, dc_edge_list, dc_edge_type_list, unlearn_edge, unlearn_edge_type):
        """
        Returns a list of lists of edges (tuples of (node1, relation, node2))
        that could deduce the given edge through this rule
        """
        # Simulate finding upstream edges that could lead to this edge
        # Return empty list or list with some upstream edges
        return []


# Construct the arguments
unlearn_data_id = 0

# minimal_set: set of indices pointing to edges in edge_list
minimal_set = {0, 1}

# edge_list: list of edges as tuples (node1, node2)
edge_list = [
    (0, 1),
    (1, 2),
    (2, 3),
]

# edge_type_list: list of edge types (relations) corresponding to edge_list
edge_type_list = ["knows", "loves", "hates"]

# dc_edge_list: deductive closure edge list - includes original edges + deduced edges
# It should be longer than edge_list since it includes deduced edges
dc_edge_list = [
    (0, 1),
    (1, 2),
    (2, 3),
    (0, 2),  # deduced edge
    (1, 3),  # deduced edge
]

# dc_edge_type_list: types for all edges in deductive closure
dc_edge_type_list = ["knows", "loves", "hates", "knows", "loves"]

# rule_list: list of Rule objects
# Each rule has a right_tuple (head relation) and can compute upstream edges
rule_list = [
    Rule(right_tuple=("transitivity", "knows"), rule_id=0),
    Rule(right_tuple=("composition", "loves"), rule_id=1),
]

ARGS = {
    "unlearn_data_id": unlearn_data_id,
    "minimal_set": minimal_set,
    "edge_list": edge_list,
    "edge_type_list": edge_type_list,
    "dc_edge_list": dc_edge_list,
    "dc_edge_type_list": dc_edge_type_list,
    "rule_list": rule_list,
}
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 bool, ndim 0, dtype family float, 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
compare Ran
ran, violated the contract we drafted
wrh14/deep_unlearning/task_vector.py
code served (permissive licence) · get_code("f80682d13e9784c8")
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 bool, ndim 0, dtype family float, 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)

class SimpleModel(nn.Module):
    def __init__(self, input_dim=4, output_dim=3):
        super().__init__()
        self.linear = nn.Linear(input_dim, output_dim)
    
    def forward(self, x):
        return self.linear(x)

# Create two identical models
model1 = SimpleModel(input_dim=4, output_dim=3)
model2 = SimpleModel(input_dim=4, output_dim=3)

# Copy state_dict from model1 to model2 to make them identical
model2.load_state_dict(model1.state_dict())

ARGS = {
    "model1": model1,
    "model2": model2,
}
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 bool, ndim 0, dtype family float, 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
convert_raw_data_to_model_format Ran
ran, honoured the contract we drafted
wrh14/deep_unlearning/data_module.py
code served (permissive licence) · get_code("c148b56239314ed5")
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 2, 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 transformers import AutoTokenizer

torch.manual_seed(0)

# Create a minimal tokenizer-like object
class MockTokenizer:
    def __init__(self):
        self.eos_token_id = 50256
    
    def tokenize(self, text, add_special_tokens=True):
        # Simple tokenization: split by spaces and add special tokens
        tokens = text.split()
        if add_special_tokens:
            tokens = ['<s>'] + tokens + ['</s>']
        return tokens
    
    def __call__(self, text, add_special_tokens=True, max_length=None, truncation=True):
        # Return a mock encoded object
        tokens = self.tokenize(text, add_special_tokens=add_special_tokens)
        
        # Simple token-to-id mapping
        input_ids = [hash(token) % 1000 for token in tokens]
        
        if max_length and truncation and len(input_ids) > max_length:
            input_ids = input_ids[:max_length]
        
        attention_mask = [1] * len(input_ids)
        
        return MockEncoded(input_ids, attention_mask)

class MockEncoded:
    def __init__(self, input_ids, attention_mask):
        self.input_ids = input_ids
        self.attention_mask = attention_mask
    
    def __getitem__(self, key):
        if key == 'input_ids':
            return self.input_ids
        elif key == 'attention_mask':
            return self.attention_mask
        raise KeyError(key)

tokenizer = MockTokenizer()
max_length = 32
question = "What is this?"
answer = "This is an answer."
model_configs = {
    'question_start_tag': '[Q]',
    'question_end_tag': '[/Q]',
    'answer_tag': '[A]'
}

ARGS = {
    'tokenizer': tokenizer,
    'max_length': max_length,
    'question': question,
    'answer': answer,
    'model_configs': model_configs
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, 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
custom_data_collator Ran
ran; our contract draft was wrong, not the code
wrh14/deep_unlearning/data_module.py
code served (permissive licence) · get_code("5985b70afc6ef2b0")
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. 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

torch.manual_seed(0)

# The function expects samples, where each sample is a tuple of:
# (input_ids, labels, attention_mask)
# Each of these should be a tensor that can be stacked.

# Create sample data: 2 samples, each with tensors of different shapes
# to make them distinctly identifiable

sample_1 = (
    torch.randn(4),      # input_ids: shape (4,)
    torch.randn(3),      # labels: shape (3,)
    torch.randn(5)       # attention_mask: shape (5,)
)

sample_2 = (
    torch.randn(4),      # input_ids: shape (4,)
    torch.randn(3),      # labels: shape (3,)
    torch.randn(5)       # attention_mask: shape (5,)
)

samples = [sample_1, sample_2]

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 tuple — a tuple output has no array shape of its own; none is 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
custom_data_collator_npo Ran
ran; our contract draft was wrong, not the code
wrh14/deep_unlearning/data_module.py
code served (permissive licence) · get_code("e566e2214d87e9eb")
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 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

torch.manual_seed(0)

# The function expects samples, where each sample is a tuple of 4 elements:
# (input_ids, labels, attention_mask, ref_logits)
# Each element should be a tensor that can be stacked

# Create sample data
sample1 = (
    torch.randint(0, 100, (4,)),  # input_ids
    torch.randint(0, 10, (4,)),   # labels
    torch.ones(4),                 # attention_mask
    torch.randn(4)                 # ref_logits
)

sample2 = (
    torch.randint(0, 100, (4,)),  # input_ids
    torch.randint(0, 10, (4,)),   # labels
    torch.ones(4),                 # attention_mask
    torch.randn(4)                 # ref_logits
)

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 tuple, ndim 3, dtype family float — 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
eval_qa_whp Ran
ran; our contract draft was wrong, not the code
wrh14/deep_unlearning/evaluate_util.py
code served (permissive licence) · get_code("ae2259c810201f91")
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 2, 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
from unittest.mock import Mock

torch.manual_seed(0)

class TinyTokenizer:
    def __init__(self):
        self.eos_token_id = 2
    
    def __call__(self, text, return_tensors=None):
        # Return a mock object with .to() method
        input_ids = torch.tensor([[101, 2054, 1045, 2572, 102]], dtype=torch.long)
        attention_mask = torch.tensor([[1, 1, 1, 1, 1]], dtype=torch.long)
        
        result = {
            'input_ids': input_ids,
            'attention_mask': attention_mask
        }
        
        class TokenizerOutput:
            def __init__(self, data):
                self.data = data
            
            def to(self, device):
                return self.data
            
            def __getitem__(self, key):
                return self.data[key]
        
        return TokenizerOutput(result)
    
    def decode(self, tensor, skip_special_tokens=False):
        # Return a simple string
        return "The answer is 42"

class TinyWhpModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 4)
        self.device = torch.device('cpu')
    
    def generate(self, input_ids, attention_mask=None, max_new_tokens=10, do_sample=False, pad_token_id=None):
        # Return a tensor of token ids
        batch_size = input_ids.shape[0]
        output_length = input_ids.shape[1] + max_new_tokens
        outputs = torch.randint(0, 1000, (batch_size, output_length), dtype=torch.long)
        return outputs

dataset = [
    {'question': 'What is the answer?', 'answer': 'The answer is 42'},
    {'question': 'What is 2+2?', 'answer': '4'},
]

tokenizer = TinyTokenizer()
whp_model = TinyWhpModel()

ARGS = {
    'dataset': dataset,
    'whp_model': whp_model,
    'tokenizer': tokenizer,
    'max_new_tokens': 10,
    'qk': 'question',
    'ak': 'answer',
    'question_start_tag': '[INST] ',
    'question_end_tag': ' [/INST]',
    'answer_tag': ''
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — 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
get_minimal_nec_unlearn_and_not_included_unlearn Ran
ran; our contract draft was wrong, not the code
wrh14/deep_unlearning/utils_metric.py
code served (permissive licence) · get_code("dae33bffbca69376")
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 set. 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 numpy as np
import random
from copy import deepcopy

class Rule:
    """Minimal rule class that supports the required methods"""
    def __init__(self, right_tuple, rule_id=0):
        self.right_tuple = right_tuple
        self.rule_id = rule_id
    
    def get_up_edges_list(self, dc_edge_list, dc_edge_type_list, unlearn_edge, unlearn_edge_type):
        """
        Returns a list of lists of upstream edges.
        For testing, return a simple structure based on rule logic.
        """
        # Return empty list to avoid infinite loops in test
        return []

def get_edge_id(edge, edge_list):
    for i, _edge in enumerate(edge_list):
        if _edge == edge:
            return i
    return -1

# Construct minimal valid test data
unlearn_data_id = 0

# Edge list: tuples of (source, target)
edge_list = [
    (0, 1),
    (1, 2),
    (2, 3),
]

# Edge type list: parallel to edge_list
edge_type_list = [
    "type_a",
    "type_b",
    "type_a",
]

# DC edge list: deductive closure edges, includes original + inferred
dc_edge_list = [
    (0, 1),
    (1, 2),
    (2, 3),
    (0, 2),  # inferred edge
    (0, 3),  # inferred edge
]

# DC edge type list: parallel to dc_edge_list
dc_edge_type_list = [
    "type_a",
    "type_b",
    "type_a",
    "type_b",
    "type_a",
]

# Rule list: rules that define how edges are deduced
rule_list = [
    Rule(right_tuple=(None, "type_b")),
    Rule(right_tuple=(None, "type_a")),
]

seed = 0

ARGS = {
    "unlearn_data_id": unlearn_data_id,
    "edge_list": edge_list,
    "edge_type_list": edge_type_list,
    "dc_edge_list": dc_edge_list,
    "dc_edge_type_list": dc_edge_type_list,
    "rule_list": rule_list,
    "seed": seed,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type set — a set output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a set 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
get_prec_rec_acc Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wrh14/deep_unlearning/utils_metric.py
code served (permissive licence) · get_code("b94917ff43e0396e")
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 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 numpy as np

# Analyzing the function:
# - minimal_set: used as list(minimal_set), so needs to be iterable with integer indices
# - unlearn_ind: used with .sum() and array operations, so needs to be numpy array

# Create a minimal_set as a set of indices
minimal_set = {0, 2}  # Set of 2 indices from a larger population

# Create unlearn_ind as a numpy array of binary values (0 or 1)
# Let's make it length 5 to have diversity
unlearn_ind = np.array([1, 0, 1, 0, 1])

ARGS = {
    "minimal_set": minimal_set,
    "unlearn_ind": unlearn_ind
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — 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
get_model_identifiers_from_yaml Not yet run
unverified (harvested, no recorded run)
wrh14/deep_unlearning/utils.py
code served (permissive licence) · get_code("41b483c67acbde4d")
How it ran

no invocation recorded.

load_model Not yet run
unverified (harvested, no recorded run)
wrh14/deep_unlearning/task_vector.py
code served (permissive licence) · get_code("fac5049c9b469cf9")
How it ran

no invocation recorded.

unlearn Not yet run
unverified (harvested, no recorded run)
wrh14/deep_unlearning/task_vector.py
code served (permissive licence) · get_code("137b4007a02b0407")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 1 the same month, 1 later) and 10 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
custom_data_collator 5 other papers
3 dated earlier, 1 the same month, 1 later
2401.06121 (2024-01)
TOFU: A Task of Fictitious Unlearning for LLMs
2407.16997 (2024-07)
Revisiting Who's Harry Potter: Towards Targeted Unlearning from a Causal Intervention Perspective
2409.11844 (2024-09)
MEOW: MEMOry Supervised LLM Unlearning Via Inverted Facts
and 2 more not named here
add_dataset_index 1 other paper
1 dated earlier
2407.01920 (2024-07)
To Forget or Not? Towards Practical Knowledge Unlearning for 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

Machine unlearning has emerged as an important component in developing safe and trustworthy models. Prior work on fact unlearning in LLMs has mostly focused on removing a specified target fact robustly, but often overlooks its deductive connections to other knowledge. We propose a new setting for fact unlearning, deep unlearning, where the goal is not only to remove a target fact but also to prevent it from being deduced via retained knowledge in the LLM and logical reasoning. We propose three novel metrics: Success-DU and Recall to measure unlearning efficacy, and Accuracy to measure the remainder model utility. To benchmark this setting, we leverage both (1) an existing real-world knowledge dataset, MQuAKE, that provides one-step deduction instances, and (2) newly construct a novel semi-synthetic dataset, Eval-DU, that allows multiple steps of realistic deductions among synthetic facts. Experiments reveal that current methods struggle with deep unlearning: they either fail to deeply unlearn, or excessively remove unrelated facts. Our results suggest that targeted algorithms may have to be developed for robust/deep fact unlearning in LLMs.

For agents

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

get_harvested_code_for_paper("2410.15153")
get_code_for_paper("2410.15153")
have("2410.15153")

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

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

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

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

Connect an agent — have() is free.