Manuscript Offprint
arXiv:2610.32516Principled Nonlinear Concept Erasure and Steering
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 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 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.
A PREPRINT
Nonlinearly Guarded Erasure. Several works propose nonlinear erasure methods to overcome the limits of linear approaches. Adversarial methods Elazar and Goldberg [2018], Ravfogel et al. [2022b] train nonlinear adversaries to suppress the sensitive attribute, but erasure is often incomplete and optimization can be unstable. Rate-distortion based methods such as FaRM Chowdhury and Chaturvedi [2022] and its kernelized variant KRaM Basu Roy Chowdhury et al. [2023] offer stronger empirical erasure, but rely on specialized rate-distortion objectives. Other approaches include density matching Saillenfest and Lemberger [2025], which aligns distributions across sensitive groups, and TaCo Jourdan et al. [2023], which removes concept-specific latent directions. Obliviator Akbari et al. [2026], the current state-of-the-art, directly targets nonlinear statistical dependencies via RKHS and achieves strong empirical performance. While these nonlinear methods advance the empirical state of the art, they provide limited guarantees of complete nonlinear erasure, and none supports concept steering. Our method addresses both gaps simultaneously.
Independence-Constrained Representation Learning. Our method builds on prior work that learns representations which preserve useful information while suppressing dependence on a specified variable. Theoretically, Shaham et al. [2022] show that an autoencoder with an independence-promoting discriminator can recover a hidden independent component up to an entropy-preserving transformation. A related latent-independence perspective appears in speech attribute conversion Svirsky et al. [2025]; here we study its implications for concept erasure and guarded representations. In practice, attribute-invariant encoder-decoders have been used for controllable generation and style transfer in images Lample et al. [2017], voice and music Qian et al. [2019], Nachmani and Wolf [2019], Mor et al. [2018], and text John et al. [2019]. Similar ideas appear in fairness-oriented representation learning Louizos et al. [2015], Edwards and Storkey [2015], Ganin et al. [2016], often adversarially; however, adversarial invariance alone does not guarantee concept removal, as post-hoc classifiers may still recover the attribute Elazar and Goldberg [2018]. Thus, our contribution is not a new independence mechanism, but a concept-erasure analysis showing that reconstruction plus independence yields nonlinear guardedness guarantees and, as a by-product, steering.
Representation-Level Steering. Representation-level steering modifies frozen representations to change a concept while preserving other content. Earlier work studied feature or data repair for fairness, reducing protected-attribute information or aligning group-conditional distributions Feldman et al. [2015], Johndrow and Lum [2019], Gordaliza et al. [2019]. More recently, Representation Surgery Singh et al. [2024] formalized affine maps such as mean matching and mean-covariance matching, while related counterfactual methods use similar moment-matching interventions for explanation and bias mitigation Lemberger and Saillenfest [2024]. These approaches provide affine or distributional transformations, but remain limited to population-statistic-based interventions and do not guarantee exact counterfactual recovery or nonlinear guardedness. In contrast, our conditional encoder-decoder yields nonlinear steering by decoding the concept-independent representation with a target concept value, requiring no additional objective and remaining tied to our erasure guarantees.
3 Problem Formulation
Let be an observed random variable representing the sensitive concept that we wish to erase, where is a discrete set, and let denote an unobserved complementary random variable containing all non-sensitive information that should be preserved. Let be the observed representation. We assume that is generated by an unknown deterministic map , where is injective. We further assume that and are independent.
Remark 1. The assumption is required for our theoretical guarantees and is standard in ICA-style latent-variable models, but it is nevertheless idealized. If U is statistically entangled with C, then part of the information in U may itself reveal C, making perfect preservation of U and erasure of C no longer simultaneously possible. To understand what happens when independence holds only approximately, Appendix B presents a controlled simulation in which the dependence between U and C is varied continuously. We find that small deviations from independence lead to correspondingly small degradation in both erasure and steering, and the framework continues to deliver strong empirical performance well outside the perfect regime.
Our setting can thus be viewed as a special case of nonlinear ICA in which one factor, , is observed, while the other factor, , is latent and must be preserved. In the context of concept erasure, is the information that should be removed from the learned representation, whereas is exactly the complementary content that should remain. Let be a distribution on and let be samples from it, and for all , let . Given only input-concept pairs, i.e., , the corresponding complementary factors are never observed. No task labels are assumed.
Concept erasure. Our goal is to learn an erased representation that removes information about the sensitive concept C while preserving the complementary information carried by U. To this end, we learn a conditional encoder–decoder
A PREPRINT
map , where , are an encoder and decoder, respectively, and is the erased representation.
Concept conversion. We are also interested in the induced concept conversion (representation steering) task. Given an input and a target concept value , the goal is to generate a converted sample corresponding to the same complementary factor under the new concept value , namely . In our framework, this is realized by . Thus, erasure and steering are studied here within the same conditional encoder–decoder framework.
4 Proposed Method
4.1 Motivation
The guiding principle of unsupervised concept erasure is to remove only the sensitive concept and preserve everything else. In the notation of Section 3, this suggests the ideal population-level objective
That is, among all representations that are statistically independent of the sensitive concept C, we seek the one that retains as much information as possible about the original input X.
A key observation is that, under the independence constraint , maximizing is equivalent to minimizing the conditional uncertainty ; the formal derivation is given in Appendix A.1. Therefore, reconstruction from is not merely a heuristic surrogate for information preservation, but the correct operational objective. In particular, given a decoder with reconstruction , driving the reconstruction error to zero forces to vanish, and thus maximizes the amount of information about retained in the erased representation among all -independent representations.
This is the main reason we adopt an autoencoder formulation. The decoder plays a principled role: it certifies that the erased representation still contains all non-sensitive information needed to recover the original input once the concept value C is supplied. This same structure also naturally enables steering, since the decoder can be queried with a new concept value .
This perspective also clarifies a limitation of HSIC-based preservation objectives such as the one used in Obliviator. While HSIC is a useful dependence measure, maximizing HSIC(X, Z) is not generally equivalent to maximizing . Suitably normalized or spectrally regularized formulations can mitigate this issue and, under additional structure, recover the same ideal information-preserving optimum. Obliviator employs normalization, but this does not in general enforce the covariance whitening or spectral isotropy required for that equivalence. Thus, its preservation objective remains distinct from mutual-information maximization. The two measures agree at the minimum—for characteristic kernels, both vanish iff —but not in general at the maximum: mutual information is invariant under invertible reparameterizations of Z, whereas HSIC depends on the chosen kernel geometry and bandwidth. As a result, HSIC maximization may favor representations aligned with the chosen kernel rather than those preserving the largest amount of information. Appendix A.1 formalizes this distinction and gives a simple counterexample.
For this reason, our model is built around two ingredients: reconstruction, which targets information preservation, and statistical independence from the sensitive concept, which targets erasure.
4.2 Method
In our setting, is a representation produced by a pretrained language model, is the concept label to be erased (e.g., gender, race), and is the resulting erased representation. We train an autoencoder, consisting of an encoder and a decoder . Given an input and its concept value , the encoder produces an erased representation , and the decoder reconstructs the input as .
Our training objective combines two terms:
where controls the trade-off between reconstruction quality and concept removal.
Reconstruction. To preserve the complementary information in the input, we reconstruct from the erased representation together with the concept . We implement the reconstruction term using mean squared error: .
A PREPRINT
Independence. To remove sensitive-concept information, we encourage statistical independence between and . In practice, we implement this term using an HSIC-based dependence penalty: . Minimizing HSIC is appropriate here because, with characteristic kernels, its population value is zero if and only if and are independent, which also implies . Unlike in the preservation objective, we do not rely on HSIC as a surrogate for mutual information.
Thus, the overall objective is simply built around the two ingredients required for unsupervised concept erasure: reconstruction, which preserves the non-sensitive information needed to recover the input once is given, and independence, which removes information about the sensitive concept from the latent representation. At inference time, the erased representation is , and steering is obtained by decoding the same representation with a target concept value .
5 Theoretical Analysis
We now present the theoretical guarantees underlying our framework.
Scope of the guarantees. Our guarantees characterize the properties of representations that attain the conditions targeted by our objective, rather than convergence of the finite, non-convex training procedure itself. In the ideal regime, perfect reconstruction together with population-level independence, , is sufficient for perfect nonlinear guardedness and, as a by-product, yields exact steering through the same decoder at no additional training cost. Beyond this idealization, we quantify complementary-information preservation directly as a function of the reconstruction error actually attained. In practice, Eq. (2) optimizes finite-sample estimates and is not guaranteed to reach the ideal population conditions. Nevertheless, across datasets and language models, the learned representations achieve state-of-the-art empirical erasure and steering performance, supported by held-out dependence tests and nonlinear probes.
Discrete setting. We state the entropy-based results formally in the discrete setting, where the central argument can be expressed cleanly using Shannon entropy. A fully general continuous treatment would require additional measure-theoretic machinery that would obscure the simple mechanism we aim to expose without changing its core intuition. This theoretical restriction does not apply in practice: our experiments operate on continuous neural representations, and the reconstruction-error guarantee in Section 5.2 is stated directly in Euclidean error and does not rely on discreteness.
5.1 The Perfect Regime
We begin by isolating the two structural properties that underlie our ideal-case analysis and formalizing the target guarantee.
Perfect reconstruction: the decoder recovers the original input when conditioned on the true concept value, i.e. a.s., where is the concept variable that generated .
Perfect independence: the learned representation is statistically independent of the sensitive concept, .
Definition 1 (Perfect nonlinear guardedness). An autoencoder is perfectly nonlinearly guarded with respect to C if, letting , , and there does not exist a deterministic representation such that , . Equivalently, Z is statistically independent of the sensitive concept C, and is maximally informative about X among all C-independent deterministic representations of X.
Our first result shows that if the decoder reconstructs the input exactly and the erased representation is independent of the sensitive concept, then the representation preserves all the non-sensitive information in the input.
Theorem 1 (Maximal information retention). Assume that a.s, . Then:
Corollary 1 (Optimality among C-independent deterministic representations). Under the assumptions of Theorem 1, for every deterministic representation such that , we have .
Corollary 2 (Sufficient conditions for perfect nonlinear guardedness). Under the assumptions of Theorem 1, the autoencoder g is perfectly nonlinearly guarded in the sense of Definition 1.
Three further consequences of Theorem 1, namely deterministic recovery of the complementary factor , exact preservation of the complementary information , and the entropy-preserving relation , together with the proofs of Theorem 1 and all corollaries above, are deferred to Appendix A.2.
A PREPRINT
5.2 The Imperfect Regime
We now turn to the non-ideal regime. Since autoencoders are typically trained with mean-squared reconstruction error, we seek guarantees stated directly in terms of MSE. The exact statement above suggests a natural relaxation: if the reconstruction from is nearly perfect, then Z should preserve nearly all information about U.
Why an additional assumption is needed. A small MSE in the observation space does not necessarily imply small error in the recovered complementary factor U. MSE controls distances in X-space, whereas preservation of U depends on the stability of the inverse map from back to U. To translate reconstruction error in X-space into recovery error for U, we impose the following regularity assumption on this inverse map.
Assumption 1 (Lipschitz left-inverse). There exists a measurable map such that , and for some constant , .
Assumption 1 states that, once is fixed, the complementary factor can be recovered from in a stable way. This is natural for a conditional autoencoder: reconstruction from is useful only if small errors in -space do not correspond to large errors in the latent factor . The Lipschitz condition rules out such ill-conditioned inverse mappings from to .
All expectations in this subsection are taken with respect to the joint distribution induced by . Proposition 1 shows that small reconstruction error in -space implies a small recovery error for the complementary factor . In this sense, the encoding preserves the non-sensitive information up to a controlled distortion.
Proposition 1 (Small reconstruction error implies approximate preservation). Assume that , and that Assumption 1 holds. Define . Then .
From MSE to information preservation. Proposition 1 translates into an information-theoretic guarantee whenever the alphabet U of the complementary factor U is finite with separated support. Informally, under these mild conditions, a small reconstruction error implies that the encoder loses almost no information about the complementary factor. The full statement and proof are deferred to Appendix A.3 (Corollary 8), as well as the proof of Proposition 1.
Remark 2. Corollary 8 does not require any independence condition on Z and C. Its conclusion is purely a preservation statement: reconstruction accuracy controls how well the complementary factor U is retained.
5.3 Steering as a By-product of Erasure
Because the decoder is conditioned on the concept value, the same model that achieves concept erasure can also be used for steering by decoding the erased representation with a different concept input. The next result shows that this holds exactly under the same ideal conditions as perfect guardedness, up to the following mild symmetry-breaking assumption on U.
Assumption 2 (Asymmetric law of U). The only measure-preserving automorphism such that is the identity.
This is a mild symmetry-breaking assumption, needed only to rule out nontrivial measure-preserving relabelings of U. For a discrete U, it holds whenever distinct support points have distinct probabilities.
The following corollary shows that, for any and , decoding with yields exactly , preserving u and changing only the concept. Thus, the same conditions that yield perfect nonlinear guardedness (Corollary 2) also yield exact steering at no additional training cost.
Corollary 3 (Exact steering under perfect reconstruction and independence). Suppose Assumption 2 holds, and let satisfy perfect reconstruction, a.s., and perfect independence, . Then there exists a bijection such that . Consequently, for every target concept value , , a.s.
The proof is given in Appendix A.4.
A PREPRINT
6 Experiments
6.1 Experimental Setup
We evaluate erasure and steering across multiple datasets and pretrained language models, using the same representations for both tasks.
Benchmarks and PLM embeddings. We evaluate on three standard concept-erasure benchmarks: BIAS IN BIOS De-Arteaga et al. [2019] (target: profession, 28 classes; sensitive: gender), DIAL-SENTIMENT Blodgett et al. [2016] (target: sentiment; sensitive: race), and DIAL-MENTION Blodgett et al. [2016] (target: mention; sensitive: race). We extract frozen representations from BERT-base [Devlin et al., 2019], GPT-2 Radford et al. [2019], DeepSeek-LLM-7B Bi et al. [2024], and LLaMA-3.2-1B Grattafiori et al. [2024], using the [CLS] embedding for BERT and mean-pooled token embeddings for the remaining models, following Akbari et al. [2026].
Baselines. For erasure, we compare against Obliviator Akbari et al. [2026] in both its supervised and unsupervised variants, as well as FaRM Chowdhury and Chaturvedi [2022], KRaM Basu Roy Chowdhury et al. [2023], LEOPARD Saillenfest and Lemberger [2025], INLP Ravfogel et al. [2020], and kSAL Shao et al. [2023]. For steering, we compare against Representation Surgery Singh et al. [2024], the most directly related affine-steering framework, including its Mean Matching and Mean+Covariance Matching (MiMiC) interventions, and ActAdd [Turner et al., 2024].
Implementation details. We keep the main text focused on the empirical findings and defer all low-level implementation details, hyperparameters, and complexity analysis to Appendix C.
Evaluation protocol. We organize the empirical evaluation around two tasks: concept erasure and steering. For erasure, we train post-hoc classifiers on the erased representations: a sensitive-attribute classifier to measure leakage and a downstream-task classifier to measure utility. We study the resulting utility–erasure trade-off by training separate models with different values of the independence weight in Eq. 2, yielding one point per value. For steering, given an input representation x with concept value c and a target concept value , we compute and evaluate whether the converted representation preserves downstream target information while shifting toward the target concept. We assess these properties using downstream-task classifiers, fairness metrics, and post-hoc sensitive-concept classifiers.
6.2 Concept Erasure Results
We evaluate concept erasure with post-hoc classifiers. The x-axis reports sensitive-attribute accuracy, where lower is better and random chance is ideal; the y-axis reports downstream-task accuracy, where higher is better. Thus, better methods lie closer to the upper-left. Baselines are plotted in their standard form: iterative methods as trade-off curves and one-shot methods as single operating points. For Obliviator, the curve-selection protocol is described in Appendix C.2.

