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 条
  • [1] Empathetic Response Generation Based on Plug-and-Play Mechanism With Empathy Perturbation
    Hsu, Jia-Hao
    Chang, Jeremy
    Kuo, Min-Hsueh
    Wu, Chung-Hsien
    [J]. IEEE-ACM TRANSACTIONS ON AUDIO SPEECH AND LANGUAGE PROCESSING, 2023, 31 : 2032 - 2042
  • [2] PLUG-AND-PLAY
    STRASSBERG, D
    [J]. EDN, 1995, 40 (05) : 33 - &
  • [3] A Plug-and-Play Method for Controlled Text Generation
    Pascual, Damian
    Egressy, Beni
    Meister, Clara
    Cotterell, Ryan
    Wattenhofer, Roger
    [J]. FINDINGS OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS, EMNLP 2021, 2021, : 3973 - 3997
  • [4] Plug-and-Play generation and manipulation of squeezing on chip
    Mondain, Francois
    Lunghi, Tommaso
    Zavatta, Alessandro
    Gouzien, Elie
    Doutre, Florent
    de Micheli, Marc
    Tanzilli, Sebastien
    D'Auria, Virginia
    [J]. 2019 CONFERENCE ON LASERS AND ELECTRO-OPTICS EUROPE & EUROPEAN QUANTUM ELECTRONICS CONFERENCE (CLEO/EUROPE-EQEC), 2019,
  • [5] Checking the play in plug-and-play
    Goldstein, H
    [J]. IEEE SPECTRUM, 2002, 39 (06) : 50 - +
  • [6] Plug-and-Play Macroscopes
    Boerner, Katy
    [J]. COMMUNICATIONS OF THE ACM, 2011, 54 (03) : 60 - 69
  • [7] Intranet plug-and-play
    不详
    [J]. ONLINE & CDROM REVIEW, 1997, 21 (04): : 250 - 250
  • [8] Plug-and-play nondeterminacy
    Morris, Joseph M.
    [J]. B 2007: Formal Specification and Development in B, Proceedings, 2007, 4355 : 289 - 292
  • [9] The plug-and-play economy
    Huber, P
    Korn, J
    [J]. FORBES, 1997, 160 (01): : 268 - 272
  • [10] Plug-and-play servers
    [J]. PC World (San Francisco, CA), 1999, 17 (05):