Nightshade: Prompt-Specific Poisoning Attacks on Text-to-Image Generative Models
2023/10/20 by Shawn Shan, Shan, Shawn, Wenxin Ding +9 · 25 voices · 16 citations
#cs.CR #cs.AI
paper · pdf · doi:10.48550/arxiv.2310.13828
Abstract
Data poisoning attacks manipulate training data to introduce unexpected behaviors into machine learning models at training time. For text-to-image generative models with massive training datasets, current understanding of poisoning attacks suggests that a successful attack would require injecting millions of poison samples into their training pipeline. In this paper, we show that poisoning attacks can be successful on generative models. We observe that training data per concept can be quite limited in these models, making them vulnerable to prompt-specific poisoning attacks, which target a model's ability to respond to individual prompts. We introduce Nightshade, an optimized prompt-specific poisoning attack where poison samples look visually identical to benign images with matching text prompts. Nightshade poison samples are also optimized for potency and can corrupt an Stable Diffusion SDXL prompt in <100 poison samples. Nightshade poison effects "bleed through" to related concepts, and multiple attacks can composed together in a single prompt. Surprisingly, we show that a moderate number of Nightshade attacks can destabilize general features in a text-to-image generative model, effectively disabling its ability to generate meaningful images. Finally, we propose the use of Nightshade and similar tools as a last defense for content creators against web scrapers that ignore opt-out/do-not-crawl directives, and discuss possible implications for model trainers and content creators.
Cited by
Discussions
- What is Nightshade? It's a tool that performs a data poisoning attack against generative AI image models. Poisoning is not new. Poisoning genAI models at scale is new. You can read the MIT TR article [bsky, 215 points, 2 comments]
- arxiv.org/abs/2310.13828 The technical paper on this is also pretty interesting, especially 1. the small number of poisoned images required and 2. the results. Figure 7 in particular is Quite Striking [bsky, 19 points, 0 comments]
- Here's the Nightshade paper: arxiv.org/pdf/2310.138... It's a fun concept, but it requires strategic mislabeling of high impact concepts over dozens of input pictures; I'm not sure how they do that o [bsky, 5 points, 1 comments]
- Prompt-Specific Poisoning Attacks on Text-to-Image Generative Models (2023) [hn, 3 points, 0 comments]
- Prompt-Specific Poisoning Attacks on Text-to-Image Generative Models [hn, 2 points, 1 comments]
- Prompt-Specific Poisoning Attacks on Text-to-Image Generative Models [hn, 2 points, 0 comments]
- Defence for artists such as painters or photographers to protect their work from rapacious capitalists stealing their work for so-called AI generators. arxiv.org/abs/2310.13828 [bsky, 1 points, 0 comments]
- found the research paper that did those tests in case anyone is interested: arxiv.org/pdf/2310.138... [bsky, 1 points, 1 comments]
- I suggest posting ‘poisoned’ content, works best on images: arxiv.org/pdf/2310.13828 glaze.cs.uchicago.edu I’m still reading on the topic and trying to determine the overall impact it may have. No [bsky, 1 points, 0 comments]
- Lees maar, artikel over de tech arxiv.org/pdf/2310.138... (heb ik niet gedaan trouwens :) ) [bsky, 1 points, 1 comments]
- Here’s a paper by the team behind nightshade, which was submitted for peer review. Might be the level of nitty gritty detail you want to see. arxiv.org/abs/2310.13828 [bsky, 1 points, 2 comments]
- AI学習を狂わせる Nightshade という技術が登場。 人の目には画像Aに見え、AIの画像認識では画像Bに見えるように加工されているってこと? なので単語Aに紐づく画像A群に紛れ込ませ学習させると、単語Aに対して画像Bの要素が生成されるということだろうか。 arxiv.org/abs/2310.13828 [bsky, 1 points, 0 comments]
- Prompt-Specific Poisoning Attacks on Text-to-Image Generative Models [hn, 1 points, 0 comments]
- Prompt-Specific Poisoning Attacks on Text-to-Image Generative Models [hn, 1 points, 0 comments]
- Source: arxiv.org/abs/2310.13828 [bsky, 0 points, 0 comments]
- arxiv.org/abs/2310.1... [bsky, 0 points, 0 comments]
- funky - Artists, designers and photografers uploading their paintings and pictures to The Web can add a code snippet, that “poisons” images to LLMs as Midjourney and DALL-E when they’re crawling the w [bsky, 0 points, 1 comments]
- Nightshade - Prompt-Specific Poisoning Attacks on Text-to-Image Generative Models arxiv.org/abs/2310.13828 [bsky, 0 points, 0 comments]
- Añado la página donde se puede descargar el PDF de 19 páginas sobre el proyecto por si alguien quiere leer incluso más arxiv.org/abs/2310.13828 [bsky, 0 points, 0 comments]
- Here’s the paper in arXiv. I skimmed it and don’t see that question answered specifically, but they do mention it fools systems that would automatically flag mismatches btwn images and associated text [bsky, 0 points, 1 comments]
- I'm pro artist but sadly I have some serious doubts that these approaches will amount to much. The paper is quite long but from my skim through it looks like this only works to poison specific concept [bsky, 0 points, 1 comments]
- What's the connection between Nightshade (arxiv.org/abs/2310.13828) and the argument about the long term un-viability of poisoning facial recognition databases (arxiv.org/abs/2106.148...)? Is the shor [bsky, 0 points, 0 comments]
- Interesting Hugz & xXx https://arxiv.org/abs/2310.13828 [bsky, 0 points, 0 comments]
- arxiv.org/abs/2310.138... [bsky, 0 points, 0 comments]
- Interesting: Nightshade’ AI that alters images to ‘poison’ it when used in other training data sets. “Prompt-Specific Poisoning Attacks on Text-to-Image Generative Models”. By Shawn Shan, Wenxin Ding, [bsky, 0 points, 0 comments]
Related