[00:00] Next up, we are honored to have Gabe with us. Gabe is co-founder and president of Harvey. [00:05] You were a research scientist at DeepMind ages ago and then at Meta. I think before you showed [00:11] your college roommate what GPT-3 could do and this duo then became Harvey. We're really excited to have [00:20] you here. I think everybody here in the audience is an application company thinking about how to [00:24] start doing their own research, post train their own models, and create their own labs and so I think [00:30] Harvey has really set the example here and we're really delighted to have you give a talk on how [00:34] you guys built Harvey Labs. Awesome. So the alternative title to this talk is building a research lab [00:49] on a budget and it's an unfair game competing with the Frontier Labs if you're an application [00:57] layer company. There are rich teams, there are poor teams, and then there's us in the application [01:03] layer. The Frontier Labs have more money, more talent, more compute, infrastructure, and data. [01:12] So how do you compete? By using the Frontier ecosystem. When we started Harvey four years ago, [01:22] most of these companies either didn't exist or were just getting started and so we either had [01:28] to build everything ourselves or in most cases focus on something different like building our [01:34] GTM org and a great product. But today, using the Frontier ecosystem, I think you can compete [01:42] with the Frontier Labs and build Frontier Intelligence. This talk is going to be our [01:49] high level playbook for doing this and I'm going to talk about how we build benchmarks and training [01:54] data, how we work with the Neo Labs to do post-training, and how we serve these models [02:01] in production. To start, you want to build a benchmark. If you don't have a good benchmark, [02:09] you can't train models, and if you can't train models, you don't need to serve them in production. [02:14] So this year we released three of these datasets that we built. We started by building legal [02:20] agent bench, which is a taxonomy of tasks that associates would do at a large law firm, [02:28] and these cover multiple practice areas and there are complex tasks like [02:34] drafting complex fund formation documents, doing case law research, things like that. [02:40] We followed this up by building a contracting dataset. This allows us to teach agents to do [02:46] negotiation like you would in an in-house department. And then the one I'm most excited [02:51] about that we recently released is a large diligence dataset. This is, I think, one of [02:56] the largest RL environments that's been released. The largest data rooms here are 80 million tokens, [03:02] and it lets us do research on long contexts, very complex tasks. And I think the most [03:09] interesting thing about these datasets is how we built them. One challenge we always had [03:15] at Harvey for training models is we can't train on our customers' data. We work with the largest [03:22] law firms and enterprises, and their legal data is incredibly sensitive, it's privileged, [03:27] and so you can't put it in generic models, we can't even put it in our models, and so [03:33] how do you train models given that? And the thing that started working really well this year [03:39] is using domain experts to guide synthetic data generation, and Brendan from Mercor had a good [03:48] analogy that the same way that engineers now don't write code, they vibe code and guide these coding [03:54] models, we're starting to do the same thing. And so my younger brother is actually a lawyer at Harvey, [04:01] and he's gotten very good at using the coding models, he's trained our other lawyers to do that, [04:05] and they can generate incredibly realistic datasets that we can use for training and also [04:10] evaluating our product. And once you've done that, synthetic data isn't good enough, [04:18] but it's a way to get started. And so we work with companies like Mercor and Snorkel who let [04:25] you scale up this process and build larger sets, particularly for training. Once you've done that, [04:34] you need to turn these datasets into efficient RL environments. It gets really expensive as these [04:40] datasets get larger and evaluation gets very expensive. For example, in our diligence data [04:46] set, we have over a thousand unit tests that are grading model outputs using LLM as a judge. [04:52] If you use the largest models and you want to do RL rollouts and things like this, [04:57] it gets very expensive. And so there's a lot of work, and here's some we did with Lang chain, [05:02] of making these very efficient. And then the last thing we did that I think was a little [05:10] controversial at the time was open sourcing some of these datasets. And the motivation for this was [05:18] it's very hard to know your dataset is good unless a lot of people train on it. [05:23] When I used to do research at Google Brain and Deepline, the best datasets were open like ImageNet, [05:29] CIFAR, MNIST, and everyone used them. And you were able to find all of the issues, [05:34] and we get a ton of pull requests, we get suggestions. And then I think increasingly [05:41] we're having the labs when they report new models benchmark on our dataset. And then most [05:46] importantly, we had Elon retweeted. So once you've built the benchmark, now you have something to [05:55] train models against. And the thing that is exciting now is open source models are getting [06:02] competitive. In the past, it wasn't worth doing post-training because the models were improving [06:08] so quickly from pre-training that any post-training you did quickly got absorbed by the next pre-trained [06:14] model. But now with models like Kimi 3, GLM 5.2, NemoTron, Inkling, and others, it's possible [06:22] to take these very strong open source-based models and post-train them to levels of frontier [06:28] intelligence. Maybe not general frontier intelligence, but if you have a specific task like us, [06:33] they are competitive. And so the way we recommend getting started is working with the NeoLabs. [06:41] They have a bunch of expertise and infrastructure already in place to help you make sure that your [06:47] training data sets are good. They have recipes. And usually if you work with them and you're not [06:53] able to get better results, there's probably something you're doing wrong with your dataset. [06:58] And this is a very good way to bootstrap it. And so some of the interesting work we did with [07:03] these different providers. Fireworks, we got some very interesting results training GLM 5.1 [07:11] to use Fable or maybe Opus 4.8 as an advisor model. Base 10, we did some interesting work on KV [07:19] compaction. Ngram, who I think is here, we're doing interesting work on enterprise search and [07:24] firm knowledge. Trajectory, we worked with them to train NemoTron models. And Applied Compute, [07:31] we're doing some interesting work on our Vault product. And I think one question we got is, [07:37] why work with multiple NeoLabs? Why not just pick one? And for us, as we're scaling the research lab, [07:44] we have more research projects than we have bandwidth to do internally or just with a single NeoLab. [07:50] And every NeoLab is taking a different bet. They have different ways they think about research. [07:56] We have different open source models we want to train. And the more we work with, the more we [08:02] learn. And it's getting easier than ever to do post training. So one, working with the NeoLabs, [08:09] we're learning a lot in partnership with them. And then we're doing more and more post training [08:14] ourselves internally with APIs like Tinker and the infrastructure Fireworks and Base 10 have built. [08:20] It's never been easier to post train these models and then serve them. And there's increasingly [08:25] more post training talent that we're hiring and is available. And inspired by cursor, [08:31] the goal of these efforts is for us to build our version of Composer 1. How do we package all of the [08:37] work we've done with synthetic data, scaling it with Mercor, the work with the NeoLabs into a [08:43] model we can serve alongside the closed source models. Now, once you've post trained a model, [08:51] you need to be able to serve it in production. And this is non-trivial. So I want to start [08:58] first by talking about our model serving infrastructure. Because I think sometimes [09:03] people still think about application layer companies as you're calling a single model [09:07] endpoint and it's maybe a chat product. And so a big problem we've solved over the past four years [09:14] is we operate in 60 countries. We have multiple product surface areas. Customers have different [09:20] model preferences. And even with just the closed source models, how do you serve these [09:26] at scale? And so this matrix gives you a sense of all of the things we need to handle when we're [09:32] thinking about serving these models at scale. And as a simple example, for each of these model [09:38] families, we need to serve multiple of these models. We need to have fallbacks across providers [09:43] to hit our SLAs. And now with companies like Fireworks Base 10, we can add open source [09:49] models into this mix. In order to think about when you serve models in production and how you [10:00] monitor them in production, you need to have this infrastructure in place, [10:04] even before you think about post training. And so this is how we think about when there's a new [10:09] model released, whether it's open source, closed source, or a model we've post trained, [10:14] how we make decisions whether to put it in production. And then once it's in production, [10:18] how we make decisions whether to keep it in production. And so pre-production, we have a set [10:23] of generic evals. So in terms of automated, we have the lab benchmark that I talked about where [10:30] whenever a new model comes out, this gives us a very quick sense of is it a frontier model? [10:35] How strong is it? What areas of legal is it good? We have human testing in the generic case [10:42] where we run side by sides of this model with other models to compare them. And then for every [10:48] product surface, we have critical user journeys and automated product tests because a model could [10:53] be very good generically, but it could not be a good fit for a specific product surface. [10:59] And then we also have human product testing. And together, these signals, along with heuristics [11:05] around cost, latency, region availability is how we decide whether we put a model into production. [11:11] And I think the important point here is this is the case for post trained models or non post [11:17] trained models. And so you can reuse this infrastructure and you should have it in place [11:22] before you think about post training. Once a model is in production, same thing, doesn't [11:26] matter if the model is post trained or not. We do AB testing. If we're rolling out a large [11:31] change, we look at engagement to track if this model is performing how we expect. [11:36] And then we look at things like uptime token efficiency. And then we call it product feedback. [11:41] I call it angry customer emails. And so there's all of these signals that tell you this is working [11:46] as expected. And so you need that infrastructure in place before you think about serving models. [11:54] And then the thing you need to do even still before serving models is what I call the simple [12:02] open source switches. And so the first one is look at all the places you're serving models [12:09] and find, are there places in my product where I can just naively swap open source models? [12:15] And so, for example, we have parts of our product that generate citations that don't [12:19] need the largest models. And there's opportunities to swap in GLM 5.2 and get cost or performance [12:25] benefits. And so that's the first thing. And doing this builds the muscle of serving open source [12:31] models alongside closed source models. And then the second, which has gotten very popular now, [12:38] is model routing. So there could be places where you can't naively swap an open source model. [12:44] But what you can do is on certain queries, route to open source models. [12:50] And then once you've done this, you have everything in place to start building the [12:54] post-training flywheel. And once you start serving them in production and collecting feedback, [13:01] and caveat here, you need to be very careful about what collecting feedback means. In our case, [13:07] it does not mean training on customer data. But we do get feedback signals from our user testing [13:13] and other things that can inform how we build future data sets and improve these models. [13:18] And that is our playbook for building a research lab. We think in the future, every company is going [13:28] to need to become an AI company and figure out some version of this playbook. And I think despite [13:36] that, most people are still betting against this playbook and application layer companies [13:43] and the frontier ecosystem. But if we win on our budget, but this team will change the game. [13:59] This is a scene from Moneyball, which hopefully you've seen this movie, [14:03] where they're talking about we just won 20 games in a row. And Billy Bean says, [14:09] it doesn't matter. If we don't win the championship, no one's going to appreciate what we've done [14:15] here. And the quote is, but if we win on this budget with this team, we'll have changed the game. [14:25] And I think now with the frontier ecosystem, all of you have the opportunity to do the same. [14:32] Go change the game. Thank you. Do you want to do a QA? Yeah, of course. [14:45] Yeah, you talked about the challenges with having legal customers with very sensitive data sets [14:56] and talked a little bit about your mother's lawyer and other in-house experts doing their version of [15:01] vibe coding to produce the benchmark. What does that give us a little more detail about what that [15:05] actually looks like? Yeah, great question. So the biggest challenge with legal work [15:11] is when you're at a large law firm, the type of work you're doing is, [15:15] for example, you're representing a company doing an M&A and you get a data room, which is all the [15:21] contracts of the company you're trying to acquire. Plus there's all these emails and meetings about [15:26] the negotiation. None of that data is public. And so you don't have this analogy of like open [15:31] source GitHub repos. And the biggest challenge you run into when training is you can maybe find [15:37] some of the final work product publicly. So like a public purchase agreement, but you don't have [15:41] any of the input data. And historically, it was very awkward to get a bunch of lawyers and say, [15:48] hey, make a fake data room because these data rooms can be 10,000 contracts. They all need to [15:53] fit together. And so what Julio figured out is a very clever way to generate these data sets. [16:02] And so he started from the rubric. And so he planted all these issues and said, [16:06] here's all the problems in the data room and what I'm going to check for [16:10] and a scenario and then use that to generate the data room. So you can plant all of these issues [16:15] like these contracts don't tie together. This contract's missing and generate all of the data. [16:21] And then we'll use Mercor snorkel to make all the contracts look realistic. But now you have this [16:26] input data set and you can have the model generate like a diligence memo and this way [16:30] of checking it to say, Hey, did you catch all of these issues that we know that are in here [16:34] because we planted them. And obviously, depending on the work you're doing, you need to be clever [16:39] how you create it. But that to me feels like the really big unlock because now we can start [16:46] doing this training that before you just you had this chicken and egg problem where we'd go to law [16:50] firms and say, Hey, we can train you this model on this client data. And they'd be like, okay, [16:54] prove it. And we're like, show us the data. And they're like, no. And so now you can prove it here. [16:59] And now we have a lot of interest from law firms saying, Oh, this is really interesting. Can we [17:03] do it with our data? Good question. Yeah. We're also building an applied AI layer. [17:12] From a hiring point of view, it's different researchers from anthropic and the labs. [17:19] Do you try and play that game? Would you try and hide domain logic and lawyers and experience? [17:24] And where is that work? And where is that not work? Yeah, I think this was one of the big [17:28] mistakes I made, like when we first started the company because I had worked in these labs. And [17:33] so I knew a lot of the folks and I would say, you know, come work with us. And then they were [17:36] getting these, you know, a hundred million plus pay packages. And we weren't at the scale where [17:41] this made sense. And so I would say we're now just getting to the company size where [17:46] I would say we're not competing with kind of the frontier talent, but there is increasingly [17:51] folks that are doing PhDs, folks that don't want to work at large labs. And so I think [17:56] that is changing. And then I think the second thing is a lot of why you needed that talent [18:02] early on was it wasn't just doing the post-training, it was you need to build the training [18:08] infrastructure, the serving infrastructure, and all of those things combined. I think the talent [18:13] to do that was like very unique. Like my old roommate was one of the folks who like [18:17] ran post-training at OpenAI. And he was one of the best researchers I've ever worked with. [18:22] But now you can use things like fireworks, tinker-like APIs. And so you don't need to build the [18:27] training and serving infrastructure. And so I think it opens up the pool of talent [18:32] and it feels very feasible to get some of this talent now. [18:37] Yeah, just another question about benchmark creation. So when you're like creating these [18:41] rubrics, you still have to create them in such a way that they're separating them [18:44] the frontier models. And you have to do that with the experts themselves. Like how do you find [18:48] like navigating that challenge? So the experts kind of have to create this rubric knowing [18:52] or like trying to figure out how the models are going to perform on them. [18:55] What do you mean separating the? [18:56] I guess you have to create the rubrics that can adequately separate the [19:00] separate the front. They have to challenge the frontier, right? [19:04] I guess how do you navigate that, especially when you're like having these in-house legal [19:07] experts who might not exactly know how to create that rubric designed for a model? [19:12] Yeah, that's a good question. So we think of it more as how do we make them [19:16] realistic representations of the work our customers are doing. And I think part of why [19:21] we pick the legal domain is if you just build a realistic client matter that these top firms are [19:26] working on, like the frontier model still can't do this. And I think the thing over the past four [19:34] years we've built is, so for example, my brother was one of our first hires. And so he's been [19:39] working with the models for four years. And so his intuition of how the models work, [19:44] how to generate these data sets is incredibly good. And he's trained a bunch of lawyers [19:48] to do this. But I would say the focus is still more of how do we build a really realistic data [19:53] room and then rubrics for the diligence. And then when we run these models, we find, [19:58] okay, there's gaps and there's room for improvement. But I think it depends on the domain. [20:04] Go ahead. [20:04] Hey, Shayram from Bronx. [20:06] Sorry, let me do that one and I'll go. [20:10] Great talk, by the way. Ross from Torusil. If you think of the end-to-end motion is like data [20:17] generation, the environment piece, then there is the algorithm piece of like how do we train, [20:22] et cetera, the research piece, and then there's the infra piece. If something is not working, [20:28] anecdotally, what have you seen? Is it operationally or dollar-wise or human hours-wise, [20:34] is it usually in the data layer? Is it in the research layer or is it in the infra layer? [20:38] And how do you go from there? Who is orchestrating or debugging this whole [20:42] end-to-end pipeline in some ways? [20:44] Yeah, this is a great question. I mean, this is a whole other talk. [20:48] Um, I don't think there's a single thing. So I would say what makes it easier for us [20:57] is we've found product market fit. We have a product that's being used in production [21:04] and we did this largely with the closed source models to start. [21:08] And so that let us build a lot of this kind of confidence in the thing is working end-to-end. [21:15] And so we have a product. People are using it. People have been using it for many years. [21:19] The models work in this way. We can monitor whether they're working in production. So that [21:23] was kind of the point of serving of you need a lot of this in place. And then we have built [21:29] the muscle of new models come out. How do we put those into the product? Whether they're closed [21:34] source or open source models. And so that's, you can kind of think about the full cycle. [21:39] And then obviously we've done a bunch of work of like harness engineering and context [21:43] management and all of these things. And so now you can think of post training as one small input [21:49] into this broader system. And so we have our team post train a model and then you feed it into this [21:54] broader system of, you know, you treat it just as another new model. And so then you have all [21:59] these signals of, you know, what's going wrong. And so I would say, but across these steps, [22:06] there's kind of easy ways to gate it. So if you start with the benchmarks and you post train a [22:10] model and it doesn't work well on those, then it's unlikely to go farther. If it works well on that, [22:16] and then you put in a product, but someone uses a product and they say things feel weird. Because [22:20] for example, on the benchmarks we've built, there is still things that they definitely don't catch. [22:26] Like the best example is you can have a model that does very well on our benchmarks, but [22:32] they've over fit to some degree. And then you put it in a more generic assistant like product [22:36] and it kind of falls apart for when you go out of distribution. But yeah, you need to have kind of [22:41] all of the like stages and gates in place. And then it kind of becomes obvious where things are [22:46] breaking. But good question. Yeah. Oh, I had a question. Hey, great to meet you. I'm from rocks. [22:54] On the, on the benchmark side, the legal agent, I think you guys had big law before big law bench, [22:59] and then now legalized benchmark. What's the philosophy and open source in the benchmark? [23:03] Because if you open source, of course, you're getting traction with other people trying out [23:07] the benchmark, but the labs can help climb as well. And then if you close source, then there's a [23:13] question of is this a real benchmark? So how do you, how do you, how do you, what's your philosophy? [23:17] I think that's like a good tension that we think about. I would say even before we open source [23:22] this benchmark, we already work closely with the labs. And so we share data with them to help [23:27] them improve their models, which improved our product. And so I would say the way we think [23:32] about it is there is a huge advantage in your industry, particularly in legal in terms of [23:41] helping our customers understand how good different models are at different things. [23:45] And so I think when we, when I started Harvey, I kind of had the intuition of, oh, we'll just [23:50] build the best model and then customers will be happy because it's the best. And it's very clear [23:57] now that every customer has different preferences, different models are good at different things. [24:01] And then I think the second that I didn't anticipate is kind of how big the frontier [24:06] ecosystem would become. And so now we have so many companies reaching out saying, Hey, [24:11] we have this new technique or we did this thing. Can we try it? And before we just didn't have the [24:15] bandwidth where we're just like, we're working on these other things. But now with this open [24:19] source data set, we could be, we can say, Hey, go try this. And if it works, then great. [24:24] This is something that's interesting to invest in. And then I think the way we think about it [24:28] strategically is the valuable data for us is going to be helping law firms train their own [24:36] systems and how they work on private data. And then we want to help everyone improve these systems [24:42] with synthetic data and kind of some of the data we open source, but obviously a balance [24:47] for the reasons that you mentioned. Yeah. What are the remaining open questions for you [24:55] that you want to help on? Yeah, that's a great question. [25:00] I would say one big challenge, one of the biggest challenges. So we can generate these very realistic [25:06] synthetic data sets. We can augment them with humans, but the distribution of that data still [25:11] doesn't match our production distribution. And so I would say these data sets we're generating [25:16] are somewhat future facing. And so what I mean by that is we can generate a really realistic [25:22] data room, but right now our product isn't used purely to do a diligence. And so if a model does [25:28] well on that, but then someone uses it to draft an email, maybe it doesn't work as well. And so I [25:33] think there's still that gap because we can't look at customer data. And so how do you like [25:36] bridge that gap? So I think that's, to me, that's the biggest question on the data set side. [25:41] And that one, that one is challenging. There is, I think there is a bunch of questions around, [25:49] for example, again, with the diligence data, like the largest data room is 80 million tokens [25:54] of contacts. Like the models don't do a good job of managing this context and how do you train [25:59] these models to operate in kind of these very complex environments. So I think that's another [26:04] one of just, there's still a big performance gap. And I would say the third is like, [26:11] we are making good progress on how do we post train our post train models ourselves, [26:15] but I think figuring out some form of continual learning is, I think the end game here is not [26:20] for us to build the best legal model. It's for us to help every law firm or enterprise customer [26:26] customize it to the type of work they're doing. And so just thinking about how do you operationalize [26:32] that where you have a large law firm and every time they work on a client matter, [26:37] their AI system gets better, but you're also protecting the client data. I think that's kind [26:42] of one huge, both technical, operational, and AI challenge that is super interesting. [26:51] We're done. Or more? I can do more. Yeah, maybe last one. [26:57] Yeah. So you talk a lot about the foundation readiness to compete with Frontier Lab, [27:04] including your OpenSUS model, including their infrastructure. From product perspective, [27:09] right? Code S, Cloud Code, they are general product, right? So from product perspective, [27:14] how do you prioritize to compete with the Code S, Cloud Workflow, multiple P, efficiency? How do [27:21] you think about the product? Yeah, I think the big shift that we're thinking about is [27:28] our original product and then things like Code X co-work are very individual focused products. [27:35] And so they're about individual productivity. And increasingly, the product we're building is [27:40] about organizational productivity. And so if you think of a large law firm, the problem they're [27:46] trying to solve is not how do I make my individual lawyers more productive. The problem they're [27:51] trying to solve is I have 10,000 clients. I'm working on client projects for all of them. [27:56] I need to make sure that all those client projects go very well. And then I can also [28:01] do them in a way that's profitable. And so a lot of the infrastructure we're building for the law [28:06] firms is how do you operate that machine? And when you start thinking about an individual client [28:13] project, most of the challenge is not how do I draft this one section? It's I'm working on this [28:20] project for six months. I have a team of 20, 30 people across the firm. I need to coordinate [28:24] all of them. I need to make sure that I'm coordinating all the outside parties. And so [28:29] a lot of it is starting to look like project management that is orchestrating these humans and [28:34] these agents. And that's at the, I would say, at the team level. And then if you think about it at [28:39] the organization level, now you have 1,000 of these projects. And you need to start thinking [28:44] about resource allocation. What am I billing? What am I pitching? And then with enterprises, [28:49] it's even more complicated, where kind of a Fortune 500, they're working with 1,000 law firms. [28:54] They have 1,000 people internally. What are all the systems to kind of start orchestrating that work? [29:00] And so I would say the simple answer is just, and this is I think historically what Enterprise [29:04] has done, is how do you just go hyper vertical into your domain in a way that the horizontal [29:09] products won't? Yeah, good question. Thank you, Gabe. That was an iconic talk. [29:15] Thank you for joining us.