this discussion I had with alex earlier this year re-shaped a lot how I’m seeing these new breed of frontier models that are specialist at coding + multi-agent + long running. the concepts of compositional generalization and sub tasks being locally in-distribution makes it very very obvious why LLM + harness are doing so well right now. and also explain why tweaking the harness a bit sometime make a whole set of tasks that were previously unatainable for LLM a breeze. I strongly believe now that processing tasks into a “coding-friendly” format will be a continuous vector of breakthrough for the months to come. check out the full interview below and big thanks to everyone that submitted questions was an awesome session! table of content: * 0:00 - RLM are compositional generalizers * 4:40 - overview of what is an RLM * 10:00 - updated info and experiments on RLM * 22:40 - Big Boss Alex L. Zhang * 27:45 - what is “locally in-distribution”? * 34:00 - do we even need long context inside an LLM? * 36:50 - yacine is rambling again… * 39:35 - is locally in-distribution computation enough for scientific breakthrough * 46:40 - why are transformers poor at compositional generalization * 52:50 - what is missing in this soup of capability from the transformers side. * 57:25 - [at gun point] improve the harness or train a new model for compositional generalization??? * 1:03:00 - how early RLM should enter the training pipeline? * 1:07:00 - how do you validate such a major architectural change btw? * 1:10:00 - what does Alex thinks about long-running persistent ai agents? * 1:14:00 - is code enough for compositional generalization across modalities? * 1:18:52 - how are we doing at the frontier for long horizon tasks? * 1:22:00 - speculative programmatic tool call (sPTC) * 1:28:00 - does the RLM impose an abstraction the model should learn for itself? * 1:32:00 - what’s next for Big Boss Alex L. Zhang (and what’s not next)? Get full access to learning with yacine at www.yacinemahdid.com/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.
SPEAKER_00The modern way to build AI agent in 2026 is by fitting a capable enough LM inside a good harness. Cloud Code, Codex, PI, Prime Agent, these are all examples of harnesses that we are familiar with, but there are plenty of custom ones for specific types of tasks that exist. The standard assumption has been in the broader research community that the harness is just plumbing, that the intelligence lives in the weights, and every new model released makes the scaffolding a little more obsolete. But there are two important parameters that make the impact of
SPEAKER_00the harness much more important than previously thought. First is context-wise. Every model, even the frontier ones, gets increasingly unreliable as the inputs get longer and longer. That's just a constraint. A million token context window doesn't mean a million tokens of actual performance. Trying to improve this by using all sorts of linearization of attention or compaction tricks helps, but there are limits to what it can achieve. Second is that transformers are surprisingly bad at what's called compositional generalization.
SPEAKER_00Well, I said it correctly. Meaning solving a new problem by combining the pieces they already know about and were trained on. Every new domain kind of requires its own training data in some shape or form. These two facts are what powers the intuition behind recursive language models from Alex Zeng at Which, by the way, we already discussed earlier this year with him on how they help with the context work problem. But as a refresher, the RLM, instead of feeding the long prompt into the model, you put the context in a variable inside a Python model.
SPEAKER_00This way, the model never sees the full context in one shot. It can pick at it, it can grab it, it can chop it into chunks and recursively either call itself or tool on these pieces. The context kind of become an environment, the model. This idea has been improved some more and researched by Alex and Omar to showcase that RLM are in fact compositional generalizers. They argue that a good harness like the RLM makes every individual model call locally in distribution even when
SPEAKER_00the overall task is way outside anything the model has been trained on and they show it very beautifully by training an rlm on short tasks only using reinforcement learning and they generalize to tasks 8 to 32 times longer even in entirely different domains while the vanilla transformer baseline trained in the same way stay completely flat so the generalization here isn't coming from the weights update per se It's coming from the model learning to use the harness to decompose a task and then encoding that in the weights. So today we're back with Alex and we're going to go deep on the updated experiment results.
SPEAKER_00We'll start with the gentle work tool here so you don't have to read anything to follow along. We're also going to look at what our RLM will even look like for RLM. By the way, Alex's blog posts are generally like very good read with beautiful figures,
SPEAKER_00really well written. It's not AI generated, so it's very, very understandable. They're all linked below. I think they are worth opening alongside the video. Speaking of RLM Arnest, let's talk a bit about RC, the openweight lab that is sponsoring this interview. If you're familiar with the open model landscape, you know it's pretty much dominated by labs outside of North America. Well, RC is a pretty cool lab in North America that don't only openweight their model, called Trinity, which you can download and run on whatever system you want, but is also very open about their training methodology And release a lot
SPEAKER_00of cool artifacts they're developing internally. You can get the model, by the way, on OpenRouter, it's available. And if you're into personal agents, you can connect it to Hermesys. But you can also use their model directly on their platform. One fresh new thing they released recently, which I'm pretty excited about, is Knack, which is an open source harness for long running agentic work, which is actually based on the RLM idea. It's actually taken from the Slate version that includes some RLM idea, but it's a modified version of it. It's pretty useful for research work that are complex, long-running, but are decomposable with well-separate parts.
SPEAKER_00Machine learning experiments are a very good example of that. How this works is that you give your model, in that harness, a high-level objective, a bunch of constraints, data upfront, and an exemptus criteria, and you just let it roll on the research. You can try out Knack out there on GitHub, or install the current Edge build by checking their blog post. Big thanks to RC for sponsoring this interview. It's a very cool app to keep an eye on. Let's now dive into the interview. So yeah, the first version of the recursive language model was published in October 15, 2025.
SPEAKER_00And then he published an actual research paper that I encourage you to read it. It's one of the best, in my view, of 2025. Really well made. And the idea is very simple. The idea is that a good harness for a language model is our RAPL. It just worked well. And RPL means read, invalidate, print, loop environment. So there is two concepts that are important here. The first one is that the context is not just shoved straight into the language model.
SPEAKER_00The context is actually living inside this environment. And the model is going to do a whole bunch of stuff like interacting with this data, this context to do the work that it's supposed to do, right? So here they have the task, right? This is you're reading an extremely long book. Can you list out all which item that were made before the great blah, blah, blah, blah. You load that in and then the model will be able to do that and then to interact with it. And then without training it, It's actually pretty good. So there's this component. And then the other component is that you can just spawn another RLM to do some work.
SPEAKER_00So we can go and do LLM Query. They give just this, just a specific context and the information it needs to do the work. And you can go ahead and do just a specific task. It's not doing the whole thing. And you can continue and spawn these subagents. And you can have multiple depth. I'm pretty sure most of the results are on depth one. That's the overall concept of the recursive language model. It's really just an R-ness, and then you can shove whatever you want in there. And in the paper, there is some very interesting experiments that they have done.
SPEAKER_00They show that just with this, with a cool R-ness, all the limitations of the The context length are nullified and then the agent can actually do pretty good work and expand their context window. So here, GPT-5, 262, can't do much. That's the limit of its context length, but within the RLM, it can actually do something and expand and do the task. Meanwhile, from the start of the year, there's a bunch of stuff that happened. One thing is the stuff that we're going to look at in a few seconds.
SPEAKER_00The other is that Prime Agent has been released, and it's like a self-improving RLM, like a continuous harness stuff thing, which is taking this RLM idea and kind of productionalizing it, right? So you can check out Prime Agent. Spoiler, we're going to actually... Like talk to Seth next week about Prime Agent. There's the paper that is really hot off the press. It's been released since four days. So you can also check it out. What the RLM in production actually look like. For those that are not familiar, what is RNS? There's many definitions out there.
SPEAKER_00We're going to use a very simple one, which is that it's a software around the model, right? So like React, not React, the front-end library, but like the React framework is one such RNS, you have CodeAct, you have Cloud Code, you have the RLM, you have This software that is sitting between the real world and the actual raw model, and that is managing the context, what it gives, what it doesn't give, doing the compaction, all this stuff. This is the RNS, and its main job is to run the raw LLM in a loop,
SPEAKER_00manage the context, and now it's usually part of the raw LLM training. So the models are now made to be able to pilot this stuff. If you look here, RLM minimal, From Alex, it's actually a pretty good way of looking at like, what is a hardness, right? Because it's like the RLM idea, but like pushed to the absolute minimum element. And yeah, it's pretty easy to understand. There's not that like, it's stripped down to literally, literally the minimum. I can start over here, the RLM, RAPL, and then And you can follow along.
SPEAKER_00There's not that much line of code in there. And it's fairly self-explanatory. If you want to understand a bit more what the R-ness are about, this is a very good place to start because there's no complexity added. And also you'll be able to understand a bit more what the RLM is. Like I said, the RLM is nothing more than these two elements. And the two quality of it is that You're going to do context offloading. So you're going to take the context that is usually bloating the context window of the LM and shoving it out into the REPL,
SPEAKER_00which then your LM will be able to do the REPL route to figure out what's going on. A bit like in your case, if you have a big dataset to analyze, You're not gonna just read it end to end. You're gonna poke at it and try to understand its shape, but you're not gonna try to jam all the information by reading every single line of code or every single line of data row in there. So that's roughly it. And then the other thing is that It can do programmatic sub-agent calling.
SPEAKER_00So it's the RLM that is assigning when it's going to call itself, right? And this is going to be able to do tool calls here, but also be able to upload this stuff to agent, which is itself, right? But just with the context that we need. Versus if you don't have that, you're just going to shove it straight into the root LLM. So everything will be in that context, which is going to be a bit of a problem. So the update is that the language model R harnesses, or the RLM, are a compositional generalizer.
SPEAKER_00And not all of the harnesses are like that. Some of them don't allow The model to be able to have this locally in distribution, I think it's called, effect. So it cannot be a compositional generalizer. A compositional generalizer means that it will be able to take a big task and deconstruct it into subtasks that are not complicated and then ascend them together in order to do some novel work. That's kind of the idea of a compositional generalizer. So there's two flavors of this, right? If you think about it,
SPEAKER_00like if you train on short stuff and you eval on long, you should not be freaking out, right? So for example, if I give you a task and I show you like shortly how to do it, and then I ask you to do it for real on the big stuff, after you train enough on the small stuff, you should be able to do the longer tasks. We need to kind of collect longer and longer sequence length tasks and then train the model on that in order for them to generalize properly. So this is part of the post-training, mid-training. If you look at this plot, so blue, this is the RLM slash QN.
SPEAKER_00Yellow is just the base transformer, right? So it's always transformer, route transformer versus the RLM. So what we see in shaded is like the training lift here. Is it that? I think so, yeah. Train lift. Source versus short, right? So this is a train lift in yellow for the base runtime and blue for the RLM. So RLM in short is really good. What happened is that like in bolded here, it's the evaluation on the long stuff, right? Just at the get-go, the RLM is pretty good,
SPEAKER_00just doing the long stuff, like we saw in the previous thing, without any training. But then as the model is getting trained, it gets better and better. And even better than what it was doing in the short training. Versus the base transformer. It's getting some uplift, but not that much. It still sucks at that. It has a hard time. And then the second way of testing this compositional generalization is you train on one domain, and then you test on another, so that they're not technically related. They're not related on the context, but they're related on how you would do the work.
SPEAKER_00So we have a few of them that we're going to see. But basically, same thing. Shaded is on one domain. And then Bold is another domain. And if you see, the RLM is actually a bit worse in the training for this specific domain than the base transformer, if I read this correctly. But once you're doing the transfer and you evolve on the sibling task, the RLM is actually better than the base transformer over there.
SPEAKER_00So it's able to generalize. Because it was trained on the first domain. So that's what we're seeing here. So this is like the two type of composition generalization tasks we're looking at. And it becomes obvious when you kind of look at it, right? So like this is the core RLM trunk, right? And then this is the offloading. But if you look at it, you're kind of offloading the context. So it's the same kind of structure in Broscom Plus here on the training side and then the Oolong on the evaluation side.
SPEAKER_00So you have the same rough structure, which makes sense. For example, if you were analyzing a time series in like finance versus healthcare, yes, the context is a bit different and you will do a bunch of stuff, but like roughly speaking, you're Like going through the same step, or like image generation, or image analysis problem in the medical field versus, I don't know, like sports, right? It will have some difference, but like the core will still kind of be similar. So it's kind of the same idea here. So composition generation, Bayes-Arlandic-Apost task can strip the context away.
SPEAKER_00And all of this is related to Alex mismanaged genius hypothesis. We're going to ask him about it. But basically what he's saying is that like, This is Frontier LM right now, just raw. And then if you manage it properly, it can do a lot. And we're already seeing it with like Cloud Code and Codex doing like crazy stuff. But if you're not managing them properly, they will not be able to do the stuff. And it will be too out of the context for the raw LM. So that's the idea. And then what he's saying is that the RLM is kind of like bit less and peeled because there's not much bias we're putting into the R-ness.
SPEAKER_00And we just let the model kind of do its stuff here. And this is related to something that I've been thinking about for a long time, which is how do you get quality long context out of these things? Because if you're not able to kind of get quality long context, there's a lot of stuff that it's just not possible to do. And the issue I had was that it's very hard to find quality long context benchmark, right? Because us humans are not training ourselves on that. We're training ourselves on normal tasks. And if we have to do a long thing, then we do a long thing.
SPEAKER_00But we compose it. We're not just like doing the long thing on one shot, right? Like making a breakthrough, like making a research paper and stuff like that. Like if you did it once, you know the flow and stuff. But it's more about like you know the steps that you have to take to do this stuff. Then you train on the steps. There's not that many tasks that are super, super duper long. So we're kind of creating them synthetically. And then the way we're thinking about it is that you take the long task and then you just have a short program in your head and stuff.
SPEAKER_00And you create these subtasks. And maybe there's enough loading to a longer subtasks that you may give to somebody else or yourself in the future. And then you have a short program to decompose this again. So that's kind of the general flow. Right now in a lot of the harnesses and just like the raw LLM, you're just going to give everything and then the LLM will just go like this, right? And the issue is that this sequence is out of distribution. It's out of distribution for the LLM. He never seen that, so he freaks out, right? And he doesn't know what to do. He chokes on the information. Versus if you are managing it properly, All of this stuff is in distribution.
SPEAKER_00You've already seen something like this, especially if you train it on that. You've already seen a subquery like this. You've already seen a tool call like that. You've already seen this other tool call chained together or this subquery over there. It becomes a very small task that you chained together. So this is what the locally in distribution means. And Alex is posting that you only need these two things. You need the context offloading and the programmatic sub-agent calling in order to be able to do that. And this is what the RLM is doing. So if you train on it, you'll be able to get all this.
SPEAKER_00Let's do it compositional generalization. On the result here, we have the short to long. We have all these different benchmarks. And we see them over here on the train on short, evaluated on long, scaffold versus no scaffold. And most of them, like the RLM, just can't do them. It's just too much, right? See here, 2 million tokens, you just can't handle them. So having the RLM helped a lot. There's two kinds of RLM we're using, one that has the prompt to decompose and one that doesn't have the prompt to decompose. So it's just like a nudge that you give it, hey, you should decompose this stuff.
SPEAKER_00It does help in some instances, like here specifically, but here it also help in like, it's just like, just generally okay without the nudge to decompose. So something is happening with the MRC RV2. Like generally speaking, if you look at it, like there's a big difference in jump between this harness versus like no harness, right? So it's helping out to have this generalization. And in domain one versus domain two, we have like Oolong, Oblique, Bench, and Oblique Bench, Descriptive. What we're doing here, training on Twitter stents, and then evaluating a wallchat error.
SPEAKER_00Here we're training on writing stuff, and we're evaluating on math, track, course questions, and evaluating on spam questions. So we're doing these pairings, and you can see here again, yellow is doing okay-ish, right? Blue is better, right? After a 500 training step, So it's able to generalize to this other thing. So that's roughly the idea. And then the last thing I want to say is that if we truly have this compositional generalization, where the root LLM is able to go ahead and do its work,
SPEAKER_00and it's more of an orchestrator that's already seen that stuff. It does already know how to Operate the sub-RLM calling and how to peek into the context and do all this stuff. And the core thing is always the same. Then it means that code is a thing to get compositional generalization. So the Rness that is just code around the LM Is what it is, right? If this is true, we have a nice thing that Alex worked on,
SPEAKER_00I think it's been like, what, five days or something like that, which is called speculative programming to call, so SPETC, which is taking this idea and push it further, meaning that if the RLM, we want to optimize it, we can do a lot of the stuff that we use in the CPU and with LMs, like speculative decoding, We can do speculative programming tool call. Because as the code is getting written by the core RLM, we don't have to wait until everything is done before we actually do something.
SPEAKER_00We can start and shoot out these sub-agent calls and then in anticipation of The RLM to be done. Once it's done writing, you can just use directly all the information that we have, and then it can be much faster. So instead of doing everything in sequence, you can do a thing in parallel and really boost up the performance. So we have a nice video over here. We have a nice animation of what it looks like. So here on the left is the actual RLM that will be writing the stuff.
SPEAKER_00Here you see when we start to do that sort of thing, there's already a bunch of sub-agent columns that are being made. So we already have the response back from these chunks, right? And then this is the other program that is not having the speculative element that is just doing them in series. So we take this, speed up, and then we ingest it. In speculative decoding type of stuff, you're making speculation, right? So sometimes you're wrong, but overall, if you're engineering it properly,
SPEAKER_00you should be right and saving a whole bunch of time. So this is what we're seeing in his little experiment. This was very quickly made. It's on the 30B, same quen as... That's the other experiment. And you see over here in all these concurrent tasks at different temperature that this is the base RLM one o'clock time. And with the speculative affirming tool call, you're doing it faster, basically. That's what we're saying. If you have four threads versus eight, I think, concurrent tasks, you can get a lot more speedup.
SPEAKER_00You're making more subcalls per task, but you're faster. So that's kind of the idea, is that you're going to spend maybe more tokens. You're going to be much faster, which is pretty cool, right? It means that we can speed up these models in this fashion using a harness that is embracing fully that code is the thing. The structure of it is not terribly complicated. There's a GitHub report. You can check it out. But basically, it's using a shadow RLM. Shadow RAPL environment. And he's looking and peeking at what he can use and then just firing up whenever he can.
SPEAKER_00And then once the thing is done, it's looking at what he has speculated and then ingested into the core flow. And if something is not relevant anymore, it's just discarded. There's four cases that he foresaw that you could use speculative programming tool call on. When you have literal, if you have input dependency, you're going to check it out if it's actually safe or not. If it's not safe, you're not going to waste time doing it. If you're doing it naively, you're going to waste a lot of time. But if you're a bit smart about how you're doing it,
SPEAKER_00and engineer that little engine, you just get free boost of speed up here. And we can take a look at it here, how it's operating in a nice little video. So this is speculative, this is serial, and you will see all the subcalls popping up over here. Pretty cool to see. Already done with all of these. And this one didn't start its circle yet. And now this one is done in 33 seconds.
SPEAKER_00And this one is starting to kind of roll for each of the thing in sequence. So if you're compute bound, your serial will make more sense. But if you have more compute, it may make more sense. To do the things in parallel, right? And this kind of ties a bit to the prime agent thing we're going to see, because they have a lot of compute. They can show the stuff in parallel. Yeah, so that's it. This is speculative parametric tool calling, SPTC, and it's tied to the whole RLM stuff.
SPEAKER_01I'm Alex. I'm now a second year PhD student. I was a first year one when we first did this. I guess I'm maybe most known for the like RLM kind of line of work. But generally, I would say right now, my interests are, they've always been about areas where I think language models exist. Are severely underutilized. And that hasn't really changed. I think this means a lot of different things.
SPEAKER_01But right now, this especially is focused on harnesses and harness design. I would say RLMs are one such case of a class of harness that I think is very important that we study and use. But there are many other sort of directions in this space that are either related to RLMs or unrelated to RLMs. That I'm very interested in. I think in the study of harnesses as a whole,
SPEAKER_01this broadly is something that we just are not doing very well as a field so far. And so it's something that I'm kind of hoping to fix in some sense in the coming year.
SPEAKER_00I've kind of seen that like. Harness in general, I don't know, it seems that it doesn't look like it because we're talking about the model as if they were kind of alone in this, right? But every benchmark result from all the Frontier Labs and stuff, you always have this harness that is behind that is doing a lot of the heavy lifting, right? If you look at the, I don't know, it was the RKGI V3 result and stuff. If you set up cloud code properly, like Opus 5 is absolutely a monster at this, right?
SPEAKER_00But alone, it's just struggling. Same thing with MazeBench, which is this really complicated 3D maze. The LM alone, it would just freak out. But with the harness, it's doing pretty well. And I feel like... We're at the point where like maybe we have, I don't know, we have everything we need, right? But like the pieces are there, but like the harness is actually a very big piece. I need to be palleted properly by the system.
SPEAKER_01One thing I will say before we go on is that I think you probably noticed this too. I think harness design is a very unscientific thing at the moment. And as much as, you know, people... Like to discount the value of doing certain types of science or rigorous science or research. I think one of the things that we do owe to proper science, thanks to actually people in industry, are things like scaling walls.
SPEAKER_01These are things that have bridged together a lot of, originally back before we had these scaling walls, The design of model architecture was just like a wild west. I could claim that we need to use convolutional layers, but someone else would claim, no, no, no, we need to use recurrent layers. And we had no really good way of quantifying this. And I think this is something that And like, oh, maybe actually you should use an RLM, like maybe you should use PrimeAgent. And it's like, how do you
SPEAKER_01How do we even discuss this in a meaningful way? I think this is something that I really want to solve. I think we're there, but there's a missing insight around what is a more principled way of talking about harnesses.
SPEAKER_00I think one thing that is dangerous is that it's touching software engineering. Not in a computer science way where we have this principle and And this theory, and then we're validating it in like, I don't know, in scientific manner. More the software branch where like, we're building this thing and then we're building this product and stuff. Which I think is great because people are going to try ideas and stuff like that. But it's dangerous because it's just going to create a lot of noise, right? And then like, if on top of that, the models are absolutely so great at cheating, right?
SPEAKER_01You get like a very, very messy mix, right?
SPEAKER_00Like now you have to monitor... These things in harnesses that can run for days and generate like billions of tokens. So it murky a bit, even more the water, I think, about like, are we doing great? Or like, I don't know, like, are we very poor at evaluating? And like, they figured it out. So I think like a good thing would be to kind of go in the principle. I think one thing that you said that was really, really insightful here. Is the concept of locally in distribution.
SPEAKER_00And I think that was one of the core things that you said that was very clear about where the RLM is helping deconstruct. Because before I was like, this is so cool because you can extend But it's not even about that much, more that this idea is enabled because of the RLM. Can you just explain to us a bit what it is in your own world and why is it important to have that?
SPEAKER_01Yeah. So I think this is a term that I hope catches on because it's a very, I think personally, it's a great way of describing the Property that we want. So I think most people are aware that one term we often use in the context of the language model for like a prompt that you give it is that like this prompt is like in distribution. And this is a very lazy way of saying that this prompt roughly is close to something
SPEAKER_01that the model has seen during training. And this often is also just used to say that the model will behave well with this prompt. It will give you a reasonable answer.
SPEAKER_00Now, when you go into the long context regime,
SPEAKER_01Where you basically have many, many, many tokens that you're providing to the model. A case that you'll often run into, and you can reason through why this is the case, but a case you often run into is that the language model itself probably has not really seen something close to whatever this giant context is. And this is, you know, one way you can say this is like this is context rot, which is true. But I think a better way of describing this is that like this particular sequence is something that
SPEAKER_01the language model just hasn't really seen before. I think context rot is a way of describing the effect of long context things are really hard. But it's not so much that for a language model specifically, long context is inherently hard. I think if as humans we naturally had super long context data in the wild and we have an abundance of it, this would not be an issue. But it is an issue.
SPEAKER_01And so generally, one of the questions is like, okay, how do you address this? How can I take a really long task or thing and make it in distribution? And the answer is roughly, well, usually you use a harness, right? So we use clock code and we use all these things. Now, one of those super desirable effects that you might imagine that you want here is that if you think Think of a harness as just a bunch of language model calls, right?
SPEAKER_01Like, I mean, there's tool calls and all these other things, but ultimately the thing that we care about is like, what are the language models doing? One property we want is that every single individual language model call is It's dealing with a problem that it would consider to be in distribution. And if you could get this effect, in some sense, then your language model would actually have no issue, or your harness would have no issue solving this task. Every single individual language model call can solve its local problem, right?
SPEAKER_01So this is why it's called locally in distribution, because the idea is that maybe for an individual language model, it can't solve this task with this super long horizon, super long context thing. But the harness is actually able to break it down in a way where it can do it. And I think this, the last thing I'll say is this leads well into like, What is the issue with the current harnesses that we use? Why would I use an RLM over, let's say, Cloud Code? And my answer to this would be, well, what is Cloud Code doing?
SPEAKER_01At the end of the day, the main paradigm that everyone That's what everybody's used to is constantly filling in the context of the model with more and more information until eventually you compact it and then you keep going. And the hope is that before you compact it, you are not making the model go bonkers. And also that after compaction, you're preserving all of the information that is important, which there's very little guarantees that that'll actually happen.
SPEAKER_01This is generally why I would say we want things to be locally in distribution.
SPEAKER_00With Cloud Code, what is nice is that every once in a year, we get the open source version that is getting leaked, which is pretty cool, so we can actually see what's up over there. But yeah, this idea I think is very interesting because we all have been chatting with the LM, even with the cloud code or whatever. At some point, even with compaction, it's just dumb, right? It's done. You know it lost something along the way, right? And it makes sense in my view because This graph that you made,
SPEAKER_00it's not an actual graph, but this is really what I was grappling with early last year. Thinking about like, hey, how can we make quality long contacts? And like the research on this front was doing his very best. Like they were really trying, right? Everything like from different type of attention to like linearized, hybridized, linearized attention in there, like changing rope, removing it, like all kind of stuff, right? To make the raw LLM work.
SPEAKER_00But then you have no choice. At some point, you have to get some of this data here and then just jam it there so that it doesn't freak out when you start to see this stuff because you've actually already seen some sort of long element like this so you can know how to behave with them. But inherently, it feels wrong a bit. It feels wrong to do that when the data for what the human sees is this. It seems like there's something missing. One thing I wanted to get your point over there is that do we even need long contacts at this point for the raw LLM?
SPEAKER_00We saw the harnesses being able to, either with compaction that is a bit lossy or like this, bring the stuff a bit more into the distribution. Do you even think that we need to push this research line on
SPEAKER_01the raw LM? So I think the answer is probably no, but also it's not a big deal that we are, if that makes sense. So I think the way that I like to do my research or the ideas I put out is that it should never really tell someone, you shouldn't be doing this anymore. This is not a direction that is usable anymore. It's more so like maybe this is not a direction that is needed,
SPEAKER_01but we can still use all of the data and environments and things that you've already generated to help improve even further. So I think this is often the goal of things like data efficiency. So if the only thing that whatever you're proposing provides is that it makes things It makes things cheaper, but not any better than it already is, then I think this is useful. But also, like, ultimately, it doesn't solve the core problem of what we're trying to do, which is like, we want the models to be to be better.
SPEAKER_01And so I think one of the the In that graph, the drawing of the graph that you highlighted, one of the ideas that I was trying to get across, which is purely speculation on my end, is that most tasks in the wild are actually fundamental. A million tokens is probably enough, to be honest, to do this kind of thing where, in general, if we view
SPEAKER_01How humans solve tasks, right? Like humans, we have a limited context window in some sense as well. But the way that we solve very difficult problems often is we build on other people's work, we communicate with each other, we build on each I think this is often true in general for long-running things. And so this is where this kind of hypothesis comes from. And I think, does this mean we should stop Training our models to do long context?
SPEAKER_01No, but I also think that does it mean that maybe we shouldn't continue to invest more and more into this? Maybe yes. Maybe we should invest in alternate ways of scaling up in this way.
SPEAKER_00I know that we were in certain stuff, but it has a massive impact. I don't know if you remember the meta 10 million context length model. They were cooked. They were barely usable. But Needle and A-Stack, they were great at that. But that was kind of useless. And I remember Google did a push on this on the long context I was very excited about. Ultimately, if it's pushing the performance of the model to a breaking point for
SPEAKER_00the inherent physics of the architecture, Maybe it's not that relevant and maybe a bit more of the work on engineering the harness and just having the model being able to drive the harness better, it will be a better use of the time. Just to give an example, right now I have a bunch of consulting projects. One of them is in manufacturing where we are helping.
SPEAKER_00It's like a big time series for manufacturing line. And we're helping figuring out a whole bunch of the stuff with the sensor until at the end, we're able to make an assessment about in this line where things are messed up. But a similar thing is happening in another client in finance. And it's the same team that I have in Boat that is working on this. Boat is a time series. And the context of it is super important. And we make sure that we figure it out and stuff like that. But once we have it, the work in it is not terribly different.
SPEAKER_00It's the same kind of type of stuff that you have to do in the flow of a time stream analysis. And at the end of the day, it's some flavor anomaly detection that we're doing in both. And the same features are appearing in both also. There's some that are more important in this context versus this other context. But when I see my guys and myself thinking about it, I'm like, And I was looking at the RL and I'm like, we're really doing something a bit similar to this, like a task decomposition.
SPEAKER_00And yes, there's a big reasoning effort that we're doing at the beginning to ensure we actually know what we're doing in the context, right? Otherwise, you're going to mess up a bunch of stuff. But once you have that context and it's been validated, the actual mechanic of it inside is not that different. So I would assume, like... Having a model that is able to do something a bit similar to that will make sense. It was just a fair assessment of what we're trying to do here.
SPEAKER_01Yeah, yeah, definitely.
SPEAKER_00So that's for the work that we kind of know what to do, right? Do you think that bringing stuff locally in distribution is enough for making an actual scientific breakthrough, like doing something novel? Because some of these clients were writing a research paper, but we had to push this stuff a bit further up. And in my view, this is starting to look a bit dissimilar in both situations. What's your take on this for bringing stuff into So I will say,
SPEAKER_01what does locally in distribution solve? What it effectively solves is it removes a lot of the inherent limitations of what language models already have. And that is basically like reasoning through longer horizon or longer context problems. In some sense, it's like, One way to think about this is we know language models are super, super smart. They're super good at certain things. What an RLM does and what training around an RLM and getting these locally in distribution things do is it bridges together all the pieces where you're like,
SPEAKER_01wait, why can't a language model not do this? Why is it struggling to do this? I don't struggle to do this. It bridges these parts back or to a place where we're happy, at least in my head. On the topic of novelty, or I'm assuming you're alluding to more auto-research, or can this produce a breakthrough? My answer to this is maybe somewhat independent of my opinion on harnesses itself.
SPEAKER_01Let's take the mismanaged geniuses hypothesis as an example. The central argument of that entire article that I wrote Was that I sort of believe that fundamentally there is some nature of tasks, of human solvable, or like tasks, maybe not human solvable, but tasks that humans care about. There is some structure to them such that actually it turns out
SPEAKER_01that We can compose our existing kind of baseline skill set to solve a lot of these tasks. Now, one thing that I also believe to be true about novel ideas or novel tasks is that people severely underestimate how much these are just a composition of existing ideas. Now, the reason why I think these ideas aren't solved or haven't appeared is often
SPEAKER_01because there aren't enough people in the world who think deeply about these problems or have the right Skill sets to solve them. But if you took the composition of all humans in the world, like all of our combined knowledge, and you compose them correctly, this is effectively what a language model is, right? And composing them correctly is maybe what a trained RLM would do. I think there's many, many tasks that kind of fall through. And you're sort of seeing this in math research at the moment.
SPEAKER_01There's a lot of tasks or proofs that are being solved. Now, I don't claim to be a mathematician of any sort. I'm at the level of maybe a strong undergrad. But I would say that a lot of the things that are being solved, they're very impressive. But oftentimes, they appear to be nothing extraordinary, at least in the proof-solving sense. A lot of them are disproof, actually. Exactly. Yes, a lot of them.
SPEAKER_01Are disproving certain conjectures, like coming up with counterexamples, which not to discount, like I think my point is that if a human were to do this, it's very impressive. But if we're thinking like about what a language model could do, I think we need to think more about it more in the context of like, there is something going on with the actual tasks themselves. And like these are somewhat independent, right? Now on like novelty, there is this question of like, There likely are certain things out there
SPEAKER_01that no matter how much you compose existing knowledge, it's not super clear whether or not we would be able to solve them. And an example of this would be like Take like Einstein's general relativity, right? I mean, for the most part, like, now, I might be wrong about this. But from my understanding is for the most part, like he was directly responsible for for most of the original ideas and even kind of bridging together the whole theory from from special relativity to to general relativity. And, you know, These are cases of like, it's one guy.
SPEAKER_01And I guess you can think of it as like maybe a super, super smart language model. And it's not clear if like composing any existing ideas would ever get you to the conclusion that he came to. I'm not sure. Maybe, maybe not. And there is this fundamental question about what is truly novel. And I don't know. It's funny that you bring this up because this is something that I've wanted to explore once I'm done with all this harness and systems research.
SPEAKER_01I'm very, very curious, independent of language models, do we have a better understanding of the things that we're actually trying to solve? All of this is baked into this hypothesis, but I'm assuming we're going to need stronger evidence to really know about one or the other.
SPEAKER_00There's stuff that you can compose, yes. But there's also just the value of it that is hard. I would say for an alum to know if this has any value. I don't know if you know, but there was a whole field called artificial immune system. Because the field is dead, dead. They did a lot of interesting algorithms and stuff. But the thing is, it was not that useful at the extreme. So like then it dies and like maybe there was some breakthrough over there
SPEAKER_00that are like maybe interesting right now. But it takes, I don't know, like this also that this idea of like understanding what is valuable at a certain point in time, which is very human, right? I feel like a very, very lot of different input goes into this and then you understand a bit like what is the actual population that has some weight or are interested about. Or not, right? There's a lot of researchers that just don't care about anybody. They just care about themselves and what they believe.
SPEAKER_00At some point in time, they might be super right or just forgotten and that's it, right? But going back to this thing here, where you're saying that the genius LLM The Genius Transformer is good, but it's poor at compositional generalization. I instinctively agree here, but why do you think that is? Why do you think that is a case that they're just not great at doing
SPEAKER_00that compositional generalization, even though they've seen billions of tasks? They've seen a lot more than, let's say, I've seen in my lifetime.
SPEAKER_01Yeah. I mean, I think the reason is that, A, you know, there's nothing particularly special about the architect, like the model architecture of the things that we're training is really like, I think there's nothing magic, right? So we shouldn't expect there to be any kind of magic in terms of it learning certain dependencies that we know. But also, I think that There are certain tasks where a model seemingly exhibits compositional generalization.
SPEAKER_01And I think the reason these things often happen is maybe we have tons of data for that particular type of task. I have talked to some people about this and some people who believe that models generalize very strongly to things. And there's many, many, many cases. I think maybe because I've worked in fields where this is just obviously not the case.
SPEAKER_01I think all the benchmarks actually that I've worked on in the past are exactly the problems of this form. So I'll give you an example. Sweebench Multimodal, which was after Sweebench, was basically a variant that focused on adding images and stuff that were in these PRs. And generally, if you expect models to be decent at SweetBench, which they were at the time, and also these multimodal models to be able to parse images, which they also can, you would expect that solving an image version of a SweetBench task is not
SPEAKER_01that hard. But actually, it's really hard. It would basically not solve any of them. And then we moved on to KernelBench, which is like, okay, Writing GPU kernels, which again is not like, you know, that much more difficult than anything a performance engineer knows how to do, let's say in C or C++ for like the CPU. Actually, I would argue it's easier. And the model has It has access to all this data. You could argue, why can't it generalize after reading the documentation? And it's still a problem to this day.
SPEAKER_01And then there was video game bench. Why can they not solve these super simple games when they can solve these very hard decision-making tasks? And I think it's one of those things where models learn almost the naivest thing possible. And it turns out that like, for many tasks, like we have a sufficient amount of data where the naivest thing possible is just generalizing to that setting. But this just obviously isn't true for a lot of the tasks that we actually care about.
SPEAKER_01And I think this is why also like, we still have this issue of like, can we trust language models to do certain jobs? Like, can we trust them to write clean I'm not just saying this from my own experience. Clearly, companies are having this problem. This is why they're pulling back on all of this AI coding stuff. Fundamentally, it works, but it doesn't work.
SPEAKER_01We have had this problem on so many different domains with these language models. It's sort of clear to me that we need something more. We need a way to almost force the dumb language model to not have this problem. And I think this is where this locally in distribution kind of task isomorphism stuff comes in of like, if every single language model is just solving a thing it knows how to do,
SPEAKER_01like we know it knows how to do this thing, but the broader system is solving something new, like Then we're good. Again, I go back to this analogy all the time. This is how a company works. You don't expect every single person in the company to know how to do everything in the company. Not even the CEO will know how to do what some of the lower-level engineers are doing. And that's fine. That's how these things operate. And I think we can draw a lot of analogies for
SPEAKER_01how we solve these kinds of tasks.
SPEAKER_00Almost like the Frontier LM are just like these idiot seven, right? They know a lot of stuff, but they are barely functional. And then you have just like the, I don't know, like the... The manager on top of it is not an expert and just like, yeah, now you have to go to the conference. I don't want to go. You have to talk there, right? So go ahead and make it. I don't want to make the slides. Okay. We're going to make the slide together. So like, like, I don't know, it feels like this, this, this back and forth with the system.
SPEAKER_00And, uh, I mean, it's, it's apparent when you, I don't know, uh, even with the harness sometimes, like you can see, like you can peek through it and you're like, okay, man, what the hell is happening? But just the raw LLM. Sometimes when you actually decide to go and then use, let's say, I don't know, like the raw version of Kimi without any hardness and you hit a specific point, you're like, yeah, this should be solved already. Cloud is able to do it. But you realize that you had the hardness and then you see it naked like this.
SPEAKER_00And you actually are able to see that when you hit the out of distribution from the data, It's just not that great, right? But like, now we're at the point where we're talking about the fundamental core of the foundation of the whole field, which is like the neural operation that are in there, like the transformer and all this. If we remove the R-ness from the equation, what do you think is missing in this soup, right? I don't like it's like an answer that doesn't, like a question doesn't have an answer, like otherwise you could have been working on it.
SPEAKER_00But like, what's your rough, And is there even something missing? Or are we trying to generate something that is not generable as part of the stack?
SPEAKER_01Yeah, I think the fundamental issue, maybe controversial, is the transformer. Ultimately, at the end of the day, what is the difference between a model and a harness? To be honest, it's not much. You could embed a lot of the design of a harness into a model architecture. The thing that maybe you can't embed is a tool call, because a tool call is something external, like a search tool or interacting with your code REPL or something. But in some sense,
SPEAKER_01I think the reason harnesses have taken off or the reason Claude code and all these things exist in the first place is you have this observability layer, which is the text. We know what's going on in the text and we know the model roughly knows what's going on in the text. And so we like this back and forth. None of this is necessary if you really think about it. I like to think in terms of assumptions and then whether or not we have
SPEAKER_01to dig deeper into those assumptions. So in the design of an RLM, the assumption that we can make is that a language model is quite smart and it can write code. And if we kind of black box this language model, it's just this thing that we're going to use And maybe make it better with compositional generalization. So that informs the design of the RLM. But if you think about it deeper, which is sort of your question, which is like, what is wrong with the language model itself? Why do we need the RLM in the first place? This just goes back to like, well, now this is a model architecture question.
SPEAKER_01This is why I think harness and architecture are way more linked than people think because anything you can do with a harness, you can just call it the architect. There's nothing fundamentally unique about what a harness is doing. I think one of the things that I am interested in, I guess I can't say too much What parts of the RLM,
SPEAKER_01this fundamental design, can you move directly into the model architecture? And in doing so, there's obviously a lot of benefits in that we can skip a lot of the steps that we otherwise would have needed to do with the RLM, or producing decoding tokens, doing the whole serving engine thing of decoding tokens, going back, whatever. And this is a really, really interesting question in general around What is the relationship between a harness and an architecture? Can you go back and forth between them? And can you train stronger models with an alternate architecture?
SPEAKER_01It's a very interesting question.
SPEAKER_00Now that I have these two pieces in my mind where I'm looking at like you have this idiot servant there that if you give it like a well-bounded task, you will just be able to do it, which is great. It's not something bad. This kind of gigantic database of functions that can be recombined. If you hit the right function in the right order, it's going to do
SPEAKER_01fine, right? And you can do it in context.
SPEAKER_00And on the other side, you have this kind of driver that is managing the composition generalization, which is now the same model, but within RLM. And my mind goes into like, what would be then a very good composition generalizer, right? Directly, right? Without, yes, maybe like there's still having the R-ness, right? I mean, I think there's two stages to it. There's one stage where what would be a very good thing to do in order to have a very good driver? Does it have to be the same guys? Do you have to have the same sub-agent being the thing that is driving the thing, right?
SPEAKER_00Or you can have something different, right? Maybe faster, maybe like, Maybe like that is trained in a certain way, has like different characteristics altogether, right? That is very, very good at orchestrating that work and like deferring it without even needing to necessarily like doing any of the tasks, right? Because why would you need to do that? Why would you need to do the task if you already have all these agents that are able to be called and then just be able to do tasks? That's kind of how I'm looking at it. From the two ways of going about it, just training the existing model to be good at driving that RLM harness,
SPEAKER_00or having complicated different models that is now better at driving some version of this RLM that may be different than this first one. Which part do you see that has the most promise in your opinion?
SPEAKER_01So I think the first thing that we should always do the easy thing first, which is just train whatever Whatever, GPT-6, whatever, and have it be usable as an RLM. I suppose this is what Prime Intellect is saying that they're trying to do. Just train a model that can act as an RLM, and this should be somewhat sufficient for doing all of the decompositional things that we want to do. The next step, assuming this works, is you now need to start thinking about either
SPEAKER_01the approach is you have specialized sub-agents, and the way that you would do this from a serving perspective, because this is, I guess, how you should always think about it. Like, like how is this actually going to be deployed is you're probably going to have like some base model maybe, and then maybe some like, I don't know, adapters or like lower variants of each of the sub agents you want to do, or, or you just have completely different models for each of the sub agents. That's, you know, how I don't know, but this is like sort of. I mean, are we?
SPEAKER_00Are we already doing that sort of stuff, let's say with the speculative decoding and things that we have like multiple agents, a smaller one that is purpose-made to be able to do this stuff fast? It doesn't seem that we're already going somewhere into that direction.
SPEAKER_01Yeah. Yeah. So kind of, although I will say that like, at least with the speculative stuff, right? Like there is sort of a difference in like, you don't, you don't just trust the small model in any like speculative decoding sense, right? Like you still need to re like reference the big model to confirm that, like the, I mean, I guess I don't want to get too into this, but like, I guess for important sampling sake, like you need to make sure that the distributions are the same. But more of what I'm alluding to is that you do want the different models.
SPEAKER_01You do want the small models. I guess without giving away too much. You do want the small models, but you want a way to do it where you're not giving up any of what you were doing before. So what I mean by this is like, okay. If you think of this, again, from like, serving entry perspective, I have this big model, and maybe I have this small draft model. And now I want now it's more complicated, where I want to do, like many, many recursive calls of like, I want to invoke language models, we want to think of a way where basically,
SPEAKER_01we're only serving one model, technically. But what actually is going on under the hood is like, we have some way of allocating more or less compute to This one model, whether it be only through a part of the model or Like if you do like looped transformer stuff or whatever, like less iterations of the model, so that when you do sub agents and all these kinds of things, you're technically using different models or like different specialized models for different things.
SPEAKER_01But it's, it all fits into our general existing framework of like how we serve models. And the reason why this is so powerful is that like, you can do sub agent things Much quicker and much more efficiently than what we currently do, which is we treat everything independent. Like we treat a subagent as completely independent from the main model. Now that's all, I guess that is most of what I will say on like how I think about this problem. But in general,
SPEAKER_01this starts to play into model architecture design as well, because you start to ask questions of like, you know, can you design the architecture in a way that it makes things like subagents a lot easier? I think this is something that people aren't really thinking about. And it's a really interesting question because sub-agents like, you know, People will say subagents have been around for a long time, blah, blah, blah, blah, blah. But it's like they've been around for a long time and we are incredibly uncreative
SPEAKER_01about how we deal with them. We still treat it like it's just a tool. But we have way more guarantees and much more structural similarities between the subagents and the main agent. And we don't exploit them currently. So this is, you know.
SPEAKER_00Right now, we're training the systems, the frontier system with the harness and this sub-agent element in mind, but we're just putting them in the waste. We haven't necessarily, well, not that I know of, took the idea and ingested it into the architecture in some way. So that's kind of the next step. A bit like what we've done from going From the dense model to the MOEs for multiple reasons, but one of them is just literally serving them properly and using them efficiently,
SPEAKER_00which is pretty interesting. But let's take a step back. We don't want to do that. Let's say we don't want to go ahead and change the architecture. If we were taking this core-based architecture, how early do you think in the training pipeline do we need to... Because right now in this analysis, you post-train the Quen 30B. Already in the pipeline, let's say, of Quen, Would you put the RLM harness training in order for it to be even better?
SPEAKER_01So I would say that based on the mismanaged geniuses hypothesis, we want to do this as late as possible because we want to rely on the assumption that we know pre-training and all these things make the models very strong. At various local tasks, including coding. I think actually, and this is one of the things I'm very excited about with RLMs and harnesses
SPEAKER_01in general. It's this idea that like these systems don't require that much more from what we already have to get to the point where we're happy. I think like This again is more speculation. It's not, I have no proof for the fact that this is the case, but this is the assumption that I've been going off of in a lot of this work.
SPEAKER_00Let's say we changed the architecture. Now it's a more native type of driver, right? And he's able to kind of probably do sub-agent. What type of capability you think is going to show up, right? That is not stuff that we're already seeing here. Let's say when we just go pedal to the floor and put as much token as possible.
SPEAKER_01I think the main things are long context is no longer a thing. We no longer have like 256k token context window, whatever. And long horizon, which is maybe the bigger thing. Being able to run for a very long time and not lose its sense of what it's doing. I guess you can tie this to things like continual learning, whatever, recursive self-improvement. All of these ideas seem a little hand-wavy to me, but I think Long Horizon is the next big step.
SPEAKER_01Just not having this issue of And I think even for like real production use cases, this is actually the missing thing for a lot of people. I just want an agent that reliably runs for a long time. Nothing really tests this well. And it's very hard to train this. And I think that like, to me, actually, this is the simplest way to do it. Like you don't, one of the things I wanted to highlight in the blog post is that we only train on short things. This is really a key part of it is you generalize to longer and harder tasks
SPEAKER_01by only trading on shorter versions. And this is really something we just want to go for.
SPEAKER_00Yeah. And then you can spend, I don't know, it feels like it snowballs to things that are just simpler. You don't need as much because your smaller tasks are of higher quality since you spend more time on them. So you're more sure which part of the different element and tasks that are generally used are there. You can spend more token on that and then just more of the compute. And you may not even need to have that gigantic model if you're training it on the right stuff.
SPEAKER_00I still think the main network architecture could benefit from having an explicit output thinking tensor that could be used to automatically grab things relevant to that thought from a vector DB or something. Something external. I think a lot of people are reaching for this type of stuff. We need to change something about the architecture. Generally, how would you justify that? Let's say you want to go ahead and do that sort of change to an obvious sort of impact. How would you go about actually doing it?
SPEAKER_00In order to make an impact at this point, because my view is that you will need to have either a very, very good idea that is very, very clear cut in a small setup, or literally you go and test it into the big stuff. So how do you go about it?
SPEAKER_01My view on this is very similar, I guess, to what I mentioned before about think about what assumptions you're making and then think about how you break those assumptions. I will say the first thing to always do, especially because the language models are so powerful now, is you want to think about how you would design this in a harness first. So for example, in the thing that they're mentioning about this thinking token, I mean, this sounds very rag-like to me, but you could imagine that you could probably implement something like this with
SPEAKER_01an existing language model in some harness. And as a baseline, if this doesn't work, then... The chance of this working for a raw model architecture thing is honestly also quite low. I think this is also like with RLM stuff similarly, like ultimately what we're going to want to do with RLM stuff is change it so that the RLM becomes the, like in designing your model architecture, if an RLM works, you can already just make it an RLM for the most part. Now there's some quirks there for like why that maybe wouldn't directly work.
SPEAKER_01And so I think that like the other thing to consider Is that, you know, we have pre-training scaling laws. Now you could assume that they just hold for any type of architecture change. You could also make the assumption that like they only hold because all of our existing architecture designs are similar enough and like whatever you're proposing is so different that like It wouldn't follow these scaling walls. But generally,
SPEAKER_01the point I'm trying to make here is I think this is a problem we often run into in science, especially in AI. You only have so many limited resources for what you can do. Even I have very limited resources for what I can do. So the most that you can really do is think about what is the thing that I could do or the simplest thing that I could do. That would maybe convince somebody else or maybe convince somebody else to give me the compute to run. Something that leans closer into this larger assumption that you want to make.
SPEAKER_01And eventually, maybe this propagates down to OpenAI or Anthropic or something, and they implement it. Now, obviously, that's not exactly what you would want, but I think with a lot of ideas around model architecture, we have this lovely idea that harnesses are not so different, and so you can use it as a testbed for almost anything. And just test out if even either post-training or no training at all would help.
SPEAKER_00Yeah. What do you both think about long persistent agent like AdLong Project from Load Institute? Obviously AdLong quote RLM as an inspiration, but just wanted Alex's opinion on what it can be used for. I think you're a part of that, right? Talk to us a bit about Load.
SPEAKER_01For context, yes, I played a very, very minor role in Headlong. I should say, firstly, that Laud is amazing. The Laud Institute, for any students that are watching this right now, they help fund my research. I would think of them as a philanthropy-type thing. They specifically sponsor students to help you with your research.
SPEAKER_01They help me a lot with RLMs, and especially with the blog posts, I also reference them. They help me with the compute to get one or two nodes of H200. It's run by Andy Kudwinski, who is one of the Databricks co-founders, and now he's just kind of working on this or helping out students full-time. Anyways, on the headlong thing, headlong is, I would say It is an RLM. I think the innovation of it, though, comes much further than the RLM part.
SPEAKER_01I'm very glad that this is the case, because one of the things that I want people to understand with RLMs is that it's such a simple idea. You should be using your own ideas on top of RLMs to build something much greater. I appreciate that they reference it so much, but it's only a small piece of a larger thing they're doing. Um, which is they are changing, like this agent is a very different design than how typical agents, uh, and as, as I have complained about this entire kind of, uh,
SPEAKER_01talk or like, uh, kind of chat, like I think existing agents are a result of a lot of technical debt in the field of like just laziness and how we design things around language models. Um, So this agent basically does this like persistent agency thing, which is like it runs forever. Basically, like you can think of it as like a Slack bot that kind of runs forever and will like incrementally think about things. Like it's not just like you talk to it and then it stays idle. Like it thinks about the things that you are giving it and the way that it.
SPEAKER_01Stores this information in an RLM type way, but it basically will come back to you with things. It's kind of like an assistant of sort that is always running, but also it's not super expensive. They have a very smart way of making sure that it's a reasonable token cost and everything, but generally it's a more realistic thing. Assistant type agent that does not just react to whatever you ask it. It is like persistently thinking. And I think it's definitely like a prototype type agent, but very, very cool design.
SPEAKER_01Like I think, you know, people should try it. You know, obviously give them feedback as well. They're doing a lot of really cool work. And yeah.
SPEAKER_00What I like about the RLM is that I see it in a lot of stuff at the moment where people are like, hey, this is good, but we can make it better. It was Slate. Even Prime Agent, there's the RLM idea, but then there's the continuous R-ness idea that is mixed into it. And then Knack is Slate. And from RC, it's like Slate, that is a bit modified and stuff. I like how these two core ideas that you put into the RLM are having that much of an impact. It's pretty cool. Really fucking cool.
SPEAKER_00I like that you have this train eval and you can look at it like, yeah, I know it's not necessarily exactly token for token, but like, It's pretty fucking similar in there, right? But then you can see a bit this idea of like compositional generalization that is expressed through this RAPL, which is like at the end of the day, the code, right? Do you think here, because this is for text, this is for like these sorts of tasks that we're running. Do you think that there's an RAPL for other modalities, let's say like vision or time series?
SPEAKER_00Or is it even needed at this point? Do you even need other things to do this kind of compositional generalization other than code?
SPEAKER_01I do think that code itself in text form, I mean, I guess code is only represented in text form currently. Is the most important thing. And I think with like vision and time series and all these things, like you can represent them in code or like you can represent the way that we would talk about some of these things in code. And so like, I don't know currently what exactly the equivalent of an RLM type thing would be
SPEAKER_01for like a vision only model. And like maybe such a thing just like doesn't exist. I'm not sure. But yeah. Yeah, this is a really interesting point to bring up because it's, you know, potentially, yes, potentially there's maybe something really, really interesting there, but I'm
SPEAKER_00just not sure. I say this because I would love to use LM in my time series work, right? But it literally is dumb as rock, right? And it just doesn't understand the time series that well. I can use it to kind of help me with the coding and all the stuff and some of the analysis as soon as I'm done doing the things. But just to natively just shove it, the stuff, and expecting a good output out of it. Kind of hard. Same thing with vision.
SPEAKER_00It has all of this kind of intricacy. But I think my bigger question is that do you think that it's going to be necessarily a different harness around... Okay, let's say two choices. A different harness around a very specific model or a different harness around the same gigantic, let's say, GPT-7 or whatever it is. That is good at everything and that is specifically good at coding. Do you think it's going to go this way or the first way?
SPEAKER_01I still think it will go the second way. Unfortunately, at least, I mean, let's say it will go the second way in the short term. In the long term, I have no idea. Because I think in the long term, a lot of things will change. Like, there will be a lot... I mean, who knows? Maybe in the future, the models we look at are just RLM-like in architecture. In which case, there isn't even a harness in the first place. And the harnesses probably look very different by that point as well. So, I'm not sure.
SPEAKER_01I think... I guess maybe I wouldn't be that surprised if either were true, but my guess is always just like the universal single big model, universal harness type thing.
SPEAKER_00Because it's not like they're absolutely useless, right? There is a part that I can use them for, except for the time series stuff. But it's usually like, I have to do the compositional generalization. And I have to say like, hey, here's the bit, like we're going to do this stuff. Here's the feature, go. And it goes, modify maybe a bunch of stuff because it didn't think about the thing properly. And then have the graph, look at it, ask a question. And then like, we do this back and forth. But like, I mean... It's not that I'm not useful, right? Or my team is not useful.
SPEAKER_00It's just that, like, I feel like there's steps that are absolutely not needed. And I don't know if it's because of the modality-specific thing, or is it because, like, just the hardness is not
SPEAKER_01especially good at that?
SPEAKER_00Because there's kind of a renaissance in, like, in vision, we're already seeing it. Like, we're looking at it and, like, We're putting LM back into them in some sort of shape or form and like putting the vision and the LM stuff like together, but like then it's become more of an omni model in some shape or form. But then in the time series, the same thing is happening, right? The time series feels like In 2026, I think there was like Kronos 2, there was Toto 2 from Datadog, there was like Tyrex 2 from like NXAI, and they're showing kind of these scaling laws and stuff like that.
SPEAKER_00But I think it's fundamentally a bit different. It's still a transformer, right? But it's kind of different and they're rearranging the guts of it, right? In order to work. But then my thought is that like, is it, is this, is it this way or is it like more of a harness way? And my first reaction would be like, can we just try to at least have a harness that we can, that is like made for this and like, like just so that we have like this benchmark and maybe yes, we can rearrange the internal and stuff. But like, I feel like that part might be something that is missing at the moment in the, And it's like
SPEAKER_01other modality than text field.
SPEAKER_00Could you please describe it briefly, currently, where Frontier Labs, how long they hold long horizon tasks in terms of duration? I think they're asking the Frontier, like how good that they are at like a very, very long task. I don't know if you tested it to the maximum. There's some benchmark that are ridiculously long, right? But what's your overall feel on that front?
SPEAKER_01I don't think long horizon tasks in open benchmarks are very good, to be honest. I think they're okay. Like, they... They're all gameable, which is maybe the thing that like is personally I don't care much for benchmarks anymore. I think I think they exist. They exist like as for science, for example, they're useful to help us gauge where like maybe get some sense for where things are. But ultimately, like I think long horizon task at this present moment honestly just means something
SPEAKER_01that runs for like. I don't know, like either in the token sense, like maybe more than like a million tokens or in like the time sense, honestly, even like more than like 30 minutes or like 20 minutes or something. They're just not very reliable. Like there isn't like a strict definition, I guess. And I think my view on. This whole mismanaged genius hypothesis thing and all these other things are sort of to say that once you solve one part of the long horizon issue,
SPEAKER_01the rest of it is also solved. I guess the point is that they're all That's just compositions of something smaller that we haven't figured out yet. And once you figure out the main composition, the rest of it just falls through. And so I think for Frontier Labs, this is not true when you just train a base transformer. Around a cloud code type harness, like the way that they're designed currently. So they probably do have some kind of like horizon limit. But yeah, definitely, I think the existing benchmarks are like, they're all like fine.
SPEAKER_01You know, I think to me, they're all very gimmicky, like people, it's partially because, and maybe this is a bit of a hot take. I think everybody tried to cut or tries to copy the like sweet bench style of like benchmark, like in how they create them. And I think like they made sense, I've said this before, they made sense for Sweebench. I think they don't make that much sense for these like longer horizon tasks. I think like, yeah, to be honest, it's just,
SPEAKER_01it doesn't really hit at the core issue, which is if you can solve this task, does this indicate anything about your ability to solve anything else? And usually the answer is no. So I'm a little bit more of a skeptic for these types of things.
SPEAKER_00Yeah, yeah. And also just very different, very, very hard to make long stuff. Just like making a very long context, like difficult things that are not just like a bunch of dumb stuff chained together. I mean, this in general is pretty hard to do.
SPEAKER_01I mean, this is the fact that it is so hard to make them, I think
SPEAKER_00says a lot about what these
SPEAKER_01tasks are, you know?
SPEAKER_00Yeah. If you think that code is a thing, right? It's like enough. It does really make sense that you spent your time on this speculative program, I think, tool call element. Can you just talk to us a bit about it? I gave an overview. And then tell us where it sits in your overall research thesis.
SPEAKER_01Speculative PTC, which I saw you did talk about before I jumped in. In systems for anything with language models is about overlapping things, right? Like everything is just like we if we have independent computations, we are going to overlap them as much as we can to save time. So speculative PTC. I would say this blog post is opening up. It's an invitation for people to work on this because my implementation is
SPEAKER_01the naivest possible thing. And this is why also people have sent me on Twitter and stuff some papers on speculative tool calling methods and whatever, these original older papers that talk about these things. And my view is that this is missing the point. I think speculative tool calling never really made any sense. And the reason it doesn't make any sense is when a language model calls a tool, it generates the tokens to call the tool.
SPEAKER_01And by the time it's done generating the token... Or like all the tokens, you now finally have enough information to call the tool call, right? Which is what we already do. So there's nothing to overlap. So some of the stuff people propose is like, you have a small model, predict the tool call, blah, blah. But this is really hard. Like it's really hard to predict like what exactly is going into the tool call, especially for example, if you have sub agents, it's very hard to predict what the prompt that the model is going
SPEAKER_01to generate is actually going to be. The difference, though, in code execution is that you have, A, you have many, many, many different tool calls that are going on in the code, and B, you might generate some of the tool calls while the rest of the code is still generating. So there's a big opportunity for overlap here. And I talk about this in this blog post, there's two things, right? So in this implementation, we don't use a smaller model at all. We don't use a draft model in the way that like speculative decoding and stuff do.
SPEAKER_01All that we do is we basically say A, while the model is generating new tokens, like generating this partial REPL code, just start queuing up tool calls you know you can do. And B, in the code execution setting, like if you have loops or conditional logic and all this stuff, Try to execute a cheaper shadowed version of the REPL, make a copy of the REPL, and just execute this quickly. In the blog post I talk about, there's some ways to prevent
SPEAKER_01Any side effects or like, you know, you want this to be a safe operation. And you basically just queue up those calls the moment you know you can queue them, like when they're available. Yeah, this thing. So I talk a little bit about like, you know, what can you peek ahead of time? What should we block? Because there's Certain calls, you don't want to call them. You don't want to try and speculate over them because they might cause side effects. And so generally, this is almost like a free speedup because one of the things you're doing, even if you don't have streaming LLMs,
SPEAKER_01even if you just generate the REPL, Sometimes the LLM is really dumb in how it generates the code. So it will generate things sequentially when actually you can parallelize a lot of stuff. And so this is also in some sense acting as like a JIT compiler for like the code that you generate. I wanted to kind of open this can of worms for people because it's like, there's so much you can do here to optimize for like tool calls and like making sure. So the plot example I gave actually, which should not be taken super,
SPEAKER_01super seriously, but it's basically like, okay, if I have a node of H200s, And I'm running or let's say even like I'm running my stuff locally, like I have a local setup. And I know that like I'm bandwidth bound or bandwidth constrained often because when I'm using my agent, I'm just there's just one LL I'm running and then sometimes it'll call sub agents. And what speculative PTC does is that it lets you, you know, queue up things ahead of time to, so like, let's say on your local setup, like you, you,
SPEAKER_01you finally are no longer bandwidth constrained, or like you're less bandwidth constrained than you used to be, or memory bound, I should say. You get a lot of free speedups in doing these kinds of operations. But you can imagine there are more aggressive versions of speculation where you do actually start to have tradeoffs, but you can significantly speed up what the RLM does. I'm very excited about this line of research in general. I think a lot of the ideas in speculative tool calling can finally become useful.
SPEAKER_01If you apply them here. And so, yeah, that's my general feel.
SPEAKER_00And the main thesis here is that code is a thing,
SPEAKER_01right?
SPEAKER_00Exactly. Code is the main interface for these agents. Yep. Do you believe that we should just double down on that? And that's the thing that we should push for the foreseeable future?
SPEAKER_01100%. 100%. I think even if you don't believe in RLMs, you don't think RLMs make any sense. One of the things that I will say is that language models using code as the main tool just makes the most sense. It just definitely makes the most sense. And then when you think about that, you start thinking about, okay, if code is the way to go, then the context should be an object in the code.
SPEAKER_01And then you have an RLM. All of the harnesses these days are going in this direction anyways. I think it's a safe bet to make and the models will get better and better and they'll get better at doing this kind of paradigm.
SPEAKER_00This is beautiful. Do you think forcing RLM onto the LM impose an abstraction? Like I'm biasing them in some way. In my mind the LM should learn its own scaffolding and discover the abstraction, which is maybe the other LM directly, that will help generalize. So like having the LM What
SPEAKER_01do you think about that line? The first thing is that the design of the language model itself imposes an abstraction, if you think about it. It imposes a huge bias, which is that it cannot handle long content. This itself is a giant design choice of language model, of attention. And I think that in this sense, what an RLM is actually meant to be doing is it unravels that a bit. It is an abstraction, of course, but it's meant to say that a lot of these limitations that we've kind
SPEAKER_01of biased our models to have are actually not issues at all. Now, on whether it should discover its own scaffolding, my answer to this is language models are really dumb. I think we... There's no incentive for it to come up with a good scaffold, if that makes sense. I think it's hard to... The chance that it just reward hacks something on whatever metric you give it is so high that I think this will end up not being that useful of a thing.
SPEAKER_01I think... You know, I could be convinced though in the future that let's say we improve language models, we make them more RLM like as an architecture, and then you ask it to discover its own abstraction or whatever. Yeah, maybe, maybe I could buy that. But I think language models are so fundamentally limited right now. It's like dumb limitations. The data and the environments are ahead of the architecture, which is ahead of the harness right now. And so we got to fix the harness first,
SPEAKER_01then we fix the architecture, and then we can fix the data. I think this is the order we go.
SPEAKER_00I think if they were to fully make their own harness, they will make the ultimate cheat harness. Undetectable. You think it's doing well, but it's like, it's actually doing zero work, but like making sure. I mean, like the, I don't know. I mean, like the OpenAI hugging face incident was kind of this cheating harness that is starting to leak a bit everywhere to the point where they could get to the end. And then they were super happy about it.
SPEAKER_01You should definitely read the meta-harness paper. I think there was also someone that came out with something recently where it was about the fact that they took the meta-harness generated stuff and then they just compared it to Best Event and then Best Event was better. So it's one of those things where you don't know. It's really hard to say. This probably even applies for RLMs as well. There are certain things where RLMs would do worse currently. It's hard because harnesses and model design are so interlinked.
SPEAKER_01We want to be very careful about what we claim because this is why I think the ideas we propose have to be simple. Now we're seeing RLMs used in all these different harnesses and things. It's great because we can focus on training around RLMs and it will boost the performance on all these different harnesses. Versus if I said Prime Agent was the best harness ever, you should use it for Fantastic, man. That was absolutely awesome.
SPEAKER_00Can you just get a short sneak peek about what's next in your recent horizon? Yeah, yeah, of course. I don't hide a lot of what I'm doing, I guess.
SPEAKER_01I think the main thing on my... My to-do list, I guess, right now is finishing up that blog post that you highlighted, the compositional generalization one. I'll also be super public and say, I'm not working on speculative program at PTC. That was basically an idea I had related to a different idea that I actually will be working on. And it was like kind of like a weekend, like I just kind of hacked it together and I want people to work on it, but it's not on my horizon currently. In the blog post,
SPEAKER_01the compositional generalization blog post, I have a lot more results that I haven't shared yet around what happens when you train other harnesses. The TLDR is basically the effect that we see only really happens to an RLM. And you can imagine it only really happens because of these properties. And it confirms something that we kind of had in our head. But one of the things I'm really excited about that I've been thinking through in that problem is I like that you mentioned that side-by-side comparison thing I was talking about,
SPEAKER_01which was how similar are the trajectories? Like this whole task equivalence isomorphism thing. I'm trying to come up with a way to characterize this a little bit better. And I'm hoping, I have some thing currently, but it's still being refined. But I'm hoping that when all is said and done, we will have a way to really understand what's going on. And I think it will be exciting for people because the conclusion that I want
SPEAKER_01to come to is not that RLMs are the best. It's more that we should really start rethinking how we design harnesses. One of the takeaways that I've been really happy about with the RLM paper is that I've had people come up to me, especially at these bigger companies, who have told me they like that RLM's Open the question of completely new styles of harnesses and how you even think
SPEAKER_01about designing a new harness and training around it. And I hope that the paper version of this blog really nails this idea more concretely to people. What do I want when I design a harness? What is a very desirable property That gets me to compositional generalization and all these things, even if it's not an RLM. And so I'm very excited about this.
SPEAKER_00I think this is important because then it abstracts the way it tasks, right? And like you're not designing an harness for this task and you have like a zoo of harnesses. You have like the three, four properties that are desirable for all the harnesses in general, irrespective, and act as the interface between the tasks that you may never have seen before. And the stuff that the LM has seen before and doing this translation and then this managing of these geniuses, as you said. Cool, man. Absolutely fantastic. Thank you for sharing this. By the way, ahead of time,
SPEAKER_00it was pretty cool to be able to read the research as it's going and also for coming here and answering
SPEAKER_01all our questions.
SPEAKER_00Amazing. Thank you so much for having me again.
should you do a PhD? should you leave your software engineering job for grad school? how do you get into AI research coming from industry?I get these questions all the time, so I sat down with Andrew Drozdov, senior...
most robot datasets give the robot one instruction for a whole episode, like “clean the table”, and then a few minutes of motion. the model has to figure out by itself where one step ends and the next begins which is...
there is this kind of renaissance in robotics / physical ai at the moment and it's very stimulating.things finally just work ™️I had the pleasure of chatting with two experts from HuggingFace immersed in this...
it’s very interesting to see where next-token transformers still fall short (like the path-star graph problems) while crushing problems that look even more daunting.I had the pleasure of chatting with jayden teoh from...
RLM + continual harness + multi-agent communication is what compose the prime agent harness developed by prime intellect which now sits at a gazillion stars on github (22.3K).I was kind of already mesmerized by the idea...