Lune

CAV2023Top-tier venue

Certifying the Fairness of KNN in the Presence of Dataset Bias

Yannan Li, Jingbo Wang, Chao Wang

Abstract

Abstract We propose a method for certifying the fairness of the classification result of a widely used supervised learning algorithm, thek-nearest neighbors (KNN), under the assumption that the training data may have historical bias caused by systematic mislabeling of samples from a protected minority group. To the best of our knowledge, this is the first certification method for KNN based on three variants of the fairness definition: individual fairness, ϵ\epsilon -fairness, and label-flipping fairness. We first define the fairness certification problem for KNN and then propose sound approximations of the complex arithmetic computations used in the state-of-the-art KNN algorithm. This is meant to lift the computation results from the concrete domain to an abstract domain, to reduce the computational cost. We show effectiveness of thisabstract interpretationbased technique through experimental evaluation on six datasets widely used in the fairness research literature. We also show that the method is accurate enough to obtain fairness certifications for a large number of test inputs, despite the presence of historical bias in the datasets.

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.

6 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

  • Learning Certified Individually Fair Representations cites AI2: Safety and Robustness Certification of Neural Networks with Abstract Interpretation
  • ReluDiff: differential verification of deep neural networks cites AI2: Safety and Robustness Certification of Neural Networks with Abstract Interpretation
  • Fairness Invariants: A Relational Approach to Explaining and Mitigating Fairness Bugs cites Fairquant: Certifying and Quantifying Fairness of Deep Neural Networks
  • Systematic Testing of the Data-Poisoning Robustness of KNN cites ReluDiff: differential verification of deep neural networks
  • Systematic Testing of the Data-Poisoning Robustness of KNN cites Certified Robustness to Label-Flipping Attacks via Randomized Smoothing
  • Systematic Testing of the Data-Poisoning Robustness of KNN cites Certified Robustness of Nearest Neighbors against Data Poisoning and Backdoor Attacks
  • Fairquant: Certifying and Quantifying Fairness of Deep Neural Networks cites Learning Certified Individually Fair Representations
  • Fairquant: Certifying and Quantifying Fairness of Deep Neural Networks cites ReluDiff: differential verification of deep neural networks
  • Certified Robustness of Nearest Neighbors against Data Poisoning and Backdoor Attacks cites Certified Robustness to Label-Flipping Attacks via Randomized Smoothing
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. Systematic Testing of the Data-Poisoning Robustness of KNNYannan Li, Jingbo Wang, Chao WangISSTA 2023 · 8 citations
  2. Fairquant: Certifying and Quantifying Fairness of Deep Neural NetworksBrian Hyeongseok Kim, Jingbo Wang, Chao WangICSE 2025 · 6 citations
  3. FairSense: Long-Term Fairness Analysis of ML-Enabled SystemsYining She, Sumon Biswas, Christian Kästner, Eunsuk KangICSE 2025 · 4 citations
  4. Fairness Invariants: A Relational Approach to Explaining and Mitigating Fairness BugsRanit Debnath Akash, Ashish Kumar, Gang Tan, Saeid Tizpaz-NiariISSTA 2026
  5. Fairness Shields: Safeguarding against Biased Decision MakersFilip Cano, Thomas A. Henzinger, Bettina Könighofer, Konstantin Kueffner et al.AAAI 2025

Builds on13

  1. 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
  2. Certified Robustness to Label-Flipping Attacks via Randomized SmoothingElan Rosenfeld, Ezra Winston, Pradeep Ravikumar, J. Zico KolterICML 2020 · 182 citations
  3. Learning Certified Individually Fair RepresentationsAnian Ruoss, Mislav Balunovic, Marc Fischer, Martin T. VechevNeurIPS 2020 · 112 citations
  4. Certified Robustness of Nearest Neighbors against Data Poisoning and Backdoor AttacksJinyuan Jia, Yupei Liu, Xiaoyu Cao, Neil Zhenqiang GongAAAI 2022 · 90 citations
  5. ReluDiff: differential verification of deep neural networksBrandon Paulsen, Jingbo Wang, Chao WangICSE 2020 · 47 citations

Related papers

  1. iFlipper: Label Flipping for Individual FairnessHantian Zhang, Ki Hyun Tae, Jaeyoung Park, Xu Chu et al.SIGMOD 2023 · 12 citations
  2. SenSeI: Sensitive Set Invariance for Enforcing Individual FairnessMikhail Yurochkin, Yuekai SunICLR 2021 · 53 citations
  3. Fair Feature Distillation for Visual RecognitionSangwon Jung, Donggyu Lee, Taeeon Park, Taesup MoonCVPR 2021
  4. Two Simple Ways to Learn Individual Fairness Metrics from DataDebarghya Mukherjee, Mikhail Yurochkin, Moulinath Banerjee, Yuekai SunICML 2020 · 109 citations
  5. Exact Robustness Certification of k-Nearest NeighborsFrancesco Ranzato, Ahmad Shakeel, Marco ZanellaCCS 2025
Dusk over the sea between two cliffs drawn in fine vertical lines