SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2206.07737 · ICLR · 2023

Disparate Impact in Differential Privacy from Gradient Misalignment

Jesse Cresswell, Maria Esipova, Atiyeh Ghomi, Yaqiao Luo

arXiv · PDF · Open in the Atlas

Code that ran

13 of 20 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 13 have no contract verdict; 0 failures of our instrument; 7 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/2206.07737.json · badge: /api/ran/2206.07737.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
layer6ai-labs/fair-dp canonical (classifier label)
classifier basis not recorded on the link
13 ran · 7 no recorded run
FunctionStatusWhere it lives
find_restricted Ran
ran on a synthesized input
layer6ai-labs/fair-dp/datasets/sample_weights.py
code served (permissive licence) · get_code("d48cdb50834535cb")
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 numpy as np
from numpy import argmax

# Set up seed for reproducibility
np.random.seed(0)

# Create sample data that satisfies the function's logic
# group_ratios: contains -1 for inactive groups and ratios for active groups
group_ratios = np.array([-1.0, -1.0, 0.09, -1.0, 0.15, 0.12])

# num_samples: count of samples in each group
num_samples = np.array([100, 50, 80, 120, 90, 110])

# sample_idx: indices where group_ratios is not -1
# (indices 2, 4, 5 have non-negative values)
sample_idx = [2, 4, 5]

ARGS = {
    "group_ratios": group_ratios,
    "num_samples": num_samples,
    "sample_idx": sample_idx,
}
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 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
find_sample_weights Ran
ran on a synthesized input
layer6ai-labs/fair-dp/datasets/sample_weights.py
code served (permissive licence) · get_code("662c5904b4c6285c")
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 numpy as np

# Analyzing the function find_sample_weights:
# - group_ratios: a list/array with numeric values and -1 as sentinel
# - num_samples: a list of sample counts (integers) per group
# 
# The function:
# 1. Filters group_ratios to find indices where item != -1
# 2. Uses these indices to access group_ratios[j] and num_samples[j]
# 3. Performs arithmetic operations on these values
# 4. Returns a dictionary mapping indices to weights

# Create valid test arguments
group_ratios = [-1, 0.5, 0.3, -1, 0.2]  # Mix of -1 and numeric values
num_samples = [100, 50, 75, 120, 80]    # Sample counts per group (same length as group_ratios)

ARGS = {
    "group_ratios": group_ratios,
    "num_samples": num_samples,
}
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 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
get_base_config Ran
ran on a synthesized input
layer6ai-labs/fair-dp/config/images.py
code served (permissive licence) · get_code("6dd56a11e1804c30")
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

torch.manual_seed(0)

ARGS = {
    'dataset': 'mnist'
}
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
get_base_config Ran
ran on a synthesized input
layer6ai-labs/fair-dp/config/tabular.py
code served (permissive licence) · get_code("94195ffc4edab034")
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 numpy as np

torch.manual_seed(0)

# The function only takes one parameter: dataset
# It must be one of the valid datasets: 'adult' or 'dutch'

ARGS = {
    'dataset': 'adult'
}
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
get_dpsgd_config Ran
ran on a synthesized input
layer6ai-labs/fair-dp/config/images.py
code served (permissive licence) · get_code("d7777e765eeb5bcc")
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 numpy as np

torch.manual_seed(0)

# The function get_dpsgd_config takes a dataset parameter
# Looking at the function body, it simply returns a dict with 'activation': 'tanh'
# and doesn't actually use the dataset parameter in any way
# So we can pass a minimal stand-in object or a simple data structure

# Create a minimal dataset stand-in (could be a list, dict, or custom class)
# Since the function doesn't use it, we'll use a simple list
minimal_dataset = [(torch.randn(2, 4), torch.randint(0, 2, (2,)))]

ARGS = {
    'dataset': minimal_dataset
}
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
get_grad_norms Ran
ran on a synthesized input
layer6ai-labs/fair-dp/utils.py
code served (permissive licence) · get_code("fff7c82ecd9ee149")
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 torch
import numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - per_sample_grads: indexed by sample_idx, each element is a tensor with .shape[0] and supports torch.linalg.norm()
# - group: has .shape[0] for iteration, indexed by sample_idx, values are group indices (0 to num_groups-1)
# - num_groups: integer specifying number of groups

# Create per_sample_grads: list of tensors, one per sample
# Each tensor represents gradients for a sample
num_samples = 2
grad_dim = 4
per_sample_grads = [torch.randn(grad_dim) for _ in range(num_samples)]

# Create group: tensor mapping each sample to a group index
num_groups = 3
group = torch.tensor([0, 1], dtype=torch.long)  # 2 samples assigned to groups 0 and 1

ARGS = {
    "per_sample_grads": per_sample_grads,
    "group": group,
    "num_groups": num_groups,
}
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_grad_norms_clip Ran
ran on a synthesized input
layer6ai-labs/fair-dp/utils.py
code served (permissive licence) · get_code("bb600563f7cd81b9")
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 torch

torch.manual_seed(0)

# per_sample_grads: list of gradient vectors, one per sample
# Each gradient vector should be a 1D tensor
per_sample_grads = [
    torch.randn(4, requires_grad=False),
    torch.randn(4, requires_grad=False),
]

# group: tensor mapping sample indices to group indices
# Shape should be (num_samples,) with values in range [0, num_groups)
group = torch.tensor([0, 1], dtype=torch.long)

# num_groups: number of groups
num_groups = 2

# clipping_scale_fn: function that takes grad_norm, sample_idx, and kwargs
# and returns a clipping scale factor
def clipping_scale_fn(grad_norm, sample_idx, **kwargs):
    threshold = kwargs.get('threshold', 1.0)
    return min(1.0, threshold / (grad_norm + 1e-6))

ARGS = {
    'per_sample_grads': per_sample_grads,
    'group': group,
    'num_groups': num_groups,
    'clipping_scale_fn': clipping_scale_fn,
    'threshold': 1.0,
}
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 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_grads Ran
ran on a synthesized input
layer6ai-labs/fair-dp/utils.py
code served (permissive licence) · get_code("cfc5de3ebf0a6a02")
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 torch
import torch.nn as nn

torch.manual_seed(0)

# Build a small model with named parameters that have grad_sample attribute
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()

# Create named_parameters (list of tuples with name and parameter)
named_parameters = list(model.named_parameters())

# Add grad_sample attribute to parameters (required by the function)
# grad_sample should be a tensor with shape [batch_size, ...]
batch_size = 2
for name, param in named_parameters:
    # Create a grad_sample tensor with batch dimension
    param.grad_sample = torch.randn(batch_size, *param.shape)
    param.requires_grad = True

# Create group tensor: assigns each sample in batch to a group (0 to num_groups-1)
# group.shape[0] should equal batch_size
num_groups = 2
group = torch.tensor([0, 1])  # batch_size=2, num_groups=2

ARGS = {
    'named_parameters': named_parameters,
    'group': group,
    'num_groups': num_groups
}
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 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
get_loader Ran
ran on a synthesized input
layer6ai-labs/fair-dp/datasets/loaders.py
code served (permissive licence) · get_code("6475a837db4b9ffa")
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 DataLoader. 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 torch.utils.data import Dataset

torch.manual_seed(0)

class DummyDataset(Dataset):
    def __init__(self, size=2, input_dim=4, output_dim=3):
        self.size = size
        self.input_dim = input_dim
        self.output_dim = output_dim
    
    def __len__(self):
        return self.size
    
    def __getitem__(self, idx):
        x = torch.randn(self.input_dim)
        y = torch.randint(0, self.output_dim, (1,)).item()
        return x, y
    
    def to(self, device):
        # Return self to support chaining, dataset doesn't need actual device movement
        return self

dset = DummyDataset(size=2, input_dim=4, output_dim=3)
device = 'cpu'
batch_size = 2
drop_last = False

ARGS = {
    'dset': dset,
    'device': device,
    'batch_size': batch_size,
    'drop_last': drop_last
}
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 DataLoader — a DataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLoader 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
get_non_private_config Ran
ran on a synthesized input
layer6ai-labs/fair-dp/config/images.py
code served (permissive licence) · get_code("904394d274d6ea35")
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

torch.manual_seed(0)

class DummyDataset:
    def __init__(self):
        self.data = torch.randn(2, 4)
        self.targets = torch.randint(0, 2, (2,))
    
    def __len__(self):
        return 2
    
    def __getitem__(self, idx):
        return self.data[idx], self.targets[idx]

dataset = DummyDataset()

ARGS = {
    "dataset": dataset
}
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
make_tabular_train_valid_split Ran
ran on a synthesized input
layer6ai-labs/fair-dp/datasets/tabular.py
code served (permissive licence) · get_code("76b2d595deed55ec")
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 torch
import numpy as np

