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

BiasFinder:揭示情感分析系统偏差的变形测试生成

BiasFinder: Metamorphic Test Generation to Uncover Bias for Sentiment Analysis Systems

Muhammad Hilmi Asyrofi, Zhou Yang, Imam Nur Bani Yusuf, Hong Jin Kang, Ferdian Thung, David Lo

摘要:

诸如情感分析(SA)系统的人工智能(AI)软件系统通常从可能反映人类偏见的大量数据中学习。因此,这种软件系统中的机器学习模型可能基于特定特性(例如,性别、职业、原籍国等)。这种偏见表现在SA系统中,当它预测类似文本的不同情绪时,这些文本仅在所描述的个人特征上有所不同。现有的研究揭示SA系统中的偏见依赖于生产的句子从一个小的一组短,预定义的模板。为了解决这一限制,我们提出了Bisaplets,一种通过变形测试发现SA系统中有偏见的预测的方法。Bisapritis的一个关键功能是根据来自大型语料库的文本片段自动整理合适的模板,使用各种自然语言处理技术来识别描述人口特征的单词。接下来,BisaExcitation通过用与特征的类相关联的词填充占位符来从这些模板实例化新文本(例如,性别特定的词,如女性的名字,“她”,“她的”)。这些文本用于梳理SA系统中的偏差。当BisaExcitation检测到SA系统对一对文本表现出人口统计学偏见时,它识别出偏见揭露测试用例,即,它预测仅在与不同类别相关联的单词上不同的文本的不同情感(例如,男性对女性)的目标特征(例如,性别)。我们的实证评估表明,偏见可以有效地创建大量的流畅和多样化的测试用例,发现SA系统中的各种偏见。

英文摘要:

Artificial Intelligence (AI) software systems, such as Sentiment Analysis (SA) systems, typically learn from large amounts of data that may reflect human biases. Consequently, the machine learning model in such software systems may exhibit unintended demographic bias based on specific characteristics (e.g., gender, occupation, country-of-origin, etc.). Such biases manifest in an SA system when it predicts a different sentiment for similar texts that differ only in the characteristic of individuals described. Existing studies on revealing bias in SA systems rely on the production of sentences from a small set of short, predefined templates. To address this limitation, we present BisaFinder, an approach to discover biased predictions in SA systems via metamorphic testing. A key feature of BisaFinder is the automatic curation of suitable templates based on the pieces of text from a large corpus, using various Natural Language Processing (NLP) techniques to identify words that describe demographic characteristics. Next, BisaFinder instantiates new text from these templates by filling in placeholders with words associated with a class of a characteristic (e.g., gender-specific words such as female names, "she", "her"). These texts are used to tease out bias in an SA system. BisaFinder identifies a bias-uncovering test case when it detects that the SA system exhibits demographic bias for a pair of texts, i.e., it predicts a different sentiment for texts that differ only in words associated with a different class (e.g., male vs. female) of a target characteristic (e.g., gender). Our empirical evaluation showed that BiasFinder can effectively create a larger number of fluent and diverse test cases that uncover various biases in an SA system.

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

↑