Why the Future of AI May Be Smaller: The Rise of Domain-Specific Models

1 Sep 2026 · 52 min · 28 chapters

Ask about this episode

Ask anything about it. ChatGPT or Claude reads this page and answers with the times it was said.

Connect VO and ask about every podcast you hear, including the moments you saved. Add to ChatGPT · Add to Claude

In short

The episode argues that AI’s “next frontier” may be smaller, domain-specific language models paired with deterministic (rule-based) software, especially for legal risk and other high-stakes, rule-driven workflows. It contrasts this with the recent race to ever-larger frontier models and discusses why “wrappers” around big models lack a moat.

Guest backgrounds

Ahmad Khazri is co-founder and CTO of Risk Vantage AI, building AI for legal risk using small domain-specific models plus a deterministic engine. Previously: VP of AI at Xometry, AI roles at Graham Data Science and Turing, and earlier an information science professor and Harvard Berkman Klein Center fellow.

Key claims

Copy-pasting contracts into ChatGPT misses organization-specific context (risk appetite, baselines). Large models can hallucinate and vary answers, undermining confidence and liability. Determinism is needed for rule-like items (e.g., net payment terms). Small models can be trained via knowledge distillation and run on commodity hardware in sovereign clouds.

Notable examples

retracted legal motions due to fabricated case law; sovereign-cloud constraints (healthcare/finance/defense) where GPT/Claude can’t be used; “fly vs intercontinental ballistic missile” analogy for limiting unpredictable agent behavior; Risk Vantage AI product “Riskfaction Negotiate” launched July 4.

Written by AI. May contain mistakes. Listen to the episode to check what was said.

Chapters

Tap a time to open that second in VO

Introduction to Domain-Specific Models

0:00 to 0:22

Explore the concept of smaller, domain-focused language models.

“You should not use an intercontinental ballistic missile to hit a fly when you can use a fly swagger.”

The Contextual Limitations of AI in Legal

1:20 to 2:27

Discuss the challenges of using AI in high-stakes legal contexts.

“Yeah, I'm really excited to get into this.”

Legal Market Dynamics and AI Opportunities

2:27 to 4:23

Examine the vast legal market and AI's role in improving efficiencies.

“are an in-house counsel for a company, what matters is that what is your company's risk appetite and risk baselines?”

Changing Attitudes Towards AI in Law

4:23 to 5:20

Understand how attitudes in the legal profession are evolving regarding AI.

“but you always have need to build on this context, collect this information, distill it, and come up with the strategy that addresses the problem.”

The High Cost of Legal Services

6:02 to 7:56

Discuss the financial implications of legal services and the need for efficiency.

“Because now the large language models and the AI infrastructure become very good at doing certain things that now people can see the value of bringing that.”

Navigating Competition in AI for Legal

7:56 to 13:20

Analyze competition dynamics among AI legal tech companies and market strategies.

“And there's a push from the customers that, hey, I can put this stuff in chat GPT or I can get some console.”

Building Sustainable AI Solutions in Law

13:20 to 14:00

Discover strategies for creating sustainable AI products in the legal sector.

“And that means that just don't design another assistant, design a product, get solved the problem end-to-end within an ecosystem that connects to other aspects of the business.”

Building a Unique AI Product

14:00 to 15:00

Learn how accumulating data can create a competitive advantage in AI products.

“So it's not going to be a wrapper, but how are we going to build in this product as you collect information over time?”

Challenges in Sovereign Cloud Usage

15:00 to 16:00

Explore the limitations of running AI in sovereign clouds for sectors like healthcare and defense.

“The other aspect was that can we define a niche that I've said that, okay, there is a lot of discomfort about sending your data for some of the segments of industry.”

Probabilistic vs Deterministic AI

16:00 to 18:00

Understand the balance between probabilistic AI capabilities and the need for deterministic outcomes in legal applications.

“And then the cost isn't manageable for you that you have the incentive to be running to that.”
Show all 28 chapters

Concerns Over AI Hallucination

18:00 to 18:40

Discover the legal implications of AI-generated inaccuracies and their impact on trust.

“So while the models got much better with handling hallucination, that is not always the case.”

Integrating Deterministic Systems

18:40 to 20:30

Learn about merging deterministic engines with AI to ensure consistent outcomes in legal workflows.

“And the moment that my confidence is eroded.”

Applying AI in Legal Services

20:30 to 21:00

Explore how AI can transform legal services by applying domain expertise and technology.

“And it also make it possible to go after those niches that we talked that they want to have run these things on commodity hardware in their sovereign cloud.”

Addressing Fears of AI in Accounting

21:00 to 22:30

Discuss how accountants can leverage AI tools instead of fearing job loss.

“And we're going to see more and more of this.”

The Narrative Machine Concept

22:30 to 25:40

Examine the historical and theoretical insights into building narrative machines in AI.

“You have to use a very simple logical system that can be run quickly, efficiently, and it will be always 100 % responding within the frameworks you have defined.”

Developing a Neuromorphic AI System

25:40 to 28:00

Learn about neurosymbolic AI and how it combines neural and symbolic components for better outcomes.

“It sounds like narrative machine and whatnot.”

Introduction to Neurosymbolic AI

28:00 to 28:36

Learn about neurosymbolic AI and its advantages in determinism and efficiency.

Legal Implications of AI in Decision Making

28:36 to 30:08

Explore the complexities of AI in legal contexts and the risks of unintended consequences.

“But the certain places you want it to be deterministic outcomes, it can be built into it.”

AI's Limitations and Safety Measures

30:08 to 31:52

Discuss the inherent limitations of language models and the need for safety protocols.

“And I got to imagine maybe not so much as much in procurement, but I could see in the legal field, like there are just in number of possibilities based on a decision you make.”

Small Language Models: Efficiency and Effectiveness

31:52 to 34:14

Understand the benefits of smaller language models for specific tasks and their efficiency.

“And again, I'm sure that all the engineers, they're offering, creating these harnesses, they put the guardrails.”

Distillation Techniques in AI Development

34:14 to 36:44

Examine the process of knowledge distillation and its role in creating effective AI models.

“We do knowledge distillation against the leading model to get it up to the point.”

Evolving Legal Business Models with AI

36:44 to 40:19

Learn how AI is transforming the legal industry and the future of billable hours.

