Linear Adversarial Concept Erasure

Authors: Shauli Ravfogel, Michael Twiton, Yoav Goldberg, Ryan Cotterell

Submitted to arXiv on 28 Jan. 2022
License: not stated (all rights reserved)
Abstract

Modern neural models trained on textual data rely on pre-trained representations that emerge without direct supervision. As these representations are increasingly being used in real-world applications, the inability to \emph{control} their content becomes an increasingly important problem. We formulate the problem of identifying and erasing a linear subspace that corresponds to a given concept, in order to prevent linear predictors from recovering the concept. We model this problem as a constrained, linear minimax game, and show that existing solutions are generally not optimal for this task. We derive a closed-form solution for certain objectives, and propose a convex relaxation, R-LACE, that works well for others. When evaluated in the context of binary gender removal, the method recovers a low-dimensional subspace whose removal mitigates bias by intrinsic and extrinsic evaluation. We show that the method -- despite being linear -- is highly expressive, effectively mitigating bias in deep nonlinear classifiers while maintaining tractability and interpretability.

The papers around it, by date and closeness

Higher is closer to this paper; left is older. Lines join papers close to each other: groups of lines are sub-topics. Select a point to see why it is there. Back to the summary of this paper

How to read this map? Illustrated guide

Closest papers Prior work it builds on Papers that cite it

Papers around this one

Ranked by how close their title and abstract are to this paper’s. Select some to read them together.

