Lune

ICSE2023Top-tier venue

Fairify: Fairness Verification of Neural Networks

Sumon Biswas, Hridesh Rajan

Abstract

Fairness of machine learning (ML) software has become a major concern in the recent past. Although recent research on testing and improving fairness have demonstrated impact on real-world software, providing fairness guarantee in practice is still lacking. Certification of ML models is challenging because of the complex decision-making process of the models. In this paper, we proposed Fairify, an SMT-based approach to verify individual fairness property in neural network (NN) models. Individual fairness ensures that any two similar individuals get similar treatment irrespective of their protected attributes e.g., race, sex, age. Verifying this fairness property is hard because of the global checking and non-linear computation nodes in NN. We proposed sound approach to make individual fairness verification tractable for the developers. The key idea is that many neurons in the NN always remain inactive when a smaller part of the input domain is considered. So, Fairify leverages white-box access to the models in production and then apply formal analysis based pruning. Our approach adopts input partitioning and then prunes the NN for each partition to provide fairness certification or counterexample. We leveraged interval arithmetic and activation heuristic of the neurons to perform the pruning as necessary. We evaluated Fairify on 25 real-world neural networks collected from four different sources, and demonstrated the effectiveness, scalability and performance over baseline and closely related work. Fairify is also configurable based on the domain and size of the NN. Our novel formulation of the problem can answer targeted verification queries with relaxations and counterexamples, which have practical implications.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

20 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Towards Understanding Fairness and its Composition in Ensemble Machine Learning cites Fairway: a way to build fair ML software
  • Towards Understanding Fairness and its Composition in Ensemble Machine Learning cites Bias in machine learning software: why? how? what to do?
  • Fairness Improvement with Multiple Protected Attributes: How Far Are We? cites Towards Understanding Fairness and its Composition in Ensemble Machine Learning
  • Fairness Improvement with Multiple Protected Attributes: How Far Are We? cites Fairway: a way to build fair ML software
  • Fairness Improvement with Multiple Protected Attributes: How Far Are We? cites White-box fairness testing through adversarial sampling
  • Fairness Improvement with Multiple Protected Attributes: How Far Are We? cites Bias in machine learning software: why? how? what to do?
  • AI2: Safety and Robustness Certification of Neural Networks with Abstract Interpretation cites Towards Evaluating the Robustness of Neural Networks
  • Bias in machine learning software: why? how? what to do? cites Fairway: a way to build fair ML software
  • Bias in machine learning software: why? how? what to do? cites White-box fairness testing through adversarial sampling
  • Fix Fairness, Don't Ruin Accuracy: Performance Aware Fairness Repair using AutoML cites Towards Understanding Fairness and its Composition in Ensemble Machine Learning
  • Fix Fairness, Don't Ruin Accuracy: Performance Aware Fairness Repair using AutoML cites Fairway: a way to build fair ML software
  • Fix Fairness, Don't Ruin Accuracy: Performance Aware Fairness Repair using AutoML cites White-box fairness testing through adversarial sampling
  • Fix Fairness, Don't Ruin Accuracy: Performance Aware Fairness Repair using AutoML cites Bias in machine learning software: why? how? what to do?
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers20

  1. PYEVOLVE: Automating Frequent Code Changes in Python ML SystemsMalinda Dilhara, Danny Dig, Ameya KetkarICSE 2023 · 46 citations
  2. Fairness Improvement with Multiple Protected Attributes: How Far Are We?Zhenpeng Chen, Jie M. Zhang, Federica Sarro, Mark HarmanICSE 2024 · 33 citations
  3. Towards Understanding Fairness and its Composition in Ensemble Machine LearningUsman Gohar, Sumon Biswas, Hridesh RajanICSE 2023 · 30 citations
  4. FairProof : Confidential and Certifiable Fairness for Neural NetworksChhavi Yadav, Amrita Roy Chowdhury, Dan Boneh, Kamalika ChaudhuriICML 2024 · 20 citations
  5. Fix Fairness, Don't Ruin Accuracy: Performance Aware Fairness Repair using AutoMLGiang Nguyen, Sumon Biswas, Hridesh RajanFSE 2023 · 15 citations

Builds on17

  1. Towards Evaluating the Robustness of Neural NetworksNicholas Carlini, David A. WagnerS&P 2017 · 9,786 citations
  2. AI2: Safety and Robustness Certification of Neural Networks with Abstract InterpretationTimon Gehr, Matthew Mirman, Dana Drachsler-Cohen, Petar Tsankov et al.S&P 2018 · 987 citations
  3. Bias in machine learning software: why? how? what to do?Joymallya Chakraborty, Suvodeep Majumder, Tim MenziesFSE 2021 · 186 citations
  4. Fairway: a way to build fair ML softwareJoymallya Chakraborty, Suvodeep Majumder, Zhe Yu, Tim MenziesFSE 2020 · 131 citations
  5. White-box fairness testing through adversarial samplingPeixin Zhang, Jingyi Wang, Jun Sun, Guoliang Dong et al.ICSE 2020 · 127 citations

Related papers

  1. Fairquant: Certifying and Quantifying Fairness of Deep Neural NetworksBrian Hyeongseok Kim, Jingbo Wang, Chao WangICSE 2025 · 6 citations
  2. CertiFair: A Framework for Certified Global Fairness of Neural NetworksHaitham Khedr, Yasser ShoukryAAAI 2023 · 26 citations
  3. Probabilistic Verification of Neural Networks Against Group FairnessBing Sun, Jun Sun, Ting Dai, Lijun ZhangFM 2021 · 20 citations
  4. Certification of Distributional Individual FairnessMatthew Wicker, Vihari Piratla, Adrian WellerNeurIPS 2023 · 2 citations
  5. Perfectly parallel fairness certification of neural networksCaterina Urban, Maria Christakis, Valentin Wüstholz, Fuyuan ZhangOOPSLA 2020 · 61 citations
Dusk over the sea between two cliffs drawn in fine vertical lines