Giter VIP home page Giter VIP logo

rfr_neurips23's Introduction

Chasing Fairness under Distribution Shift: a Model Weight Perturbation Approach

License: MIT

Codes for [NeurIPS'23] Chasing Fairness under Distribution Shift: a Model Weight Perturbation Approach.

Zhimeng Jiang*, Xiaotian Han*, Hongye Jin, Guanchu Wang, Rui Chen, Na Zou, Xia Hu

About This Work

Reserch Motivation

Machine learning fairness is crucial, especially when data changes or "shifts" between different scenarios (e.g., temporal or spatial distribution shifts). In this paper, we first theoretically demonstrate the inherent connection between distribution shift, data perturbation, and model weight perturbation. Subsequently, we analyze the sufficient conditions to guarantee fairness (i.e., low demographic parity) for the target dataset, including fairness for the source dataset, and low prediction difference between the source and target dataset for each sensitive attribute group. Motivated by these sufficient conditions, we propose robust fairness regularization (RFR) by considering the worst case within the model weight perturbation ball for each sensitive attribute group.

Rethinking Distribution Shifts Problem

We provide a theoretically understanding on the relations between distribution shift, data perturbation, and model weight perturbation in the following figure:

Overview of the relationships

Advantages of RFR

Easy to implement; Does not require prior knowledge (e.g., causual relation) on distribution shift

Dependency

python >= 3.8.0
torch >= 1.10.2+cu113
torchvision >= 0.12.0+cu113
numpy >= 1.22.3
folktables == 0.0.11

Run this Repo

Train a DNN using RFR for real-world distribution shifts by running the bash commend:

bash shell/run_dnn_rfr_real.sh

Train a DNN using RFR for synthetic distribution shifts by running the bash commend:

bash shell/run_dnn_rfr.sh

Acknowledgment

Our code is developed based on the opensource repo of SAM.

Thanks those teams for their contribution to the ML community!

Citation

@inproceedings{
jiang2023chasing,
title={Chasing Fairness under Distribution Shift: a Model Weight Perturbation Approach},
author={Jiang, Zhimeng and Han, Xiaotian and Jin, Hongye and Wang, Guanchu and Chen, Rui and Zou, Na and Hu, Xia},
booktitle={Thirty-seventh Conference on Neural Information Processing Systems},
year={2023},
url={https://openreview.net/forum?id=DVjyq5eCAD}
}

License

MIT

rfr_neurips23's People

Watchers

Zhimeng Jiang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.