Closest papers

  1. Very close Cites this paper Uses this paper in depth
    Adversarial Concept Erasure in Kernel Space
    Shauli Ravfogel, Francisco Vargas, Yoav Goldberg et al. · 2022 · Conference on Empirical Methods in Natural Language Processing · cited 4 times · Not summarized yet
    Abstract

    The representation space of neural models for textual data emerges in an unsupervised manner during training. Understanding how human-interpretable concepts, such as gender, are encoded in these representations would improve the ability of users to control the content of these representations and analyze the working of the models that rely on them. One prominent approach to the control problem is the identification and removal of linear concept subspaces – subspaces in the representation space that correspond to a given concept. While those are tractable and interpretable, neural network do not necessarily represent concepts in linear subspaces. We propose a kernalization of the linear concep…

  2. Very close Cites this paper Uses this paper in depth
    Adversarial Concept Erasure in Kernel Space
    Shauli Ravfogel, Francisco Vargas, Yoav Goldberg et al. · 2022 · Conference on Empirical Methods in Natural Language Processing · cited 60 times · Not summarized yet
    Abstract

    The representation space of neural models for textual data emerges in an unsupervised manner during training. Understanding how human-interpretable concepts, such as gender, are encoded in these representations would improve the ability of users to control the content of these representations and analyze the working of the models that rely on them. One prominent approach to the control problem is the identification and removal of linear concept subspaces – subspaces in the representation space that correspond to a given concept. While those are tractable and interpretable, neural network do not necessarily represent concepts in linear subspaces. We propose a kernelization of the recently-pro…

  3. Very close Cites this paper Uses this paper in depth
    Nonlinear Concept Erasure: a Density Matching Approach
    Antoine Saillenfest, Pirmin Lemberger · 2025 · European Conference on Artificial Intelligence · cited 4 times · Not summarized yet
    Abstract

    Ensuring that neural models used in real-world applications cannot infer sensitive information, such as demographic attributes like gender or race, from text representations is a critical challenge when fairness is a concern. We address this issue through concept erasure, a process that removes information related to a specific concept from distributed representations while preserving as much of the remaining semantic information as possible. Our approach involves learning an orthogonal projection in the embedding space, designed to make the class-conditional feature distributions of the discrete concept to erase indistinguishable after projection. By adjusting the rank of the projector, we …

  4. Very close Cites this paper
    Principled Nonlinear Concept Erasure and Steering
    Idan Simai, Shauli Ravfogel, Uri Shaham · 2026 · Not summarized yet
    Abstract

    Learned representations often encode sensitive attributes, such as gender or race, that may be undesirable or unsafe to retain. Concept erasure aims to remove this information while preserving task-relevant content. Existing methods remain incomplete: linear methods provide guarantees only against linear probes, while nonlinear methods achieve stronger empirical erasure but lack formal guarantees and often sacrifice utility. In this work, we introduce a principled conditional autoencoder framework for nonlinear concept erasure. We follow the principle that erasure should remove only the sensitive attribute and nothing else, and we show that, under the stated assumptions, perfect reconstructi…

  5. Very close
    Deep Concept Removal
    Yegor Klochkov, Jean-François Ton, Ruocheng Guo et al. · 2023 · arXiv.org · preprint, not peer reviewed · Not summarized yet
    Abstract

    We address the problem of concept removal in deep neural networks, aiming to learn representations that do not encode certain specified concepts (e.g., gender etc.) We propose a novel method based on adversarial linear classifiers trained on a concept dataset, which helps to remove the targeted attribute while maintaining model performance. Our approach Deep Concept Removal incorporates adversarial probing classifiers at various layers of the network, effectively addressing concept entanglement and improving out-of-distribution generalization. We also introduce an implicit gradient-based technique to tackle the challenges associated with adversarial training using linear classifiers. We eval…

  6. Very close Cited by this paper Cites this paper Used in depth by this paper A method it uses
    LEACE: Perfect linear concept erasure in closed form
    Nora Belrose, David Schneider-Joseph, Shauli Ravfogel et al. · 2023 · Neural Information Processing Systems · cited 329 times · Not summarized yet
    Abstract

    Concept erasure aims to remove specified features from an embedding. It can improve fairness (e.g. preventing a classifier from using gender or race) and interpretability (e.g. removing a concept to observe changes in model behavior). We introduce LEAst-squares Concept Erasure (LEACE), a closed-form method which provably prevents all linear classifiers from detecting a concept while changing the embedding as little as possible, as measured by a broad class of norms. We apply LEACE to large language models with a novel procedure called"concept scrubbing,"which erases target concept information from every layer in the network. We demonstrate our method on two tasks: measuring the reliance of l…

  7. Close Cites this paper
    Obliviator Reveals the Cost of Nonlinear Guardedness in Concept Erasure
    Ramin Akbari, Milad Afshari, Vishnu Naresh Boddeti · 2026 · Neural Information Processing Systems · cited 4 times · Not summarized yet
    Abstract

    Concept erasure aims to remove unwanted attributes, such as social or demographic factors, from learned representations, while preserving their task-relevant utility. While the goal of concept erasure is protection against all adversaries, existing methods remain vulnerable to nonlinear ones. This vulnerability arises from their failure to fully capture the complex, nonlinear statistical dependencies between learned representations and unwanted attributes. Moreover, although the existence of a trade-off between utility and erasure is expected, its progression during the erasure process, i.e., the cost of erasure, remains unstudied. In this work, we introduce Obliviator, a post-hoc erasure me…

  8. Close Cites this paper Uses this paper in depth
    Linear Guardedness and its Implications
    Shauli Ravfogel, Yoav Goldberg, Ryan Cotterell · 2022 · Annual Meeting of the Association for Computational Linguistics · cited 2 times · Not summarized yet
    Abstract

    Methods for erasing human-interpretable concepts from neural representations that assume linearity have been found to be tractable and useful.However, the impact of this removal on the behavior of downstream classifiers trained on the modified representations is not fully understood.In this work, we formally define the notion of linear guardedness as the inability of an adversary to predict the concept directly from the representation, and study its implications.We show that, in the binary case, under certain assumptions, a downstream log-linear model cannot recover the erased concept.However, we constructively demonstrate that a multiclass log-linear model can be constructed that indirectly…

