Skip to content

Commit

Permalink
Paper Revision: 2024.naacl-long.351, closes #4134.
Browse files Browse the repository at this point in the history
  • Loading branch information
anthology-assist committed Dec 12, 2024
1 parent 2bcdd77 commit b693837
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data/xml/2024.naacl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4712,12 +4712,13 @@
<author><first>Suhang</first><last>Wang</last><affiliation>Pennsylvania State University</affiliation></author>
<pages>6340-6354</pages>
<abstract>Text-to-Image (T2I) models have shown great performance in generating images based on textual prompts. However, these models are vulnerable to unsafe input to generate unsafe content like sexual, harassment and illegal-activity images. Existing studies based on image checker, model fine-tuning and embedding blocking are impractical in real-world applications. Hence, we propose the first universal **p**rompt **o**ptimizer for **s**afe T2**I** (**POSI**) generation in black-box scenario. We first construct a dataset consisting of toxic-clean prompt pairs by GPT-3.5 Turbo. To guide the optimizer to have the ability of converting toxic prompt to clean prompt while preserving semantic information, we design a novel reward function measuring toxicity and text alignment of generated images and train the optimizer through Proximal Policy Optimization. Experiments show that our approach can effectively reduce the likelihood of various T2I models in generating inappropriate images, with no significant impact on text alignment. It is also flexible to be combined with methods to achieve better performance. Our code is available at [https://github.com/wzongyu/POSI](https://github.com/wzongyu/POSI).</abstract>
<url hash="6c6693ff">2024.naacl-long.351</url>
<url hash="05a3eb90">2024.naacl-long.351</url>
<bibkey>wu-etal-2024-universal</bibkey>
<revision id="1" href="2024.naacl-long.351v1" hash="15802fcf"/>
<revision id="2" href="2024.naacl-long.351v2" hash="77e22f71" date="2024-06-28">Minor updates.</revision>
<revision id="3" href="2024.naacl-long.351v3" hash="6c6693ff" date="2024-07-14">Minor updates.</revision>
<doi>10.18653/v1/2024.naacl-long.351</doi>
<revision id="4" href="2024.naacl-long.351v4" hash="05a3eb90" date="2024-12-11">This revision corrects a typo in Eq 3 and 4, and the corresponding text and figure. Also, correct some typos in Section 4.</revision>
</paper>
<paper id="352">
<title>Language Model Based Unsupervised Dependency Parsing with Conditional Mutual Information and Grammatical Constraints</title>
Expand Down

0 comments on commit b693837

Please sign in to comment.