Latest / Agentic Conversations (formally mlops.community) / On-Device AI Agents in Production: Privacy, Performance, and Scale // Varun Khare & Neeraj Poddar // #340
Transcript
- 0:00Nobody's going to want to talk to their phone, interact with
- 0:05their apps if they aren't 100% confident that that interaction
- 0:12isn't staying on device. Yes.
- 0:20Guys, we wanted to talk about on device AI and machine learning.
- 0:26It's been a hot topic and it reminds me of the Internet of
- 0:30Things because every time I talk to somebody about on device AI
- 0:34and machine learning, they give me the same thing that I hear
- 0:38from the IoT folks where it's like, yeah, this year is the
- 0:44year it's happening. It's going to happen, I promise
- 0:48you. Do you feel like you've been on
- 0:51the precipice for the past 10 years now?
- 0:56Like in start, so, so definitely like last six years we have been
- 1:01thinking, OK, next year is the time when the stock actually
- 1:07gets ready and we take it into production.
- 1:09But the funny stuff is by the time the stock gets ready, AI
- 1:13changes, right. So we used to have traditional
- 1:16ML models and you know, the season trees and all of those
- 1:19kind of stuff and then charge everybody came and everything is
- 1:23Transformers today. Yeah, I think it's a cat and
- 1:28mouse game in some sense. You build the stack, newer
- 1:32models come, you add that option to those and then finally make
- 1:35it possible with at least the genuine models.
- 1:39I do think we are close, yeah. I'll just say sometimes the
- 1:44selling is way too hard than reality.
- 1:46Demetrius and with IoT, that's what happened.
- 1:49You know, IoT has worked wonders for industrial and you know it
- 1:54has been doing on for the last decade plus.
- 1:56But then all the household and the home automation was way
- 1:59overtook or so right. Nobody really wants a
- 2:02refrigerator in the microwave to be that smart to you.
- 2:04So I think that's what happened with on device also, when there
- 2:08was no need, there was a lot of selling just because some of the
- 2:11stuff was working. I think now with AI, things are
- 2:15going to get merged and they're meeting in the right spot.
- 2:18There is a need. AI can't be where everyone
- 2:22becomes meta and creates A5 GW data center.
- 2:27And at the same time, AI cannot be where it is a repeat of your
- 2:32search and social era mistakes where privacy is sacrificed.
- 2:36So that's where I think on Device AI does have its unique
- 2:39space and hopefully it is going to be the beginning of the many
- 2:44years of on device AI and it will be more real.
- 2:47Yeah, I should say probably it's it might be a little bit
- 2:53presumptuous or precarious. I'm not sure the exact vocab
- 2:57term I'm looking for here of me to say that we don't have on
- 3:02device AI right now because I know that there are tons of
- 3:06models that are power powering lots of the experiences that I
- 3:11have on my phone. And I've seen as like a meme
- 3:16folks starting up their dishwasher machine and it says
- 3:20powering up the AII. Think my friend Nick shared that
- 3:24and he was saying like what the hell do I need AI in my
- 3:28dishwasher for? Exactly.
- 3:31Exactly right, It's the same thing right.
- 3:33We oversell and every industry when the CI wave they want to
- 3:36get some marketing. So might as well introduce AI in
- 3:39your dishwasher, in your microwave, in your car key.
- 3:43But but you're right, I mean so so I mean Varun has been working
- 3:47with on device for now close to how many years on I'll let him
- 3:50answer what he has seen the evolution.
- 3:52In the ETS, I think, yeah. And to that point, right, so all
- 3:58of this IoT ecosystem, the platforms from all the major
- 4:03players came out in open source trying to automate stuff, make
- 4:10things get going in the factory sides, you know, places like oil
- 4:16drilling spaces where it's very hard to get Internet.
- 4:21But the entire consumer space, the devices that we have
- 4:26ourselves, right? The smartphones, the
- 4:28smartwatches, hopefully our glasses that are coming soon,
- 4:34that set of devices has still not gotten a platform to even
- 4:39find some of the very basic machine learning models, right?
- 4:43And I think the primary challenge over there is the
- 4:46diversity of devices that you keep on seeing, right?
- 4:49So you have iPhones and Galaxies with state-of-the-art chips,
- 4:53trillions and trillions of transistors inside it.
- 4:56And then you have a nine year old Android smartphone with less
- 4:59than two gigabytes of RAM. But the user is equally using
- 5:03both of those devices, right? Different people, right?
- 5:07So how when you want to unlock on device, you have to build all
- 5:12the stack from the ground up while handling this diversity of
- 5:17devices and then unlock the experiences that we are talking
- 5:22about. So while the future looks good,
- 5:24the challenges are in terms of building all the different
- 5:27layers of the stack that are needed.
- 5:31So early days then, like in 2018-2019 for me, I was
- 5:37converting operations between Pytouch and Tensorflow because
- 5:41those used to be the major machine learning platforms.
- 5:44And we had to run Tensorflow JS for web and by touch or touch
- 5:52strip for mobile. So to deploy a model, we had to
- 5:56compile it into two different formats from the same source.
- 5:59And the only way we could figure out as a 20,000 member community
- 6:03was to write a map between each operator from pipers to 10s of
- 6:07luck, right? So it's that it was that
- 6:10primitive. But fortunately, all of those
- 6:12complications have been resolved.
- 6:14The major run times have come up for devices that can run equally
- 6:18well on different sets of devices, whether it's AI glasses
- 6:22or it's a smartphones. That simplifies the stack and
- 6:28then you need the next layer of interface which is actually
- 6:32interacting with your application.
- 6:34So we thought, let's just build it out, make it possible for
- 6:38developers and take it from there.
- 6:41Maybe now is a good point where we can dive into some of these
- 6:45unique challenges. You kind of give us this quick
- 6:48overview of what the evolution has been with on device and the
- 6:53how the stack changed a bit. But today, where do you feel
- 6:59like we're still hitting places that could be optimized or
- 7:05they're still inherently difficult just because the
- 7:08problem is a tricky 1? So the way so there are two
- 7:13parts of the puzzle. One is the text tag Dimitrios.
- 7:16Another is from the benefits and the impact side, right.
- 7:19So I'll reverse this. I'll talk about the benefits and
- 7:22the impact side first. So I believe with AI, you know,
- 7:26a lot has changed in our daily way of interfacing with
- 7:31technology. We're not Googling as much.
- 7:33We are going to ChatGPT and whatever your favorite tool is.
- 7:37But when you come to mobile and look at the apps, I can pretty
- 7:40much say the apps are still quite dumb, right?
- 7:43Like that has been my punchline for the last one year.
- 7:45Like why are my apps still dumb? Nothing has really changed.
- 7:49My recommendations are pretty much the way it used to be.
- 7:52I still can't do NLP searches on half the things, including some
- 7:56of the most advanced apps where if I say if I like, if I'm a
- 8:01visual thinker and a person who remembers things visually and
- 8:05you remember a dance scene and you search about it, nothing in
- 8:08the app world can give you oh, this is the movie you're
- 8:10thinking, right? So there's a lot of gaps where
- 8:14AI has not really penetrated the app landscape the way we want.
- 8:22And the impact of that is the apps are pretty much the
- 8:28advanced use cases and all are used by people who are
- 8:31technology capable. But there is a whole myriad of
- 8:33people, whether it's my dad who doesn't interface with
- 8:36technology well, and my kid who is 3 1/2 year old, but he wants
- 8:40to use the technology, but I'm concerned about his privacy,
- 8:43right. So that's the impact side.
- 8:45I would say from the tech side, I think our challenges are
- 8:49interestingly even more complex compared to the machine learning
- 8:54world. So now with AI, the models are
- 8:57no longer few kilobytes or few MVS.
- 9:00Now we are dealing with gigabytes of models and how do
- 9:04we make sure we run them efficiently on devices which are
- 9:08inherently resource constrained. And we want to make sure that
- 9:12they run like Warren was saying on the whole diversity of
- 9:16devices. We can't be the apples of the
- 9:19world and say only iOS 18 and the next generation will support
- 9:23things, right? We have a whole variety of users
- 9:26who already are using their devices, so we need to get the
- 9:29experience for them also optimized, right.
- 9:31So that's a pretty big challenge.
- 9:34And another technical challenge I will add is the developer
- 9:38ecosystem where how Kotlin developer or Swift developer who
- 9:46is used to creating, you know, Android apps or you know, iOS
- 9:51apps, how do they bring AI into their apps?
- 9:54Where is that ecosystem? Are they going to write complex
- 9:59agentic workflows in Copland? Have you written any?
- 10:02It's not easy. And the other part of this is
- 10:08typically the machine learning code is written by machine
- 10:10learning teams, The AI teams, they write in Python.
- 10:13How many of them love writing Cortland?
- 10:15Almost 0. So how do we bridge this gap,
- 10:18right? So those are two aspects I would
- 10:21say both from the impact side and the technology side where if
- 10:24you have something more to add. Yeah, I think what I can share
- 10:30is what is possible on the device front today, Demetrius.
- 10:40And you know, the kinds of technical challenges that are
- 10:43there to run some of these models, get the agentic
- 10:47workflows out. So one piece is at least
- 10:51supporting these 1 billion, two billion parameter models that
- 10:54Neeraj was sharing. They should be able to talk to
- 10:57you. They should have voice
- 10:59understanding inside them, maybe multilingual capabilities, OCR,
- 11:05text understanding, vision and visual understanding.
- 11:09They might not be great at solving PhD level research
- 11:13problem statements, but I don't need to do that on my
- 11:16smartphone. So for that cloud is still
- 11:20there, all the charge and the trillion parameter models, they
- 11:23can do that, but it's about the personalization.
- 11:26To your point, a model that is more tuned to me has the memory
- 11:31more associated with the kinds of interactions that I've been
- 11:34doing and utilizes them to work with all the different agents or
- 11:41tools or even the cloud based models to get the final response
- 11:46that you want at the end of the day, right.
- 11:49And for that you need do need some interesting technical
- 11:55capabilities to be solved. It's one of the things for
- 11:58instance we open sourced recently was Fast Transformers,
- 12:04which helps you run these models 2 times faster but reduce your
- 12:10memory consumption by over 30%. Now what that means is you can
- 12:15run a big model that is bigger than the available RAM on your
- 12:18device. In general, your storage and
- 12:21hard disk is much larger than the RAM on the device, right?
- 12:24And you don't need all of these billions of parameter parameters
- 12:29at the same time, right? So if I'm thinking about food
- 12:33and recipes and cookbooks, I don't need a model that is
- 12:38explored in history to at least answer the questions in my
- 12:41current session, right? So that's what sparsity leverage
- 12:44is. It turns off those levels in the
- 12:47models that are not supposed to be active for answering the
- 12:51current context, which helps you save memory, but at the same
- 12:55time increase the inferences speeds because now you're
- 12:59computing a lot lesser. So these kinds of optimizations
- 13:03are there on the software stack and it's a open-ended research
- 13:08problem statement where some of our community members are also
- 13:12contributing to actually make these kinds of technology
- 13:15possible. And then there is the layers
- 13:18above it, basically the technical challenges that needs
- 13:23to be solved in this space, you know, and there are research
- 13:27coming up possible directions that so we should be able to
- 13:33unlock bigger and bigger models on these smaller and smaller
- 13:37devices. So it's almost like we have the
- 13:43difficulty in the tech of running large models on device
- 13:48which is there. But then if I'm also hearing you
- 13:50both correctly, there is a difficulty on in unlocking what
- 13:56use cases we really want to use these models for?
- 14:02Is it in each application we're going to just have LLM
- 14:07capabilities so we can talk to it?
- 14:09Is it that we want an LLM that is in Overlord and it's watching
- 14:15our phone and doing things and then it can have agent calls
- 14:18when we talk to it? And so it seems like since it is
- 14:23so new, that hasn't shaken out. At the same time, we're still
- 14:28trying to figure out like what's the best way to power these on
- 14:31device. And so there's these parallels
- 14:35that are probably, it's almost like the chicken and the egg
- 14:37problem where we say if we can get these models running super
- 14:43efficiently on device, the use cases will open themselves up.
- 14:48Or if we know one specific use case, then we can optimize it
- 14:54for running on the device. And I wanted to mention one
- 14:59thing around this memory piece, which I find fascinating.
- 15:02And and I wanted to just dive in how you're doing that because I
- 15:06had heard that one path forward was just hot swapping out
- 15:11Laura's in the moment of doing it it or did you take that
- 15:17approach or is it a whole different route?
- 15:20Actually it's a mix of some of these approaches that you
- 15:24mentioned to to us. So 1 is when we think of multi
- 15:29agent systems running on these mobile phones, right?
- 15:32One is more like a Marcus marketplace and an orchestrator
- 15:38agent, which is working for you across the context of multiple
- 15:42applications, right? Which is kind of looking as a
- 15:47supervisor of all the different agents.
- 15:49And each of the mobile applications have agents inside
- 15:53them. And both of these agents are
- 15:55interacting with each other, communicating whatever they want
- 15:59to do. Let's say if you ask the
- 16:00assistant to order, order food for you, it can go to your food
- 16:04delivery app. And then the agent inside that
- 16:06will figure out the right preferences based on what you
- 16:09have bought in the past suggested back to the
- 16:12orchestrator agent and then show it to the user.
- 16:15And so all of these, there are these multiple agents that would
- 16:20be running, but interestingly, the LLMS that would be powering
- 16:24all of these agents, they'll be similar same behind it, right?
- 16:27Because you have to fit off 3 billion, four billion parameter
- 16:31model on a device. You cannot have multiple LLMS in
- 16:33those cases. So in those places we do need
- 16:39Lora adapters in some of the cases where you we want to
- 16:42personalize the responses of the model to add some additional
- 16:46information or generalization about the domain that that
- 16:49particular agent needs to work upon.
- 16:52But another aspect is more of the general model capabilities
- 16:57itself, right? So you don't have to build an
- 17:01explicitly train load adapters. Every model has this inherent
- 17:07clustering of weights in some sense and you can dynamically
- 17:11choose. There are these mixture of
- 17:13export models that are coming up right where there are 10 or 20
- 17:17exports and each export is only maybe let's say 200 million
- 17:21parameters in a trillion parameter model case.
- 17:24But you choose one export and only that goes into your memory
- 17:27and everything else is out. In Flash, you use the same
- 17:33approach just to increase the number of exports from 10 and 20
- 17:37that we see today to something like about 100 million experts.
- 17:44These are all smaller experts. I was going to say like a
- 17:48hundred 100 million experts. Oh my God.
- 17:52When you're talking about a billion parameter or 2 billion
- 17:55parameter model, and then you have to cluster those into
- 17:58topics, the topic clustering itself becomes a 200 million
- 18:03parameter model in that case. But it does give you the
- 18:09advantage of turning off your memory, turning off unnecessary
- 18:12compute that you were running. Yeah.
- 18:15I would just add here, Dmitrios, that the question that you were
- 18:19hinting at is very interesting. Where, how will this shape out?
- 18:23Like like we can't imagine every app has its own LLM, but we
- 18:28can't imagine every app have its own set of agents.
- 18:32We think that the future is going to be like, if you think
- 18:37about multiple steps it will take, I think multiple apps will
- 18:40come up, which will be AI native.
- 18:42First. They will have agents running,
- 18:44they'll deliver experiences to the users which are driven
- 18:47through LLM, some private on device and some with the cloud.
- 18:51And then eventually, you know, you do want the interface of the
- 18:57phones and maybe not even the phones.
- 18:59Maybe there's a future, a different device to through a
- 19:02different kind of an assistant. The assistant is your primary
- 19:05interface which decides which app to dispatch a particular
- 19:10action. So in that case, that assistant
- 19:13is not like the Overlord AI, but it is an AI layer that has the
- 19:17Super intelligence, it has the memory across apps and it can
- 19:21kind of lease out its capabilities to the agents
- 19:25running inside the apps. So this kind of fundamentally
- 19:30changes the way the apps have been working in the phones.
- 19:33And I believe like the apps, the way they work in the phones are
- 19:36the same way the apps have worked on the laptops and our
- 19:38desktops, then nothing has changed, right?
- 19:41You go to a particular app, you finish your work.
- 19:42If you have two apps, you decide, oh, I'll go in one, then
- 19:45I go in another and then do your work.
- 19:47And then, you know, Steve Jobs very nicely added the Sheen of
- 19:50that screen, which was great. So now we can use our fingers to
- 19:55interact with it. But still, if your dad wants to
- 20:00book a cab and he's used to making a call, now he hates your
- 20:06phone because he has to go through Uber and Uber changes
- 20:08its screen with the new promotion.
- 20:09And then he's lost whatever. He just wants to do the same
- 20:12thing he was doing in his 90s, which is like, hey, in the
- 20:15night, be like, let me just call.
- 20:16And in the technology I need can use Uber, you can use Dyft or
- 20:20whatever it is. So I believe that.
- 20:22I really hope that happens, you know?
- 20:25That that we create this interface which becomes the
- 20:28personal interface depending on how capable you are and the AI
- 20:31adapts underneath to your needs. Yeah, there are a few points on
- 20:35that that I have been pondering quite a bit.
- 20:39And the first one is, if all of the apps are going to be OK with
- 20:45succeeding this power to the overlord agent type of thing,
- 20:53because then they lose out on you going to their application.
- 20:57They're just almost like a secondary LLM call or a tool
- 21:02call. And I know it kind of is likened
- 21:07to the way that agent to agent framework wanted to make it
- 21:12work. And so there is movement, there
- 21:17is energy going in that direction.
- 21:19It just feels like if I'm Amazon, I've now lost the
- 21:24platform. I'm just a tool call.
- 21:27I'm not the platform that you go on and you search around and you
- 21:31end up buying a bunch more stuff because my recommender system is
- 21:34so good. And I find that really difficult
- 21:39to see Amazon just giving up. Yeah, so Dimitrios with the
- 21:44Internet has happened, right? Think about it.
- 21:46I used to own a website where I used to put recipes.
- 21:50I used to stuff the recipes at the bottom and in the beginning
- 21:53I used to have all the story and the nonsense about how.
- 21:55It ends. And eventually, when it became
- 21:59popular, I used to monetize it. How do you monetize it now with
- 22:02ChatGPT, right? How do you monetize it with
- 22:06perplexity? So I think the resistance here
- 22:09is just that the reward has to be high enough that there might
- 22:15be a net new bead of apps coming which will displays a lot of the
- 22:20existing apps or the existing apps will evolve in this
- 22:23ecosystem. I think the bigger problem I
- 22:26believe might be from the OS Windows, honestly, how will they
- 22:31react to it? What kind of control are they
- 22:33willing to give in this new AI native experience?
- 22:37And because it's very hard for the AI for the apps to trust the
- 22:43OS with all the personal data also on how will they monetize
- 22:48it because many of. Them and even, Yeah, you don't
- 22:52really expect it not to be done by the OS, but everything we've
- 22:58seen from Apple so far shows no inclination of being able to
- 23:04pull something like that off. Yeah.
- 23:07And there's a bigger piece of trust and privacy there, which I
- 23:11believe a lot has to play with. Whoever wins this will be
- 23:15Vaughn. Because it started being an
- 23:17open, it has to be open sourced. The primary objective of this
- 23:22platform and the assistant cannot be that you're directly
- 23:25monetizing it. You're enabling this ecosystem
- 23:28and people are trusting it because they know it's open.
- 23:31Just like, you know, how Google displays a lot of the things
- 23:35with the Android ecosystem and the Chrome ecosystem, the open
- 23:38nature of things was a lot to do with it's, you know, popular
- 23:43popularity in the beginning. So I think open source the
- 23:46benefits and then I fundamentally hope that there's
- 23:50a net new beat of apps coming which are going to displace a
- 23:54lot of the existing apps. Well, diving into the apps and
- 23:59as you mentioned, like AI first apps that come up, which I think
- 24:04for all of us is still a little bit intangible to think what
- 24:08that looks like. And we, it's hard to imagine
- 24:11rethinking Jira AI first. It's like, OK, is that linear?
- 24:15I I guess maybe we'll. Yeah, I know.
- 24:19Yeah. But besides that, you mentioned
- 24:24it before and we got to call it out, every single app is not
- 24:28going to have a model because I can have three apps on my device
- 24:34before I fill up all of my storage or all of my
- 24:37capabilities, unless the hardware capabilities just
- 24:41explode or like you guys are saying, the model capabilities
- 24:46are able to distill down and you're able to really take
- 24:50advantage of these models. So I think now it's probably a
- 24:54good moment to just talk about what some of these constraints
- 24:57are. If you are building an app that
- 25:00is AI native and you are expecting it to go on the phone,
- 25:05it's going to be LLM or AI First.
- 25:10But you can't just have a reasoning model there, can you?
- 25:14You can offload some stuff to the cloud when you need to, but
- 25:19is A1B type of model going to give a good enough experience
- 25:24for an AI First app? Yeah.
- 25:29So I can take a Java dip here as you please add.
- 25:33So Dimitrios, I think it depends for instance how the what AI is
- 25:39actually controlling within the application, right.
- 25:43So there are different layers just like you mentioned, but for
- 25:46instance, you just at one level want multimodal, multimodal
- 25:52interactions with the application, right?
- 25:54You should be able to talk to it, but at the same time
- 25:57interact with all the UI and the widgets.
- 25:59Now there is a smaller model that is just transcribing what
- 26:02you're seeing into an LLM, generating the response,
- 26:07understanding what you said right, and respond back to your
- 26:11invoice. Now there is a full loop of
- 26:14multiple LLMS or AI models running on devices to get a full
- 26:21duplex conversation going with you, right?
- 26:25And in terms of the experience that gets unlocked.
- 26:31So there was this example that came from Tinder actually.
- 26:36So the standard left swipe and right swipe matching your
- 26:40approach. This swapped it out with a
- 26:43gamified version, and in that game the AI was more like the
- 26:49orchestrator of the game, asking the users to engage more with
- 26:54each other to actually solve the puzzle of the game.
- 26:58And that was a way for them to, you know, get more engagement
- 27:03going amongst the people. They understand each other
- 27:06better and take things from there.
- 27:08Now this is just strapping on where the decision making is
- 27:12happening. And in this case that AI model
- 27:15doesn't need to be a very complicated model, right?
- 27:18It could be a simple model just understanding OK, what the guy
- 27:23is saying, what person B is saying and how they are
- 27:26matching, what kind of puzzle should I throw for them to
- 27:30solve. Think a very simple, simple,
- 27:31simple task, but you get a bit more different experience.
- 27:37Banda Snatch, I think it's Netflix on Black Mirror.
- 27:40Banda Snatch, they tried with this, right?
- 27:42They had multiple storylines, you interact with it and the
- 27:45story changes. Now, I assume all of these kinds
- 27:48of interactions are also getting mobilized by the AI agents who
- 27:54are working within different context, working over your
- 27:56memory and your preference to do this.
- 27:59I'll just add, I think we are what we see today based on our
- 28:03experience and working with the apps.
- 28:06Around 1 billion parameter models are pretty good at
- 28:09summarization Right now at 1 billion parameter models, we
- 28:15don't see reliable tool calling and agentic workflows.
- 28:18You end up using around 1.5 to 1.71 point 9 billion parameter
- 28:23models where it is not hallucinating to pick up tools
- 28:27and then incorporate the response of the tools in
- 28:30orchestrate more tools. And then the sweet spot is
- 28:33probably around 2 to 2.5 to 3 billion parameters where
- 28:37hopefully we'll get multimodal models like Warren was saying,
- 28:40which will be full voice and maybe even some of the OCR
- 28:46capabilities which are all big into the model.
- 28:49So you don't have to worry about creating a pipeline with an ASR
- 28:5411 or TTS yourself. So we do think, I think in the
- 28:58next 6 to one year, six months to a year, we will see some of
- 29:01these models coming like Quinn had already released very
- 29:03powerful models in Quinn 3, which are pretty good in doing
- 29:09all sorts of tool calling agentic workflows we see
- 29:12already. So the next step will be how can
- 29:14we pack multi modality, especially voice in voice out
- 29:18duplex probably in a 2.5 billion range.
- 29:23I like this vision because as we were mentioning, some of the
- 29:28hiccups here are that we don't have use cases clearly defined.
- 29:33And one that you mentioned that could be a potential future is
- 29:41when we're able to talk to our app just as much as we're
- 29:45touching the screen and the app is doing things and then we can
- 29:50use the touch screen when we want, but we can also talk to it
- 29:54and it understands it. So far, every time that I've
- 29:58interacted with Siri, the assistant, it's fallen flat on
- 30:03its face. So I'm very skeptical that
- 30:05that's actually going to be a reality.
- 30:08And I I almost feel like Siri was better before and somehow it
- 30:13got worse. It did it did it.
- 30:17Did. So I think there.
- 30:18Are two parts here. Dimitrios 1 is sometimes when I
- 30:23come and I want to interact with my phone, my intent is very
- 30:26clear. This is what I want to do.
- 30:28So in that case, I would like my phone to act like a real
- 30:32assistant so that they're smart, they're capable, they can fill
- 30:37in the dots based on what my personal history is a pre memory
- 30:41is so none. If I say I have to fly to US
- 30:45tomorrow, it should already know what kind of airlines are like,
- 30:49what times I pick. I have to book my Ubers, I do my
- 30:53hotels, this is my work. I want my breakfast done, all of
- 30:56the nonsense. I don't need to deal with this.
- 30:58So that's what I meant. And intent is clear.
- 31:01And with the user preferences and users understanding, a lot
- 31:06of this can be done across apps by an assistant if you have the
- 31:09right stitching done. The second part is I don't know
- 31:14what I want to do. So that is where we are doing
- 31:17exploration and sometimes doom scrolling, right?
- 31:19Like Netflix is one of them where we are continuously do
- 31:22scrolling nowadays, right? We don't know what we want
- 31:26honestly. That UI and UX designing and
- 31:29thinking is the next, I think frontier for us.
- 31:33How do we enable AI LED exploration where we can
- 31:39seamlessly transition from like an assistant to an actual app
- 31:44and give them the space and then come back to it?
- 31:47Because as you are exploring, the user will be forming that
- 31:51intent and once that intent is formed then you can finish the
- 31:54action. We have to enable exploration
- 31:57through AI and that interface doesn't exist today.
- 32:01I do want to have the ability when I'm scrolling through
- 32:07Netflix to say like, I'm looking for a Western, but like a modern
- 32:11Western. I like this show and that show,
- 32:15and then I'm still scrolling and it's populating it with things
- 32:19that I have. But I understand the vision too,
- 32:22that you're saying nobody's going to want to talk to their
- 32:28phone, interact with their apps, if they aren't 100% confident
- 32:33that that interaction isn't staying on device?
- 32:38Yes, because we already, we're already like convinced that our
- 32:43devices are listening to us all the time.
- 32:46Now, when we actually start interacting with it like that,
- 32:50it's going to be really weird when we're thinking like, OK,
- 32:54everything that I'm saying here, how does it know when I'm
- 32:56talking to it about my recommendations or when I'm
- 33:00talking to my wife about whatever logistical things in
- 33:03the house? Yeah.
- 33:05I think one of the interesting pieces on the application side
- 33:12is also how do you make these apps work, especially in these
- 33:18kinds of explorative use cases. Coming back to the point, you
- 33:22mentioned to matures earlier, right?
- 33:24Why would apps want to do this? So in this kind of an interface,
- 33:29it's a merged experience across the application and the agency
- 33:33open up your assistant, but it then actually fires up the
- 33:36application which evolves your intent, helps you explore, work
- 33:41towards the directions, all for which it will require data which
- 33:46is proprietary at least for that application.
- 33:49So that agent has to run within the context of the application.
- 33:53It cannot be that orchestrator agent in that case.
- 33:56And that's where both of these intra app and inter app
- 34:02communication needs to be orchestrated together.
- 34:05Yeah. And and like so I think for me
- 34:11inherently like an OS vendor doing it will have its own
- 34:15problems because first of all, we have two giant OS vendors and
- 34:19trying to find commonality in AI or workflows between them is
- 34:23going to be next to impossible. And then which app is going to
- 34:27give them access to their internal data is going to be
- 34:32another. Problem.
- 34:35So this has to be something outside and like I was
- 34:39mentioning, you know, before we still have to think about this
- 34:43swapping of context that is going to happen both within the
- 34:46LLM and then within this apps like from an assistant
- 34:49seamlessly going to an app. Even the app should be more
- 34:54adaptive, right? So one of the things that we did
- 34:57as part of deploying earlier machine learning models,
- 35:00Dimitrios is hooking each and every interaction of the user.
- 35:04As the user is navigating through the app, the the
- 35:07impressions and the clicks are getting captured on the device
- 35:11and it gets captured. Oops, sorry, my light is
- 35:14flickering and it gets captured on the device right as the
- 35:18events are flowing. And in Python, you can do
- 35:21feature engineering on it to understand what the user is
- 35:24trying to do and run machine learning and AI models to
- 35:27provide that level of personalization and
- 35:29recommendations. Right.
- 35:31All of this also is nearly impossible to do it on the cloud
- 35:34because the amount of firehose it takes to get this click
- 35:38stream event, stream data into the cloud, then run it and then
- 35:41bring the output back at scale of 50 million, 100 million users
- 35:45is just impossible. Doesn't work.
- 35:47Doesn't work. Doesn't work.
- 35:49Yeah, it's scaling, it's speed that I'm not sitting there for a
- 35:53little bit and thinking I wonder what would be a good movie.
- 35:57And it's populating for ages. I do, I do find the level that
- 36:04we play at again, I, I'm keep coming back to it where what
- 36:10would be really nice is that I'm not locked into Netflix when I'm
- 36:15looking for a movie. And I have my Netflix and my
- 36:19Apple subscription and my, all my different movie catalog
- 36:24subscriptions that the agent could go pull from when I say I
- 36:27want something funny, However, like Netflix is never going to
- 36:33want that because then I'm not locked in to Netflix.
- 36:37And, and so I, I think that you raised two really good points
- 36:41that Netflix isn't going to want Apple or Google to be getting
- 36:46all their data and having all of that information.
- 36:49And Apple and Google also, we inherently aren't necessarily
- 36:55going to want them to be having all that information.
- 36:57So it feels like there's this utopian world that we could be
- 37:01living in that would be amazing, and we're trying to push towards
- 37:06it. But potentially the hardest
- 37:10challenge here is going to be user adoption, or everybody
- 37:15getting along and playing nicely together so that the users can
- 37:19have that utopian experience. Absolutely.
- 37:22I mean, at the end of the day, right now we I've been
- 37:25sacrificing on the user experience and user privacy
- 37:28primarily to make sure that the apps have that hold over us,
- 37:32which I understand all of them are running a business, but they
- 37:36are also inherently making sure that their computers are not
- 37:40enabled, which is the main driver.
- 37:42I think if we eliminate that piece where if it can be a layer
- 37:46which is open source driven, which is built by the community
- 37:50and the information stays on device, nobody's taking that
- 37:54information out, right? So the the level of
- 37:59personalization and details that Netflix has to give will only be
- 38:03given to the assistant and assistance context to make the
- 38:07recommendations. And depending on the level of
- 38:10corporation and the level of details they provide, assistant
- 38:14might be incentivized to invoke Netflix rather than Hulu, right?
- 38:18So they can be very interesting rewarding behaviour here also on
- 38:24how you build this new app ecosystem.
- 38:28In fact, we can start even thinking about how do we reward
- 38:32the users for the data, because some of them might want to give
- 38:37it for personalization to the apps.
- 38:41And now you give the control to the user.
- 38:43Some of them might be, I don't care, give everything away,
- 38:46fine. But for people who care, they
- 38:48can even monetize that piece so we can build a whole new way of
- 38:53not just interacting with the technology, but also making this
- 38:57whole experience so much personal and accessible that I'm
- 39:03not. For me, it's very exciting just
- 39:04because I feel like, you know, when, when I grew up, for me,
- 39:08mobile was the new thing. Like when we saw mobile, it was
- 39:12like, Oh my God, the things have changed.
- 39:13And then the social era came even more, but then it has just
- 39:16stagnated for the last 6-7 years.
- 39:18We just keep, we are cranking out the same thing in your, you
- 39:22know, like a lipstick on a pig thing.
- 39:25Going on. Yeah.
- 39:28I just wanted to add 1 interesting thing on what
- 39:31happened did recently and how inefficient it was.
- 39:35You know, so just to get this context on what an application
- 39:39is doing or the user is doing on that application, Apple built
- 39:44models where they were screenshotting your app and then
- 39:48doing the OCR over it to understand the context.
- 39:53Now, because this happens as an OS, because you are seeing every
- 39:57application as a binary, right? So it's running within its own
- 40:01container. So the only way for you to take
- 40:03some information out of that app is to screenshot the app, right?
- 40:08But on the other hand, if it's an open source community working
- 40:11with the applications and the application developers as the
- 40:14first first focus, they can build integrations directly
- 40:21inside the application. Which means that you don't,
- 40:24first of all need a computer vision model or multimodal
- 40:28capability, right? In that case, the app is
- 40:31filtering out the data, doing the right things, and giving you
- 40:34that compressed information that even a smaller model can handle.
- 40:37Yeah, I mean, think about what we're doing on the browser
- 40:40automation on the desktops. We have to literally take
- 40:44screenshots, figure out the pixels and then automate them.
- 40:48And now, you know, publicity rightly is waking up and saying
- 40:53this can't be the way. And that's where they came out
- 40:56with Comet. So I think similar ecosystem has
- 40:58to emerge in the mobile landscape.
- 41:02Demetrios and the primary interactive engine is not going
- 41:07to be a browser because nobody's going to the browser on the
- 41:10phone. So it can be a new AI assistant
- 41:13which can unlock this. So we'll see.
- 41:15You're right, there are lots of challenges here, which is
- 41:17exciting. It almost feels like you would
- 41:19need a new OS. That's where the world is
- 41:27heading, you know, and every often new technology comes
- 41:32because of which we'll have to rethink things.
- 41:34I think cloud native does this for a lot of things.
- 41:37I think for AI it's not far fetched that for the tools that
- 41:43you have been using that are the most important tools, you'll
- 41:46need them in AI native ways where a native browser, a native
- 41:49OS an an AI native marketplace. Interestingly, on that front,
- 41:58what Neeraj was mentioning, right, So Andre Karpati recently
- 42:01was talking about software 2.0, software 3.0 and how this thing,
- 42:08I think that will happen for OS as well.
- 42:11If not a separate OS, at least AI layer of OS should definitely
- 42:15come up right? And that would be the
- 42:18three-point O version there. Rather than writing Kotlin or
- 42:21C++ code, you are prompt engineering the entire thing
- 42:25out. Yeah.
- 42:27It doesn't feel that far fetched.
- 42:29I think one question I've got for you guys who are deep in
- 42:32this space is these different constraints on device.
- 42:36And I know that we've talked to Qualcomm folks back in the day
- 42:41and they mentioned how when you are playing at these on device
- 42:47levels, you need to be picking up not only the size and just
- 42:53how much storage you've got and how much memory you've got, all
- 42:57of that like the engine capacity, but also you can do
- 43:05operations that drain the battery really quickly.
- 43:09And so you want to be looking at all the different vectors and
- 43:15maybe you've seen not only with the phones, but with other IoT
- 43:20devices we could say that have had AI enabled in them.
- 43:26I'm thinking about like factories primarily.
- 43:29How have you tried to play around with maximizing the
- 43:36models on every vector? Right.
- 43:39So I can share some early thoughts on this.
- 43:43SO at least on the IoT world, I think one biggest difference
- 43:50between designing stack for IoT and Android slash iOS, the
- 43:54consumer world is the Control Center flips, right?
- 43:59In IoT, there's a central entity, the hub, which is
- 44:03orchestrating all of these sensors which are continuously
- 44:05generating some data, right? In this case, the user who's
- 44:10sitting with the device is the one who's actual source of data,
- 44:14right? So your API designs, the control
- 44:17centers, they flip when you move from IoT to the consumer world.
- 44:22And secondly, some of these optimizations that you
- 44:30mentioned, those are the hardest pieces in managing the
- 44:33diversity, right? Some people will have strong
- 44:36Internet connectivity, but as soon as they sit in the car and
- 44:39start moving, their Internet connectivity starts breaking
- 44:42down, right? It's much easier to do battery
- 44:47intensive tasks when the phone is on the charge at night rather
- 44:52than doing it while it's being heavily used for that server
- 44:56video call, right? So that is what a platform that
- 45:01is specifically catered for consumer use cases can handle as
- 45:05compared to an IoT platform. And we do all of this management
- 45:11for the applications, so they don't have to worry about.
- 45:14We directly look into whether this model needs to run on CPU
- 45:17or an NPU or a GPU and what's getting bottlenecked and
- 45:22throttled right now. One of the interesting things,
- 45:25for instance, we saw it's more expensive for the battery to
- 45:29make a API call to the cloud than to run a 300 KB or a 500 KB
- 45:36decision tree model on device well.
- 45:39Isn't that interesting, huh? Just another reason to optimize
- 45:45on device. Exactly.
- 45:47And you cannot come across these challenges unless or these
- 45:51optimizations unless you actually go in production and
- 45:55deploy these systems out to understand these terms.