Abstract
Machine learning models often learn societal biases from training data, leading to unfair outcomes. We present Spectral Attribute removaL (SAL), a novel, non-iterative method for scrubbing sensitive "guarded" attributes from neural representations. By leveraging Singular Value Decomposition (SVD) on the cross-covariance between inputs and guarded attributes, SAL identifies and prunes the most biased directions. We extend this to Kernel SAL (kSAL) to address nonlinear leakage. Our experiments across word embeddings, sentiment analysis, and professional biographies demonstrate that SAL is 1,000 to 10,000 times faster than existing iterative methods while achieving state-of-the-art debiasing and superior utility preservation.
Introduction
The inadvertent learning and amplification of societal biases—such as gender or racial stereotypes—is a significant challenge in deploying fair machine learning systems. For instance, word embeddings may associate specific professions with a particular gender, and sentiment analysis models may exhibit disparate performance across different ethnicities.
Existing debiasing techniques, such as Iterative Null-space Projection (INLP), often suffer from high computational costs, a requirement for large amounts of labeled sensitive data, and a failure to address nonlinear "leakage." This paper introduces SAL, a "simple and effective" spectral approach designed to remove both linear and nonlinear guarded information while maintaining the representation's utility for downstream tasks.
Methods: Spectral and Kernel Attribute Removal
The fundamental concept of SAL is an inversion of traditional dimensionality reduction. While Principal Component Analysis (PCA) typically retains the "gold"—the directions of maximum variance—SAL identifies the directions where input representations $X$ and guarded attributes $Z$ co-vary the most and intentionally discards them.
Linear SAL
Linear SAL computes the cross-covariance matrix between $X$ and $Z$. SVD is applied to this matrix to identify the principal directions of bias. The data is then projected onto the subspace defined by the smallest singular values, effectively erasing the components most strongly correlated with the guarded attribute.
Kernel SAL (kSAL) and Nonlinear Leakage
A critical observation is that removing linear correlations is often insufficient. Even when linear classifiers can no longer predict a guarded attribute, nonlinear models can often still exploit residual information.
To counter this, kSAL employs the "kernel trick." By operating in a high-dimensional feature space via kernel matrices (e.g., RBF or Polynomial), kSAL can identify and remove complex nonlinear relationships without explicit high-dimensional mapping.
Experimental Results
The authors evaluated SAL on three tasks: debiasing GloVe word embeddings, sentiment analysis on TwitterAAE, and profession prediction from biographies (Bios).
Efficiency and Performance
SAL demonstrates remarkable efficiency, being roughly 1,000 to 10,000 times faster than INLP. For example, on a fair sentiment classification task, SAL required only 0.37 seconds compared to 100 minutes for INLP.
Furthermore, SAL excels at preserving task utility. As shown in the trade-off analysis between profession prediction (main task) and gender prediction (guarded task), SAL consistently maintains higher accuracy on the main task for a given level of bias reduction.
Robustness and Semantic Integrity
SAL is notably robust to data scarcity, performing effectively even when guarded attribute labels are available for only 5% of the dataset. Intrinsic evaluations using SimLex-999 also confirmed that scrubbing bias does not degrade the semantic quality of word embeddings; in some instances, semantic relationships were slightly enhanced.
Conclusion
SAL provides a fast, one-shot alternative to iterative debiasing methods. By addressing both linear and nonlinear leakage through spectral decomposition and kernel methods, it offers a robust framework for creating fairer representations. Future work includes exploring the selection of optimal kernels and extending the method to morphologically rich languages where bias may be encoded in more complex linguistic structures.
Summary updated