Your Company Should Train Its Own AI Models - Will Brown, Prime Intellect https://www.youtube.com/watch?v=5SRjPT2Eo7A AI Engineer · 19 min · 177 sentences · sentence-level transcript from YouTube's caption track; each line begins at the time shown [00:12] Hey, how's it going? [00:13] I'm Will Brown. [00:14] I lead applied research at Prim and Elect and hope you are all having a a great AI engineer conference. [00:19] This is always one of my favorites. [00:21] It's always just so cool to see what everyone's working on and building and I feel like it is a place where people get to talk about what the future looks like and like start seeing [00:30] the trends in the industry and seeing the progress and what works and what doesn't. [00:36] And that's kind of the theme I want to think about for this talk today is like what comes next from what we're doing right now and what are some of the things that we've been working on and also just been seeing and research that's unfolding [00:49] that kind of points at what we think the future of AI might look like at the organization level. [00:55] Because we've seen a lot of very cool progress in agents and interfaces and bots and things like that over the past several months, years. [01:08] But I there's always like there's always more coming. [01:11] Things are just moving so fast and I think it's a very exciting time to just imagine and speculate and plan for what comes next. [01:20] And so I don't know if any of you remember back in the early ChatGPT days, OpenAI had kind of spelled out their framing of like what are the different stages of [01:31] AI progress on the road to AGI. [01:35] And I think we moved along this faster than we thought we would. [01:41] We like I remember 18 months ago I was here in New York at AI Engineer giving a talk where we had gotten reasoners and chatbots had been around for a while and reasoners were like the new thing. [01:54] But we didn't really have agents yet. [01:56] And now we've climbed pretty quickly through agents and innovators and the question next seems to be, okay, what happens for organizations? [02:06] Like, what does it mean for an organization to truly like be AI native, not just as like a a startup that uses a lot of agents and builds everything with cloud code, but like at the like a large enterprise scale, [02:20] what do companies of the future look like that involve the deep integration of agents throughout the life cycle of the organization, and what do we need to build on the path there? [02:32] Uh so, a bit about Primer and Elect just for some backdrop. [02:36] We build a lot of different things around AI infrastructure for training, deploying, and continuously improving models, and especially open-source models and open-source tooling. [02:47] And so, we do a lot of things, and like we roughly do the sorts of things that you would do inside of a big lab, and these are our products. [02:56] And the reason we do this is because we are imagining a future that is coming pretty quickly, it seems, where open-source models are readily available to train and deploy on your own workflows, on your own data, in your own harnesses, [03:10] and can be the sorts of things that organizations can have grow with them over time that allow compounding their institutional knowledge, their institutional advantage from their workflows, from their data, from their people and their processes, [03:22] in addition to using the models from the frontier labs. [03:25] And so, this talk will be a bit about how we see that evolving and unfolding, where like what is the role of training in an AI native enterprise, how does this coexist with the frontier models, [03:36] and like what do we think is going to be the version of this that really unlocks the most value for people, and what does it look like? [03:45] Um and so, organizations have lots of knowledge, and like the longer organizations been around and the kind of more established it is, the more implicit knowledge there is that kind of doesn't ever get written down. [03:56] Um there are things that do get written down. [03:57] There's codebases, there's emails, there's processes. [04:00] Some of these are very explicit. [04:02] They're like rules of like you must do this, this thing works like that. [04:05] But a lot of things kind of live in people's heads and they live in between the lines of emails, of the meeting notes, of the kind of who talks to who. [04:14] Like a lot of companies will have like our a on paper org chart and then a real org chart of like who actually makes decisions and like how does change get adopted throughout the company, [04:24] what sorts of mandates are likely to take effect, uh and people have kind of built up this knowledge from being a company for a long time and they're like, "Oh, this is kind of how things work. [04:32] This is where the friction points are." [04:34] And I think in many cases, uh and I think this is really one of one of the big opportunities for AI at the organizational level is, is that many individual people are kind of not in a position where they can change the things that are broken in an organization [04:48] um because no one is actually spelling it out. [04:51] No one is is like taking a bird's-eye view of looking at everything that happens in an organization and saying, "Hey, this over here is inefficient, this could be better, [04:59] this thing keeps happening across different teams, but nobody's figured out that the solution is actually been discovered by that team." [05:06] And these are the sorts of things that like agents are great for. [05:09] Like agents are very capable at combing through large amounts of textual data that's unstructured and finding these kinds of patterns and turning them into something useful uh and and surfacing them as like, "Okay, this workflow has a problem because [05:24] it is wasting time and it's inefficient and it could be different instead." [05:28] Um and we don't want to do this once though. [05:30] We want this to kind of become the way that organizations adopt AI broadly where agents are able to get the context they need, but also they're able to improve [05:41] both the agents themselves as well as the organizations. [05:43] And we want agents to be more like our coworkers, but um human coworkers learn on the job. [05:50] Agents currently learn on the job in relatively primitive ways um and they do this via in-context learning um and oops, sorry. [06:04] I'm going to go back a few seconds so we can edit this on the recording. [06:09] Agents learn in relatively primitive ways through like in context learning and this typically looks like them kind of having a skill file written by somebody or like looking around a code base but they don't get the institutional [06:21] level latent knowledge that human employees really do. [06:26] And so they relearn a lot. [06:27] They have to rediscover things. [06:29] They spend a lot of input tokens and I think nowadays people are realizing that like cached input is like the bottleneck in many agent costs and even if you do get great cash rates and cash costs go down, you still have to like reprocess a lot of input to redo a workflow every single time. [06:44] And so to get around this you kind of want to be able to bake in more into the model especially for things that are harder to write down as rules. [06:52] So I I like thinking about the spectrum from like rules to patterns as well as like conceptually like code versus data. [06:59] And so lots of things live as like code and like skills are kind of like this, rules are kind of like this, but things like preferences and friction, heuristics, and trends, [07:08] these are all data and institutions have so much data that they are like running on and the employees of the organization implicitly learn that models never really get a chance to learn and this is the sort of thing that we see as blocking them from becoming true co-workers. [07:25] And so there is a question of like okay, what goes in context, what goes in the weights? [07:29] And part of it is you kind of need to earn it. [07:31] Like things don't just go in the weights right away. [07:33] But if you if you see kind of every new generation of models the models get better not because the prompt is better, but because they train them more. [07:42] Like training is useful. [07:43] Training works. [07:44] Training is why we see the progress we do and the models roughly like trained on lots of data that is aiming to approximate things that makes that the labs expect will be like high value repeatable workflows [07:57] at organizations. [07:59] And I like this like I think there's a process that currently at works. [08:02] It's how the models get better, but if you like spell it out it's relatively inefficient. [08:06] So like the way that a model would learn how to get really good at like using some combination of like Salesforce tools for example, let's say is someone who knows how those tools get used has to be [08:18] looking for work uh and maybe they previously worked at a place that were using these tools and now they are uh browsing kind of expert network sites to make some money in their free time [08:28] and they are sharing their knowledge to someone who works at an expert network company. [08:32] This person at this network company will then this uh take this data from the human and uh pass it to someone else whose job is to create RL environments. [08:41] This RL environment might get sold then to buy someone who doesn't have this expert knowledge to a researcher at a lab who also really isn't the expert in the domain who then will be refining it to put it into [08:52] a training pipeline uh to go into the next frontier model run to make a model that has kind of through this like game of telephone gotten some knowledge of that human originally. [09:04] But, there's so many steps in this pipeline and it's a relatively secret pipeline. [09:07] Like people people talk at across two stages of it, but like the human who knows this thing is not supervising the training run, is not really directly inputting like how the model gets trained [09:17] in the way that a human could if they were doing it for their coding engine that they're working with day-to-day. [09:22] Um and so, what we see as an opportunity and kind of also where we would hope to go is like to close this gap and to allow the person who the same way that when we work with our coding agents we're prompting them like the same things every time telling them to like not repeat the same mistakes. [09:37] Um that this is how you could train models. [09:40] You can tell the models things uh and they will learn these things durably, not just as like a line in your agent's MD which kind of accumulates and then you have to refactor it all the time. [09:50] You can do some of that, but a lot of times what you really want is you're giving kind of contextual preference. [09:54] You're saying in this setting this thing that you did was not exactly what I wanted and I would have preferred this instead. [10:00] And we'd want systems that can compound this into like durable learning. [10:04] Uh and training is a very effective way of doing this because the shape of data you're giving there is quite close to what you would want uh from like an actual training pipeline. [10:18] And so there's there's several different types of learning. [10:19] There's things that people do, there's things that you can do at the harness layer with skills and memory. [10:24] There's knowledge that just lives throughout an organization in file systems and databases that you retrieve with with tools and with code. [10:32] Then there's the models themselves which have this really broad world knowledge, but like we all have I'm sure experienced frustration when using a model whose like cut off of knowledge is like a while back [10:45] and like it you can't really talk to the models about the news of the past 6 months nowadays. [10:49] Like they don't really they have to go like relearn a world model in context every single time and this just does not allow them to really operate as fluently as they can discuss [10:59] things that happened longer ago. [11:01] And so organizations to get the most value out of models, we imagine they will want to increasingly have models that really understand what is going on in the organization [11:10] at an intuitive level. [11:12] And this is the sort of thing that you want to train for. [11:14] Um and so how do you get there? [11:16] Like what is the road for an organization to go from like having this idea in the abstract of like we're going to train models on our data to actually getting there. [11:26] And I think one really useful starting point is evals as essentially test cases. [11:30] I think like with code we've gotten to a point of maturity around like testing and life cycles and software development life cycles for ensuring that code bases grow healthily over time usually. [11:43] And agents are doing so much of this work for us. [11:46] And the version of continual learning that I see I think is like most practical for most organizations is just treating a model kind of like a code base where it is the sort of thing that you can have a life cycle around. [11:58] You can add test cases to. [11:59] You can add features to. [12:00] You can add assets to. [12:03] And this is the sort of thing that the process of using agents like initially you collect traces. [12:08] These traces have your prompts and they have your feedback to things that models did, and this just from the process of using these models, you are accumulating the assets you need to create evals. [12:19] It's just that making evals historically has been a little bit painful, and a lot of organizations have not necessarily wanted to do it manually, but the agents are quite quickly getting to the to the point where thankfully we we have robots that can can do a lot of the eval creation for us, especially as we train them [12:36] more on the best practices of making evals in ways that are robust and amenable to learning. [12:42] Um and so I think another useful uh example here is decision model craze that has kind of been taking the world by storm in the past couple weeks with with Jev, [12:51] and also the parallels around routing and people being very excited about cost optimization because we see that like it's possible to spend very large amounts of money on Claude every month, and we figure out like when should we use a cheaper model? [13:04] Um and this is the sort of thing that I think people are recognizing needs to kind of live in the harness, um but it also is a an attribute that looks relatively similar to [13:13] uh decision models. [13:14] And the reason I bring both these up together is because there's things with very clear labels where there's a a right answer, and there's an opportunity for a human [13:20] or another agent to give feedback. [13:22] You can have the big model and a small model do the same task, judge whether the small model was as good as the big model. [13:28] If so, then we this is now data of like for this kind of thing we can start routing to the small model more. [13:33] Same for a decision model that's learning to kind of mimic the way that a human in a certain situation would make a judgment. [13:39] Uh this is a great labelable action. [13:42] Um where the human might be doing the approval the same way that like we approve our tool calls in Claude code sometimes, but I think most people have turned on like auto uh tool acceptance, [13:52] um but every organization for more bespoke things that aren't just about like tool security are going to have their own rules and preferences, and these are the sorts of things that you could then compound into a decision model. [14:02] And so this is like a very believable form of continual learning that a lot of people could just plug in tomorrow and uh see immediate value from. [14:09] Um but more broadly what we see people wanting to do, and this is a lot of the work that that we do at Prime Electives, working with organizations that are looking to do relatively ambitious training projects [14:19] around turning uh their traces from deploying a model in production for a high-volume use case into rich, robust environments that are blended real and synthetic that kind of capture the complexity of the real task they want to be using long-running agents for. [14:36] And agents are very useful with sufficient orchestration around them, sufficient tooling, and humans in the loop at turning these into environments that are rich enough to train in. [14:46] Uh and we see that this is getting more and more automated with with every new generation of open and closed models. [14:52] And this means that we have an opportunity to start having this whole thing of taking the stuff that we're already doing and turning it into a self-improvement loop just kind of fall out magically from [15:03] applying agents to curation of the data and creating interfaces for humans to to give signal about what they want. [15:10] Um this is a idea that I've been for my own setup been like playing around with a lot that I think will become a a popular interface for interacting with models more in the future. [15:21] You're seeing it a little bit in some of the bots, but I think it especially now that models are good at like writing code on the fly, these kind of widget card features that are like I think a a very practical form of dynamic UI [15:33] that are also really useful for eliciting human decisions. [15:36] So they're kind of like the the tool call approval thing, but much more personalized, much more specific, and also kind of get around the problem of like, "Okay, you have 20 different bots that are going and you have to remember which ones are where [15:49] and who is curating all this for you?" [15:51] And then people are like, "Do you want one bot?" [15:53] And then you're like, "Oh, one's great, but I actually want two." [15:55] Then you have two, then you have 20. [15:57] And I think we kind of are oscillating back and forth between this the single stream and the multi-stream agent threads, but what we really want to do are make decisions. [16:05] We want to give ideas to the agents, let them run with the ideas, and then come back to us when we need to make decisions. [16:11] And the agents hopefully should make good choices about when to bring us decisions. [16:15] And if agents can create interfaces on the fly for us that allow us to very directly give them the information they need, one, this kind of is much more ergonomic for us as humans [16:26] than like reading, trying to parse through a long thread message to see like, "Okay, where was the question?" [16:32] It's also kind of like the human dual side of the the decision model Jeff style, but it also is perfect data. [16:39] And so, it's a setting where we've been experimenting with this as a way of training models to kind of get this feedback loop going from having human input with these kinds of natural interfaces be the sort of thing that directly acts as a label and is the sort of thing that you that a model can directly [16:56] improve on because there is a very explicit target. [16:59] And it it will get around a lot of the problems that we kind of hear about in reward hacking and whatnot. [17:04] Those things are worth addressing, too, but like this is like where we see a very useful starting point being for a lot of these problems. [17:10] And this can be done, doesn't have to be with every model in your stack. [17:13] It can be the orchestration layer models, it can be decision models, but it is an entry point for kind of starting to have this compounding of preferences and latent knowledge happen in the models. [17:27] Um and so, I think there's a recent example today. [17:29] I just added this earlier from a company called a paper instruments that they use some of our tooling to do this. [17:35] They're they're friends of ours. [17:37] But they trained a model for 300K that is kind of Pareto frontier optimal for knowledge work for things like spreadsheets and uh slides. [17:46] And it's like an employee scale investment for an org to do. [17:50] Where like you could like go hire a software engineer or you could like train a model. [17:55] And you can also spread this out over a longer period of time if you're kind of compounding the knowledge over time. [17:59] But it's the sort of thing that is increasingly becoming quite practical. [18:03] And it's the sort of thing that a lot of organizations we see wanting to do now and we kind of see the trend of how much more the demand for this is growing [18:11] month after month uh as people start recognizing one, the value of this and how kind of the the open models are good enough that you can get them to be much better and also much more personalized [18:24] by turning your knowledge for your domain, your harness, your environment into a training setting for them. [18:30] Um, but also it's the sort of thing that naturally lends itself to a a learning loop. [18:35] And so this is a a prototype of something we're doing internally around kind of how we're imagining people can really deploy continual learning in the world, which is that you can have traces, you can start collecting these and you can then [18:46] like every night see the proposed experiments, look at the things that have been flagged as issues and kick off a training run for the night. [18:55] Maybe your inference capacity in the day is serving your agents. [18:58] At night employees are not using them as much and you can use that capacity for training instead. [19:03] And so this is a a very natural way that we see organizations able to like quite soon actually do for real continual learning in the way it sets the models and start [19:13] compounding their knowledge into uh better and better capabilities for their agents. [19:19] Um, and so this is kind of the where we see a lot of this culminating towards. [19:23] There's so many things you do first. [19:24] You discover your workflow, you uh create skills, you make evals, you do routing, and then eventually you start to want to get the economies of scale, get the compounding benefits that have come from the data inside of your companies, [19:38] your organizations, and and have the organizations become increasingly self-improving in ways that uh get better and better over time. [19:47] Um, that's what I got. [19:48] Uh I can maybe take questions if there's any time. [19:52] I don't know. [19:52] No questions. [19:53] Um, and uh yeah, we're at Primer Lex. [19:56] We're working on a lot of this stuff. [19:58] A lot of it is open source and public and we uh blog about it and tweet about it, but also we work with companies and we're hiring and growing and so get in touch if you want to get in touch. [20:06] Thanks. [20:07] [applause]