SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2005.10881 · 2020

Revisiting Membership Inference Under Realistic Assumptions

arXiv · PDF · Open in the Atlas

Code that ran

14 of 18 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 14 have no contract verdict; 0 failures 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/2005.10881.json · badge: /api/ran/2005.10881.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
bargavj/EvaluatingDPML canonical (classifier label)
classifier basis: census
14 ran · 4 no recorded run
FunctionStatusWhere it lives
adv_lim Ran
ran on a synthesized input
bargavj/EvaluatingDPML/improved_mi/interpret_results.py
code served (permissive licence) · get_code("6ae7aa8ecd940dba")
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

delta = 1e-05

def f(eps, delta, alpha):
    return max(0, 1 - delta - np.exp(eps) * alpha, np.exp(-eps) * (1 - delta - alpha))

def adv_lim(eps, delta, alpha):
    return 1 - f(eps, delta, alpha) - alpha

# Setup valid arguments for adv_lim function
eps = 0.5
delta = 1e-05
alpha = 0.3

ARGS = {
    "eps": eps,
    "delta": delta,
    "alpha": alpha
}
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
compute_gdp_mu Ran
ran on a synthesized input
bargavj/EvaluatingDPML/core/privacy_accountant.py
code served (permissive licence) · get_code("c4dafd15e67d5b6d")
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

# Based on the function signature and body analysis:
# - sampling_rate: numeric value (float or int)
# - sigma: numeric value (float or int), used in division and exponentiation
# - steps: numeric value (int or float), used in multiplication

ARGS = {
    "sampling_rate": 0.01,
    "sigma": 1.5,
    "steps": 100
}
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
f Ran
ran on a synthesized input
bargavj/EvaluatingDPML/improved_mi/interpret_results.py
code served (permissive licence) · get_code("013948fc6c807e9c")
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

delta = 1e-05

def f(eps, delta, alpha):
    return max(0, 1 - delta - np.exp(eps) * alpha, np.exp(-eps) * (1 - delta - alpha))

# Set up arguments for f
eps = 0.1
delta = 1e-05
alpha = 0.5

ARGS = {
    "eps": eps,
    "delta": delta,
    "alpha": alpha
}
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
filePatternTest Ran
ran on a synthesized input
bargavj/EvaluatingDPML/extra/crawl_census_data.py
code served (permissive licence) · get_code("69b6be2d4e95ab76")
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

ARGS = {
    "string": "csv_pus.zip"
}
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
get_gdp_privacy_spent Ran
ran on a synthesized input
bargavj/EvaluatingDPML/core/privacy_accountant.py
code served (permissive licence) · get_code("9d391b1461c8bac7")
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
from scipy.stats import norm

# Analyze the function to understand what parameters it needs
# mu: a scalar value used in the GDP privacy calculation
# target_delta: a scalar threshold value for delta

# The function performs a binary search on eps_orders based on mu and target_delta
# mu is used in the formula: norm.cdf(-eps / mu + mu / 2, ...) and norm.cdf(-eps / mu - mu / 2, ...)
# target_delta is compared with dlt in the condition: if dlt <= target_delta

# Setting up reasonable values:
# mu should be a positive float representing the privacy parameter
# target_delta should be a small positive float representing the privacy budget threshold

