paper-with-me

Papers

Plug and Play Counterfactual Text Generation for Model Robustness

2022-06-21 · Nishtha Madaan, Srikanta Bedathur, Diptikalyan Saha

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.

📄 PDF Abstract BibTeX arXiv:2206.10429

Code (0)

등록된 구현이 없습니다.

Tasks

AttributecounterfactualText Generation

Methods 이 논문이 사용한 방법론

Repair 설명 없음
Counterfactuals 설명 없음
Test 설명 없음

Similar Papers 제목 키워드 기반

V-CECE: Visual Counterfactual Explanations via Conceptual Edits

2025-09-20 · Nikolaos Spanos, Maria Lymperaiou, Giorgos Filandrianos, Konstantinos Thomas 외 arxiv

Recent black-box counterfactual generation frameworks fail to take into account the semantic content of the proposed edits, while relying heavily on training to guide the generation process. We propose a novel, plug-and-…

Image Editing

Navigating the Structured What-If Spaces: Counterfactual Generation via Structured Diffusion

2023-12-21 · Nishtha Madaan, Srikanta Bedathur

Generating counterfactual explanations is one of the most effective approaches for uncovering the inner workings of black-box neural network models and building user trust. While remarkable strides have been made in gene…

counterfactualDiversity

Parameters vs. Context: Fine-Grained Control of Knowledge Reliance in Language Models

2025-03-20 · Baolong Bi, Shenghua Liu, Yiwei Wang, Yilong Xu 외

Retrieval-Augmented Generation (RAG) mitigates hallucinations in Large Language Models (LLMs) by integrating external knowledge. However, conflicts between parametric knowledge and retrieved context pose challenges, part…

counterfactualRAGRetrieval-augmented Generation

CFL: Causally Fair Language Models Through Token-level Attribute Controlled Generation

2023-06-01 · Rahul Madhavan, Rishabh Garg, Kahini Wadhawan, Sameep Mehta

We propose a method to control the attributes of Language Models (LMs) for the text generation task using Causal Average Treatment Effect (ATE) scores and counterfactual augmentation. We explore this method, in the conte…

AttributecounterfactualText Generation

CausalVAE as a Plug-in for World Models: Towards Reliable Counterfactual Dynamics

2026-04-09 · Ziyi Ding, Xianxin Lai, Weiyu Chen, Xiao-Ping Zhang 외 arxiv

In this work, CausalVAE is introduced as a plug-in structural module for latent world models and is attached to diverse encoder-transition backbones. Across the reported benchmarks, competitive factual prediction is pres…