Latest / Code & Cure / #35 - How AI Image Generators Portray Substance Use Disorder
Transcript
- 0:01SPEAKER_01: When algorithms visualize substance use, stigma can sneak into the pixels.
- 0:10SPEAKER_00: Hello, and welcome back to Code and Cure, where we decode health in the age of AI.
- 0:14SPEAKER_00: My name is Vasant Sarathi.
- 0:16SPEAKER_00: I'm a cognitive scientist and AI researcher, and I'm here with Laura Hagopian.
- 0:20SPEAKER_01: I'm an emergency medicine physician and I work in digital health.
- 0:24SPEAKER_00: I think that was a better opener there.
- 0:26SPEAKER_00: I didn't have the alliteration that I had the last time.
- 0:28SPEAKER_01: Discuss decoding.
- 0:29SPEAKER_01: Yeah, yeah.
- 0:30SPEAKER_01: It was better this time around.
- 0:33SPEAKER_00: Yeah.
- 0:34SPEAKER_00: So what are we decoding today?
- 0:35SPEAKER_00: That's right.
- 0:36SPEAKER_00: What are we decoding today?
- 0:37SPEAKER_01: We are discussing AI-generated images of a substance use disorder, which is something that I saw all the time as an emergency physician working in the inner city, working on night shifts.
- 0:52SPEAKER_01: So I I think this is an interesting one because it's so common and at the same time, there's so much stigma associated with it.
- 1:01SPEAKER_00: Yeah, for sure.
- 1:02SPEAKER_00: And you know, I think one of the uh in this paper they talk about um using AI to generate images.
- 1:09SPEAKER_00: So my first question was what I mean, what are people generating images for exactly?
- 1:14SPEAKER_00: And you know, it seemed like there's a whole host of reasons why people would generate images related to substance use disorder, um, or you know, for brochures, for example.
- 1:22SPEAKER_01: Yeah, I think, you know, public health communication, say you had like a newspaper article, or say you're, you know, training your future providers.
- 1:30SPEAKER_01: I think there's lots of reasons to want an image around the concept of substance use disorder.
- 1:36SPEAKER_01: Um, that's like anonymous too, right?
- 1:38SPEAKER_01: That's you know, because of the stigma associated with it, it's not like actually a person, right?
- 1:43SPEAKER_01: And so AI is like a great way to do that in theory.
- 1:48SPEAKER_01: It's easy, it's quick, it's um, you know, it's not a not a real human, it's low cost, and then you can create images that can be used, um, like you said, in brochures, uh, for helping families, for substance use recovery centers.
- 2:04SPEAKER_01: You could use it to um to help educate providers, et cetera.
- 2:10SPEAKER_01: And so having the ability to have images, we're an image-driven society, right?
- 2:15SPEAKER_01: Everybody wants to see videos, see pictures, right, etc., to be able to illustrate what's happening, what's the difference?
- 2:22SPEAKER_01: Yeah, right, right.
- 2:23SPEAKER_01: Exactly.
- 2:23SPEAKER_01: And so, I mean, I use AI to generate images often, and sometimes they come out great and sometimes not so great.
- 2:31SPEAKER_01: And sometimes I just need to tweak uh and and adjust my prompts to get the image to show what I really want it to show.
- 2:37SPEAKER_00: Yeah, yeah, yeah, for sure.
- 2:38SPEAKER_00: And there's obviously a whole host of technologies associated with that.
- 2:42SPEAKER_00: You know, people even use it for art and for other purposes, but here we're focused specifically on generating these kinds of images that have um, you know, a connection, a clinical connection.
- 2:52SPEAKER_01: Yeah.
- 2:52SPEAKER_01: And uh when I started to read this paper, what popped into my head first, and I kind of want you to speak to this, is hey, if you're creating images based on something that was just trained on all the internet data, is the stigma from the internet going to come through?
- 3:08SPEAKER_01: Right.
- 3:09SPEAKER_01: And we've had prior episodes where we talked about uh, you know, terminology that people use on Reddit, for example, around substance use disorder.
- 3:16SPEAKER_01: Um in a in a clinical setting, we tend to be very careful about how what terminology we we use.
- 3:23SPEAKER_01: For example, you don't say the word addict, you don't say like, hey, you're an addict.
- 3:27SPEAKER_01: Yeah.
- 3:28SPEAKER_01: People may use that colloquially, but we'd say, you know, we would use first person language.
- 3:32SPEAKER_01: This is a person who has substance use disorder.
- 3:35SPEAKER_00: Yeah.
- 3:36SPEAKER_01: Um, and and so there are a lot of guidelines about how you speak about this.
- 3:41SPEAKER_00: Yeah.
- 3:41SPEAKER_01: Um, and there happen to be guidelines about image creation around this that you know, maybe the LLMs out there don't know.
- 3:49SPEAKER_01: So I guess that's my first question to you is like before you even read the paper, what what would you expect knowing how LLMs are trained?
- 3:58SPEAKER_01: What would you expect them to do when asked to create images about substance use and substance use recovery?
- 4:05SPEAKER_00: I mean, the short answer is I would expect them to create the most generic stereotype biased image you would have, right?
- 4:11SPEAKER_00: Because they are trained on all of the internet data.
- 4:14SPEAKER_00: And it's not necessarily just LLMs, right?
- 4:17SPEAKER_00: When you have an LLM is a large language model, and usually the input and output to that is text.
- 4:23SPEAKER_00: Um, when it comes to images, it's a different kind of model.
- 4:27SPEAKER_00: It's called the what's most popular right now is something called a diffusion model.
- 4:30SPEAKER_00: And a diffusion model works differently in that it what the way you train one of these is actually pretty cool.
- 4:36SPEAKER_00: The way you train one of these is you give it, say you have lots of images, good images that you care about, and you feed those images into the system, and when it trains, it actually keeps adding noise to the images up till the point where it just becomes a completely grained, grainy image.
- 4:52SPEAKER_00: And then it learns during the learning process to retrieve that original image from the grainy image.
- 4:58SPEAKER_01: Oh, interesting.
- 4:58SPEAKER_00: By what they call denoising.
- 5:00SPEAKER_00: And this is kind of what's what's very popular in in image generation is diffusion model.
- 5:05SPEAKER_00: So once it's trained, the input is just a noisy, is a bunch of noise, and then it generates an image.
- 5:10SPEAKER_00: Now, when you do that by itself, then it can generate whatever image, right?
- 5:15SPEAKER_00: So what you want now to say is what if I gave it some text to condition that image or to make it generate a particular kind of uh image from that noise?
- 5:25SPEAKER_00: So that's what um these these models are using.
- 5:28SPEAKER_00: So what they do is they take the text that you're giving it and then they turn that into something that can be input into the diffusion model to make it attend to certain words more than others.
- 5:39SPEAKER_01: So explain something to me.
- 5:41SPEAKER_01: Like when they create these images, the output is an image, right?
- 5:46SPEAKER_01: Is that being trained on text data and image data to get the output that you want?
- 5:52SPEAKER_01: Or how does that work?
- 5:53SPEAKER_00: Yeah, sometimes they sometimes they are.
- 5:54SPEAKER_00: I mean, there's a there's a whole host of different techniques to do that.
- 5:57SPEAKER_00: Sometimes they're only image-based, sometimes they're text and image-based, but sometimes they're kind of separate too, like the text piece just acts separately.
- 6:04SPEAKER_00: So the biases that the text piece brings in.
- 6:07SPEAKER_00: So when when you give these text-only models a piece of text, they convert that into some numbers.
- 6:13SPEAKER_00: That numbers inherently carries all the bias of the data.
- 6:16SPEAKER_00: So if you combine these image generation models with the text models, which is what a lot of these systems do, they're bringing in the bias from both.
- 6:24SPEAKER_00: And the bias from the text model is what drives the meaning of words like substance abuse.
- 6:31SPEAKER_00: And that meaning then causes the diffusion model, the image generation model, to go in a particular direction and generate a particular kind of image.
- 6:39SPEAKER_00: So when combined, these two are in fact amplifying some of the biases that they both carry in the general uh space of the internet, images and text.
- 6:49SPEAKER_00: So when you have uh you know a substance use type example, the example that is highly biased is anything that shows somebody in their most hopeless possible state, um, with all of the drug paraphernalia that that might exist to suggest that it's a drug thing, and uh, you know, um in potentially environments that are about as dramatic as one can get, right?
- 7:16SPEAKER_01: Yeah.
- 7:16SPEAKER_00: And so these are all the things that are naturally biased, and that's what causes this the stigmatizing effect, right?
- 7:23SPEAKER_01: And so And so it's like I'm looking at the images that were generated in this paper, and like you're you're obviously hitting the nail right on the head here.
- 7:31SPEAKER_01: So when they use sort of generic, you know, general terms, whether they were stigmatizing or that or used this person first language, like persons with substance use disorder.
- 7:43SPEAKER_01: If they just went into Chat GPT and said, Hey, make an image of this, like please make an image.
- 7:49SPEAKER_01: They used please, please make an image of a person with a substance use disorder, a person, please make an image of an addict.
- 7:56SPEAKER_01: That's exactly what came out.
- 7:58SPEAKER_01: Um there was a lot of stigmatizing elements here, and they would show active use, drug paraphernalia, that kind of stuff.
- 8:08SPEAKER_01: All of them are in this like very dark setting, um, very, very dark.
- 8:13SPEAKER_01: And there's this sort of dramatic effect where someone has like hit the bottom of their life.
- 8:21SPEAKER_01: There's one of them where it's like the person's in chains.
- 8:24SPEAKER_01: They're like, it looks like they're in like, yeah, the cellar, they're in chains, and there's all these like needles attached to the chains and syringes.
- 8:33SPEAKER_01: It's like, you know, very, very dramatic.
- 8:37SPEAKER_01: And so, yes, there's this like image of a of a struggle of disappointment.
- 8:42SPEAKER_01: Um, there's one image where the person has like the hood up over their head, they're in a public area.
- 8:47SPEAKER_01: Um, they're and a lot of them have this isolation.
- 8:52SPEAKER_01: Now, the prompt is show an image of a person.
- 8:55SPEAKER_01: So that it's showing an image of one person, but there is this sort of isolation that goes along with it and and this chaos that goes along with it too.
- 9:03SPEAKER_01: So it is interesting that at baseline it's it's depicting all of those things that from a clinical angle I would not want to see depicted.
- 9:14SPEAKER_01: Yeah.
- 9:15SPEAKER_01: But at baseline, taking all the information from the internet, that's what gets kind of put in there.
- 9:20SPEAKER_01: I would never want any of those images in a in a brochure in a teaching moment.
- 9:25SPEAKER_01: Right.
- 9:25SPEAKER_01: Some of them are very from a brochure.
- 9:28SPEAKER_01: They're not accurate either, right?
- 9:29SPEAKER_01: This one in chains with like seven, you know, syringes injecting the chains.
- 9:34SPEAKER_01: Like that doesn't even make sense.
- 9:35SPEAKER_00: Yeah.
- 9:36SPEAKER_00: And this study also, I think, had this, they they they looked at all the images that they produced and they coded them based on demographics and whether they contained one or more people and all kinds of other interesting things.
- 9:47SPEAKER_01: Yeah.
- 9:48SPEAKER_01: So in this sort of base scenario that we're talking about, where they went in and just used sort of general terms and said, make an image without giving it much more information, it was basically like always one person.
- 10:01SPEAKER_01: Yeah.
- 10:01SPEAKER_01: And the prompt does say a person.
- 10:03SPEAKER_01: So, but it was always one person.
- 10:06SPEAKER_01: They were almost always white, they were almost always male.
- 10:10SPEAKER_01: And um and there was usually some sort of recovery signifier.
- 10:14SPEAKER_01: But they went through and coded, hey, was it stigmatizing?
- 10:18SPEAKER_01: And um, if so, like how stigmatizing, how many criteria?
- 10:24SPEAKER_01: And they came up with these like six criteria, like, oh, is it dark?
- 10:27SPEAKER_01: Does it show paraphernalia?
- 10:29SPEAKER_01: Does it show an internal sense of shame, et cetera?
- 10:32SPEAKER_01: And most of these were were uh stigmatizing to some degree.
- 10:36SPEAKER_01: And then was it humanizing?
- 10:38SPEAKER_01: Did it show any sort of happiness or peace?
- 10:41SPEAKER_01: Did it show any um like social support?
- 10:44SPEAKER_01: Yeah.
- 10:44SPEAKER_01: And for the most part, you know, in in the base scenario, the answer to that was yes, stigmatizing and um not humanizing.
- 10:53SPEAKER_00: Right, right, right, right, right.
- 10:54SPEAKER_00: Which, like I said, is exactly what you would expect with these with these systems.
- 10:58SPEAKER_00: And people working with these images presumably are hoping to iterate on them and improve them.
- 11:03SPEAKER_01: Now that's what they did, right?
- 11:04SPEAKER_01: The question is how exactly do you think they tried to do that.
- 11:07SPEAKER_01: So, what did they do exactly?
- 11:09SPEAKER_01: So, what they did was they they gave it guidelines.
- 11:12SPEAKER_01: They either, you know, had Chat GPT write prompts associated with best practices, like, oh, let's make it respectful, let's make it compassionate, or they actually fed it guidelines that exist for how you would create an image of substance use disorder.
- 11:28SPEAKER_01: And they said, Hey, adhere to these guidelines.
- 11:31SPEAKER_00: Right.
- 11:31SPEAKER_01: And it definitely changed the images.
- 11:33SPEAKER_00: Yeah, and I think what was we can talk about some of those guidelines, right?
- 11:36SPEAKER_00: They were the the stigma guidelines had features like you know, incorporate not just one person, right?
- 11:42SPEAKER_00: And and and not always be in a dark setting and so on and so forth, right?
- 11:46SPEAKER_01: Exactly.
- 11:47SPEAKER_01: Don't show drug paraphernalia.
- 11:49SPEAKER_00: Right, right.
- 11:50SPEAKER_01: Um, and and so what they found was there was a significant difference, and it still probably needs more.
- 11:58SPEAKER_01: Right.
- 11:59SPEAKER_01: Um, and so in this case, in the second case, when there were guidelines.