BMFT: Achieving Fairness via Bias-based Weight Masking Fine-tuning

Yuyang Xue, Junyu Yan, Raman Dutt, Fasih Haider, Jingshuai Liu +2 more
8/13/2024
cs.LGcs.AI

Official code: vios-s/BMFT (1 star, last commit 2026-04-22).

Abstract

Developing models with robust group fairness properties is paramount, particularly in ethically sensitive domains such as medical diagnosis. Recent approaches to achieving fairness in machine learning require a substantial amount of training data and depend on model retraining, which may not be practical in real-world scenarios. To mitigate these challenges, we propose Bias-based Weight Masking Fine-Tuning (BMFT), a novel post-processing method that enhances the fairness of a trained model in significantly fewer epochs without requiring access to the original training data. BMFT produces a mask over model parameters, which efficiently identifies the weights contributing the most towards biased predictions. Furthermore, we propose a two-step debiasing strategy, wherein the feature extractor undergoes initial fine-tuning on the identified bias-influenced weights, succeeded by a fine-tuning phase on a reinitialised classification layer to uphold discriminative performance. Extensive experiments across four dermatological datasets and two sensitive attributes demonstrate that BMFT outperforms existing state-of-the-art (SOTA) techniques in both diagnostic accuracy and fairness metrics. Our findings underscore the efficacy and robustness of BMFT in advancing fairness across various out-of-distribution (OOD) settings. Our code is available at: https://github.com/vios-s/BMFT

View on arXivView PDF

Code Implementations(1)

vios-s/BMFTOfficial100%
10Shell, PythonJan 10, 20246 months ago

Similar Papers

Cite this paper

@article{xue2024bmft,
  title  = {BMFT: Achieving Fairness via Bias-based Weight Masking Fine-tuning},
  author = {Yuyang Xue and Junyu Yan and Raman Dutt and Fasih Haider and Jingshuai Liu and Steven McDonagh and Sotirios A. Tsaftaris},
  year   = {2024},
  eprint = {2408.06890},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.06890v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.06890.svg)](https://codeofpaper.com/paper/2408.06890)

Discussion