# The Slippery Slope from DALLE-2 to Deepfake Anarchy

OpenAI developed DALLE-2 to be safe. Then StabilityAI made an open-source copycat. 
===================================================================================

Stephen Casper ([scasper@mit.edu](mailto:scasper@mit.edu)) 

Phillip Christoffersen ([philljkc@mit.edu](mailto:philljkc@mit.edu))

Rui-Jie Yew ([rjy@mit.edu](mailto:rjy@mit.edu)) 

Thanks to Tan Zhi-Xuan and Dylan Hadfield-Menell for feedback. 

A [different version of post](https://forum.effectivealtruism.org/posts/Bnp9YDqErNXHmTvvE/the-slippery-slope-from-dalle-2-to-deepfake-anarchy) has been posted in the EA forum. It is somewhat longer, focuses more on policy, and is written for a slightly more general audience. 

***This post talks about NSFW content but does not contain any. All links from this post are SFW.***

Abstract
========

Since OpenAI published their work on [DALLE-2](https://openai.com/dall-e-2/) (an AI system that produces images from text prompts) in April, several copycat text-to-image models have been developed including StabilityAI’s [Stable Diffusion](https://stability.ai/blog/stable-diffusion-announcement). Stable Diffusion is open-source and can be easily misused, including for the almost-effortless development of NSFW images of specific people for blackmail or harassment. We argue that OpenAI and StabilityAI’s efforts to avoid misuse have foreseeably failed and that both share responsibility for harms from these models. And even if one is not concerned about issues specific to text-to-image models, this case study raises concerns about how copycatting and open-sourcing could lead to abuses of more dangerous systems in the future. We discuss design principles that developers should abide by when designing advanced AI systems to reduce risks. We conclude that this case study highlights issues with working on risky capabilities and repudiates attempts to achieve AI alignment via racing to advance capabilities. 

What’s wrong?
=============

Recent developments in AI image generation have made text-to-image models very effective at producing highly realistic images from captions. For some examples, see the [paper from OpenAI on their DALLE-2 model](https://cdn.openai.com/papers/dall-e-2.pdf) or the [release from Stability AI of their Stable Diffusion model](https://stability.ai/blog/stable-diffusion-public-release). Deep neural image generators like [StyleGan](https://arxiv.org/abs/1812.04948) and manual image editing tools like Photoshop have been on the scene for years. But today, DALLE-2 and [Stable Diffusion](https://stability.ai/blog/stable-diffusion-public-release) (which is open source) are uniquely effective at rapidly producing highly-realistic images from open-ended prompts. 

There are a number of risks posed by these models, and [OpenAI acknowledges this](https://github.com/openai/dalle-2-preview/blob/main/system-card.md#dalle-2-preview---risks-and-limitations). Unlike conventional art and Photoshop, today’s text-to-image models can produce images from open-ended prompts by a user in seconds. Concerns  include (1) copyright and [intellectual property issues](https://link.springer.com/chapter/10.1007/978-94-6265-523-2_17) (2) sensitive data being collected and learned (3) demographic biases, e.g. producing images of women when given the input, “an image of a nurse” (4) using these models for disinformation by creating images of fake events, and (5) using these models for producing non-consensual, intimate deepfakes. 

These are all important, but producing intimate deepfakes is where abuse of these models seems to be the most striking and possibly where we are least equipped to effectively regulate misuse. [Stable Diffusion is already being used to produce realistic pornography](https://www.vice.com/en/article/xgygy4/stable-diffusion-stability-ai-nsfw-ai-generated-porn). [Reddit recently banned several subreddits](https://www.reddit.com/r/StableDiffusion/comments/wwrfhr/stablediffusionnsfw_banned_from_reddit/) dedicated to AI-generated porn including r/stablediffusionnsfw, r/unstablediffusion, and r/porndiffusion for a violation of Reddit’s rules against non-consensual intimate media.

This is not to say that violations of [sexual and intimate privacy](https://scholarship.law.bu.edu/faculty_scholarship/620/) are new. Before the introduction of models such as DALLE-2 and Stable Diffusion, individuals have been victims of non-consensual deepfakes. Perpetrators often make this content to discredit or humiliate people from marginalized groups, taking advantage of the negative sociocultural attitudes that already surround them. An estimated [96% of deepfake videos online are porn, almost all featuring women](https://www.fastcompany.com/90414116/there-are-almost-15k-deepfake-videos-out-there-and-96-of-them-are-porn). In one case, when [a video of a journalist committing a sex act she never did went viral on the Internet](https://web.archive.org/web/20210824154249/https://www.lawfareblog.com/alls-clear-deepfakes-think-again), she was met with death threats. Her home address was leaked alongside false advertisements that she was available for sex. She could not eat, and she stopped writing for months. Other forms of sexual privacy violations, have had similar consequences for victims, leading to economic injuries from damaged reputations in job searches and [even to suicide](https://www.the-sun.com/news/621797/molka-south-korea-suicide-dooley/). 

The unique danger posed by today’s text-to-image models stems from how they can make harmful, non-consensual content production much easier than before, [particularly via inpainting and outpainting](https://openai.com/blog/dall-e-introducing-outpainting/), which allows a user to interactively build realistic [synthetic images from natural ones](https://arxiv.org/pdf/2210.09276.pdf), [dreambooth](https://huggingface.co/sd-dreambooth-library), or other [easily](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Textual-Inversion) [used](https://github.com/smy20011/dreambooth-gui) [tools](https://nmkd.itch.io/t2i-gui), which allow for fine-tuning on *as few as 3-5 examples of a particular subject* (e.g. a specific person). More of which are rapidly becoming available following the open-sourcing of Stable Diffusion. It is clear that today’s text-to-image models have uniquely distinct capabilities from methods like Photoshop, [RNNs trained on specific individuals](http://grail.cs.washington.edu/projects/AudioToObama/) or, [“nudifying” apps](https://www.washingtonpost.com/technology/2020/10/20/deep-fake-nudes/). These previous methods all require a large amount of subject-specific data, human time, and/or human skill. And no, you don’t need to know how to code to interactively use Stable Diffusion, [uncensored and unfiltered](https://nmkd.itch.io/t2i-gui), including [in/outpainting](https://synapticpaint.com/) and [dreambooth](https://github.com/smy20011/dreambooth-gui). 

If Photoshop is like a musket, Stable Diffusion is like an assault rifle. And we can expect that issues from [the misuse of these models will only become more pressing over time](https://arxiv.org/abs/2209.01714) as they get steadily better at producing realistic content. Meanwhile, new graphical user interfaces will also make using them easier. Some text-to-video models are even beginning to arrive on the scene from [Meta](https://makeavideo.studio/) and [Google](https://imagen.research.google/video/paper.pdf). And a new version of Stable Diffusion [will be released soon](https://danieljeffries.substack.com/p/why-the-future-of-open-source-ai). New applications, capabilities, and interfaces for diffusion models being released [daily](https://rentry.co/sdupdates). So to the extent that it isn’t already easy, it will become easier and easier for these models to be tools for targeted harassment.

Unfortunately, current institutions are poorly equipped to adapt to increased harms in a way that protects those who are the most vulnerable. Concerted political [action](https://www.theguardian.com/us-news/2019/oct/07/california-makes-deepfake-videos-illegal-but-law-may-be-hard-to-enforce) and research is [often focused on the capacity for deepfakes to spread misinformation](https://www.cnn.com/interactive/2019/01/business/pentagons-race-against-deepfakes/). This makes sense in light of how those in positions of political power stand to be affected the most by deepfake news. On the other hand, a combination of lack of oversight and sociocultural attitudes has often led [victims of deepfake sex crimes to be met with indifference–law enforcement has told victims to simply “go offline”](https://www.bu.edu/bulawreview/bulronline/citron-online-engagement-on-equal-terms/).

But even if one does not view the risks specific to text-to-image models as a major concern, the fact that these models have quickly become open-source and easily-abused does not bode well for the arrival of more capable AI systems in the future. There has been a slippery slope from DALLE-2’s release to today’s environment where Stable Diffusion can be easily used to cause devastating harm to people. And this offers a worrying case study on the difficulty of keeping risky AI capabilities out of the control of people who will misuse them. 

How did we get here?
====================

On April 13, 2022, OpenAI released [the paper on DALLE-2](https://cdn.openai.com/papers/dall-e-2.pdf) which set the state of the art for producing realistic images from text. Along with the release of the paper, OpenAI also created a website that allows users to query the model for image generation and editing. OpenAI did a great deal of work to avoid misuse of the model and wrote [an extensive technical report ](https://github.com/openai/dalle-2-preview/blob/main/system-card.md#dalle-2-preview---risks-and-limitations)on it. Their measures include (1) curating training data to avoid offensive content, (2) testing their own model for issues, (3) having an independent red team try to find problems with it, (4) not releasing the architecture or weights, (5) requiring users to sign up, provide an email, and explain their motivations to use the model, (6) having a waiting period for access (although a waiting period was no longer required as of late September 2022), (7) filtering prompts from users that contained explicit content, famous peoples’ names, etc, (8) filtering images from the model, (9), suspending/banning users who enter too many suspicious prompts, and (10), continually updating their backend to respond to issues. 

To their credit, these measures seem to have been very successful at preventing the use of DALLE-2 for creating offensive content. We have seen anecdotal posts on Reddit from users who have reportedly tried and failed to generate porn with DALLE-2 using crafty prompts like “transparent swimsuit” to no avail, often getting banned in the process. We are not aware of any clearly successful examples of anyone getting DALLE-2 to produce particularly offensive content at all, much less systematically.

So what’s the problem? Despite all of OpenAI’s efforts to avoid misuse of DALLE-2, they still provided the proof of concept for this type of model, and they still wrote about many of the details to their approach in [their paper](https://cdn.openai.com/papers/dall-e-2.pdf). This enabled others to fund and develop copycat models which can be more easily misused. OpenAI’s [technical report on risks](https://github.com/openai/dalle-2-preview/blob/main/system-card.md#dalle-2-preview---risks-and-limitations) had no discussion of problems from copycat models other than a cursory mention that “DALLE-2…may accelerate both the positive and negative uses associated with generating visual content”. It seems odd that OpenAI did not meaningfully discuss copycats given the thoroughness of the report and the fact that past systems of theirs such as GPT-3 have also been copycatted before (e.g. [BLOOM](https://bigscience.huggingface.co/)). 

Two notable DALLE-2 copycats are [Midjourney](https://www.midjourney.com/home/) and [eDiffi](https://deepimagination.cc/eDiffi/). But most relevant to this case study is Stable Diffusion from StabilityAI. [StabilityAI](https://stability.ai/) is a startup whose homepage says it is “a company of builders who care deeply about real-world implications and applications.” [It was founded in 2020](https://www.crunchbase.com/organization/stability-ai) but came into the spotlight only recently upon entering the image generation scene. For example, it only made a [Twitter account](https://twitter.com/StabilityAI) in July, a few months after the DALLE-2 paper. Their copycat, Stable Diffusion, is comparable to DALLE-2, and [they confirmed that it was a principal source of inspiration.](https://stability.ai/blog/stable-diffusion-announcement)

Relative to OpenAI, StabilityAI did a very poor job of preventing misuse of Stable Diffusion. In August, they [announced](https://stability.ai/blog/stable-diffusion-announcement) the model would be open-sourced. This release was accompanied with some mostly-ineffective measures to reduce harms from the model like [providing a safety classifier](https://stability.ai/blog/stable-diffusion-public-release) for images which both [doesn’t work that well](https://arxiv.org/abs/2210.04610) and which users can simply disable. They also tried to restrict access to people [who signed up for it with an email and provided a justification](https://stability.ai/research-access-form). The plan was to make Stable Diffusion available via [HuggingFace](https://huggingface.co/docs/transformers) on August 22, 2022 to those who were approved for access. This mattered very little though because [the weights were leaked online](https://www.reddit.com/r/singularity/comments/wssocs/stable_diffusion_leak_thread_2_everyone_can_now/) a few days earlier. Then predictably, people either used the model directly or finetuned versions of it to produce the type of offensive content that can be used for targeted harassment of individuals. Later in September, HuggingFace also made access to [Stable Diffusion available for anyone on the internet](https://huggingface.co/spaces/stabilityai/stable-diffusion) with no signup, albeit with automated filtering for NSFW content built into this particular interface.  

Overall, the slippery slope from the carefully-guarded DALLE-2 to the fully-open-source Stable Diffusion took less than 5 months. On one hand, AI generators for offensive content were probably always inevitable. However (1) not this soon. Delays in advancements like these increase the chances that regulation and safety work won’t be so badly outpaced by capabilities. (2) Not necessarily in a way that was enabled by companies like OpenAI and StabilityAI who made ineffective efforts to avoid harms yet claim to have clean hands while [profiting greatly](https://www.forbes.com/sites/kenrickcai/2022/09/07/stability-ai-funding-round-1-billion-valuation-stable-diffusion-text-to-image/?sh=32be129724d6) off these models. And (3) other similar issues with more powerful models and higher stakes might be more avoidable in the future. What will happen if and when [video generators](https://makeavideo.studio/), [GPT-N](https://towardsdatascience.com/gpt-4-is-coming-soon-heres-what-we-know-about-it-64db058cfd45#:~:text=It%27s%20not%2C%20but%20OpenAI%27s%20CEO,%2C%20likely%20around%20July%2DAugust.), advanced [generalist agents](https://www.deepmind.com/publications/a-generalist-agent), or other potentially very impactful systems are released and copycatted? 

What do we want?
================

There are general principles that any AI system, with any degree of public exposure, ought to obey. Specifically, we propose three design principles as conditions for responsible development of such systems. The key theme behind all of this is that companies should ideally be accountable not just for what their AI does in the use cases they say it should be used in, but for all of the foreseeable consequences of the systems they release.

Scoping of function
-------------------

Both the power and risk of general-purpose AI systems lies in their broad applicability. For example, general-purpose text, image, or video generation could be used in a wide array of contexts, making it much harder to reason about their safety and impact. Therefore, it is useful to more precisely scope down technologies so that safety assurances can more readily be given. Note, however, that scoping of function requires that this scope is fixed. In other words, it means ensuring that, once an AI system is scoped down, it is not meaningfully usable for other purposes. For instance, a language model released for a relatively harmless purpose, should not be easily hackable or fine-tuneable in order to do another more harmful one.

Simple examples of implementing this could include only developing narrow versions of powerful models, either fine-tuned on narrower data, or including a penalty for all out-of-scoped outputs in the training objective. This allows fulfillment of the scientific goals of releasing such models (i.e. demonstrating strong capability over a specified domain) while making misuse more difficult. But, if restrictions to general AI models can’t work in practice, this criterion means one ought not develop, deploy, or release unwieldy general models in the first place.

Limitations for access
----------------------

This could include things as simple as forbidding screenshotting or copy-pasting of outputs from APIs. It could also include measures like filters on prompts or outputs.  Stronger versions of this, for particularly capable technologies, might include restricting the set of people who can access these models or keeping as much about the model secret as possible in order to slow efforts at replication. Even if some of these measures are circumventable with effort, they may be able to meaningfully hinder abuses by adding friction.

This requirement is strong, and not at all an afterthought that can be tacked on after development. For example, as mentioned above, deployed models (e.g. DALLE-2) often come with some restrictions for access. However, even just publishing the training details of these models makes them replicable and therefore *totally annuls any other effort to scope access*. In this respect, the weakest access link determines how accessible a given AI technology system is. For this reason, whenever developing or deploying a model, one must thoroughly consider how accessible it trulyis. 

Complete cost/benefit analysis
------------------------------

Even if a system is reasonably-scoped in function and access, given state of the art techniques in AI, it ultimately remains hard to totally rule out potential abuses. Therefore, since such abuses are to some degree an inherent risk, it is incumbent on the creators of such systems to clearly articulate the set of all possible costs and benefits of their models. They should also faithfully argue why those benefits outweigh these costs, why it is worth the inherent risk of deployment.

Especially in the case of DALLE-2 and Stable Diffusion, we are not convinced of any fundamental social benefits that access to general-purpose image generators provide aside from, admittedly, being entertaining. But this does not seem commensurate with the potentially-devastating harms that deepfakes can have on victims of sex crimes. Thus, it seems that these models, as they have been rolled out, fail this basic cost/benefit test. 

Takeaways
=========

**Originators are the key bottleneck in the slippery slope:** The slippery slope from DALLE-2 to text-to-image model anarchy demonstrates a rapid pathway for this technology from originators (e.g. OpenAI), to copycatters (e.g. StabilityAI with the help of platforms like Huggingface and Github for sharing models), to distributors of content (e.g social media). Ideally, the norms and laws around AI governance should recognize these steps and work to add friction where possible. Originators play a unique role. The first is that origination is much more difficult than copycatting, so originators represent a smaller and more easily-targeted bottleneck in the pipeline. Second, originators often tend to have and require immense resources and talent. Third, originators have a huge say over how these technologies are proliferated. This points to not only the resources these firms have in knowledge generation and system creation, but also their influence in granting broader access to these technologies. Then, with the large number of resources and the impact their decisions can have, originators make a natural target for regulatory or non-regulatory reform. Among other regulatory avenues, the FTC in the United States in particular may have useful power in this case. See the [EA Forum version of this post](https://forum.effectivealtruism.org/posts/Bnp9YDqErNXHmTvvE/the-slippery-slope-from-dalle-2-to-deepfake-anarchy) for further discussion. 

**It is important to deprioritize risky capabilities work.** Researchers should [take great care](http://partnershiponai.org/wp-content/uploads/2021/08/PAI-Managing-the-Risks-of-AI-Resesarch-Responsible-Publication.pdf) in what they work on and how they release it. The best solutions to avoiding harms from copycat models may be to (1) curtail advanced capabilities work in general such as DALLE-2, the [soon-to-be-released](https://towardsdatascience.com/gpt-4-is-coming-soon-heres-what-we-know-about-it-64db058cfd45#:~:text=It's%20not%2C%20but%20OpenAI's%20CEO,%2C%20likely%20around%20July%2DAugust.) GPT-4, or [video](https://makeavideo.studio/) [generators](https://imagen.research.google/video/paper.pdf) and (2) investing in work that incorporates harm mitigation at a systems-level and in infrastructure for recourse. *Even if no details at all are provided about how something was done, simply knowing that it can be done makes copycats easier to fund and work on. *Proofs of concept make the choice to invest in building a technology more cost-efficient. Rather than working on models with broad-domain capabilities like DALLE-2 and GPT-4, non-capabilities work or models with narrow capabilities are safer directions for work. An exception to this would be if certain progress on risky capabilities is inevitable within a certain timeframe and if the only choice is between less dangerous and more dangerous models. And as discussed above, those who build abusable systems should carefully scope their function, limit access, and honestly articulate costs and benefits. 

**There are deep problems with the “let’s build transformative AI in order to make sure it’s safe” strategy.** In particular, [OpenAI](https://openai.com/about/#:~:text=Our%20mission%20is%20to%20ensure,work%E2%80%94benefits%20all%20of%20humanity.) and [DeepMind](https://www.deepmind.com/about) both express that they want to race to generate highly transformative intelligent systems. The goal they both profess is to be the first to develop them so that they can exercise responsible stewardship and ensure that it is as aligned and beneficial as possible. This is a benevolent form of what Nick Bostrom refers to in Superintelligence as gaining a “[decisive strategic advantage](https://www.lesswrong.com/posts/vkjWGJrFWBnzHtxrw/superintelligence-7-decisive-strategic-advantage)” which may make the first developer of particularly transformative AI too powerful to compete with. There are many problems with this strategy including: (1) It is entirely based on racing to develop transformative AI, and faster timelines exacerbate AI risks. This is especially perverse if multiple actors are competitively racing to do so. (2) Nobody should trust a small set of people like Sam Altman and Demis Hassabis to unilaterally exercise benevolent stewardship over transformative AI. Arguably, under any tenable framework for AI ethics, a regime in which a small technocratic set of people unilaterally controlled transformative AI would be inherently unethical. Meaningful democratization is needed. (3) OpenAI’s approach to DALLE-2 should further erode confidence in them in particular. Their overly-convenient technical report on risks that failed to make any mention of copycatting combined with how quickly they worked to profit off of DALLE-2 are worrying signs. (4) Copycatting makes racing to build transformative AI strictly more risky. Even if one fully-trusted a single actor like OpenAI or DeepMind to exercise perfect stewardship over transformative AI if they monopolized it, how quickly DALLE-2 was copycatted multiple times suggests that copycatting may undermine attempts at benevolent strategic dominance. Copycatting would most likely serve to broaden the set of technocrats who control transformative AI but still fail to democratize it. So if a company like OpenAI or DeepMind races to build transformative AI, and if it is still copycatted anyway, we get the worst of all worlds: unsecure, non-democratized, transformative AI on a faster timeline. If a similar story plays out with highly transformative AI as has with DALLE-2, humanity may be in trouble.

Conclusion
==========

With text-to-image models, the Pandora's box is already opened. It is extremely easy to abuse Stable Diffusion, and it will get easier over time. Some people, particularly victims of sex crime, will be devastatingly harmed while OpenAI and StabilityAI make large profits. This offers a compelling case study on risks from text-to-image models in particular and open-sourcing risky models in general. The troubling story of DALLE-2 should serve to repudiate originators of risky AI systems and the strategy of ensuring AI safety by racing to be the first to build transformative AI.