Robust Concept Erasure via Kernelized Rate-Distortion Maximization

Distributed representations provide a vector space that captures meaningful relationships between data instances. The distributed nature of these representations, however, entangles together multiple attributes or concepts of data instances (e.g., the topic or sentiment of a text, characteristics of the author (age, gender, etc), etc). Recent work has proposed the task of concept erasure, in which rather than making a concept predictable, the goal is to remove an attribute from distributed representations while retaining other information from the original representation space as much as possible. In this paper, we propose a new distance metric learning-based objective, the Kernelized Rate-Distortion Maximizer (KRaM), for performing concept erasure. KRaM fits a transformation of representations to match a specified distance measure (defined by a labeled concept to erase) using a modified rate-distortion function. Specifically, KRaM's objective function aims to make instances with similar concept labels dissimilar in the learned representation space while retaining other information. We find that optimizing KRaM effectively erases various types of concepts: categorical, continuous, and vector-valued variables from data representations across diverse domains. We also provide a theoretical analysis of several properties of KRaM's objective. To assess the quality of the learned representations, we propose an alignment score to evaluate their similarity with the original representation space. Additionally, we conduct experiments to showcase KRaM's efficacy in various settings, from erasing binary gender variables in word embeddings to vector-valued variables in GPT-3 representations.

Paper

Similar papers

Peer review

Reviewer iqZj5/10 · confidence 5/52023-07-06

Summary

This paper considers the concept erasure task removing an attribute from distributed representations while retaining other information from the original representation space as much as possible. Specifically, it proposes a Kernelized Rate-Distortion Maximizer (KRaM) framework and provides a theoretical analysis for the proposed algorithm. Finally, various experiments are conducted to show the effectiveness of KRaM.

Strengths

The topic considered in this work is important/interesting and the structure of the paper is well-organized.

Weaknesses

1. The contributions of this paper are unclear, and the novelty is also insufficient. From my understanding, the major weakness is that the KRaM is just a simple application of the kernels to the rate-distortion maximizer framework. Meanwhile, the strengths/differences between the proposed KRaM and the current concept erasure methods such as [1,2,3]. The authors should make more discussions in the rebuttal phase. 2. The theoretical results are also limited because it merely applies to the RBF kernel. Thus, it is better to show the theoretical results for other kernels. 3. The experiments are insufficient to support the effectiveness of the proposed KRaM. Because 1) there are a few competitive methods [1,2] that are not considered in this work; 2) the improvements of the KRaM against the current methods are limited. In particular, in Tab.2, compared with RLACE, the performance gap is sharp such as Acc.(y) and A_k. 4. Why do we need to train an extra concept function f? What will happen to the performance if we only use the outputs of a pre-trained model as f? Ref: [1] Learning Diverse and Discriminative Representations via the Principle of Maximal Coding Rate Reduction. [2] Kernelized Concept Erasure. [3] Probing Classifiers are Unreliable for Concept Removal and Detection. ================================================== Post-rebuttal: My concerns are basically solved. So I'd like to raise my score to BA.

Questions

See weakness.

Rating

5: Borderline accept: Technically solid paper where reasons to accept outweigh reasons to reject, e.g., limited evaluation. Please use sparingly.

Confidence

5: You are absolutely certain about your assessment. You are very familiar with the related work and checked the math/other details carefully.

Soundness

2 fair

Presentation

2 fair

Contribution

2 fair

Limitations

None

Reviewer x4Ej6/10 · confidence 4/52023-07-06

Summary

The KRaM framework is proposed in this paper to perform concept erasure. The approach aims to differentiate similar concept labels in the learned representation space while preserving other information. The paper demonstrates the effectiveness of KRaM in erasing various concepts across different forms of representation (i.e., categorical, continuous, and vector-value variables) through theoretical analysis and empirical setups. Additionally, the paper proposes a clear measurement to evaluate the alignment of representations before and after concept erasure.

Strengths

This paper presents several strengths, including a clear and well-written introduction that guides the reader to understand the problem and the motivations behind it, as well as providing helpful background study. They provide clear setups to study and offer results empirically and theoretically. This paper proposes a new approach to address the limitation of prior works, which did not evaluate the amount of information preserved in the representation. The proposed method uses a clever and heuristic idea to measure alignment by comparing overlapping neighborhoods of the original representation.

Weaknesses

