Your Voice Agent Doesn't Need a Frontier Model - Joel Allou & Ornella Bahidika, Microsoft https://www.youtube.com/watch?v=fnLBmfsI_Fg AI Engineer · 5 min · 59 sentences · sentence-level transcript from YouTube's caption track; each line begins at the time shown [00:00] Hi, I'm Ornella, and that's Joel, and we built Ace, a live AI voice tutor. [00:06] It run on a small model on purpose, and I want to tell you more why that's not a compromise. [00:14] Quick gut check. [00:19] That silence on a voice call, that the difference between a tutor and a broken up. [00:25] When a voice agent pause for even a second, your brain says it's dead. [00:31] So, when the answer fit a leader of every instant stay, which for the smallest, biggest model. [00:38] In voice, that instant is actually a backward. [00:43] Because our budget was never IQ, it's millisecond. [00:49] The AI model need to start talking in about 950 milliseconds. [00:54] A frontier model that think for a full second has already lost the room, no matter how good the answer is. [01:04] So, we made the model small and took the hardest part jobs away from it. [01:10] It doesn't decide when happen what's happen in the lesson. [01:14] It had It doesn't track what the student knows. [01:17] It doesn't explain what's next. [01:19] We have a system in place to do that, and they hand the model a summary every turn. [01:26] What's left for the model is one thing it's really good at, talking. [01:30] And that's the theory. [01:32] Joel, go on and show them what it actually feel like. [01:35] Yeah, if maybe I can add some color to what Ornella was mentioning. [01:40] So, if you think about the models of today, especially the frontier model, let's take Claude 4.7, which is uh from Anthropic. [01:49] The model is really good at reasoning. [01:51] You can give it a problem, in this case a lesson, and it can reason through it, it can reason through what the student asking and it can come up with the answer. [02:00] But that is actually precisely the problem. [02:04] Because the reasoning can take couple of seconds and those seconds are really valuable when you are building voice applications. [02:12] So what we are doing is saying, "Hey, let's extract all of the thinking away from the model so that the model focuses on only what matters, which is speaking in our case." [02:25] So all of the thinking is extracted into a state machine. [02:29] So for Ace, we have thought about all the scenarios that are needed for a lesson. [02:34] We have built a state machine that is able to coordinate each step to the next and we also added intelligent layer on top to derive some of the mastery [02:45] that a student might need for the lesson to be complete. [02:49] So everything when it comes to what happens next, when it comes to what needs to be displayed, when it comes to how to actually answer a question, it's all done outside of the model. [03:01] And we simply feed that output to the model to speak out. [03:07] And so let's go ahead and look at an example and see how that works in real time. [03:12] So the first video here is without the implementation we've done. [03:17] So it's a simple Opus 4.7. We ask a very simple question and as you can see the model is thinking, it's reasoning and it takes couple of seconds to return the answer back to the user. [03:28] Hey, what In this video, we've added all everything we just talked about on Haiku 4.5, which is a much smaller model. [03:36] Same question, but now you see that the answer comes in about 900 milliseconds. [03:41] And so that's the beauty of building around the model. [03:45] So by removing all of the thinking, all of the logic, all of the reasoning from the model and actually putting it within the code, we actually saves a lot of time and allows us to use smaller models which are cost effective [04:00] and actually better at real-time voice applications. [04:04] And as you can see, this feels almost instant and again that's because all of the smart parts have already happened prior to the model actually speaking. [04:15] But I have to be honest because this isn't necessarily free. [04:20] It has a cost, right? [04:21] A small model like the Haiku 4.5, if it doesn't have any scaffolding, tend to drift on long structure and really needs strict rules in order to be able to stay organized. [04:35] So the scaffolding piece is the price. [04:38] But the good thing is you pay it once and in code, right? [04:41] Not on every single turn. [04:43] So here's a rule. [04:45] Pick the fastest model that your latency budget allows and then spend the rest of your time actually building the scaffolding. [04:54] So [04:54] [snorts] [04:54] in our case, right? [04:56] Maybe you build a state machine, you build a reasoning process, you think about scenarios, what happens if this happens, how should your model handle it? [05:04] Everything that comes with the logic, everything that comes with the harnessing, you do that outside of the model and then allowing the model to focus on that one thing that is really good at. [05:16] And so that's true for voice applications like A is, that's true for real-time applications where latency is of priority and that's really true for anything that is high volume, [05:28] right? [05:28] In those cases, the model is the smallest part of the system. [05:33] So this is Joel and Ornella and we are building A is again and if you have any questions, let us know. [05:41] Thank you. [05:42] Thank you.