mlsanityData to 14 Oct 2026

Text Counterfactuals via Latent Optimization and Shapley-Guided Search

arXiv 2110.11589 ↗First posted 22 Oct 2021cs.CLcited by 16

Not on the map. Why?

Abstract (arXiv)

We study the problem of generating counterfactual text for a classifier as a means for understanding and debugging classification. Given a textual input and a classification model, we aim to minimally alter the text to change the model's prediction. White-box approaches have been successfully applied to similar problems in vision where one can directly optimize the continuous input. Optimization-based approaches become difficult in the language domain due to the discrete nature of text. We bypass this issue by directly optimizing in the latent space and leveraging a language model to generate candidate modifications from optimized latent representations. We additionally use Shapley values to estimate the combinatoric effect of multiple changes. We then use these estimates to guide a beam search for the final counterfactual text. We achieve favorable performance compared to recent white-box and black-box baselines using human and automatic evaluations. Ablation studies show that both latent optimization and the use of Shapley values improve success rate and the quality of the generated counterfactuals.

Key facts. Cited by 16 papers in the map (data through 14 Oct 2026). Builds on 22 of its 34 references that are in the map. First posted on arXiv 22 Oct 2021.

Builds on

22 of 34 references.

References · 22

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  3. 2014Explaining and Harnessing Adversarial Examplescited by 7,364
  4. 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
  5. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
  6. 2016Towards Evaluating the Robustness of Neural Networkscited by 2,998
  7. 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 671
  8. 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 491
  9. 2018Universal Sentence Encodercited by 489
  10. 2019The many Shapley values for model explanationcited by 344
  11. 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
  12. 2019Towards Efficient Data Valuation Based on the Shapley Valuecited by 281
10 more
  1. 2017Toward Controlled Generation of Textcited by 272
  2. 2016Counter-fitting Word Vectors to Linguistic Constraintscited by 140
  3. 2020Contextualized Perturbation for Textual Adversarial Attackcited by 136
  4. 2018L-Shapley and C-Shapley: Efficient Model Interpretation for Structured Datacited by 100
  5. 2019Counterfactual Story Reasoning and Generationcited by 88
  6. 2019Transforming Delete, Retrieve, Generate Approach for Controlled Text Style Transfercited by 81
  7. 2020There and Back Again: Revisiting Backpropagation Saliency Methodscited by 60
  8. 2020Generating Plausible Counterfactual Explanations for Deep Transformers in Financial Text Classificationcited by 40
  9. 2019Word-level Textual Adversarial Attacking as Combinatorial Optimizationcited by 37
  10. 2019Controllable Unsupervised Text Attribute Transfer via Editing Entangled Latent Representationcited by 34

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2021: 1; 2022: 3; 2023: 4; 2024: 4; 2025: 3; 2026: 1.

16 papers.

Sort:

By area: