MTTM:文本内容审核软件的变形测试
MTTM: Metamorphic Testing for Textual Content Moderation Software
摘要:
Twitter和Facebook等社交媒体平台的指数增长彻底改变了人类社会的文本通信和文本内容发布。然而,它们越来越多地被用来传播有毒内容,例如仇恨言论、恶意广告和色情,这可能导致高度负面影响(例如,对青少年心理健康的有害影响)。研究人员和从业人员一直在积极开发和广泛部署文本内容审核软件来解决这个问题。然而,我们发现恶意用户可以通过改变有毒内容中的几个字来逃避审核。此外,针对恶意输入的现代内容审核软件性能仍然未得到充分探索。为此,我们提出MTTM,文本内容审核软件的变形测试框架。具体来说,我们进行了试点研究,从真实用户收集的2,000条短信,并总结了11个变形关系在三个扰动水平:字符,单词和句子。MTTM在有毒文本内容上使用这些变形关系来生成测试用例,这些测试用例仍然是有毒的,但可能会逃避适度。在我们的评估中,我们采用MTTM测试三个商业文本内容审核软件和两个国家的最先进的审核算法对三种有毒内容。结果显示,MTTM在测试谷歌、百度和华为提供的商业审核软件时,分别达到了83.9%、51%和82.5%的错误发现率(EFR),在测试该学院最先进的算法时,获得了高达91.2%的EFR。此外,我们利用MTTM生成的测试用例来重新训练我们探索的模型,这在很大程度上提高了模型的鲁棒性(0%到5.9%EFR),同时保持了原始测试集的准确性。
英文摘要:
The exponential growth of social media platforms such as Twitter and Facebook has revolutionized textual communication and textual content publication in human society. However, they have been increasingly exploited to propagate toxic content, such as hate speech, malicious advertisement, and pornography, which can lead to highly negative impacts (e.g., harmful effects on teen mental health). Researchers and practitioners have been enthusiastically developing and extensively deploying textual content moderation software to address this problem. However, we find that malicious users can evade moderation by changing only a few words in the toxic content. Moreover, modern content moderation software performance against malicious inputs remains underexplored. To this end, we propose MTTM, a Metamorphic Testing framework for Textual content Moderation software. Specifically, we conduct a pilot study on 2,000 text messages collected from real users and summarize eleven metamorphic relations across three perturbation levels: character, word, and sentence. MTTM employs these metamorphic relations on toxic textual contents to generate test cases, which are still toxic yet likely to evade moderation. In our evaluation, we employ MTTM to test three commercial textual content moderation software and two state-of-the-art moderation algorithms against three kinds of toxic content. The results show that MTTM achieves up to 83.9%, 51%, and 82.5% error finding rates (EFR) when testing commercial moderation software provided by Google, Baidu, and Huawei, respectively, and it obtains up to 91.2% EFR when testing the state-of-the-art algorithms from the academy. In addition, we leverage the test cases generated by MTTM to retrain the model we explored, which largely improves model robustness (0% to 5.9% EFR) while maintaining the accuracy on the original test set.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。