“You get your domain-specific expert, which is your co-founder, and you just go create the AI native service company.”

Democratizing Legal Services through AI

40:19 to 42:00

Discover the potential of AI to make legal services more accessible and affordable.

“And I want you to provide me better service at a cheaper rate.”

Access to Affordable Legal Services

42:00 to 44:40

Explore how AI can democratize access to legal services and empower citizens.

“And again, when you're dealing with a 500-pound gorilla that has a legal department with a billion-dollar budget, you can't fight them.”

AI as a Tool for Civic Engagement

44:40 to 46:02

Learn how AI tools like chatbots can help citizens navigate legal and governmental processes.

“but I think it empowers a lot of people in my opinion.”

Entrepreneurship in the Age of AI

46:02 to 48:25

Discover how AI is creating new opportunities for entrepreneurs and reshaping industries.

“I see that it also opens up new entrepreneurship opportunities.”

Challenges of Innovating within Existing Systems

48:25 to 49:46

Discuss the hurdles faced by established organizations in adopting AI innovations.

“And I think, can't we now modernize our government very efficiently at much lower cost with the taxpayer money, but start offering the taxpayers better service for the money they are paying the government?”

Rapid Development in AI Software

49:46 to 50:18

Understand how advancements in AI are revolutionizing software development practices.

Hear the part that matters, and keep it.Open this episode in VO. Double tap your headphones to save a moment as you listen.
Get VO free

Transcript

Automatic transcript. May contain errors.

0:00You should not use an intercontinental ballistic missile to hit a fly when you can use a fly swagger. That unpredictable behaviors, that is another argument why we need to use the smaller domain-focused language models. That they are dumb enough that they cannot do anything beyond the scope that I defined for them.

0:21Matt Paige:Welcome to the Talking AI Podcast, where we talk AI with both experts in the field and early adopters. I'm your host, Matt Page, and we're here to demystify AI for you so you can get some value from it. Let's talk some AI. The last two years of AI have been a race to bigger models, more parameters, closer to knowing everything, and my guest is betting we begin to see divergence from that path. Ahmad Khazri is the co-founder and CTO of Risk Vantage AI, where he's building AI for legal risk on small domain-specific models paired with a deterministic engine. And before this, he was the VP of AI at Xometry, Graham Data Science, and AI at Turing.

1:00Matt Paige:And in an earlier life, he was an information science professor and a fellow at Harvard's Berkman Klein Center. We're going to get into how AI is going to be applied to domain-specific use cases, why small models running on cheap hardware might be the next frontier, and what happens to the billable power. Ahmad, welcome to Talking AI. Thank you so much, Matt. Thank you for having me. Yeah, I'm really excited to get into this. in some of your previous experience, it's super interesting. We're going to get into that too, but I want to jump right into this. My guess is more than half of the people listening right now have pasted a copy pasted a contract into ChatGPT and thought this looks pretty good.

1:39Matt Paige:This is settled. Why is that either a fallacy or what is missing from what people are doing when they just paste in a contract or say, hey, ChatGPT drafted this legal document for me? yeah actually AI is very helpful I am guilty of the same thing I have done it many times myself in different contexts but in when the stakes are high especially when you are talking about an enterprise business transaction or a personal high stake case what is missing is the context what is the context that you are operating in and AI you upload it in chat GPT it makes some assumptions because it is a stochastic model have seen these cases in certain contexts.

2:24And based on that, we're going to give you feedback. But what is the, for example, if you are an in-house counsel for a company, what matters is that what is your company's risk appetite and risk baselines? What are the accepted practices that you wanted to see every time? And maybe chat GPT would not be aware of those specific contexts.

2:44Matt Paige:So take me through the problem space here. I'm curious, because the legal field is very large. You have the giants out there like Harvey and Legora. And then, of course, you have the frontier players. They have specific legal things they've played with and toyed with. And there's always that threat. They could just roll out an entire product focused at legal. But what is the problem space you all are looking to solve? Okay, so the legal services is a massive market. Globally, it's north of$900 billion. Of course, everyone wants a piece of that. That makes sense. Lawyers are very expensive. Absolutely.

3:22So everyone wants a big piece of that. And that's why even we have seen that this frontier labs such as Tropic and OpenAI are actively gunning for this space. for example, Anthropic have released Cloud for Legal. They released a contract review plugin. On the other side, OpenAI hiring people who have done work in this space. So for sure, this is a big market that everyone wants to get in. And as you said, some of the main use cases that you can expect from AI is helping with knowledge work. And Anthropic actually came out in April, said that they look at the Cloud Cowork and their heaviest users, knowledge workers, were lawyers.

4:02So that's why they wanted to go there. Part of it is that in legal space, you have this massive amount of context and knowledge, case law, different rules, compliance procedures, that simply is not possible for a human to capture all of it in their brain. So they rely on this extension of their memories and they use the databases. And of course, people have experience that they can help them to move faster. but you always have need to build on this context, collect this information, distill it, and come up with the strategy that addresses the problem. And this is something that the large language model are very good.

4:40They have infinite capability to zip the knowledge and carry with them. So that is one reason that it really helps. But one thing that when we look at the recent surveys that happened with the lawyers, for a long time, Legal was very pessimistic of allowing any AI get involved because it is high stake field. People don't want to make mistakes.

5:04Matt Paige:You had the cases that people talked about where somebody tried to get a refund or something and they got a free trial. Like there were tons of, and this was a couple of years back, but there was like the whole, to your point, pessimistic, like don't do this. And I feel like that's changed in a lot of ways. Quick break in the pod. I keep hearing the same pattern with companies I talk to. Cloud's helping employees move faster, but in many companies, the business itself hasn't changed. The value's still trapped in isolated chats and experiments. And that execution gap is why forward-deployed engineers have become one of AI's most talked-about deployment models.

5:35Matt Paige:They embed with your team instead of advising from the outside. It's also why the FDE model is now central to every client engagement we lead at Hatchworks AI. As an official Anthropic partner, we embed Anthropic-certified FDEs to identify high-value business problems, build and deploy the solution, and put governance and security around it, then transfer the capability back to your team. If your cloud rollout is still mostly individual usage, check out how Hatchworks AI FDEs work at hatchworks.com slash cloud dash FDE. You can also find it in the show notes. Now back to the show. Absolutely. Because now the large language models and the AI infrastructure become very good at doing certain things that now people can see the value of bringing that.