Here are some potential improvements to the original content: 1. In line 273, it is stated that a more effective method of erasing concepts would result in low accuracy and high mean squared error (MSE) for the deleted concept. This statement may seem counterintuitive, since KRaM claims to retain some original information. However, as shown in Figure 3, the performance of downstream task drops relatively significantly when concepts such as Christian, Jewish, and Muslim are erased. The relationship between utility and representation preservation needs more explanation. 2. The author has presented a heuristic approach to determine the amount of information that is retained in a representation. However, it is unclear how this approach can guarantee that the representation is altered according to the given concept, particularly in the continuous form of representation.

Questions

Is it possible to apply KRaM to image-based datasets? Doing so could potentially enhance the proposed method's ability to generalize across various modalities.

Rating

6: Weak Accept: Technically solid, moderate-to-high impact paper, with no major concerns with respect to evaluation, resources, reproducibility, ethical considerations.

Confidence

4: You are confident in your assessment, but not absolutely certain. It is unlikely, but not impossible, that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work.

Soundness

3 good

Presentation

2 fair

Contribution

3 good

Limitations

The paper presents a novel framework that should potentially be applied to various modalities. Finding and understanding the exact information which is altered by concept erasure is a future work and has positive societal impact to the field.

Reviewer GgzL7/10 · confidence 3/52023-07-06

Summary

The paper proposes a novel method to erase concepts from a distributed/latent data representation. The method is based on a kernelized rate-distortion function that can be maximized to achieve concept erasure. The kernel encodes the "concept similarity" between two samples, and it is therefore supervised. That is, it needs a concept label associated with the samples. From a set of experiments, the authors show that in general they manage to achieve a more effective concept erasure without loss of performance in downstream tasks.

Strengths

- (Significance) Concept erasure is a timely topic for AI safety, and an interesting topic per se in the broader interpretability field. - (Novelty) Kernel-trick, coupled with rate-distortion theory seems like a reasonable novel contribution. - (Soundness) Experiments seem convincing to support authors claims

Weaknesses

- (Soundness) Assumptions and drawbacks should be further clarified. See section below. - (Theoretical results) I am unsure how useful is the proven lemma in the overall narrative of the paper. The only mentioned conclusion is the one in line L.202. However, this conclusion can be reached by simply looking at equation 2. And actually the conclusion is wrong if we were to only look at the inequality: since R(Z) is the *lower* bound, increasing R(Z/K) does not necessarily imply an increase in R(Z).

Questions

- Gaussianity assumption: have the authors tested with different formulations of the rate distortion function? would this be feasible? - Determinant scalability: the determinant seems to badly scale with the number of samples in Z. Could the authors comment on the computational bottleneck of their method, and possible ways to solve it? - Additional assumptions: I believe there should also be an assumption about the concepts being uncorrelated. I would imagine that if different concepts are correlated in the dataset, then the authors method could accidentally erase more concept, e.g. using one of the experiments, erasing religion could potentially erase also ethnicity information. Could the authors comment on this, potentially also from the perspective of societal impacts. - As a sanity check, have the authors tested their method on the bottleneck layer of a concept bottleneck neural network [Koh, 2020]? I would imagine that if the method worked properly, then the authors could clearly see that one of the dimension in the bottleneck layer would essentially become constant.

Rating

7: Accept: Technically solid paper, with high impact on at least one sub-area, or moderate-to-high impact on more than one areas, with good-to-excellent evaluation, resources, reproducibility, and no unaddressed ethical considerations.

Confidence

3: You are fairly confident in your assessment. It is possible that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work. Math/other details were not carefully checked.

Soundness

3 good

Presentation

3 good

Contribution

3 good

Limitations

Only few limitations are discussed from a techincal perspective. Societal impacts are also very briefly mentioned.

Reviewer yWDJ7/10 · confidence 3/52023-07-27

Summary

This paper studies concept erasure, a task proposed by prior work [1,2] which aims to remove information from a chosen attribute while retaining other information from the original input as much as possible. This paper achieves this by maximizing the kernelized rate-distortion maximizer (KRaM), an objective from information theory measuring how well lossy compression methods obtain the original information—specifically, maximizing the objective results in increased dissimilarity between instance pairs with similar concept labels, leading to the distances in the learned representation unrelated to the concept labels, achieving concept erasure. To preserve the information from the original input, a constraint is proposed in this paper by maintaining the rate-distortion function to a constant size using a Lagrangian function. The authors propose to use k-nearest neighbors to measure the alignment: how much the learned representation preserves the information from the original input after concept erasure. Bounds for the objective and expectation of the alignment are provided. Finally, the authors provide empirical results to demonstrate that the proposed method can erase concepts (categorical, continuous, and vector-valued) in the DIAL, UCI Crimes, and Jigsaw toxicity datasets. [1] Ravfogel, Shauli, et al. "Kernelized Concept Erasure." arXiv preprint arXiv:2201.12191 (2022). [2] Ravfogel, Shauli, et al. "Linear adversarial concept erasure." International Conference on Machine Learning. PMLR, 2022.

