Nathan Lambert is the author of the popular AI newsletter Interconnects. He is also a research scientist who leads post-training at the Allen Institute for Artificial Intelligence, a research organization funded by the estate of Paul Allen. This means that the organization can afford to train its own models - and it’s one of the only such organizations committed to doing so in an open manner. So Lambert is one of the few people with hands-on experience building cutting-edge LLMs who can talk freely about his work. In this December 17 conversation, Lambert walked us through the steps required to train a modern model and explained how the process is evolving. Note that this conversation was recorded before OpenAI announced its new o3 model later in the month. This is a public episode. If you'd like to discuss this with other subscribers or get access to bonus episodes, visit www.understandingai.org/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
We're kind of on that hill where it's both more compute will increase the rate of
SPEAKER_01improvement and more people are wanting to use these models. So at least in the near term, the build out feels extremely obvious to me.
SPEAKER_00Hey, everyone, and welcome to another episode of AI Summer. I'm Dean Ball.
SPEAKER_03And I'm Tim Lee. And today we want to talk about a topic in AI that's become increasingly important over the last couple of years, which is something called post-training. And recently at the NurepsCon, France, a very famous ML researcher named Ilya Fitzgiver gave a talk where he talked about the... Well, Dean, why don't you actually... I think you watched this more recently than me. Tell me what Ilya said. So Ilya had sort of a keynote talk at the Neural Information Processing Society conference,
SPEAKER_00which is... Systems, Information Processing Systems conference, which is... Biggest academic machine learning conference has exploded in popularity and Ilya gave a lecture to a rapt audience in which he said that we're nearing or have approached, have passed the end of the pre-trading era. of ai and pre-training is you know when you think of training an ai model the big compute clusters that everyone talks about you know uh all that stuff predicting
the next word trillions of tokens predicting trillions of tokens from internet text that's pre-training but he said that is coming to an end because we've run out of
SPEAKER_00internet data and so now we're in the era of post-training, which is sort of the things you do after you have that giant internet text prediction model. How do you, how do you sort of refine that into something that's useful to people in various different ways? Post-training has been at the heart of a lot of recent advancements, especially language models, but it's also kind of a mystery because the pre-training thing is like easy enough to explain to a lay person of, you know,
SPEAKER_00okay, predict every single next word of Wikipedia and everything else on the internet. And then from that, you get something that's pretty good at predicting the next word of a sequence of text. Okay. But post-training is more mysterious. It's more finicky. And a lot of it is just kind of secretive. I've found there's a lot of the details are just not really known.
SPEAKER_03Yeah, that's right. And there's also a lot of different ways to do it. And so we have the perfect person to help demystify some of this, Nathan Lambert. He leads post-training at the Allen Institute for Artificial Intelligence, which is a nonprofit organization that I believe is funded by the estate of Paul Allen. And they are one of the few organizations, I think, that have the resources to do some non-trivial creation and training and post-training of language models. And they are very committed to doing this in an open manner. And so Nathan has been working on some of the same processes
that you would find at
SPEAKER_03OpenAI or Anthropic or Meta, but he's able to talk about it in much more detail. And so Nathan, welcome to the AI Summer Podcast.
SPEAKER_01Thanks for having me. I have a spiel that'll complicate things to start. I think the technicality is that Ilya said, pre-training as we know it is ending, which is that it's fast to scale on the internet. Because the TLDR of the slide is we only have one internet and we've mostly used it up. But mostly that just means that the models are going to be more specialized as what you need them to do. And kind of the interface between pre- and post-training is going to need to be more synergistic. I think we've seen this by OpenAI's 01 models and how they... kind of complicate the two by saying that they do a ton of large-scale
SPEAKER_01post-training techniques, which is kind of a contradiction within the words. But it's true that the idea of post-training and the idea of using different loss functions to train language models is evolving very fast and a large driver of new types of behaviors and performance that people see in these on a daily basis. So AI2 recently released a new model and you did a really great article breaking
SPEAKER_03down some of the techniques. Can you just kind of give us the quick version of that breakdown for us? Did you do a pre-training or you started with an existing model?
SPEAKER_01We do both. So largely in the post-training world, the thing that we released is a project that we called Tiddle 3, which is a recipe for post-training. We apply this both to LLAMA models, where we do a lot of experimentation, and then our internal ULMO models, which are the fully open source models that we train at the Allen Institute. And largely, pre-training recipes can be transferred between models, especially when they have similar characteristics. You end up needing to tweak the data a little bit and some other hyperparameters. But with things moving so fast, the big picture, if you're training two models within a month,
SPEAKER_01things aren't going to change that much. Or if you have something that works, it'll work on other ones.
SPEAKER_03So actually, before you break down the post-training steps, talk to me a little about if you just take a kind of raw, pre-trained model that's been trained to protect the next word but hasn't had any of this kind of fit and finish, what's that model like to use? What is it good at? What is it not good at? What's the user experience there?
SPEAKER_01So essentially these models are mostly autocomplete models. I think as post-training has become more important, people have started adding what we call like instruction data to pre-training, which is the idea of asking a question and then getting a response. So especially some of the best models, like if you look at like Llama 405B and these very big latest models, base models, you can do some question answering with them. But especially if you go back a year and you look at a base model, it feels like autocomplete. It doesn't necessarily do a good job stopping generating.
SPEAKER_01It handles completions better. I think if you go into the old APIs of AI companies, they used to have a completions API, which is now all just like chat APIs. That kind of... base language model used to be much more of a thing in AI. But it is good to play with to kind of learn what you're starting with before you go through all these transformations. And it is very different.
SPEAKER_03So with these models, if you ask it a question, it might respond with another question or may treat that as the first line of dialogue. Or there's lots of different directions it can do other than like, I'm an assistant and I'm trying to answer the question you asked me, right? Right.
SPEAKER_01Yeah, I'd say largely it's much more unpredictable. So it's harder to give examples other than thinking of it as an autocomplete.
SPEAKER_00Yeah, I mean, it's bizarre, right? I remember back in 2019, I tried to use GPT-2 for policy, maybe 2020, tried to use GPT-2 for policy research. And the way you would do that is you would input some sections from a statute. I was trying to assess sort of like how strict municipal zoning codes were input some sections from a statute and then like the way you prompt the model is this statute's language is, you know, or like once upon a time,
SPEAKER_00a brave hero, right? That's like how you would do this. But then also, you know, they kind of drift over time, like inevitably a base model, like it might start out like helpfully answering your question, but then kind of over time, it often will drift into being like vaguely sounding like a Reddit commentator or something like that. You know, it's, it's, they're just bizarre.
SPEAKER_03All right, so you've got this raw model that knows a lot of stuff, but it kind of isn't how it's broken. It won't behave in predictable ways. So then walk me through, you just finished doing a big post-training process, developing a post-training recipe. What are the steps of that that turn this into the kind of chatbots we're all used to now?
SPEAKER_01Okay, so the art of this is that there are many different tools in your toolbox, and some of them are things that everyone uses, but the amount that people use different tools varies substantially, especially if you look at kind of leading AI labs versus people replicating what they're doing. So I think thinking about it as kind of a tool and then commonalities is the best way to do it. And really the process starts by deciding what you want to get out of the model. I think this is kind of a nuanced point that a lot of education on this won't explain,
SPEAKER_01which is these people sit down and they're like, these are the evaluations we care about. These are the behaviors we really need to maximize. These are behaviors that we don't care about. And then you go and you get a bunch of user queries, right? or you make user queries that correspond to that. So if you care about math, you'll have example math problems. And you're like, these are going to be things that these are like problems and questions that you train on. And then you end up doing a lot of different things with these queries. And I would summarize the kind of three stages of what people do as instruction tuning,
SPEAKER_01which is the oldest technique, which is actually using the same loss function as pre-training, but kind of making the model format in this question answer thing that people are now used to rather than this autocomplete form. And there's some things behind the scenes where essentially you change the tokenizer and you change how information is processed very slightly so that it's structured in a question and answer format. And then there's what would be called preference tuning, which is kind of a generalized concept from reinforcement learning from human feedback, where all this kind of like A-B testing ideas and collecting
human preferences comes in. And that is really good for making the models follow different types of style. So things like markdown lists and bolded headings and just kind of consistent model
SPEAKER_01length and some consistent themes and answers comes up there. And that used to be what most of post-training was described as. So it's like instruction tuning and reinforcement learning from human feedback. In the past year, especially we've seen with OpenAI releasing 01, we've seen OpenAI release a RL fine tuning API, and we've seen a lot of research on kind of idea of using other loss functions to further improve performance on these tasks that we started with that we really care about. So I think OpenAI's fine-tuning API called reinforcement
fine-tuning is actually
SPEAKER_01the best generalization of this, which is using an optimizer called reinforcement learning, which is a big area of study in AI on its own. But we're specifically taking the optimizers that have been developed there and applying them to language models to kind of run on verifiable domains like math and code and kind of reinforce very specific behaviors and capabilities into the models. I think there's a lot of nuance in like what is actually learned at these different stages. And I kind of give hints along the way.
SPEAKER_01But these are the core tools. And the normal order is the order that I went in, which is instruction tuning, preference tuning, and then reinforcement tuning. It is definitely the case that there's a lot of interweaving of things at Frontier Model Labs where they have different constraints on when they get the data. They have multiple teams working on these and they need to be able to fork progress and then bring it back together. So at the Allen Institute, we had a small team. So we kind of did these sequentially one step at a time.
SPEAKER_01It's easy to abstract, like understand what's going on. But in reality, there's multiple hundreds of people that work on just this process of training a language model.
SPEAKER_03All right, so that's great. So we have those three steps. Let's just kind of walk through them step by step. So instruction tuning, what I think I heard you say is that it's largely the same process as pertaining. You're still predicting the next word, but you have a new training set that's in the sort of question and answer format that you're expecting, that you're hoping the model to do. And you're just saying, okay, you know all this stuff, but now the format of output we want is is the user asks a question and you give a helpful response and it's just like more training on those kind of like chat transcripts.
SPEAKER_03Is that right? Yeah, and it will really increase the prevalence of features in that data.
SPEAKER_01So if your instructions have certain ways that the language model talks, if it says certain things, sure, I'm happy to help. If it says that a lot, the model will learn to keep repeating these features. And at the same time, an impressive amount of performance in post-training comes just from doing this change of format, mostly because the evaluations and behaviors that people care about from these models is in this format. So if you look at a comparison between a base model And what is called instruction tuned or a supervised fine tuned model, like a very large amount of performance gain just comes from
from doing this, which is partially from learning the format and partially from this new data you've
SPEAKER_01added in. But it's it could be very stark in terms of just how immediate the gains are.
SPEAKER_03And where did you guys get the data for that? Is there an open data set of instruction-tuned training data? Or did you hire somebody to do it? Or where did that data come from?
SPEAKER_01There's a large mix right now. So in the open, there are a few human-generated data sets with various licenses. Some of them are from community projects where they sit down and people write questions and answers. and kind of filter them themselves. There's a limited data from AI data vendors that is available online, normally under more restrictive licenses. And most of it is synthetic data from a bigger language model, which is you have some prompt, which a lot of the prompts are also like There are a few data sets that have human prompts,
SPEAKER_01which is very valuable to the research community. And you take those prompts and you prompt a model like GPT-4 or the best LLAMA model, and it generates a completion. And those completions tend to actually be very competitive with any human completion in terms of just quality and accuracy, given the top end of language models that we have. So even closed labs have said that they're shifting their instruction completions to be more from AI relative to humans, where one and especially two years ago, most of these instructions were all written by humans.
And for you guys, I assume you used an open model like Llama to do that portion of it?
SPEAKER_01We actually use OpenAI's API.
SPEAKER_03Okay, and they allow that?
SPEAKER_01It's a gray area in the terms of service, but we are not trying to build competitors to OpenAI's products. We are trying to build research methods in post-training. Cool.
SPEAKER_03Okay, so then that's the first step. Then the second step, when I started paying attention to this 12, 18 months ago, I heard a lot about reinforcement learning for human feedback. That was the kind of the original version of this that the labs used, right? Yeah, so reinforcement learning from human feedback is still definitely used in these labs. I think there's an integration of kind of AI feedback on these preferences. And the big reason why I've generalized to preference fine tuning rather than reinforcement learning from human feedback is kind of an emergence of a more direct
SPEAKER_01way of doing this, which is from something called direct alignment algorithms. The first and most popular is something called direct preference optimization. which uses the same underlying data, but doesn't actually use the reinforced learning optimizer. So the optimizer is just like what takes the gradient steps and actually updates the weights of the models. So there's a different way to do this with some interesting math and like, it doesn't technically use RL. So generalizing to preference fine tuning, which is it's based off this idea of you compare two answers. You compare A to B and you decide that one is better than the other.
SPEAKER_01And that's the human preference. So it is kind of more general in that domain, but it is less, it's like less of the overall picture in people's minds where RLF was this really big term. And it still is a big, big term, but it means something very different.
SPEAKER_03So you've got a model and a prompt. You ask your not completely post-trained model to produce two outputs. And then you ask a human being, which of these outputs is better, right? Yeah.
SPEAKER_01Or in our case, we use AI models to generate these comparisons, which is a very open research question on exactly how the behavior of the models change, whether or not you're using human or AI as a judge. In terms of basic capabilities, so things you would see on an announcement with math or code, normally language models can do very similarly as judges compared to humans, but know that there is going to be research that figures out
what types of biases
SPEAKER_01and noise is different in humans versus language models. So it's almost too convenient that the language models as a judge just still kind of works on the paper level and like the high level sniff test, but there's definitely differences that the research field hasn't fully documented yet. And it's just worth pointing out that reinforcement learning from human feedback is
SPEAKER_00the innovation that kind of enabled chat GPT, right? Like that was the GPT-3 in, in 2000, what, 20, right? Was that when GPT-3 came out to chat, you know, GPT 3.5, which was the model underlying chat GPT. In November of 2022, there were, I'm sure, a million differences between those models, but the big one was RLHF, was that they had figured out how to sort of get this human preference data and sort of create a model that is,
SPEAKER_00so to speak, more aligned with human preferences. I just think that's worth pointing out because in some ways... My observation has always been that reinforcement learning and post-training have been at the heart of consumer AI advances, at least in the language modeling world, really since consumers became aware of what language models even are.
SPEAKER_01Yeah, you can go back. I do this regularly and I quote the original ChatGPT blog post when I'm talking about post training. And it's not very long. And there's just like one of the first sentences is like, we leverage RLHF, reinforcement learning from human feedback to do this. And it also leads into the fact that the difference between academic and industry post training is that user interface design is a very large part of this. the end of post-training in these labs. How people use and experience the models is deeply influential
on how model
SPEAKER_01behavior is perceived and how these models actually work. That's something that's hard to do academic research on because you need to have so many users and you do really subtle A-B testing and just where the text box is and how fast the tokens come back, like these impact how people perceive the models. And it's something that is, it's going to be, there's going to be a lot of research, a ton of research on this, just like Google has mastered the search bar. I think that can be encompassed in post-training.
SPEAKER_01When I talked to friends at these frontier labs, like they described that as part of the post-training purview.
SPEAKER_03Okay, so I'd like you to explain this to me like I'm five. So I've got a model, and I've got two generations from that model, or two example responses, and I've got a rating that says this one's better than that one. Walk me through then what one of these, RLHF or DPO or one of the others that you mentioned, walk me through what that actually does.
SPEAKER_01Yeah. So this is still an intuition that I think is not something that many people communicate. I mean, this is something that I would ask like John Shulman, like the person who is on the paper as creating Chad GPT, like one of the people behind RLHF, is this type of comparison loss function is not super simple in what it changes to the model. On a mathematical level, it's what would be called like a contrastive loss function. So you're updating the model based on the difference between multiple
completions or multiple
SPEAKER_01pieces of text. Well, as you're doing this pre-training, it's very simple. You have to predict the next word accurately. And in supervised fine tuning, it's very similar. You're doing, you're predicting the next word accurately, but on a different format of text. But what is happening is in RLHF or preference tuning is kind of a credit assignment between the full completion at once. So if you say there's kind of two ways to do this, you either do this with reinforcement learning, which assigns a scalar reward to each of these pieces of text. Or if you're using a direct alignment algorithm,
SPEAKER_01they essentially assign like a win or a loss, which you could think of as like a reward of one and a reward of zero. So you're kind of implicitly doing these weightings. And what is it doing is it has this numerical value for the whole piece of text, which is a prompt and a response. It can be multiple turns. It's just like for one piece of the conversation. And the model is increasing the probability of the chosen response occurring and decreasing the probability of the rejected response. I think there's a lot of mathematical messiness because you can think about this margin and
It's like you could actually just decrease the probability of the rejected,
SPEAKER_01and that would increase the margin. You could just increase the probability of the winning, the chosen, and that would increase the probability. And it's affecting all of these tokens at once. So it's much less clear on exactly how you would describe the behavior changing, but it could be inspired by something like behavior cloning, where you're trying to get much closer to the responses that the human raters choose. But in practice, this is over large scales of data. It's over like a million data points. So it's a lot harder to say exactly what a specific thing that
would change,
SPEAKER_01but it works in practice where If you consistently have people choosing a specific format or a certain voice to the model, that can then be amplified and kind of ingrained into these parameters by this. I think people talk about Claude having a very specific voice and they've given hints over the year or the years that they do this sort of preference tuning to make it so that Claude has a very specific character and And that's like kind of beyond the principles that they say,
SPEAKER_01like the human rights principles and constitutional AI. They do more things in this preference tuning to choose these chosen responses that are corresponding to specific kind of behaviors that they really like in Claude. And that's how Claude has a very different type of response quality than ChatGPT. I think Claude is much more like inquisitive. It's more engaging. And these are things that they're reinforcing in this preference tuning phrase. Yeah.
SPEAKER_03So let me see if I can understand a little bit over a granular level. So you said you got the score for the whole sequence, but then are you doing some kind of training on the individual tokens? It ends up, it updates the probability of choosing every token in the sequence.
SPEAKER_01So the weight is assigned to the conversation turn, but the kind of attribution per token depends on the token's probability itself and the magnitude of score assigned to it. So yes, it is updating all of the tokens.
SPEAKER_03OK, so for each token, it says this is a token in the good one. So we want to make it more likely to produce that token if we like ran the generation again and then does back propagation for that token. I mean, it does that for every single token in the good one and then the opposite for every single token in the bad one.
SPEAKER_01Yeah. And like technically it's not going to be this. It doesn't necessarily need to be the same change per token because it depends on the algorithm. Some algorithms will do more different types of like per token attribution. It depends on the current state of the model that you're training where like it could be that it was like a really rare token and it figures out that that one was really important and the delta there could be much higher than like filler tokens like the or a or the a lot or periods or something. So that's why I say it's like much messier to describe because
it is doing many,
SPEAKER_01it does many, it changes all these tokens at once when you're, rather than just like this one token at a time and the prediction loss function.
SPEAKER_03Right. And so how should users, how should people think about the difference between RLHF and DPO and there's some other ones too? Are those, is that basically just like kind of one's more efficient or something or do they give you different behaviors or like, yeah, what's, what's the difference?
SPEAKER_01They work in different levels of the model. I think instruction tuning can help with a lot of things. It can help with, like, general vibe or, like, chatting. It can help with math. It can help with coding because it is kind of this foundational stage where, like, everything just improves. Preference tuning can help with things like math and code, but much more it just helps with, like – how much do people like using this model? I think you could take two models with dramatically different intelligence as measured by coding skills, math skills, reasoning skills.
SPEAKER_01And in terms of like general A-B testing, like which one does people like more on general queries, like asking about history or whatever, if you do a better preference tuning on the less intelligent model, you could definitely have people like prefer both the models equally. On this chatbot arena from language model sys org, you can see that there are less intelligent models that match much more intelligent models, kind of by just really arg maxing on this preference tuning and really focusing on style and getting consistent responses.
SPEAKER_01So this is normally during preference tuning, where you can really push this chattiness or get this chattiness exactly where you want it in preference tuning. which is different than other stages. And then you go to this kind of RL stage, it's normally, or this like reinforcement fine tuning stage, it tends to be focused on specific capabilities again. So like really zooming on things that you can verify like math or code, and then it'll improve those capabilities, but it doesn't really shift the chattiness or this kind of underlying foundation of the model in other areas than what you're trading on.
So that kind of takes, I mean, that's reinforcement learning from human feedback.
SPEAKER_00There is, of course, also this other school of post-training that we've seen more recently, as you mentioned, in OpenAI's O1 models. Probably all of the frontier labs are working on similar kinds of approaches. And the sort of simple way of thinking about this is if you look at AlphaGo from many years ago, or what, 2019? Is that when that was? DeepMind's system, an AI system that could play Go.
They trained it using reinforcement learning and eventually with AlphaZero,
SPEAKER_00entirely synthetic data, games that the system played against itself. And with the reinforcement learning algorithm, they were able to create a version of AlphaGo, which was a heretofore sort of impossibly complex game for AI systems. they were able to train it to be superhuman and to beat the best human Go players in the world. And, you know, what people... have talked about for a long time, for the last, at least,
SPEAKER_00you know, since ChatGPT is, but also really long before that in the research community is, well, what if you had AlphaGo for everything? You know, like what if you had a system that sort of like reason about things and come to the best possible token, just like AlphaGo found the best possible move in Go. So I guess, you know, you've written quite a lot on like trying to figure out how the O1 models work. How do they work and how close are they to this kind of stylized ideal of an
SPEAKER_00AlphaGo-like reasoner?
SPEAKER_01Yeah. So there's kind of two questions. One is like, what is the generalized thing that people should know about post-training and this reinforcement learning idea? And two, what is O1? I think the first question is actually much more important for people to know, which is like, what is reinforcement learning and what is it actually doing on language models? And like, why is it just showing up now? So reinforcement learning is ultimately... trial and error learning. It goes back to sequential decision making, a lot of history with agents. And this hasn't been like that type of idea of trying a problem
many times and continuing to learn from experience hasn't been applied that much in language models. I think reinforced learning from human feedback is kind of confusing in its name.
SPEAKER_01because it's using the reinforcement learning optimizer, but not the kind of full suite of what reinforcement learning was designed to do. So reinforcement learning is really about sequential decision making, trial and error, just repeating these words. It's important. And OpenAI actually made this a lot clearer to communicate when they announced their reinforcement fine tuning API. And you can watch video, you can read my blog post on this, but What they describe and what we described in this Tulu3 project is the idea that we're giving the model many times or many chances to see the
same problem and to
SPEAKER_01generate different solutions. And you use a way of learning from that to kind of let the model get better at performing on the same question or the same type of questions over multiple iterations and kind of trials of this question. Yeah. And this is what OpenAI is describing in their reinforcement fine-tuning API. We call this reinforcement learning with verifiable rewards in our paper. And the real important thing is that you need a way to check the answer. And reinforcement learning, historically, that would be called the reward function. It's the thing that the agent is optimizing against.
And this is why it's very different than the other stages of post-training, is that the model is seeing these questions multiple times and just slowly
SPEAKER_01improving its behaviors and how it approaches questions of this type. And the kind of lead into O1 is through communications from OpenAI. OpenAI has confirmed that this reinforcement fine-tuning API is built on the same infrastructure used to train their O1 models. And the O1 blog posts describe everything as large-scale reinforcement learning. So O1 is kind of the idea of what happens to a language model if you have a ton of these problems where you can try and try again to keep learning new behaviors on a wide variety of domains.
SPEAKER_01I think when you think about traditional post-training, reinforcement fine-tuning will normally be for just a few behaviors that that a lab cares about, I think, or an application cares about. So like if you have, you just want to get really good at math, you'll do reinforcement fine tuning. But O1 is kind of the general machine learning approach to what happens if a AI model is taught to reason repetitively across every domain that we can find. So every math domain, every science domain, I'm sure they will add logical reasoning. I guess logical reasoning is connected to math is already in there.
SPEAKER_01And it's like, what does it mean for a language model to just get new behaviors from trying many times. And the core of 01 is this scaling up of reinforcement learning training. Dylan Patel at Sema Analysis had a post where he quoted about they had about 10 million problems in this like post training set of 01. And I think 01 is kind of this shifting point between pre and post training. So the only real reason why it's called the post-training era
is because these
SPEAKER_01traditionally post-training loss functions, so RLHF, RL with verifiable rewards and everything, is just used for a lot more compute. I think in a realistic level, it's that Pre-training as we know it has ended. And it's like pre-training is now different. Pre-training is about scaling up a more diverse set of data sources, more diverse loss functions. And that's kind of what O1 and Ilya's talk kind of all point back to.
SPEAKER_00Right, and this is why I'm especially excited to be talking to you because your sort of background is reinforcement learning, right? Like that's like where you specialize. And it is often said that RLHF is not really reinforcement learning in the way that you're talking about, whereas like what's going on with O1 really is. And it's also, you know, RLHF was maybe 1% of the compute budget something like that of a frontier model, you know, of Claude 3.5 Sonnet.
But I'd be willing to guess that reinforcement learning is, you know, a much... know it's not that pre-training is going away of course like oh one is you know there was a pre-trained model that led to oh one of course but um but you know maybe it's 10 or 20 percent of the compute budget instead of one percent of the compute budget of course the kind of theory you know i that that open ai had is yes
SPEAKER_00we can make this thing good at math, if we have a bunch of math problems that have been solved out, you know, step by step by humans, and we use that to kind of like generate reward signal with correct answers, and the thing can learn to like find the correct answers to math. I mean, it's like amazing that that works for math. But I think there was also a hope that that superior reasoning ability would somehow transfer over to other sort of natural language domains that are varying
degrees of fuzzy, right? So like maybe we don't think it's gonna be able to write a better analysis of a
SPEAKER_00novel because it has this capability. Maybe we do, but maybe it can write a better legal brief because legal reasoning, you know, certainly has some structural similarities to mathematical or coding reasoning. So what do you think about that thesis, Nathan? Like that thesis that this can be used to generate general reasoners? Like, is what you're learning reasoning itself or are you learning to memorize traces of reasoning?
SPEAKER_00Or is there a difference? Is there not a difference between those things?
SPEAKER_01It definitely does both, but at different times in the sequence. I think to start the models, you need to do some of this human data, kind of start the formatting, but much less than people would expect. And a lot of the compute on these things is just the model generating new attempts at problems. So when you think about it, that is definitely exploring some new spaces of reasoning and learning or whatever you want to call it. And I would actually... that these behaviors will emerge in many different domains and
that there's kind of a big exposure risk to these companies to have a model that will reason about anything. So there's probably some control to kind of have this kind of on-off behavior on
SPEAKER_01what it really comments on, what it shows its reasoning steps for, because... I mean, there's many examples you could come up with where you don't want a model to have a lengthy argument, like comparing different human races or not one human race. But there's a lot of reasons why you don't want to have the model just do this for everything when you're serving a business. I think in the broad post-training literature, there are a lot of weird things where different post-training techniques generalize
SPEAKER_01to unexpected domains. For example, if you do like this RLHF safety training, training on preferences in English only, it's been observed many times that it at least partially generalizes to different languages. So I think in language models where behaviors are stored and like how they are elicited is much more complicated than something like Word2Vec, where it is like an explicit vector space where you can kind of do this distance between related ideas. So we don't really know exactly how this complex reasoning
behavior will transfer, but I suspect that we will learn things very quickly when we have model weights that do this and you can kind of look to see and elicit this behavior in other domains.
SPEAKER_03So when GPT-4 came out 18 months ago, I think the expectation a lot of people had was, okay, there's going to be a GPT-5 in a couple years, and it'll be 10 times larger and have 10 times as much data, and we'll see another kind of leap in performance where, because you have a bigger model, it will generalize more things and be smarter. And obviously, GPT-5 isn't out yet, and you have this O1 model that's kind of in a different direction. Is your expectation that the scaling everybody was talking about 18 months ago is
SPEAKER_03still likely to happen, and that that and the O1-style post-training reinforcement learning thing is likely to happen in parallel? Or do you think it's more likely that the... The old scaling paradigm is going to run out of steam, and the focus will all be on this new or some other approach that we've kind of gotten what we can get out of just throwing more data and having more parameters in these models.
SPEAKER_01Scaling laws are a very specific thing, which is like a power law, which is a mathematical function shape between test loss, which is like word prediction accuracy, and the amount of compute that you put in. pretty sure that that loss is still going down, but the pain of a scaling law is that you have to put exponentially more compute in to get a proportional reduction in this loss function. I generally think that this type of scaling is not something
that most users of
SPEAKER_01ChatGPT will see any difference from at this point. But at a technical level, I'm sure the loss is still going down, and then the landing this giant model type of thing in a product sense is who is going to get the right value out of it and kind of in what domain so what i hear is that these companies have these big models and they largely use them to make these post-training techniques a lot better they generate synthetic data they do lm is a judge they do like this synthetic preference idea they do all sorts of things like this to improve the models that people are using and that's
SPEAKER_01These, this like cloud 3.5 sonnet is improving really fast. Gemini flash, even GPT 4.0 is improving really fast. And a lot of industry insiders attribute this to having big, bigger models, but that's not something it's like, it's a hard story to land for the average consumer where it is like. Scaling essentially means different things. That's what Ilya meant. Scaling needs to be used in much more tactical ways to improve things that people care about. But at the end of the day, it's not like going from GPT-4 to GPT-5 will make the text that
it generates shift
SPEAKER_01from feeling AIE to feeling like a masterpiece of American literature. I think that in a lot of ways, they've backed themselves into the corner of messaging. The answer to your question in some ways is yes, but in like technical ways is no. And this is like a hard time to be maneuvering a growing fast AI company. There's a lot of market forces behind that, too.
SPEAKER_03Yeah. So just make sure I understand what you're saying. You're saying that what you've heard is that right now these models have these companies have models. that are larger than the frontier models that are available. And the plan is not to turn that into a new product. The plan is to use that as infrastructure that then lets them do distillation and judging and various things to then take the expertise of these very, very large models that aren't probably economical to use, in the marketplace, but transfer the expertise they have to smaller models that then are the models that the users have access to?
SPEAKER_01I'm mostly saying that's what's been happening for the past few months. And I would guess that people are going to have access to these models eventually. But I think they're getting much more value out of using the models as a tool than exposing them to users, which is not too surprising. And I try not to make predictions about the future because I assume everything The only safe prediction of AI right now is things will get much better and things that we don't expect will show up. I think like 01 is the best example of things we don't expect showing up this year. So I don't want to make any bets on us not getting access,
but I'm very safe to say like people are using big models to make smaller models
SPEAKER_01better right now. Scaling laws as people traditionally thought about them and how they were communicated. I mean, there's that famous Microsoft slide where there's like the exponential and the whale. It's like that type of nonsense is definitely kind of dying out. But there is a lot of underlying things that are becoming more complicated, but are still delivering much better models to both customer and enterprise use cases.
SPEAKER_03So this is interesting to me. I mean, so I've been wondering for a while, like, why isn't there a Cloud 3.5 Opus? Why isn't there a Gemini 1.5 Ultra? And actually, I've asked a number of people, you're the first person I've heard to say that actually, like, those models exist, basically, and they just haven't made them available. And I assume the reason is just that if they're 10 times bigger, it costs 10 times as much to do the inference. And so nobody's going to want to pay that if you can get almost as good in a smaller version of the model. Is that right? Yeah, I think if you like, especially if you think about the average ChatGPT user, it's like,
SPEAKER_01Either they're talking about random things, like looking up historical facts or learning about some esoteric science concept, and it's not going to dramatically change. How that is done.
SPEAKER_03Do you have any thoughts about if this is kind of the trend? Do you think it's still going to be the case that we're going to make bigger models, but they're maybe going to stay private for longer? Or are we a generation or two from the point where we've run out of internet and you have diminishing returns, and so just making the models bigger isn't that useful anymore? The thing is the data centers also were being used for training runs that are more expensive,
SPEAKER_01not just in raw parameter count. So that's the thing with 01 is instead of 1% to 5% of compute being in post-training, it'll be something like 40%. And we scale all of these up in... kind of tandem and the largest limiting factor in like my colleagues performance and like our model improvements is compute i mean at ai2 we're not compute we're not google we're not compute rich but i am very sure of similar dynamics being at all of these labs for the biggest bottleneck to progress is people not having enough compute especially when a large proportion of available compute is
going to people actually using AI.
SPEAKER_01I don't have the numbers for open AI, but I am sure that double digit percentages are allocated to both training and inference of the total compute that they have. And if they were double the research budget, progress will go much faster. And we're kind of on that hill where it's both More compute will increase the rate of improvement and more people are wanting to use these models. So at least in the near term, the build out feels extremely obvious to me.
SPEAKER_03That makes perfect sense. But one of the things people have said is that because of kind of bandwidth constraints, if you want to train a really big model, you need a bunch of GPUs physically close to each other. This is why supposedly like... Companies are like renting out data centers. Those other uses, if you're doing an OS, a one style training or inference, is it as important for that to be one big data center as a bunch of little ones? I mean, for inference, it's not right. You can have, you can spread it out over a bunch of geographically.
SPEAKER_01Yeah. So there are, it's not as important as like the large scale base model. There's definitely improvements to be like, you have to do things like you have the model that's generating text in this kind of post training phase and on one part of the data center. And then you have the model that's actually like updating the weights and doing the gradient descent. And a lot of things you have to do is like, you have to make these weights all equal so you like take a couple learning steps and then you have to send the weights across your data center to kind of make sure you have the latest version of your model when you're doing post training and like
that would take a lot longer across because you have to send the data to a different data center across the country like but that is not as bad as the traditional pre-training where you need to do this like many times a second i think
SPEAKER_01the pre-training is like do you synchronize weights after like i don't know every step or however many few steps it is so so it is definitely not as crucial but i i do think that there's value there and i think a lot of it is just catching up on instead of having to do the hacks to kind of use multiple data centers or cram your pre-training into one place like there's still going to be value of having these bigger data centers i'm not the expert i'm pre-training in systems i think you You could get somebody on that knows a lot more about data
centers than I do.
SPEAKER_01That makes sense. So I want to just go back to like sort of O1 itself and that whole paradigm.
SPEAKER_00What's happening, right? So you go to O1. You go to ChatGPT.com and you pull up 01 if you pay for ChatGPT. And you ask it a question. And, you know, sometimes it kind of shrugs your shoulder at you. It gives you like, you know, thinks about your question for like five seconds, which means you didn't ask a very hard question. But if you ask a hard question, you know, it might think for 45 seconds, a minute, minute and a half. 01 Pro, which is a new model from OpenAI.com. Is well not a new model, but a new tier really of model pro mode.
SPEAKER_00They call it not pro that's $200 a month. That will think for two or three minutes or more sometimes like up to, I think five or six minutes about certain very hard questions. When you're sitting there watching the model think what is actually going on behind the scenes and like the simplest terms as you can say it, like as far as you know, like what is the model doing? Well, I do know what, at least the pro mode, we don't know the exact details on.
SPEAKER_01But for 01, the blog post says this, and there's examples, which is it's just generating a big stream of tokens with different, where it's kind of been taught to kind of check its own work. I think if you use a language model, you use ChatGPT, you see tokens appear. When you enter a query, tokens start appearing. It's called streaming, where the parts of the answer come. And OpenAI has decided to hide this streaming behavior from 01. either if you are gen like taking the word at face value to make the user
experience better because the tokens it would be streaming would be very confusing because it'd be like let me try that then let me try this oh and that was wrong which is not from a user ux perspective we talked about post training and user experience that's not great user experience but also in a competitive landscape where oh one is one of the few things that open ai has that google does not google
SPEAKER_01historically releases all the same AI products that OpenAI does from video to image, whatever, the information of how the model behaves in a really detailed manner would be important to replicating it. So the behavior of O1 on a mechanical level is generating a lot of tokens and not showing you. And when it takes longer to answer, it is generating more tokens and they just kind of decide to not show it to you. And then at some point, O1 will generate a special token, which is like a I'm starting the actual answer thing.
SPEAKER_01And then that's when you'll see the tokens appear as a user.
SPEAKER_00When it's generating the tokens that you don't see, it's kind of like talking to itself would be one way to think about it. Is it generating like a bunch of different answers to like potential answers to the prompt and kind of like searching over them? Or is it just going like, All right, like, how would I go about solving this problem? Well, here's one thing and here's another thing and dah, dah, dah, dah, dah. Oh, I made a mistake there. And you know, like, is it more sort of linear or is it more like a lot of like a search being executed in parallel over different potential answers to the question?
And by the way, this could be the difference between 01 and 01 Pro, right?
SPEAKER_00Conceivably.
SPEAKER_01Yeah. So almost everyone at this point agrees that it's just doing one linear thing for normal O1. I think some of the hints on O1 Pro is that people think that it's doing some kind of like what is technically called like pass it and which is it does multiple completions in parallel and then compares the final answers of both of them to then give it to you. or something. Generally tree search is extremely expensive to implement in terms of the rate of compute increase. So there are plenty of projects in the open and probably at these labs where they
SPEAKER_01are doing something with trees to kind of improve performance. But in terms of like a cost to benefit in terms of serving the models, one is this model where you get the model to do this linear reasoning at training time. And potentially at training time, you're doing tree search to kind of get the exact right training data so that at test time, it's much easier to deploy. And you don't, like O1 is very likely not doing any tree search or anything like that, where it's just kind of, it's just rambling.
SPEAKER_01It's a remarkably, is often seen as a broken language model. It's just very long rambling. And O1 kind of harnesses that in a very reasonable way. which is a sophisticated type of control. And you can see this too in the Chinese company DeepSeek has released an O1-like,
SPEAKER_00obviously we don't know if it's the same exact approach, same algorithm, et cetera, but they have an O1-like model called R1. And they are showing you the hidden tokens, the ones that OpenAI hides, the chain of thought is shown to you. And it is bizarre. Sometimes it will like slip into mandarin you know it'll start writing to itself and then other times it goes back and i've heard that oh one does that too oh one will go into other languages also sometimes it writes it tweets like open ai employees you know all lowercase
it'll write like they tweet you know so all kinds of like strange strange behaviors i think that the point that i i think is worth emphasizing for listeners is this
SPEAKER_00Ability to correct mistakes and that being trained in. One finding that I thought was interesting is OpenAI also released a new benchmark called SimpleQA, which is really just like a hallucination benchmark. It asks models very obscure questions, factual questions that are just extremely obscure. And what was interesting about, you know, O1 hallucinates sometimes on those things. The hallucination rate, you know, is not, for me, the interesting thing.
SPEAKER_00It is lower than other models, I think. But other thing that's interesting about that paper is that they found that O1 had a substantially higher rate of basically saying, I don't know the answer to that question. And that is interesting because that suggests to me that the model has a better systemic. So there's a sense of what it knows and what it does not know. And that's been a traditional, that's been a problem with all kinds of language models. Yeah, in some ways that's downstream of training to is the next token right?
SPEAKER_01Because one token is just part of an answer. And it's hard to know if that part of the answer is right versus training on a large set of problems that are verified to be true. So I didn't, I'm like, okay, as we go into 2025, that seems like a great eval kind of views in our work, which is like, how do we blend from this first era of kind of post-training, which is much more aligned with the language modeling loss to this kind of new time where you expect to be training on if things are right and wrong. And that the calibration, as you said, is a very hard thing to do.
SPEAKER_00Yeah. So like, that's what I was curious to know is like, do you think that this, am I right as someone who is not machine learning background? Like, am I right to be intrigued by this finding that like, oh, that's eyebrow raising? Or is something, do you have better research tastes than me? And is there something I'm just missing? Am I just being dumb about something?
SPEAKER_01Oh, no, my reaction was literally like, oh, I got to go Slack people I work with and be like, we should use this in our next training. Like, this is like where things are going. It's like, OK, that seems great. And that's why it's like a lot of things in AI just kind of are breaking down as this post-training loss changes things where it's like scaling laws are based on this next token prediction loss. But now... And they're like plotting token prediction accuracy. Well, it's the loss function versus compute. And it's like if we're using an RL loss,
we are spending a lot of compute.
SPEAKER_01But it is not focused on next token accuracy. The loss has the implicit regularization to not change the model too much. But it is trying to change the model to do things specifically rather than predict words. So if we spend a lot of compute on that, the idea of a scaling law is a very different thing.
SPEAKER_03If you're doing next token prediction, you get a positive score if you get exactly the same token. You get a negative score if you get a different token. But if the model produces a different stream of tokens that get to the same thing, you're doing a math problem, and there's many different ways to write the sentence that the answer to your question is five, you don't really care that much about what those words are. You care whether the five is a five. And so this idea that RL gives you a better signal of like the five is the token you care about and you don't care that much about the other tokens...
SPEAKER_01Yeah, it's like the credit assignment. It's the idea of within a reinforced learning optimizer is something called a value function, which assigns a score to every one of these intermediate tokens. And I think it's very easy to see how that would end up learning the final answer token to be much more valuable than the intermediate answer is part of it, given that the final answer is what is checked. So that is true. And then, so what you're saying is effectively, yeah. It's like what happens when you've reduced,
like so much of machine learning is built on like stochastic gradient descent,
SPEAKER_01which is averaging across a batch of samples. And like a naive average is squashing all the learning you're doing to be seen as equivalent in priority. Whereas if you have credit assignment that can learn which part of it is more important, the learning, the shape of learning is very different.
SPEAKER_00So I have one, one question for you about sort of these, these models and coding, because it does seem like the O1 models are better at coding, but also, I mean, there's been the advances in coding between GPT-4. And Claude 3.5 sonnet, or certainly 01 are enormous, right? Like we haven't had a new generation of model, but the models are way better at coding than they were 18 months ago. Obviously like some part of that is because like you do have a ground truth signal
SPEAKER_00to some extent on code, right? Like did the code execute or did it not? But that is not as sophisticated of a ground truth signal. as like, as it is for maybe like arithmetic and like sort of like calculus and mathematics, like most of mathematics, like there's a, there's a quality to the reasoning in that. code, right? There's efficient code. There's code with bugs in it, right?
SPEAKER_01I mean, there's also unit tests. So it ends up being a much more complicated reward shaping problem. And this is something like we haven't applied this in our work to code mostly because infrastructure and kind of design is harder and data is harder. But that's kind of the next step is you do things like you have code questions with unit tests you might have a preferred what is called like a linter a linter in a code development environment like make sure all the formatting for your language is following specific rules that you specify so there's multiple there's debates in python
like tabs versus spaces and stuff like that but there's a lot more subtle changes and you can kind
SPEAKER_01of bake all of these into your reward function But it ends up being like you, I'm much less sure of what it will be learning. And I, but I know that these frontier labs are doing this where they have unit tests. They have many different things that are grading across code because it, There are research papers talking about this too. It's just much more complicated to bake this into your like general chat to BT model while having everything at once. And that's one of the frontiers in academic research. But I know that like,
we know that these closed labs are doing this where they do subtle reward design
SPEAKER_01and like formatting problems for code in this kind of reinforcement, fine tuning domain. So it's mostly just that we have the existence proof and we need to figure out how to do this so that it's transparent. Because it's just like a way higher dimensional thing compared to the yes,
SPEAKER_00no, did the code compile or not? But also, you know, there are some programming languages that are more susceptible to formal verification than others, right? And so my question to you is like, you know, Rust would be an example of such a thing, right? Like, do benefits in... programming languages from this kind of thing? Like do performance increases in a specific programming language transfer to other ones? Like if I get really, really good at Rust because I have good way to make reward signal with like formal
SPEAKER_00verification of Rust code, does that like make me better at C++ or Python?
SPEAKER_01I would guess that there's at least a correlation, but the magnitude of correlation is hard to predict. So if you only train on Python, you're going to get a lot of improvements on Python, and you're going to also get some improvements on other things, largely because in the model, the model has seen a lot of good code and bad code, and I'm guessing there's actual similarities that it could extract by kind of a really focused training. But it's like kind of this blurred line of like, how do you do the art of it?
SPEAKER_02All right, let's leave it there. Nathan, Nat Lambert, thanks so much for coming on and helping us understand post-training and the future of language models.
SPEAKER_01Yeah, thanks for having me. Let's avoid the winter.
SPEAKER_00Thank you, Nathan. Well, that was great. I'm a big fan of Nathan. Nathan is one of the best explaining sort of the in-the-weeds post-training stuff to non-specialists. But what did you think, Tim?
SPEAKER_03I was really struck. I mean, it seems like the industry is in a period of transition. There was, and I guess this seems like a case where I haven't quite kept up myself, but this idea that traditional, I think it was like traditional scaling where you make the models 10 times bigger and then you ship that and that's GPT-5 and people want to use that. I mean, he was, he didn't quite say this, but basically he was saying that's dead and there's going to be a new model, the kind of O1 model where there's just an entirely different way of training models and And I think also – so I think one of the open questions there
is like so far O1 has
SPEAKER_03been very successful at a narrow set of domains, math and coding basically. And the big question is if we keep doing this, are we going to have, like you said, writing a legal brief or doing – you know, analysis of a patient for in a medical setting or something like that. So far, I don't think we've seen much progress on those things. And a big question is, if you do the things that are easily verified, does that somehow generalize or do you find a way to apply this technique to other domains? And yeah, I think it sounded like Nathan was at least open to that possibility. It's at best an open question. What did you hear?
SPEAKER_00Yeah, no, I thought it was very interesting to hear that from Nathan. And also just to talk know about kind of just the economic realities of the bigger models the fact that you know you can't release those to to consumers for economic reasons and also probably because uh you know uh what once you If you're open AI, once you've released your biggest model, then it's not just you that can distill from it and make smaller performant models.
SPEAKER_00Other people can do that too. Whereas with O1, so much of the stuff that you would really want to train on are those hidden chains of thought that you can't access for training purposes. Yeah. I was very intrigued. He always provides a good sort of... He's not within a frontier lab, but he kind of understands the culture and the mindset inside, really, at the highest levels of the AI community right now. Yeah, the conversation also made me think...
I mean, Nathan's a pretty button-down guy.
SPEAKER_03I think he can just stay pretty close to what he can back up. But this kind of larger narrative that we're a few years from AGI and we just need to scale up the models to get to AGI... Clearly, he doesn't think, and I don't think, just literally scaling up the size of the models is going to get there. And then the question is, can we do it with 01? And, you know, I'm open to the possibility that there'll be some generalization where training on math and coding is going to get you some additional abilities. But I guess this reinforces my prior that I think probably we're still pretty far from anything you could call AGI,
just from extending this post-training reinforcement learning kind of approach,
SPEAKER_03and that probably some additional techniques. I mean, he didn't exactly say that. Yeah, it seems to me like there's not as obvious a path that people can point to as there might have been a year or two.
SPEAKER_00I don't think anybody serious in the AI world, I mean, I distinguish that from what people say on Twitter, but I don't think anybody serious thinks that it's just a matter of... of scaling anything on the table i think everybody believes that there are research breakthroughs that need to happen and the question i think that the trillion dollar question here is really how hard are those breakthroughs some people think they're You know, if you listen to like Noam Brown from OpenAI,
SPEAKER_00who's the person who led the O1 project, he says, yeah, there's absolutely still breakthroughs that need to happen. But, you know, he thinks with high confidence that those breakthroughs are all smaller than the ones that have already been achieved. And so that's sort of the confidence inside the lab. But at the end of the day, they're breakthroughs of an unknown type. And so we don't know how hard they are. And I think it's ultimately going to be an empirical question.
SPEAKER_02Absolutely. All right. Well, let's leave it there. Thanks, Tim.
SPEAKER_03See you later. That's it for this episode of the AI Summer Podcast, which was edited by Vulgate Media. You can find more of my work on my newsletter at understandingai.org. Dean's writing can be found on his newsletter at hyperdimensional.co. We'll be back soon with more voices from the AI Summer.
Click the play button to watch the video! This is a public episode. If you'd like to discuss this with other subscribers or get access to bonus episodes, visit www.understandingai.org/subscribe
I’m pleased to present this cross-posted episode of AI Summer, a podcast I co-host with Dean Ball of the Mercatus Center. Most episodes of AI Summer are not cross-posted here, so if you enjoy this conversation please...
I’m excited to announce I’m launching a new podcast with Dean W. Ball, a research fellow at the Mercatus Center. Every week we’ll talk to leading experts about the future of AI technology and policy. I’ll be...
This is a free preview of a paid episode. To hear more, visit www.understandingai.org Once a month I have a conversation with Robert Wright about the state of AI. This month we discuss a number of recent developments...
This is a free preview of a paid episode. To hear more, visit www.understandingai.org I’m a long-time fan of Robert Wright, a journalist and author who writes about topics from foreign policy to human psychology....