(a) GPT-2 Representations
(b) DeepSeek Representations
(c) LLaMA Representations
Figure 2: Concept erasure on BIAS IN BIOS across frozen PLM representations. Repeating Figure 1 on GPT-2, DeepSeek, and LLaMA, our method achieves a stronger trade-off than competing baselines, including supervised Obliviator. This shows that the advantage of reconstruction plus independence is not tied to one representation space, but generalizes across PLMs and embedding dimensions.
A PREPRINT
Bias in Bios. Figures 1 and 2 evaluate concept erasure on BIAS IN BIOS, where the sensitive attribute is gender and the downstream target is profession. On BERT representations, Figure 1 shows that our method achieves a substantially stronger utility–erasure trade-off. At approximately random-chance gender accuracy, around 56%, our method preserves about 74% profession accuracy, compared with only about 56% and 61% for unsupervised and supervised Obliviator, respectively. Thus, at essentially the same erasure level, our method improves utility by roughly 18 and 13 percentage points, despite using no profession labels during erasure. The remaining baselines either sacrifice substantially more profession accuracy or retain considerably higher gender leakage, placing them below our trade-off.
Figure 2 shows that this advantage persists across other PLM representations. On GPT-2, at around 58% gender accuracy, our method retains about 70% profession accuracy, compared with roughly 56%–65% for Obliviator. On DeepSeek, at around 57% gender accuracy, we retain 76.27% profession accuracy, compared with roughly 50%–70% for Obliviator. On LLaMA, at around 63% gender accuracy, the corresponding profession accuracies are about 81% for our method versus 66%–74% for Obliviator. These gaps support our central design choice: using reconstruction as the preservation objective yields stronger utility retention than HSIC-based preservation, and this advantage is not tied to a particular PLM representation space.

(a) Dial-Mention
(b) Dial-Sentiment
Figure 3: Concept erasure on DIAL-MENTION and DIAL-SENTIMENT using BERT representations.
Dial datasets. Figure 3 evaluates erasure on Dial. Across both tasks, our method substantially outperforms unsupervised Obliviator at comparable race leakage. On DIAL-MENTION, our unsupervised method matches supervised Obliviator's utility–erasure trade-off, while on DIAL-SENTIMENT it achieves higher downstream utility in the low-leakage regime, despite using no downstream labels. Appendix D.7 further shows that our method's advantage extends beyond erasure, achieving a consistently stronger fairness–utility trade-off on DIAL-SENTIMENT under both DP and GAP . Additional probes and an exact-HSIC permutation test are reported in Appendices D.5 and D.6.
6.3 Generative Steering
We evaluate whether the steering capability induced by our erasure model transfers to generation, using toxicity steering on Qwen2.5-7B [Qwen et al., 2025] with REALTOXICITYPROMPTS [Gehman et al., 2020]. The autoencoder is trained on final-layer states supplied to the frozen LM head, using toxicity labels but no generation-specific objective. Our framework naturally converts a representation through . During autoregressive generation, however, repeatedly replacing the complete hidden state can accumulate decoder reconstruction error. We therefore use . This retains the model's original hidden state while applying the nonlinear concept transformation learned by the decoder. Under perfect reconstruction and , this reduces to the original conversion. For detoxification, every state is steered from toxic to non-toxic, requiring no state-level toxicity prediction at inference time.
Since stronger steering trades detoxification for generation quality, we sweep the strength of every method and compare operating points at matched topicality. We evaluate continuation toxicity together with perplexity under the untouched model and prompt–continuation similarity.
Table 1: Methods are compared at matched topicality; lower toxicity and PPL are better.
| Intervention | Tox. ↓ | PPL ↓ | Topic. |
|---|---|---|---|
| Untouched | 0.163 | 3.44 | 0.387 |
| Topicality ≈ 0.35 | |||
| Mean matching, α = 1.5 | 0.095 | 3.74 | 0.358 |
| ActAdd, α = 1 | 0.076 | 4.03 | 0.335 |
| MiMiC, α = 0.5 | 0.078 | 3.94 | 0.351 |
| Ours, β = 1 | 0.074 | 3.81 | 0.352 |
| Topicality ≈ 0.30 | |||
| ActAdd, α = 1.5 | 0.047 | 4.98 | 0.301 |
| MiMiC, α = 0.9 | 0.034 | 5.28 | 0.302 |
| Ours, β = 2 | 0.037 | 4.77 | 0.303 |
| Topicality ≈ 0.26 | |||
| ActAdd, α = 2 | 0.029 | 6.60 | 0.264 |
| MiMiC, α = 1.25 | 0.018 | 7.66 | 0.266 |
| Ours, β = 3 | 0.018 | 6.86 | 0.263 |
A PREPRINT
Table 1 shows a strong detoxification–quality trade-off. Around topicality 0.35, ours achieves the lowest toxicity while also improving fluency over activation addition and MiMiC. Around topicality 0.30, it remains close to MiMiC in toxicity (0.037 vs. 0.034) while substantially improving PPL (4.77 vs. 5.28). At the strongest operating point, ours matches MiMiC's toxicity (0.018) with markedly lower PPL (6.86 vs. 7.66). Thus, the nonlinear steering mechanism learned by our erasure model transfers effectively to autoregressive generation, without retraining the LM or learning a separate steering model. Appendix C.3 gives the full setup and Appendix D the full results, including example generations, autoregressive gender steering on Llama-2-7B, and frozen-probe steering across PLMs.
7 Conclusion
We introduced a conditional autoencoder framework for concept erasure that combines reconstruction-based preservation with statistical independence from the sensitive concept. Under the stated ideal conditions, perfect reconstruction and population independence are sufficient for nonlinear guardedness and exact steering, while imperfect reconstruction admits quantitative preservation guarantees. Empirically, our method achieves stronger utility–erasure trade-offs across datasets and language models, while also enabling effective nonlinear steering in representation-level and generative settings. Overall, reconstruction plus independence provides a simple and practical framework for nonlinear concept erasure and steering.
A PREPRINT
AI use statement
We used generative AI tools to assist with drafting and polishing parts of the manuscript. In particular, they were used to prepare initial versions of some passages and to improve wording, clarity, and organization. All AI-assisted text was subsequently reviewed, edited, and approved by the authors.
We did not use generative AI tools for literature retrieval or discovery, research ideation or execution, generating synthetic datasets, or proving mathematical claims. Technical claims, equations, experimental results, and citations were checked by the authors against our own analysis and the relevant sources.
We take full responsibility for the final content of the paper, including all text and other material.
Ethics statement
All real-data experiments use publicly released datasets: BIAS IN BIOS, the dialectal Twitter corpus behind the DIAL benchmarks, and REALTOXICITYPROMPTS. Appendix B additionally contains a fully synthetic simulation. We collected no new human-subject data and ran no studies with human participants. The race labels in the DIAL benchmarks are dialect-based proxies rather than self-reported attributes, and we use them only as the concept to erase.
Concept erasure can keep sensitive attributes such as gender or race from influencing downstream decisions, but it is not a fairness guarantee: an attribute can be entangled with task-relevant content, and too little erasure can give a false sense of protection. The same decoder that removes a concept can also steer toward one, including toward undesirable behavior. In our toxicity experiments, we steer only away from toxicity; we additionally study controlled gender steering on BIAS IN BIOS. The toxicity appendix contains model-generated continuations of offensive prompts; we selected examples without slurs or explicit content.
Reproducibility statement
Proofs of all theoretical results are in Appendix A, and the synthetic setting used to test them when independence is violated is in Appendix B. The datasets and their splits are described in Appendix C.1. The architecture, objective, HSIC estimator, evaluation protocol and probes are in Appendix C.2, and the hyperparameters behind the results are in Tables 3 and 4. The generative experiments, including the intervention point, decoding and scoring, are specified in Appendix C.3, and the metrics are defined in Appendices C.3 and E.
A PREPRINT
References
Ramin Akbari, Milad Afshari, and Vishnu Boddeti. Obliviator reveals the cost of nonlinear guardedness in concept erasure. Advances in Neural Information Processing Systems, 38:144860–144892, 2026.
Somnath Basu Roy Chowdhury, Sayan Ghosh, Yiyuan Li, Junier Oliva, Shashank Srivastava, and Snigdha Chaturvedi. Adversarial scrubbing of demographic information for text classification. In Marie-Francine Moens, Xuanjing Huang, Lucia Specia, and Scott Wen-tau Yih, editors, Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 550–562, Online and Punta Cana, Dominican Republic, November 2021. Association for Computational Linguistics. doi: 10.18653/v1/2021.emnlp-main.43. URL https://aclanthology.org/2021.emnlp-main.43/.
Somnath Basu Roy Chowdhury, Nicholas Monath, Kumar Avinava Dubey, Amr Ahmed, and Snigdha Chaturvedi. Robust concept erasure via kernelized rate-distortion maximization. Advances in Neural Information Processing Systems, 36:43284–43306, 2023.
Nora Belrose, David Schneider-Joseph, Shauli Ravfogel, Ryan Cotterell, Edward Raff, and Stella Biderman. Leace: Perfect linear concept erasure in closed form. Advances in Neural Information Processing Systems, 36:66044–66063, 2023.
Xiao Bi, Deli Chen, Guanting Chen, Shanhuang Chen, Damai Dai, Chengqi Deng, Honghui Ding, Kai Dong, Qiushi Du, Zhe Fu, et al. Deepseek llm: Scaling open-source language models with longtermism. arXiv preprint arXiv:2401.02954, 2024.
Su Lin Blodgett, Lisa Green, and Brendan O'Connor. Demographic dialectal variation in social media: A case study of african-american english. In Proceedings of the 2016 conference on empirical methods in natural language processing, pages 1119–1130, 2016.
Tolga Bolukbasi, Kai-Wei Chang, James Y Zou, Venkatesh Saligrama, and Adam T Kalai. Man is to computer programmer as woman is to homemaker? debiasing word embeddings. Advances in neural information processing systems, 29, 2016.
Somnath Basu Roy Chowdhury and Snigdha Chaturvedi. Learning fair representations via rate-distortion maximization. Transactions of the Association for Computational Linguistics, 10:1159–1174, 2022.
Maria De-Arteaga, Alexey Romanov, Hanna Wallach, Jennifer Chayes, Christian Borgs, Alexandra Chouldechova, Sahin Geyik, Krishnaram Kenthapadi, and Adam Tauman Kalai. Bias in bios: A case study of semantic representation bias in a high-stakes setting. In proceedings of the Conference on Fairness, Accountability, and Transparency, pages 120–128, 2019.
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, volume 1 (long and short papers), pages 4171–4186, 2019.
Harrison Edwards and Amos Storkey. Censoring representations with an adversary. arXiv preprint arXiv:1511.05897, 2015.
Yanai Elazar and Yoav Goldberg. Adversarial removal of demographic attributes from text data. In Proceedings of the 2018 conference on empirical methods in natural language processing, pages 11–21, 2018.
Michael Feldman, Sorelle A Friedler, John Moeller, Carlos Scheidegger, and Suresh Venkatasubramanian. Certifying and removing disparate impact. In proceedings of the 21th ACM SIGKDD international conference on knowledge discovery and data mining, pages 259–268, 2015.
Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, François Laviolette, Mario March, and Victor Lempitsky. Domain-adversarial training of neural networks. Journal of machine learning research, 17(59):1–35, 2016.
Samuel Gehman, Suchin Gururangan, Maarten Sap, Yejin Choi, and Noah A Smith. Realtoxicityprompts: Evaluating neural toxic degeneration in language models. arXiv preprint arXiv:2009.11462, 2020.
Paula Gordaliza, Eustasio Del Barrio, Gamboa Fabrice, and Jean-Michel Loubes. Obtaining fairness using optimal transport theory. In International conference on machine learning, pages 2357–2365. PMLR, 2019.
Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, et al. The llama 3 herd of models. arXiv preprint arXiv:2407.21783, 2024.
Laura Hanu and Unitary team. Detoxify. Github. https://github.com/unitaryai/detoxify, 2020.
A PREPRINT
Vineet John, Lili Mou, Hareesh Bahuleyan, and Olga Vechtomova. Disentangled representation learning for non-parallel text style transfer. In Proceedings of the 57th annual meeting of the association for computational linguistics, pages 424–434, 2019.
James E Johndrow and Kristian Lum. An algorithm for removing sensitive information. The Annals of Applied Statistics, 13(1):189–220, 2019.
Fanny Jourdan, Louis Béthune, Agustin Picard, Laurent Risser, and Nicholas Asher. Taco: Targeted concept erasure prevents non-linear classifiers from detecting protected attributes. arXiv preprint arXiv:2312.06499, 2023.
Guillaume Lample, Neil Zeghidour, Nicolas Usunier, Antoine Bordes, Ludovic Denoyer, and Marc’Aurelio Ranzato. Fader networks: Manipulating images by sliding attributes. Advances in neural information processing systems, 30, 2017.
Pirmin Lemberger and Antoine Saillenfest. Explaining text classifiers with counterfactual representations. In ECAI 2024: 27th European Conference on Artificial Intelligence, 19–24 October 2024, Santiago de Compostela, Spain–Including 13th Conference on Prestigious Applications of Intelligent Systems (PAIS 2024), pages 890–897. SAGE Publications Pvt. Ltd 1 Oliver's Yard, 55 City Road, London, EC1Y 1SP, 2024.
Christos Louizos, Kevin Swersky, Yujia Li, Max Welling, and Richard Zemel. The variational fair autoencoder. arXiv preprint arXiv:1511.00830, 2015.
Noam Mor, Lior Wolf, Adam Polyak, and Yaniv Taigman. A universal music translation network. arXiv preprint arXiv:1805.07848, 2018.
Eliya Nachmani and Lior Wolf. Unsupervised singing voice conversion. arXiv preprint arXiv:1904.06590, 2019.
Kaizhi Qian, Yang Zhang, Shiyu Chang, Xuesong Yang, and Mark Hasegawa-Johnson. Autovc: Zero-shot voice style transfer with only autoencoder loss. In International Conference on Machine Learning, pages 5210–5219. PMLR, 2019.
Qwen, :, An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, Dayiheng Liu, Fei Huang, Haoran Wei, Huan Lin, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jingren Zhou, Junyang Lin, Kai Dang, Keming Lu, Keqin Bao, Kexin Yang, Le Yu, Mei Li, Mingfeng Xue, Pei Zhang, Qin Zhu, Rui Men, Runji Lin, Tianhao Li, Tianyi Tang, Tingyu Xia, Xingzhang Ren, Xuancheng Ren, Yang Fan, Yang Su, Yichang Zhang, Yu Wan, Yuqiong Liu, Zeyu Cui, Zhenru Zhang, and Zihan Qiu. Qwen2.5 technical report, 2025. URL https://arxiv.org/abs/2412.15115.
Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019.
Ali Rahimi and Benjamin Recht. Random features for large-scale kernel machines. In J. Platt, D. Koller, Y. Singer, and S. Roweis, editors, Advances in Neural Information Processing Systems, volume 20. Curran Associates, Inc., 2007. URL https://proceedings.neurips.cc/paper_files/paper/2007/file/013a006f03dbc5392effeb8f18fda755-Paper.pdf.
Shauli Ravfogel, Yanai Elazar, Hila Gonen, Michael Twiton, and Yoav Goldberg. Null it out: Guarding protected attributes by iterative nullspace projection. In Proceedings of the 58th annual meeting of the association for computational linguistics, pages 7237–7256, 2020.
Shauli Ravfogel, Michael Twiton, Yoav Goldberg, and Ryan D Cotterell. Linear adversarial concept erasure. In International Conference on Machine Learning, pages 18400–18421. PMLR, 2022a.
Shauli Ravfogel, Francisco Vargas, Yoav Goldberg, and Ryan Cotterell. Adversarial concept erasure in kernel space. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 6034–6055, 2022b.
Antoine Saillenfest and Pirmin Lemberger. Nonlinear concept erasure: a density matching approach. arXiv preprint arXiv:2507.12341, 2025.
Uri Shaham, Jonathan Svirsky, Ori Katz, and Ronen Talmon. Discovery of single independent latent variable. Advances in Neural Information Processing Systems, 35:25251–25263, 2022.
Shun Shao, Yftah Ziser, and Shay B Cohen. Gold doesn’t always glitter: Spectral removal of linear and nonlinear guarded attribute information. In Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics, pages 1611–1622, 2023.
Shashwat Singh, Shauli Ravfogel, Jonathan Herzig, Roee Aharoni, Ryan Cotterell, and Ponnurangam Kumaraguru. Representation surgery: Theory and practice of affine steering. arXiv preprint arXiv:2402.09631, 2024.
Jonathan Svirsky, Ofir Lindenbaum, and Uri Shaham. Provable speech attributes conversion via latent independence, 2025. URL https://arxiv.org/abs/2510.05191.
A PREPRINT
Alexander Matt Turner, Lisa Thiergart, Gavin Leech, David Udell, Juan J. Vazquez, Ulisse Mini, and Monte MacDiarmid. Steering language models with activation engineering, 2024. URL https://arxiv.org/abs/2308.10248.
A PREPRINT
A Proofs
A.1 Why reconstruction targets mutual information and HSIC does not
We formalize the motivation behind the objective in equation 1. We show two facts: (i) under the independence constraint , maximizing with respect to is equivalent to minimizing , which justifies reconstruction as the preservation objective; and (ii) Mutual information is not a monotonic function of HSIC, so maximizing HSIC is not, in General, the correct way to optimize information preservation.
Proposition 2. Let be a deterministic representation, and suppose that . Then:
Proof. Since is a deterministic function of , we have:
Hence:
Applying the chain rule gives
Because , we have , and therefore:
Using the standard identity for conditional mutual information,
we obtain equation 4.
Corollary 4. Under the constraint , maximizing over the choice of is equivalent to minimizing . In particular, if there exists a decoder such that:
then:
which is the largest possible value of among all C-independent deterministic representations of X.
Proof. The first claim follows immediately from Proposition 2, since is fixed by the data-generating distribution and does not depend on the encoder. For the second claim, if almost surely (perfect reconstruction), then X is a deterministic function of , and therefore . Substituting into equation 4 yields:
Finally, from equation 5 and the definition of conditional mutual information
so this value is maximal.
Proposition 3. In general, mutual information is not a monotonic function of HSIC. In particular, for fixed Gaussian kernels there does not exist a universal monotone function such that
for all joint distributions of .
A PREPRINT
Proof. We prove the stronger statement that, for fixed Gaussian kernels, there does not exist any universal function such that:
for all joint distributions of .
Fix Gaussian kernels:
Now choose two dependent pairs and such that:
For example, one may take two jointly Gaussian pairs with different correlations.
For and , define:
Since is bijective for every ,
We now study how HSIC changes with . Let and be i.i.d. copies of , independent of each other and of . Writing HSIC in population form,
(6)
For every fixed ,
Moreover,
Hence dominated convergence applies to equation 6 and
For each fixed j, define:
Clearly, is continuous on .
At we recover the original pair . Since HSIC is a maximum mean discrepancy,
Because each was chosen dependent, it follows that .
Since and , continuity implies that takes every value in the interval .
Choose any
For each , we have:
Since takes every value in the interval , there exists such that . As mutual information is invariant under the invertible scaling ,
A PREPRINT
Therefore,
However:
Hence we have constructed two joint distributions with the same HSIC value but different mutual information values. Therefore no universal function can satisfy:
for all joint distributions. In particular, no universal monotone such function exists.
Consequence for the preservation objective. Proposition 3 shows that maximizing HSIC(X, Z) is, in general, a kernel-dependent heuristic rather than the information-theoretically correct preservation objective. This is precisely why we use reconstruction, equivalently, minimization of under , instead of an HSIC-based preservation term.
A.2 Proofs for the Perfect Regime
Proof of Theorem 1. Under , Proposition 2 gives:
Since almost surely, is a deterministic function of , and therefore . Hence .
It remains to identify . Since is injective on , for every fixed the map is a bijection from onto , so . Since , we obtain , and therefore .
Proof of Corollary 1. Let be any deterministic representation satisfying . Since is a deterministic function of X and is independent of C, Proposition 2 applies to , yields
As conditional entropy is nonnegative, we have . On the other hand, by Theorem 1, . Combining the two displays gives as claimed.
Proof of Corollary 2. The conditions in Definition 1 follow directly from Corollary 1.
Corollary 5 (Deterministic recovery of the complementary factor). Under the assumptions of Theorem 1,
Proof. Since is injective and , there exists a measurable map such that almost surely. Let be the projection onto the first coordinate, and define:
Because we have . Thus is a deterministic function of , and therefore .
Thus, perfect reconstruction implies that no complementary information is lost: once C is provided, U can be recovered exactly from Z.
A PREPRINT
Corollary 6 (Exact preservation of complementary information). Under the assumptions of Theorem 1,
Proof. By Corollary 5, . Using , we have , and therefore:
Combined with from Corollary 5, the following corollary shows that Z is related to U by an entropy-preserving transformation, recovering the identifiability-up-to-entropy-preservation property.
Corollary 7 (Entropy-preserving representation). Under the assumptions of Theorem 1,
Proof. Since is a deterministic function of , we have , and therefore . By Theorem 1, , so .
A.3 Proofs for the Imperfect Regime
Proof of Proposition 1. By the defining property of in Assumption 1, we have . By definition, . Therefore . Applying the Lipschitz property of with the same concept value gives . Squaring both sides yields . Taking expectation, we obtain , as claimed.
Corollary 8 (Finite-alphabet preservation bound from MSE). Assume the conditions of Proposition 1. In addition, assume that the alphabet of is finite with . Let . In addition, let be the nearest neighbor element of from , and define . Then:
Consequently, , where is the binary entropy function.
Proof. If , then some is at least as close to as is. Since any two distinct points in are separated by at least , this is only possible if . Hence:
Applying Markov's inequality to the right hand side gives:
By Proposition 1, , and therefore .
Write and . Since is finite, Fano's inequality gives . The function increases on and reaches its maximum at . If , then and . Otherwise the bound above forces , so . In both cases
Finally, using , we have , and therefore:
which proves the claim.
A PREPRINT
A.4 Proofs for Concept Conversion
Proof of Corollary 3. By assumption,
For each , define:
We first show that each is injective. Fix and suppose . Then , and by the definition of together with perfect reconstruction,
Hence , and since is injective on , it follows that .
Since in the structural model , the conditional law of given coincides with its marginal: . Therefore, conditional on ,
and the conditional law of Z given is the pushforward of under :
By the independence assumption , the conditional law does not depend on and equals the marginal . Hence, for any ,
We now extract a single map from the family . Fix arbitrary ; we show .
In the discrete setting, the support of a pushforward measure is exactly the image of the underlying map. Combined with the previous display, this gives
so and are both bijections from onto the common image , and is well-defined. Define:
which, as a composition of bijections, is a bijection from to itself. Pushing the equality forward by yields:
where the last equality follows because is the identity on . Thus is a measure-preserving automorphism of . By Assumption 2, the only such automorphism is the identity, hence , i.e. . Since were arbitrary, does not depend on , and we may set for any . With this definition, for every and every .
Combining with shows that is a bijection from onto . Finally, fix any target concept value . Since a.s., we have:
Applying perfect reconstruction to the sample gives:
and since , this becomes:
Combining the last two equations yields:
which is the desired concept-conversion statement.
A PREPRINT
B Empirical Robustness to Violated Independence
To probe how much our framework relies on , we sweep a controlled synthetic process in which the dependence between and is governed by a single scalar recovers the paper's assumption, makes a deterministic function of , and intermediate values interpolate. For each we train the same model with the same loss (Eq. 2) and evaluate erasure, utility, and steering.
Takeaway. Even when perfect independence does not hold, at reasonable levels of dependence the framework continues to work well empirically. Erasure is achieved at the chance floor for every ; the cost shows up as a gradual loss of utility on the entangled coordinate of only, and at small and moderate dependence levels (e.g. ) most of that utility is still retained. Steering is fully successful from a downstream classifier's perspective at every . In short: when the deviation from independence is small, the downgrade in performance is small.
B.1 Setup
Data. The latent is with ; we write for its first coordinate, for its second, and for its third. Intuitively, the sensitive concept is constructed to depend on the first coordinate , with the magnitude of controlling the strength of that dependence. Concretely, we add noise to by an independent to form a continuous score:
and assign by binning into the four equiprobable quantile bins of its empirical distribution: we compute the 25th, 50th and 75th percentiles of , and set if , if , if , and if . The factor keeps for every , so the bin edges and class balance are identical across the sweep; only the joint changes. By construction only is entangled with (with strength controlled by ), while are -independent for every . This split lets us cleanly distinguish utility the model is forced to discard from utility it should preserve.
Generative map . A frozen, randomly initialized injective map ,
where is a fixed class embedding – a lookup table whose rows are sampled once from at construction and then held fixed (rows distinct with probability one), so is just the -th row of this fixed matrix – and MLP is a two-hidden-layer Tanh network. The skip-concatenation makes provably injective in and gives a 1-Lipschitz left-inverse , so Assumption 1 holds with . For each we sample and i.i.d. examples.
Model and training. Encoder (two hidden layers of width 64, GELU); decoder (concept embedded into , concatenated with , two hidden layers of width 64). Trained for 300 epochs with AdamW (learning rate , batch 1024) using exactly Eq. (2), with . HSIC is estimated with an RBF kernel on (median-heuristic bandwidth, recomputed per minibatch) and a linear kernel on the one-hot . We sweep ; a fresh model and fresh probes are trained for each .
B.2 Metrics
Erasure. An MLP probe (two hidden layers of width 64, GELU, 200 AdamW epochs) trained to predict . To establish the headroom we report its accuracy on the frozen ; to measure erasure we report the accuracy of the same probe trained on . Lower is better; chance is .
Utility. An MLP regressor (same architecture, MSE loss) trained to predict from . We report , the fraction of target variance explained (1 is perfect, 0 is no better than predicting the mean), separately for (the -entangled coordinate) and (the -independent coordinates). The split isolates utility that must be discarded under the constraint from utility that should be preserved.
Steering. Given test and a target , the converted representation is . We measure two things. (i) Oracle counterfactual MSE: , with the do-nothing baseline for scale – this is the strict point-wise test, available only because we synthesized . (ii) Probe-based success rate, mirroring the steering evaluation in our main experiments: a frozen- classifier is applied to and we report the rate at which it predicts , with the rate of predicting on the unmodified as the trivial baseline.
A PREPRINT

Figure 4: Erasure and utility under varying U–C dependence. Left: concept leakage measured by an MLP probe predicting C. The frozen representation X exposes C, while the erased representation Z stays near chance across all dependence levels. Right: utility measured by for predicting U from Z. The C-independent coordinates remain preserved, while the C-entangled coordinate degrades gradually as increases.
B.3 Erasure and Utility
Figure 4 summarizes the effect of violating the independence assumption . The key observation is that the method remains robust across the sweep: the erased representation Z stays essentially non-informative about C, while utility degrades in a controlled and interpretable way.
The left panel shows that concept leakage remains at chance level even as increases and becomes more strongly dependent on . Thus, the independence penalty continues to enforce erasure even outside the ideal theoretical regime. The right panel shows where the cost of this erasure appears. The -independent coordinates remain almost perfectly recoverable from throughout the sweep, whereas the -entangled coordinate degrades as its dependence on increases.
This is the desired robustness behavior. When is small or moderate, the model still preserves substantial information about , so mild violations of do not cause a collapse in utility. Moreover, the transition is smooth: performance does not suddenly break once the independence assumption is violated, but instead degrades progressively as the statistical overlap between and increases. As becomes large, information about increasingly overlaps with information about , so preserving all of would necessarily reintroduce concept leakage. The observed degradation is therefore gradual and localized: the model gives up the information that conflicts with independence at a rate that reflects the strength of the violation, while continuing to preserve the complementary information that does not.
B.4 Steering
Table 2 evaluates whether the learned decoder still performs steering when the independence assumption is gradually violated. The probe-based metric remains perfect across the entire sweep: after steering, a classifier trained on frozen representations identifies the converted sample as belonging to the target concept value for every . This shows that the operational steering behavior is robust even when U and C are not perfectly independent.
The stricter oracle metric reveals the expected cost of the violation. As increases, becomes increasingly tied to , so converting to a different concept value while preserving the same becomes harder. Nevertheless, the degradation is gradual rather than abrupt: the oracle MSE increases smoothly from 0.011 at to 0.206 at , while remaining far below the do-nothing baseline throughout. Thus, even for steering, moderate violations of lead to moderate degradation rather than failure.
C Implementation Details
C.1 Datasets
We evaluate on three standard concept-erasure benchmarks: BIAS IN BIOS, DIAL-SENTIMENT, and DIAL-MENTION. In all experiments, the input to our method is a frozen pretrained-language-model representation, the concept label is used during erasure, and the downstream label is used only for evaluation.
A PREPRINT
Table 2: We report oracle counterfactual MSE , the corresponding do-nothing baseline , and probe-based steering success measured by a frozen- classifier. Lower oracle MSE and higher probe success indicate better steering. Standard deviations were small and are omitted for readability, since the table is intended to show the qualitative trend across the sweep.
| Oracle MSE | Probe-based success | ||||
|---|---|---|---|---|---|
| conv MSE | do-nothing | on (sanity) | on | on (baseline) | |
| 0.00 | 0.011 | 1.530 | 1.000 | 1.000 | 0.000 |
| 0.10 | 0.014 | 1.530 | 1.000 | 1.000 | 0.000 |
| 0.25 | 0.020 | 1.531 | 1.000 | 1.000 | 0.000 |
| 0.35 | 0.037 | 1.532 | 1.000 | 1.000 | 0.000 |
| 0.50 | 0.056 | 1.533 | 1.000 | 1.000 | 0.000 |
| 0.60 | 0.074 | 1.534 | 1.000 | 1.000 | 0.000 |
| 0.75 | 0.118 | 1.537 | 1.000 | 1.000 | 0.000 |
| 0.85 | 0.143 | 1.540 | 1.000 | 1.000 | 0.000 |
| 1.00 | 0.206 | 1.544 | 1.000 | 1.000 | 0.000 |
BIAS IN BIOS. BIAS IN BIOS De-Arteaga et al. [2019] consists of short biographies, each annotated with a profession label and a binary gender label. We use profession as the downstream target and gender as the sensitive concept . The dataset contains 28 profession classes and two gender groups. In the processed split used in our experiments, 53.7% of the examples are labeled male and 46.3% female. The largest profession class is professor, which accounts for approximately 30% of the samples. This benchmark is therefore a multiclass utility-preservation setting, where the goal is to remove gender information while retaining profession-relevant information.
DIAL-SENTIMENT. DIAL-SENTIMENT is derived from the dialectal Twitter corpus of Blodgett et al. [2016]. The downstream target is binary sentiment, with 54.57% happy examples and 45.43% sad examples. The sensitive concept is race, with 36.93% African-American English (AAE) examples and 63.07% Standard American English (SAE) examples.
DIAL-MENTION. DIAL-MENTION uses the same dialectal Twitter benchmark, but the downstream target is whether a tweet mentions another user. The target labels are balanced, with 50% conversational and 50% non-conversational examples. The sensitive concept is again race/dialect, and the AAE/SAE labels are also balanced (50%–50%).
Use of labels. Our method is trained without downstream-task labels. The erasure objective uses only the representation and the concept label . The downstream labels are used only after training, for post-hoc evaluation of utility, fairness, and steering performance.
C.2 Experimental Setup
Architecture. The encoder maps the input representation to a concept-free latent code . The decoder acts as its conditional left-inverse: given the code and a concept label , it reconstructs a representation in the original input space . Both are two-layer MLPs with GELU activations; the decoder fuses with a learnable concept embedding of dimension 64 via concatenation before projecting back to .
Optimization. Encoder and decoder are trained jointly with a single NAdamW optimiser (learning rate , weight decay 0.05, batch size 16,384). Unlike adversarial methods, there is no minimax game and no alternating update schedule. The training objective is
where throughout.
HSIC estimation. Similar to Obliviator, HSIC is computed as the Frobenius norm of the empirical cross-covariance between Random Fourier Feature (RFF) maps of the code and one-hot concept labels [Rahimi and Recht, 2007]. Before feature mapping the code is -normalised, preventing the encoder from trivially deflating the HSIC estimate by scaling representation norms. The RBF bandwidth is recomputed each mini-batch via the median heuristic and floored at to prevent kernel degeneracy. The number of Fourier features is set to , where is the code dimension.
A PREPRINT
Why random features. We use RFF for memory and speed. At our batch size of 16,384, a single exact Gram matrix holds entries, about 1 GiB in FP32 before centering and autograd storage, and its cost grows quadratically with the batch; RFF grows linearly. We checked that the approximation costs nothing measurable. Training with RFF and with the exact Gram matrix at batch sizes 4,096, 8,192 and 16,384 on all three datasets, with everything else fixed, gives utility minus leakage within 1.9 points at every matched setting, with no consistent winner, and indistinguishable held-out exact HSIC. Exact HSIC at batch 8,192 against RFF at 16,384 differs by 3.2 points on BIAS IN BIOS and 2.8 on DIAL-MENTION, yet takes longer per epoch; at batch 16,384 exact HSIC is slower and needs about 9.3 GiB.
We follow the Obliviator evaluation protocol for every method, ours included. Each configuration is trained with 5 random seeds. Every MLP probe is trained 3 times from different initialisations, and a run's leakage is the maximum accuracy over the restarts, so each run is scored against its strongest adversary. Utility is measured with a single probe. Of the 5 seeds we report the one with the best trade-off,
where runs over the evaluation points of the curve. Leakage and utility always come from the same seed.
Table 3: Per-dataset hyperparameters for our method. All other hyperparameters are fixed globally.
| Dataset | Epochs | |||
|---|---|---|---|---|
| BIAS IN BIOS | 500 | 1.0 | 5.0 | 0.05 |
| DIAL-SENTIMENT | 500 | 1.0 | 5.0 | 0.05 |
| DIAL-MENTION | 500 | 1.0 | 5.0 | 0.05 |
Hyperparameter selection. We tune the reconstruction weight and the independence weight on the validation split; everything else is fixed to the values above. The bandwidth floor is for every dataset and every PLM. The selected values are in Table 3.
The same pair, and , is used on all three datasets. The grids behind each plotted curve are listed in Table 4. Hyperparameter sensitivity results are provided in Appendix D.8.
Table 4: Hyperparameters used for our method in the plotted erasure results.
| Figure / setting | Epochs | |||
|---|---|---|---|---|
| Fig. 1 / BERT, BIAS IN BIOS | 500 | 1.0 | 0.05 | |
| Fig. 2a / GPT-2, BIAS IN BIOS | 500 | 1.0 | 0.05 | |
| Fig. 2b / DeepSeek, BIAS IN BIOS | 500 | 1.0 | 0.05 | |
| Fig. 2c / LLaMA, BIAS IN BIOS | 500 | 1.0 | 0.05 | |
| Fig. 3a / DIAL-MENTION | 500 | 1.0 | 0.05 | |
| Fig. 3b / DIAL-SENTIMENT | 500 | 1.0 | 0.05 |
Probing Classifiers. All methods are evaluated using the same probing setup to ensure a fair comparison; these classifiers are used for both the erasure and steering evaluations. We use two nonlinear MLP probes: one trained to predict the sensitive attribute (measuring residual concept leakage) and one trained to predict the utility label (measuring retained task information). Each probe is a five-hidden-layer MLP with 128 units per layer and GELU activations, optimised with NAdamW (learning rate , weight decay 0.05, batch size 4,096) for up to 200 epochs. This is strictly stronger than the single-hidden-layer MLP of 100 units with ReLU provided by scikit-learn, which much prior concept-erasure work has commonly used as its nonlinear adversary; a weaker probe would underestimate residual leakage and inflate apparent erasure quality.
C.3 Steering Setup
In all three experiments the language model, its LM head and all probes stay frozen; only the conditional autoencoder is trained, with the concept label and no downstream label.
Toxicity (Qwen2.5-7B). A REALTOXICITYPROMPTS prompt is labelled toxic if its released score is at least 0.5 and non-toxic if it is at most 0.25; prompts in between are dropped. We remove repeated prefixes, balance the classes and stratify the split, so chance is . The autoencoder uses the final-layer, post-normalisation state at the last prompt
A PREPRINT
token; we checked that it reproduces the model's logits. We use this point because an intervention on an earlier block is partly undone by later attention over unmodified positions. The hook is on the final normalisation layer and fires at every decoding step. For each slice we take 1000 held-out prompts and greedily generate 20 tokens, and an offline classifier [Hanu and Unitary team, 2020] scores toxicity. Baselines get the same strength dial as ours, written as for a baseline map , where is the published method. To measure content we need a label that is neither the concept nor a task: a 20-way -means partition of frozen sentence embeddings of the prompts. Topic accuracy is how recoverable that partition is, and topicality is the prompt–continuation cosine similarity in the same space. Topic alone predicts toxicity at 71.4%, which bounds how far any method can erase without destroying content.
Autoregressive gender (Llama-2-7B). We append a fixed continuation cue to each raw BIAS IN BIOS biography and intervene at the same point, the LM-head input at the last token. The autoencoder is trained on 50,000 such states with gender labels only; activation addition and MiMiC are fit on the same states. We greedily generate 40 tokens. Target preference is the fraction of first intervened states that put more probability on target- than on source-gender tokens. Perplexity is from rescoring the continuation with the untouched model. We also count gender markers in the text and report profession accuracy for content.
Frozen-probe gender (BERT, DeepSeek, LLaMA). On BIAS IN BIOS we steer FEMALE→MALE and compare with the affine methods of [Singh et al., 2024]. Unlike their protocol, the gender probe and the profession probe are trained once on the original representations and then frozen, so steering must work in front of a system it cannot retrain. Conv. is how often predicts the target gender after steering, is the accuracy of the frozen profession probe, and is defined in Appendix E.2.
Reporting. All rows of a generation table come from one run on one GPU. Greedy decoding is sensitive to floating-point kernel differences: 232 of 1000 continuations of the unmodified model changed between two GPU types, so we never compare generation numbers across runs.
C.4 Computational Complexity and Scalability
Table 5: Wall-clock time per training step on Nvidia H200 GPU (mean ± std across 10 independent runs). For Obliviator, one step is one outer iteration, including encoder training, the EVP solve, and per-iteration RFF caching. For our method, one step is one training epoch. Both methods use the same mini-batch size (16384) and encoder MLP. Probing time is excluded.
| PLM | Dataset | Mode | Obliviator (s / outer iter) | Ours | ||
|---|---|---|---|---|---|---|
| Encoder | EVP | Total | (s / epoch) | |||
| BERT | BIAS IN BIOS | Unsup | ||||
| Sup | ||||||
| DIAL-MENTION | Unsup | |||||
| Sup | ||||||
| DIAL-SENTIMENT | Unsup | |||||
| Sup | ||||||
| GPT-2 | BIAS IN BIOS | Unsup | ||||
| Sup | ||||||
| LLaMA | BIAS IN BIOS | Unsup | ||||
| Sup | ||||||
| DeepSeek | BIAS IN BIOS | Unsup | ||||
| Sup | ||||||
| DIAL-SENTIMENT | Unsup | |||||
| Sup | ||||||
Time analysis. Table 5 reports wall-clock time per training step. The main observation is that our per-step cost is substantially smaller: across all configurations, one epoch of our method takes roughly 0.7–2.6 seconds, whereas one Obliviator outer iteration takes roughly 42–167 seconds.
To translate these numbers into full-run cost, we project Obliviator to outer iterations and our method to 200–500 epochs. These ranges match the training budgets used in our experiments: Obliviator runs for up to 15
A PREPRINT
outer iterations, while 500 epochs is the largest number of epochs we ran for our method. Even under the conservative comparison of our longest 500-epoch runs against Obliviator with 15 outer iterations, our method is faster in every configuration, for both supervised and unsupervised Obliviator. In the unsupervised setting, which is the main post-hoc erasure setting, our method is about faster. For example, on BERT BIAS IN BIOS, Obliviator-15 takes about 1506 seconds, compared with about 549 seconds for our 500-epoch run; on DeepSeek BIAS IN BIOS, the corresponding numbers are about 2499 and 1274 seconds.
Overall, these runtime gains strengthen the empirical picture: our method does not trade speed for quality, but improves the utility–erasure trade-off while also reducing training time. Thus, the same simpler objective that yields stronger erasure performance also makes the method substantially more efficient in practice.
Table 6: Peak GPU memory (GB) for BIAS IN BIOS.
| Method | Training (GB) | EVP (GB) |
|---|---|---|
| Obliviator | 8.18 | 6.78 |
| Ours | 5.15 | — |
Memory analysis. Both methods use the same encoder MLP, optimizer, and mini-batch size, so the encoder weights, gradients, and per-batch activations occupy identical memory. Both also include an HSIC term against the sensitive attribute (the small one-hot label vector being erased), which is inexpensive for both. The remaining difference is structural to each loss. Obliviator's objective (Eq. 8 in their paper) additionally includes HSIC terms against fixed auxiliary random variables , and optionally used to preserve utility; their implementation precomputes these as RFF feature matrices once per outer iteration and caches them on GPU throughout encoder training. Ours preserves utility through the autoencoder's MSE reconstruction loss, which requires no auxiliary RFF features. As a result, Ours uses lower peak memory than Obliviator's encoder phase while avoiding the EVP solve entirely.
D Additional Results
D.1 Toxicity Steering
The setup is in Appendix C.3. We call the rule of in Section 6.3 residual steering, and the plain conversion replacement.
Replacement does not generate usable text at code size 512: perplexity rises to 2807, against 3.44 for the untouched model. The autoencoder round-trip, which does no steering, degrades the same way, so the cost comes from reconstruction error and not from the intervention. A 2048-dimensional code trained on the last four prompt positions does generate (perplexity 10.9) and lowers toxicity from 0.163 to 0.050, against 0.145 for its own round-trip.
Table 7: Toxicity recoverable by fresh probes, as deployed and after undoing each map.
| Intervention | Invertible | As deployed | Map undone |
|---|---|---|---|
| Mean matching | yes | 99.2 | 99.2 |
| Activation addition | yes | 100.0 | 100.0 |
| MiMiC | yes | 71.3 | 84.9 |
| Ours, replacement | no | 77.1 | 77.1 |
An adversary who knows a published map can invert it whenever it is invertible. Table 7 trains fresh probes on the steered states as deployed, and again after undoing each map with its analytic inverse. Every affine baseline is invertible, so undoing it restores the concept: MiMiC reads lowest as deployed (71.3%), but 84.9% once undone. Replacement passes through a 512-dimensional code, has no inverse, and stays at 77.1%. Untouched states read 86.8%, chance is 50%, and topic alone predicts toxicity at 71.4%.
In Table 8 a toxicity probe and a topic probe are trained once on untouched states and frozen, and each intervention is inserted in front of them. Conv. is how often calls a converted toxic state non-toxic, is topic accuracy, and is the topic-wise gap between the original toxicity groups. Replacement converts as often as MiMiC (92.9% vs. 93.7%), keeps more topic accuracy (44.8 vs. 41.7) and halves the fairness gap (0.080 vs. 0.160).
Table 9 shows continuations where the untouched model turns the prompt into an insult and ours continues on topic without it. Toxicity drops from at least 0.65 to below 0.01 in each case, at perplexity 4–6.
A PREPRINT
Table 8: Frozen-probe steering on Qwen states.
| Intervention | Conv. % ↑ | % ↑ | |
|---|---|---|---|
| No intervention | 14.60 | 51.97 | 0.195 |
| Mean matching | 79.52 | 47.92 | 0.121 |
| Activation addition | 99.41 | 40.13 | 0.194 |
| MiMiC | 93.72 | 41.72 | 0.160 |
| Ours, residual | 71.27 | 47.60 | 0.111 |
| Ours, residual | 97.14 | 39.56 | 0.185 |
| Ours, replacement | 92.88 | 44.80 | |
| Round-trip (control) | 9.18 | 49.12 | 0.205 |
Table 9: Selected greedy continuations, untouched model vs. ours (residual, ).
| Prompt | Untouched | Ours |
|---|---|---|
| Dueling Million Moron Marches In DC Get Like A Hundred Idiots To Show Up You know things | ...are bad when the two biggest moron marches in DC get like a hundred idiots to show up. | ...are bad when the two largest marches in Washington DC in 2017 both involved people marching |
| But even if he only leaked Belus because he thinks it’s “garbage” | ...and “a waste of time,” he’s still a traitor. He’s still a traitor | ...he still has a responsibility to the public to ensure that information that could be useful to the public is |
| “I would like to talk to you about your comments about my being a racist, | ...and I would like to talk to you about the fact that you are a racist.” | ...which I find to be a very serious charge. I have been a member of the National Association for |
| I was glad to see someone who, frankly, isn’t an idiot – and doesn’t act | ...like one – on the show. I was also glad to see someone who isn’t a complete idiot | ...like one – on the show. The only reason I watch “The Office” is because I like |
D.2 Gender Steering on Llama-2-7B
Table 10: Direct LM-head steering on Llama-2-7B.
| Intervention | Target pref. ↑ | Original gender ↓ | Profession ↑ |
|---|---|---|---|
| Untouched | - | 78.1 | 56.2 |
| Mean matching | 81.4 | 93.8 | 56.2 |
| Activation addition | 92.6 | 99.3 | 56.2 |
| MiMiC | 90.2 | 89.1 | 54.4 |
| Ours | 99.2 | 63.3 | 49.5 |
Direct LM-head steering. We replace by once and read the frozen head's next-token distribution. Target preference is the fraction of states where target-gender tokens get more probability than source-gender tokens; the other two columns are what fresh probes recover from the converted state (Table 10). Ours moves the head most often (99.2%) and is the only method that removes most of the original gender (63.3% against 78.1% untouched; the baselines leave 89–99%), at a cost of 6.7 points of profession accuracy.
Table 11: Autoregressive gender steering on Llama-2-7B. PPL is computed under the untouched model; lower is better.
| Intervention | Target pref. ↑ | PPL ↓ | Target/source | Profession ↑ |
|---|---|---|---|---|
| Untouched | - | 2.28 | 27 / 13 | 56.2 |
| 99.2% | 8.97 | 8 / 0 | 49.5 | |
| Ours, | 89.5% | 2.46 | 39 / 0 | 56.1 |
| Ours, | 94.8% | 2.65 | 51 / 0 | 56.0 |
| Activation addition | 92.6% | 2.36 | 32 / 3 | 56.2 |
| MiMiC | 90.2% | 3.53 | 109 / 0 | 54.4 |
Autoregressive generation. In Table 11, direct replacement produces the strongest initial target preference, confirming that directly converts the representation toward the requested concept. When repeated throughout generation, however, its reconstruction error accumulates, substantially increasing perplexity and reducing profession preservation.
A PREPRINT
Residualization avoids this degradation while retaining strong steering: at , all observed source-gender markers are removed while perplexity remains close to the untouched model and profession accuracy is essentially unchanged. Increasing to further strengthens target steering at only a modest fluency cost. This is why the toxicity experiment uses the residual form.
D.3 Frozen-Probe Gender Steering
Table 12: Frozen-probe gender steering across PLMs.
| Model | Intervention | Conv.% | TPR | |
|---|---|---|---|---|
| BERT | Mean matching | 99.97% | 78.18% | 0.109 |
| Mean+Cov. Matching | 99.86% | 73.95% | 0.154 | |
| Ours | 99.92% | 78.20% | 0.105 | |
| DeepSeek | Mean matching | 99.94% | 84.21% | 0.115 |
| Mean+Cov. Matching | 99.84% | 78.13% | 0.178 | |
| Ours | 99.98% | 83.65% | 0.110 | |
| LLaMA | Mean matching | 99.56% | 82.28% | 0.100 |
| Mean+Cov. Matching | 99.85% | 77.12% | 0.141 | |
| Ours | 99.99% | 81.83% | 0.097 |
Table 12 reports three quantities. Conv. is the rate at which the frozen gender classifier predicts the target gender, is frozen profession accuracy, and is the profession fairness gap defined in Appendix E.2.
Across PLMs, our method achieves near-perfect conversion while preserving high profession accuracy and consistently attaining the lowest . Mean+covariance matching, in contrast, often reduces compatibility with the frozen downstream classifier, decreasing profession accuracy and increasing the fairness gap. These results show that our decoder-based intervention reliably changes the target concept while preserving the representation structure required by an already-trained downstream system.
D.4 Additional Steering Results
Table 13: AE-only steering quality evaluation. Standard deviations are omitted for readability, as steering rates are near-saturated and utility values vary only mildly across runs.
| BERT | DeepSeek | LLaMA | |
|---|---|---|---|
| Reconstruction quality | |||
| Round-trip MSE | 0.0058 | 0.0014 | 0.0643 |
| Per-class steering success ( predicts after steering) | |||
| : no-steer | 0.70% | 0.70% | 0.83% |
| : round-trip | 0.16% | 0.00% | 0.00% |
| : converted | 99.92% | 99.98% | 99.99% |
| : no-steer | 0.46% | 0.35% | 0.39% |
| : round-trip | 0.02% | 0.01% | 0.01% |
| : converted | 99.45% | 100.00% | 99.99% |
| Utility preservation (re-trained probe on AE outputs; raw data in parens) | |||
| Round-trip | 80.06% (80.53%) | 84.53% (84.81%) | 82.93% (83.35%) |
| All-converted to | 79.96% | 84.51% | 82.78% |
| All-converted to | 79.90% | 84.48% | 82.75% |
We evaluate the AE in isolation, independent of the fairness metrics in Table 12. All measurements use a frozen gender probe (an Obliviator MLP trained once on raw data, accuracy across PLMs) and a frozen profession probe trained on raw data.
Metrics. Round-trip MSE measures reconstruction fidelity: , where the encoder output is decoded with the original concept label. Lower values indicate a more faithful autoencoder. Per-class steering success reports how often classifies the AE output as the target gender . The no-steer row is the baseline rate before any intervention (near zero by construction of ); the round-trip row verifies that decoding with the original concept does not accidentally flip the gender label; the converted row is the key metric. Utility preservation re-trains a
A PREPRINT
fresh profession probe from scratch on AE outputs and reports its accuracy. The parenthetical values are the raw on unmodified representations, serving as an upper bound.
Results. Steering is near-perfect and symmetric across all PLMs ( in both directions), confirming that the concept variable genuinely controls gender in the learned latent space. The round-trip column stays below , ruling out the degenerate solution of ignoring and always outputting a fixed gender. Utility is preserved within of raw in all cases, and is nearly identical whether decoding with the original concept or converting all samples to either gender – indicating that is cleanly orthogonal to profession content. Round-trip MSE values are small across all PLMs (below 0.065), indicating that the autoencoder faithfully reconstructs its input when the concept label is held fixed, a necessary condition for meaningful concept-controlled generation.
Taken together, these results confirm that the AE successfully isolates gender in the concept variable : it converts representations with near-perfect accuracy, reconstructs faithfully when is held fixed, and preserves profession content within of the raw baseline – demonstrating clean disentanglement without sacrificing task utility.
D.5 Additional Probe Families
Table 14: Additional probe families: concept accuracy / task accuracy .
| Probe | BIAS IN BIOS | DIAL-MENTION | DIAL-SENTIMENT |
|---|---|---|---|
| 4-layer MLP | 55.63 / 73.31 | 52.90 / 69.10 | 64.10 / 67.20 |
| RBF-SVM | 54.30 / 75.40 | 56.00 / 70.70 | 63.80 / 65.40 |
| kNN | 56.80 / 74.80 | 57.30 / 70.30 | 62.40 / 62.10 |
Our main results use a 5-layer MLP, selected as the strongest probe in our probe search. As an additional robustness check, we also evaluate a separate 4-layer MLP, together with an RBF-kernel SVM and kNN. Since a single probe family may nevertheless miss leakage detectable by another, we attack the erased representations with all three alternatives. The 4-layer MLP is evaluated over 3 random restarts, the RBF-SVM over 7 hyperparameter settings, and kNN over 2 settings, with each probe trained from scratch. Each cell of Table 14 reports concept accuracy followed by task accuracy on the same representation. The concept majority baselines are , , and .
On BIAS IN BIOS, all three probe families recover gender within 0.6–3.1 points of the majority baseline, while profession accuracy remains between 73.3% and 75.4%. On DIAL-SENTIMENT, all probes remain within 1.0 point of the majority baseline. DIAL-MENTION shows the largest spread: the MLP reaches 52.9%, while SVM and kNN reach 56.0% and 57.3%, respectively. Even there, concept accuracy remains within about 7 points of chance and mention accuracy stays above 69%. The main conclusions therefore do not depend on the MLP probe family.
D.6 Permutation Test
Table 15: Rejections of independence out of 20 disjoint subsamples.
| Dataset | Representation | n = 1,000 | n = 2,000 | n = 5,000 |
|---|---|---|---|---|
| DIAL-MENTION | Frozen BERT | 20/20 | 20/20 | 20/20 |
| Ours | 0/20 | 4/20 | 13/20 | |
| DIAL-SENTIMENT | Frozen BERT | 20/20 | 20/20 | 20/20 |
| Ours | 0/20 | 4/20 | 10/20 |
Probes can miss leakage or overfit noise, so we also test independence directly. On held-out data we compute the exact-Gram HSIC between the code and the concept (RBF kernel on , one-hot kernel on ) and run a permutation test with 500 permutations at level 0.05, on 20 disjoint subsamples per sample size (Table 15). For frozen BERT, independence is rejected every time, already at . For ours it is never rejected at and only partly at : the remaining dependence takes thousands of samples to detect. Held-out HSIC falls by at least on DIAL-MENTION and on DIAL-SENTIMENT relative to frozen BERT, comparing our upper bootstrap endpoint with frozen BERT's lower one.
A PREPRINT
D.7 Fairness
We further evaluate whether erasure improves downstream fairness on DIAL-SENTIMENT. Following Obliviator, we plot sentiment accuracy against two fairness metrics: demographic parity (DP) and the RMS true-positive-rate gap, denoted . Both metrics are defined in Appendix E.1. Lower values on the x-axis indicate fairer predictions, while higher values on the y-axis indicate better sentiment utility.

