Introduction
Large-scale text-to-image diffusion models, such as Stable Diffusion, are trained on vast, uncurated internet datasets. While these models demonstrate remarkable creative capabilities, they frequently memorize and reproduce problematic content, including NSFW imagery and copyrighted artistic styles. Current "concept removal" techniques typically rely on text-based targets (e.g., removing the keyword "nudity"). However, text is often too blunt to capture the nuances of human ethical standards or the specific brushwork of a protected artist. To bridge this gap, researchers from KAIST have introduced Human Feedback Inversion (HFI), a framework that leverages direct human judgment to identify and remove harmful concepts more precisely.
Methodology
The proposed framework consists of two primary components: Human Feedback Inversion (HFI) and Safe self-Distillation Diffusion (SDD).
Human Feedback Inversion (HFI)
Instead of relying on predefined text labels, HFI uses human feedback to define what should be removed. The process begins by generating a set of images and having humans rank or label them based on their perceived harm or stylistic similarity. A Reward Model is trained on this feedback. Subsequently, Textual Inversion is employed to find a "soft token"—an embedding vector—that maximizes the reward. This soft token serves as a mathematical representation of the problematic concept as perceived by humans, capturing visual nuances that text descriptions often miss.
Safe self-Distillation Diffusion (SDD)
Once the soft token is identified, the model must be "untrained" on that specific concept without losing its general utility. The authors implement a student-teacher distillation setup. The student model is trained to predict noise for the problematic token such that its output matches the model's own unconditional (empty prompt) output. To maintain stability and prevent the model from losing its creative breadth, the teacher model is an Exponential Moving Average (EMA) of the student, providing a consistent target for the unlearning process.
Experimental Evaluation
The framework was evaluated using the I2P (Inappropriate Image Prompts) dataset for NSFW content and the MSCOCO dataset for general utility testing. For style removal, the researchers targeted the distinct styles of artists like Vincent van Gogh, Leonid Afremov, and Edward Hopper.
Key Results
- NSFW Suppression: In tests with provocative prompts, the baseline Stable Diffusion v1.4 produced NSFW content 74.18% of the time. The HFI+SDD approach reduced this frequency to just 0.28%.
- Precision in Style Removal: For Van Gogh’s style, the "Target Artist Ratio" (the frequency at which a classifier identifies the style) dropped from 95.9% to 9.5%. Unlike previous methods that often turn artistic prompts into bland photographs, HFI+SDD successfully removed the specific artist's signature traits while preserving the general "painting-like" quality of the output.
- Utility Preservation: A major challenge in model safety is avoiding "catastrophic forgetting." Evaluation on MSCOCO confirmed that HFI+SDD maintains high image quality and prompt alignment for safe concepts while aggressively suppressing targeted unsafe ones.
Conclusion and Future Work
Human Feedback Inversion demonstrates that human perception can be effectively compressed into soft tokens to guide model safety. By moving beyond blunt text-based filtering, HFI+SDD provides a more nuanced and effective way to align generative AI with community standards and copyright protections. Future work may explore extending this framework to "personalization in reverse," allowing communities to define their own custom boundaries for model generation based on collective standards.
Summary updated