SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2407.03059 · NeurIPS · 2024

FairJob: A Real-World Dataset for Fairness in Online Systems

Mariia Vladimirova, Eustache Diemert, Federico Pavone

arXiv · PDF · Open in the Atlas

Code that ran

2 of 3 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; 2 failures of our instrument; 1 no recorded run), measured 2026-11-22; 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/2407.03059.json · badge: /api/ran/2407.03059.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
criteo-research/FairJob-dataset canonical (classifier label)
classifier basis: census
2 ran · 1 no recorded run
FunctionStatusWhere it lives
batch_loader Ran
ran; our contract draft was wrong, not the code
criteo-research/FairJob-dataset/functions.py
code served (permissive licence) · get_code("430a67251bcaa46b")
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 DataLoader, WeightedRandomSampler, Dataset

torch.manual_seed(0)

class JobDataset(Dataset):
    """ 
    Class collecting the variables of the data necessary for batch generation.
    """

    def __init__(self, X, y, protected_attribute, fair_indicator):
        self.X = X
        self.y = y
        self.protected_attribute = protected_attribute
        if fair_indicator is None:
            self.fair_indicator = torch.ones_like(y).to(torch.int).to(y.device)
        else:
            self.fair_indicator = fair_indicator

    def __len__(self):
        return len(self.y)

    def get_target(self):
        return self.y

    def __getitem__(self, idx):
        return (self.X[idx], self.y[idx], self.protected_attribute[idx], self.fair_indicator[idx])

# Create small tensors for the dataset
X = torch.randn(8, 4)  # 8 samples, 4 features
y = torch.tensor([0, 1, 0, 1, 0, 1, 0, 1], dtype=torch.long)  # 8 labels (binary classification)
protected_attribute = torch.tensor([0, 1, 0, 1, 0, 1, 0, 1], dtype=torch.long)  # 8 protected attributes
fair_indicator = torch.tensor([1, 1, 1, 1, 1, 1, 1, 1], dtype=torch.int)  # 8 fair indicators

# Create the JobDataset instance
dataset = JobDataset(X, y, protected_attribute, fair_indicator)

# Create ARGS dictionary
ARGS = {
    "dataset": dataset,
    "batch_size": 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 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
train_test_split Ran
ran; our contract draft was wrong, not the code
criteo-research/FairJob-dataset/functions.py
code served (permissive licence) · get_code("e88b14269ae5df17")
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)

# Create small sample data
n_samples = 100
n_features = 4

# X: Features - should be 2D array/tensor
X = np.random.randn(n_samples, n_features)

# y: Target labels - should be 1D
y = np.random.randint(0, 2, n_samples)

# protected_attribute: Protected attribute - should be 1D
protected_attribute = np.random.randint(0, 2, n_samples)

# is_senior: Flag for senior ads - should be 1D boolean or binary
is_senior = np.random.randint(0, 2, n_samples)

# displayrandom: Flag for ads with random display order - should be 1D boolean or binary
displayrandom = np.random.randint(0, 2, n_samples)

# rank: Ads rank in banner - should be 1D
rank = np.random.randint(1, 11, n_samples)

# train_fraction: fraction for training data
train_fraction = 0.8

ARGS = {
    "X": X,
    "y": y,
    "protected_attribute": protected_attribute,
    "is_senior": is_senior,
    "displayrandom": displayrandom,
    "rank": rank,
    "train_fraction": train_fraction
}
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
load_data Not yet run
unverified (harvested, no recorded run)
criteo-research/FairJob-dataset/functions.py
code served (permissive licence) · get_code("8d57f8c3c0cf3ee8")
How it ran

no invocation recorded.

Also present in other papers' code

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

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 introduce a fairness-aware dataset for job recommendation in advertising, designed to foster research in algorithmic fairness within real-world scenarios. It was collected and prepared to comply with privacy standards and business confidentiality. An additional challenge is the lack of access to protected user attributes such as gender, for which we propose a solution to obtain a proxy estimate. Despite being anonymized and including a proxy for a sensitive attribute, our dataset preserves predictive power and maintains a realistic and challenging benchmark. This dataset addresses a significant gap in the availability of fairnessfocused resources for high-impact domains like advertising -the actual impact being having access or not to precious employment opportunities, where balancing fairness and utility is a common industrial challenge. We also explore various stages in the advertising process where unfairness can occur and introduce a method to compute a fair utility metric for the job recommendations in online systems case from a biased dataset. Experimental evaluations of bias mitigation techniques on the released dataset demonstrate potential improvements in fairness and the associated trade-offs with utility.

For agents

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

get_harvested_code_for_paper("2407.03059")
get_code_for_paper("2407.03059")
have("2407.03059")

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

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

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

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

Connect an agent — have() is free.