torch.manual_seed(0)

# The function uses:
# - data.shape[0] to get the number of rows
# - data[:n_valid] to slice the first n_valid rows
# - data[n_valid:] to slice the remaining rows
# So data needs to be a numpy array or tensor that supports indexing and shape attribute

data = np.random.randn(10, 4)
valid_frac = 0.3

ARGS = {
    "data": data,
    "valid_frac": valid_frac,
}
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
make_tabular_train_valid_test_split Ran
ran on a synthesized input
layer6ai-labs/fair-dp/datasets/tabular.py
code served (permissive licence) · get_code("cedce733510deb6a")
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 pandas as pd
import numpy as np

torch_seed = 0
np.random.seed(torch_seed)

# Create a small tabular dataset as a pandas DataFrame
# The function calls .sample() and .shape[0], so it needs a pandas DataFrame
n_samples = 100
n_features = 4
data = pd.DataFrame(
    np.random.randn(n_samples, n_features),
    columns=[f'feat_{i}' for i in range(n_features)]
)

ARGS = {
    'data': data,
    'valid_frac': 0.2,
    'test_frac': 0.1,
    'seed': 42
}
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 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
normalize Ran
ran on a synthesized input
layer6ai-labs/fair-dp/datasets/tabular.py
code served (permissive licence) · get_code("78a52ca7f816d91f")
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 DataFrame. 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 pandas as pd
import numpy as np

# Create a simple DataFrame with numeric columns
df = pd.DataFrame({
    'col1': [1.0, 2.0, 3.0, 4.0, 5.0],
    'col2': [10.0, 20.0, 30.0, 40.0, 50.0],
    'col3': [100.0, 200.0, 300.0, 400.0, 500.0]
})

# Define columns to normalize
columns = ['col1', 'col2', 'col3']

ARGS = {
    'df': df,
    'columns': columns
}
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 DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
create_model Not yet run
unverified (harvested, no recorded run)
layer6ai-labs/fair-dp/models/model_factory.py
code served (permissive licence) · get_code("4cebf08a8c6f6a66")
How it ran

no invocation recorded.

get_config Not yet run
unverified (harvested, no recorded run)
layer6ai-labs/fair-dp/config/get_config.py
code served (permissive licence) · get_code("2e961d46685a37df")
How it ran

no invocation recorded.

get_loaders Not yet run
unverified (harvested, no recorded run)
layer6ai-labs/fair-dp/datasets/loaders.py
code served (permissive licence) · get_code("890beb904c12fdd3")
How it ran

no invocation recorded.

get_loaders_from_config Not yet run
unverified (harvested, no recorded run)
layer6ai-labs/fair-dp/datasets/loaders.py
code served (permissive licence) · get_code("e4c16432bb236cd3")
How it ran

no invocation recorded.

get_raw_image_tensors Not yet run
unverified (harvested, no recorded run)
layer6ai-labs/fair-dp/datasets/image.py
code served (permissive licence) · get_code("fc7d5370a85734a0")
How it ran

no invocation recorded.

get_torchvision_datasets Not yet run
unverified (harvested, no recorded run)
layer6ai-labs/fair-dp/datasets/image.py
code served (permissive licence) · get_code("84bf999cc44df2b8")
How it ran

no invocation recorded.

image_tensors_to_dataset Not yet run
unverified (harvested, no recorded run)
layer6ai-labs/fair-dp/datasets/image.py
code served (permissive licence) · get_code("79d3bedd230ed9b5")
How it ran

no invocation recorded.

Also present in other papers' code

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

As machine learning becomes more widespread throughout society, aspects including data privacy and fairness must be carefully considered, and are crucial for deployment in highly regulated industries. Unfortunately, the application of privacy enhancing technologies can worsen unfair tendencies in models. In particular, one of the most widely used techniques for private model training, differentially private stochastic gradient descent (DPSGD), frequently intensifies disparate impact on groups within data. In this work we study the fine-grained causes of unfairness in DPSGD and identify gradient misalignment due to inequitable gradient clipping as the most significant source. This observation leads us to a new method for reducing unfairness by preventing gradient misalignment in DPSGD.

For agents

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

get_harvested_code_for_paper("2206.07737")
get_code_for_paper("2206.07737")
have("2206.07737")

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

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

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

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

Connect an agent — have() is free.