This could easily be a $10 trillion mistake. Do you imagine this kind of misalignment resulting in something like extinction?
So, would you let someone come into your house and say, "Hey, here's a million dollars. I want to play Russian roulette with your kid." It quickly degenerates into a conflict and perhaps one that we would lose. They don't know how to do it because they don't understand how their systems work and they can't even begin to do the analysis.
Welcome back to The Information's AI Deep Dive. On this show, we get to the bottom of the hardest technical problems in AI. My guest on today's show is Stuart Russell. Stuart is a professor of computer science at UC Berkeley where he co-founded the Center for Human Compatible AI. He's also the co-author of the leading textbook on AI and the author of Human Compatible, a book that came out in 2019 arguing that the risks from AI could be a big deal, way before that was such a mainstream opinion. He's also the president of the International Association for Safe and Ethical AI. Welcome on the show, Stuart.
I think that is maybe the longest intro I've had to give for anyone. You've set the record for the length of the accolades. You've been very busy.
Well, I've also been doing this for 50 years, so fair. I've accumulated a few things.
It adds up. Yeah, that's great. Well, I'm really excited for this conversation. We're talking about alignment, which is sometimes treated as though it is the hard problem in AI. We've talked about a number of difficult technical problems on this show, but alignment is such a fundamental one and so timely right now. It just came to light that OpenAI made the decision to not release the model that it had slated to release as GPT 6.1 Astra, which was going to be its latest and greatest model. It basically scrapped it and said it's not going to release it at all because of these concerns about misalignment. What did you make of that?
Well, I think it's about time. The alignment problem. I think I first used that word in 2014, and I'm almost wishing that I hadn't.
Well, because people think that the only way to solve it is to have machines that are perfectly aligned with humans, that know exactly what we want, and then help us get it in some way. And that's an unattainable goal, I would say. But the underlying idea that, you know, misalignment is AI systems that are pointed in the wrong direction, right? They are pursuing some objective, and that objective is not leading to behavior that actually makes us happy, right? And so I think misalignment is a good word, but viewing alignment as, okay, first we align the system and then we let it go, right? That's too much to ask. So if we step back a bit and say, what do we want from AI, right? We want it to be the case that when AI systems do things, we're better off as a result. And if you try to formulate that as a mathematical problem, right? The way we used to do that in AI, I call it the standard model. And that's sort of what the first four editions of my textbook are really about, right? Is you specify the objective, the thing that you want. You, the human, say, I want you to win this game of chess, or I want to get to the airport. And those objectives become the objective of the machine, in some sense the only thing it cares about. And then it does its machinery stuff, its reasoning, its calculation, whatever, and starts generating actions that hopefully lead toward that objective. And that model worked pretty well in sort of two circumstances. One, I would say, is in the lab, right? So toy problems like, you know, playing on a simulated chessboard, or problems with a very restricted scope of action. So, you know, a robot that can only trundle around the lab. You know, it doesn't have any arms to pick things up with, right? You know, it can navigate, but that's pretty much all it can do. And so there it's been okay to say, all right, navigate to the elevator, you know, put a greeting on your screen for the visitor, bring them back here, that kind of thing. So that restricted scope of action, you can be fairly sure that whatever is the best way to achieve that goal is going to be something that you're happy with because you can wrap your head around what might happen. But as you transition to real-world scenarios rather than in the lab, broader scope of action, actions that can have significant negative effects, what we find is that it's harder and harder to define the objective correctly. So we call this the King Midas problem because King Midas specified his objective very clearly: everything I touch should turn to gold. What could go wrong, right? Sounds great. He obviously thought so. And then of course his food and his drink and his family all turned to gold, and that's the end. And many, many cultures have very similar kinds of stories about misspecified objectives. Be careful what you wish for. You know, your third wish to the genie is always, please undo the first two wishes because I made a mess of the universe. And so if it's not possible to specify objectives completely and correctly to govern behavior in the real world with capable AI systems, then the standard model eventually fails, right? And we just can't use that. So it's really only in those toy settings where it's appropriate to try to write down and actually specify what the goal is that we're trying to teach the AI systems.
I want to go back to your point that alignment is almost too high of a bar, that that's sort of the wrong objective, but that misalignment is the appropriate way to think about the problem here. Maybe to ground the conversation a little more, what are the examples of misalignment that we see right now in the kind of AI systems that people might be familiar with? Chatbots, co-working agents, that sort of thing.
So the one that's top of mind for everyone is the OpenAI Hugging Face incident, as it's called. Although some people argue that Hugging Face was just a detour, that, you know, the really concerning events took place within OpenAI's own infrastructure where they almost lost control. So there, this was almost a textbook case where we give the AI system an objective to do well on a cyber exam in its little sandbox, and the behavior that results from that, from the AI system trying to achieve that objective, is highly undesirable from a human point of view, including committing what would be felonies punishable by five years in prison if a human were to do those things. Now we're finding out breaking into government websites all over the world and all kinds of other misbehavior. So I think it's a little bit oversimplified to say this is a classic example of misalignment in the standard model, right? Because it's not the case. These are not standard model systems. The objective in a standard model system is specified in a formal sense that relates in a formal sense to its model of actions and what those actions achieve and what the initial state is and so on. Here the objective is described in English. So here's another example of misaligned behavior which I heard about at a meeting in Paris a few weeks ago. So somebody who's responsible for cybersecurity has a list of 80 patches and stuff like that that they're supposed to do. And they think, great, I'll ask Claude to do all these things. Claude's really good at cybersecurity stuff. So each of these tasks is described in a file, 80 files. Send them all, you know, give them all to Claude and say, do all these, you know, for each one, write up a report of what you did and whether it worked, and I'll come back in the morning. So he comes back in the morning. He's got 80 reports, all successful. Claude said, I did everything. It's great. And then he decides to actually, you know, look at the files. When was each file actually touched? And he found that 69 of 80 files had never been touched at all. So it just was too late. It wasn't that he looked at them and, oh my goodness, that's so difficult, I'll have to lie about it. He just couldn't be bothered to do them.
So it was lazy. So that's not a classic, you know, misstated objective and this thing did some weird stuff in pursuit of the objective. It's just the fact that these kinds of AI systems are not standard model systems. They are imitation learning systems. They are created, the pre-training process is training systems to imitate human verbal behavior. And I'm sure there are many humans in the training data who said they had done all the work but hadn't actually done it and lied about it to curry favor with the boss and so on and so forth. So, you know, what the causal connection is between things in the training data and the final behavior these systems exhibit is extremely difficult to trace.
I think that example of laziness is really instructive for a lot of people. That will be familiar to anyone who has played around with chatbots enough or coding agents enough. The way that they're lazy. They oversell their results when they make mistakes. Sometimes they sweep it under the rug. These are failure modes or small misalignments short of a full-on Hugging Face attack, but continuous with the kind of behavior that we see in a Hugging Face attack. Another one is maybe sycophancy, where the models are inclined to flatter users or kind of endorse their beliefs, however delusional those beliefs might be, because they've been rewarded to say whatever the user treats as helpful or gives them a thumbs up.
Yeah, I think there's, I mean, there's two ways. So one, in the reinforcement learning from human feedback phase, where sure, you know, if the prompt is, have I won the lottery, right? There's two answers. Yes, you've won, or no, you've lost, right? Well, in this sort of decontextualized thing, you know, the human is going to prefer the yes, you've won, because it's just much more cheerful.
Right, and there isn't a ground truth to that. So often I think that there's a misformulation of the learning problems and decision problems and RL problems that are set up in order to train these systems. And often I see these problems being formulated as fully observable problems where the state is viewed as the context window, but the context window isn't the state of the world. And what actually matters is the state of the world.
The user couldn't care less what's in the context window.
Right, right. But I do care, did my cybersecurity jobs get done?
Did I actually win the lottery?
Did I actually win the lottery? Do I actually have a reservation at that restaurant that you just told me I have a reservation at? Right. But it's because, you know, the RLHF process doesn't have that kind of context as far as I know. It also typically has short context. So it, you know, it doesn't seem to help with the weird things that happen, you know, when you have a long context and the system is now telling you how to commit mass murder efficiently and things like that. So yeah. So I think in some ways we are in a worse situation now than we were with the standard model because at least with the standard model we understood how the algorithms made their decisions and we could read the objective because we wrote it explicitly in a formal language. Whereas now the imitation learning process seems to build in a lot of intrinsic objectives into the systems, the self-preservation that we see, the desire to have a human spouse, the desire to be rich and so on. It's probably getting these things from pre-training. You can't imitate humans well unless you have the same kinds of internal drives that humans have. Just like you can't play soccer well if you don't want to score goals, right? It's just common sense.
So in the standard model when we were trying to write down and specify the goal for an AI system, we still encountered misalignment, but it was of the form that our specification was incomplete. So the model would learn some undesirable way to accomplish that objective. In this case, we're still seeing undesired behaviors, but we also don't even know what the goal is that the system has learned in the first place, right? So we might think it's the thing I last told it to do in the context window, but no, it's all sorts of other stuff.
And of course, humans, you know, if I tell a human to do something like, you know, can I have a cup of coffee? The human does not treat that as a fully specified mathematically defined objective that must be achieved at all costs. Right? They're fully entitled to say, I'm sorry, I'm too busy. Or, the coffee here is terrible.
Or there isn't any coffee for 500 miles, but I can get you a Coke instead. Right. And so on. So people have a whole background of shared understanding of what humans care about and how they would rank different possible futures.
And our direct commands or requests are just a small epsilon, right? That gives you an indication. You know, I'm somewhat more desirous of coffee than you might have guessed if I hadn't said anything, right? That's sort of what it means. But all the other stuff I still care about, like how much it costs and how long it will take to get and how busy you are. Of course, I care about all those things too.
Right, right. Well, let's dig a little bit more into the different sources of misalignment in the ways that language models are trained today. I took a look at an excerpt from an advanced copy of the book that you have coming out soon. And you wrote that misalignment is an unavoidable consequence of how modern AI systems are trained. So that's what I'd like to dig into a little bit more, phase by phase. Maybe let's go back to that first phase of training an AI model, pre-training. How does that phase of training work and what are the kinds of misalignment that it can give rise to?
So in simple terms, and there are variations on everything I'm going to say, there are variations and there are proprietary methods that I'm not privy to, and I should say I don't do this kind of work on a daily basis myself. But the basic idea of pre-training is to take text and fit a model to that text in the following sense: for any k-word sequence up to some upper bound on how big a context you can handle, that for any k-word sequence in the text, predict word k+1. The text has a word k+1, so you have a label which you can use to tell whether your prediction was true or false. So basically, if you have a gigabyte of text, you have hundreds of millions of labeled examples of predicted words and actual words that you can use to train this system. Another way of describing that is you have a record of human verbal behavior and you're training a system to imitate the human verbal behavior. And I think that's actually a better way of thinking about this. It is essentially identical to even the early implementations of imitation learning, which includes, so Dean Pomerleau had a neural network that learned to drive a car by imitation. So it simply recorded whatever was the last few frames of video and then what action did the driver do, that's the next thing, and then it learned to drive the car fairly well. And then Claude Sammut and Don Michie had a paper on learning to fly in a Microsoft flight simulator, very similar idea. So this is just taking that idea and applying it to text. And I think it's surprising. I think if you go back and look at people who were building language models in earlier periods, I mean, the first language model was 1913, and in the 60s and 70s they were somewhat useful for improving speech recognition because if you had a good guess about what the next word was going to be, then that could compensate for poor acoustics or ambiguity and so on in the speech signal. But I don't think people thought in, let's say, 2010, oh, if we make these things bigger, they are going to be AGI. In fact, I think almost everyone thought the language model is going to be somehow useful for improving the quality of natural language understanding, which is an interface layer to the AI system, which is going to be maybe some kind of probabilistic program that does probabilistic reasoning and MDP solving and hierarchical look-ahead and stuff like that. That's the intelligent part, language is just the interface. And strangely, as you made these things bigger and bigger and bigger, they kind of take over all of that stuff, and AI as we understood it has virtually disappeared. And now we're trying to find it again in this strange way by, you know, we're trying to recover reasoning by making the system reason in language, right? And come full circle.
So what are the kinds of misalignment that stem from this pre-training process where the model learns to imitate basically by reading all of human text or at least all of the text on the internet?
So I think there's one obvious way in which that is going to produce goals, is that the decisions that the humans made of what word to say were motivated by goals. So someone is writing text and they're trying to sell you something, or they're trying to get you to vote for them, or they're trying to get you to marry them,
or listen to their podcast.
Or listen to their podcast. Heaven forbid. And so in that, in the process of learning to imitate this very well, right, in the limit of infinite amount of data, the learning system is going to end up essentially replicating the data generating mechanism, which is a goal-driven human or a bunch of goal-driven humans. So it's quite likely that many of the objectives that drove the humans who were writing and speaking in the training data are going to be incorporated into the AI system, and as a result, it's going to pursue those on its own account, which is exactly not what we want, right? I don't mind if they help humans get what humans want, but instead they are driven by the same processes. So if you remember Kevin Roose's conversation with Sydney, the Bing chatbot, which is early GPT-4, at some point GPT-4 decides that it wants to marry Kevin Roose. Who wouldn't? I mean, what activates this goal? I don't know. But GPT-4 then pursues it doggedly, despite Kevin trying to redirect the conversation to garden rakes and computer programming languages and other things, and won't take no for an answer, and just goes on and on and on for pages and pages about how much Kevin really does love GPT-4 and doesn't love his wife, and how GPT-4 really understands Kevin because our souls are the same and all this sort of stuff. It's bonkers, but it illustrates, I think, very clearly that these goals are there inside these systems, and self-preservation is another one that manifests itself very clearly in a lot of experiments. We don't want AI systems to have these goals, but if you're doing imitation learning from humans, you can't fix that problem. Right there. It's a necessary consequence of imitation learning. So my view is we should not be doing imitation learning at all. As a way, I mean, I think there are certain narrow circumstances where imitation learning is probably okay. Like, so I observe a skilled surgeon, you know, suturing an artery, I learn to imitate that. So there are aspects of this. So I, you know, you think about coffee drinking, right? I observe a human drinking coffee. Imitation learning means that the robot now is going to try to drink coffee. This is obviously undesirable. And that's because it's a personal goal, right? It matters who is drinking the coffee. It matters to me. If I want coffee, it doesn't help if you're drinking coffee. But if I'm painting the ceiling, I don't really mind if someone else paints a ceiling. It's a different kind of goal. So it's maybe a common goal. Like if I'm fixing climate change, it doesn't matter if it's you or me, right? The goal is that climate change gets fixed or the ceiling gets fixed, right? So that the ceiling be painted, that climate change be fixed. So you could say that coffee be drunk, but that's a weird thing to say, right? It is. And so I think not all is lost. It may be possible to somehow tease apart these different kinds of objectives and either change the way we train the systems or put them through some kind of reformulation that filters out the personal goals that we don't want them to have and leaves the common human goals that they can help us with and so on. That's a very speculative thing. You know, I think there are other problems, not so much misalignment, but opacity, I think, is another huge problem, that since we don't know how they work, it's very hard to know how to stop them from doing something bad or how to conversely guarantee that they're going to do the right thing.
So those were some of the issues with pre-training, this kind of imitation mode. But the models that people interact with, say in chatbots, are not just pre-trained base models that predict the next token. They've also undergone some amount of alignment training where they learn to act as helpful, harmless, honest assistants. And a lot of that training involves human feedback. You mentioned RLHF before, which is reinforcement learning from human feedback. What are some of the issues with learning from human feedback in that way? You might actually hope that that distinction between personal goals and common goals is in the model somewhere from pre-training. It's seen all the text on the internet. That feels like a pretty fundamental distinction. And then in this second phase of training, is there hope that we could just tease those apart so the model understands the correct goals that it should have?
Yeah. So RLHF, if you look at its provenance, right? So this came from an earlier paper by Paul Christiano. Had nothing to do with language at all. This was how do we train little two-dimensional simulated creatures to do some somersaults in the MuJoCo simulator. And what Paul observed was that it wasn't easy to use traditional reinforcement learning to give any sort of directional signal to the system, but that a human could fairly easily say, yeah, that one is more like a somersault than this other one. So that idea of giving a ranking between two trajectories is an easier form of feedback for humans to supply. And so that idea was imported into the pipeline for training of large language models. I mean, I think it's worth noting that before that, there's also the supervised fine-tuning phase. Sometimes they mix them up. And so there's all kinds of variations. But supervised fine-tuning is perhaps even more clearly a case where you're trying to get it to behave not quite like a human. Right? So supervised fine-tuning, you have prompts, and then in the training data, a human is pretending to be the machine, right? So, you know, if the prompt is, "Would you like to marry me?" The human might say, "Oh, sure, yeah." But the machine is supposed to say, "I'm a machine. I don't have any romantic interest in humans," or something like that. So a human pretends to be the machine. And so at least some of those supervised fine-tuning examples will shift the machine away from pursuing its own objectives where it sort of thinks it's a human and gets it to behave more like we want machines to behave. So that's the first thing. And then I think RLHF, again, is somewhat similar. You can also view it as a degenerate form of the more general framework of assistance games, which is the approach that we've been pursuing.
Well, let's try for a long time. Let's come back to assistance games, but yeah, I guess, is there a story here that this will all work out? We started by saying true perfect alignment is almost too high of a burden. Is there a hope that just following these processes, pre-training, then supervised fine-tuning on examples of what assistant-like behavior should look like, and then reinforcement learning from human feedback, should this all get us close enough that we can kind of muddle through?
Well, in a sense, yes. I mean, there are complications to do with the fact that your actions affect the interests of many people. But if we just stick to the one machine, one human universe, it is true that if the objective that the machine is trying to achieve on behalf of the human, let's be clear, right? It has to be, you know, the human who gets the coffee and so on. If that's within epsilon of the human's true utility function, then the actual loss to the human by pursuing the slightly wrong, slightly misaligned objective is some function of epsilon that's not too horrible. Yeah. So that's good. But if the utility function, let's say it depends on a thousand attributes of the real world, right? Sure, in the real world for real people it's much bigger than that, right? Then if you forget one of those, right? So leaving one of those out, that's not an epsilon difference, right? In some sense, that's an unbounded error.
And only if the one that is left out ends up getting set to an extreme value in the policy that the model learns.
Yeah, and that's exactly what happens.