Safety

Concept Scrubbing in LLM (LEACE)

First page
Concept Scrubbing in LLM (LEACE)
Paper summary

Least-squares Concept Erasure - erases a target concept from every layer of a neural network.

Ask this paper

Key points
01

Closed-form erasure: Provides a closed-form solution for removing linearly-encoded concepts (like gender) from representations at every layer.

02

Theoretical guarantees: Mathematically guarantees the concept cannot be linearly recovered after erasure.

03

Bias reduction: Applied to reduce gender bias in BERT embeddings while minimizing impact on other capabilities.

04

Interpretability tool: Became a standard tool in the model-editing and interpretability literature for studying what information models use.

Abstract

Concept erasure aims to remove specified features from an embedding. It can improve fairness (e.g. preventing a classifier from using gender or race) and interpretability (e.g. removing a concept to observe changes in model behavior). We introduce LEAst-squares Concept Erasure (LEACE), a closed-form method which provably prevents all linear classifiers from detecting a concept while changing the embedding as little as possible, as measured by a broad class of norms. We apply LEACE to large language models with a novel procedure called "concept scrubbing," which erases target concept information from every layer in the network. We demonstrate our method on two tasks: measuring the reliance of language models on part-of-speech information, and reducing gender bias in BERT embeddings. Code is available at https://github.com/EleutherAI/concept-erasure.

Every Monday
Get next week’s papers.
Subscribe on Substack