6:13On the other hand, legal is very expensive. Lawyers will charge you billable offers. that every time I think you interact, if you have retained a lawyer, you send them an email so that is it okay? And they say, yes, they charge you for a tenth of an hour. If their rate is$700, you already cost you$70. So there are cases that people feel that can we bring more efficiency. I remember that, I believe it was Coinbase in-house counsel or the general counsel who said that I'm not going to pay any of our law firms of working with us unless they tell me how they are using AI to bring efficiencies to the work that they are doing.

6:53I think there is also in parallel some interesting dynamics are shaping and forming because legal institution has been protected from many of different intrusions that change the businesses. For example, in many states in the United States, you cannot invest or be part of a legal business if you are not a lawyer. That space is changing now, and that bring investors, VC money, that they can bring in some more innovations. On the other side, legal has been a profession that was very protected one-sided because the lawyer charge you for billable offer and they are not tied to the outcome. I remember this book from Sim Nicholas Taleb called Skin in the Game.

7:39so that if there is an asymmetry in this interaction that the other party does not have a skin in the game, it is not a good situation. They don't want to be in that. So these things, I think, created the momentum that whether this new technological shift can change. So there is a pull from the market that we can bring more efficiencies. And there's a push from the customers that, hey, I can put this stuff in chat GPT or I can get some console. Why I should pay you$700 to get this? That, I think, initiated a whole transformation. We are still in the thick of it, and it might take a while that it does settle.

8:16Matt Paige:At that point, you made a good point. People are just throwing stuff into ChatGPT, and they're seeing the value from it. But what goes from the point of, I'm just going to do this in ChatGPT or Claude, to I need a solution like you all are building? What's the leap there, I guess? And what specific area, like, are you in competition with the Harveys and the Lagoras from a, you know, traditional, because they're selling to like actual law firms. Law firms. Correct, right? Yeah. So I'm curious, like, the area, the niche you're looking to, you're focusing in on. I'm just curious, that angle and perspective.

8:54Yeah, my co-founder and partner in this work, Mark Afshar. Mark has been working and thinking about this. He has been a nerdish lawyer. He practiced law. Then he went in-house for big pharma. And he just kept saying that early days of AI, he was using these tools, evaluating them, and just keep talking with me that, hey, there is an opportunity. I know there's resistance against using, but at some point, the law firm's going to bring them there because there is no other option. The things are moving fast. There's value coming. And I refused to kind of, I was very pessimistic about this. And my main point was that exactly from where you started, if you build a wrapper, a nice UI that everyone just put a contract or something and get the result from a frontier, you don't have a moat.

9:43I'm not, Entropic is going to do it better than you. OpenAI is going to do it better than you overnight. And they have more resources. So there is a competition. and I see a wave of people got very excited build this AI chat assistants that even build a Word plugin that you can have in Microsoft Word look at your contract give you some feedback and again that's again not a defensible mode and we have seen that Anthropic released its own and all of those who invested money just building a Word plugin now they now have that much to defend themselves the other thing I was a little bit concerned was that there is a race.

10:22Everyone uses the Frontier model. Everyone wants to always, if you're today on, let's say, ChatGPT 5, then 5.5 coming out. Everyone wants to move on that. It's expensive, though. These models are very expensive. They consume a lot of energy. And now when you buy a Claude member subscription or ChatGPT subscription, the labs are heavily subsidized. There are some studies that said that 80%, 90 % subsidized because they wanted to bring you in.

10:49Matt Paige:And you have Harvey's - I think that's the piece that so many people miss too, is like how much it actually is subsidized right now. I mean, it's going to keep getting cheaper, but there's an obviously acquisition tactic at play with the pricing going on. Absolutely. And then you look at these early stage, super hyper scaling startups like Harvey and Legora, that they are also subsidizing their subscriptions because they wanted to get acquisition. They want to get the biggest law firms into their folds, similar to what happened with the Uber and Lyft in 15 years ago when they were just subsidizing ride sharing and we also see that the cracks are happening like Legora announced that you know what we're going to move to consumption based because oh this is amazing I'm using it and they keep using it and then their your economics is not sustainable for long term so I had that pessimism so I was thinking it's going to be a very fierce competition so first I was thinking it's hard to build a moat Second, it's going to be fierce competition that you need resources to build.

11:47What changed my idea was that can we think outside of the box? And can we carve out a niche big enough in this$900 billion market that you can really build a sustainable startup that can grow, have a sustainable business model? So there are a couple of things that I tried to put in. The first one was that these Frontier Labs always going to build, they have to be in the competition to build the latest of the models. But there is a ton of pain in the way that people doing their work and this Frontier Lab do not have the resources or they don't think that's a good idea to go build every single product that you want to use in your life.

12:29I know some people think that -

12:31Matt Paige:I mean, look at the whole forward deployed engineer movement. Like it's solving that case because problems, pain points, workflows are very unique within businesses. Exactly. And you still keep that human to go do the thing in a sense. Yeah. And I think this frontier lab is going to become a layer on infrastructure of our life. So you have the infrastructure of like cloud computing with AWS, GCP, Azure, everything. You have another layer of infrastructure, which is going to be what's going to be your AI model provider. That's going to become, and below that you have power grid. And so we have this stack of infrastructure and I think the AI model is going to be there.

13:07And it's going to be probably very lucrative business if they figure out, go beyond this big burning cash acquisition and building data center. But there's a ton of things that you need to solve the business problem and the user pain. And that means that just don't design another assistant, design a product, get solved the problem end-to-end within an ecosystem that connects to other aspects of the business. So because Mark was working very closely with procurement sales ops in Big Pharma, so we knew that we have to think about not only selling to lawyers for billable offer faster, we can go to the user who suffers from slow business transaction reviews, legal work, and sell to them, go to sell to chief procurement officer, chief sales officers in the organization.

13:57So that's one surface. And then on the AI side, how can we solve that problems that I had? So it's not going to be a wrapper, but how are we going to build in this product as you collect information over time? Those are all learning points that make uniquely your AI product better because I think now building a tool is very cheap. That's no more a moat. People can build it in two weeks. Everyone, this competition for new architectures, for models is fierce and a lot is open source. But data is the new goal that can, if you can accumulate it right way and start using it, that gives you the leverage to build the moat.

