Preserving Task-Relevant Information Under Linear Concept Removal

Floris Holstege, Shauli Ravfogel, Bram Wouters

Abstract

Removing unwanted concepts, such as gender or language markers, from neural representations is a critical step toward fair and controllable AI. However, existing linear removal methods often inadvertently degrade task-relevant information when the unwanted concept is statistically correlated with the target task. We introduce SPLINCE (Simultaneous Projection for LINear concept removal and Covariance prEservation), a novel oblique projection technique designed to surgically remove specified concepts while strictly protecting the information necessary for the primary task. By preserving the covariance between representations and target labels, SPLINCE maintains high model utility even in highly biased datasets.

Introduction: The Entanglement Problem

Deep neural networks frequently learn "tangled" representations where task-relevant features are inextricably linked with unwanted biases. For example, a model trained to predict professions from biographies might learn to rely on gender markers because certain professions are historically gender-biased in the training data.

Existing "concept removal" tools often face a painful trade-off: erasing the biased concept (e.g., gender) also erases the task-relevant information (e.g., profession) due to their statistical link. Current state-of-the-art methods, such as LEACE, focus on minimizing total distortion to the embeddings but remain "blind" to which information is actually relevant to the downstream task.

Methodology: SPLINCE

The authors propose SPLINCE, an oblique projection method that addresses this limitation by incorporating a range constraint into the optimization problem. While standard orthogonal projections drop a dimension entirely, SPLINCE "splices out" a specific direction (the unwanted concept) while ensuring that task-relevant directions—defined by the covariance between embeddings and target labels—are mapped perfectly back into the resulting space.

Comparison of projection methods: SPLINCE preserves task-relevant covariance while removing unwanted concepts.

SPLINCE is the unique, minimum-distortion solution that satisfies two primary conditions:

  1. Linear Guardedness: No linear classifier can recover the removed concept from the transformed embeddings.
  2. Covariance Preservation: The statistical relationship between the embeddings and the task label remains exactly the same.

Experimental Evaluation

The researchers evaluated SPLINCE across several diverse benchmarks, including:

  • Bias in Bios: Predicting professions while removing gender bias.
  • Multilingual Text Detoxification: Detecting toxic comments while removing language-specific markers.
  • Winobias: Testing if Language Models (LMs) rely on gender stereotypes.
  • CelebA: Removing "smiling" features while preserving "wearing glasses" features in image data.

Key Results

SPLINCE demonstrates a superior fairness-utility balance, particularly in scenarios where the bias and the task are highly correlated. As shown in the performance benchmarks, baseline methods like LEACE or SAL tend to lose significant task accuracy as correlation increases, whereas SPLINCE remains robust.

Performance of SPLINCE vs. baselines across varying levels of correlation between bias and task labels.

In Large Language Model (LLM) debiasing experiments with Llama 2 and Llama 3, SPLINCE significantly reduced stereotypical bias. Crucially, it preserved the models' ability to utilize factual information, a task where other methods significantly degraded performance.

Discussion and Insights

A key theoretical insight of this work is that the choice of projection range is critical when working with "frozen" pre-trained models or regularized classifiers. SPLINCE acts as a surgical intervention; in profession datasets, it successfully removed reliance on gender stereotypes while preserving or even increasing reliance on factual gender information required for grammatical correctness.

Limitations

While effective, SPLINCE prioritizes task covariance preservation, which can lead to higher overall embedding distortion compared to methods like LEACE. This may impact performance if the same embeddings are used for multiple, unmodeled downstream tasks. Additionally, while SPLINCE excels in NLP, its performance on certain vision benchmarks suggests that covariance subspaces in image data may not align as cleanly as they do in text.

Conclusion

SPLINCE provides a mathematically grounded framework for removing unwanted linear concepts without sacrificing task performance. By explicitly defining what to keep (the range) alongside what to remove (the kernel), it offers a more precise tool for building fair and reliable AI systems.

Summary updated

BibTeX
@inproceedings{holstege2025preserving,
  author = {Floris Holstege and Shauli Ravfogel and Bram Wouters},
  title = {{Preserving Task-Relevant Information Under Linear Concept Removal}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=t79rMQGk4S},
}
Figure