SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.12789 · 2024

Fairness Without Harm: An Influence-Guided Active Sampling Approach

arXiv · PDF · Open in the Atlas

Code that ran

11 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 9 failures of our instrument; 9 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/2402.12789.json · badge: /api/ran/2402.12789.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
ucsc-real/fairnesswithoutharm canonical (classifier label)
classifier basis: census
11 ran · 9 no recorded run
FunctionStatusWhere it lives
cross_entropy_loss Ran
ran; our contract draft was wrong, not the code
ucsc-real/fairnesswithoutharm/src/metrics.py
pointer only (licence: NONE) · get_code("bbab883e9f27b305")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucsc-real/fairnesswithoutharm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

cross_entropy_loss_per_sample Ran
ran; our contract draft was wrong, not the code
ucsc-real/fairnesswithoutharm/src/metrics.py
pointer only (licence: NONE) · get_code("8e2d536932c1d825")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucsc-real/fairnesswithoutharm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

extract_line Ran
ran, honoured the contract we drafted
ucsc-real/fairnesswithoutharm/read_results.py
pointer only (licence: NONE) · get_code("f8e3f16ae7fe99db")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucsc-real/fairnesswithoutharm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_apply_fn_test Ran
ran; our contract draft was wrong, not the code
ucsc-real/fairnesswithoutharm/src/models.py
pointer only (licence: NONE) · get_code("c231223cd0275ac9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucsc-real/fairnesswithoutharm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_num_params Ran
ran, honoured the contract we drafted
ucsc-real/fairnesswithoutharm/src/models.py
pointer only (licence: NONE) · get_code("63410cdc89b2ca7a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucsc-real/fairnesswithoutharm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

preprocess_func_adult_torch Ran
ran; our contract draft was wrong, not the code
ucsc-real/fairnesswithoutharm/src/data.py
pointer only (licence: NONE) · get_code("270763e7cdb969f5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucsc-real/fairnesswithoutharm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

preprocess_func_celeba_torch Ran
ran; our contract draft was wrong, not the code
ucsc-real/fairnesswithoutharm/src/data.py
pointer only (licence: NONE) · get_code("bd4157a1ab4b0abe")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucsc-real/fairnesswithoutharm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

preprocess_func_compas_torch Ran
ran; our contract draft was wrong, not the code
ucsc-real/fairnesswithoutharm/src/data.py
pointer only (licence: NONE) · get_code("36dccc6aadedec47")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucsc-real/fairnesswithoutharm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

record_ckpt Ran
ran; our contract draft was wrong, not the code
ucsc-real/fairnesswithoutharm/src/recorder.py
pointer only (licence: NONE) · get_code("1250d55ffe8b6887")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucsc-real/fairnesswithoutharm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

record_test_stats Ran
ran; our contract draft was wrong, not the code
ucsc-real/fairnesswithoutharm/src/recorder.py
pointer only (licence: NONE) · get_code("6ded3c76159d47fa")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucsc-real/fairnesswithoutharm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

record_train_stats Ran
ran; our contract draft was wrong, not the code
ucsc-real/fairnesswithoutharm/src/recorder.py
pointer only (licence: NONE) · get_code("89425067e2790cbf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucsc-real/fairnesswithoutharm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_loss_fair Not yet run
unverified (harvested, no recorded run)
ucsc-real/fairnesswithoutharm/src/loss_func.py
pointer only (licence: NONE) · get_code("117795f3a7929738")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucsc-real/fairnesswithoutharm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_loss_fn Not yet run
unverified (harvested, no recorded run)
ucsc-real/fairnesswithoutharm/src/loss_func.py
pointer only (licence: NONE) · get_code("d2b7e008a778fe42")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucsc-real/fairnesswithoutharm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_loss_lmd_fix Not yet run
unverified (harvested, no recorded run)
ucsc-real/fairnesswithoutharm/src/loss_func.py
pointer only (licence: NONE) · get_code("f1f44a8e6636b44d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucsc-real/fairnesswithoutharm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_model Not yet run
unverified (harvested, no recorded run)
ucsc-real/fairnesswithoutharm/src/models.py
pointer only (licence: NONE) · get_code("d539bfdeab939504")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucsc-real/fairnesswithoutharm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_result_typical Not yet run
unverified (harvested, no recorded run)
ucsc-real/fairnesswithoutharm/read_results.py
pointer only (licence: NONE) · get_code("8e686aaad1330b43")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucsc-real/fairnesswithoutharm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_result_val Not yet run
unverified (harvested, no recorded run)
ucsc-real/fairnesswithoutharm/read_results.py
pointer only (licence: NONE) · get_code("2d696648a40f85f4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucsc-real/fairnesswithoutharm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_value Not yet run
unverified (harvested, no recorded run)
ucsc-real/fairnesswithoutharm/src/global_var.py
pointer only (licence: NONE) · get_code("0b158af03f71fad8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucsc-real/fairnesswithoutharm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

hinge_loss Not yet run
unverified (harvested, no recorded run)
ucsc-real/fairnesswithoutharm/src/metrics.py
pointer only (licence: NONE) · get_code("89b278308e29baf3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucsc-real/fairnesswithoutharm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

test Not yet run
unverified (harvested, no recorded run)
ucsc-real/fairnesswithoutharm/src/fair_train.py
pointer only (licence: NONE) · get_code("f66864daa20b1b6f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucsc-real/fairnesswithoutharm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. 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, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 0 later) and 16 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
get_apply_fn_test 1 other paper
1 dated earlier
2107.07075 (2021-07)
Deep Learning on a Data Diet: Finding Important Examples Early in Training
get_num_params 1 other paper
1 dated earlier
2107.07075 (2021-07)
Deep Learning on a Data Diet: Finding Important Examples Early in Training
hinge_loss 1 other paper
1 dated earlier
2206.15437 (2022-06)
Understanding Instance-Level Impact of Fairness Constraints
record_ckpt 1 other paper
1 dated earlier
2107.07075 (2021-07)
Deep Learning on a Data Diet: Finding Important Examples Early in Training

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

The pursuit of fairness in machine learning (ML), ensuring that the models do not exhibit biases toward protected demographic groups, typically results in a compromise scenario. This compromise can be explained by a Pareto frontier where given certain resources (e.g., data), reducing the fairness violations often comes at the cost of lowering the model accuracy. In this work, we aim to train models that mitigate group fairness disparity without causing harm to model accuracy. Intuitively, acquiring more data is a natural and promising approach to achieve this goal by reaching a better Pareto frontier of the fairness-accuracy tradeoff. The current data acquisition methods, such as fair active learning approaches, typically require annotating sensitive attributes. However, these sensitive attribute annotations should be protected due to privacy and safety concerns. In this paper, we propose a tractable active data sampling algorithm that does not rely on training group annotations, instead only requiring group annotations on a small validation set. Specifically, the algorithm first scores each new example by its influence on fairness and accuracy evaluated on the validation dataset, and then selects a certain number of examples for training. We theoretically analyze how acquiring more data can improve fairness without causing harm, and validate the possibility of our sampling approach in the context of risk disparity. We also provide the upper bound of generalization error and risk disparity as well as the corresponding connections. Extensive experiments on real-world data demonstrate the effectiveness of our proposed algorithm. Our code is available at https://github.com/UCSC-REAL/FairnessWithoutHarm.

For agents

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

get_harvested_code_for_paper("2402.12789")
get_code_for_paper("2402.12789")
have("2402.12789")

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

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

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

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

Connect an agent — have() is free.