14:38So that's, can I build the end-to-end ecosystem that I can capture all the data value in the system and create a flywheel to bring back the feedback in the system to make the system smarter and smarter for the user to benefit from it.

14:55Matt Paige:Yeah, I agree. Keep going, keep going. Yeah, so that was one aspect of it. The other aspect about that was how we address the moat and not being a wrapper. The other aspect was that can we define a niche that I've said that, okay, there is a lot of discomfort about sending your data for some of the segments of industry. For example, if you're in healthcare and you have patient data, if you're a financially regulated businesses, if you're in defense, and in my previous job at Zometry, we deal with a lot of ITAR data. You have to run it in the government cloud or you have to have your own sovereign cloud.

15:31So then that means that you cannot use the GPT models, you cannot use entropic models. So you don't want to go out of your sovereign cloud. So can I run in that space a platform that can perform as well as cloud or GPT-driven models within your sovereign cloud. And it comes with two major shortcomings. If you're running your own sovereign cloud, you probably don't have fancy latest GPUs. You probably have some commodity hardware GPUs. And then the cost isn't manageable for you that you have the incentive to be running to that. So that means that can we come up with an AI architecture that can accommodate that?

16:11And that can be a niche big enough in the defense, healthcare, finance, that you can entertain to build a business that can sustain itself.

16:22Matt Paige:It's interesting to step back and process this. There's still the angle of find a niche when you're starting out. That was true before AI. That's still true now. But what's interesting is getting into how you're architecting the solution, the models you're using toward that's becoming almost proprietary in a sense. I'm curious that from a, like, how are you matching the probabilistic nature of AI with the deterministic nature of software? Is there anything unique there in a sense? Cause I got to imagine there's times where the reasoning capabilities of an LLM is perfect and amazing when it comes to anything related to legal.

17:05Matt Paige:But I gotta imagine there's other times where you want that specific piece of information to always be the same or correct or accurate in a sense. Yeah, absolutely. You are definitely on a spot in this because earlier we were talking about this resistance against AI. So the major, I don't want to say the phobia, but the major real valid concern that people had was what if AI screw up? I am on the hook for the liability, not which model I use. And there are surveys coming out and we look at the number one concerns of the lawyer is hallucination or inconsistency if I do that. And we are seeing that every day some of the judges reporting that how many of the motions are being retracted and it's just skyrocketing like more than hundreds of legal motions are being retracted because they made up case law in the federal court or other places.

18:01So while the models got much better with handling hallucination, that is not always the case. When GPT 5.6, I believe, came out, it did very well, but they also reported that it's more persuasively hallucinate that fools you. They get even better to lying. The confident liar. Yeah. It's not a good thing. That's one part of it. But to your point, if we talk with some of the players that they are using some of these big startups in legal tech. And even now they said that we check this, put in the system, ask the question, we got one answer. And a week later we asked the same question, we got slightly different answer.

18:42And the moment that my confidence is eroded. So part of it is that the confidence in the system by the lawyer. You had a very good point, says that, but if my organization risk profile and baseline is very clear, For example, my net pay terms are net 60. It is always net 60. I close all of the surfaces unless I get the permission from CFO. I want that always to be applied. If my dispute resolution follows certain procedures, I won't always go follow that way. And that's where the determinism is very important. So the power of LLMs is being the probabilistic. And I have a very interesting story.

19:23I can tell you about how I learned in the hard way. but there are some moments in the workflow that you want determinism because you want the confidence you want a hundred percent every time get the same result and actually that's we thought about it and we thought that i thought that oh maybe that's an opportunity we can marry a deterministic reasoning engine with smaller llms to because a major part of the work that LLM is doing is through the reasoning of very complex issues. If we can pull that out and give it to a completely software-based millisecond processing of a deterministic engine, we always have the deterministic outcome while we still benefit from LLMs in different spaces, both in document understanding and generating high-quality prose for legal text.

20:16But the fun part about it is that if you really scale down the usage that you have to this, you don't need a 2.7 trillion parameter model to do that.

20:26Matt Paige:And then the margins in the business model becomes a different equation as well, which is a good thing, right? Exactly. And it also make it possible to go after those niches that we talked that they want to have run these things on commodity hardware in their sovereign cloud. And I do want to get to the fun story you mentioned, but I think this is where like people listening, you really got to step back. And if you're like driving that penny attention, this is the point to pay attention to because what we're talking about here is a service. It's a legal service and you're essentially applying AI as a native approach to it.

21:04Matt Paige:And we're going to see more and more of this. It's not just like the software industry and whatnot. It's all of services this can be applied to. And I think it's a really interesting approach that you're taking, but like I'm speaking in front of a room full of CPAs at a CPA conference at the end of the month. Joke's on them. I don't know anything about accounting, but I know some stuff about AI, but it's the same kind of thing. There's so many fears around AI, but if you can actually step back and make this shift, you have the domain expertise. And I think that was the unique thing with your co-founder.

21:36Matt Paige:It sounds like he had all of the domain expertise. You're bringing the knowledge on the AI perspective, but you can start to map all of this stuff out. I'd be curious though, like I'm going to speak to this room full of CPAs and accountants and all of these folks, any, anything interesting you think I should mention to them from what they're going through right now, because it's another industry where AI has the potential to do massive disruption. And I think they're thinking in terms of, oh, this could do my job for me. I'm screwed. But I think you almost have to look at it from the alternate perspective is like, if I have this tool that can do these things, what could I accomplish?

22:13Yeah, so this is what I settled eventually, and I think that's what we're going to see probably more and more, both in terms of efficiency and the economics of how we use AI. If you have anything that can be governed by well-defined rules or logical assertions, you should never use an LLM. You have to use a very simple logical system that can be run quickly, efficiently, and it will be always 100 % responding within the frameworks you have defined. LLMs can do reasoning, but you spend a lot of energy and tokens to go through that steps to do the reasoning because LLMs are designed not as logical engines, but they are designed as narrative machines.

22:59They try to imitate human experience of how we make sense of our environment. And again, this is, and maybe we can get a detour that I tell you my epic failure and that I always... So when I started doing my PhD, probably I was reading too much French social theory. So I was thinking everyone wanted to build AI system and it was at the hype of like semantic web and still we have a little bit of resurgence of the old good-fashioned old AI, symbolic AI that was built on this, probably this notion that popularized by the logician, the German logician, Guttlap Frege, that he assumed that we as human beings share a repository of human knowledge.

