Papers › Last-Layer Fairness Fine-tuning is Simple and Effective for Neural Networks

Last-Layer Fairness Fine-tuning is Simple and Effective for Neural Networks

8 Apr 2023arXiv:2304.03935archive 2025-07-28

Yuzhen Mao, Zhun Deng, Huaxiu Yao, Ting Ye, Kenji Kawaguchi, James Zou

As machine learning has been deployed ubiquitously across applications in modern data science, algorithmic fairness has become a great concern. Among them, imposing fairness constraints during learning, i.e. in-processing fair training, has been a popular type of training method because they don't require accessing sensitive attributes during test time in contrast to post-processing methods. While this has been extensively studied in classical machine learning models, their impact on deep neural networks remains unclear. Recent research has shown that adding fairness constraints to the objective function leads to severe over-fitting to fairness criteria in large models, and how to solve this challenge is an important open question. To tackle this, we leverage the wisdom and power of pre-training and fine-tuning and develop a simple but novel framework to train fair neural networks in an efficient and inexpensive way -- last-layer fine-tuning alone can effectively promote fairness in deep neural networks. This framework offers valuable insights into representation learning for training fair neural networks.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

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="2304.03935")

Code

Syntology Ran 13 of 14 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 13 ran with no contract checked.

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

yuzhenmao/fairness-finetuning officialmentioned in paperpytorch report
modar7/the_fairness_stitch mentioned on GitHubpytorchMIT 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

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

13ran
1unverified

Licence: 0 of the 14 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 modar7/the_fairness_stitch. “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.

accuracy_equality_difference modar7/the_fairness_stitch/src/metrics.py community (archive-listed) ran MIT (permissive) · b113af2bdb4b7ad0 · report
ae_constraint modar7/the_fairness_stitch/src/fairness_constraints.py community (archive-listed) ran MIT (permissive) · 3e2bcc37f0d29b39 · report
compute_auc modar7/the_fairness_stitch/src/utils_abroca.py community (archive-listed) ran fingerprinted MIT (permissive) · f34aff34be2461e9 · report
compute_roc modar7/the_fairness_stitch/src/utils_abroca.py community (archive-listed) ran MIT (permissive) · 5bf52700b6ec83bf · report
eo_constraint modar7/the_fairness_stitch/src/fairness_constraints.py community (archive-listed) ran MIT (permissive) · d1f364aa232405ad · report
get_pred modar7/the_fairness_stitch/src/utils.py community (archive-listed) ran MIT (permissive) · c691b280c17d59c0 · report
get_pred_Stitched_Model modar7/the_fairness_stitch/src/utils.py community (archive-listed) ran MIT (permissive) · 0f0267a4b0a6ffd7 · report
interpolate_roc_fun modar7/the_fairness_stitch/src/utils_abroca.py community (archive-listed) ran MIT (permissive) · 833b23ea24be2333 · report
max_min_fairness modar7/the_fairness_stitch/src/metrics.py community (archive-listed) ran fingerprinted MIT (permissive) · 33a0eb0cb76eac7a · report
mmf_constraint modar7/the_fairness_stitch/src/fairness_constraints.py community (archive-listed) ran MIT (permissive) · 1fda7cb005b7308f · report
prepare_data modar7/the_fairness_stitch/src/data_processing.py community (archive-listed) ran MIT (permissive) · c700a303a2482780 · report
print_acc_auc_stats modar7/the_fairness_stitch/src/utils.py community (archive-listed) ran MIT (permissive) · 3016678b713de42a · report
valid_per_epoch modar7/the_fairness_stitch/src/FDR.py community (archive-listed) ran MIT (permissive) · 69501a60076aa16a · report
compute_abroca modar7/the_fairness_stitch/src/compute_abroca.py community (archive-listed) unverified MIT (permissive) · 77748e5ebfbb1e32 · report

Tasks

FairnessOpen-Ended Question AnsweringRepresentation Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Test

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