BiasRV:揭露有偏见的情绪预测,
BiasRV: Uncovering Biased Sentiment Predictions at Runtime
摘要:
情感分析(SA)系统虽然在许多领域得到了广泛的应用,但也被证明会产生有偏差的结果。在自动生成测试用例以揭示SA系统中的不公平性方面已经做了一些研究工作,但是社区仍然缺乏可以在运行时监视和发现有偏见的预测的工具。本文填补了这一空白,提出了BiasRV,第一个工具,提出警报时,部署的SA系统对给定的输入文本进行有偏见的预测。为了实现这一功能,BiasRV从输入文本中动态提取模板,并从模板中生成性别歧视突变体(语义等同的文本,仅在性别信息上有所不同)。基于流行的度量用于评估SA系统的整体公平性,我们定义了SA系统的个人预测的分布公平性。此属性指定了一个要求,即对于一段文本,来自不同性别类别的突变体应作为一个整体进行类似处理。分配公平性的破坏给系统的运行带来了很大的开销。为了更有效地运行,BiasRV采用了两步启发式:(1)从每个性别中采样几个突变体,并检查系统是否预测它们具有相同的情感,(2)仅当采样的突变体具有冲突的结果时才检查分布公平性。实验表明,与直接检查每个输入文本的分布公平性相比,我们的两步启发式算法可以将用于分析突变体的开销减少73.81%,而仅导致6.7%的有偏预测被错过。此外,BiasRV可以方便地使用,而不知道SA系统的实现。未来的研究人员可以很容易地扩展BiasRV来检测更多类型的偏见,例如种族和职业。
英文摘要:
Sentiment analysis (SA) systems, though widely applied in many domains, have been demonstrated to produce biased results. Some research works have been done in automatically generating test cases to reveal unfairness in SA systems, but the community still lacks tools that can monitor and uncover biased predictions at runtime. This paper fills this gap by proposing BiasRV, the first tool to raise an alarm when a deployed SA system makes a biased prediction on a given input text. To implement this feature, BiasRV dynamically extracts a template from an input text and from the template generates gender-discriminatory mutants (semantically-equivalent texts that only differ in gender information). Based on popular metrics used to evaluate the overall fairness of an SA system, we define distributional fairness property for an individual prediction of an SA system. This property specifies a requirement that for one piece of text, mutants from different gender classes should be treated similarly as a whole. Verifying the distributional fairness property causes much overhead to the running system. To run more efficiently, BiasRV adopts a two-step heuristic: (1) sampling several mutants from each gender and checking if the system predicts them as of the same sentiment, (2) checking distributional fairness only when sampled mutants have conflicting results. Experiments show that compared to directly checking the distributional fairness property for each input text, our two-step heuristic can decrease overhead used for analyzing mutants by 73.81% while only resulting in 6.7% of biased predictions being missed. Besides, BiasRV can be used conveniently without knowing the implementation of SA systems. Future researchers can easily extend BiasRV to detect more types of bias, e.g. race and occupation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。