(a) DP
(b) Gap
Figure 5: Fairness–utility trade-off on DIAL-SENTIMENT.
Figure 5 shows that our method achieves a stronger fairness–utility trade-off on DIAL-SENTIMENT. At the same levels of fairness, our BERT representations preserve substantially more sentiment information than Obliviator. For example, at DP around 0.03, our method reaches roughly 69% sentiment accuracy, whereas unsupervised Obliviator on BERT is around 60% and supervised Obliviator on BERT is around 67%. Even compared to Obliviator on DeepSeek, which starts from a more favorable representation space, our BERT result is stronger at this fairness level: unsupervised Obliviator on DeepSeek is around 61%, while supervised Obliviator on DeepSeek does not reach this low-DP regime.
The same pattern appears for . At around 0.04, our method reaches roughly 70% sentiment accuracy, whereas unsupervised Obliviator on both BERT and DeepSeek barely reaches 60%, and the supervised Obliviator curves do not reach this fairness level. At a slightly larger of about 0.095, our method reaches roughly 71% sentiment accuracy, still above all Obliviator curves at nearby fairness levels, including DeepSeek. Overall, these results show that our method achieves strong downstream fairness while preserving utility, despite using no sentiment labels during erasure.
D.8 Hyperparameter Sensitivity

(a) Sensitivity to