ARGS = {
    "mu": 1.5,
    "target_delta": 0.01
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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_layer_outputs Ran
ran on a synthesized input
bargavj/EvaluatingDPML/core/classifier.py
code served (permissive licence) · get_code("52ed89b6b5acac75")
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 ndarray, ndim 3, dtype family float, shape (3, 2, 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 numpy as np

def predictions_generator():
    """Generator that yields dicts with 'layer_outputs' key"""
    yield {'layer_outputs': np.array([[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]])}
    yield {'layer_outputs': np.array([[9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]])}
    yield {'layer_outputs': np.array([[17.0, 18.0, 19.0, 20.0], [21.0, 22.0, 23.0, 24.0]])}

ARGS = {
    'predictions': predictions_generator()
}
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 ndarray, ndim 3, dtype family float, shape (3, 2, 4) — shape (3, 2, 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
get_ppv Ran
ran on a synthesized input
bargavj/EvaluatingDPML/core/utilities.py
code served (permissive licence) · get_code("dfe0c2fa5470175b")
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
from sklearn.metrics import confusion_matrix

# mem and pred are both array-like objects containing binary labels (0 or 1)
# confusion_matrix expects two array-like inputs of the same length
# The function ravel()s the result, so it works with 2x2 confusion matrices

# Create small valid binary classification arrays
mem = np.array([0, 1, 1, 0, 1, 1])  # true labels
pred = np.array([0, 1, 0, 0, 1, 1])  # predicted labels

ARGS = {
    "mem": mem,
    "pred": pred
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — 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
get_ppv Ran
ran on a synthesized input
bargavj/EvaluatingDPML/evaluating_dpml/interpret_results.py
code served (permissive licence) · get_code("1fb8971949a71f06")
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 torch
import numpy as np
from sklearn.metrics import confusion_matrix

torch.manual_seed(0)

# The function get_ppv takes two parameters: mem and pred
# It passes them to confusion_matrix(mem, pred) and calls .ravel() on the result
# Then it computes tp / (tp + fp)
# 
# confusion_matrix expects two array-like inputs of equal length
# containing class labels (typically integers or strings)

# Create simple binary classification predictions and ground truth
# We need at least 4 samples to get a 2x2 confusion matrix with all values
mem = np.array([0, 0, 1, 1, 0, 1])  # ground truth labels
pred = np.array([0, 1, 1, 1, 0, 0])  # predicted labels

ARGS = {
    "mem": mem,
    "pred": pred,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn, torch — 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
get_ppvs Ran
ran on a synthesized input
bargavj/EvaluatingDPML/core/utilities.py
code served (permissive licence) · get_code("413865dc2f6548ce")
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 ndarray, 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 numpy as np

# Analyze the function:
# - ref: used in sorted() with zip(ref, vec), so needs to be iterable of numbers
# - vec: used in sorted() with zip(ref, vec), needs to be iterable of numbers, also indexed by ppv[i]
# Both are iterable sequences of numeric values

# Create small test data
ref = np.array([0.5, 0.3, 0.8, 0.2])
vec = np.array([1.0, 2.0, 3.0, 4.0])

ARGS = {
    "ref": ref,
    "vec": vec
}
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 ndarray, 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
get_predictions Ran
ran on a synthesized input
bargavj/EvaluatingDPML/core/classifier.py
code served (permissive licence) · get_code("3e9f698a4d78f018")
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 numpy as np

def create_predictions_generator():
    """Create a generator that yields prediction dictionaries"""
    predictions_data = [
        {
            'classes': np.array([0, 1, 2]),
            'probabilities': np.array([0.7, 0.2, 0.1])
        },
        {
            'classes': np.array([1, 0, 2]),
            'probabilities': np.array([0.3, 0.5, 0.2])
        }
    ]
    
    for pred in predictions_data:
        yield pred

ARGS = {
    'predictions': create_predictions_generator()
}
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 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
load_attack_data Ran
ran on a synthesized input
bargavj/EvaluatingDPML/core/data_util.py
code served (permissive licence) · get_code("4deba715a71e9fb9")
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 numpy as np
import tempfile
import os

# Create a temporary directory for test data
temp_dir = tempfile.mkdtemp()
MODEL_PATH = temp_dir + '/'

# Create dummy attack training data
train_x = np.random.randn(10, 5).astype('float32')
train_y = np.random.randint(0, 2, 10).astype('int32')
train_file = os.path.join(MODEL_PATH, 'attack_train_data.npz')
np.savez(train_file, train_x, train_y)

# Create dummy attack test data
test_x = np.random.randn(8, 5).astype('float32')
test_y = np.random.randint(0, 2, 8).astype('int32')
test_file = os.path.join(MODEL_PATH, 'attack_test_data.npz')
np.savez(test_file, test_x, test_y)

ARGS = {
    'MODEL_PATH': MODEL_PATH
}
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 — 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
pretty_position Ran
ran on a synthesized input
bargavj/EvaluatingDPML/core/utilities.py
code served (permissive licence) · get_code("e9b48ac076c43238")
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 torch
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# def pretty_position(X, Y, pos):
#     return ((X[pos] + X[pos + 1]) / 2, (Y[pos] + Y[pos + 1]) / 2)
#
# The function:
# - Indexes X at pos and pos+1
# - Indexes Y at pos and pos+1
# - Adds and divides by 2
# So X and Y need to be indexable sequences/arrays with at least 2 elements
# pos needs to be a valid index where pos+1 is also valid

# Create simple 1D arrays with distinct sizes for clarity
X = np.array([1.0, 2.0, 3.0, 4.0, 5.0])  # 5 elements
Y = np.array([10.0, 20.0, 30.0, 40.0, 50.0])  # 5 elements

# pos should be valid (not at the end, so pos+1 exists)
pos = 1

ARGS = {
    "X": X,
    "Y": Y,
    "pos": pos
}
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, 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
process_features Ran
ran on a synthesized input
bargavj/EvaluatingDPML/core/data_util.py
code served (permissive licence) · get_code("148e8c52e944a4d1")
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 ndarray, ndim 2, dtype family float, shape (2, 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 numpy as np
import pandas as pd

# Small stand-in data
features_data = np.array([
    [1.0, 2.0, 3.0, 4.0],
    [5.0, 6.0, 7.0, 8.0]
])

# Attribute dictionary mapping column names to their types
attribute_dict = {
    'col_0': 'numeric',
    'col_1': 'categorical',
    'col_2': 'numeric',
    'col_3': 'categorical'
}

# Max attribute values for each column
max_attr_vals = {
    'col_0': 1,
    'col_1': 3,
    'col_2': 1,
    'col_3': 2
}

# Column flags for census dataset
col_flags_census = {
    'CENSUS_ST': None,
    'CENSUS_PUMA': None,
    'CENSUS_PINCP': None
}

# Column flags for texas dataset
col_flags_texas = {
    'TEXAS_THCIC_ID': None,
    'TEXAS_RACE': 'race_col',
    'TEXAS_ETHN': 'ethn_col'
}

# Use census flags for this example
col_flags = col_flags_census

target_attr = 'col_1'

ARGS = {
    'features': features_data,
    'dataset': 'census',
    'attribute_dict': attribute_dict,
    'max_attr_vals': max_attr_vals,
    'target_attr': target_attr,
    'col_flags': col_flags,
    'skip_sensitive': False,
    'skip_corr': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 4) — shape (2, 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
theoretical_limit Ran
ran on a synthesized input
bargavj/EvaluatingDPML/evaluating_dpml/interpret_results.py
code served (permissive licence) · get_code("31e6eedc77b79b03")
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 list, 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

# theoretical_limit takes a single parameter: epsilons
# Looking at the function body, it iterates over epsilons and applies np.exp to each element
# So epsilons should be an iterable of numeric values

epsilons_list = [0.0, 0.5, 1.0, 2.0]

ARGS = {
    "epsilons": epsilons_list
}
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 list, ndim 1, dtype family float — a list 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_result Not yet run
unverified (harvested, no recorded run)
bargavj/EvaluatingDPML/improved_ai/interpret_results.py
code served (permissive licence) · get_code("13622d0e53332de3")
How it ran

no invocation recorded.

isFilePresent Not yet run
unverified (harvested, no recorded run)
bargavj/EvaluatingDPML/extra/crawl_census_data.py
code served (permissive licence) · get_code("dad29b3471246eeb")
How it ran

no invocation recorded.

load_data Not yet run
unverified (harvested, no recorded run)
bargavj/EvaluatingDPML/core/data_util.py
code served (permissive licence) · get_code("17697fa3fcb82caa")
How it ran

no invocation recorded.

ppv_lim Not yet run
unverified (harvested, no recorded run)
bargavj/EvaluatingDPML/improved_mi/interpret_results.py
code served (permissive licence) · get_code("f18eacb739286d78")
How it ran

no invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 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 18 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 study membership inference in settings where some of the assumptions typically used in previous research are relaxed. First, we consider skewed priors, to cover cases such as when only a small fraction of the candidate pool targeted by the adversary are actually members and develop a PPV-based metric suitable for this setting. This setting is more realistic than the balanced prior setting typically considered by researchers. Second, we consider adversaries that select inference thresholds according to their attack goals and develop a threshold selection procedure that improves inference attacks. Since previous inference attacks fail in imbalanced prior setting, we develop a new inference attack based on the intuition that inputs corresponding to training set members will be near a local minimum in the loss function, and show that an attack that combines this with thresholds on the per-instance loss can achieve high PPV even in settings where other attacks appear to be ineffective. Code for our experiments can be found here: https://github.com/bargavj/EvaluatingDPML.

For agents

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

get_harvested_code_for_paper("2005.10881")
get_code_for_paper("2005.10881")
have("2005.10881")

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

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

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

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

Connect an agent — have() is free.