一句话:提出 Crest,利用句法成分与依存关系定义蜕变关系,无需标注测试集即可自动测试共指消解系统。
共指消解是机器翻译、问答等下游 NLP 应用的核心组件,但其系统测试研究较少。主要困难在于缺少标注测试集,且自动定义捕获期望共指关系的测试预言十分困难。为此,作者提出 Crest,一种面向共指消解系统的自动化测试方法:利用句法成分与依存关系构造受同一共指约束的测试输入对,并据此定义蜕变关系,从而无需标注测试集即可进行蜕变测试。在 CoNLL-2012 随机抽样的 1000 个句子上,作者将 Crest 与五个先进测试生成基线在两个常用共指消解系统上比较;结果显示 Crest 显著优于基线,所报告问题均为真阳性(100% 精确率),而基线为 63%–75%。
Coreference resolution (CR) is a task to resolve different expressions (e.g., named entities, pronouns) that refer to the same real-world en- tity/event. It is a core natural language processing (NLP) component that underlies and empowers major downstream NLP applications such as machine translation, chatbots, and question-answering. De- spite its broad impact, the problem of testing CR systems has rarely been studied. A major difficulty is the shortage of a labeled dataset for testing. While it is possible to feed arbitrary sentences as test inputs to a CR system, a test oracle that captures their expected test outputs (coreference relations) is hard to define automatically. To address the challenge, we propose Crest, an automated testing methodology for CR systems. Crest uses constituency and depen- dency relations to construct pairs of test inputs subject to the same coreference. These relations can be leveraged to define the meta- morphic relation for metamorphic testing. We compare Crest with five state-of-the-art test generation baselines on two popular CR systems, and apply them to generate tests from 1,000 sentences randomly sampled from CoNLL-2012, a popular dataset for corefer- ence resolution. Experimental results show that Crest outperforms baselines significantly. The issues reported by Crest are all true positives (i.e., 100% precision), compared with 63% to 75% achieved by the baselines.