OxonFair: A Flexible Toolkit for Algorithmic Fairness

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

Paper

References (100)

Scroll for more · 38 remaining

Similar papers

Peer review

Reviewer aniZ7/10 · confidence 3/52024-07-10

Summary

The paper introduces "AnonFair," a toolkit designed to enforce algorithmic fairness across various domains, including NLP, computer vision, and traditional tabular data. It is compatible with popular machine learning frameworks like sklearn, AutoGluon, and PyTorch. Unlike well-established fairness tools like FairLearn and AIF360, AnonFair extends to different types of data, including NLP and vision. Other tools offer many methods but limited control over them, while AnonFair uses a single, highly customizable method that allows for per-group thresholding. It specifically addresses the issue of overfitting by utilizing validation data, making it more reliable when traditional methods might fail. Empirical evidence presented shows that AnonFair performs well, often matching or surpassing other methods in fairness benchmarks without being specifically optimized for complex or high-dimensional scenarios. AnonFair seems to provide a robust and adaptable solution for implementing fairness in machine learning, in ways that other tools do not currently offer.

Strengths

- The paper does well in positioning AnonFair against competing tools by demonstrating its performance on standard fairness metrics and its versatility across a variety of use cases. - AnonFair supports NLP and computer vision classification tasks, allowing broader applicability. - The toolkit uses validation data to combat overfitting, ensuring that fairness measures remain robust across both training and unseen data. - The toolkit not only competes well in terms of accuracy and fairness metrics but also offers significant advantages in computational efficiency.

Weaknesses

- Some sections are overly detailed, such as the introduction, while others are missing necessary depth: - Section 3 could use a clearer structure, possibly with a diagram, to help readers understand how to interact with the toolkit. - The section on toolkit expressiveness needs more detailed examples and explanations of how the supported fairness measures are implemented. - Results discussion is kept very brief and could benefit from specific numerical examples, like percentage improvements compared to other methods.m actual numbers, such as how much % improvement in comparison to method XY and such. - The paper assumes readers are familiar with fairness terminology and metrics without adequate explanations or definitions for some acronyms (e.g., DEO in Table 3 and 4). - Subsection 4.3 lists supported fairness measures but fails to provide examples or brief explanations, making it less informative for those not familiar with these terms. - Lack of consistency in terminology usage; for example, "EOp" in Figure 1 (top right) vs. "EO" in Section 5.2, “AnonFair” missing before "Frontier" in Figure 1 (left), and inconsistent references like "See Figure" vs. "See fig.." - A stronger call to action for community engagement, such as through open-source collaboration or empirical validation studies, could significantly enhance the broader impact and encourage more widespread adoption and refinement of AnonFair. - The paper would benefit from a summary of explicit cases and recommendations advising users on the best scenarios for using the tool. - Figure 2 is not referred to in the paper, or did I miss this part.

Questions

1. The paper mentions that hard assignment is more efficient than soft assignment, while appendix A adds some operational details, it remains unclear how these methods specifically compare in terms of quantitative metrics. Could the authors provide specific metrics or comparisons that demonstrate the efficiency and performance benefits of hard assignment? 2. The discussed limitations reads a bit out of context given provided evidence in the paper. What makes the mentioned solutions suboptimal, and how significant are these shortcomings? Also it was not clear to me, after finishing reading, when it is adequate to use this tool and what could be use cases when it fails. Including this into the conclusion could make the reader grasping the full picture. 3. Is Figure 6 part of the Appendix or misplaced?

Rating

7

Confidence

3

Soundness

3

Presentation

2

Contribution

3

Limitations

Some of the limitations are acknowledged, but could be expanded with more actionable insights. A call to action for community engagement, such as through open-source collaboration would also encourage broader impact and adoption of AnonFair against its competitors. It would be beneficial if the authors suggested potential improvements or future research directions for the suboptimal fairness metrics and data scarcity issues mentioned. The broader impact section identifies ethical concerns well. However, detailing the intended applications and scenarios where AnonFair might be most effective, or where it could fail, would provide readers and users with clearer guidance on its practical use and limitations.

Authorsrebuttal2024-08-12

Any follow-up clarifications?

We hope that we have addressed all issues raised to your satisfaction in our rebuttal. We would be happy to provide additional clarifications if required as the discussion period will be over soon. Thank you for your time.

Reviewer aniZ2024-08-12

