arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2206.10429cs.CLcs.LG
收藏

用于模型鲁棒性的即插即用伪事实文本生成

Plug and Play Counterfactual Text Generation for Model Robustness

Indian Institute of Technology Delhi(印度理工学院德里分校);IBM Research - India(IBM研究院(印度))

Nishtha Madaan, Srikanta Bedathur, Diptikalyan Saha

摘要:

生成反事实测试用例是测试NLP模型并使其像传统软件一样健壮和可靠的重要支柱。在生成测试用例时,期望的属性是以灵活的方式控制测试用例生成以测试大量不同的故障用例并以有针对性的方式解释和修复它们的能力。在这个方向上,已经取得了显着的进展,在现有的工作,通过手动编写规则,生成受控的反事实。但是,这种方法需要大量的人工监督,并且缺乏灵活性,无法轻松引入新的控制措施。由于PPLM的即插即用方法具有令人印象深刻的灵活性,我们建议将即插即用框架引入反事实测试用例生成任务。我们介绍CASPer,即插即用的反事实生成框架,生成测试用例,满足目标属性的需求。我们的即插即用模型可以引导测试用例生成过程中给定的任何属性模型,而不需要特定属性的模型训练。在实验中,我们表明,CASPer有效地生成反事实的文本,遵循属性模型提供的指导,同时也是流畅的,多样的,并保留原始内容。我们还表明,从CASPer生成的反事实可以用于增加训练数据,从而固定和使测试模型更强大。

英文摘要:

Generating counterfactual test-cases is an important backbone for testing NLP models and making them as robust and reliable as traditional software. In generating the test-cases, a desired property is the ability to control the test-case generation in a flexible manner to test for a large variety of failure cases and to explain and repair them in a targeted manner. In this direction, significant progress has been made in the prior works by manually writing rules for generating controlled counterfactuals. However, this approach requires heavy manual supervision and lacks the flexibility to easily introduce new controls. Motivated by the impressive flexibility of the plug-and-play approach of PPLM, we propose bringing the framework of plug-and-play to counterfactual test case generation task. We introduce CASPer, a plug-and-play counterfactual generation framework to generate test cases that satisfy goal attributes on demand. Our plug-and-play model can steer the test case generation process given any attribute model without requiring attribute-specific training of the model. In experiments, we show that CASPer effectively generates counterfactual text that follow the steering provided by an attribute model while also being fluent, diverse and preserving the original content. We also show that the generated counterfactuals from CASPer can be used for augmenting the training data and thereby fixing and making the test model more robust.

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

↑