arXiv:2610.32516cs.LGOct 2026

Manuscript Offprint

arXiv:2610.32516

Principled Nonlinear Concept Erasure and Steering

Idan Simai, Shauli Ravfogel, Uri Shaham

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 reconstruction together with population-level independence is sufficient for perfect nonlinear guardedness, with preservation guarantees in the imperfect-reconstruction regime. Empirically, we attain a superior utility-erasure trade-off across multiple datasets, sensitive attributes, and language models, surpassing even the supervised variants of competing methods despite using no target-task labels, while being simpler to optimize and converging substantially faster. Beyond erasure, our framework yields concept conversion (representation steering) as a by-product: by changing only the target concept at inference time, it produces representations corresponding to different concept values—at no additional training cost—a capability no prior erasure method provides, and on which we likewise demonstrate strong empirical performance.

1 Introduction

Pretrained Language Models (PLMs) have become the backbone of modern Natural Language Processing (NLP), achieving strong performance across a wide range of tasks. However, their representations often encode sensitive attributes—such as gender, race, or other demographic factors—which can lead to biased and potentially unfair predictions Bolukbasi et al. [2016], De-Arteaga et al. [2019], Ravfogel et al. [2020]. Concept erasure addresses this issue by modifying the learned representations to remove such undesirable concepts, while retaining as much task-relevant information as possible Basu Roy Chowdhury et al. [2021], Ravfogel et al. [2022a], Belrose et al. [2023]. The task may be performed either in a supervised manner, leveraging task labels to guide utility preservation, or in an unsupervised manner, where no task labels are assumed.

Existing concept erasure methods can be broadly divided into two families. Linear methods are well-studied Bolukbasi et al. [2016], Ravfogel et al. [2020, 2022a], with some coming with formal theoretical guarantees of removing linearly-accessible information Belrose et al. [2023]. However, by construction, all such methods protect only against linear adversaries. A nonlinear probe can readily recover the sensitive attribute from the erased representation, preventing exhaustive removal Ravfogel et al. [2022b]. Nonlinear methods attempt to close this gap Elazar and Goldberg [2018], Ravfogel et al. [2022b], Chowdhury and Chaturvedi [2022], Basu Roy Chowdhury et al. [2023], Shao et al. [2023], Saillenfest and Lemberger [2025], Jourdan et al. [2023], Akbari et al. [2026], and while they achieve stronger empirical erasure, existing approaches offer limited guarantees of complete nonlinear concept removal, leaving uncertainty as to whether the attribute is removed or merely harder to recover. This leaves practitioners with an uncomfortable choice—provable but incomplete linear erasure, or empirically stronger but theoretically ungrounded nonlinear erasure.

In this work, we propose an autoencoder model for nonlinear concept erasure that comes equipped with theoretical guarantees under stated population-level conditions. Our approach is motivated by a simple principle: the goal of

A PREPRINT

Figure

Figure 1: Strong concept erasure result on BERT representations for profession prediction with gender as the sensitive concept. The plot trades off gender leakage (x-axis; lower is better) against profession utility (y-axis; higher is better). Red points correspond to different independence strengths in our objective. Our method achieves a substantially better utility–erasure trade-off than competing baselines, including both supervised and unsupervised Obliviator, while being unsupervised.

concept erasure is to remove only the sensitive attribute—and nothing else. This is naturally enforced by maximizing the mutual information between the erased representation Z and the original input X, subject to Z being statistically independent of the sensitive attribute C. Under perfect reconstruction and independence, we prove that the learned representation is an entropy-preserving function of the complement of the sensitive attribute, and further establish guarantees for the near-perfect regime.

Figure 1 presents a representative headline result on BIAS IN BIOS De-Arteaga et al. [2019]: our fully unsupervised method achieves a strictly better utility–erasure trade-off than all competing approaches, even outperforming supervised Obliviator Akbari et al. [2026], the current state-of-the-art. Beyond these significant empirical improvements, we show that these two properties are sufficient conditions for perfect nonlinear guardedness in autoencoder-based models. Furthermore, our framework is significantly easier to train and converges faster than prior nonlinear methods.

In addition to erasure, our framework yields a bonus capability: concept conversion (representation steering). Since the decoder takes both the erased representation Z and the sensitive attribute C as input, substituting a different value C′C' at inference time generates a representation corresponding to a different concept value—with no additional training required.

Our contributions are fourfold: (i) Theoretical guarantees. We prove that the two properties targeted by our objective, are sufficient conditions for perfect nonlinear guardedness in autoencoder-based models. We further establish preservation guarantees in the imperfect-reconstruction regime, quantifying how much complementary (non-sensitive) information is retained as a function of the reconstruction error. (ii) Concept conversion. Our trained decoder enables conversion (steering) across concept values at no additional training cost: by simply substituting a different sensitive attribute value at inference time, we can generate a representation as if the input had a different concept value. (iii) New state-of-the-art. Without target-task labels in our objective, our model achieves superior utility-erasure trade-offs compared to existing methods, across multiple datasets, sensitive attributes, and language models, outperforming even the supervised variants of competing methods. (iv) Simpler and faster optimization. Our two-term objective is straightforward to optimize, significantly simpler than prior nonlinear methods, and converges faster.

References (76)