Inferensys

Glossary

Concept Erasure

A technique for removing a specific, often sensitive, concept's information from a model's latent representation by projecting the activations onto a subspace orthogonal to the concept vector.
ML engineer running AI model benchmarks, performance charts on multiple screens, late night home office setup.
LATENT SPACE MANIPULATION

What is Concept Erasure?

A technique for removing a specific, often sensitive, concept's information from a model's latent representation by projecting the activations onto a subspace orthogonal to the concept vector.

Concept Erasure is a linear algebraic technique that surgically removes a specific, high-level concept's information from a neural network's activation space. It operates by identifying a concept vector—such as a Concept Activation Vector (CAV)—that encodes the target concept, and then projecting all subsequent activations onto the subspace orthogonal to that vector. This mathematically guarantees that the removed direction contains zero variance for the downstream computation.

This method is a critical tool for algorithmic fairness and controlled model editing, allowing engineers to scrub protected attributes like gender or race from latent representations without retraining the entire model. The process relies on concept subspace projection, where an activation vector is decomposed into parallel and orthogonal components relative to the concept direction. By discarding the parallel component, the model's ability to reconstruct or rely on the erased concept is eliminated, enabling causal interventions for concept-based explanation and bias mitigation.

LATENT SPACE MANIPULATION

Key Characteristics of Concept Erasure

Concept erasure surgically removes specific, often sensitive, information from a model's internal representations without retraining. By projecting activations onto a subspace orthogonal to a target concept vector, the technique ensures downstream predictions remain accurate while guaranteeing the erased attribute cannot be recovered.

05

Guardrails Against Information Leakage

Concept erasure is not absolute. Key failure modes include:

  • Non-linear leakage: Erased concepts may still be recoverable through non-linear probes or mutual information analysis
  • Proxy variables: Correlated features can encode the erased concept indirectly, requiring simultaneous removal of all proxies
  • Temporal leakage: In sequence models, concepts erased at one timestep may be reconstructed from surrounding context
  • Distribution shift: Erasure optimized on training data may fail under domain shift Rigorous auditing with concept recovery attacks is essential to validate erasure completeness.
CONCEPT ERASURE EXPLAINED

Frequently Asked Questions

Concise answers to the most common technical questions about removing sensitive or unwanted concepts from neural network representations.

Concept erasure is a post-hoc model editing technique that removes a specific, human-defined concept's information from a neural network's latent representation. It works by first identifying a concept vector—a direction in the activation space that encodes the target concept (e.g., a sensitive attribute like gender or a stylistic feature). The core mechanism is orthogonal projection: every activation vector in the target layer is projected onto the subspace that is perpendicular to the concept vector. Mathematically, for an activation x and a concept vector v, the erased representation is x' = x - (x·v)v. This linear algebraic operation surgically removes the variance associated with the concept while preserving as much of the remaining representational capacity as possible, ensuring the model can still perform its primary task without relying on the forbidden information.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.