Papers › Fair Bilevel Neural Network (FairBiNN): On Balancing fairness and accuracy via...

Fair Bilevel Neural Network (FairBiNN): On Balancing fairness and accuracy via Stackelberg Equilibrium

21 Oct 2024arXiv:2410.16432archive 2025-07-28

Mehdi Yazdani-Jahromi, Ali Khodabandeh Yalabadi, Amirarsalan Rajabi, Aida Tayebi, Ivan Garibay, Ozlem Ozmen Garibay

The persistent challenge of bias in machine learning models necessitates robust solutions to ensure parity and equal treatment across diverse groups, particularly in classification tasks. Current methods for mitigating bias often result in information loss and an inadequate balance between accuracy and fairness. To address this, we propose a novel methodology grounded in bilevel optimization principles. Our deep learning-based approach concurrently optimizes for both accuracy and fairness objectives, and under certain assumptions, achieving proven Pareto optimal solutions while mitigating bias in the trained model. Theoretical analysis indicates that the upper bound on the loss incurred by this method is less than or equal to the loss of the Lagrangian approach, which involves adding a regularization term to the loss function. We demonstrate the efficacy of our model primarily on tabular datasets such as UCI Adult and Heritage Health. When benchmarked against state-of-the-art fairness methods, our model exhibits superior performance, advancing fairness-aware machine learning solutions and bridging the accuracy-fairness gap. The implementation of FairBiNN is available on https://github.com/yazdanimehdi/FairBiNN.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2410.16432")

Code

Syntology Ran 6 of 20 code samples harvested from 2 repositories linked to this paper; 14 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 1 ran · fixture could not drive it; 3 ran with no contract checked.

By repository: official repository: 17 samples from 1 repository, 3 ran; community (archive-listed): 3 samples from 1 repository, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

yazdanimehdi/fairbinn officialmentioned in papermentioned on GitHubpytorchMIT report
yazdanimehdi/Distraction_Fairness mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

20 samples harvested; 6 ran; 0 honoured the contract we drafted; 14 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
1ran · fixture could not drive it
3ran
14unverified

Licence: 3 of the 20 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

get_pareto_front yazdanimehdi/fairbinn/train_tabular.py official repository ran · our draft was wrong MIT (permissive) · c499ae6c68741884 · report
AttributeClassifierAblation yazdanimehdi/fairbinn/models/tabular.py official repository ran · metamorphic tier: deterministic MIT (permissive) · 1efa65eedfc30d0f · report
domination yazdanimehdi/fairbinn/train_tabular.py official repository ran · fixture could not drive it MIT (permissive) · 296c6f442ab98eb3 · report
dataset_construction yazdanimehdi/FairBiNN/models/vision.py official repository unverified MIT (permissive) · 8247882e107084b3 · report
demographic_parity_difference_soft yazdanimehdi/FairBiNN/metrics.py official repository unverified MIT (permissive) · 91a155461a8b47ea · report
demographic_parity_ratio_soft yazdanimehdi/FairBiNN/metrics.py official repository unverified MIT (permissive) · 42d9f9502b5a309f · report
education_func yazdanimehdi/FairBiNN/data_loading/load_adult.py official repository unverified MIT (permissive) · 949a08f0162e758d · report
encode_onehot yazdanimehdi/FairBiNN/utils.py official repository unverified MIT (permissive) · 19be62d06f0eec5f · report
fair_metric yazdanimehdi/FairBiNN/train_graph.py official repository unverified MIT (permissive) · 2177e2a3db468eee · report
fwd_pass yazdanimehdi/fairbinn/train_tabular.py official repository unverified MIT (permissive) · b15f7a302a6462cc · report
fwd_pass yazdanimehdi/FairBiNN/models/vision.py official repository unverified MIT (permissive) · b5e02eb6ccb5958c · report
gather_labels yazdanimehdi/FairBiNN/data_loading/load_health.py official repository unverified MIT (permissive) · 45506eb048d6e3a1 · report
load_data yazdanimehdi/FairBiNN/utils.py official repository unverified MIT (permissive) · ba042693993b4109 · report
load_pokec yazdanimehdi/FairBiNN/utils.py official repository unverified MIT (permissive) · 5ec0c9199119dc47 · report
marital_func yazdanimehdi/FairBiNN/data_loading/load_adult.py official repository unverified MIT (permissive) · 75fabfad2b5e38a5 · report
test_func yazdanimehdi/FairBiNN/models/vision.py official repository unverified MIT (permissive) · b3e810bc6ecacc34 · report
work_func yazdanimehdi/FairBiNN/data_loading/load_adult.py official repository unverified MIT (permissive) · aaed6266b7af872f · report
AttributeClassifier yazdanimehdi/Distraction_Fairness/model.py community (archive-listed) ran no licence file found · pointer only · 1c46dba6b6061aaa · report
MultiHeadAttention yazdanimehdi/Distraction_Fairness/model.py community (archive-listed) ran no licence file found · pointer only · 687fd6594c87ed5b · report
scaled_dot_product yazdanimehdi/Distraction_Fairness/model.py community (archive-listed) ran · our draft was wrong fingerprinted no licence file found · pointer only · 3590e425c7c27d55 · report

Tasks

Bilevel OptimizationFairness

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections