Introduction
As machine learning models increasingly rely on high-dimensional embeddings to represent complex data, the risk of "entanglement" grows. Embeddings—dense vector representations of text, images, or audio—often inadvertently encode sensitive attributes such as gender, race, or geographic location alongside the primary task information. This entanglement poses significant risks to fairness and privacy.
This paper, presented at NeurIPS 2023, introduces KRaM (Kernelized Rate-Distortion Maximizer), a robust framework designed to scrub specific attributes from data representations while maintaining the utility of the remaining information. Unlike previous methods that were often limited to simple categorical labels, KRaM provides a versatile tool for continuous and vector-valued concept erasure.
The Problem: Robustness vs. Utility
Concept erasure aims to transform a representation space such that a specific "concept" is no longer detectable. The challenge is twofold:
- Robustness: The erasure must be thorough enough that even a non-linear adversary—such as a complex neural network—cannot recover the scrubbed information.
- Utility: The transformation must retain as much of the original data structure as possible so the embeddings remain effective for downstream tasks (e.g., sentiment analysis or toxicity filtering).
Existing techniques often rely on linear projections, which are easily bypassed by non-linear probes, or they struggle to handle complex, non-categorical concepts like age or multi-dimensional scores.
Methodology: Kernelized Rate-Distortion Maximization
KRaM leverages Rate-Distortion Theory, a branch of information theory concerned with the minimum number of bits (coding length) required to represent a distribution.
The KRaM Objective
At its core, KRaM treats concept erasure as a distance-matching problem. It aims to maximize a kernelized rate-distortion function, effectively transforming the representation space so that data points with similar concept labels are pushed far apart.
Key Innovations
- Kernelization: By employing kernels, KRaM can define similarity for any data type. This enables the framework to handle continuous values (e.g., age) and vector-valued concepts (e.g., multi-dimensional religious affiliation scores) that were previously difficult to erase.
- Volume Constraint: Simply expanding the distance between points could cause the representation space to explode in size, potentially hiding information rather than erasing it. KRaM includes a constraint to preserve the "volume" or intrinsic dimension of the original space, ensuring the cleaned embeddings remain descriptive.
- Alignment Score ($A_k$): To measure utility without running exhaustive downstream experiments, the authors introduced the $A_k$ score. Based on $k$-nearest neighbor overlap, this metric measures how well the local neighborhood structure of the original data is preserved. The authors found a ~0.99 correlation between $A_k$ and downstream task performance.
Experimental Evaluation
The authors tested KRaM across diverse domains and concept types:
- Categorical Erasure: Removing gender from GloVe embeddings and race from the DIAL tweet dataset.
- Continuous Erasure: Scrubbing the African American population ratio from the UCI Crimes dataset.
- Vector-Valued Erasure: Erasing complex, multi-dimensional identity labels from GPT-3.5 embeddings in the Jigsaw Toxicity dataset.
- Image Generalization: Removing background color in Colored MNIST to improve digit classification and erasing "makeup" attributes in CelebA.
Key Results
KRaM demonstrated significant improvements over existing baselines in both erasure efficacy and utility preservation:
- Superior Erasure: In the Jigsaw dataset experiment using GPT-3.5 embeddings, KRaM achieved a 76% gain in Mean Squared Error (MSE) for the erased concept compared to the strongest baselines, indicating that the sensitive information was substantially harder to recover.
- High Utility: Despite the aggressive scrubbing of sensitive attributes in the Jigsaw dataset, toxicity classification accuracy only saw a marginal decrease, moving from 93.2% to 92.1%.
- Fairness and Generalization: On the UCI Crimes dataset, KRaM reduced demographic parity leakage ($\Delta$GDP) to a negligible 0.001. Furthermore, on Colored MNIST, erasing the "shortcut" of background color actually improved digit recognition accuracy from 79.9% to 87.1%.
Discussion and Limitations
While KRaM represents a significant step forward, the authors note an inherent "erasure tax." Robustly removing a concept inevitably distorts the original information to some degree. Additionally, KRaM requires pre-defined labels for the concepts intended for erasure; it cannot autonomously discover hidden biases.
Future work remains to determine the theoretical minimum amount of information distortion required to achieve total erasure. Nonetheless, KRaM provides a powerful, mathematically grounded framework for building fairer and more private AI systems across a wide array of data modalities.
Summary updated