This repository contains the source code, benchmark models, and datasets for the paper - "Fairify: Fairness Verification of Neural Networks", appeared in ICSE 2023 at Melbourne, Australia.
- Sumon Biswas, Carnegie Mellon University (sumonb@cs.cmu.edu)
- Hridesh Rajan, Iowa State University (hridesh@iastate.edu)
PDF https://arxiv.org/abs/2212.06140
DOI: This artifact is also published in Zenodo:
- Models
- Datasets
- Verification source code
- Verify models
- Verify models with scaled experiment
- Verify relaxed queries
- Verify relaxed queries
- Appendix
To run Fairify, we need to install Python 3 environment. The current version has been tested on Python 3.7. It is recommended to install Python virtual environment for the tool. Furthermore, we used bash shell scripts to automate running benchmark and Python scripts. Below are step-by-step instructions to setup environment and run the tool.
Follow these steps to create a virtual environment and clone the Fairify repository.
- Clone this repository and move to the directory:
git clone https://github.com/sumonbis/Fairify
cd Fairify/
- Run this on command line to create a virtual environment:
python3 -m venv fenv
source fenv/bin/activate
Run the following command to update pip on Python: python3 -m pip install --upgrade pip
. Alternatively, you can follow the Python documentation to install virtual environment on your machine.
- Navigate to the cloned repository:
cd Fairify/
and install required packages:
pip install -r requirements.txt
To run the tool, please refer to the installation file for detailed instructions.
@inproceedings{biswas23fairify,
author = {Sumon Biswas and Hridesh Rajan},
title = {Fairify: Fairness Verification of Neural Networks},
booktitle = {ICSE'23: The 45th International Conference on Software Engineering},
location = {Melbourne, Australia},
month = {May 14-May 20},
year = {2023},
entrysubtype = {conference}
}