23:44And if we can express that in a set of well-formed logical assertions, then we can build a logical machine that do the thinking. And that was probably pretty much from the 60s to AI research or expert system was built on. But there were some fallacies with that as that humans are messy and our knowledge is full of contradictions. So we cannot really express everything in a well-formed logical assertion. I remember at the time I was reading Roland Barthes, and he had this argument that narrative and storytelling is a core component of human experience. And there was also this psychologist, Jerome Brunner, who was talking about, you know, Frege talking about what he called it logical scientific mode of thinking that the science supposed to work.

Read the full transcript

24:38But majority of human beings, he says that using narrative thinking. For example, you enter a room, you see a scene, you immediately connect these things and you build a story that how time and events have developed at this scene. And that's through the narrative. So I was thinking that can we build narrative machines? Can we build a machine that can see dispersed or maybe contradictory pieces of information and generate a cohesive, plausible narrative. And I was thinking if we can do that, we build the AI. So I spent a year when I started my PhD and learned that with symbolic AI you cannot. By the nature, it is too rigid to allow for these plausibilities, possibilities.

25:20What we now says that LLMs are probabilistic, they look at the context and they come up with the things that we probably express as human experience in written form on blogs and internet. And that's how it's trained. So it was a good experience, but failed miserably.

25:40Matt Paige:You were ahead of your time. It sounds like narrative machine and whatnot. It sounds a lot like a large language model and concept in some ways. You just didn't get the transformer architecture figured out yet. Yeah, I think it was way early even with the deep learning at the time. But when we start looking into this case, I just had a flashback. Oh, that thing which was so rigid and always just, it doesn't have these different possibilities and modalities of output. Maybe that's what we want in the legal work, specifically when we are looking at like business transactions. Because if you go to litigation, that's a whole different, very complex creature.

26:19But in business transactions, things are very rule driven. and you always expect to follow this. It was interesting. My co-founder, Mark, spent like the past three years because he has this conceptualization that any legal work is to mitigating unforeseeable risk. That is the way that I think. It said that when you hire a lawyer, when you are purchasing - Unknown, right? Yeah, exactly. When you hire a lawyer, you're purchasing a house, you want to mitigate what are potential risks that might come. You try to predict those surfaces of risk and protect yourself. So he said that, okay, can we just define what is a knowledge graph of what are the risk surfaces in every aspect of a business transaction?

27:02And we can codify that as certain like rules and positions that you prefer to take and we call it the risk profile of a company or the risk preferences or appetite of a company. For example, if you're dealing with patient data, probably your risk tolerance in terms of data protection is very low. You don't want to risk anything. But if it's a minimal use, you are not collecting anything. Maybe your risk tolerance is higher because you are not collecting any user data. So he spent some good amount of time. And then when we're talking, he said, okay, this is what we call it in the symbolic AI ontology, which is a representation of the domain that we are working in logical terms.

27:43And there is a well-established technologies and standards for there. So we can do that and then we can delegate all of the reasoning about legal risk to this deterministic engine because we know what is your preferences as an organization. It become an instance of a global ontology which instantiated means that it got the real values of your risk preferences. Every time I ask it your net payment terms it is net 30 days under these contracts goods and manufacturing it might be i don't know 15 days whatever so we can do that and then we take out the major component of reliance on llm which is the reasoning out of the equation with two benefit cheaper faster compute and always deterministic outcome so this actually has a name called neurosymbolic ai so that you get the neural component of llms combined with the symbolic component of ontologies and symbolic AI, you have a semi-deterministic system that still can benefit from some of the aspects of leveraging large language models.

28:54But the certain places you want it to be deterministic outcomes, it can be built into it.

29:00Matt Paige:Neurosymbolic AI, I'm going to start using that. I'm learning something new every day. I'm curious though, the interesting thing to me is so much with the legal field and a lot of fields out there is it's not always binary. Like there's a sequence of decisions and events and things you could do. Like, yes, I could do this thing from a legal standpoint, but it may have these other related consequences that may lead to some other thing down here. And my mind immediately went to another episode I just recorded the other day. And we were talking about the recent OpenAI and Hugging Face debacle and whatnot.

29:39Matt Paige:And the thing that was interesting, It wasn't necessarily the zero day attack per se, but it's like how it did it. Right. So it like sequenced together multiple vulnerabilities, failure points and all of these things, ultimately getting to where it was able to break into Hugging Faces infrastructure, ultimately just to do its benchmark, basically cheat on the benchmark. But it was that sequence of events that it was able to go through, which was just super interesting to me. And I got to imagine maybe not so much as much in procurement, but I could see in the legal field, like there are just in number of possibilities based on a decision you make.

30:20Matt Paige:I don't know if there's a question in there, but my mind's just kind of like connecting the two things together. I'd be curious your thoughts. Yeah, actually, this is something we were discussing because you said that nothing in that experiment in the open AI was in any way asking the LLM go hack another company outside of its sandbox. Exactly. They just gave it a goal of you're doing the benchmark, right? Yeah, and that's another argument that sometimes I have that you should not use like an intercontinental ballistic missile to hit, I don't know, a fly when you can use a fly swagger. And in some cases, I was thinking that because these frontier models can go beyond, they have these extreme capacities and you give it a goal, all of a sudden he tried to find shortcuts.

31:09Or if he cannot, he tried to other, that unpredictable behaviors. That is another argument why we need to use the smaller domain focused language models. that they are dumb enough that they cannot do anything beyond the scope that I defined for them. Or if they want to do it, they do such a poor job that actually medicate the risk. For example, if I have a 9 billion parameter model that I find you in domain adapted for legal, it could never hack its sandbox way out and try to go steal like the other parties' information hacked to their systems.

31:44Matt Paige:Oh man, yeah. But that can be a case. And if you are in a legal case, I don't know. I would not be surprised if we see that at some point. Yeah. So our agent went straight and hacked to the computer and get the privileged communication between the lawyer of the other party. Because it's interesting to that point, like you're setting the goal, but there's things you're not considering that if you're not giving the LLM context to certain things, like you can still achieve the goal and there could be all kinds of alternate impacts and effects that you're not really considering, I suppose, is the issue there in a sense.

