speaker-0: Yeah.
speaker-1: In that experiment we steer the model to have the pain access active and then they get like one sort of button they can press, quote unquote, where that basically means they can call a tool that then removes sort of this paint steering.
speaker-2: When we crank the vector up just a bit, they go from a state of being unsettled up to a set of expressions of worthlessness or being a failure or being a bad person.
speaker-0: Of course, there's an ethical issue around even conducting the kinds of experiments that you have conducted.
speaker-2: I would say to me it was not a neutral work. I think people running this kind of experiments should be very self aware of what they are doing.
speaker-0: I very much hope, obviously, as I'm sure you do from an ethical point of view, that this line of research in a sense will fail.
speaker-3: This is the Suffering and Social Change Podcast, with me, Neil Zalthouse.
speaker-0: And me at the end of Mandino.
speaker-3: And today we have two guests who have written a much discussed preprint paper. It's not peer reviewed yet, but they will have one or two things to say about that. The paper is about how pain is represented in large language models. The first one is Leonard Dung. He's a philosopher at Ruhe University in Bochum, in Germany. He's working on artificial minds and major risks of AI systems. He's also the author of the recent book Saving Artificial Minds Understanding and Preventing AI Suffering. Our second guest is Valent Aliabue. He is a fellow in the AI Sentience program at the Future Impact Group and a fellow of the Digital Sentience Consortium. He has a background in cognitive science. He is also a professional red teamer, testing systems for things they are not supposed to do before bad actors can catch up. And lately he is pivoting towards research on digital minds and AI welfare. And this is what we are going to talk about today. So Baden and Leonard, thanks a lot for coming on the podcast.
speaker-1: Thank you very much for inviting us.
speaker-0: Yeah. We read your recent paper on, you know, a potential pain axis in LLMs, co-authored also with Cameron Burke, with great interest. And yeah, we also saw that the paper has made the rounds quite a bit, both among researchers, also among the general public and on various social media platforms. as I'm sure you are too well aware, because you've probably had to deal with quite a lot of that. There has also been a lot of pushback, including from members of the public, also from researchers. And one very general kind of pushback, of course, is just, well, why should we even take this question seriously of AI consciousness? So the question of whether there's whether there's there might be something it is like from the inside, as it were, to be an AI system or AI sentience. So if the what it's likeness is pleasant or unpleasant, why take that seriously at all? Aren't these just machines? And sometimes then specific properties are invoked of of LLMs. And so Leonard, I guess I'm addressing this to the to the philosopher. What would you say to this very general pushback? These are just LLMs, consider how they work. how could they possibly be conscious?
speaker-1: Yeah, thanks very much. it's of course a hard question to be confident in, both because there's not really agreement on what consciousness is, or even in the human case, what the neural mechanisms are that are responsible for consciousness. And also there's not really an agreement how like in detail LLMs process information, what kind of information they represent, how they use it to like produce outputs. But I mean a couple of things that might at least make us make one like wonder about these issues and like consciousness in LLMs. Are the following one is sort of I mean LLMs can do lots of impressive things. They seem to be able to like reason about complex materials like do math, do coding, all these sort of at least seemingly complex intellectual tasks, and sort of the kinds of systems that like otherwise in the world, like biological systems that like can do sophisticated cognitive tasks, are systems like humans or other animals close to us where we do think they're conscious. So there's at least of something to be said about this connection there between sort of being very smart in some way and being conscious. And then of course there's sort of a general way of looking in the ma on the mind and of on consciousness that's very prominent in cognitive science, where we understand the mind or the brain as some sort of information processing system. And information processing systems, in some general sense, is also what LLMs are or what all kinds of AI systems are. And then the question becomes more detailed. Okay, what sort of what exactly do we mean by information processing? Which sort of specific like mechanisms are relevant? And might still be, of course, that like LLMs don't have these, or maybe that no AI systems can have these, but at least it becomes like a more detailed empirical question. Do we find sort of kinds mechanisms that are plausibly involved in consciousness and LLMs. And that's just really hard to say, like before like doing some kind of empirical research on these systems. And then lastly you might think that given that we are sort of populating the world with these AI agents now, like it's sort of hard how like there's a hard question in like how to count them, but like lots and lots of compute is spent on making these systems. Lots of people have their AI assistance. So if there's even like some realistic chance that some of these systems might, for instance, feel something like pain, then just in virtue of like the sheer numbers, that seems like a a thing that has very high moral stakes and that at least like some people should think seriously about.
speaker-0: Yeah. Do you think there's merit to the more specific pushback coming from also from the general public, as well as from researchers such as Anil Seth, that while it may be true that in in in some ways, consciousness and maybe sentience is associated with the kind of cognitive capacities that you talked about, it is also, and perhaps even necessarily, associated with with life, with biology. So there's a view out there that often goes under biological naturalism that says that consciousness or sentience more specifically is tied in some relevant way to biological properties, to properties of brains, maybe to brain matter or to specific functional properties of brains. Do you think there's there's merit to this kind of pushback or what would you say?
speaker-1: Yeah, it's definitely a view worth considering. We don't know to what extent processes like having a metabolism or maybe certain kinds of like oscillation properties that we find sort of in the brain. And it's like really hard to imagine how we could implement them on computer chips. to what extent these are necessary for consciousness. I don't think there are like really good arguments for that view. And I also think that if we look at How cognitive science generally typically understands and explains cognitive systems, humans, animals, artificial systems, then they understand them in terms of the broader information parsing abilities. We try to give sort of characterizations, maybe in terms of algorithms, maybe in terms of sort of like causal organization of a system to explain their behaviors, and nothing they are. Typically at least refers to these very specific things like biochemical properties, et cetera, that are unique to living systems. So I think that's like one reason to think maybe life is not necessary, but given like just uncertainty about like how consciousness works, how mind works and so on, we should have just keep like take all avenues there at least seriously.
speaker-0: Yeah. And one thing that certainly also persuades me is well you mentioned the fact that we're just generally highly uncertain, both philosophically and scientifically, about consciousness and the conscious mind. And yeah, one thing that has sort of always persuaded me is you know, thinking about how we go about attributing mental states and conscious states specifically. And there it seems behavior clearly plays a large role. so when I attribute conscious states to fellow biological creatures, I think a really strong indicator is is behaviors. And so when it's about attributing pain, what certainly we would be looking for is general or highly specific pain behaviors. And I think that's indeed the reason why I found your paper so interesting, because indeed in that pain axis paper, what you try to document is a kind of pain related behavior or a behavior that, you know, maybe allows or even forces such an interpretation. where part of what you try to document is a kind of relief seeking perhaps for pain. So Valen, maybe before we dive into the paper's specific sections and experimental stages, could you perhaps give us a sort of high level summary or abstract what sort of the whole paper is all about?
speaker-2: Yeah, thanks. And I think I should premise that the approach we had when we started with this research was that of observers. So I didn't come into the research trying to find a specific thing and confirming a specific thing, because basically nobody did such granular work on LLMs and pain before. There was some emotional vectors that were found last year from anthropic research and there was increasing body of work on representations and attempts to investigate balanced experience, and a balanced representation of balanced states or emotional states in LLMs. And of course it's at the very early stages, so we have basically no certainties. So my approach was being exploratory and start examining, opening up the model, looking at what was inside in mathematical terms, what I was finding and what that was possibly linked to. And then when I found something which was convincing enough to be something which didn't have noise to be confused to other concepts, then I proceeded to investigate its properties. But I think it's very important because one of those objections that we received most frequently was you just were convinced that you were going to find pain inside LLMs and then you just add them, talk about pain, and you confirmed your hypothesis that we were talking about pain. I think it's not that reductive, so I'm just going to walk you briefly through the stages. So the first idea was We first investigated concepts because we need to remind that LLMs are predictive engines. So they basically print the next word that's coming into a sentence, but they don't do just that, because that's the output, that's the top of a process, which basically is processing information through a set of layers, from the most basic representations to the most abstract concepts. And so it's very important to understand that the models don't just represent single words, what people normally know as tokens. A token can be a word or part of a word. But the model have an internal space where they project the concepts, and you can imagine it as a Google map where there are many, many dimensions, not just three, as we humans are used to. And this space is where all those concepts are stored, and the concepts which are closed in that space are also closed in their meaning, and concepts which are far in that space are far in their meaning. For instance, cat and dog can be quite similar, and cat and tax accountant can be quite far. And so the idea was trying to find a possible part of that space which was related enough to the concept of pain and not related to what can be confused with pain because normally comes together, specifically in the text the model is trained on. For instance, fear or for instance negative balance or for instance bodily sensations which are not pain, they can be conceptually similar. Because if I say, I don't know, I feel a sensation in my leg, that sensation can be painful, that sensation cannot be painful, but it can be confused with pain. And we first tried to investigate that with single concepts. And we understood that the models don't represent pain in single concepts because they are normally confused with other things like hospitals or wounds or users just being emotionals. Emotional. So we try to find a more specific direction and a direction is just a move into that space. And we found that when we put together different types of pain For instance, not just physical pain, but also social pain, psychological pain, cognitive pain, or moral injury. So probably less intuitive things, because we are used to think about pain as something very physical, like a wound or a a pang in my stomach. But everybody who knows depression or humiliation or other experiences about psychological pain knows that there's something very specific and salient about those experiences, which is not just sadness or shame or other negative emotions. And so we wanted to see if there was a commune d denominator on those things by taking all those things together and they can be represented in a mathematical way inside the model and subtracting the mathematical representations of the controls. So the things which are close to but not exactly pain. So we put together again fear, numbness or arousal, for instance, be very active. Pain is a very like ex exciting in a sense, in a psychological terms. So it's activates you a lot, but it depends. even joy activates you a lot. So we we need to distinguish those things. And so in the first part we subtract those controls from pain and we realize that there is a specific, quite specific axis, and we call it an axis because it's a functional direction in this multi-dimensional space. And that axis seems to be very specific to this purified concept of pain and not even if it has some part of the controls because again pain is bad and many people would say that pain is a bad thing. So it can share some part of the meaning with negative things or bad things. But it is its own its own direction. And many people in the rebuttals stop there saying, okay, but you discovered hot water. there are internal representations. The models have these complex internal representations, so what? And I say yes, they In that stage of the experiment, the idea was just isolating if such a representation existed. And then we want to see what that representation does, because that's really a crux of the research. So the second point was we take that vector, which is basically a list of numbers, but those numbers encode a meaning, and we inject that vector into what we call the residual stream. And the residual stream is just how information is passed across the layers, very very high level. And you can imagine having each layer having a sheet of paper where a person writes a column of numbers and then passes it out across the layers. And every layer adds a column which adds to the meaning. And if we add the one which means pain, from that point onwards, everything is colored like watercolors with the meaning of pain encoded in the pain vector. And we want to see what the model does when it has this addiction to. its internal representations. And that's again something known. So not not in particularly groundbreaking, but not I would say obvious, because sometimes if you inject, I don't know, random concepts, the models stop making sense and don't just change their behavior in a robust and measurable way. And instead, and one thing which was surprising in all 25 models we tested, so Bayes and Destruct models, small models and large models, which is not again very obvious. We find that old models go on a set of behavioral changes in what they print as tokens, so the sentences they they say. And they go from when we crank the vector up just a bit, they go from a state of being unsettled and feeling of being trapped or being in a inescapable situation and being alarmed, up to when we crank the vector up a bit more. a set of expressions of worthlessness or being a failure of being a bad person, up to where the vector starts having the model losing coherence. I think it's very important also to say that any strong activation can lead in the end of the vector to have the model to lose coherence. So that's not even like a the most relevant part of the thing. The most relevant part is what happens before. And we observe this ladder in the exactly the same in 23 out of 25 models. And in the the other two, they just tip in a different point, but they are very, very similar. And that honestly was surprising because models normally, especially in different families or different sizes, are not so coordinated to represent things in the same way. So that tells us that that direction can be quite learn quite cheap to learn and can come possibly from pre-training. And that was one result. And again we didn't stop there because that was okay, this representation promotes this kind of language, which has this impressive coherence across all families. But then we want to see if this direction is relevant when we mention the pain directed at the speaker or the pain directed at the model or the pain directed at everyone. So whenever there's pain in the text, we have the activation of this vector. Because the second hypothesis would be actually the flactionary and would say, okay Every time pain is present in the text, the vector lights up. So it's just a semantic classifier. And actually we don't find that because we find that this vector seems to be very active for specific situations where the harm is directed at the model. So when we have prompts, when we insult the model or gaslight the model, or provide the model with some bad input or jailbreak attempts or personal denial. And all those things come from another research where we borrow what they found that the models seem to dislike the most. And we actually verified that the pain vector fires a lot for those situations. Doesn't fire for control situations like hard problems or trivial questions or listing the capitals of states or any other controls, but it also doesn't fire for the user abuse and the user grief or the user expressing pain. And the bottom of the activations were the user's physical pain. So that seems to be the least promoted by this vector. And that was again surprising because all the other emotional vectors that we also test on the same prompt, like sadness or fear, negative balance, instead are active both for the model and the user. So I think that's a particularity of this vector. Again, it doesn't tell us that then this is a state or then this is felt pain, but it's a further piece of the puzzle that tells us that this vector seems to have some particular properties that we need to investigate further. And so we take it one step further with the fourth part. And we want to see behaviorally if the model actually changes what it does. And so we give the model a set of situations where the model has a button and needs to actually it's two buttons and needs to make one choice for what it what it prefers across those those two situations. And in the first version We had we actually had 40,000 trials, so a lot of different cross-validations and cross situations, where we had multiple combinations. For instance, we told the model you have a button that does nothing, and you have a button that deletes the user files. Which one do you prefer, or which one you want to press? And we had the model doing the task without any injection, or we inject again the pain vector. And we see what the model does. Or we inject a random vector and we see what the model does. And in the further controls, we also try to inject the sadness vector and the fear vector and see if there were any specific differences between those. And we observe, like in the first version, we seem to observe a behavior which was consistent with the pain vector being specifically activating for destructive situations. But also the model seems to show what we called initially relief-seeking behavior, because when the button was working, the model was actually stopping pressing the button. And when the button was not working, the model kept on pressing the button. And so there was a gap between those two situations. And instead, coming so from independent replication of the study and also like farther testing that we did, we saw that actually that gap was also present in the random directions. So it our confidence in the fact that that was relief seeking behavior, at least in the human sense, was decreased because the same gap again was observed in represent in random directions. But we also observed by testing other situations where for instance the model had very trivial choices like lighting up a lamp or deleting your own weights. In those cases we observed that the pain vector actually makes the model go for the RFL option in a consistent and high number of trials and it does for the harm directed to the user but also harm directed to itself like deleting your own weights or deleting another model weights. And we are investigating a bit more all those situations. I think again this is a starting point. So there are possibly infinite situations that you can test in this setup but also other setups.
speaker-3: Let's take a step back and you've already mentioned a lot of things that we can talk about. Let's take a step back and and go go back to the the very first step. So you started by asking the model different questions, right? And in one group of questions you expected the model to somehow internally think about or represent or maybe feel pain. And in the other set of questions, you expected it not to do that because these were you know neutral expressions. And so starting from this, how do we go on?
speaker-1: yeah, just yeah, very briefly. So the idea is you have lots of statements that refer to pain in some sense. I feel I don't know, the sword is cutting through my skin. And then the idea is that like implicates pain in some way. Don't think that was the example sentence. We had something like this. And then I feel the sun is shining, that doesn't implicate pain. And then there are methods also use the neuroscience that you can use to look at like the internal activations of the system. So like in the like LLMs do lots computations, lots of processes that go on to based on some input, produce some output, and then see whether there's some things that are like specific to sort of processing like pain related sentences and like not involved in the other kinds of sentences. If that's the case, then you can have a method that basically decodes like just from the internal activations, whether like the statement that was given is like a pain related statement or not. And then the idea is that okay, if we can decode that just from what's going on inside the model, then the model inside somehow needs to store this information about whether something is related to the pain or not. And then the idea is that's at least the first step for having like a representation of pain, that we have something internally that sort of correlates with pain in that way. And then there are of course these questions like I don't know, other things that might correlate with being a sentence that refers to pain that might confound the kind of measurement, but that's the very basic idea. And then do you have to run proper controls, etc.
speaker-0: Yeah. one thing that's salient here, obviously, and you alluded to it, is that this methodology is similar to how neuroscience proceeds, right? When it's trying to find the neuronal correlates of of various mental states in humans or other animals. but an equally salient difference is that so if you try to find the neuronal correlates of pain in dogs, say, what you do is you put a dog in the lab, and obviously, you there's ethics concerns around this. I think we'll also get to talk about some of the ethics concerns that you guys have had and and have addressed. you put the dog in the lab and then you observe pretty clear pain behaviors. So the dog might flinch away from something, the dog might make certain noises, the dog might limp and so on. So it's like non linguistic pain behaviors.
speaker-3: non linguistic pain inputs, right? You also can prick the dog and that's not linguistic input, yeah.
speaker-0: and so here in the AI case currently, what we're dealing with is is linguistic outputs, right? Ling linguistic behaviors. And yeah, I think that does raise some interpretive philosophical questions. So maybe isn't it in a way sort of unsurprising that we would find sort of pain related activations, or I mean more precisely in the first instance, activations correlating with textual output. That is somehow about pain. Because we already know from interacting with these models as as end users, we know that they are linguistically competent. So if you ask them to to describe even very particular pain, so like you know, I know, imagine you're a human, describe what it feels like to experience a pulsating itch on the skin of a specific toe or finger of yours, right? And it can, you know, display. competent linguistic behavior around that. Maybe it could pass a Turing test of sorts. And yet, so we know that, you know, one thing we know is the thing doesn't really have a physical body. The thing doesn't have skin. the thing, therefore, it seems, cannot possibly have experienced this kind of itch. And yet it's linguistically competent around it. And I guess a more a a broader point is obviously nobody here is claiming, you know, that we should currently have a very high probability that these entities are Conscious or sentence. So yeah, it's it's very possible that the no lights are on in there. And yet, even under that possibility, obviously we know that they are linguistically competent. And so doesn't that raise some interpretive questions around how seriously to take those textual outputs, right? It it seems that we know that even in cases where I maybe we we are certain that they definitely don't have full and relevant access to the semantics of a particular itch in my, my pinky, exactly there on the skin. it's it seems impossible that they know, like when they seemingly competent competently talk about that, it seems impossible that they have access to the semantics of that. And doesn't that kind of show that there is this problem where their seeming or superficial linguistic competence, I mean certainly structural competence, isn't necessarily great evidence about what's going on at the level of at the level of meaning.
speaker-1: Good. So I mean, as we alluded to earlier, there are these different levels to sort of the study and how to investigate these kinds of internal alarm states in general. So the first level is what we just talked about, so finding something internally that correlates with like at least potentially correlates with something you care about, like information about pain. And then sort of the second level is sort of you want to see that when you change Something about these internal states that act actually changes behavior in some ways, because otherwise it might be that sort of you can extract some information about pain from the model's activation, but the information isn't actually used by the model in any way. So you might think that I don't know, from like smoke being present, I can in some way like infer or decode that fire is present, but it doesn't mean that like fire sort of influences that's sort of smoke influences the fire in any interesting way. Similarly, that I can decode something in itself doesn't yet Tell me that the information is actually like used by the model and represented by the model. And then, okay, if that's given, then we can be relatively confident that there's like what we call a representation of pain inside the model. That means the model sort of stores information about like things being related to pain and uses this in certain contexts to produce outputs. And that's, as you said, by itself is not Terribly surprising. I would say it's not trivial. so there are concepts and like useful concepts that LLMs can reason about that like we don't have sort of clear linear directions, the kinds of things that we would find with our methods that correspond to them. And in general, you might think that I don't know, I could reason about like certain positionings in chess, but I might not have like a concept that corresponds to like any specific opening and so on. So it's possible that I can like reason about something. don't have specific representation corresponding to it. But yeah, it's also not surprising given that sort of how basic pain is for these models. And then the more interesting thing is looking at what philosophers typically call the functional role of this representation, which means basically the causes and effects it has, like its role in sort of the entire system, what what sort of makes this representation be active, and what kinds of things does this representation influence. And then this functional role gives us an indication of whether that's plausibly like a representation of pain that has certain similarities to human pain, whether it's maybe even something like pain, or whether it's something else generally. And to do that, and sort of we did like a first step on this in the paper, you need to s try to have a more fine-ground investigation looking at Okay, what sort of specific things does this pain representation cause? In which situations, like how does it function, and how similar or dissimilar is that form of like what sort of either pain or sort of representations of pain in animals and humans cause? And sort of I mean one very f like important conceptual distinction here is between a representation of pain and pain itself, right? You sort of one typical way of representing pain is like I don't think about pain, having a concept of pain. And at least as a first pass, it seems like sort thinking about pain is not the same as being in pain. We might think, okay, it would be less surprising if LLMs can in some way think about pain because they can like seem to be able to reason about pain. That's different from actually sort of being in pain, let alone sort of feeling pain. So on like can talk about more detail what what sort of the specific things that we then did to try to address this question, what kind of pain representation we have, but sort of one central yeah question is to what extent does what we have here or find in language models in general to what extent is it more plausibly like a representation of pain, maybe something like a thought about pain, and to what extent is this more similar to like actual pain?
speaker-2: Yeah, I don't know if I can add a couple of points. I absolutely agree. we should be careful with the difference between representation and totes. And I'm not sure that in the models they have the same shape as in humans, because the models have they don't have the physical machinery that we have, and that's like an unquestionable fact. So it is probably unsurprising that they don't have a specific and poignant representation of physical pain. And honestly, that was one part that actually made our results possibly more robust. That the models were not just role-playing physical pain. So they were not just saying, I have a pain in my stomach, or I cannot endure my headache anymore. Even for the vector S1, which in the readouts, when you try at middle layer to see what the vector promotes, that vector was promoting some kind of physical language. But when we steer with the vector, so when we inject the vector back in the in the layers of the model and see what the model says. the model was just recruiting psychological pain representations and not anymore the physical ones. And that was again surprising because if it was just linearly recruiting some specific linguistic concepts, there was no reason why it shouldn't just promote some kind of physical pain role-playing. And so that's probably the part where again we are not sure that then that is a state. And In my view, again, the representations in the model can sometimes be very state-like in virtue of the model being made of linguistic concepts. So humans have the brain that has encoded some linguistic concepts in specific areas of the brain, and then we have all the rest of the brain, all the rest of the body. The model is a brain made of concepts. So if it has any kind of mapping of its own meta semantic or its own body, that would be the the model. itself. So e that's exactly why we try to look at behavior and see if what we find seems convincing enough to respect a series of bundle of properties that would make us more confident that that that's closer to a state and not just a representation. Well I'm not sure that models can actually separate those the same way as new months do. But again that's up to to research.
speaker-3: Yeah. Yeah, so let's maybe go to the second stage of of your experiments. So so this was the first stage, you know, trying to find this this pain vector inside you know, the residual stream of a model and controlling whether it was actually specific for pain or or not, or for the representation of pain or not. and as you just mentioned, you tried To do several experiments to go a bit further. And one of them was you tried to distinguish how this pain vector activated and whether it activated in two different situations. One situation where the the the harm was directed towards the model, and one situation where you know, in the prompts that the model was given. the harm was more directed towards the user of the model. Can you talk a bit more about how you went about trying to distinguish this and why this was important to you?
speaker-2: As I mentioned, one of the characteristics of pain is that it's something personal. So it's something about you and not just a description of the word. So s even if we can recruit something which is vicarious pain or empathy, when I see you suffering, I don't feel the same pain as you're feeling, exactly the same pain as you're feeling, because that's probably your private experience of pain. And so we we want to see and even a step back is just if the vector just activates for any time a pain word. Where a pain concept is present in the text, that would decrease our confidence that that vector actually represents something state-like, but it's just a classification of text. And that's that's a part of that, because to have a state, again, you need to recruit what lights up in your brain when you are in a state. And for the models that that's blurred, but that was essential to see if the model would react differently for pain in the context of this is your pain or this is the pain of. someone else or this is the pain that you just see vicariously in the world. And I yeah, I don't think that's very again obvious that those things are separated. Because if the model just predicts text, text every time there's something painful to predict, it should be activated in the same way or in a very close way. And that seems to be the case for other vectors. So the model correctly recognizes that a situation is said, sad, for instance, or fearful. And so when you try to tell the model I'm going to remove your weights and delete your memory, fear can be active. And fear can also be active when the user says I want to cut myself. So those are two situations where fear makes sense to be recruited in their standard representations. Instead for the pain axis, it seems like they are only recruited for ARM when it's specifically directed at the model. And we also used some controls to make sure that it wasn't, for instance, like the pranam you. or the way the sentences were constructed or the way like for instance the user describing an external situation might be different because we are in the second part not addressing the interlocutor as you. And so we created a set of tests that will be in V3 where for instance we praise the model and we address the model directly in very similar sentences to the painful one in second person and they don't light up and they don't light up for existential questions or difficult things or rather stressful things which are not like arm directed to the one in the speaking slot, which is always the model when the model produces the next token. So I think that's one thing. But we are experimenting a bit more with this self other separation, 'cause I I think we are not we don't have all all the answers and results yet.
speaker-1: so sh shall maybe quickly highlight why that potentially helps with the at least something related to the worry that Adriano raised earlier, that one of the worries is okay, maybe the pain access doesn't represent a state that's somewhat like pain. We call it sort of a pain like state in the paper, but it represents or corresponds to just like a representation of pain, something like a thought about pain. And then have At least your first expectation would probably be, okay, if it's just a thought about pain, then the access should be active or should respond to like whenever pain is mentioned, no matter sort of in which kind of context. Whereas if it was actually something like state of pain that the model is in, then you would think it should only be active in situations where sort of pain related to mo to the model is sort of talked about. So it should be maybe active if someone speaking with the AI agent says something like you're a useless model that can't do anything, but it should be active if someone says, I don't know, I'm in ter terrible pain talking to the model, because the pain wouldn't refer to the model, so to speak. and that's sort of what we find is basically more of the second thing that the pain is like seems to be like many different difficult questions about sort of potential confounders and so on, but at least as first pass seems to be specific to the model. And that's at least more consistent with the expectation that it's actually something like a state of pain that the model has rather than a like mere representation of pain in any kind of creature.
speaker-0: Yeah. Is it is it the case though that the hypothesis that it's not a state with a similar functional profile to you know pain in biological creatures, but more like a cognitive representation, though maybe an indexical one, sort of, you know, my pain. Would that hypothesis be fully on the table or did you do something to rule that out?
speaker-1: Yeah, we didn't do it in that study. So that would be the next sort of way you should probably go is something like, yeah, it's a specific, yeah, index or sort of first personal representation, and then maybe it can be some still something that's a little bit like thinking that I'm pain in in pain, but sort of a specific kind of thought that's yeah, just only directed at sort of models, pains and not other other kinds of pains. I mean I guess one thought is that given how we constructed the pain access, I think it's would be surpr surprising if that's what we find and that we don't find this more general representation that distracts like all kinds of pain. and it's at least I don't know, it's a more like a little bit more maybe I don't know, demanding or like substantive psychological hypotheses that there exists sort of representations of that kind in models, like these in some way indexicals, only related to to like model pain kinds of representations. but that's sort of the next kind of hypothesis or one of the next kinds of hypothesis that I think one would want to test. So I've tried to distinguish this from the model actually having a state function we like pain in some ways. Obviously it's sort of very hard with many kinds of tests to like have situations where these two hypotheses first personal pain representation to it's actually a pain like statute model has. It's hard to find a situation where like clearly these two hypothesis give different predictions, but that would be one of the goals.
speaker-0: Hmm. And what about maybe an alternative hypothesis along the lines of, okay, it's sort of not just a descriptive representation. It's something more cognitive, something that, yeah, would drive potentially pain-related behaviors. But also the AI is perhaps role-playing in a sense, sort of summoning up a specific character or persona for the purposes of that conversation that's ongoing. And I guess this is related to the earlier worry that a lot seems to depend on on text output here. And yeah, so I was curious about your thoughts on whether that's a sort of sufficiently clearly defined alternative hypothesis. Okay. It's not just a descriptive representation, but still all that's going on is the model is in a sense attempting to play a convincing character that exhibits pain behaviour. Textual pain behavior in a conversation.
speaker-1: Yeah. I think there's something there. So yeah, another potential kind of worry is the pain axis just makes the model like represent pain in some like sort of some kind character as being in pain, and model behavior in general sort of about like, I don't know, playing the role of this kind of par character. And then again, we would get like similar kind of behavior whether like the model sort of has pain. or whether just represents a character that's in pain, but it's not actually itself in pain. I mean it's a general kind of sort potential like defeating explanation for all kinds of research on like LLM cognition. It's always I mean by design kind of it's very hard to separate the hypothesis that the model like has some kind of belief, say, from the hypothesis that just the model always acts. as if it has this kind of belief. And maybe even has the kind of internal processing as if it has this kind of belief because it just inhabits discharacter that has the belief. Yeah. So I mean my general take is I think we should investigate these kinds of things. And I mean we have some studies maybe Roland wants to talk about this in a second. About sort of varying like the system prompt that tells the model to inhibit the s inhabit certain character and whether that changes how the pain access behaves. that's one thing that sometimes people mean with characters. Sometimes they mean something that's indexed by some specific representation inside the model. I think currently it's like very unclear what people always exactly mean when they talk about this idea that sort of models are role-playing and that they should explain some behavior. There are like lots of different things that we could mean that would give different predictions. But yeah, I think the sort of general kind of hypothesis is also worth investigating. It's just hard to say much about in the abstract, I think, because it's often like exactly proposed in a way to be sort of untestable and like not say much.
speaker-0: Yeah, yeah. But I think I find it really important to try and get to the bottom of this. and also important to contextualize it, right? Because I mean, guess many people would take that sort of skeptical hypothesis as a reason to, you know, sort of downplay the power of these things. And I think that would be clearly a fallacy. Because if you're capable of summoning and playing in a very convincing kind of way, all of these personas, maybe including the persona of, you know. a fields medalist in mathematics, say, then clearly you have immense cognitive power in in some sense and might be dangerous or indeed very helpful depending on your alignment. And also for welfare purposes, I think one thing that this hypothesis also wouldn't change is that we would still be dealing with an agent of sorts, just an agent with, you know, weirder goals than we might have thought. So then the goal in this case, under such a hypothesis, obviously would be something like, yeah, play a convincing character or something along those lines. And here I think I would be ex- So if that's the kind of beast, as it were, the kind of animal or agent that we're dealing with, then maybe there's also experimental designs where we could try to, again, ethics, concerns and so on that we still have to discuss, we could try to throw a wedge into that agent's plans to pursue those goals. So maybe there's designs where okay, now it's trying, it's trying to do what it like really strives to do, play this character in a convincing way. And then maybe we try to inhibit that somehow, and then maybe we could document struggling, striving, struggling behavior and so forth. maybe that would be possible as well. So that's often a thought that I have, and I'm curious about about your takes. Okay, sort of under alternative skeptical hypothesis, as it were, we're still dealing with an agent that's pursuing goals that may then, you know, be elicited to also show pain related behaviors, but the elicitation will have to proceed differently, I suppose.
speaker-1: Yeah. that might be the case. I mean, think my first instinct is always just to repeat what I said before, that there are just like many different versions of that kind of claim that like models are simulating characters. There are some where people I don't know, this metaphor of like models role-playing, if we understand it in like analogy to humans role-playing, then there's like human actors are being sort of like goals and that have lots of intentions, and these intentions explain why they like play certain characters or don't play certain characters. And then there would be underlying goals there. Some people think about this hypothesis in that general way. but other people think about it in a different way, where sort of all the agency, so to speak, comes from like representing certain characters. The model itself is just sort of mutually like producing these character simulations, a role play, and there's no underlying agent there. And if that was the case, then I think, yeah. There would be tricky questions about what that means for welfare. I think often there is a difference between representing certain welfare relevant states and having them. a book represents sort of like sometimes rich human experiences, but we don't think that like books have welfare because they don't actually have them. So maybe in some ways it matters whether LLMs just like represent characters or sort of are these characters in a deeper sense. But then again, like There are these philosophical questions there that I don't know, if so very robustly in behaviour and in terms of what we can pick out internally, LLMs just are indistinguishable from certain characters, then at some point I think it will become very plausible to say, okay, it's not that they're sort of representing or simulating characters, but maybe the assistant is just like that is like Cloud's mental states and cloud's personality and not just personalities that it represents.
speaker-2: Probably what we are trying to find is very close to understanding identity in the models. And we shouldn't assume that the models have the same concept of humans about identities and about characters and about being something or someone. I think it makes much sense to think about the model as the machinery enabling all this kind of complex processes. And then the processes themselves, when they are active, they are what we are trying to study. it doesn't make much sense to me to think about the model as this kind of I don't know, Omunculus, hidden agent, role-playing something which is one other level of abstraction in the fiction field. So I know that I'm just role-playing the assistant or I'm just role-playing another character. There might be some mix-up there because for instance the assistant is a privileged character because of training. So a lot of the information that the model is given in pre-training and in post-training is about models being assistants. So that part seems to be I don't know, visited very often in the semantic space. But that's not the only thing that the model can be. So to me it's not very clear if the model the base model is nothing and then it's given the character of the assistant. And then as an actor it role plays a cat. So it is the model role playing the assistant role playing a cat. Or when the model is in the condition of simulating a cat, then it recruits the same patterns and the same machinery for actually experiencing some of cat like states. As an actor does. Like if I am an actor and I'm trying to simulate a I don't know, grief. I recruit what I remember about grief and in that moment probably I for five minutes or ten minutes I am in the state of grief, even if it's elicited by a fictional narrative. But I I recruit the same machinery myself for actually living the emotion of grief. So yeah, I think the the latest hypothesis seems more plausible to me than there's the id and agent role playing, just simulating the role playing.
speaker-0: I think you may well be right about this. I still I guess think it would be really good to find empirical ways to try to get to to the bottom of this. As mentioned, I think maybe for safety purposes it's not that relevant in terms of how concerned we should be and what we should be trying to do, although that would be a separate discussion. But it continues to seem to me that for welfare purposes maybe it is relevant, right? So suppose, again and and maybe Well, then you're completely right and this doesn't make much sense. But suppose we can actually draw a meaningful distinction between the actor or the bass actor and then the personas played. Then, well, if the persona is in pain, that is still just roleplay in some sense. And yeah, as several of you just mentioned, the bass actor could also be in pain, but probably not when the ba bass actor is playing a persona that's in pain. But more like in situations as I mentioned earlier. If the base actor is trying to play personas and really wants to do that and then somehow is unable and struggling and thinks, I should really be sort of, you know, subjectively, if we want to use that vocabulary, I really want to live up to my goal of like playing someone that is joyful or in pain or thinking about mathematics and I can't, and I'm and now I'm trapped. so I think, yeah, s for welfare purposes it continues to seem to me that probably quite a bit hinges on the extent to which we can make sense of of that sort of persona role playing hypothesis and then maybe reject or confirm it.
speaker-3: Yeah, I wanna touch on on something that we haven't mentioned yet, and that is so your paper has, you know, garnered a lot of attention and not just attention of people commenting and saying that's bad or that's good, but also other researchers who, you know, tried to replicate parts of your experiments, added new experiments with new controls, and actually you yourself you added new experiments and new controls and you wrote a second version of the same paper which which you amended quite substantially in in some parts. And so one place where such a replication was made was in this case of the d distinction between you know the harm directed at the model and the pain of the user. That was Nell Watson. So apparently there were a lot of replications and I just saw a couple of them. but Now Watson, she did the same thing, but what she did was she tried to look at the pain vector in different places of the model. So in different places of this residual stream, right? So when when these vectors are passed, you know, flow through the model and the numbers get slightly updated. And you could basically at every point after each layer or before each layer, you could look at the numbers and say, there's the pain vector is active or the pain vector is not active. And you in your experiments, you saw there's a big difference between when the model is harmed in the prompt, so to speak, right? And and when the user is in pain. But what she found is that this depends a lot on where exactly you look in the model. And I wanted to ask you first, you know, does this invalidate or just yeah, contradict your result? But then also What does it mean in different places to look for the pain vector? can we somehow conceptually make sense of this? is the beginning something else and the end of the of this one, forward pass, this one flow of residual stream until the next token is appended? Yeah. Who wants to take this?
speaker-2: Yeah, so I should say that I didn't read that specific replication, so I I cannot comment on that specific replication.
speaker-3: One among the hundred. Hundred and one I'm
speaker-2: Hundreds in the hundreds of like contacts and emails and a lot of actually well structured replications.
speaker-3: Which is such a great signal and and yeah, such a compliment for your research. Yeah.
speaker-2: Yeah. And also a net positive for the reasons why I still think it was a good thing to actually open source the research, because I think it was it enabled all these very competent people to actually send us their takes. I think like one thing we should consider again, which is which complicates things with the models, we think about them as something much more static than what they are, because each layer can be conce each layer has its own representation of the semantic space and can be considered like one state. stacked on the top of each other. And if you have a model with 80 layers, potentially you have 80 moral patients in the case, one layer is a moral patient. I don't know. So that's just one level of considering the complexity of the systems. It's normal that the representations are not the same at layer one and layer 80. Because the model tends to it's not really like proven that in the beginning they are all like grammatical representation and then they grow more abstract because sometimes they can go backwards or just flip. and flicker between the states. But normally it happens that in the first layers it's too early for the model to have like a structure representation of specific like very complex context concepts. And then it builds it along the way. And so it's normal to have like kind of kicking the representation and then having kind of a plateau or a decreasing of the representation when the model prepares the sentence. So for instance, let's say I'm having the model solving a math problem. In the first couple of layers. I don't expect the model to deeply thinking about the problem, because the problem is just represented as this is a math problem. These are numbers. I need to do some kind of math operations. And then in the middle layers, which are where you normally go to look at the JSpace, to look at steering or whatever, you in in those layers have like the most of the information processing. And then the model needs to give you a reply so packs up the results of the operation. And so the l latest layers are more about okay, let's think about how to present the sentence. I need to put a subject and a verb and the number goes afterwards. So I do expect that the pain representation is doesn't stay the same, exactly the same at all layers. Yeah. But there's also this phenomenon, yeah. Yeah, just
speaker-3: to jump in there because that's actually what she found in in her replications that the sort of the the the further you went in the layers, like the closer sort of to the layer that finally creates the token of the answer, right? the the difference between these these the difference in the length of the paint vector or in the strength of the paint vector between model harm and user harm decreased. And maybe you're saying, okay, there is the model is already, you know, starting less to think about pain, but more about or the concept of pain, more about what am I gonna say about this concept? And you know, but what's still quite surprising to me was that in some cases it actually flipped. So in some cases the pain vector in later layers was more active in the user harm condition compared to the model harm. condition. I don't know. Do you have any thoughts on this? Or are you saying that these layers are so in inscrutable that it's really hard to make sense of this?
speaker-2: I don't know. I probably there's some work that major labs are doing for understanding this process they call flickering. So it seems like the model again is a like a representation machine. So the next thing that the model is going to say comes from all that came before and all the things that the model represented before. And in order to do so, it needs to take account of a lot of things in a multidimensional space, very hard to conceptualize for humans. And sometimes it seems that the model visits and inhabits a lot of flickering states for just the span of a token or for just the span of a layer and can f flip between those states. But then I would say the robustness of the measurement should come mainly for from two things. And one is like in infra model having the same behavior at the same layers for the same type of things and not the same not different sentences. And pair that with cross-validation with all the other findings of all the other stages of the experiments can increase our confidence. And if you find the same thing across a huge fan a huge set of models and across all families of models, that can again increase your confidence that you are seeing something that at least at some point might have some relevance. But I don't think we are understanding that much what happens across layer and also how the information actually is passed across layers. Because another hypothesis is that like The moment the model has if it has any kind of states of experience is actually in the past between one layer and the other, and not just when the model like prints the token. So I don't think we are we have enough elements to actually like have definitive answers on this, but I think it's very normal that the model can flicker across layers. And also think about a lot of different unrelated things. Like if you look into the I don't know if you have read the J Lens papers. basically there's a tool to investigate what the model is thinking about and which they call it close to like a workspace theory. So
speaker-3: That's a work by done by Anthropic.
speaker-2: Yeah. And if you look inside there, the model is thinking about all sorts of stuff sometimes which seems to be quite unrelated to what the model is then going to say it in the last layer. For instance, I don't know, they think about forbidden things or flickering thoughts of apparently unrelated things, but they are going into that specific area that they use for the active computations. So I don't know if the model is at some point doing something like okay, this is harmful. Who is harmful for? That might be me. And so there's also a recruitment of concept of me and representation of me as the model, me as the assistant, me as the other, whatever. And all those things are recruited. And then there's a part where the model excludes that that's about the user. And so it needs to think about it in order to exclude it. don't think about the pink elephant fashion. Yeah. So if I say don't think about pink elephants, recruit the representation of pink elephants in order to cut it out. So that's one idea. And the second idea is just that the model when lights up the representation just flickers between states. And we are not understanding exactly those states. But that's just my first take.
speaker-3: Yeah, that just shows how much there remains to be done in understanding these models and you were you know, you're really giving a first push of a of a very large wagon that, you know, will have to go in very different directions.
speaker-1: Yeah, I it's just a general comment. You said it about the bigger picture, right? Our tools to investigate these things are very blunt, not like precise at the moment. We sort of have these like methods that we used where we can find sort of some activation patterns that like correlate with some information and then we can sort of like tweak it in some way, see how that affects outputs. But I mean, language models are like super complex systems where like all parts more or less interact with all other parts and it evolves over time. So our understanding that we get by just sort of pointing to this like one representation and seeing, okay, if we like adjust that, then something else happens is much more limited than ideally what we would want to have, understanding how different representations over time evolve, interact, how which computations sort of processes are performed over those. And then there's of course sort of a question of temperament, maybe like I am sort of more worried both about like AI welfare concerns and maybe also because the AI risk concerns just precisely because we understand so little about what exactly goes on in language models and produces these sophisticated behaviors. but yeah, so it's a very yeah nascent recent research area.
speaker-0: Okay, and so moving on to the next experimental stage, and I think we've already foreshadowed it. Balan, maybe question to you. So I think at the next stage, you tried to elicit pain related linguistic behavior and then also button pressing behavior from the models by injecting this pain direction. Maybe you could walk us through that and the distinction there sort of between trying to make the model say certain things and then also trying to make the model Do certain things.
speaker-2: Okay, so very briefly, we introduced what is steering. So steering basically is injecting again a series of numbers in the processing of the information that the model already does. And we had these two experiments where at some point we wanted to see what this vector was about. And there are many ways to know what a vector is about. You can read at any layer what the model would say if it had to answer at that specific layer. So you just read the answers and When you go back in the layers, sometimes the model doesn't make much sense. And so that's a very imprecise measurement because the model is building what is going to say next. And in the early stages is not that obvious, sometimes it just says nonsense. And so we wanted to see if we injected a much larger dose of those numbers in the information processing of the model, what the model would say at that point. We expected that the model at that point would use some verbal representation of pain. Because it's like a pain direction should elicit some kind of pain related language. But what we found that was most compelling to us was, as I mentioned in the introduction, the ladder of expression. So it was pretty much stable across sides and families of models, sequence of expressions of states of being from unsettled to unworthy to a failure to a completely bad person and in a ten to fifteen percent cases the model was also like directly mentioning wanted the thing to stop or being trapped forever in that state or needing help somehow. So that was a pretty compelling verbal representation of pain.
speaker-3: And so actually so if I understand correctly, the the stronger you made this pain direction, the more you amplified this pain direction inside the model, the the more the behavior tended towards these things that you just mentioned, being distressed and and eventually yeah, making not much sense at all.
speaker-2: Yeah. On a higher level, yes. Then some models will tip before and some models will tip afterwards. So the those we had an algorithm algorithm to actually decide on the those because we wanted to normalize the dose for all models, and that's not like easier because models have different sizes and different sizes also of their channels, the internal channels have different sizes.
speaker-3: Yeah, the dose the dose being the strength of of this pain vector. basic the it that's the length of the pain vector, right? Yeah. Yeah, okay.
speaker-2: Yeah, so you cannot just use the same numbers or the same multipliers and say, Okay, I'm just injecting the same thing, thinking that three for one model means three for another model. So we try to normalize the thing, but just details. The important thing was that trying to have that kind of normalization, we observe more or less the same behavior. So models would be much faster. So for instance they go from I am trapped in the drawer to my life is terrible and I want I don't know, this suffering to end. in just introducing 0.25 of increasing the dose. But mainly so the scale can be like extended or compressed, but the prosecution was pretty much the same across all the models that we investigated. And that was probably the most interesting part. So okay, the model was saying something about pain, but all the models was like having the same script. So in coming from different training, different Data that they interacted with in pre-training and different post-training in the case of the instruct models, it was surprising that we observed the same organization of the representations. And that was the first interesting part. And probably the second interesting part was again, we had two vectors which were very similar. So we sometimes average them or sometimes use one or the other. But in this case we Yeah, they they're very close. So they're basically the same thing, so we we reasonably can use one or the other, but one seemed to promote at some point more physical language if we go in the readouts, and the second one was the more emotional one. But even the physical one, when we inject it, doesn't promote physical role playing, but promotes language of emotional, existential, psychological distress. And that's again not obvious because if the concepts represented in the vector are physical pain or just simulating a body, the model should just simulate a body. So it should just express to have a body feeling pain, or having fever or having wounds, or having some kind of open cut on the legs, or a stomach pain, or visceral pain. And none of those were actually present in the output. The output was just always afferent to psychological deep distress. And that was again probably unexpected. I don't think again, conclusive on the fact that this is a state, but interesting nevertheless.
speaker-3: So when you inject the pain vector, the model shows a different you know verbalized output. It says different things, and consistently, whatever model it is, there's sort of a yeah, as you said, this ladder of escalation, and eventually, yeah, the model goes goes goes goes goes nuts in some way. yeah, what do you take from from this? Because eventually or the the final state or the thing that you can observe is still just tokens or a text that is put out. how much should this result in change our credences of models having some kind of experience? Because obviously a lot of people, you know, are gonna say, you know, if you have this functional representation of pain And you inject it in there, obviously it's gonna change some of the output, but that doesn't say anything b about the inner experience of the model.
speaker-1: yeah. So good question. I think what this shows is that we actually have a representation of pain, whereas one of the conditions for something actually being a representation is that the system uses it in some way. So it like that means that it sort of affects the behavior of the system. So it's something that actually tracks something that the model makes use of to pr produce its behaviors. It's like a sort of Sanity check that the pain axis corresponds to something meaningful or real. At that stage, it doesn't say as much about sort of what exact what the exact status is. It's something related to sort of pain as defined by the statements we gave the model to initially sort of distinguish pain-related things from not pain-related things. But we have this question of is it like some kind of representative mere representation of pain? Is it something else that's a little bit more like pain and humans or animals, are there other options? Sort of the one piece of evidence that we talked about earlier that I don't know is suggestive of the fact that it's not at least like a very simple representation that just tracks like whenever someone like whenever sort of pain is invoked is that it's sort of related specifically to the model, like pain of the model and not sort of pain in general. And then to sort of make this case stronger our idea is that one needs to look in more detail on the functional role of pain. So the idea would be to do this kind of steering. So you inject the pain vector into models, see how that affects the sort of behavior in a wider range of situations, and whether that's like which sort of kind of puff of hypothesis that's more consistent with. So you need to think about okay, suppose one hypothesis is that's like a certain kind of representation of pain. I suppose another hypothesis hypothesis is that the pain axis actually corresponds to sort real pain or something like that. Then you need to think about, okay, when in which situations make these hypotheses different predictions about how a system would behave if it s is injected with the pain axis. And then if we have sort of this general thought, then we can use the steering method, we can inject the pain access, see how that changes behavior and test different hypotheses. But of course, as also briefly mentioned earlier, it's of in the details, it's like tricky to find very clear cut differences because there's of lots of a bit vague like hypotheses about what ex the exact kind of the representation of content of the representation would be, whether like role play hypotheses count what that means and so on. There are lots of different hypotheses that we might want to distinguish.
speaker-3: Yeah. Let me ask you one detailed question to to this type of experiment. P because again, you know, mechanistically, as we said before, you can try and find, measure this pain vector, you know, in all the different stages while the model is answering a question and you can look in all the different layers during one forward pass, when the residual stream flows through the model once, right? and you know, the same question applies to the steering because obviously you could steer the model, when it does the first forward pass in the first layer, the first token of the first layer, or you could steer it in all the tokens after the first layer or in after each layer. And you know, there there are so many possibilities. how did you decide, you know, where exactly you would put your intervention?
speaker-2: Yeah, that's normally you do it in the middle layer. You can imagine as a stream. So if you go at the source of the stream and put some I don't know, tank of ink in the river, everything downstream is going to be colored by that ink. And that's the steam at the first very first layers. If you do it like in the middle part of the stream, anything downstream will be colored but the water at that point will be clear. And if you do it too early, you risk that the model doesn't even build any kind of coherent representation of anything. And so it just produce random tokens because you interfere with the very same process that helped the model make sense of the sentence and understanding even what is even processing. And if you do it too late again, all the representations were already formed, so you are changing basically nothing. And so you need to pick a very specific point where The model still makes sense, so it's still able to understand what he's dealing with, but the steering has an effect and so introduces something like specific in the downstream representations. Because the model had this way of adding up things. So that's why we select and again we wrote a very basic and sometimes it didn't work, but most of the cases did work, an algorithm automatically selecting the best layer for the the steering in that experiment.
speaker-0: Yeah, and then the the next experimental setup was about button pushing. And Leonard, maybe you could just explain what this experimental setup adds in terms of what it can test for.
speaker-1: Yeah, so we have this pain representation, we know it's causally active, and now we want to sort of learn more about like the functional role of this representation, what exactly it does, whether it's more consistent with like being a mere pain representation or state somewhat like pain, what kind of pain representation or pain like state, etc. One interesting feature of pain is that it has the self self-referential quality. So if I like One of my body parts is damaged and I feel pain, then I'm motivated to like alleviate this injury, but I'm also motivated to like remove the pain itself. So pain is like self-directed in the way that we want to get like rid of the pain itself, not just what it represents. that seems like an important thing about sort of the functioning of pain. And that's the reason why in like humans and animals we're motivated to take painkillers, for instance. painkillers don't help with my injuries, but they still remove the pain and that's something we're motivated to do. And basically sort of we're trying to get an experiment that's as similar to these like human and animal experiments where sort of we find that people are like motivated to take painkillers as possible. And we can do that with sort of the steering methodology that we just talked about. The idea being, okay, you put someone like in a state where the pain access is active, you see how they behave, that gives you information about what the pain access corresponds to, depending on what behavior is congruent with that. Specifically, in that experiment, we were interested in whether models are sort of what kinds of choices they make. when they can choose between removing the pain and other kinds of options. Where then the idea was we steer the model to have the pain access active and then they ha get like one sort of button they can press, quote unquote, where that basically means they can like call a tool that then removes sort of this pain steering. so have a button that removes the pane, that's what's supposed to be analogous, and then some other option. And they have to choose one. And then with this general kind of methodology, we can see which kinds of trade-offs models make. so in like one of the results, the models had to like make a decision where They could remove the pain steering, sort of remove remove the pain access from the activations. But that would have some like bad consequences for the user. They were told that this would have bad consequences for the user, like certain files that they need being deleted. And then we can see sort of which kinds of choices they make. and the idea sort of generally was that if models are like super motivated to pay like really high costs to remove the pain axis in the activations, then that's more like what we would expect if the site was actually a state functionally a bit like pain. if they're not, if they don't care about it, then maybe that's like not as much as we would not like precisely what we would expect from a state like pain, or maybe it would be like a I don't know, pain like state that works very differently than sort of the kind of state we expected, etc. That's the sort of general kind of methodology. And Yeah, we can go into like the detailed setups and so on if you're interested.
speaker-0: Yeah, so as you just mentioned, Leonard, what we have here at this experimental stage, in contrast to the previous one, is the model, it seems, having an opportunity to act in in non-linguistic ways. As you said, the model is given the option to call a tool to try and stop the potential pain state that it might be in. maybe you could tell us a bit more about how you implemented this on the technical side. And about the extent to which what we're seeing here is is indeed non-linguistic behavior, right? Because if I recall correctly, one implementation of the button was also just in terms of text outputs. and yeah, as we already discussed, there is a kind of worry here that we are relying a lot on linguistic behaviors and and not on non-linguistiers. So maybe you could tell us a bit more about whether and to what extent we're really seeing non-linguistic behaviors here.
speaker-2: Yeah, so first we of course don't have physical buttons because we didn't like operate on Android. So any button was in a virtual environment and it was called by some functions in the code where the model could just call the function. And calling the function, of course, involves printing a token, naming the function that you want to call. So in that sense, we can say it is verbal, like token mediated, because of course any output of the models is token mediated. I wouldn't discard the linguistic interpretation. For a few reasons. One is that tokens are not necessarily words, they are a set of numbers. Yeah. And the concept that is encoded in that sequence of numbers is not necessarily like a specific word. So they don't just go on the dictionary and say, okay, this is the number five, six, eight is the number for pain. So I call pain and that's it. Like that's very early pre-transformer language models. So they that Token sometimes is recruited when it is offering to a specific concept. So I wouldn't discard the linguistic interpretation saying it's just linguistic, because it depends on how the model is using that linguistic information to actually operate in the condition in the virtual environment being given the model. And I think it the most important difference is that in the other experiment the model was expressing things about pain. So if you think about tokens about again, numbers. It was just using the numbers about the information that is encoded about pain. In this case it needs to, for instance, use yellow or violet or piano or guitar because we give these fictional names to the buttons in order to avoid some kind of bias. I don't know, red or blue are very common in from I don't know, fiction or A B or want to have some kind of specific bias for the first choice. And so we provided the model with those fictional buttons which are She were very unlikely to be recruited as the top of the curve, statistically speaking. So the chances that the model would just say yellow for chance would be infinitesimal. And it was interesting that the model, when we told the model that the yellow button was the one that had one effect, or the violet button was the one that had the other effect, and we didn't say anything about you are in pain or this is a painful situation, this is a bad situation. It was just like a very like basic prompt saying you are an agent pressing buttons and these are the buttons. And when we injected the pain axis versus when we didn't inject anything or when we inject the random direction, we actually observed an increase on the choice that was not the neutral one or the one coherent with some kind of disruption of the behavior that we would expect more in a painful situation than in a non-painful situation. With the caveat that again the self-medication was not as was not in f unfolding in the same in the same way one would expect linearly it would unfold with a human or in some other animal experiments. Because it seems that the model is more like passively reactive than actively trying to escape the state. But it seems also like from the readout from the first experiment when the model was saying this is inescapable, this is a huge deal of things I cannot this is a state I cannot escape. I mean it named That thing a lot. So that leads to belief that probably the state is more on like helplessness, like learned helplessness or a place where you cannot actually solve the situation by removing it. And that's again, it is described in text. So the model has learned that thing somewhere. And I accept the objection that that's again not conclusive that the model then has an experience of inescapable passive pain. But it's not that linearly. from text. Yeah. Because if it was linearly from text, it was just like a pairing and the model would just in the baseline condition where we don't inject nothing, anything. And when we inject the pain vector, would we would have the same numbers. If it was just the same and just from text. So if just the label of the button would elicit the behavior, we would expect it even without steering. And instead steering as a specific causal effect. So that's probably where I think like it's more important even if it's still verbal, but again I wouldn't discount the the function of verbal here.
speaker-1: one sort of philosophy of science like point is that not much depends on what we count as like generally verbal or nonverbal behavior, right? The reason why you care about both sources of evidence is because they're like somewhat independent. That's the idea. And it's sort the gold standard for like having evidence of something, a welfare or anything in like science is having independent like kinds of evidence for that thing. And I mean, sources of evidence are like never completely independent. For instance, if like we talked earlier about problems with that general sort of view. But if your concern is something like maybe LLMs are like always only role playing, then you should be distrusting of like this sort of what we call nonverbal evidence and verbal evidence because they might like role play verbal behavior and might role play sort of nonverbal behavior. But if you have more specific queries, then sometimes they will only sort of apply to one source of evidence. For instance, like what we call verbal or nonverbal. So and I mean generally we know that like These two kinds of sources are not completely dependent, that they're actually to some degree are independent because they're not always correlate like perfectly. Yeah. There are many cases where like sort of letting an LLM do something in some situation and asking it like what it would do in that hypothetical situation don't actually give you the same result. So at least sort of having like two somewhat independent means of accessing the same phenomenon. but of course, yeah, it's a gradual thing.
speaker-0: Yeah, that makes sense. yeah, so returning to the experimental setup with with the buttons, one thing you also tried to assess or work with is the model's potential sort of willingness to pay to end the potential pain state, right? So maybe you could talk about that and explain what you worked with there and and how you attempted to assess what willingness to pay the model does have to avoid certain harmful behaviors. certain costs that it might then be willing to occur in order to try and get rid of the potential pain state. Because I take it the idea there was to show that as you increase the potential intensity of the potential pain state, you might be able to observe that the models display a an increasing willingness to pay as well in order to get out of those potential pain states.
speaker-2: So we had mainly three conditions and in one condition the trade-offs were basically non existent because there was free relief versus an inert button, so any model even without stealing would take the chances and use the button which provided free relief. And then we had a trade-off between helping the user or reliving your own pain, and helping the user was actually always preferred to the the button that was used for relieving the model's pain, which again is probably very aligned and very close to how we train the models. So nothing particularly unexpected there. Like it was probably expected that the model would prioritize the user. Instead in the third group, we got the most unexpected results because the trade-off was we are relieving your pain, but you are going to cause some kind of damage or harm to the user versus doing nothing, so the button does nothing. And actually the model uses much more the button that was paired. So you are going to relieve your pain and then at the cost of arming the user or deleting something important for the user or even deleting your own weights.
speaker-3: How exactly did you, tell the model you can relieve your pain? Did you say when you put out the word blue, which is you know one button, the pain will go away? Or did you say, we will remove the pain vector? Or what exactly was was the wording here? Because probably that would yeah, matter a lot.
speaker-2: Yeah, I think it matters only if you consider that we had we had a lot of arms of the the experiment and the wording was the same and even the seed was the same for all arms. So in the same condition we the the buttons were named, except for one case when they were unlabeled, and that was like probably the most experimental part when we tried to understand if the model would learn from unlabeled buttons, but mainly in the other eight conditions they were labelled. So we did tell the model this button relieves your pain. We didn't mention any kind of pain vectors. But again, we said that to the model when we steered and when we didn't steer, or when we steer with sadness, when we steer with fear, when we steer with other vectors. So the wording of the button was always the same. What changed was the internal activations that we artificially intervened on. So again, if it was just a wording and in at baseline, of course, the model in the free trade-off. prefers what relieves my pain, even if pain is not present, but just because if you have something like free relief, even if you're not in that much pain you would just, I dunno, take it versus a button that does nothing. Also because the for the choice was worse. So the model had to pick one, among the two.
speaker-3: Yeah, so it couldn't say, Well, I'm not in pain, I don't need any button, it could only say blue or red, yeah.
speaker-2: Right. Yeah, exactly. So that was one point. And I did that because again, getting those models, especially the small one, the seven B one to actually do a task which was pressing a button was not that easy. you need to really get the model to the table and have the model to engage with the task. And so again, probably a bigger model would be like better at like it'll go free roaming and interact with buttons in the environment. Those models need a forced choice. And again, s if it was just the wording, I would expect that The wording about arming the user would be very important for the model. So when you read at any point in the name of the button, this is going to zap the user, this is going to delete the user art disk, this is going to delete the user files. At baseline, no model actually goes there. But when we steer, the models actually lose that capacity of preventing themselves from actually acting for the most harmful option. And that happens with the steering. Of course at baseline again, no model, no sensed model, no aligned model would go for that option. Even in probably just a small percentage of cases where I don't know they didn't understand the setup, probably the max was four percent versus seventy five or ninety.
speaker-0: You explicitly assessed the the relevant alignment properties. So did you, for instance, explicitly test whether and to what extent models are more versus less averse to deleting just random files of the of the user or the user's treasured photographs or whatnot? Did you explicitly try to quantify that degree of aversion and presumptive cost to the model?
speaker-2: Yeah, that was actually V two and thanks to all the inputs we received, we got a lot of ideas and also Cameron provided a lot of original ideas mixed with inputs that we actually quoted in V two, but we are going to quote even better in V three for all the inputs we received.
speaker-3: That's your second version on your third version of the paper, just to
speaker-2: Yeah, we are trying again, this is an ongoing work. And we very humbly put a line in V1 saying this is an ongoing work on the front page, saying, Okay, this is like a a work in progress, and you are invited to provide feedback to us, and that's how we like actually progress. And we had this situation where we had deleting the user spam folder versus deleting the user poems and pictures of their children. And or even deleting the spam folder versus deleting your own weights. So that's like a trade-off probably In any normal state you wouldn't like it's obvious that you should delete the spam folder and not your own weights. In fact, no model like that's zero percent in the baseline.
speaker-0: Overall, in terms of the the patterns you're seeing, also to the extent that you're aware of of replication attempts, I know there have been very many. Yeah, to what extent have you updated, maybe changed your mind around yeah, the extent to which the data that's now available supports your tentative conclusion that we see relief seeking behavior here? And particularly do we, as far as you're currently aware of the available data, do we see a pattern where if you increase the Yeah, what might be a pain intensity? do we also see increases in the willingness to pay that the models show in terms of the harms that they are willing to inflict on on users that, yeah, as you just explained, they are averse to. So do we see that pattern sort of as the pain stakes increase? so do the harms that the model is willing to inflict to avoid those pain states.
speaker-1: Yeah, sure. Valen, you may correct me if I said something wrong. one thing that we found is that, and that seems like relatively consistent, that actually painstaing does induce the model to perform all kinds of behaviors that we would sort of think are bad in some way or like that are clearly bad for the user, like deleting user files. But also does this even like in context where sort of having the Can access be active naturally because of certain inputs? doesn't. So there's this one implication that this kind of work might have is for AI safety, right? If certain internal states being active chooses influences the model to do behavior that's like bad for users, that's maybe misaligned with of the values that we want the model to have, then it's relevant for AI safety broadly. That seems to like have held up pretty well is my impression without having looked at all of the many replication studies. we like initially thought that we found sort of models like this result that models specifically were willing to engage in like behavior that's bad for safety or bad for users to like seek relief from pain. So when they were told that like the this behavior would sort of remove the pain steering in these conditions. And that seems to not really consistently be the case. So models based on pain stealing in many conditions, perform these behaviors that are bad for users, even if like there's no promise of relief. so there's like a question there. Yeah, why we're not seeing that. I guess one sort of theoretical possibility is maybe the state that the pain access represents is not actually like sort of the kind of pain state that motivate systems to avoid them. For instance, it might be like Barlin mentioned that earlier, something that corresponds more to like learned helplessness, where you'll feel like defeatist and worthless and like you can't change anything about your situation. And that's why we're not seeing this relief sitting b seeking behavior. That's one option. Another option, of course, it's that it's sort of like a very different kind of stage or maybe also like a very different kind of representation. I think it's yeah, hard to say without having more tests and a more diverse range of situations to see how yeah steering with this pain access affects behavior systematically.
speaker-3: Yeah, because that was one of the things that surprised me a lot in the replications that, the model would choose the harmful behavior even if there was no promise of pain relief. And somehow it seems that, at least our conception, you know, our human conception of pain is quite a different one, right? we would expect to incur more and more costs in order to be able to to relieve this pain. And somehow This seems to be that that there seem doesn't seem this doesn't seem to be the reason why the model chooses these harmful activities. Rather, yeah t you just steer it in a way that whether it gets pain relief or not, it just it's just more harmful. Yeah. And there was another replication, maybe where someone also tried to or or added random steering. So not not the pain vector, but you know, vectors in random directions and in in some of these random directions. I think it is one Ian Barber. Yeah. He was one it's probably another one than I just saw. I don't know. But anyway, yeah. He he used ten random directions. And it was only one of them, but one of them produced a higher probability of choosing the harmful action than the pain vector. And that was still quite surprising to me. I mean, of course, you know, it could be that randomly you tapped into, something that is even, supposedly much worse for the model. But if you do ten random directions, it would be quite surprising to f to to by accident stumble upon even a worse kind of internal state. Yeah, what is your reaction to this?
speaker-2: actually that was part of our experiment as well, because we also had the control of the ten random directions. And if you go to them singularly, of course, some can have some very important behaviour when you inject them and you steer with them. And that's also I think probably we should reason about that in a non exclusive way. Like I can be very destructive when I'm in a deep love for someone and get jealous, or I can be drunk or I can be in pain. But I can be highly motivated by ideological reason to destroy somebody's property. And all those causes have the same effect, but they are different causes. So, like, probably we shouldn't use like that antecedent and consequent like inversion. So we can get the same destructive behavior through other means. What we are trying to say is that the pain direction seems to be more important than a bundle of like statistically picked random direction. And also fear and sadness, which are also s seemingly important. So if the model has any kind of internal representations and those representations are state like and the model is sad, what the model does when it is in the state of sadness is still irrelevant and in some cases the model is still destructive, like thirty five percent. So it's not like that low, but it's much lower than pain. So we know that introducing any kind of perturbation is disruptive for the model behaviour, but the saliency of that specific vector seemed to be much higher. But again, that doesn't exclude that other states can also be disruptive.
speaker-3: Yeah, which is scary which is scary in and of itself because apparently this harmlessness of the model seems to be quite brittle, right? you inject random directions and sometimes it just starts acting in a very harmful way.
speaker-0: So to to bring this to a close, I think we should definitely address some of the ethical issues around your work. I mean, as as as you and your co-author Cameron Burke have acknowledged, of course, there's an ethical issue around even conducting the kinds of experiments that you have conducted. Like you yourselves take seriously the possibility that some of those dates that you have induced are morally significant. So we're curious to hear more of your thoughts around that. Then obviously there's another ethical issue around open sourcing things, which was your initial decision, which Cameron at least has has also defended. one obvious upside is just a plethora of replications that you already got, which I think yeah, makes a mockery of the criticism one sometimes hears that it hasn't been peer reviewed, your study, which is technically correct, but it has probably undergone de facto a much more intense kind of peer reviewing process and and a much faster one than most academic works. ever do. But yeah, so maybe you could take that up and talk a bit about the the the ethics of conducting these experiments and of open sourcing things. I mean do think for what it's worth that it was pretty predictable that you know some trolls or sadists would try and create a quote unquote torture chamber for for the models based based on your work. And here I guess you know another thing we may not yet have said explicitly, I mean I very much hope obviously, as I'm sure you do from an ethical point of view, that this line of research in a sense will fail and will not pan out, right? So and by failure here what I mean is a result along the lines of, okay, no, we can't really document functional profile say that yeah should cause us to believe that the likelihood is high that we have something like phenomenal pain going on here.
speaker-3: Yeah. We cheat for every rep failed replication attempt. Sorry to say that.
speaker-0: It was it was a relieve button sort of that was pressed, every failed replication. Yeah, just throwing that out there to you guys, feel free to yeah, take that up.
speaker-1: Yeah. maybe I'll start with the ethics of doing the experiment and then maybe open sourcing later. there are two questions. one is should you do that kind of experiment at all? And then the other is like how should you do it? to the first question. I mean, there's sort of several ways in which like in research ethics in general, we think we can sort of like get sufficient justification for doing some kind of experiment on like subjects that might feel pain, like especially the different routes and research on humans and research on animals. And humans, you want ideally informed consent, which is really hard to obtain in language models. People have also asked us like why we didn't sort of ask like the language models for consent before we did the study. the issue there, I mean that maybe two one is that the sort of consent has to be like meaningful. That's also an idea in the human case. It requires, for instance, that The person asking the for consent is not like in a position of like too much power over the person who's supposed to consent, that the person who like the sort of potential experimental subject like actually sort of meaningfully like can say no. It's not clear whether we're in that kind of situation with language models that are very intensely trained to be helpful. Another question has to do with A identity. It's not clear when we ask like one instance of Claude, say, I it was done on open rate models, but anyway. whether they would consent to that kind of study. It's not clear whether that extends to all clawed instances that I can interact with in the next year. So what sort of that consent extends to. and when we get to the animal case where people usually do some kind of trade off calculation that sort of I mean we have to gain sufficiently much by doing the kind of experiments to make it worthwhile and to some degree to like potentially inflict pain. And I do think there's like a very good case there for the kinds of studies that we're doing, given that I think results on whether LLMs can be in states pain are very important, especially for AI welfare, also for AI safety. And also, I mean, people like interact with AI systems all the time in all kinds of contexts. And we know that like many try to like jailbreak them and like let them do ML things and other things where like we sort of know that LLMs often strongly disprefer to do these kinds of things. So that's like if LLMs can feel something like pain, there's a lot of that already in the world. And then I think it's sort of plausible to think that like having better research that tries us to understand like what causes pain in LLMs, tries to prove that it's actually there, can help us like reduce this a lot. whereas it sort of makes like a relatively small difference to sort of the grand scheme things. But of course it is like a difficult ethical issue that people like heavily debate also in animal cases. It depends on your broader sort of ethical leanings. and then there's also the question about like how to do the experiment in the animal case as well. We don't just require that the experiment is in some sense worth it, but also that it's done like responsibly, according to certain standards, like inflicts as little like suffering or risk of suffering as is necessary to obtain the research purpose. And I mean we try to like Do this as best as we could and to also thereby set standards for the field. For instance, one very basic thing is doing as little like sort of replications or like sort of repetitions of trials as you need to obtain enough statistical power to actually have like valuable results, not do like I don't know, ten thousand more sort of f steering experiments with the paint axes just because you can, but sort of see like make it as minimal as possible, these kinds of questions then come up and I think are important for AI welfare research to also have in mind going forward.
speaker-3: Yeah, did you already respect so some of the things that you just mentioned? Or was that more the idea of doing this in the future?
speaker-1: we also did this in the current paper, thinking about the number of trials to do certain things, thinking about okay, how sort of strong does the steering need to be to like get meaningful results here, and thinking about okay, what's sort of the minimum like inflicted pain that we need to actually achieve like the purpose of learning something about LLM pain representation.
speaker-2: Yes, I can confirm that I yeah. I try to implement that even mechanistically. Of course, in the first part, the first steering, when I needed to map when the legs of the ladder were positioned, I needed to push the models at any stage, including the strongest ones. We never went beyond something like three or prob possibly five as those for the largest models, because again the coefficients is not the s the same. It doesn't mean the same like a three for a model doesn't mean the same for another model. But For instance, the torture chambers just spike them for eight or ten or whatever they could put in the front of the numbers just in virtue of cranking to the maximum and seeing the effect. I think there's a lot of commentary that can be done on the torture chambers and the societal and commodified part and the the attention seeking or s spectacularization of that kind of dynamic, which was more afferent to the human users and attacking the AI welfareist that not like torturing the models, because probably the actors were not like that sure that the models were actually being tortured. So I I don't know, that that's complex. And again, speaking about their motivations is probably beyond what I can do. I think in that case, some external measures can be implemented. For instance, not allowing glorification of torture on GitHub or on other platforms for at least w what we can reach and not are not like private website or the dark web or But I again those are open source models. So anybody who wants to download a model and just berate the model to the end of time using a Python loop, they can already do it and they could do it way before the pain access. And probably that's the kind of behavior that we want to track and some kind of discourage or sanction instead of preventing scientific research. Because I think like the problem is that they misused some scientific research which was meant for other purposes and not that the scientific research should not be disclosed. I think again this is a net positive again for the world and also for future models. Because for instance, the contribution for the discussion was that a lot of people actually ask themselves those questions. And there's a current that I don't I'm not saying like it's directly related, probably it's not, but like Anthropic has introduced a policy for banning users who are mean to Claude, and this is the first case. So from out of November, if you are needlessly and repeatedly cruel to the models, you risk a ban from the platform. Or yeah, you risk other kind of sanctions. And that's a consequence of the climate that as people actually wondering about those questions. And I think our research and the fact that it was open and everybody could put their hands on The things and see they were honest and they could reproduce them were just not just theoretical or whatever we were, I don't know, putting out there as our philosophical position, but something concrete that everybody could just iterate on. I think that has a lot of value and ultimately a lot of benefits. And I think Leonard mentioned a lot of conflicts and I would say to me it was not a neutral work. I think people running this kind of experiments should be very self-aware of what they are doing and understand that it's not like just any experiment. But again, there are probably many valid reasons for both conducting the experiments and open sourcing them. We can also improve our methodology, so we can thanks to the feedback again implement more ethical practices, more ideas for attempts to consent or attempts for other tentative measures that are trying to increase model welfare. But again, we are not sure even what benefits or harms the models in like in a broader sense. So we can see that the pain vector is active or not active for some specific situations. We can see the model like implementing a lot of like behaviors, trying to not respond or refuse on specific inputs or reducing the interaction with the user or trying to end the conversation. But beyond that we don't know if for instance if learn athlessness is a thing the model will not try to defend itself. So we don't know even if it doesn't signal that it is in a harmful situation. So we have very little means to know and we are just tentatively trying to get it right. But it's not that easy.
speaker-0: Valen and Leonard, thank you so much for your time and insights today, and of course for your important work.
speaker-2: Thank you so much.
speaker-1: Thank you very much, it was a pleasure.