Papers › DAFA: Distance-Aware Fair Adversarial Training

DAFA: Distance-Aware Fair Adversarial Training

23 Jan 2024arXiv:2401.12532archive 2025-07-28

Hyungyu Lee, Saehyung Lee, Hyemi Jang, Junsung Park, Ho Bae, Sungroh Yoon

The disparity in accuracy between classes in standard training is amplified during adversarial training, a phenomenon termed the robust fairness problem. Existing methodologies aimed to enhance robust fairness by sacrificing the model's performance on easier classes in order to improve its performance on harder ones. However, we observe that under adversarial attacks, the majority of the model's predictions for samples from the worst class are biased towards classes similar to the worst class, rather than towards the easy classes. Through theoretical and empirical analysis, we demonstrate that robust fairness deteriorates as the distance between classes decreases. Motivated by these insights, we introduce the Distance-Aware Fair Adversarial training (DAFA) methodology, which addresses robust fairness by taking into account the similarities between classes. Specifically, our method assigns distinct loss weights and adversarial margins to each class and adjusts them to encourage a trade-off in robustness among similar classes. Experimental results across various datasets demonstrate that our method not only maintains average robust accuracy but also significantly improves the worst robust accuracy, indicating a marked improvement in robust fairness compared to existing methods.

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

Code

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

By repository: official repository: 8 samples from 1 repository, 5 ran; found in paper text by Syntology: 7 samples from 1 repository, 4 ran; 2 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

rucy74/DAFA officialmentioned in paperpytorch 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

17 samples harvested; 11 ran; 0 honoured the contract we drafted; 6 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.

3ran · our draft was wrong
1ran · fixture could not drive it
7ran
6unverified

Licence: 17 of the 17 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. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “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.

PreActResNet18 rucy74/DAFA/models/preact_resnet.py official repository ran no licence file found · pointer only · 1153837ba4a94242 · report
ResNet18 rucy74/DAFA/models/resnet.py official repository ran · our draft was wrong no licence file found · pointer only · 0f23e7e681845fe0 · report
eval rucy74/DAFA/evaluation.py official repository ran no licence file found · pointer only · 18c82523ac3f528b · report
get_transform rucy74/DAFA/datasets.py official repository ran no licence file found · pointer only · 240892d4d66578d4 · report
pgd rucy74/DAFA/evaluation.py official repository ran no licence file found · pointer only · b1ca971f9ac6b177 · report
calculate_class_weights rucy74/DAFA/utils.py official repository unverified no licence file found · pointer only · 3dd1861dafcd1315 · report
madry_loss rucy74/DAFA/losses.py official repository unverified no licence file found · pointer only · f25e91962b599eaf · report
trades_loss rucy74/DAFA/losses.py official repository unverified no licence file found · pointer only · 72b23386d15d731a · report
cost_sensitive hannxu123/fair_robust/utils_frl.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · fa59447ea22b5b18 · report
match_weight hannxu123/fair_robust/utils_frl.py found in paper text by Syntology ran no licence file found · pointer only · 9fc4a65d0199cf9c · report
normalize_lambda hannxu123/fair_robust/utils_frl.py found in paper text by Syntology ran · our draft was wrong fingerprinted no licence file found · pointer only · 4bbdb8c0c8ea6043 · report
trades_adv hannxu123/fair_robust/utils_frl.py found in paper text by Syntology ran no licence file found · pointer only · eca04e0dead8a043 · report
evaluate hannxu123/fair_robust/utils_frl.py found in paper text by Syntology unverified no licence file found · pointer only · 4cf5ffbe5a5795e2 · report
frl_train hannxu123/fair_robust/utils_frl.py found in paper text by Syntology unverified no licence file found · pointer only · ae909bf23603872c · report
train_model hannxu123/fair_robust/utils_frl.py found in paper text by Syntology unverified no licence file found · pointer only · d986a04b9eef9dcc · report
in_class identical code first harvested elsewhere ran · fixture could not drive it licence of this copy not recorded · 0504a54e17169d2e · report
pgd_attack identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · ee1e48fc088d1214 · report

Tasks

Fairness

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