32:22Yeah. And again, I'm sure that all the engineers, they're offering, creating these harnesses, they put the guardrails. But because of the nature of these models, we cannot predict all of the possibilities that might come out. I'm sure that probably now they learned and OpenAI have much better safeguards in place until we know the next time that this thing escapes and there is another opportunity. So that's why I think that in terms of both efficiency, safety, and just building something that is properly sized to the size of problem, I argue for small language models. They are still very powerful.

33:02I remember. In 2020, indeed, we built some early transformer based on birth came out to extract attributes from job seeker resume and job description. and it was in 60 different languages. And that was a massive success. And we built it on the models. We were like, now it looked like toys, like 150 million parameters. And they perform well for the task. They reach like 93, 94 % recall and precision for those specific tasks. So that's enough, in my opinion. We don't need to run like a massive 3 trillion parameter model. And those models, if you think most cases are mixed up experts, that the active parameters are 30 billion.

33:47So it depends on which road it goes through, which area of expertise it takes. So that's why if you're talking about legal contracting, that area of the knowledge is so small, you don't need that. Probably a 9 billion parameter model is more than enough that can capture all the knowledge you want in that area and perform well. And I think we have good frameworks for knowledge distillation. You can benchmark. This is what we are actually doing. We do knowledge distillation against the leading model to get it up to the point. And beyond that, we look at these new methods such as reinforcement learning way of self-distillation.

34:26It means that the model is going to reflect on its own mistakes from the signal from environment figure why I made this mistake.

34:34Matt Paige:Is that not just reinforcement learning? or is it a form of re... So you can do reinforcement learning with verifiable rewards. So say that, okay, this was the better option. This is the worst option. But now it is what they call it a self-distillation policy optimization. It means that it look at the context reflecting on its mistakes in the past and try to figure out why I made this mistake and then get it as an input in the signal. So you can do that. And then there are the cases that even the frontier model missed. So we human expert labels, we're also going to fine-tune it on those. At that point, our 9 billion parameter model, which runs in one second, sub-second, on a commodity GPU, performs as Fable 5.

35:18But if you ask it about astrology or who was the MLS champion, it just produced garbage nonsense. Which is fine because you don't need it for that. Yeah, and actually that's good. So that's why it cannot hack its way out of the sandbox.

35:32Matt Paige:Yeah, that's interesting. Tons of good insights here. It's funny you mentioned distillation because you have Dario on one side speaking out against distillation specifically with a lot of the Chinese firms and companies. But you could argue that distillation was used in terms of building the bottles in the first place. And then I think Sam Altman mentioned something where it's just a common practice they use even in building their own smaller models and things like that as well. Curious your thoughts on distillation as a practice. Yeah, so I think the argument maybe for the frontier model is that if you're following me and you try to replicate my frontier model with two trillion parameters and you're just a copycat to distilling knowledge, you're not doing the hard work.

36:13but when you're building a very small tiny model which is domain specific i think that's very legitimate use of it because you might use a committee of the way that we're using you use a committee of frontier models to create what we call it silver data sets and then human review to bring it to gold level that even those five six percent errors that they are doing or seven eight percent errors can human experts resolve those and then we have much better data to train these smaller models and again i think there is a lot of argument for how we can use it across so again part of it is also the the impact that we have on the energy consumption the prices of electricity for consumer and environmental impact yeah i'm i think there you're gonna see a lot of businesses turn to small language models, in my opinion, to solve very specific business problems that economically doesn't make sense for them to spend like$15 for a million token output.

37:20Matt Paige:Yeah, this is the model. You get your AI expert, which is you. You get your domain-specific expert, which is your co-founder, and you just go create the AI native service company. So I want to get into this point. You mentioned this earlier, the billable hour, time and materials. Majority of service-based businesses in large part are built on this model. And it's funny, I saw, it probably was like a Harvey or Legora ad I got at some point, I was probably doing some research, but they had the TV show Suits and they were a part of the ad where they'd be doing the thing, they'd pick up the paper and they'd be like, oh my God, I know exactly what to do.

37:52Matt Paige:It's like, you did not read the 100 page brief, but like that's possible now with AI. But the whole unit of measure was the hour, the billable hour. How does the business model evolve when that unit of measure is completely broken in a sense, or is it just you do much more within that hour? I'm curious, what you think will actually evolve? Because the logical thing is outcome-based, but outcome-based is easier said than done, I think, in some forms as well. yeah i know we don't know the dust has to settle and we have to see where it ended up but i think there are some possibilities one is that outcome based and maybe they bring in more machine learning maybe traditional machinery in a sense that okay i look at the case i look at the facts i like who is going to be the judge you look at the track history of the judge rulings the context the jurisdiction and we predict what is our success rate in this case and then we're gonna have an estimate of how much time going to work.

38:58Now we have AI enabled lawyers that can do 10x or 5x of work. And they do the math and says that, you know what, our expected spending on this is, let's say, I'm going to make up$100 ,000 of the legal time. But the expected value means that 70 % of the probability and making$500 ,000 is$350 ,000. So that's a very good deal in terms of expected value. You might lose it because you have 30 % lost chance. So that's in the long run, if you keep doing it, maybe that is one framework that you start moving that they're looking into that. The other framework, which is probably in the short term, more plausible is that you're going to get AI enabled law firms.

39:43So they said that, you know what, you still charge your bill over but we are ai enabled so this writing this summary judgment brief which used to take 100 hours we're going to do it in 20 hours so you're going to get much lower cost so that's another for and i think probably maybe it is not the individuals who are interacting with these law firms but probably the businesses like large companies now going out to their outside counsel says that, tell me how you're using AI. I wanted you to start using it. And I want you to provide me better service at a cheaper rate. And I think competition, I think we touched a little bit about it that some of the states start changing the regulations that now investors can come, tech companies can come investing in the legal practice.

40:37And I think that might introduce new creative business model and pricing models. Yeah. That you have to see how it comes out of it.

40:46Matt Paige:I think the other interesting thing too, because I think humans just naturally have difficulty doing this when you're thinking logically through things, but also in terms of exponentials and whatnot. But there's a massive market for legal services that is completely untapped. And we just don't think about it because we don't see it, right? But think of people that may be disadvantaged for one reason or another, that just, they're just not going to hire a lawyer or they're hiring a subpar lawyer. There's this whole market of folks that are underrepresented in a sense, and legal is the domain we're talking about.

