SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1911.04933 · 2019

Eternal Sunshine of the Spotless Net: Selective Forgetting in Deep Networks

arXiv · PDF · Open in the Atlas

Code that ran

8 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; 0 honoured the contract we drafted, 0 violated it and 8 have no contract verdict; 0 failures of our instrument; 9 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/1911.04933.json · badge: /api/ran/1911.04933.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
zero-or-one/URP community (classifier label)
classifier basis not recorded on the link
8 ran · 9 no recorded run
FunctionStatusWhere it lives
ConvRes Ran
ran on a synthesized input
zero-or-one/URP/models/models.py
code served (permissive licence) · get_code("dad51ff17c8287b6")
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 Conv2d. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "in_planes": 3,
    "out_planes": 64,
    "stride": 1,
}
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 Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
class_accuracy Ran
ran on a synthesized input
zero-or-one/URP/learning/learn_utils.py
code served (permissive licence) · get_code("5ec3121ecd2eb357")
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 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 numpy as np

torch.manual_seed(0)

# The function iterates over pred_labels and true_labels using zip
# and compares elements with ==, then sums the boolean results.
# So we need iterable sequences of comparable items.

pred_labels = [0, 1, 0, 1]
true_labels = [0, 1, 1, 1]

ARGS = {
    "pred_labels": pred_labels,
    "true_labels": true_labels,
}
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 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
get_param Ran
ran on a synthesized input
zero-or-one/URP/models/models_utils.py
code served (permissive licence) · get_code("16051d5190516416")
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 torch.nn as nn
import numpy as np

torch.manual_seed(0)

# Define small stand-in models
class LinearModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 1)
    
    def forward(self, x):
        return self.linear(x)

class PolynomialModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 8)
        self.linear2 = nn.Linear(8, 1)
    
    def forward(self, x):
        return self.linear2(torch.relu(self.linear1(x)))

class LogisticModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 2)
    
    def forward(self, x):
        return torch.sigmoid(self.linear(x))

class DNN(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 8)
        self.linear2 = nn.Linear(8, 6)
        self.linear3 = nn.Linear(6, 1)
    
    def forward(self, x):
        x = torch.relu(self.linear1(x))
        x = torch.relu(self.linear2(x))
        return self.linear3(x)

class CNN(nn.Module):
    def __init__(self):
        super().__init__()
        self.conv1 = nn.Conv2d(3, 16, 3, padding=1)
        self.fc = nn.Linear(16 * 4 * 4, 1)
    
    def forward(self, x):
        x = torch.relu(self.conv1(x))
        x = x.view(x.size(0), -1)
        return self.fc(x)

class ResNet(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 8)
        self.linear2 = nn.Linear(8, 8)
        self.linear3 = nn.Linear(8, 1)
    
    def forward(self, x):
        residual = x
        if residual.shape[-1] != 8:
            residual = torch.zeros(x.shape[0], 8)
        x = torch.relu(self.linear1(x))
        x = torch.relu(self.linear2(x)) + residual
        return self.linear3(x)

# Create instances
linear_model = LinearModel()
poly_model = PolynomialModel()
logistic_model = LogisticModel()
dnn_model = DNN()
cnn_model = CNN()
resnet_model = ResNet()

# Create small datasets
train_data_linear = [(torch.randn(2, 4), torch.randn(2, 1)) for _ in range(3)]
train_data_poly = [(torch.randn(2, 4), torch.randn(2, 1)) for _ in range(3)]
train_data_logistic = [(torch.randn(2, 4), torch.randint(0, 2, (2, 1))) for _ in range(3)]
train_data_dnn = [(torch.randn(2, 4), torch.randn(2, 1)) for _ in range(3)]
train_data_cnn = [(torch.randn(2, 3, 4, 4), torch.randn(2, 1)) for _ in range(3)]
train_data_resnet = [(torch.randn(2, 4), torch.randn(2, 1)) for _ in range(3)]

ARGS = {
    'name': 'linear_regression'
}
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
make_ascent Ran
ran on a synthesized input
zero-or-one/URP/forgetting/forget_utils.py
code served (permissive licence) · get_code("f54dac8b9b05da11")
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 Tensor, ndim 1, dtype family float, shape (4,) 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

torch.manual_seed(0)

# The function make_ascent takes a single parameter 'loss' which should be a tensor
# It passes this tensor to AscentFunction.apply(), which expects a torch.Tensor
# The forward method returns the input as-is
# The backward method negates the gradient

# Create a small tensor to represent a loss value
loss_tensor = torch.tensor([2.5, 1.3, 0.8, 1.1], dtype=torch.float32, requires_grad=True)

