SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.17674 · 2024

Center-Based Relaxed Learning Against Membership Inference Attacks

arXiv · PDF · Open in the Atlas

Code that ran

5 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 0 have no contract verdict; 5 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/2404.17674.json · badge: /api/ran/2404.17674.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
jekimlab/uai24_crl canonical (classifier label)
classifier basis: census
5 ran · 3 no recorded run
FunctionStatusWhere it lives
get_attack_preds Ran
ran; our contract draft was wrong, not the code
jekimlab/uai24_crl/summary_acc_paramter_single_auc_arc.py
code served (permissive licence) · get_code("130827a9ff96589d")
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. 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
import numpy as np

torch.manual_seed(0)

# Define a minimal model that satisfies how the function uses it
class DummyModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 2)
    
    def forward(self, x):
        return self.linear(x)

# Create a minimal dataloader
# The function expects tuples of (inputs, target, class_index)
# inputs should be a tensor where inputs[:, 0] is extracted
# target should be squeezable and convertible to long
dataloader = [
    (torch.randn(2, 4), torch.tensor([0, 1]).unsqueeze(1), torch.tensor([0, 1])),
    (torch.randn(2, 4), torch.tensor([1, 0]).unsqueeze(1), torch.tensor([1, 0])),
]

model = DummyModel()

ARGS = {
    'model': model,
    'dataloader': dataloader,
}
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 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
get_network Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
jekimlab/uai24_crl/models/model_selector.py
code served (permissive licence) · get_code("dec333d29bb209bc")
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 SimpleNet. 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 sys
import torch
import torch.nn as nn

class MockArgs:
    def __init__(self, dataset, network='resnet18'):
        self.dataset = dataset
        self.network = network

class MockSelector:
    @staticmethod
    def get_network(args, num_classes=10):
        class SimpleNet(nn.Module):
            def __init__(self):
                super().__init__()
                self.fc = nn.Linear(10, num_classes)
            
            def forward(self, x):
                return self.fc(x)
        
        return SimpleNet()

sys.modules['models'] = type(sys)('models')
sys.modules['models.cifar'] = type(sys)('models.cifar')
sys.modules['models.cifar.model_selector_cifar'] = type(sys)('models.cifar.model_selector_cifar')
sys.modules['models.arxiv10'] = type(sys)('models.arxiv10')
sys.modules['models.arxiv10.model_selector_arxiv'] = type(sys)('models.arxiv10.model_selector_arxiv')

sys.modules['models.cifar.model_selector_cifar'].get_network = MockSelector.get_network
sys.modules['models.arxiv10.model_selector_arxiv'].get_network = MockSelector.get_network

ARGS = {
    'args': MockArgs(dataset='cifar10', network='resnet18')
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
models, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SimpleNet — a SimpleNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleNet 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
load_attack_model Ran
ran; our contract draft was wrong, not the code
jekimlab/uai24_crl/summarization/load_model.py
code served (permissive licence) · get_code("cdb961d28eae592f")
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 Linear. 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 tempfile
import os

torch.manual_seed(0)

# Create a temporary directory to simulate the folder_path structure
temp_dir = tempfile.mkdtemp()
attack_dir = os.path.join(temp_dir, 'attack')
os.makedirs(attack_dir, exist_ok=True)

# Create a minimal dummy model and save it
dummy_model = torch.nn.Linear(4, 2)
model_path = os.path.join(attack_dir, 'model_latest_attack.path.tar')
torch.save(dummy_model, model_path)

ARGS = {
    'floder_path': temp_dir,
    'num_classes': 2
}
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 Linear — a Linear output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Linear 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
load_target_model Ran
ran; our contract draft was wrong, not the code
jekimlab/uai24_crl/summarization/load_model.py
code served (permissive licence) · get_code("e6db65b17e13655b")
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 argparse
import tempfile
import os

torch.manual_seed(0)

# Create a temporary directory structure to avoid actual file I/O errors
temp_dir = tempfile.mkdtemp()
target_pruned_dir = os.path.join(temp_dir, 'target_pruned')
target_dir = os.path.join(temp_dir, 'target')
os.makedirs(target_pruned_dir, exist_ok=True)
os.makedirs(target_dir, exist_ok=True)

# Create minimal dummy model files
dummy_model_pruned = {'state': 'pruned_model'}
dummy_model = {'state': 'regular_model'}

torch.save(dummy_model_pruned, os.path.join(target_pruned_dir, 'model_latest_target_pruned.path.tar'))
torch.save(dummy_model, os.path.join(target_dir, 'model_latest_target.path.tar'))

# Define arch_conf as a simple dict (the function only passes it to args but doesn't use it)
arch_conf = {
    'num_layers': 3,
    'hidden_dim': 64,
    'dropout': 0.1
}

ARGS = {
    'floder_path': temp_dir,
    'dataset': 'CIFAR10',
    'arch': 'ResNet18',
    'arch_conf': arch_conf,
    'if_pruned': True
}
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 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
one_hot_embedding Ran
ran; our contract draft was wrong, not the code
jekimlab/uai24_crl/representation/loss/crl.py
code served (permissive licence) · get_code("19eccdc224bb3bed")
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 2, dtype family float, shape (2, 10) as a later run recorded it. 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, 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)

# Create a small label tensor with class indices
# Shape: (2,) - batch size of 2
y = torch.tensor([0, 1], dtype=torch.long)

# Number of classes
num_classes = 10

# Use FloatTensor dtype (CPU version, not cuda)
dtype = torch.FloatTensor

ARGS = {
    "y": y,
    "num_classes": num_classes,
    "dtype": dtype,
}
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 2, dtype family float, shape (2, 10) — shape (2, 10) 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_attack_model Not yet run
unverified (harvested, no recorded run)
jekimlab/uai24_crl/summarization/load_model.py
code served (permissive licence) · get_code("cb1836f89f485d87")
How it ran

no invocation recorded.

get_target_preds Not yet run
unverified (harvested, no recorded run)
jekimlab/uai24_crl/summary_acc_paramter_single_auc_arc.py
code served (permissive licence) · get_code("8c52853d4c3ab826")
How it ran

no invocation recorded.

run Not yet run
unverified (harvested, no recorded run)
jekimlab/uai24_crl/summary_acc_paramter_single_auc_arc.py
code served (permissive licence) · get_code("1e7fae4f0ba5e2ce")
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, 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 8 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

Membership inference attacks (MIAs) are currently considered one of the main privacy attack strategies, and their defense mechanisms have also been extensively explored. However, there is still a gap between the existing defense approaches and ideal models in performance and deployment costs. In particular, we observed that the privacy vulnerability of the model is closely correlated with the gap between the model's data-memorizing ability and generalization ability. To address this, we propose a new architecture-agnostic training paradigm called center-based relaxed learning (CRL), which is adaptive to any classification model and provides privacy preservation by sacrificing a minimal or no loss of model generalizability. We emphasize that CRL can better maintain the model's consistency between member and non-member data. Through extensive experiments on standard classification datasets, we empirically show that this approach exhibits comparable performance without requiring additional model capacity or data costs.

For agents

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

get_harvested_code_for_paper("2404.17674")
get_code_for_paper("2404.17674")
have("2404.17674")

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

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

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

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

Connect an agent — have() is free.