GPT-HateCheck:大语言模型能否为仇恨言论检测编写更好的功能测试?
GPT-HateCheck: Can LLMs Write Better Functional Tests for Hate Speech Detection?
AI总结:
针对HateCheck测试用例过于通用、结构简单的问题,提出GPT-HateCheck框架,利用大语言模型生成多样且逼真的功能测试,并借助NLI模型验证,以揭示模型被忽视的弱点。
摘要:
在线仇恨言论检测因数据采样、标注和模型预训练中引入的偏差而受到影响。因此,仅衡量模型在留出测试数据上所有示例的平均性能是不够的。相反,我们必须识别模型的具体弱点,并了解其更可能失败的情况。最近一项相关提议是HateCheck,这是一个测试套件,用于在基于诸如“你对我来说只是个[辱骂词]”这类模板生成的合成数据上,评估模型细粒度的功能。然而,尽管HateCheck能够提供更详细的诊断见解,其测试用例往往过于通用,句子结构简单,与真实世界数据不匹配。为解决这一局限,我们提出了GPT-HateCheck,一个通过指示大语言模型(LLMs)从零开始生成更多样化和逼真的功能测试的框架。我们采用额外的自然语言推理(NLI)模型来验证生成的测试用例。众包标注表明,生成的测试用例质量很高。使用这些新的功能测试,我们能够发现使用原始HateCheck数据集时会被忽视的模型弱点。
英文摘要:
Online hate detection suffers from biases incurred in data sampling, annotation, and model pre-training. Therefore, measuring the averaged performance over all examples in held-out test data is inadequate. Instead, we must identify specific model weaknesses and be informed when it is more likely to fail. A recent proposal in this direction is HateCheck, a suite for testing fine-grained model functionalities on synthesized data generated using templates of the kind "You are just a [slur] to me." However, despite enabling more detailed diagnostic insights, the HateCheck test cases are often generic and have simplistic sentence structures that do not match the real-world data. To address this limitation, we propose GPT-HateCheck, a framework to generate more diverse and realistic functional tests from scratch by instructing large language models (LLMs). We employ an additional natural language inference (NLI) model to verify the generations. Crowd-sourced annotation demonstrates that the generated test cases are of high quality. Using the new functional tests, we can uncover model weaknesses that would be overlooked using the original HateCheck dataset.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。