ARGS = {
    "loss": loss_tensor
}
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 Tensor, ndim 1, dtype family float, shape (4,) — shape (4,) 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
model_learning Ran
ran on a synthesized input
zero-or-one/URP/forgetting/forget_utils.py
code served (permissive licence) · get_code("74aea471a48d4f2a")
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 Sequential. 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 torch.nn as nn

torch.manual_seed(0)

# Build a minimal model that has parameters
model = nn.Sequential(
    nn.Linear(4, 3),
    nn.ReLU(),
    nn.Linear(3, 2)
)

# The function iterates over model.parameters() and sets requires_grad
# So we need a model instance and a boolean for unfreeze
unfreeze = True

ARGS = {
    "model": model,
    "unfreeze": unfreeze
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
nip Ran
ran on a synthesized input
zero-or-one/URP/forgetting/forget_utils.py
code served (permissive licence) · get_code("fe791ae5d228894f")
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 float64, ndim 0, 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

# Create two small numpy arrays for v1 and v2
# v1 represents a prediction vector
v1 = np.array([1.0, 2.0, 3.0, 4.0])

# v2 represents an actual scrubbing update vector
v2 = np.array([4.0, 3.0, 2.0, 1.0])

ARGS = {
    "v1": v1,
    "v2": v2
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
regularization Ran
ran on a synthesized input
zero-or-one/URP/learning/learn_utils.py
code served (permissive licence) · get_code("4079cde5d6b5a1af")
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 Tensor, 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
import numpy as np

torch.manual_seed(0)

# Create a minimal model with parameters
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

model = SimpleModel()

ARGS = {
    "model": model,
    "lamb": 0.01,
    "l2": True
}
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 Tensor, 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
set_loss Ran
ran on a synthesized input
zero-or-one/URP/learning/learn_utils.py
code served (permissive licence) · get_code("09389ab6d25f8096")
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 L1Loss. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'loss': 'mae',
    'cuda': None
}
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 L1Loss — a L1Loss output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a L1Loss 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
encoder_epoch Not yet run
unverified (harvested, no recorded run)
zero-or-one/URP/forgetting/forget.py
code served (permissive licence) · get_code("ee48cdf111bace6c")
How it ran

no invocation recorded.

epoch Not yet run
unverified (harvested, no recorded run)
zero-or-one/URP/learning/learn.py
code served (permissive licence) · get_code("f8191305d90db998")
How it ran

no invocation recorded.

get_model Not yet run
unverified (harvested, no recorded run)
zero-or-one/URP/models/models_utils.py
code served (permissive licence) · get_code("ae937b549e24cb5c")
How it ran

no invocation recorded.

get_pdf Not yet run
unverified (harvested, no recorded run)
zero-or-one/URP/evaluation/eval_utils.py
code served (permissive licence) · get_code("fe46ceeb9b10981d")
How it ran

no invocation recorded.

hiding_helper Not yet run
unverified (harvested, no recorded run)
zero-or-one/URP/forgetting/forget.py
code served (permissive licence) · get_code("a286929619f31663")
How it ran

no invocation recorded.

l2_distance Not yet run
unverified (harvested, no recorded run)
zero-or-one/URP/evaluation/eval_utils.py
code served (permissive licence) · get_code("3aec5db3515dd753")
How it ran

no invocation recorded.

predict Not yet run
unverified (harvested, no recorded run)
zero-or-one/URP/learning/learn.py
code served (permissive licence) · get_code("b7421427efd627f6")
How it ran

no invocation recorded.

train_encoder Not yet run
unverified (harvested, no recorded run)
zero-or-one/URP/forgetting/forget.py
code served (permissive licence) · get_code("931b41018d2420b8")
How it ran

no invocation recorded.

vectorize_params Not yet run
unverified (harvested, no recorded run)
zero-or-one/URP/evaluation/eval_utils.py
code served (permissive licence) · get_code("15d8d3ae82668ed1")
How it ran

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 17 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 17 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.

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

We explore the problem of selectively forgetting a particular subset of the data used for training a deep neural network. While the effects of the data to be forgotten can be hidden from the output of the network, insights may still be gleaned by probing deep into its weights. We propose a method for "scrubbing'" the weights clean of information about a particular set of training data. The method does not require retraining from scratch, nor access to the data originally used for training. Instead, the weights are modified so that any probing function of the weights is indistinguishable from the same function applied to the weights of a network trained without the data to be forgotten. This condition is a generalized and weaker form of Differential Privacy. Exploiting ideas related to the stability of stochastic gradient descent, we introduce an upper-bound on the amount of information remaining in the weights, which can be estimated efficiently even for deep neural networks.

For agents

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

get_harvested_code_for_paper("1911.04933")
get_code_for_paper("1911.04933")
have("1911.04933")

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

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

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

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

Connect an agent — have() is free.