Strengths

Originality: The research problem is already defined and studied, but the method of using kernelized rate-distortion function for concept erasure is new. Quality: The quality of this submission is relatively high. The related publications are cited and discussed. The empirical analysis is comprehensive, and the theoretical results are also provided. Notably, the method can erase concepts from categorical attributes and continuous or vector-based concepts (e.g., word vectors). A synthetic experiment verifies the proposed measuring alignment and outperforms other alignment measurements. The empirical results on vector-valued concept erasure are convincing. Clarity: The paper is well-written. Key terms, such as concepts, the rate-distortion function, and the alignment score measurement, are clearly defined. Significance: The authors make a great effort to use the proposed KraM on distributed word vector representations such as GPT-3.5 to erase concepts, making this work very relevant and significant to the recent trends of large language models and valuable for many real-world tasks requiring removing certain concepts or attributes.

Weaknesses

> Instead, objectives for concept erasure use no supervision (apart from the labels of the concept to remove). This makes using adversarial learning or mutual information estimation methods for concept erasure difficult. Unfortunately, this may not be the case. Although the specific problem of concept erasure is not studied in mutual information estimation methods, works such as [1-3] remove information from a particular attribute without any downstream task known using mutual information estimation or invariant learning. It would be helpful for the reviewer to give final recommendations if the authors could further compare these works. Also, the proposed method has similar or worse results than baselines, such as some entries in Table 1. [3] Song, Jiaming, et al. "Learning controllable fair representations." The 22nd International Conference on Artificial Intelligence and Statistics. PMLR, 2019. [4] Tsai, Yao-Hung Hubert, et al. "Conditional contrastive learning: Removing undesirable information in self-supervised representations." arXiv e-prints (2021): arXiv-2106. [5] Moyer, Daniel, et al. "Invariant representations without adversarial training." Advances in Neural Information Processing Systems 31 (2018).

Questions

In Figure 4, the accuracy and alignment score trend differs from Section 4, where the authors claim that the alignment score is well correlated with the downstream performance. The reviewer is unsure about this and gently asks the authors to clarify.

Rating

7: Accept: Technically solid paper, with high impact on at least one sub-area, or moderate-to-high impact on more than one areas, with good-to-excellent evaluation, resources, reproducibility, and no unaddressed ethical considerations.

Confidence

3: You are fairly confident in your assessment. It is possible that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work. Math/other details were not carefully checked.

Soundness

3 good

Presentation

4 excellent

Contribution

3 good

Limitations

The authors have discussed the limitations of the work as well as future directions.

Authorsrebuttal2023-08-14

Thanks for taking the time to review our responses. Please let us know if you have any questions or would like any further clarifications.

Authorsrebuttal2023-08-14

Thanks for taking the time to review our responses. Please let us know if you have any questions or would like any further clarifications.

Authorsrebuttal2023-08-14

Thanks for taking the time to review our responses. Please let us know if you have any questions or would like any further clarifications.

Reviewer x4Ej2023-08-15

Thanks for your clarifications!!

Dear Authors, Thanks for your response and detailed clarifications. About the W1, I have read the paper again and correct my understanding to Ln 273. And thanks for offering additional image-based experiments, which looks great and promising. I believe this can be included in the paper and enhance paper's contribution. I raised my score by 2 and support this paper to be accepted. Thanks!

Authorsrebuttal2023-08-14

Thanks for taking the time to review our responses. Please let us know if you have any questions or would like any further clarifications.

Reviewer yWDJ2023-08-16

Thank you

This reviewer's question and concern have been addressed. Therefore, the reviewer raises the rating.

Reviewer GgzL2023-08-18

Thanks for the rebuttal