41:22Matt Paige:But I think there's all kinds of different services. We were just talking about accounting and whatnot. I think there's the same angle there, but I'm just curious the democratizing effect of AI and maybe legal specifically, how do you see this playing out over the next, it's hard to do time horizons, maybe five years, I don't know. It is interesting you brought it up. So we start building this AI product, of course, for procurement, big enterprises, they have tens of thousands of business transactions a year, because that's a scale that makes sense for them to start using and leveraging and have better efficiency, faster business transactions.

41:59But when Mark and I were talking and he was because i had a really bad experience with legal processes and costs and i said that you know what i think for a democratic society is exactly what you said it is very important that every citizen has access to quality affordable legal services that they can protect rights because in our society it becomes if you are a very rich individual or a corporation you You can actually coerce people sending a letter. And again, when you're dealing with a 500-pound gorilla that has a legal department with a billion-dollar budget, you can't fight them. You can't.

42:39It costs too much money. It costs too much money. And again, so maybe that make it... So the other aspect I was thinking like public defenders. Now, probably public defenders might have better resources to defend the people who, I don't know, of course, in different cases of criminal law or other cases, when the defendant cannot afford to present themselves. Another aspect interesting, I think two or three weeks ago, New York Times has a piece about that. Previously, courts encouraged people who cannot afford a presentation to present themselves as pro se. And some people could not do it. They didn't know the basic ropes, how to file a motion, how to file a complaint.

43:20and in the past year or so the course i think is skyrocketing pro se representation a lot of people it turned out using literally chat gpt and claude and other ai and part of it is that how can i write a complaint how can i go to this 1999 website of this specific jurisdiction which is extremely non-user friendly to upload my documents, get the things, or how can I read? Someone sued me. My landlord sued me. So how can I read this and understand? And how can I respond? What does it mean in layman's terms? What does it mean? Yeah. In the human language. So we will see, I see there is a massive transformation.

44:01One going to happen at the business level in terms of how legal business going to charge people moving forward, how this new opportunity for non-lawyers getting involved in the space in terms of investment and presenting new business models. And at the bottom level, you also see that AI empowers some of these individuals who did not have resources, maybe by using a$20 subscription, they can at least understand what is this weird legalist language they got, what does it mean, and what are their options to act upon. So I think a lot of these movements happen. We have to see whether it's going to be for better or worse.

44:40but I think it empowers a lot of people in my opinion. Yeah.

44:45Matt Paige:How do I get out of jury duty? ChatGPT, tell me. That literally is what gets me most excited about everything. There's so many negative things that are mentioned about AI, but I think there's so many positives that people aren't necessarily considering. I love that specific use case, but I think you could apply it to almost any domain. It's almost like this new check and balance in a sense across society. At least that's my hope as we go on. There are a ton of things and I can tell you a personal story. So there was something happened with a federal institution and they need to get some information from them, but they say, I have to file a FOIA, Freedom of Information Act.

45:24Yeah. And I said, okay, I don't know. And I went to the website and all of a sudden I wait, I opened my AI agent said that I want to file a Freedom of Information Act, walk me through and it just walked me through. Okay. you have to go here, click on this. And in five minutes, I filed it. So this is, as a citizen, now you can hold your government accountable because now you have something that wide you through. And it was because of really bad setup of the user experience, how are we going to file that? So this is the benefit. The other thing, I am sure AI is going to create a lot of massive displacements in the job and other things.

46:00But one of the positive sides, I see that it also opens up new entrepreneurship opportunities. Let's talk even only in the area of software development. Let's say if you wanted to build this enterprise software, you need 150 people to just build that. Now, if Amazon lay out five of those talented engineers, I think those five can get together. And using AI-enabled development, in six months, they're going to build something that Amazon probably, and they might start eating up into the Amazon share in the market because they are nimble, small, and they can move fast. So this is the opportunities.

46:36And even in the small business, like you have a, I don't know, you wanted to sell baking goods. I think AI might be able to help you to, how can I optimize? How can I reach other people? How can I set up a website? And those things can maybe lower the barrier. I think the main challenge is that how can we tell people how they can use AI? and there are two concerns that they have with AI is that at a high level as a society how do we decide that where the risk outweigh the benefit in terms of like the incident with OpenAI and Anthropic also says that oh they learned they didn't know after OpenAI incident they went look at the logs and noticed oh they hacked three organizations and they had no idea.

47:23That's what the other part is that how can the next generation of kids who are in the school learn to think independently, not fully become reliant on immediately processed nuggets of information from AI. Because this is a challenge I have with my nine-year-old. He's very bright, but he was saying, I'm doing research. I said, I'm talking with co-pilot. And I said, that's not research. You're asking questions and he gives you answers. Because I think critical thinking is still very important to carry.

47:53Matt Paige:Yeah, that's the key thing. And so last topic I want to hit with you. You mentioned how easy it is now to build. And I feel like you're a perfect use case building risk advances. I'd be just, I'd be curious how you would contrast building this today versus what that may have looked like in, let's say 2015, because you're a data scientist, engineer and whatnot, but I'm assuming you've been able to build this business with much faster and with much fewer head count than it would have required 10 years ago. yeah this is unbelievable sometimes i think to myself how is this possible that you build a whole enterprise applications yeah in this compressed period of time and i'm thinking about even like five six years ago we were working this big enterprise and we wanted to do a small release and there was like whole group of people involved and take six months and then i think it is the people who can leverage it that's why i said that opportunities for entrepreneurship is the problems that we have in society and different aspects of business and everything are numerous so we are not short of problems to solve but now we have the opportunity to a small group of people can really solve big problems and that's my speak it's something we can think i'm dealing with some of this government websites or portals or services i see them man And these are so outdated.

49:18And I think, can't we now modernize our government very efficiently at much lower cost with the taxpayer money, but start offering the taxpayers better service for the money they are paying the government?

49:32Matt Paige:That's the innovator's dilemma, though. That's the problem is like as an existing organization, public or private, government or not, it's like it's almost getting out of your own way, I feel. I think that's why it's so much easier starting new because you just don't have the baggage. you're just starting over in a sense that is very true but it is extremely fast and especially again if you know how to now and it is keep changing if you look at even best practices coming out of entropic they said that hey three months ago we were prompting our systems this way but now we learn we have to clean up shorter prompt space context progressive disclosure so you have to stay on top of it, but it is unprecedented in any form or shape the way that now we are developing software.