I appreciate the authors' detailed response to the concerns raised and the additional experiments. Given the constraints of a conference paper, I agree that the toolkit's documentation may be better suited for the extensive details. With the reviewers' feedback incorporated, the paper should be better positioned to convince practitioners to try out the toolkit. Good luck. I will maintain the current score.

Reviewer JNWw7/10 · confidence 1/52024-07-13

Summary

This paper describes a new toolkit for algorithmic fairness, enabling the optimization of any fairness measure that is a function of the confusion matrix. Experiments on vision and NLP demonstrated the effectiveness of the proposed toolkit.

Strengths

An easy-to-use toolkit for enforcing algorithmic fairness.

Weaknesses

Presentation could be made more self-contained, e.g. a table listing the supported fairness metrics, as functions of the confusion matrix. This would help readers not familiar with the field. It seems that only binary classification is supported. How can such metrics be extended to other tasks? Some minimal code snippets for the interface could be shown as examples.

Questions

- L5: "True positives, false positives, ..." => "the confusion matrix" - L6: "extendable" => "extensible"

Rating

7

Confidence

1

Soundness

3

Presentation

2

Contribution

3

Limitations

The authors adequately discussed the limitations of their toolkit.

Authorsrebuttal2024-08-12

Any follow-up clarifications?

We hope that we have addressed all issues raised to your satisfaction in our rebuttal. We would be happy to provide additional clarifications if required as the discussion period will be over soon. Thank you for your time.

Reviewer JNWw2024-08-13

Thanks for the detailed response. I have modified the score based on the appendix. Thanks.

Reviewer AiSk6/10 · confidence 4/52024-07-13

Summary

The paper introduces a new toolkit designed to enhance algorithmic fairness with greater expressiveness. Unlike existing toolkits, this one offers more customization options to optimize user-defined objectives and fairness constraints. Although the proposed toolkit currently includes only one method, it supports both computer vision and natural language processing (NLP) tasks. The authors compare the efficiency of this method, finding that the toolkit is relatively more efficient than Fairlearn. Comprehensive experiments were conducted on various datasets, and the results were compared with those from other popular toolkits.

Strengths

- The paper introduces a versatile toolkit that supports both NLP and computer vision tasks, unlike existing toolkits which lack this capability. - The proposed toolkit employs efficient optimization techniques that accelerate the evaluation process.

Weaknesses

- The formulation presented in Subsection 4.2 of the paper is limited to a single-layer model, which restricts its applicability across different machine learning models. To enhance the flexibility of the method, I recommend adopting a more generic notation, particularly if we aim to incorporate pretrained language models. - The abstract is quite unclear, especially the part that mentions "9/9 and 10/10 of the group metrics of two popular review papers." I suggest rephrasing the abstract for better clarity and comprehension.

Questions

- In Figure 3, the proposed toolkit appears to encounter scaling issues when reaching 5 groups. Could you provide more details on why this occurs and elaborate on the underlying reasons for this limitation? - The paper presents results on multilingual datasets. Do you have any specific findings for each language, particularly regarding the effectiveness of the toolkit for individual languages?

Rating

6

Confidence

4

Soundness

3

Presentation

3

Contribution

3

Limitations

Yes

Reviewer AKgy4/10 · confidence 4/52024-07-14

Summary

The paper describes details of a fairness toolkit ("AnonFair"), which confers fairness to any given machine learning classifier by exploring a wide range of prediction thresholds for different groups (which are either provided upfront or inferred through an auxiliary classifier). The toolkit is designed to be quite expressive, as it can optimize several different metrics, e.g., false positives/negatives, true positives, etc. The toolkit can work across all classifiers (which can output class probabilities), including ones trained on vision and NLP tasks.

Strengths

The paper introduces and describes a toolkit that implements several fairness strategies and can support any fairness measure that can be expressed in terms of true positives, false positives, true negatives and false negatives. These techniques primarily rest upon adjusting the classification thresholds of different groups, and the paper also incorporates tricks to speed up their computations of precision and recall across different thresholds. The fairness techniques that this paper implements are (largely) classifier agnostic, and can be applied to a wide range of classifiers including NLP and vision classifiers (as this paper shows). Overall, I appreciate that expressivity and broad applicability of their toolkit.

Weaknesses

