A Practical Method for Generating String Counterfactuals
Not on the map. Why?
Abstract (arXiv)
Interventions targeting the representation space of language models (LMs) have emerged as an effective means to influence model behavior. Such methods are employed, for example, to eliminate or alter the encoding of demographic information such as gender within the model's representations and, in so doing, create a counterfactual representation. However, because the intervention operates within the representation space, understanding precisely what aspects of the text it modifies poses a challenge. In this paper, we give a method to convert representation counterfactuals into string counterfactuals. We demonstrate that this approach enables us to analyze the linguistic alterations corresponding to a given representation space intervention and to interpret the features utilized to encode a specific concept. Moreover, the resulting counterfactuals can be used to mitigate bias in classification through data augmentation.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 20 of its 35 references that are in the map. First posted on arXiv 17 Feb 2024.
Builds on
20 of 35 references.
References · 20
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
- 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,259
- 2017Mixed Precision Trainingcited by 1,135
- 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 579
- 2021Large Dual Encoders Are Generalizable Retrieverscited by 454
- 2020Null It Out: Guarding Protected Attributes by Iterative Nullspace Projectioncited by 442
- 2021Causal Abstractions of Neural Networkscited by 401
- 2019Bias in Bios: A Case Study of Semantic Representation Bias in a High-Stakes Settingcited by 346
- 2023LEACE: Perfect linear concept erasure in closed formcited by 254
- 2024Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language Modelscited by 225
8 more
- 2023Text Embeddings Reveal (Almost) As Much As Textcited by 189
- 2020Causal Mediation Analysis for Interpreting Neural NLP: The Case of Gender Biascited by 183
- 2020CausaLM: Causal Model Explanation Through Counterfactual Language Modelscited by 117
- 2021Inducing Causal Structure for Interpretable Neural Networkscited by 107
- 2019It's All in the Name: Mitigating Gender Bias with Name-Based Counterfactual Data Substitutioncited by 102
- 2021Counterfactual Interventions Reveal the Causal Effect of Relative Clause Representations on Agreement Predictioncited by 58
- 2024Text Embedding Inversion Security for Multilingual Language Modelscited by 26
- 2023A Geometric Notion of Causal Probingcited by 23
Built on by
Citing papers per year: 2024: 1; 2025: 1; 2026: 2.
4 papers.
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 83
- 2025FeatInv: Spatially resolved mapping from feature space to input space using conditional diffusion modelscited by 2
- 2026MANCE: Manifold Aware Concept Erasurecited by 0
- 2026MUtE: A Dual Framework for Concept Erasure and Counterfactual Interventionscited by 0
- 2026MUtE: A Dual Framework for Concept Erasure and Counterfactual Interventions10 Sep 2026
- 2026MANCE: Manifold Aware Concept Erasure4 Jul 2026
- 2025FeatInv: Spatially resolved mapping from feature space to input space using conditional diffusion models27 May 2025
- 2024A Primer on the Inner Workings of Transformer-based Language Models30 Apr 2024