Prior work it builds on

  1. Close Used in depth by this paper A method it uses
    Adversarial Removal of Demographic Attributes from Text Data
    Yanai Elazar, Yoav Goldberg · 2018 · Conference on Empirical Methods in Natural Language Processing · cited 368 times · Not summarized yet
    Abstract

    Recent advances in Representation Learning and Adversarial Training seem to succeed in removing unwanted features from the learned representation. We show that demographic information of authors is encoded in—and can be recovered from—the intermediate representations learned by text-based neural classifiers. The implication is that decisions of classifiers trained on textual data are not agnostic to—and likely condition on—demographic attributes. When attempting to remove such demographic information using adversarial training, we find that while the adversarial component achieves chance-level development-set accuracy during training, a post-hoc classifier, trained on the encoded sentences f…

  2. Close Used in depth by this paper A method it uses
    Null It Out: Guarding Protected Attributes by Iterative Nullspace Projection
    Shauli Ravfogel, Yanai Elazar, Hila Gonen et al. · 2020 · Annual Meeting of the Association for Computational Linguistics · cited 653 times · Not summarized yet
    Abstract

    The ability to control for the kinds of information encoded in neural representation has a variety of use cases, especially in light of the challenge of interpreting these models. We present Iterative Null-space Projection (INLP), a novel method for removing information from neural representations. Our method is based on repeated training of linear classifiers that predict a certain property we aim to remove, followed by projection of the representations on their null-space. By doing so, the classifiers become oblivious to that target property, making it hard to linearly separate the data according to it. While applicable for multiple uses, we evaluate our method on bias and fairness use-cas…

  3. Close Used in depth by this paper A method it uses
    Censoring Representations with an Adversary
    Harrison Edwards, A. Storkey · 2015 · International Conference on Learning Representations · cited 570 times · Not summarized yet
    Abstract

    In practice, there are often explicit constraints on what representations or decisions are acceptable in an application of machine learning. For example it may be a legal requirement that a decision must not favour a particular group. Alternatively it can be that that representation of data must not have identifying information. We address these two related issues by learning flexible representations that minimize the capability of an adversarial critic. This adversary is trying to predict the relevant sensitive variable from the representation, and so minimizing the performance of the adversary ensures there is little or no information in the representation about the sensitive variable. We …

  4. Close A method it uses
    Mitigating Unwanted Biases with Adversarial Learning
    B. Zhang, Blake Lemoine, Margaret Mitchell · 2018 · AAAI/ACM Conference on AI, Ethics, and Society · cited 1,782 times · Not summarized yet
    Abstract

    Machine learning is a tool for building models that accurately represent input training data. When undesired biases concerning demographic groups are in the training data, well-trained models will reflect those biases. We present a framework for mitigating such biases by including a variable for the group of interest and simultaneously learning a predictor and an adversary. The input to the network X, here text or census data, produces a prediction Y, such as an analogy completion or income bracket, while the adversary tries to model a protected variable Z, here gender or zip code. The objective is to maximize the predictor's ability to predict Y while minimizing the adversary's ability to p…

  5. Close A method it uses
    Controllable Invariance through Adversarial Feature Learning
    Qizhe Xie, Zi-Hang Dai, Yulun Du et al. · 2017 · Neural Information Processing Systems · cited 325 times · Not summarized yet
    Abstract

    Learning meaningful representations that maintain the content necessary for a particular task while filtering away detrimental variations is a problem of great interest in machine learning. In this paper, we tackle the problem of learning representations invariant to a specific factor or trait of data. The representation learning process is formulated as an adversarial minimax game. We analyze the optimal equilibrium of such a game and find that it amounts to maximizing the uncertainty of inferring the detrimental factor given the representation while maximizing the certainty of making task-specific predictions. On three benchmark tasks, namely fair and bias-free classification, language-ind…

