SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2210.12651 · EMNLP · 2022

Unsupervised Non-transferable Text Classification

Guangtao Zeng, Wei Lu

arXiv · PDF · Open in the Atlas

Code that ran

4 of 8 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 3 have no contract verdict; 1 failure of our instrument; 4 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/2210.12651.json · badge: /api/ran/2210.12651.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
chaoscodes/untl marked official in Papers with Code
Papers with Code archive
4 ran · 4 no recorded run
FunctionStatusWhere it lives
CustomDataset Ran
ran on a synthesized input
chaoscodes/untl/UNTL.py
code served (permissive licence) · get_code("deec6dbc605685ce")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) 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

# Create mock datasets with the expected structure
dataset1 = [
    {'input_ids': torch.tensor([1, 2, 3, 4]), 'attention_mask': torch.tensor([1, 1, 1, 1]), 'label': 0},
    {'input_ids': torch.tensor([5, 6, 7, 8]), 'attention_mask': torch.tensor([1, 1, 1, 0]), 'label': 1},
]

dataset2 = [
    {'input_ids': torch.tensor([9, 10, 11, 12]), 'attention_mask': torch.tensor([1, 1, 1, 1]), 'label': 0},
    {'input_ids': torch.tensor([13, 14, 15, 16]), 'attention_mask': torch.tensor([1, 1, 0, 0]), 'label': 1},
    {'input_ids': torch.tensor([17, 18, 19, 20]), 'attention_mask': torch.tensor([1, 0, 0, 0]), 'label': 0},
]

INIT_ARGS = {
    'dataset1': dataset1,
    'dataset2': dataset2,
}

ARGS = {
    'idx': 1,
}

METHOD = '__getitem__'


class CustomDataset(torch.utils.data.Dataset):

    def __init__(self, dataset1, dataset2):
        self.dataset1 = dataset1
        self.dataset2 = dataset2
        self.len1 = len(dataset1)
        self.len2 = len(dataset2)

    def __getitem__(self, idx):
        item = {'input_ids_1': self.dataset1[idx % self.len1]['input_ids'], 'attention_mask_1': self.dataset1[idx % self.len1]['attention_mask'], 'label_1': self.dataset1[idx % self.len1]['label'], 'input_ids_2': self.dataset2[idx % self.len2]['input_ids'], 'attention_mask_2': self.dataset2[idx % self.len2]['attention_mask'], 'label_2': self.dataset2[idx % self.len2]['label']}
        return item

    def __len__(self):
        return max(self.len1, self.len2)


if __name__ == '__main__':
    dataset = CustomDataset(**INIT_ARGS)
    result = getattr(dataset, METHOD)(**ARGS)
    print(result)
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
MMD_loss Ran
ran on a synthesized input
chaoscodes/untl/UNTL.py
code served (permissive licence) · get_code("b9b46a9f892dc7aa")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, 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 torch
from torch import nn

INIT_ARGS = {
    "kernel_mul": 2.0,
    "kernel_num": 5
}

# Create small tensors for source and target with distinct shapes
source = torch.randn(2, 4)  # batch_size=2, feature_dim=4
target = torch.randn(2, 4)  # same shape as source

ARGS = {
    "source": source,
    "target": target
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 0, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
classifier Ran
ran on a synthesized input
chaoscodes/untl/UNTL.py
code served (permissive licence) · get_code("7133cff201b1ffad")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 2, dtype family float, shape (2, 3) 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 math
from torch import nn

class classifier(nn.Module):

    def __init__(self, input_dim, labels=2):
        super(classifier, self).__init__()
        self.up = torch.nn.Linear(input_dim, labels)
        with torch.no_grad():
            nn.init.kaiming_uniform_(self.up.weight, a=math.sqrt(5))
            nn.init.zeros_(self.up.bias)

    def forward(self, x):
        output = self.up(x)
        return output


INIT_ARGS = {
    'input_dim': 4,
    'labels': 3
}

ARGS = {
    'x': torch.randn(2, 4)
}

model = classifier(**INIT_ARGS)
output = model(**ARGS)
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 2, dtype family float, shape (2, 3) — shape (2, 3) 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
split_dataset Ran
ran; our contract draft was wrong, not the code
chaoscodes/untl/UNTL.py
code served (permissive licence) · get_code("302c4a6e825f2744")
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 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
from datasets import Dataset

torch.manual_seed(0)

# Create a simple dataset with train_test_split method
# Using HuggingFace datasets library which has this method
data = {
    'text': ['hello world', 'foo bar', 'baz qux', 'test data', 'sample text', 'another example', 'more data', 'final entry', 'extra row'],
    'label': [0, 1, 0, 1, 0, 1, 0, 1, 0]
}

dataset = Dataset.from_dict(data)

ARGS = {
    'dataset': dataset
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
datasets, 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
load_data Not yet run
unverified (harvested, no recorded run)
chaoscodes/untl/UNTL.py
code served (permissive licence) · get_code("b774dcb5a6c449f0")
How it ran

no invocation recorded.

save_model Not yet run
unverified (harvested, no recorded run)
chaoscodes/untl/UNTL.py
code served (permissive licence) · get_code("c9a020a065579e8b")
How it ran

no invocation recorded.

setup_seed Not yet run
unverified (harvested, no recorded run)
chaoscodes/untl/UNTL.py
code served (permissive licence) · get_code("744baf77bf3238d4")
How it ran

no invocation recorded.

train Not yet run
unverified (harvested, no recorded run)
chaoscodes/untl/UNTL.py
code served (permissive licence) · get_code("f28f4ceb41868d8b")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 2 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 2 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
MMD_loss
brick of this paper's assembly: helper
2 other papers
1 dated earlier, 1 later
2106.06916 (2021-06)
Non-Transferable Learning: A New Approach for Model Ownership Verification and Applicability Authorization
2601.15681 (2026-01)
Consistency-Regularized GAN for Few-Shot SAR Target Recognition
setup_seed
brick of this paper's assembly: helper
1 other paper
1 later
2410.06652 (2024-10)
Task-oriented Time Series Imputation Evaluation via Generalized Representers

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

Training a good deep learning model requires substantial data and computing resources, which makes the resulting neural model a valuable intellectual property. To prevent the neural network from being undesirably exploited, non-transferable learning has been proposed to reduce the model generalization ability in specific target domains. However, existing approaches require labeled data for the target domain which can be difficult to obtain. Furthermore, they do not have the mechanism to still recover the model's ability to access the target domain. In this paper, we propose a novel unsupervised non-transferable learning method for the text classification task that does not require annotated target domain data. We further introduce a secret key component in our approach for recovering the access to the target domain, where we design both an explicit and an implicit method for doing so. Extensive experiments demonstrate the effectiveness of our approach.

For agents

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

get_harvested_code_for_paper("2210.12651")
get_code_for_paper("2210.12651")
have("2210.12651")

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

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

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

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

Connect an agent — have() is free.