Abstract
The representation space of neural models for textual data emerges in an unsupervised manner during training. Understanding how those representations encode human-interpretable concepts is a fundamental problem. One prominent approach for the identification of concepts in neural representations is searching for a linear subspace whose erasure prevents the prediction of the concept from the representations. However, while many linear erasure algorithms are tractable and interpretable, neural networks do not necessarily represent concepts in a linear manner. To identify non-linearly encoded concepts, we propose a kernelization of a linear minimax game for concept erasure. We demonstrate that it is possible to prevent specific non-linear adversaries from predicting the concept. However, the protection does not transfer to different nonlinear adversaries. Therefore, exhaustively erasing a non-linearly encoded concept remains an open problem.
Introduction
Neural networks learn to represent data in high-dimensional vector spaces. These spaces often implicitly encode "concepts"—some useful, such as sentiment, and others problematic, such as social biases. Previous research has largely focused on linear concept erasure, which involves identifying and "flattening" a linear direction corresponding to a concept. However, neural networks are inherently non-linear. If a concept like gender is encoded within a complex, non-linear manifold, linear erasure fails. In such cases, a non-linear adversary can still easily recover the concept. This paper introduces a method for non-linear concept erasure to investigate whether concepts can be made truly unrecoverable.
Methods
The proposed approach builds upon a maximin game framework where an "eraser" attempts to find a projection that hides a concept, while an "adversary" tries to recover it.
- Kernelization: To address non-linearity, the game is moved into a Reproducing Kernel Hilbert Space (RKHS). Using the "kernel trick," the authors perform linear-like operations in a high-dimensional space that corresponds to non-linear transformations in the original space.
- Nyström Approximation: To manage the computational complexity of kernel calculations, the Nyström method is employed to create a low-rank approximation, ensuring the algorithm is computationally feasible.
- Pre-image Mapping: Since erasure occurs in kernel space, the data must be mapped back to the original vector space. A Multilayer Perceptron (MLP) is trained as a "pre-image map" to translate neutralized high-dimensional features back into the original format.
The method was evaluated using GloVe word embeddings, the Bias-in-Bios dataset (with BERT representations), and SimLex-999 for semantic preservation checks.
Key Results and Insights
The experiments yielded several critical insights into the nature of non-linear concept encoding.
Successful Targeted Erasure vs. Failure to Transfer
When the eraser and the adversary utilize the same kernel, the adversary's accuracy drops significantly, often to near-random levels (~50%). However, this protection is not robust. If the adversary uses a different non-linear model, such as a standard MLP, it can still recover the "erased" concept with high accuracy (up to 97%). This suggests that information removed for one specific non-linear adversary remains accessible to others.
Bias Reduction and Utility Preservation
Despite the transferability issues, the method successfully reduces biased associations. WEAT scores, which measure bias, dropped from 1.56 to approximately 0.74 across various kernels. Importantly, this erasure is "surgical"; general semantic meaning (measured by SimLex scores) and downstream task performance (e.g., profession prediction in Bias-in-Bios) remained largely intact.
The Exhaustive RKHS Hypothesis
The authors initially hypothesized that a "perfect" kernel space might exist where a concept could be removed definitively. However, the results suggest this is likely false. The "cat-and-mouse" nature of concept erasure means that protecting against one type of non-linearity does not provide a general shield. Linear debiasing often merely hides bias from simple tools while leaving it intact for complex ones.
Conclusion
The primary limitation of current non-linear concept erasure is its lack of robustness. The ability of an MLP to recover information supposedly erased by a kernel method indicates that exhaustive erasure—making a concept invisible to all possible non-linear adversaries—remains an open and challenging problem. Future research must address more complex social constructs beyond binary gender and seek theoretical breakthroughs to achieve truly exhaustive concept removal.
Summary updated