arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2307.11298cs.SE
收藏

基于机器学习的代码评审者推荐公平性初探

A First Look at Fairness of Machine Learning Based Code Reviewer Recommendation

Mohammad Mahdi Mohajer, Alvine Boaye Belle, Nima Shiri harzevili, Junjie Wang, Hadi Hemmati, Song Wang, Zhen Ming, Jiang

AI总结:

本文首次研究软件工程领域ML应用的公平性问题,发现基于ML的代码评审者推荐存在性别不公平(男性获荐量平均多7.25%),分析原因并提出缓解方案,指出现有方法在不平衡数据上效果有限并给出改进思路。

摘要:

机器学习(ML)方法的公平性对现代人工智能系统的可靠性至关重要。尽管该主题已得到广泛研究,但软件工程(SE)领域中ML模型的公平性尚未得到充分探索。因此,许多由ML驱动的软件系统,尤其是软件工程社区使用的系统,仍容易出现公平性问题。本文以典型的SE任务之一——代码评审者推荐为研究对象,首次开展了SE领域ML应用公平性问题的调查研究。我们的实证研究表明,当前最先进的基于ML的代码评审者推荐技术存在不公平和歧视性行为。具体而言,与女性代码评审者在评审者集合中的分布相比,男性评审者获得的推荐量平均多出7.25%。本文还探讨了所研究的基于ML的代码评审者推荐系统不公平的原因,并提出了缓解不公平的解决方案。我们的研究进一步表明,在受保护群体和特权群体分布相似的项目中,现有缓解方法可将公平性提升100%,但它们在改善不平衡或偏斜数据上的公平性方面效果有限。最后,我们提出了一种解决方案,以克服现有缓解技术的缺陷,解决不平衡或偏斜数据集中的偏差问题。

英文摘要:

The fairness of machine learning (ML) approaches is critical to the reliability of modern artificial intelligence systems. Despite extensive study on this topic, the fairness of ML models in the software engineering (SE) domain has not been well explored yet. As a result, many ML-powered software systems, particularly those utilized in the software engineering community, continue to be prone to fairness issues. Taking one of the typical SE tasks, i.e., code reviewer recommendation, as a subject, this paper conducts the first study toward investigating the issue of fairness of ML applications in the SE domain. Our empirical study demonstrates that current state-of-the-art ML-based code reviewer recommendation techniques exhibit unfairness and discriminating behaviors. Specifically, male reviewers get on average 7.25% more recommendations than female code reviewers compared to their distribution in the reviewer set. This paper also discusses the reasons why the studied ML-based code reviewer recommendation systems are unfair and provides solutions to mitigate the unfairness. Our study further indicates that the existing mitigation methods can enhance fairness by 100% in projects with a similar distribution of protected and privileged groups, but their effectiveness in improving fairness on imbalanced or skewed data is limited. Eventually, we suggest a solution to overcome the drawbacks of existing mitigation techniques and tackle bias in datasets that are imbalanced or skewed.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