OxonFair: A Flexible Toolkit for Algorithmic Fairness
Eoin Delaney, Zihao Fu, Sandra Wachter, Brent D. Mittelstadt, Chris Russell
Abstract
We present OxonFair, a new open source toolkit for enforcing fairness in binary classification. Compared to existing toolkits: (i) We support NLP and Computer Vision classification as well as standard tabular problems. (ii) We support enforcing fairness on validation data, making us robust to a wide range of overfitting challenges. (iii) Our approach can optimize any measure based on True Positives, False Positive, False Negatives, and True Negatives. This makes it easily extensible and much more expressive than existing toolkits. It supports all 9 and all 10 of the decision-based group metrics of two popular review articles. (iv) We jointly optimize a performance objective alongside fairness constraints. This minimizes degradation while enforcing fairness, and even improves the performance of inadequately tuned unfair baselines. OxonFair is compatible with standard ML toolkits, including sklearn, Autogluon, and PyTorch and is available at https://github.com/oxfordinternetinstitute/oxonfair
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.
Cited by top-tier papers3
- Benchmarking Bias Mitigation Toward Fairness Without Harm from Vision to LVLMsXuwei Tan, Ziyu Hu, Xueru ZhangICLR 2026 · 4 citations
- Benchmarking Stochastic Approximation Algorithms for Fairness-Constrained Training of Deep Neural NetworksAndrii Kliachkin, Jana Lepsová, Gilles Bareilles, Jakub MarecekICLR 2026 · 1 citation
- Fair Decisions from Calibrated Scores: Achieving Optimal Classification While Satisfying SufficiencyEtam Benger, Katrina LigettICML 2026
Builds on25
- Sharpness-aware Minimization for Efficiently Improving GeneralizationPierre Foret, Ariel Kleiner, Hossein Mobahi, Behnam NeyshaburICLR 2021 · 1,861 citations
- Retiring Adult: New Datasets for Fair Machine LearningFrances Ding, Moritz Hardt, John Miller, Ludwig SchmidtNeurIPS 2021 · 671 citations
- SWAD: Domain Generalization by Seeking Flat MinimaJunbum Cha, Sanghyuk Chun, Kyungjae Lee, Han-Cheol Cho et al.NeurIPS 2021 · 630 citations
- Minimax Pareto Fairness: A Multi Objective PerspectiveNatalia Martínez, Martín Bertrán, Guillermo SapiroICML 2020 · 232 citations
- Bias in machine learning software: why? how? what to do?Joymallya Chakraborty, Suvodeep Majumder, Tim MenziesFSE 2021 · 186 citations
Related papers
- Faster Fair Machine via Transferring Fairness Constraints to Virtual SamplesZhou Zhai, Lei Luo, Heng Huang, Bin GuAAAI 2023
- OmniFair: A Declarative System for Model-Agnostic Group Fairness in Machine LearningHantian Zhang, Xu Chu, Abolfazl Asudeh, Shamkant B. NavatheSIGMOD 2021 · 28 citations
- Optimal Transport of Classifiers to FairnessMaarten Buyl, Tijl De BieNeurIPS 2022 · 16 citations
- Post-hoc bias scoring is optimal for fair classificationWenlong Chen, Yegor Klochkov, Yang LiuICLR 2024 · 12 citations
- Testing Group Fairness via Optimal Transport ProjectionsNian Si, Karthyek Murthy, Jose H. Blanchet, Viet Anh NguyenICML 2021 · 37 citations
