TL;DR
Concept erasure aims to remove specific attributes (like bias, gender, or toxicity) from neural representations without destroying other useful information. This paper introduces the Manifold Constraint Hypothesis (MCH), positing that representation modifications should be restricted to the lower-dimensional manifold of natural data to protect unrelated features. The authors implement this via MANCE, a new method that achieves state-of-the-art nonlinear concept erasure by projecting gradient updates directly onto locally estimated tangent spaces.
What Problem Does This Paper Address?
When we train deep learning models, their internal representations encode a vast array of features. Often, we want to erase a specific "target concept"—for instance, removing gender information to mitigate algorithmic bias, or stripping out toxicity.
The core challenge here is a fundamental tension between leakage (how much of the target concept remains) and surgicality (how well we preserve all other encoded information). Because different concepts are frequently entangled due to data correlations or representation superposition, modifying one feature risks inadvertently damaging others. Furthermore, because we rarely know all the other concepts encoded in a representation, we cannot easily frame erasure as a standard constrained optimization problem.
Prior methods often make unconstrained edits in the full representation space, pushing vectors away from the natural data distribution and degrading downstream performance.
Methods
The authors propose MANCE (MANifold aware Concept Erasure), which operationalizes the idea that interventions should be constrained to the natural representation manifold $\mathcal{M}$.
The MANCE framework operates iteratively through three main steps:
- Local Manifold Estimation: For each representation vector $x_i$, MANCE finds its $k$-nearest neighbors among the unedited natural representations. It constructs a local PCA matrix from these neighbors and uses Singular Value Decomposition (SVD) to find the dominant tangent directions, defining the local tangent space $T_{x_i}(\mathcal{M})$.
- Tangent Projection: It trains a nonlinear concept probe (an MLP) to predict the target concept. The gradient of this probe with respect to the input representation is calculated and projected onto the locally estimated tangent basis. The coordinates are spectrally reweighted by their singular values to favor well-supported directions.
- Per-Sample Step Size: Instead of a global step size, MANCE calculates a per-sample step size bounded by a local-neighborhood cap. This ensures that the update magnitude is proportional to local data density, keeping the first-order tangent approximation valid.
Variants
- MANCE+: Prepends LEACE (a closed-form linear erasure method) to remove first-moment linear signals before running the main MANCE loop.
- MANCE++: Additionally prepends a rank-2 projection (
CovMatch) to eliminate second-moment class-conditional covariance asymmetry. This combined pipeline represents their strongest method.
Datasets
The authors evaluated their approach across 119 distinct settings spanning both text and vision modalities:
- NLP Settings (39 settings): Evaluated on 13 language model families (ranging from 0.5B to 27B parameters, including Qwen2.5, Gemma-2, Gemma-3, Llama-3.2, and Mistral-7B) at their 50%-depth layers. They targeted three concepts: Sycophancy (control task: answer preference), Gender via Bias in Bios (control task: profession), and Safety via PKU-SafeRLHF (control task: helpfulness).
- Vision Settings (80 settings): Evaluated on CLIP ViT-B/32 final-layer pooled image embeddings of the CelebA dataset. They targeted 40 binary facial attributes under two distinct control regimes: highly entangled (most-correlated attributes) and highly disentangled (least-correlated attributes).
Key Insights and Ideas
- The Manifold as a Regularizer: Restricting edits to stay within the local neighborhood of natural representations acts as an implicit safeguard. It prevents the erasure process from destroying hidden, unlabeled control concepts.
- Plug-and-Play Complementarity: MANCE is orthogonal to prior erasure techniques. Rather than replacing older methods like INLP or LEACE, MANCE can be applied on top of them to consistently clean up residual nonlinear leakage.
- Local vs. Global Geometry: The paper demonstrates that complex, nonlinear concepts like sycophancy exhibit high local-global misalignment. A single global linear direction is a poor summary of the concept across different neighborhoods, which explains why locally adaptive methods like MANCE outperform global projections.
Key Results
MANCE++ establishes a new state-of-the-art for nonlinear concept erasure, demonstrating a superior tradeoff between target leakage and surgicality.
- Drastic Leakage Reduction: Applying MANCE on top of existing baselines consistently drives target leakage close to chance. Under a strict surgicality budget where control degradation is kept under 1 percentage point ($D_Y \le 1\text{pp}$), adding MANCE drops LEACE's residual leakage from 19.1pp to 1.5pp, and INLP's leakage from 15.2pp to 1.8pp.
- Superior Coverage in Entangled Settings: In difficult vision settings where control concepts are highly correlated with the target, traditional nonlinear erasers like Obliviator often fail to find any valid update within the surgicality budget (low coverage). MANCE++ maintains high coverage across these difficult attributes while keeping target leakage near the floor.
Limitations and Future Work
- Computational Cost: MANCE is an iterative algorithm that requires computing $k$-NN queries and local SVDs for every single representation at every round, alongside periodically retraining an MLP probe. This makes it significantly slower than one-shot linear methods (taking ~8 minutes per panel compared to mere seconds for LEACE).
- Empirical Evaluation Limits: The metrics for leakage and surgicality rely on retraining empirical MLP probes rather than providing absolute mathematical guarantees that the information is completely unrecoverable by any arbitrary function.
- Sensitivity to Manifold Quality: The first-order local tangent space approximation can degrade in regions where the natural data distribution is sparse or the manifold is highly curved. The authors suggest that integrating more sophisticated, global manifold estimators could be a promising direction for future work.
Summary updated