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, -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 about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 367e6a14-3cce-48e6-8e3f-ab6f82af725cCited by top-tier papers6
- Systematic Testing of the Data-Poisoning Robustness of KNNYannan Li, Jingbo Wang, Chao WangISSTA 2023 · 8 citations
- Fairquant: Certifying and Quantifying Fairness of Deep Neural NetworksBrian Hyeongseok Kim, Jingbo Wang, Chao WangICSE 2025 · 6 citations
- FairSense: Long-Term Fairness Analysis of ML-Enabled SystemsYining She, Sumon Biswas, Christian Kästner, Eunsuk KangICSE 2025 · 4 citations
- Fairness Invariants: A Relational Approach to Explaining and Mitigating Fairness BugsRanit Debnath Akash, Ashish Kumar, Gang Tan, Saeid Tizpaz-NiariISSTA 2026
- Fairness Shields: Safeguarding against Biased Decision MakersFilip Cano, Thomas A. Henzinger, Bettina Könighofer, Konstantin Kueffner et al.AAAI 2025
Builds on13
- 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
- Certified Robustness to Label-Flipping Attacks via Randomized SmoothingElan Rosenfeld, Ezra Winston, Pradeep Ravikumar, J. Zico KolterICML 2020 · 182 citations
- Learning Certified Individually Fair RepresentationsAnian Ruoss, Mislav Balunovic, Marc Fischer, Martin T. VechevNeurIPS 2020 · 112 citations
- Certified Robustness of Nearest Neighbors against Data Poisoning and Backdoor AttacksJinyuan Jia, Yupei Liu, Xiaoyu Cao, Neil Zhenqiang GongAAAI 2022 · 90 citations
- ReluDiff: differential verification of deep neural networksBrandon Paulsen, Jingbo Wang, Chao WangICSE 2020 · 47 citations
Related papers
- iFlipper: Label Flipping for Individual FairnessHantian Zhang, Ki Hyun Tae, Jaeyoung Park, Xu Chu et al.SIGMOD 2023 · 12 citations
- SenSeI: Sensitive Set Invariance for Enforcing Individual FairnessMikhail Yurochkin, Yuekai SunICLR 2021 · 53 citations
- Fair Feature Distillation for Visual RecognitionSangwon Jung, Donggyu Lee, Taeeon Park, Taesup MoonCVPR 2021
- Two Simple Ways to Learn Individual Fairness Metrics from DataDebarghya Mukherjee, Mikhail Yurochkin, Moulinath Banerjee, Yuekai SunICML 2020 · 109 citations
- Exact Robustness Certification of k-Nearest NeighborsFrancesco Ranzato, Ahmad Shakeel, Marco ZanellaCCS 2025