I thank the authors for the insightful rebuttal. Most of my concerns were addressed, however I am unsure about the additional experiment provided. The table provided does not seem to directly address my concern since, if I am understanding correctly, the additional experiment is essentially the same as the ones already provided in the submission (E.g. figure 3). What I would have like to see was more something similar to Figure 5, but for the very specific case of concept bottleneck models, or similar models where we know that the concepts are aligned to the canonical base, and therefore I find it to be a very nice sanity check to see that only the dimension of the erased concept is affected. I would find this to be better evidence than Figure 5 since an additional step (UMAP) is needed for the visualization, which makes it more difficult to fully give credit to Kram for the concept erasure. Actually thinking about it, your method does not need to be applied to a latent representation from a neural network, right? Theoretically speaking, for any tabular dataset, the original feature of the input data could be regarded as concepts. In other words, if you were to apply your method to, say, the Iris dataset to delete the "concept" "petal width", we should see an effect only for that feature, right? Would you be able to run such an experiment? Should be quick I believe.

Authorsrebuttal2023-08-18

Thank you very much for your reply and your continued clarifications and suggestions. Motivated by your suggestion, we have conducted an additional experiment. We will provide the details for this experiment following our explanation of how concept erasure handles deleting an axis-aligned concept. *Note about removing axis-aligned attributes* We wanted to clarify that having an axis-aligned feature be zero does not necessarily mean that the concept has been deleted. For example, it may be still possible to infer the deleted concept using a linear combination (or a non-linear function) of the other features. Rather it is the case that the dimensionality of the subspace of the data post-concept deletion will be reduced. In addition to that, the predictive power of classifiers trying to predict the deleted concept should reduce significantly. To illustrate this further, we design an experiment, following your suggestion, with axis-aligned concepts [NB 1]. *Experiment*: IRIS has 4-dimensional data; instead we consider a simpler, easier to visualize setting. * Generate a synthetic 2D dataset involving two Gaussians centered at (0, 2) and (0, -2) respectively, and identity covariance. * Consider the $y$-axis as the continuous concept that will be deleted [NB 2] The *desired outcome* of deleting an axis-aligned concept in 2D data is that points should lie on a 1D line and the KRaM output should be least correlated with the axis concept that was deleted. That is a reduction in dimension such that most of the data variation should be constrained along a single dimension for this case. *Results*: We do observe that most points lie on a 1D line and their variation is constrained along a single dimension. [NB 3] *How do we know the correct axis information has been deleted?* We color-code the post-processed representations along with the original $y$-axis values and find no correlation among the points. We further tried predicting the concept from the original data and the KRaM output and found the MSE (for concept) had increased from 0.00025 (original) to 0.77 (KRaM) further showcasing the effectiveness of KRaM. Since we are unable to show plots we wanted to give some numbers to showcase that KRaM output indeed lies on a line (one dimension less than the input). For this, we looked at the eigenvalues of both the original data and the concept deleted (by KRaM) output. The fraction of eigenvalue masses in the original data [65%, 35%] and in the KRaM concept deleted output the fraction of masses is [99.998%, 0.002%]. Of course, one can perform rotation of the resultant points to align them exactly with the $y$-axis, which would result, as you suggested, in the $y$-axis becoming zero. [NB 1] We are unable to share the plots because we cannot edit the response PDF during the rebuttal. NeurIPS also doesn’t allow sharing any anonymous links. We will include the results in the paper. [NB 2] We produced a plot in which the points are color-coded according to the $y$-axis value, i.e., the color attribute is the one that will be deleted. [NB 3] We produce a figure that shows each point in the dataset post-concept deletion. Indeed, the result is one line per Gaussian such that the color of points along the line is entirely mixed up without any clear or generalizable pattern.

Reviewer GgzL2023-08-18

Great!

Thanks for the additional experiment! I am leaning towards raising the score to 7 already, but if you allow me to be a lil bit pickier... Your result is in support of your method working under gaussianity assumption. For the sake of "real-world" applicability, could you apply it still to the IRIS dataset just by discarding one of the features (since we are not caring about classification performance)? Does the method still perform well? If not, is it solely because of your formulation? Or could there be other reasons?

Authorsrebuttal2023-08-19

Thanks! Results on IRIS

We appreciate your positivity towards the paper and leaning towards increasing your score. Here are the results for the experiment you suggested on IRIS (erasing the petal length feature). We divided the data randomly into 80%/20% train/test split and report the results on the test set. We see that the erasure leads to an output that lies in fewer dimensions than the input. The minimum eigenvalue mass changes from 1.58% [80.59, 14.91, 2.90, 1.58] to 1.5e-6% [81.79, 17.79, 0.42, 1.5e-06]. While the MSE increases from 0.0033 (original data) -> 0.0114 (KRaM output). Thank you very much for being so engaged in this discussion! We really appreciate it! We will add these results to the paper.

Program Chairsdecision2023-09-21

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC