Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

Deep Learning with PolyAI

Deep Learning with PolyAI artwork

043: Size Matters - The rise of small language models (SLMs)

Aug 9, 202420 minAudio
ShareXLinkedInFacebookWhatsAppEmail

Damien and Nikola discuss the evolution and significance of small language models (SLMs) amid the ever-growing landscape of their bigger bretheren, large language models (LLMs). They dissect the predicted rise of SLMs, their applications in privacy-focused and low-power devices, and the implications for enterprises balancing cost, efficiency, and modernization. They also explore the enduring relevance of SLMs, the pursuit of artificial general intelligence (AGI), and what the future holds for localized and on-premises machine learning solutions. Follow PolyAI on LinkedIn Watch this and other episodes of the Deep Learning pod on YouTube

Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

Transcript

From the show. Tap a time to play from there.

NikolaYou hear a lot of people, they talk about AI these days and it's oh, it's so new, it's all a bunch of hype. No, it's not. Most technology that you use in your daily life, the predictive keyboard on your phone uses an SLM, right? It does not use right. You can do four, right? So the fact that we're calling it an SLM is just funny because it shows you how how far LLMs have gone in terms of becoming like the default AI

DamienHello friends. And welcome to a another episode of the deep learning with poly AI podcast. I'm your host, Damien. I'm here with Nikola. Nikola. It's great to see you again. Good to see you. How's it going? Doing very well. Doing very well. I thought that we would take a few minutes today and discuss this. I want to say sudden, but it's almost a predicted about face in the race to the top, right? Bigger is better. Western culture. Give me the largest vehicle I could possibly on. Who cares if it's burning gas like mad, but it's this rise of small L.

DamienM. So we know that L. L. M. S. Means large language models. Small LMS are the de rigueur from back in the day, just simply because of ability to compute access to data. As a matter of fact, I could be wrong, but I think the original language model behind poly AI space product was considered a small LM. You can answer that in just a second, but taking a look at some of the the folks in the industry that are creating these models, Apple intelligence going to be rolling out any day now those models are going to have about 3 billion parameters and some of the recently released Microsoft five models, including five, three, only a little bit larger.

DamienNow, in contrast, Going back to the bigger is better, Lama 3 has about 400 billion parameters, opening SGPT 4 estimated to near 1. 8 trillion. And so it seems that the big makers, the big names in this industry are forking their approach. And I thought it would be good to take an episode to discuss why. But before that, was the original language model behind PolyEye's product, was it considered a small language model at the time?

NikolaIt wasn't really a language model, right? It was 700 megabytes. So it's still smaller than something like five, three. Of the same order of magnitude, right? Ish. That was a response selector, right? So it was there to really like figure out what the best way to continue conversation was a transformer based dual encoder, and we still use it for many applications. It's very fast. It's very good. It's trained with very good data. And that's really what the whole there's nothing new about small language models. The initial language models were a lot smaller than these. These are still monster models compared to, what an average person about 10 years ago would have encountered and now check what.

NikolaIn terms of the model being trained, right? The whole bet on, bigger is better. And the follow on effects will be like way better. It was a bit unexpected, right? And that was the bet. And that's like how history was made with GPT 3 and other models. The promise was always simple, right? And there's nothing new about the fact that better data with fewer parameters and targeted training is what how you get like a model that is like fit for purpose. And that's something in particular, right? The pursuit of AGI through supersizing these things and looking at the emergent properties.

NikolaLike that's a bit of a different discipline, right? Traditionally in deep learning, you would always pre train on a lot of data. And then you would specialize these models and probably also distill, make them smaller so that you can put them on small devices so that you can potentially, put them, a phone or like a fridge, microwave, whatever, right? At the very kind of internet of things, right? Where it would be able to run on. Like without internet, right? Locally that was always the appeal potentially on devices that don't use up a lot of energy at all. So I think people used to be a lot more excited about the internet of things and like the non cloud version of things where it's not connected to things online.

NikolaThere were also then like other implications around, if you don't have to send it online, it's more secure because, It can't be hacked. It can't be intercepted. From like privacy to safety was a bit easier. And then just like energy efficiency. Which I think will remain very pertinent. So when we looked, you'll remember the excitement around GPT 4 turbo from like GPT 4 and so on. And, I think like we'll continue to supersize to see how far we can go in terms of AGI and we'll continue to distill and use like the smallest amount of compute so that we can gain both like speed.

NikolaLatency and efficiency. So that's like the equation of it. There's really not much more than that, because it's really do you need, as we

Damienscale up. Yeah, it's a really good question. As you scale up, obviously, there's the, there's the conundrum of, okay, so one of the key factors in separating what we would define as an SLM and LLM is, can it sit on device, can it sit on prem, can you bring it off the internet, out of the cloud for safety, security reasons, whatever the cause, shorten latency, et cetera. Where, where does the line come in to separate a true SLM from an LLM now? And how's that, how's that you're overdosing, you're

Nikolaoverdosing on notation, right? This is a term invented like yesterday, as is an LLM really. It's a model fit for purpose, more compute and more data, as long as you have more data and are able to train to, Push compute past. It's like natural, abilities that's how you push this technology forward. And while we continue to see advancements in capabilities, we'll continue to do it as just who, who we are, or we had some like hardware limitation, but I don't think, I don't think we're there. I think this is the advance of LLM has inspired us to work on hardware a whole lot more and to work on better ways to scale that.

NikolaI think that's, exciting and will continue for the foreseeable future. I think the whole like act of distillation, how you do it better, that's it's like quality reps versus, many reps. I don't know if the bodybuilding analogy actually works, right? The performance of what he can lift, but It's really there's the quality of the algorithm, the model, like how you learn faster and better, and there's like doing more of it, right? Everything from a transformer versus not having one is probably just the difference of three to five years in compute, right? So if we had a cell that's better than a transformer, we might be able to, go move two years into the future with the current compute and amount of data, right?

NikolaAnd again it's really just advances in hardware. Do you have more data and what kind of data are you using to train? And do you have compute that can run through it all, before you're dead? So it would

Damienbe safe to say that the personalization of some hardware, like the wearable devices. Is actually causing more exploration, the SLM side of things.

NikolaI don't listen,

DamienLike the rabbits, the friend necklace that just came out, these are very small devices, very low power devices meant to last for a long period of time.

NikolaYeah. They're not low power compared to even an iPhone of what, like five, 10 years ago. Like they're, I guess that's true. Yeah. In comparison, right? Also like in terms of what's running on cloud versus not like that really matters, right? And the more you reduce the compute and the battery power of these things potentially, right? The personalization in that the new Apple chips and stuff will be made to run better with these things. And they have more space as well. I think we'll see like phone memory expand greatly over the next months. Few years, right? I think Apple said that only the latest pro models will run like Apple intelligence, right?

NikolaWhich kind of it's a great incentive for people to buy new phones, which is. Yeah, of course. Like your Apple. But also if it's

Damiennot a dongle, if it's not a dongle, it's AI, the stage.

NikolaYeah. Look, and you need more, right? And like we see, it's between the performance. So fair enough. But it's not to say that a better distilled model that can run on a phone that's two or three years older won't be there. Six to 12 months later, or at least maybe something that does 90 percent of what you want it to do. The rest can maybe be packaged up, uploaded. Uploads are difficult here and stuff. Cause it really depends on what we're doing with this, right? These models are huge, but the inputs if you're like sending a photo or something like that, it doesn't have to be. So it's really just like the latency aspect, right?

NikolaIf you're in real time video processing, like you're going to have to have a giant model running locally. If you want to, I don't know how the latest and greatest filter that can change your face in a particular way, rather than having an upload, adding that around trip time, making sure that works, that it's sent back to you to someone else. It depends. But there will be the multi,

Damienbut the multimodal, like the multi, the multimedia application, and this is something light years beyond what would be necessary for text. If we're talking about a pure text based model.

NikolaWe are, we're not right. If you look at five, three, I think that, there's like a big chunk of devaluation that is about like the visual aspect and so on. So I think this is reality as well as it is for everything else. And there, it potentially matters more because the nature of data that you're churning through is like pretty serious, right? If you take an iPhone and it's camera right now, that's sizable stuff, if you're in a, an area where like your internet is not amazing, you'll probably. Want to do some of those things like offline. So we'll see the applications are like boundless. And I think this is just what do you do like on cloud versus locally?

NikolaAnd I think a lot from, think of Apple and they're like, very seriously firm commitment to privacy, right? I think that to do a lot of what they've traditionally wanted to do and, apple did more work on differential privacy when very few people cared at all about any of that. They're very serious about that stuff. And I think that it's very good that they're pushing it because they're a major player.

DamienAt what time, at what point does The mighty capitalistic pursuit overcome that necessity and just, are they going to sit there and hang on to an Apple intelligence model that's small, not very scalable, probably a little bug here and less productive as other LLMs are starting to get larger and larger.

NikolaYes, I think that, having worked at Apple, I can tell you that I am in constant awe of that company. I think that people who spend decades working there are some of the best everything that they do. And if you're not like by nature a flashy person that needs a lot of attention and recognition for your work, I think at Apple you'll be compensated very well and you'll have a lot of fun doing what you do. So I think that company doesn't mess around. I think that they're very willing to design their product roadmap around these considerations. And I think that's why people trust them.

NikolaSo yeah, I don't think that, I think rather than, today's LLM is tomorrow's SLM, if you want to use this notation give it like two, three years and like something like GPT 3. 5 will have no trouble running on a personal device and there you go. Like it will be there. And I think people still, we'll find ways, we'll distill it. We'll like, I don't yet see a killer application of an LLM that absolutely has to run. On a phone for that phone to be an obviously better phone for someone Then you know the current iphone that could change in a heartbeat, right?

NikolaAnd that's probably a multi billion dollar company that comes up with that. I don't know. Have you seen those applications? I haven't

Damienno, but I mean but saying that is like telling a bunch of racers Hey, you can slow down like you're not getting any closer to the finish line When it just doesn't make sense when everyone else around them is, picking up the pace, to Olympic spin on it.

NikolaI don't think that Apple is their applications running on iPhones that use cloud data, right? And I guess the

Damienquestion would be like, the the ethos behind Apple's development and projects, but would you say the same for meta and profit, would you say the same for open AI now with the weird shift in mission? I'm just saying they went from being that sort of we're doing this as a, I forget what the classification of organization it was, but now they're definitely

Nikolanonprofit and yeah, no, I think things should be for profit if they want to be able to scale it. I think a big part of like when from academia to start poly AI, We need a flywheel and we need like a lot of capital to reinvest into making our products better. And they need to scale it, which like people care about it, not just because it's a cute dialogue system, but because it's something that is absolutely mission critical and doing the work of thousands of people. So I don't think there's anything weird about their shift. I think it's the only meaningful thing they could have done if they wanted to. Be a real company. And they are much navigated that really well.

NikolaI think when it comes to meta, that's oh, that's rough. I've heard all sorts of theories around why the, they're hell bent on publicly releasing all these models, even as far as that, the first release was accidental and that they couldn't roll it back and then, yeah. And Lacuna is a stubborn man who just wants to, continue pressing down this path I don't know. Who knows? I think water cooler chat. I, in general reading his like X and everything I've always found his views to be like very well informed according to, the standard orthodoxy of a deep learning fanatic.

NikolaI think that you can go further, right? You can go. Towards the more like open AI angle of just more data and all will be solved right previously, the suits cover view of the world. And, I think like a lot has to be said about. How right Ilya was about all those predictions and that, bigger is better. And that a lot of these things don't have to be modeled with structure. I think, the truth is we talked, I think last time about the deep fakes and all that. And frankly there's still a lot in terms of reasoning that, current LLMs, leave out there to be desired, right?

NikolaSo we're, we've not solved all that. And for that, do we need to, to ground the truth against more traditional, maybe slightly more symbolic representation of the world. I don't know. It's very unclear. I don't think so, but when we get stuck for a while. Are we getting sick? I don't know. Probably not

DamienOn the consumer front in general application. Let's move over to the enterprise space though. Would you say, obviously, there's a lot of compelling reasons as to why an enterprise would look at an S. L. M. versus L. L. M. 1 cost. To function is pretty much limited to certain gates. And so the, why would I go beyond that? But there's still a lot of hype at least from what I'm hearing and tell me if you're hearing something different, there's still a lot of hype from board members and CXOs and then user organizations saying, how do we bring generative, how do we bring those LLMs into our organization to cut costs, make money, et cetera, When does an enterprise look at an SLM versus an LLM for some operational efficiency or application?

NikolaI think the enterprise has no business looking at that one thing or the other it's the business of someone inside using technology to drive those efficiencies. Are they going, are they looking at? I think, they have a business of using modern AI. To make engines from their company so that they're better so that either they can, do a lot more with less, or they can do something that they've never been able to do before. I think many companies have done both. I think if you look at the hype and the second derivative of it, really kind of like going forward. You have to look at the Nvidia share price first and foremost.

NikolaNow you and I are prop traders, right? But, it's a 98 today was a 128. Now, of course, we don't know the backlogs of GPU orders, but that's really, the indicator for for that share price. And like how much of, that information the outside world can surmise before they have and announce their earnings. Like the hype I think the hype is on but like I don't think the hype is growing right now, right? I think that we're now in the business of seeing what companies can do themselves. I think that those that were gonna Make big bets on their own.

NikolaLike good luck to them, right? I've spoken to quite a few very large enterprises that have hired dozens, if not even like hundreds of people ordered a bunch of GPUs and you look at the effort they're mounting and you just can't help, but feel that like they don't really have what it takes, both in terms of personnel or even in terms of hardware or in terms of data. So I think that they jumped the gun on that, they helped Johnson drive the share price a bit higher, but will they really achieve anything meaningful or will they be like secondary sellers of their H one hundreds? We shall see, right?

NikolaI think we'll see, right? I think the general excitement is very much there, right? I think that increasingly we speak to more and more companies that are looking to get very meaningful impact to their like business operations by using modern AI, right? In our case, we mostly look at how we can help them in the contact center. I'll tell you that it goes all sorts of ways. And it very much follows like traditional software, where it's like highly regulated industries for the most part are very, very careful, right? There are people who even expressly say we would not make this generated.

NikolaLike full stop. And that's where yeah, we can use things that are like, I don't know, like small language models basically comes down to we'll use something that in some cases there's enough fear and trepidation about LLMs and like where the data goes that, they just categorically say we want models of the previous generation, which I don't think that will last forever, but that's down to educating the market around the risks, the other risks that these models have, right? Because with that greater compute come greater hallucinations and things that can be unintended. Effects of these models.

NikolaIt's not that grim, but I think for a lot of people, this is the first time that they're dealing with probabilistic systems altogether. So in that sense, I think that Microsoft's releasing smaller versions of these things, and, just potentially a lot of the open source versions of them, they can allow companies to fit these things in ways that makes it more manageable and,

Damienis it a false taste though? Because like you said so then what are some successful applications of SLMs in enterprise? That'll be like a slam dunk every time. No,

Nikolano, no. Listen, SLMs are not a new thing, right? Whoever is using any, like every successful application of machine learning out there so far, from quant trading funds all the way to, like speech recognition, pre. Two years ago and everything else is an application of a thing. That's a smaller model than the models you've seen recently. So everything we've traditionally done with machine learning is not necessarily an SLM but it is an application of a smaller model. So there's nothing new that you're waiting to see, right?

NikolaIt's a rebrand of the traditional non monster sized model. It's saying what's the use for cars that don't have a thousand horsepower. It's mostly what we've dealt with and how we build our traffic, right? The question by itself is, I think, a bit vacuous, right? But I think that it's good that, it reminds people that you don't really need a monster model and, a giant hardware machinery behind it to do absolutely anything when it comes to machine learning. You hear a lot of people, they talk about AI these days and it's oh, it's so new, it's all a bunch of hype. No, it's not. Most technology that you use in your daily life, the predictive keyboard on your phone uses an SLM, right?

NikolaIt does not use right. You can do four, right? So the fact that we're calling it an SLM is just funny because it shows you how how far LLMs have gone in terms of becoming like the default AI in everyone's mind.

DamienExactly. That's exactly it. It becomes the default examination of what modern AI is, is this massive, this massive. Data pool and the ability to apply probabilistic logic to it, to come up with right answers most of the time. But to your point, most of the existing applications of AI, like in, in single functions or unlimited functions is, is likely coming from what was resulted to an SLM. I just think it's funny because to me, I picture having this big muscle car as your LLM, and then spending just as much time and resource putting on things like dampeners to bring down the noise, to bring down the horsepower.

DamienTo make it street legal. And then you're like, why did I spend all this money and when I could have just bought a Prius? And then the question is, is are are more people still buying those muscle cars? I still look at that dashboard

Nikolaon a Prius. I love the dashboard on a Prius, right? it's it was very futuristic. It still looks futuristic to me big time.

DamienIt is. It's like, all I think that's about time for today. So I appreciate all your insights as always. This is some good stuff. In summary, basically, you're probably already dealing with SLMs. Most machine learning applications have are based on SLMs right now, but there is the pursuit to drive bigger is better. That being said, what we're looking at more localized devices. Privacy concerns, bringing things off at an on prem like it's, that's when folks are entertaining those smaller models a little bit more. So we are going to see a definite forked approach in the market with regards to building those bigger, bigger, bigger, but also looking at those highly focused and localized applications as well.

DamienNikola, it was great chatting with you and can't wait to see what we talk about next week.

NikolaAbsolutely. See you later.

DamienAll right, man. Take care.

Open the transcript file

Hosts and Guests

Nobody is credited on this episode yet.

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. What if your contact center became a product team?

    Nov 17, 202635 minAudio

    Three years ago, Simplyhealth's PolyAI deployment was only resolving simple FAQs over the phone. Today, they run voice, in-app, email, chat, and WhatsApp conversations on the platform. Nikola Mrkšić talks with Paul...

    Credit the people on this episode

  2. What happens if your AI agents get 1% better every day?

    Sep 10, 202639 minAudio

    An agent that gets better every day compounds into a very different agent within months. That's the idea behind Wren, PolyAI's new release: an agent whose job is to make your other agents better. Some of what it finds...

    Credit the people on this episode

  3. Who's coordinating your army of AI agents?

    Sep 3, 202644 minAudio

    Companies are pouring money into AI, but not everyone is getting the returns. Ian Jacobs, VP and Lead Analyst at Opus Research, thinks he knows why. In this episode, your host Nikola Mrkšić sits down with Ian to work...

    Credit the people on this episode

  4. Why should CX leaders care about MCP?

    Aug 20, 202636 minAudio

    When PolyAI built its Builder MCP, one client helped shape it: Vixxo Facility Solutions, one of the largest facilities providers in the US. In this episode, guest host Damian Sasso talks with Vixxo's CTO Derek Neighbors...

    Credit the people on this episode

  5. Can AI really hear a call the way a person does?

    Aug 6, 202622 minAudio

    PolyAI just launched Dialog-RSN-1, its first audio-native model, and your host Nikola Mrkšić sat down with its builder, Matt Henderson, to unpack why it’s a game-changer for building voice agents. Most voice AI either...

    Credit the people on this episode