Counterfactual Sentence Generation with Plug-and-Play Perturbation

被引:1
|
作者
Madaan, Nishtha [1 ,2 ]
Saha, Diptikalyan [1 ]
Bedathur, Srikanta [2 ]
机构
[1] IBM Res, Bangalore, India
[2] Indian Inst Technol, Delhi, India
关键词
D O I
10.1109/SaTML54575.2023.00028
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
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.
引用
收藏
页码:306 / 315
页数:10
相关论文
共 50 条
  • [22] Plug-and-Play Distributed Algorithms for Optimized Power Generation in a Microgrid
    Crisostomi, Emanuele
    Liu, Mingming
    Raugi, Marco
    Shorten, Robert
    [J]. IEEE TRANSACTIONS ON SMART GRID, 2014, 5 (04) : 2145 - 2154
  • [23] Plug-and-Play Conversational Models
    Madotto, Andrea
    Ishii, Etsuko
    Lin, Zhaojiang
    Dathathri, Sumanth
    Fung, Pascale
    [J]. FINDINGS OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS, EMNLP 2020, 2020, : 2422 - 2433
  • [24] Plug-and-Play Virtual Factories
    Schulte, Stefan
    Schuller, Dieter
    Steinmetz, Ralf
    Abels, Sven
    [J]. IEEE INTERNET COMPUTING, 2012, 16 (05) : 78 - 82
  • [25] Toward Software Plug-and-Play
    [J]. Software Eng Notes, 3 (19):
  • [26] Plug-and-Play for Medical Implants
    Madanipour, Sean
    [J]. MECHANICAL ENGINEERING, 2011, 133 (04): : 23 - 23
  • [27] A plug-and-play production environment
    Lindholm, E
    [J]. DATAMATION, 1996, 42 (14): : 130 - &
  • [28] PLUG-AND-PLAY HITS THE CPI
    FOUHY, K
    [J]. CHEMICAL ENGINEERING, 1995, 102 (09) : 5 - 5
  • [29] Operation plug-and-play is on the way
    Aronson, RB
    [J]. MANUFACTURING ENGINEERING, 1997, 118 (03): : 108 - &
  • [30] On the Contractivity of Plug-and-Play Operators
    Athalye, Chirayu D.
    Chaudhury, Kunal N.
    Kumar, Bhartendu
    [J]. IEEE SIGNAL PROCESSING LETTERS, 2023, 30 : 1447 - 1451