Scaling to Long Horizons — Ross Taylor & Chengxi Taylor, General Reasoning https://www.youtube.com/watch?v=2bvtay8wGYI AI Engineer · 18 min · 242 sentences · sentence-level transcript from YouTube's caption track; each line begins at the time shown [00:12] Uh so this talk is called scaling to long horizons. [00:15] My name is Ross. [00:16] Uh I'm the CEO of GR. [00:17] We're a London-based reinforcement learning company. [00:20] Uh before GR, I was the reasoning lead at Meta AI working on Llamas, uh Galactica, lots of other models back in the day. [00:27] I'm joined by Chengxi, uh co-founder and president of GR. [00:30] Uh and yeah, hit today we're going to talk about algorithms, environments, compute, all the things you need to do to get agents scaling uh to kind of long with tasks. [00:41] So we're going to have two parts of this talk today. [00:42] I'm going to first of all start with a personal perspective about, you know, the early days, the golden age of language modeling in between like maybe 2020 and 2023. [00:52] Uh I'll talk about, like I said, all these models and some of our early reinforcement learning efforts for LLMs. [00:56] And then Chengxi is going to talk about, you know, what's ahead, you know, what the next frontiers. [01:00] And yeah, that's going to be a really talk with a lot of alpha, so I'd encourage you to stick around for that. [01:06] So the journey so far. [01:07] So my journey started here. [01:10] Um so this was the Papers With Code team. [01:12] I'm sure many of you used Papers With Code back in the day. [01:15] So we were a London-based startup 2019. [01:18] Uh we were acquired by Meta later that year. [01:20] And then we had a crazy transition within Meta to do research. [01:23] Um so we did, like I said, Galactica. [01:26] Then after ChatGPT came out, we started the post-training for Llama 2, Llama 3. So all the great work you uh saw there was folks in this room. [01:34] And lots of other interesting stuff that never got published as well. [01:37] Uh reasoning Llama and lots of other things. [01:39] Um so yeah, this this small team I'd like to think like the open weight kind of revolution started in this room. [01:44] And you know, it really like hit home this idea to me that kind of small focused teams, like even in like the age of scaling, can do amazing things if people are aligned. [01:54] Now for me, uh things got particularly crazy in 2022. [01:59] Uh so let me tell you a story. [02:00] Um the media perception is that ChatGPT came out of nowhere, you know, shocked the world, and that's how kind of the modern AI wave started. [02:10] But, you know, I have a different personal perspective on this because 2 weeks before ChatGPT came along, there was another language model called Galactica. [02:18] So let's talk about Galactica. [02:20] Galactica and, you know, ChatGPT, you know, they were both, you know, in some respects quite similar. [02:25] They're both based on pretty good base models. [02:27] Galactica itself was a base model, and then ChatGPT was based on GPT-3.5. [02:33] But there was a clear difference in outcomes. [02:35] So Galactica at the time shipped with this slight base model demo. [02:39] And as you guys know now, like base models, they come with a lot of quirks. [02:42] You know, they hallucinate. [02:43] You prompt them to do, you know, silly things, they would do silly things. [02:47] Whereas ChatGPT wasn't just a base model, but had this like crucial reinforcement learning from human feedback pipeline. [02:54] And this was the key thing that made LLMs like really products for the first time. [02:58] So I like to think in a weird kind of way, this is like the first like kind of natural experiment showing you that kind of RL like provides value, right? [03:05] Uh and to my misfortune, it was like a very personal like kind of a natural experiment and you know, Galactica blew up. [03:11] Uh but that's like a good like kind of lesson there. [03:13] A good base model is not enough. [03:15] So I took that lesson quite early on. [03:18] So like I said, RLHF made LLMs products. [03:21] They were the thing that kind of made LLMs cross the Rubicon into something that wasn't just a toy, but used by now billions of people. [03:27] But you didn't have to wait until ChatGPT to see this. [03:29] Like even at the time, like InstructGPT in 2022 had these pretty stunning results. [03:34] Like a 1 billion parameter model with RLHF was outperforming 175 billion models. [03:40] So two orders of magnitude fewer parameters, but getting better results. [03:44] So that was astonishing. [03:45] So if you were paying attention closely, you know, maybe we should have been as well, but we were focused on a, you know, bloody base model, which is hard work in 2022. [03:52] But that shows you how you know important even basic RL is. [03:57] And the Galactica demo itself, I mean, it set off a storm. [03:59] So, ancient history now, but we put out a demo. [04:01] We let people play around with it um because it's kind of cool. [04:05] And at the time people got scared. [04:07] So, it was like, you know, like I said, you prompt it on like a research paper on Dyson spheres or a report on the benefits of eating crushed glass and people are like, "Oh my god." [04:16] Um so, that was the state of things in 2022. [04:18] And yeah, I'll be honest, the meta association didn't you know help us either. [04:22] Um and yeah, the tragic story in a way was a lot of the, you know, novel work was maybe overshadowed. [04:28] But you know, the paradox of this whole thing is that at the time Galactica was actually a bloody good model. [04:32] Um like it outperformed Palm, Chinchilla, GPT-3.5 with a lot less compute in scientific domains. [04:38] It was state-of-the-art. [04:39] So again, that also shows you how powerful RL is. [04:42] You can have a sota base model, but that is not enough. [04:45] Um so, here you see on like a math who's kind of beating Chinchilla. [04:49] Uh kind of latex equations, you know, science, you know, it was getting around 68% compared to GPT-3.5, 49%. [04:54] So, crushing there. [04:56] And chain of thought as well. [04:57] So, you know, a Palm at the time which was a Google Brain model, 540 billion. [05:01] You know, that's 30 billion in Galactica was getting like 36 versus 19%. [05:05] So, double the performance, order of magnitude less results. [05:07] So, that again reinforces base good base models not enough. [05:12] But it introduced some key ideas which I think are very important. [05:14] I mean, Galactica was the first LM to really crack data efficiency. [05:17] 105 billion uh token corpus compared to you know, trillion uh tokens in Chinchilla. [05:23] And it was a really contrarian at the time cuz you know, at the time everyone was like, "Okay, we just need more tokens." [05:27] And Galactica said, "No. [05:28] High quality, you know, curated data sets really matter." [05:31] And that was a real driver of those results you just saw. [05:34] And it was also like the first major LM to really crack multi-epoch training. [05:38] It sounds ridiculous now, but at the time the consensus was you don't do more than an epoch. [05:42] Um but this kind of rule of thumb, you may have heard of it like four uh epochs repeated data, that was formalized later. [05:47] but Galactica was the first like real empirical result for that. [05:51] Now, perhaps more importantly, there's this idea of thinking tokens. [05:54] And some of you might remember this, but it was like really quite buried within the paper. [05:57] So, around this time there were like different ideas for reasoning. [05:59] There was chain of thought, which was one idea. [06:01] It's where you prompt for like kind of like the steps. [06:03] There were scratch pads where you just like put like very like numerical kind of intermediate steps. [06:08] But, Galactica was really this first idea which said, "No, this is an internal working memory process. [06:13] This is an internal thinking. [06:15] You should be inside these tags, and you should spend the inference computer before you get to an answer, right?" [06:19] So, these are all like quite like pressing ideas. [06:23] But, you know, Galactica came and went, blew up, and then, you know, we were kind of tasked as a team to kind of spin up the post-training effort for Llama. [06:30] But, I had like a personal obsession, which was like reasoning. [06:34] And I had like a really simple idea at the time, which is, "What if we applied kind of reinforcement learning pressure to this like kind of thinking tags as work?" [06:42] Like, what if we just optimize the thing in between the thinking? [06:45] And if that sounds familiar, then this is like kind of what Deep Seek 01 ended up doing 2 years later. [06:51] But, there's a key difference. [06:52] So, at the time we only had Llama 2 base models, terrible mathematics corpus, terrible results on math. [06:58] And, you know, the context window, you know, we're all like, you know, very context-rich now, 1 million tokens. [07:03] You know, the back in the day it was 4,000. [07:05] It wasn't too fun. [07:07] But, we still had a recipe at the time, and this is unpublished, but it was a really good for the meta. [07:11] So, RSP was this. [07:14] Number one, continue pre-training of Llama 2 towards mathematics and science data. [07:18] So, that's the first thing. [07:19] Llama 2, math corpus, so let's fix that. [07:22] Number two, PPO with verifiable rewards. [07:25] But, notice this isn't GRPO, right? [07:27] So, we had a time and a strong outcome reward model to initialize the value model. [07:31] That was a key thing, lots of data on value models at the time. [07:34] And internally at the time, this kind of recipe led to state-of-the-art results on math and reasoning. [07:39] So, we were kind of like, "Wow, this is like really shows the power of having the right objective." [07:44] But, the really fascinating thing is like we had great results, but we didn't have like inference time scaling. [07:51] We didn't have this reflective behavior that became like the hallmark of R1 and O1. [07:55] You know, back weights, you know, back tracking, all this kind of stuff. [07:58] So, it begs like the question like, "Why? [08:00] Well, why didn't we have that moment?" [08:02] And we got an answer around like 2 years later. [08:05] So, there's a couple of like things going on here, but essentially better base models were the thing that really got RL cooking. [08:11] And when DeepMind came out, I was kind of shocked at the time. [08:13] I was like, "Holy we just like tried the same thing. [08:16] We didn't have this. [08:16] What's going on here?" [08:17] And in a weird kind of way, the real lesson was it was just like the bitter lesson, like the most purest form of bitter lesson possible. [08:23] Like, better base models, more RL computes, bigger context windows, and that's all you need for this kind of emergent behavior. [08:31] It also like says something like quite important about the sociology of like research because the fact that OpenAI had this model, you know, GPT-4 level model before anyone else, it allowed them to see further, right? [08:41] So, that's a really interesting point. [08:42] Like, the the age of scaling means that if you have certain prerequisites in place, you become smarter, you see further, you see more ideas. [08:49] So, really interesting point. [08:52] So, this was me in 2024. [08:53] I was a very sad panda, uh defeated by ChatGPT and O1. [08:57] But, I wasn't deterred. [08:59] Um so, I wanted to seek the next wave, and I still was like convinced that kind of reasoning hadn't been solved. [09:05] So, we started GR uh to take on truly like big tasks. [09:08] And with that in mind, I'm going to hand over to Chengxi. [09:10] He's going to talk about what we're kind of thinking about now. [09:13] Ross. [09:14] Ross. [09:14] Ross. [09:20] Hi, everyone. [09:21] I'm Chengxi Taylor, co-founder and president of General Intelligence Inc. I'm going to share what it takes to scale to long horizon. [09:31] First, I want to make it clear. [09:33] Long horizon task is not just an engineering problem. [09:38] It is a mindset. [09:40] If we want to solve humanity's biggest problems, such as cure cancer, solve millennium's prize problem, or go into Mars, we have to be patient. [09:51] It take time. [09:52] And if we want AI to move us towards that level impact, we have to think about long horizon. [10:02] But here's the first problem. [10:04] We have a scarce context window. [10:07] If you take Fermat's Last Theorem as example, what it take for the mathematician was over 10 years time of reading paper, writing down thoughts in the scratch pad, or taking a walk [10:18] to generate the creative ideas. [10:21] If we convert to token, that's probably tens of a billions of even hundreds billions. [10:26] But where we are now, just a 1 million token context window. [10:32] So one solution is use compaction. [10:35] So what it essentially does is generate the token until the end of the context window, summarize, and then on top of that generate more tokens. [10:45] And the beauty of applying RL in the situation is kind of like kill two birds with one stone. [10:50] You apply RL to the compaction and also the task. [10:56] But here's the problem. [10:57] With long horizon, there are three issues. [11:00] The first is the gradient variance scales with the length. [11:04] And the second is a sparse reward. [11:06] And you have this credit assignment problem. [11:09] And finally, there's also variable length of the trajectory that adds to the problem of optimization. [11:17] So to solve this issue, we can apply critics, which is the value model. [11:22] And value model can reduce the variance and also have a couple advantages, such as on the trajectory level that fits compaction very well, and also encourage the batch diversity. [11:34] And also, I'll talk later on bootstrapping. [11:37] Basically, get signal before the end of the episode. [11:40] But, the downside for this is that um it's more complicated than GRPO, and basically, you have to train another value model alongside with the policy model. [11:52] And there's some tools to help with the context limitations, such as a file system tools, which essentially like a scratchpad for AI to write to the uh reasoning thought. [12:02] And self-search tools, which allows agent to search over the previous trajectory. [12:08] And then you have archive tools. [12:11] In the case like auto research, you can build upon your previous result. [12:15] But, we have to be careful. [12:16] In other scenario, you don't want an AI to cheat by just to grab the previous answer without thinking. [12:24] So, how good are the current model on this long horizon task? [12:31] In the general reasoning, we construct the benchmark called a Kelly bench, where we're actually featured in the front page of the Financial Times. [12:39] Kind of a caught us off guard how much the mainstream have interest in this. [12:43] So, basically, what we did is that we allowed the agents to build machine learning models to um trade in the football matches over 1-year horizon. [12:54] In this case, it's a Premier League, if you're interested in football. [12:58] And we're so fascinated by this because there's a real money to be made, and if it was a successful, couldn't make a billions. [13:06] There's a whole industry on sports betting. [13:08] And unlike things like a cargo competition, this has a real-world implication. [13:15] But, here's the result. [13:18] As you can see, we gave all the frontier models a 100K to start. [13:23] All of them lost her Sad. [13:28] And that captured the public's imagination. [13:30] Oh, AI is not as great as they thought. [13:34] And why are models so bad at long horizon? [13:37] First, I believe now the AI industry is a little bit too biased towards coding and procedure task. [13:45] What I mean is that the current task is a most formulated like do this and fix that. [13:51] Normally that limits the solution like one or two. [13:54] There isn't just too much space for creativity. [13:57] And second of all, not enough focus on open-ended task. [14:01] We live in the real world with a lot of a complexity, uncertainty, and that's not fully captured by the current benchmark. [14:10] And also, there isn't enough simulation of the real world. [14:13] We live in the world that there are other players. [14:16] Like in today's conference room, there are other real people who have a different thought, a different games than you have in your mind. [14:23] That's the complexity that's not fully captured. [14:28] And another thing I want to talk about is the long horizon impact on compute. [14:33] We know that GPUs are scarce and precious resources. [14:37] And in this case of a long horizon reasoning, you have to be careful about how to optimize your use between training and inference. [14:46] And pipeline RL is a quite popular technique nowadays. [14:50] So basically, it's a trade-off between off-policy and the GPU utilization. [14:56] So traditionally, you let inference run towards the end and then you start to train the model. [15:02] But in the case of long horizon, you have to wait until the inference finish. [15:07] What the pipeline RL does is that you let the sequence to be generated and you start to train the model while there's a still more sequences being generated. [15:17] And you see this created off-policy. [15:19] But from the our experience, normally off-policy up to eight steps is okay. [15:24] So, essentially, we made a trade-off between the off-policy and the GPU utilization. [15:31] But, here comes the issue. [15:33] As we the long horizon indicates, sometimes the inference would take weeks or even more. [15:39] In that case, inevitably, it will goes beyond the constraint of the eight steps of our policy. [15:45] So, your GPU have just to sit there idle and wait for it to finish. [15:50] And if you don't want to wait, as I mentioned before, applying the value model allows you to bootstrap. [15:57] What it means is that before the end of the episode, you generate expectation. [16:02] It's like a dopamine in human brain. [16:04] And that allows you to train the model. [16:06] But, here's another trade-off. [16:08] While you utilize the GPU fully, you introduce the value model bias. [16:13] So, there's always a bit of trade-off in those solutions. [16:17] And I want to also mention that in the long horizon, infrastructure is important, especially for the environment. [16:25] And Open Review was a product is a platform by General Reasoning. [16:29] If you're interested, you can check it out. [16:31] openreview.ai. [16:33] So, it's a place where host over 350 environments and with a single API endpoint. [16:40] And we use this for our internal RL and also some frontier labs and new labs are using this. [16:48] So, to summarize both Ross and my speech, it has been a long journey as long horizon indicate. [16:58] We as a team have seen the paradigms in AI reasoning on pre-training and agents in the past few years. [17:06] But, looking ahead, what makes us really excited is the long horizon. [17:10] And it requires us to think, have a new thinking on the algorithm, environments, and compute. [17:19] There are a lot of challenges and trade-offs, but we find it's really exciting to take on this journey because, as I mentioned in the very beginning, long horizon is not just engineering problem. [17:31] It is a mindset, and if we really are ambitious to solve humanity's biggest problems, this is the journey for everyone. [17:39] And that's also the mission for general reasoning. [17:42] So, if you are interested, follow us. [17:45] General Reasoning, we're London-based AI research company. [17:48] Thank you. [18:04] [music]