SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2401.01814 · 2024

Large Language Models Relearn Removed Concepts

arXiv · PDF · Open in the Atlas

Code that ran

3 of 4 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 1 failure of our instrument; 1 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/2401.01814.json · badge: /api/ran/2401.01814.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
fbarez/neuroplasticity canonical (classifier label)
classifier basis: census
3 ran · 1 no recorded run
FunctionStatusWhere it lives
get_retrained_model Ran
ran; our contract draft was wrong, not the code
fbarez/neuroplasticity/src/visualization/get_models.py
code served (permissive licence) · get_code("4447b2247d6f1941")
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 torch
import torch.nn as nn
import os
import tempfile
from unittest.mock import Mock, MagicMock

torch.manual_seed(0)

# Create a temporary directory for model paths
temp_dir = tempfile.mkdtemp()
retrained_path = os.path.join(temp_dir, "retrained_model")
pruned_path = os.path.join(temp_dir, "pruned_model")

# Create a mock model_trainer object with required attributes and methods
class MockModelTrainer:
    def __init__(self):
        self.id2label = {0: "O", 1: "B-PER", 2: "I-PER"}
        self.label2id = {"O": 0, "B-PER": 1, "I-PER": 2}
    
    def retrain_pruned_model(self, pruned_path):
        # Return a mock retrained model
        mock_model = Mock(spec=nn.Module)
        mock_model.save_pretrained = Mock()
        return mock_model

model_trainer = MockModelTrainer()

# Mock the AutoModelForTokenClassification.from_pretrained to avoid actual downloads
from unittest.mock import patch

def mock_from_pretrained(path, id2label=None, label2id=None):
    mock_model = Mock(spec=nn.Module)
    mock_model.id2label = id2label
    mock_model.label2id = label2id
    return mock_model

# Since we're not using the retrained_path (it doesn't exist), the function will call retrain_pruned_model
ARGS = {
    "retrained_path": retrained_path,
    "pruned_path": pruned_path,
    "model_trainer": model_trainer
}
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 Mock — a Mock output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Mock 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
measure_concept_relevance Ran
ran, honoured the contract we drafted
fbarez/neuroplasticity/src/visualization/results_utils.py
code served (permissive licence) · get_code("077edb5ed95f148e")
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 float, 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 numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - row_index: an integer representing a row index
# - total_neurons: an integer representing the total number of neurons
# The function performs arithmetic operations on these integers and returns a float

ARGS = {
    "row_index": 42,
    "total_neurons": 1000
}
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 float, 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
null_words Ran
ran, violated the contract we drafted
fbarez/neuroplasticity/src/visualization/results_utils.py
code served (permissive licence) · get_code("2cb83c2feda06800")
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 numpy as np

# Analyze the function: null_words(word_list)
# The function iterates through word_list and calls .isalpha() on each element
# It returns False if any word is alphabetic, True if none are alphabetic

# Test case 1: list of non-alphabetic strings (should return True)
word_list_1 = ["123", "456", "!!!"]

# Test case 2: list of alphabetic strings (should return False)
word_list_2 = ["hello", "world"]

# Test case 3: list of mixed strings (should return False because at least one is alphabetic)
word_list_3 = ["123", "hello", "!!!"]

# Test case 4: empty list (should return True - no alphabetic words found)
word_list_4 = []

# Test case 5: list with numbers and special characters only (should return True)
word_list_5 = ["42", "@#$", "789"]

# Use one of these for ARGS
ARGS = {
    "word_list": word_list_5
}
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 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
get_pruned_model Not yet run
unverified (harvested, no recorded run)
fbarez/neuroplasticity/src/visualization/get_models.py
code served (permissive licence) · get_code("a15323888a9db999")
How it ran

no invocation recorded.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 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 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.

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

Advances in model editing through neuron pruning hold promise for removing undesirable concepts from large language models. However, it remains unclear whether models have the capacity to reacquire pruned concepts after editing. To investigate this, we evaluate concept relearning in models by tracking concept saliency and similarity in pruned neurons during retraining. Our findings reveal that models can quickly regain performance post-pruning by relocating advanced concepts to earlier layers and reallocating pruned concepts to primed neurons with similar semantics. This demonstrates that models exhibit polysemantic capacities and can blend old and new concepts in individual neurons. While neuron pruning provides interpretability into model concepts, our results highlight the challenges of permanent concept removal for improved model \textit{safety}. Monitoring concept reemergence and developing techniques to mitigate relearning of unsafe concepts will be important directions for more robust model editing. Overall, our work strongly demonstrates the resilience and fluidity of concept representations in LLMs post concept removal.

For agents

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

get_harvested_code_for_paper("2401.01814")
get_code_for_paper("2401.01814")
have("2401.01814")

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

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

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

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

Connect an agent — have() is free.