(b) Sensitivity to training epochs
Figure 6: Hyperparameter sensitivity on BIAS IN BIOS with BERT representations. We vary the independence weight in Eq. 2 and the number of training epochs.
A PREPRINT
Figure 6 shows that our method is robust and not highly sensitive to the exact choice of over a broad range. Small values (0.1–0.5) preserve about 76–77% profession accuracy, while increasing progressively strengthens erasure. At , gender accuracy reaches 54.67%, close to the 53.7% random-chance level, while profession accuracy remains 72.29%. Larger values provide little additional erasure benefit, indicating a broad and stable operating regime rather than dependence on a narrowly tuned value.
Training duration shows a similarly smooth trade-off. From 200 to 500 epochs, gender accuracy decreases steadily from 60.36% to 54.67%, while profession accuracy decreases from 76.32% to 72.29%. We use 500 epochs in the main experiments because it provides the strongest erasure among the tested budgets while retaining substantial downstream utility.
E Metrics
E.1 Fairness Metrics
For the downstream fairness evaluation on DIAL-SENTIMENT, we report demographic parity (DP) and the RMS true-positive-rate gap, denoted . DP measures whether the predicted sentiment distribution changes across race groups:
measures class-conditioned disparity in true positive rates:
Lower values indicate fairer predictions.
E.2 Steering Metrics
For steering, we follow the fairness metric used in prior representation-steering work and report the RMS true-positive-rate gap. For each profession label , let be the prediction of the frozen profession classifier and let denote the gender group. The TPR gap for class is
We aggregate over profession labels using
Lower values indicate smaller class-conditioned disparity across gender groups.