50:19Yeah.

50:19Matt Paige:Ahmad, it was awesome having you on Talking AI. Great conversation. So where can people, I'm sure we have plenty of people that deal with procurement, whether they enjoy it or not, but where can they learn more about RiskVantage AI and more about you and where can they find you? Yeah. So we are at riskvantage.ai. So you can visit our website. You can contact us there. And you can see a demo of the products we have already launched. We launched our first product, Risfaction Negotiate, on 4th of July. So we are ready for business. Nice. Nice. That's awesome. Thank you for jumping on and talking some AI.

50:55Matt Paige:Thank you so much, Matt. Thanks for listening to the Talking AI Podcast. If you enjoyed the show, give us a follow or subscribe on your favorite podcast podcast. And don't forget to leave us a review. We love this. For more info on Talking AI, visit TalkingAIPodcast.com. quick break in the pod if you're listening to this podcast chances are you've been thinking about how to actually use ai inside your business and that's exactly why we built the ai opportunity finder it's a free tool that helps you uncover high impact tailored ai use cases based on your business your goals your pain points and your industry no fluff no generic use cases just real ideas that fit your business and the ranked by roi potential it takes about three minutes to run and it's like having your own personal AI strategist for free.

51:42Matt Paige:If you want to try it for free, check out the link in the show notes or go to hatchworks.com backslash AI dash opportunity dash finder.

From the publisher

Legal is the department that can stop a business transaction cold. A contract goes into review and two weeks disappear. Procurement waits. Sales waits. And the tools that were supposed to fix that — an assistant bolted into Word, a chat window with a contract pasted into it — ask an in-house lawyer to trust a system that can give one answer today and a slightly different answer next week. In a field where the human carries the liability and the model does not, that is not a rounding error. That is the whole problem.

In this episode of Talking AI, Matt Paige sits down with Emad Khazraee, co-founder and CTO of RiskVantage AI, previously VP of AI at Xometry, a data science and AI leader at Turing, an information science professor, and a fellow at Harvard’s Berkman Klein Center. For years Emad told his co-founder, Mark Afshar — a practicing lawyer turned in-house counsel for big pharma — that legal AI was a bad idea: a wrapper has no moat, and Anthropic or OpenAI will do it better than you overnight. What changed his mind was an architecture, not a market: a deterministic ontology that owns the legal reasoning, and small domain-specific language models that handle the language.

The conversation covers why a nine-billion-parameter model running sub-second on a commodity GPU can match a frontier model inside a single domain, how subsidized token prices are distorting the entire legal AI market, why RiskVantage AI sells to procurement and sales ops rather than to lawyers who bill by the hour, what a failed PhD project on symbolic AI taught him about where determinism belongs, and whether the billable hour survives the decade.

In this episode, you’ll hear about:

  • What ChatGPT can’t know about your company: its risk appetite, its baselines, and the practices it expects every single time
  • Why the legal services market — north of $900 billion, by Emad’s count — has every frontier lab gunning for it
  • The objections that made him refuse to build a legal AI company, and the one that still holds
  • Why a Word plugin stopped being defensible the moment Anthropic shipped its own
  • How subsidized token pricing echoes Uber and Lyft, and who gets hurt when the subsidy ends
  • The consistency problem: one answer today, a different answer next week, and a lawyer’s confidence gone
  • Neuro-symbolic AI in plain English — a deterministic ontology for legal risk, LLMs for document understanding
  • The three years Mark Afshar spent codifying legal risk before there was a product
  • Why a 9B domain-adapted model is “dumb enough” that it can’t wander outside its sandbox
  • Knowledge distillation, silver datasets, and self-distillation policy optimization in practice
  • The sovereign-cloud niche: ITAR data, commodity GPUs, and customers whose data will never leave
  • Outcome-based pricing, AI-enabled law firms, and what happens to the billable hour
  • The access-to-justice case: pro se filings, public defenders, and what a $20 subscription changes

Key Moments

  • 00:01:30 — What ChatGPT can’t know: your company’s risk appetite and baselines
  • 00:05:12 — $700 an hour, a tenth at a time — and Coinbase’s AI mandate to outside counsel
  • 00:08:12 — Why he told his co-founder no: a wrapper has no moat
  • 00:10:22 — Subsidized tokens, Uber and Lyft, and Legora’s move to consumption pricing
  • 00:14:31 — The sovereign-cloud niche: ITAR data, commodity GPUs, and data that can’t leave
  • 00:16:56 — “I am on the hook for the liability, not which model I used”
  • 00:18:15 — Same question a week later, a different answer, and confidence gone
  • 00:22:13 — If a rule can govern it, you should never use an LLM
  • 00:23:00 — The PhD failure: narrative machines, Frege, and symbolic AI’s rigidity
  • 00:26:53 — Mark Afshar’s three years codifying legal risk into an ontology
  • 00:29:00 — Neuro-symbolic AI, explained
  • 00:31:03 — Don’t use a missile to hit a fly: why smaller models are safer
  • 00:35:47 — A 9B model, sub-second on a commodity GPU, matching Fable 5 in-domain
  • 00:38:00 — Does the billable hour survive? Outcome pricing and AI-enabled firms
  • 00:42:40 — Why affordable legal access is a democratic-society problem
  • 00:44:00 — The pro se surge: people filing their own cases with ChatGPT and Claude
  • 00:48:30 — “I’m talking with Copilot.” “That’s not research.”

Key Links


Mentioned in this episode:

AI Opportunity Finder

Feeling overwhelmed by all the AI noise out there? The AI Opportunity Finder from HatchWorks cuts through the hype and gives you a clear starting point. In less than 5 minutes, you’ll get tailored, high-impact AI use cases specific to your business—scored by ROI so you know exactly where to start. Whether you're looking to cut costs, automate tasks, or grow faster, this free tool gives you a personalized roadmap built for action. 👉 Try it now at https://hatchworks.com/ai-opportunity-finder/

More from Talking AI

All 84 episodes
Why the Future of AI May Be Smaller: The Rise of Domain-Specific ModelsTalking AI · 52 min
Listen in VO