Saved in:
Bibliographic Details
Main Authors: Wang, Peiran, Li, Qiyu, Yu, Longxuan, Wang, Ziyao, Li, Ang, Jin, Haojian
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2408.07728
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914947718447104
author Wang, Peiran
Li, Qiyu
Yu, Longxuan
Wang, Ziyao
Li, Ang
Jin, Haojian
author_facet Wang, Peiran
Li, Qiyu
Yu, Longxuan
Wang, Ziyao
Li, Ang
Jin, Haojian
contents We present Moderator, a policy-based model management system that allows administrators to specify fine-grained content moderation policies and modify the weights of a text-to-image (TTI) model to make it significantly more challenging for users to produce images that violate the policies. In contrast to existing general-purpose model editing techniques, which unlearn concepts without considering the associated contexts, Moderator allows admins to specify what content should be moderated, under which context, how it should be moderated, and why moderation is necessary. Given a set of policies, Moderator first prompts the original model to generate images that need to be moderated, then uses these self-generated images to reverse fine-tune the model to compute task vectors for moderation and finally negates the original model with the task vectors to decrease its performance in generating moderated content. We evaluated Moderator with 14 participants to play the role of admins and found they could quickly learn and author policies to pass unit tests in approximately 2.29 policy iterations. Our experiment with 32 stable diffusion users suggested that Moderator can prevent 65% of users from generating moderated content under 15 attempts and require the remaining users an average of 8.3 times more attempts to generate undesired content.
format Preprint
id arxiv_https___arxiv_org_abs_2408_07728
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Moderator: Moderating Text-to-Image Diffusion Models through Fine-grained Context-based Policies
Wang, Peiran
Li, Qiyu
Yu, Longxuan
Wang, Ziyao
Li, Ang
Jin, Haojian
Cryptography and Security
We present Moderator, a policy-based model management system that allows administrators to specify fine-grained content moderation policies and modify the weights of a text-to-image (TTI) model to make it significantly more challenging for users to produce images that violate the policies. In contrast to existing general-purpose model editing techniques, which unlearn concepts without considering the associated contexts, Moderator allows admins to specify what content should be moderated, under which context, how it should be moderated, and why moderation is necessary. Given a set of policies, Moderator first prompts the original model to generate images that need to be moderated, then uses these self-generated images to reverse fine-tune the model to compute task vectors for moderation and finally negates the original model with the task vectors to decrease its performance in generating moderated content. We evaluated Moderator with 14 participants to play the role of admins and found they could quickly learn and author policies to pass unit tests in approximately 2.29 policy iterations. Our experiment with 32 stable diffusion users suggested that Moderator can prevent 65% of users from generating moderated content under 15 attempts and require the remaining users an average of 8.3 times more attempts to generate undesired content.
title Moderator: Moderating Text-to-Image Diffusion Models through Fine-grained Context-based Policies
topic Cryptography and Security
url https://arxiv.org/abs/2408.07728