Papers that cite it

  1. Close Uses this paper in depth
    Shielded Representations: Protecting Sensitive Attributes Through Iterative Gradient-Based Projection
    Shadi Iskander, K. Radinsky, Yonatan Belinkov · 2023 · Annual Meeting of the Association for Computational Linguistics · cited 32 times · Not summarized yet
    Abstract

    Natural language processing models tend to learn and encode social biases present in the data. One popular approach for addressing such biases is to eliminate encoded information from the model's representations. However, current methods are restricted to removing only linearly encoded information. In this work, we propose Iterative Gradient-Based Projection (IGBP), a novel method for removing non-linear encoded concepts from neural representations. Our method consists of iteratively training neural classifiers to predict a particular attribute we seek to eliminate, followed by a projection of the representation on a hypersurface, such that the classifiers become oblivious to the target attr…

  2. Close Uses this paper in depth
    Robust Concept Erasure via Kernelized Rate-Distortion Maximization
    Somnath Basu Roy Chowdhury, Nicholas Monath, Kumar Avinava Dubey et al. · 2023 · Neural Information Processing Systems · cited 13 times · Not summarized yet
    Abstract

    Distributed representations provide a vector space that captures meaningful relationships between data instances. The distributed nature of these representations, however, entangles together multiple attributes or concepts of data instances (e.g., the topic or sentiment of a text, characteristics of the author (age, gender, etc), etc). Recent work has proposed the task of concept erasure, in which rather than making a concept predictable, the goal is to remove an attribute from distributed representations while retaining other information from the original representation space as much as possible. In this paper, we propose a new distance metric learning-based objective, the Kernelized Rate-D…

  3. Close Uses this paper in depth
    Debiasing Algorithm through Model Adaptation
    Tomasz Limisiewicz, David Marecek, Tomáš Musil · 2023 · International Conference on Learning Representations · cited 29 times · Not summarized yet
    Abstract

    Large language models are becoming the go-to solution for the ever-growing number of tasks. However, with growing capacity, models are prone to rely on spurious correlations stemming from biases and stereotypes present in the training data. This work proposes a novel method for detecting and mitigating gender bias in language models. We perform causal analysis to identify problematic model components and discover that mid-upper feed-forward layers are most prone to convey bias. Based on the analysis results, we intervene in the model by applying a linear projection to the weight matrices of these layers. Our titular method, DAMA, significantly decreases bias as measured by diverse metrics wh…

  4. Close Uses this paper in depth
    MABEL: Attenuating Gender Bias using Textual Entailment Data
    Jacqueline He, Mengzhou Xia, C. Fellbaum et al. · 2022 · Conference on Empirical Methods in Natural Language Processing · cited 47 times · Not summarized yet
    Abstract

    Pre-trained language models encode undesirable social biases, which are further exacerbated in downstream use. To this end, we propose MABEL (a Method for Attenuating Gender Bias using Entailment Labels), an intermediate pre-training approach for mitigating gender bias in contextualized representations. Key to our approach is the use of a contrastive learning objective on counterfactually augmented, gender-balanced entailment pairs from natural language inference (NLI) datasets. We also introduce an alignment regularizer that pulls identical entailment pairs along opposite gender directions closer. We extensively evaluate our approach on intrinsic and extrinsic metrics, and show that MABEL o…

  5. Close
    Removing Spurious Concepts from Neural Network Representations via Joint Subspace Estimation
    Floris Holstege, Bram Wouters, N. V. van Giersbergen et al. · 2023 · International Conference on Machine Learning · cited 5 times · Not summarized yet
    Abstract

    Out-of-distribution generalization in neural networks is often hampered by spurious correlations. A common strategy is to mitigate this by removing spurious concepts from the neural network representation of the data. Existing concept-removal methods tend to be overzealous by inadvertently eliminating features associated with the main task of the model, thereby harming model performance. We propose an iterative algorithm that separates spurious from main-task concepts by jointly identifying two low-dimensional orthogonal subspaces in the neural network representation. We evaluate the algorithm on benchmark datasets for computer vision (Waterbirds, CelebA) and natural language processing (Mul…

How are these papers found?

We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.

Updated on 2 November 2026.

The illustrated guide to the papers around a paper