← Lab /AI/ML

FF-LEACE removes linear predictability of concepts without needing label access

FF-LEACE provides the least-squares optimal transformation that eliminates any linear correlation between representations and a target concept without requiring concept labels at inference time.

AI/ML EleutherAI 13 Jun 2024 Method Theory

Published as “Free Form Least-Squares Concept Erasure Without Oracle Concept Labels”

Why it matters

Enables practical removal of linear concept information from neural representations without needing concept labels at deployment.

Summary

The authors derive a closed-form function r* that is the nearest to the identity while guaranteeing zero covariance between the edited representation and the target concept Z. The derivation shows that r*(x) = h(x) - Σ_{h(X)Z} Σ_{f(X)f(X)}^+ (f(x) - E[Z]), where f(x) is the conditional expectation of Z given X. They prove optimality by reducing the problem to an ordinary least-squares residual and showing equivalence of two optimization formulations. Evidence consists of a toy experiment with a synthetic dataset where the conditional expectation can be computed analytically, and a public PyTorch implementation is provided.

What they found 1

  1. The optimal edit function is r*(x) = h(x) - Σ_{h(X)Z} Σ_{f(X)f(X)}^+ (f(x) - E[Z])

    “r^*(x) = h(x) - \mathbf{\Sigma}_{h(X)Z} \mathbf{\Sigma}_{f(X)f(X)}^+ \big(\mathrm f(x) - \mathbb{E}[\mathrm Z]\big)”

Caveats 3

  • The authors note that estimating the conditional expectation f(x) = E[Z|X=x] is non-trivial, especially in high dimensions, and may require a large dataset.
  • Requires accurate estimation of the conditional expectation f(x), which can be difficult in practice.
  • Demonstrated only on a toy problem where f(x) is analytically tractable.

What’s new here 4

  • Closed-form solution for concept erasure that does not require concept labels at inference.
  • Derivation of the optimal edit function under the constraint that the edit depends only on the original representation.
  • Proof that the solution minimizes the least-squares distance to the identity while zeroing covariance with the concept.
  • Release of a PyTorch implementation and demonstration on a toy problem.