While the toolkit might turn out to be useful for some practitioners, it is a relatively straightforward implementation of well-known (and simple) technique of adjusting prediction thresholds across groups. Exploring different thresholds can be computationally prohibitive, for which the authors use a standard trick to speed up their explorations (which I appreciate). The paper acknowledges and cites relevant papers/techniques that they implement. Overall, the originality and novelty of their work is significantly limited, as the toolkit is an implementation of known and simple fairness techniques. Further, the underlying fairness techniques (not from the authors) are themselves applicable to most classifiers, so any implementation of the same could work for NLP and vision tasks—which is claimed to be one of the major contributions of this work.

Questions

I feel that the current version is a good starting point (in terms of implementation) of existing fairness techniques and speeding them up and trying them out on vision and NLP tasks. To improve the paper, I would suggest clearly outlining the important problems that this toolkit now can enable researchers to answer (which was not possible before) and answer a few of those questions in the paper.

Rating

4

Confidence

4

Soundness

3

Presentation

2

Contribution

2

Limitations

I believe the paper adequately communicates their shortcomings and cites past references when using them. However, I think it might help to also acknowledge that the underlying fairness techniques broadly apply to a wide range of classifiers, and naturally extend to classifiers in computer vision and NLP domains. Reading parts of the paper felt like that there are significant challenges in adoption of fairness techniques to NLP and CV, and this paper overcomes them through novel solutions—which is not the case.

Reviewer AKgy2024-08-10

Response

Thanks for your response. I agree with the authors that their toolkit also supports cases when group annotations are unavailable. I realize that my evaluation might not have properly taken this into account. In that light, I have increased my assessment score about the contribution from poor to fair, and overall assessment from 3 to 4. I'm quite aware of the fact that NeurIPS CFP invites libraries as contributions, but that doesn't take away my concerns about the (lack of) novelty and originality of the underlying techniques implemented in the library.

Reviewer 9LRe6/10 · confidence 3/52024-07-15

Summary

This paper presents AnonFair, a cutting-edge open-source toolkit designed to promote algorithmic fairness. Authors claim the following contributions: (1) Comprehensive support for NLP and Computer Vision classification, as well as standard tabular problems. (2) Enhanced robustness against overfitting challenges through the ability to enforce fairness on validation data. (3) Versatility in optimizing any measure that is a function of True Positives, False Positives, False Negatives, and True Negatives, making it easily adaptable and more expressive than other toolkits. (4) Seamless integration with popular ML toolkits such as sklearn, Autogluon, and pytorch. (5) AnonFair supports 9/9 and 10/10 of the group metrics of two prominent review papers and is accessible online at no cost.

Strengths

This toolkit progresses in algorithmic fairness and enhances multidisciplinary collaborations, it is design to integrate the intervention of policy-makers. The paper includes a complete section of experiments and comparison with existing toolkits. AnonFair key contributions include support to popular and relevant NLP and Computer vision areas.

Weaknesses

* Lack of clarity in some reported experiments, e.g. results tables are not cited in the text, metrics are not well-contextualized (e.g. larger or lower scores are better?) * Lack of analysis, examples or human evaluation to better understand contributions and limitations of the method in each of the experiments.

Questions

(1) Could you provide more high-level context for each of the experiments that you are running in order to make the paper more self-contained? (2) for NLP experiments, why do you think mitigation works for Twitter and not for Jigsaw?

Rating

6

Confidence

3

Soundness

3

Presentation

2

Contribution

3

Limitations

Authors report some limitations, but further analysis on the experiments could raise more limitations that may be currently ignored.

Authorsrebuttal2024-08-12

Any follow-up clarifications?

We hope that we have addressed all issues raised to your satisfaction in our rebuttal. We would be happy to provide additional clarifications if required as the discussion period will be over soon. Thank you for your time.

Reviewer AiSk2024-08-08

Thank you for the response and plan to improve the paper. I will keep my scores.

Authorsrebuttal2024-08-11

We thank the reviewer for the positive feedback and encouragement in that our toolkit makes *“good progress towards bias and fairness in ML”*. We are also happy to see that the reviewer feels that ethical issues are acknowledged in the paper. Regarding the recommendation, does the reviewer expect us to carry out this experiment in the final version of the paper or is it a suggestion for future work? We believe that both ethnicity and the color people identify as are, in many ways, social constructs, and we are uneasy about using auto-generated labels for images as ground truth in a quick additional experiment.

Authorsrebuttal2024-08-13

We thank the reviewer for their helpful feedback. In line with the reviewers recommendation, we will expand the limitations section to acknowledge and discuss the issue of binary annotations for gender that are common in many popular datasets in algorithmic fairness.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC