Giter Club home page Giter Club logo

ldp-fairness-impact's Introduction

LDP Impact on Fairness

Repository for the paper: Arcolezi, H.H., Makhlouf, K., Palamidessi, C. (2023). (Local) Differential Privacy has NO Disparate Impact on Fairness. In: Atluri, V., Ferrara, A.L. (eds) Data and Applications Security and Privacy XXXVII. DBSec 2023. Lecture Notes in Computer Science, vol 13942. Springer, Cham. https://doi.org/10.1007/978-3-031-37586-6_1.

If our codes and work are useful to you, we would appreciate a reference to:

@incollection{Arcolezi2023,
  doi = {10.1007/978-3-031-37586-6_1},
  url = {https://doi.org/10.1007/978-3-031-37586-6_1},
  year = {2023},
  publisher = {Springer Nature Switzerland},
  pages = {3--21},
  author = {H{\'{e}}ber H. Arcolezi and Karima Makhlouf and Catuscia Palamidessi},
  title = {(Local) Differential Privacy has {NO} Disparate Impact on~Fairness},
  booktitle = {Data and Applications Security and Privacy {XXXVII}}
}

Environment

Our codes were developed using Python 3 with mainly numpy, pandas, lightgbm, and multi-freq-ldpy libraries. The versions we used are listed below:

  • Python 3.9.13
  • Numpy 1.21.5
  • Pandas 1.4.4
  • Lightgbm 3.3.5
  • Multi-freq-ldpy 0.2.4

Organization of Experiments

This repository is organized/ordered in several Jupyter Notebook files as:

  • 0_Preprocess_Datasets.ipynb: Notebook for pre-processing (cleaning, encoding) three original datasets (i.e., Adult, ACSCoverage, LSAC). The pre-processed datasets are saved in the datasets folder.
  • 1_BO_NonDP.ipynb: Notebook for conducting the Bayesian Optimization (BO) to find the local optimal LGBM hyperparameters using original data (i.e., no LDP). Results are saved in CSV format in the results folder.
  • 2_Exp_XXX: Notebooks for carrying out all experiments (repeated over nb_seed=20 iterations) of the paper assuming the mechanism XXX (e.g., NonDP as the baseline, GRR, OUE, etc). Results are saved in CSV and numpy formats in the corresponding results folder. The notebook 2_Exp_All_LDP is generic and runs all LDP protocols.
  • 3_Final_Results.ipynb: Notebook with codes to plot the final results illustrated in the main paper.
  • 4_Appendix_Experiments.ipynb: Notebook for carrying out the additional set of experiments (repeated over nb_seed=20 iterations) with all LDP protocols. Results are also saved in CSV format in the results folder.
  • 4_Appendix_Results.ipynb: Notebook with codes to plot the final results illustrated in the appendix of the full paper (in arXiv).

Some functions used in the Jupyter Notebooks are imported from functions.py.

To Do

We are slowly cleaning/generalizing the codes + documentation.

Acknowledgements

  • We use the LDP protocols implemented in our multi-freq-ldpy library.
  • We use the reconstructed Adult and ACSCoverage datasets from the folktables library.
  • We use the LSAC dataset.

Contact

For any questions, please contact:

License

MIT

ldp-fairness-impact's People

Contributors

hharcolezi avatar karimamakhlouf 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.