AI Safety
New Method Removes Unsafe Content from AI Image and Video Models Without Quality Loss
Researchers propose a classifier-guided approach that prevents generative models from producing harmful content while maintaining their ability to generate safe, high-quality output.
Safety concerns surrounding generative AI have prompted researchers to develop methods that prevent models from creating unsafe content. A new approach called Classifier-Guided Concept Erasure (CGCE) tackles this problem by filtering out problematic concepts at the point of use rather than retraining the underlying model.
How CGCE Works#
CGCE operates as a lightweight, plug-and-play system that intercepts text prompts before they reach a generative model. The method uses a small classifier that examines text embeddings—the numerical representations of words and phrases—to identify when a user is attempting to generate unsafe content. When such a prompt is detected, the classifier refines it to remove the undesired concept, allowing the model to generate safe alternatives instead.
Unlike traditional erasure methods that permanently modify model weights, CGCE makes these adjustments only at inference time. This means the original generative model remains completely unchanged, which has practical advantages for deployment and compatibility.
Safety vs. Performance Trade-off#
A key challenge in concept erasure has been maintaining quality. Previous approaches either fail against adversarial attacks—attempts to regenerate erased content through rewording or clever prompting—or they degrade the model's ability to produce good results on unrelated, safe content.
CGCE addresses this tension by achieving strong robustness against red-teaming attacks (systematic attempts to break safety measures) while preserving the model's original performance on benign prompts. The method demonstrates superior balance between safety and generative utility across diverse test scenarios.
Versatility and Practical Application#
Researchers validated CGCE across multiple modern text-to-image (T2I) and text-to-video (T2V) models, showing that the approach works effectively regardless of the specific generative architecture. Its efficiency, lightweight design, and model-agnostic nature make it a practical solution for deploying safer generative AI systems at scale.

