Linear Adversarial Concept Erasure

Shauli Ravfogel, Michael Twiton, Yoav Goldberg, Ryan Cotterell

Abstract

Modern vector embeddings often capture unwanted sensitive concepts, such as gender or racial bias. This paper presents Relaxed Linear Adversarial Concept Erasure (RLACE), a surgical approach to removing such information post-hoc. By framing erasure as a constrained maximin game and utilizing a convex relaxation via the Fantope, the authors demonstrate that removing a single, optimally chosen dimension is frequently sufficient to blind linear classifiers while maintaining the representation's overall utility.

Introduction: The Embedding Bias Problem

Embeddings are the backbone of modern AI, representing complex data like text and images as dense vectors. However, these vectors often encode "concepts" that are undesirable for downstream applications, such as gender bias in hiring tools or demographic identifiers in facial recognition. To ensure fairness and privacy, researchers seek methods to "erase" these concepts without degrading the model's primary performance. Previous methods were often iterative and "greedy," removing more dimensions than necessary and lacking a solid theoretical foundation.

Methodology: A Game-Theoretic Approach

The authors formalize concept erasure as a linear maximin game. In this setup, a "Predictor" attempts to identify a target concept from a vector, while an "Adversary" seeks a linear projection that minimizes the Predictor's success.

For complex scenarios like logistic regression, finding the optimal projection is NP-hard. RLACE addresses this by relaxing the set of projection matrices to their convex hull, known as the Fantope. This relaxation allows for efficient gradient-based optimization to find a near-optimal subspace for erasure. Crucially, the use of orthogonal projections ensures that the modified vectors remain as close as possible to the originals in Euclidean space, preserving maximum information.

Key Insights: The Power of One Dimension

A primary finding of this work is the extreme efficiency of linear erasure. While previous iterative methods like Iterative Null-space Projection (INLP) might remove dozens of dimensions to neutralize a concept, RLACE often achieves the same result by removing only a single dimension.

Original vs. RLACE (Rank 1) embeddings showing the neutralization of gender-biased clusters.

As shown in the visualization above, a rank-1 projection is sufficient to merge previously distinct clusters (e.g., male-biased vs. female-biased word vectors), effectively rendering the concept unidentifiable to linear probes.

Efficiency and Performance

The researchers evaluated RLACE across GloVe word embeddings, BERT contextualized representations, and CelebA image data.

Post-projection accuracy vs. number of dimensions removed (K).

In experiments on GloVe vectors, RLACE (rank-1) reduced gender prediction accuracy to near-chance (~52%) immediately. In contrast, the state-of-the-art INLP required significantly more dimensions to reach comparable levels of erasure. In the BERT-based BIOS dataset, RLACE successfully mitigated gender bias in profession classification with negligible impact on overall accuracy (dropping from 80% to 79%).

Interpretability and the "Deep" Loophole

Because RLACE is a linear method, it offers high interpretability. In image tasks using the CelebA dataset, the projection can be visualized to see exactly which pixels (e.g., those associated with glasses or hats) are being neutralized, rendering those features invisible to linear probes.

However, the authors note a critical limitation: linear vs. non-linear erasure. While RLACE successfully blinds linear adversaries, non-linear models (like deep neural networks) can often still recover the "erased" information. This suggests that the information is not physically removed but rather moved into a non-linear "shadow" subspace.

Conclusion

RLACE provides a theoretically grounded and highly efficient tool for post-hoc concept erasure. By identifying the most critical dimensions for linear predictability, it offers a surgical way to improve fairness and privacy in existing AI systems. While protecting against non-linear adversaries remains an open challenge, RLACE sets a new standard for minimal-intervention bias mitigation.

Summary updated

BibTeX
@inproceedings{ravfogel2022linear,
  author = {Shauli Ravfogel and Michael Twiton and Yoav Goldberg and Ryan Cotterell},
  title = {{Linear Adversarial Concept Erasure}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=T1lx952f0X},
}
Figure