Fairness-Reprogramming

所属分类:collect
开发工具:Python
文件大小:0KB
下载次数:0
上传日期:2022-10-27 09:37:01
上 传 者sh-1993
说明:  公平性重新编程,,
(Fairness-Reprogramming,,)

文件列表:
CelebA/ (0, 2023-10-16)
CelebA/dataset.py (12370, 2023-10-16)
CelebA/metric.py (18673, 2023-10-16)
CelebA/models/ (0, 2023-10-16)
CelebA/models/model_zoo.py (5586, 2023-10-16)
CelebA/models/resnet9.py (3350, 2023-10-16)
CelebA/program.py (3350, 2023-10-16)
CelebA/requirements.txt (13, 2023-10-16)
CelebA/test_transfer.py (9050, 2023-10-16)
CelebA/train.py (17029, 2023-10-16)
CelebA/utils.py (6398, 2023-10-16)
CivilComments/ (0, 2023-10-16)
CivilComments/configs/ (0, 2023-10-16)
CivilComments/configs/config_eval.json (377, 2023-10-16)
CivilComments/configs/config_train.json (1648, 2023-10-16)
CivilComments/data_utils/ (0, 2023-10-16)
CivilComments/data_utils/__init__.py (0, 2023-10-16)
CivilComments/data_utils/datasets.py (29580, 2023-10-16)
CivilComments/data_utils/uci_adult.py (44209, 2023-10-16)
CivilComments/eval.py (13721, 2023-10-16)
CivilComments/models.py (22719, 2023-10-16)
CivilComments/read_results.py (4112, 2023-10-16)
CivilComments/scripts/ (0, 2023-10-16)
CivilComments/scripts/dp_exec.sh (3817, 2023-10-16)
CivilComments/scripts/eo_exec.sh (4101, 2023-10-16)
CivilComments/train.py (18540, 2023-10-16)
CivilComments/utils.py (12858, 2023-10-16)
CivilComments/zarth_utils/ (0, 2023-10-16)
CivilComments/zarth_utils/__init__.py (349, 2023-10-16)
CivilComments/zarth_utils/config.py (4471, 2023-10-16)
CivilComments/zarth_utils/drawer.py (4925, 2023-10-16)
CivilComments/zarth_utils/general_utils.py (469, 2023-10-16)
CivilComments/zarth_utils/logger.py (1085, 2023-10-16)
CivilComments/zarth_utils/result_recorder.py (9246, 2023-10-16)
CivilComments/zarth_utils/text_processing.py (2255, 2023-10-16)
... ...

# Fairness Reprogramming (NeurIPS 2022) Repository with code to reproduce the results for fairness-oriented model reprogramming assotiated with the NLP tasks. Please check our [paper](https://arxiv.org/pdf/2209.10222.pdf) for more technical details. Despite a surge of recent advances in promoting machine Learning (ML) fairness, the existing mainstream approaches mostly require training or finetuning the entire weights of the neural network to meet the fairness criteria. However, this is often infeasible in practice for large-scale trained models due to high computational and storage costs, low data efficiency, and model privacy issues. In this work, we propose a new generic post-training fairness learning paradigm, called fairness reprogramming, which incorporates the model reprogramming technique into fairness promoting strategy. Specifically, fairness reprogramming fixes the model weights, and appends to the input a set of perturbations, called the fairness trigger, which is tuned towards the fairness criteria under a min-max formulation. We also provide both theoretical and empirical explanation on why fairness reprogramming can work. An illustration of the empirical evidence is shown below. The fairness-promoting trigger can transfer the model's attention from bias-related features to useful features.

drawing drawing

## Getting Started This repository contains the codes and commands to perform fairness reprogramming on both CV and NLP classification tasks. You could start by cloning the repository with the following commands. ``` git clone https://github.com/UCSB-NLP-Chang/Fairness-Reprogramming.git cd Fairness-Reprogramming ``` ![Results](./figures/main_results.png) The experiment results could be easily reproduced with our provided commands and scripts. **Please go to [CelebA](./CelebA) and [CivilComments](./CivilComments) for specific codes and commands to run corresponding experiments!** ## Contributors * [Guanhua Zhang](https://ghzhang233.github.io/) * [Yihua Zhang](https://www.yihua-zhang.com) ## Citation If you find this repository useful, please consider to cite our work: ``` @inproceedings{zhang2022fairness, title = {Fairness Reprogramming}, author = {Zhang, Guanhua and Zhang, Yihua and Zhang, Yang and Fan, Wenqi and Li, Qing and Liu, Sijia and Chang, Shiyu}, booktitle = {Thirty-sixth Conference on Neural Information Processing Systems}, year = {2022} } ```

近期下载者

相关文件


收藏者