Nonlinear Concept Erasure: a Density Matching Approach

Antoine Saillenfest, Pirmin Lemberger
7/16/2025
cs.LGcs.CL

No official code found. Best implementation: ToineSayan/non-LEOPARD (1 star, last commit 2025-07-17).

Abstract

Ensuring that neural models used in real-world applications cannot infer sensitive information, such as demographic attributes like gender or race, from text representations is a critical challenge when fairness is a concern. We address this issue through concept erasure, a process that removes information related to a specific concept from distributed representations while preserving as much of the remaining semantic information as possible. Our approach involves learning an orthogonal projection in the embedding space, designed to make the class-conditional feature distributions of the discrete concept to erase indistinguishable after projection. By adjusting the rank of the projector, we control the extent of information removal, while its orthogonality ensures strict preservation of the local structure of the embeddings. Our method, termed $\overline{\mathrm{L}}$EOPARD, achieves state-of-the-art performance in nonlinear erasure of a discrete attribute on classic natural language processing benchmarks. Furthermore, we demonstrate that $\overline{\mathrm{L}}$EOPARD effectively mitigates bias in deep nonlinear classifiers, thereby promoting fairness.

View on arXivView PDF

Code Implementations(1)

Pytorch implementation of 'Nonlinear Concept Erasure: A Density Matching Approach' (Saillenfest & Lemberger, 2025), Proceedings of ECAI 2025 - 28th European conference on AI

10PythonJul 15, 20251 years ago
bias-mitigationconcept-erasureembeddings-projectiongender-biasmaximum-mean-discrepancy+1 more

Similar Papers

Cite this paper

@article{saillenfest2025nonlinear,
  title  = {Nonlinear Concept Erasure: a Density Matching Approach},
  author = {Antoine Saillenfest and Pirmin Lemberger},
  year   = {2025},
  eprint = {2507.12341},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.12341v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.12341.svg)](https://codeofpaper.com/paper/2507.12341)

Discussion