Latest / Agentic Conversations (formally mlops.community) / From Robotics to Recommender Systems // Miguel Fierro // #240
Transcript
- 0:00I'm Miguel Scherer. I'm a Principal Data Scientist
- 0:05Manager at Microsoft and I like black coffee.
- 0:11Welcome back to the ML OPS Community Podcast.
- 0:13I am your host Dimitrios. And today, talking with Miguel,
- 0:17we actually had a bit of a moment after I stopped recording
- 0:23and he told me that he changed the direction of his career
- 0:28because of the value that he saw in recommender systems.
- 0:32And this comes hot off of the tail of an episode that we
- 0:36recorded a few weeks back with Sanket on the Spotify
- 0:40recommender system. But he read a report from Amazon
- 0:45and I think this is the Amazon shop, not AWS, and it mentioned
- 0:50how recommender systems were 35% of revenue generated.
- 0:57So basically just add a bead to that 35 and it was like $35
- 1:03billion that recommender systems generated for Amazon.
- 1:09And when he saw that he was in the computer vision and robotics
- 1:13field and he said I got a pivot. This is too big and there is too
- 1:18much value that is happening with Recommender Systems for me
- 1:23to leave it alone. That was just one of the gyms
- 1:27that he dropped in this conversation.
- 1:30So the last piece on that Recommender Systems example that
- 1:33he said that I am going to continue to replay in my head is
- 1:38how at Amazon just tally up the amount of data scientists that
- 1:43work at the company and think about the ROI that they drove
- 1:51$35 billion worth of revenue generated from these.
- 1:57Let's say maximum, there's 10,000 data scientists at
- 2:01Amazon, which I doubt there are, but you do the math.
- 2:07I don't do public. I don't even do back of the
- 2:10napkin man. So in the spirit of recommender
- 2:15systems, I thought let's do something new and let's do
- 2:18something fun for this intro. And I've been listening to all
- 2:22kinds of fun music, and I wanted to go into the conversation with
- 2:30a music recommendation from my side that hopefully we'll infuse
- 2:36some new musical recommendations wherever you listen to music.
- 2:42So this song's called The Look, and it's from Metronome.
- 2:47It's so good, I'll let y'all rock into the conversation with
- 2:53him now. Here we go.
- 4:32That song is the look from Metronome.
- 4:36What a jam. As always, if you enjoy this
- 4:41episode, just share it with one friend and let's get into the
- 4:45conversation with Miguel. Let's dive into robotics.
- 4:54And I think for me, one thing that I constantly think about
- 4:58when it comes to robotics like deep learning use cases or just
- 5:03robotic computer vision systems in general, is how much of these
- 5:09use cases are similar to quote unquote traditional mill and how
- 5:15much are different? What are some things that you
- 5:17can take from the deep learning or computer vision use cases,
- 5:24the robotics use cases, autonomous systems use cases,
- 5:27all that, and they also work with traditional machine
- 5:31learning. And what are some things that
- 5:32are totally different? And you're like, Nope, you
- 5:35cannot. That has nothing to do with the
- 5:38traditional ML. That that's a very interesting
- 5:40question. And I can start by saying that a
- 5:43lot of robotics will say that in many use cases you don't even
- 5:50need machine learning. So not even talking about deep
- 5:53learning. So, um, if you think about the
- 5:59So Boston Dynamics is arguably the best robotics company,
- 6:05right? And they be running for several
- 6:09decades and until very recently, they don't even have risen
- 6:13learning like everything they had was an physics from the 18th
- 6:21century. So it's LaGrange Newton is a
- 6:25very, very deep understanding of the equation of motion because
- 6:30that's all it is. So is the physics that people
- 6:34will study in first year of engineering school or or math or
- 6:39physics school? But I'm really, really deep
- 6:42understanding of that. And they use a technique called
- 6:47model predictive control that basically is a very simple
- 6:51technique that allows you to in real time, you compute the and
- 6:58movement dynamics of the robot and, and, and it's all the time
- 7:04kind of doing a prediction and then getting information of the
- 7:10posture from the sensors and stabilising the system.
- 7:15And that is done in, in, you know, in C++ like really you
- 7:17need, you need to code all that in, in a very low level
- 7:22programme. And that's what they've been
- 7:26doing for decades, actually. And then of course, if you start
- 7:34thinking about computer vision or, you know, not only the force
- 7:39and the control and the stability, which is actually one
- 7:43of the biggest problems in robotics, maybe the most
- 7:46important problem in robotics, the, the stability, the postural
- 7:50control. Actually, my, my thesis was
- 7:52precisely on, on that, on, on postural control, right.
- 7:55And so if you, if you start thinking about the computer
- 8:00vision, that's a completely different thing to the point
- 8:05that in many research research centres and you know, typically
- 8:12where, where people do a busy you, you, you typically go to
- 8:17university right now. I think nowadays you can even
- 8:20might do be able to do some business in companies, but you
- 8:24know, traditionally is universities.
- 8:27So interestingly, most labs, they decouple these problems.
- 8:34So you have a lab where you have a humanoid robot or you have a
- 8:40what is called a, a mobile manipulator, which is which is a
- 8:45robot that maybe have has hands, but they have a platform with
- 8:49wheels that moves. So they don't have the problem
- 8:51of of legs, the stability. They might use the same
- 8:55platform, but if they use computer vision, it's a
- 8:59completely different thing. And maybe the thesis or the
- 9:04research line is, is more about AI, more about machine learning,
- 9:08deep learning and that kind of things.
- 9:11But for example, and I so I did my PC between university in
- 9:16Spain called Kafeero and Kings College in, in London an and in
- 9:22both cases the, the teams were specialised, you know, like why
- 9:28what people do typically is they, they kind of decouple the
- 9:30problem. So that's why, for example,
- 9:32that's the reason, that's the main reason why you, you
- 9:35probably hear that Boston Dynamics, they, they kind of
- 9:38started machine learning very recently because the, the big
- 9:43problem that they had to solve is the stability problem.
- 9:46And you know, they solved it amazingly.
- 9:49And just to finish this point and something very interesting
- 9:54that is happening is these kind of there are two school of
- 9:59thoughts in robotics, particularly in humans, which is
- 10:03kind of what I, I spent a lot of time researching, which is the
- 10:08the type of actuators. You can have electric electrical
- 10:11actuators, but you can have hydraulic hydraulic actuators.
- 10:16And until I think two months ago or something like Atlas and all
- 10:24the robots, they they had hydraulic actuators, right?
- 10:28Like I think the dog also had some some electrical bat.
- 10:34You know, there is these these kind of, you know, difference
- 10:38right there. And it all has to do with the
- 10:41torque and the, and the ability to control, right.
- 10:45Like the benefit of hydraulic actuators is that they can
- 10:51produce a higher torque. So if you if, if you are in the
- 10:56situation of of and stability, what you're not stable like
- 11:00everybody have seen all these people kicking the robots,
- 11:05right? Like so a hydraulic actuator is
- 11:11very useful in that case, right? Because you have, you need to be
- 11:16able to stabilise and very quickly.
- 11:20And and that stabilisation, actually it, it creates a lot of
- 11:24forces and a lot of inertial forces that you need to
- 11:28compensate. And doing the same thing with an
- 11:32electrical actuator is much more difficult.
- 11:37And if you, if you've seen, if you seen the actually you know,
- 11:42if you've seen the, the, some of the demos of both of the, the
- 11:45new robot, the newcomer robot of Boston Analytics, I was, I was
- 11:49impressed that they don't use electrical, they don't use
- 11:52hydraulic actuators. They use electric actuators.
- 11:56But you haven't with these new robot.
- 11:59They are not doing the backflips, they are not doing
- 12:02all that stuff. Somehow I wonder and I'm curious
- 12:06to see if they will be able to do to have the same stability
- 12:12skill with with the with these these electric actuators that,
- 12:17you know, they are cheaper. They you know, it's, it's kind
- 12:20of easier to fit these to power these actuators.
- 12:26So, yeah, you know, it's, it's a very, very interesting, you
- 12:29know, difference. So if I'm understanding this
- 12:34correctly, you go with the electric ones because they're
- 12:36cheaper because they're easier to implement, but they don't
- 12:39have that torque? Yeah, exactly.
- 12:41It's not that easy to. It's not that easy to do
- 12:44particularly, particularly when you have a very, a very strong
- 12:52movement right like that is that is where the electrical actuator
- 12:57is, is, is more difficult, it's much more difficult to control.
- 13:02And so this is also fascinating because you're mentioning Boston
- 13:07Dynamics just started throwing some machine learning into what
- 13:11they're doing. It is that almost repetitive
- 13:15mantra that we hear on this podcast quite a bit, where if
- 13:18you don't need machine learning, there's no need to try and use
- 13:22it because yeah, you're going to make your life a lot easier if
- 13:25you can do it without it. So it's almost like putting
- 13:29machine learning on your robot is just about as useful as
- 13:34programming in string theory physics.
- 13:36To the robot, it's like, no, we just need this 1800s Newtonian
- 13:41type physics that's going to help us with force and help us
- 13:45with movement. Yeah, and very.
- 13:48You know I can give you an example, right?
- 13:50Like if you, if you ask if, if you ask the traditional, like
- 13:56old school robotics, like they control engineering roboticists,
- 14:00they will say that they don't, you know, they don't need to use
- 14:03that. And for example, I remember, I
- 14:05remember when I was doing my PhD, I so my, I was researching
- 14:12in in postural control. So I had a humanoid robot and,
- 14:15and I needed to do posture different posters.
- 14:19And one of the things I tried was to use a neural network to
- 14:24compute a movement and to do what is called the inverse and
- 14:28direct direct kinematics, which is basically how do you move the
- 14:33actuators to produce a specific trajectory in the hand or in the
- 14:38leg, right. And, and what happened to me,
- 14:42you know, I started looking into that and it I realised that it
- 14:46makes no sense because we know the analytical equations to
- 14:52solve that problem. So we know the exact equations
- 14:56and we can do the control group. So I'm I'm machine learning
- 15:01solution for that problem. It will be just an
- 15:03approximation. He he's like, you already have
- 15:08the formula, right? Like machine learning.
- 15:10What it does is just he's kind of doing an approximation of the
- 15:13formula, but you do have the formula.
- 15:15Why are you going to need that? But The thing is obviously, you
- 15:23know, like understanding the physics and, and, and you know,
- 15:26like formulation for something as complex as human robot is
- 15:31challenging. I find it very challenging.
- 15:34And, and, and I know, you know, it's challenging for everybody
- 15:37because very few people actually solve, solve that problem.
- 15:43And so that's why a lot of people don't use machine
- 15:46learning. And even to the point that
- 15:48instability and control for robotics, there are like two
- 15:53kind of models. What is what is called the the
- 15:57compressed mass model, say something called 0 moment point.
- 16:02That basically what it means is that you create a model of the
- 16:06robot that is like an inverted pendulum.
- 16:09Like imagine you you have, you assume that all the mass of the
- 16:12robot is in the centre of gravity and then when the robot
- 16:16moves you use control algorithms to actually make the stability.
- 16:23And the other approach is that distributed mode that actually
- 16:28is you. You take all the different
- 16:31joints and all the different masses of the robot and you
- 16:34model that in equations. So you have many different
- 16:41questions, as many as as the masses and joints you want to
- 16:44put into the robot. And then you solve the equation
- 16:48of motion that actually there are two formulations.
- 16:51You have the formulation of Newton, which is the famous 4
- 16:54sequels, mass, time acceleration, the famous formula
- 16:57of neutral. There's another formulation of
- 16:59LaGrange which based on energy, like potential energy and
- 17:02kinetic energy. So basically you have these two
- 17:06formulations, but at the end it's something that is solved in
- 17:09the 18th century or something like that.
- 17:12But it's it's really so complex that a lot of people use this
- 17:16compress way of modelling the robot, which is made easier to
- 17:21model in math, but is is less accurate.
- 17:27Hit reminds me of basically like a mono repo versus micro
- 17:30services, yeah. Exciting is the Mona Reaper.
- 17:34Yeah, the famous. Moreover, Google.
- 17:36Yeah, totally. So excellent.
- 17:39I really appreciate you breaking that down because I had no idea.
- 17:43And I do know that there are a lot of robotics companies out
- 17:46there that aren't using ML, but then there are quite a few that
- 17:50are incorporating a lot of different ML and computer vision
- 17:55use cases into their mix. And so it's interesting to see
- 17:59like how complex things are. Like you were saying, yeah, we
- 18:05could use some ML and this use case, but if we already know it
- 18:11and we can use it, we can map it out properly with a heuristic,
- 18:15then let's just do that because otherwise the mill is going to
- 18:18be an approximation and it may or may not get it right.
- 18:22So that that's cool to think about and a nice little thought
- 18:26experiment on whether or not it's it's totally used or
- 18:29needed. I do know that you also messed
- 18:32around when you were doing your little robotic stuff with
- 18:37computer vision football use case.
- 18:39Can you tell me more about that? Yeah, so I'm a football fan, you
- 18:45know, in in the States, you you people call it soccer, like in
- 18:48Europe with college football. And and that was that was that
- 18:53was another case for it wasn't during my my case.
- 18:57It was, it was later, it was when I had in Microsoft and
- 19:01there is this big trend of a sport analytics and, and I
- 19:08think, you know, sports are going to professionalise in the
- 19:12sense of being more data-driven. So basically the the idea was to
- 19:19track the different movements of the different teams and the ball
- 19:25to, to basically get some analytics.
- 19:29And I think, you know, at Microsoft there has been some
- 19:32very interesting work around that area.
- 19:35We partner with some football clubs in Europe.
- 19:40I know Google also they they've partner.
- 19:43There's a paper by Deep Mind actually with Liverpool.
- 19:50They're in in the UK. They are doing this kind of
- 19:53analytics and you know, even even Real Madrid, I know they
- 19:58have, they have like a a CTO that is super into, into these
- 20:03analytics. And, and that includes a lot, a
- 20:06lot of computer vision, like, like object detection, object
- 20:10tracking, umm, and you know, I think a lot of these, a lot of
- 20:16these sports, not only football, but you know, tennis or
- 20:20basketball or many other, many other footballs, they are going
- 20:24to start kind of professionalising more.
- 20:27And, you know, maybe you will see in the next 10 or 20 years
- 20:33that they, they'll have a, like these professional clubs.
- 20:36They, they, they have a lot of funding.
- 20:39They will have their own data science team and then they will
- 20:43get analytics and you know, like decides will be shared with the
- 20:47with the coaches and specialists in the team for improving that
- 20:54the performance on the team. And also another thing that I
- 20:58think is very trendy is data science or machine learning for
- 21:02the health monitoring of the athletes.
- 21:08Again, you know, like this, typically these people, they
- 21:10have the, the, you know, the best doctors and you know, like
- 21:15if you heard, if you heard your knee, normal people who stay in
- 21:20bed like six months. So these people they, you know,
- 21:23it's like no, no, no, for for these people, it's maybe one
- 21:25month or something like that, right?
- 21:27So I think, you know, getting this combination of of really
- 21:33advance medicine with new technologies like data analytics
- 21:38or AI, I think, you know, is really, really powerful.
- 21:42And what are some of these use cases with the object detection
- 21:46and object tracking? I know I've seen a few that are
- 21:49really cool and we have a few people in the Milos community
- 21:52that also work with basketball and and making sure that you can
- 21:59get a proper readout of the players, how far they're
- 22:04running, if they're passing, if they're making mistakes, that
- 22:08type of thing. But it almost feels like by
- 22:12saying, OK, let's add some object detection to the videos,
- 22:16it's starting with the tech and not really starting with the
- 22:19problem. So what are the problems there?
- 22:21Yeah. So I think, I think it's mostly
- 22:25strategy. I I remember there is a, a show
- 22:30that it was the Spanish national team when they when they won the
- 22:34World Cup and they were actually talking about one specific goal.
- 22:42And one of the one of the defenders said to he was a
- 22:46corner, right? So he, he, he basically said to
- 22:50the other guy, he said, you know, I notice that they, you
- 22:55know, the other team, they are not defending in the middle of
- 22:59the in front of the goalkeeper, right.
- 23:02So if you put it to the centre, it try to centre.
- 23:07And what I'm going to do is I'm going to go from back, I'm going
- 23:12to run and I'm going to jam and I'm going to try to get a goal
- 23:16with my head right. Yeah.
- 23:18And then and then actually the guy, the guy did it and they
- 23:23scored. So, yeah, like the way I think
- 23:27about it is, you know, obviously these guys are professionals.
- 23:29They they, they've been playing football or their lives and
- 23:32they, they are the elite people, right?
- 23:36And, and they don't, they are not only, it's not that they are
- 23:38really skilled in, in plain, but they understand the, the game
- 23:43as, as, as kind of like as a coach, right?
- 23:47So I can imagine that that's the kind of information that an
- 23:51artificial intelligence can also understand somehow.
- 23:55And I, I don't think we are close to, to be able to
- 23:58understand that. I, I also don't think that
- 24:03there, there are, there is enough funding to reach that
- 24:06level. Maybe maybe, you know, some
- 24:09clubs start investing in that and you know, in, in 10 years,
- 24:13we, we have an advisor that, that advise the coach and, and
- 24:16can do some strategies. But you know, in a similar in
- 24:20national way that these people kind of saw a hole in the, in
- 24:26the strategy of the, of the other team.
- 24:28I can imagine an AI can can do something similar.
- 24:32Those real time analytics, yeah, this, it's incredible to think
- 24:36about. And it's also really cool to
- 24:38recognise that we're still very, very early in the abilities and
- 24:43the capabilities. And I know with American
- 24:45football, they're also doing a tonne.
- 24:49And even when you watch American football games on like Amazon
- 24:54these days, you can see that they'll break it down and you
- 24:57get those real time analytics just piped onto your screen and
- 25:02you get a bit of a a bit of a taste of what I imagine the
- 25:06coaches are seeing. And so that that's awesome.
- 25:11Alright, real quick, some words from our sponsors, Ellis, and
- 25:14then we'll be right back into the programme.
- 25:16Are you struggling with building your retrieval augmented
- 25:20generation AKA RAG applications? You are not alone.
- 25:25We all know tracking unstructured data conversion and
- 25:29retrieval is no small feat. But there's a solution available
- 25:33now. Introducing Soliz Cloud
- 25:36pipelines from the team behind the open source vector database
- 25:40mill. This This robust tool transforms
- 25:43unstructured data into searchable vectors in an easy
- 25:46manner. It's designed for performance.
- 25:50Zellis Cloud platforms pipelines Zilis cloud pipelines also offer
- 25:57scalability and reliability. They simplify your workflow,
- 26:01eliminating the need for complex customizations or infrastructure
- 26:05changes. Elevate your rag with high
- 26:07quality vector pipelines. Try Zellis Cloud Pipelines for
- 26:12free at sliz.com. You can find the link into the
- 26:16description. Let's get back into this
- 26:17podcast. Alright, so then let's go into
- 26:21what you are most known for now. And I think that Microsoft, your
- 26:26nickname is Mr Recommenders. Is that true?
- 26:29Well, I mean like I, I get a lot of I allergies they call me dad
- 26:34about. I definitely get a lot of
- 26:38requests to support teams that are doing recommendations both
- 26:44internally and externally. There's a.
- 26:46And what are some of these patterns?
- 26:48Because we, as I mentioned before we hit record, we
- 26:51literally just had Sankey on here from the Spotify
- 26:54Recommender Systems team. And he was talking about how
- 26:58they had set up their vector stores and their embeddings to
- 27:00be able to constantly retrain you as a user and your
- 27:05embeddings to make sure that it's the most up to date and
- 27:08gives the best music suggestions.
- 27:11But then it also is powering many different teams.
- 27:14So it's like the vector store, anybody can grab those
- 27:18embeddings of the user and then plug them into whatever machine
- 27:23learning model they are doing. So whether it's search or it's
- 27:26Discover Weekly or it is the actual like next song that
- 27:31you're going to play, all of that is quite useful because
- 27:36they can transfer that learning and there's like one central
- 27:38spot where they have those embeddings.
- 27:41Are you seeing common system design when it comes to
- 27:45recommender systems? Because I also know that there's
- 27:50like feature stores for very real time recommendations and it
- 27:56feels like the vector store and the feature store, depending on
- 27:59the use case can be very complimentary or you may only
- 28:03need one of them. What's your gist on all this?
- 28:06Because I'm sure you've seen a tonne.
- 28:08So you think the the cool thing of being at Microsoft in
- 28:15comparison to being in a place like Spotify or Netflix or
- 28:21TikTok, which they have amazing recommendation systems, is that
- 28:26in Microsoft at least, I've seen many different use cases, right?
- 28:31So I've seen and I've worked on like a team that they have a
- 28:38recommender team. So they have many different
- 28:42recommenders and they've been involved in that over the years.
- 28:47And I work with companies, for example, that they are starting
- 28:49to integrate maybe their first recommender or the the first few
- 28:53recommenders. And you know, it is like the,
- 28:58the use cases for this to kind of things are completely
- 29:04different. And, and basically it all has to
- 29:06do with the maturity of the team, the number of people, the,
- 29:09the amount of funding each of these teams have.
- 29:13And, and you know, what I would say is that in general, there
- 29:17are three types of architectures in recommendation systems.
- 29:22Yeah, the first one is what we call the bots architecture.
- 29:26You get your data, you train your machine learning model, and
- 29:31instead of taking the model, deploying the model and scoring
- 29:34real time, what you're going to do is you're going to score for
- 29:38each user and you're going to a star these recommendations in a
- 29:44database. So you can think of a database
- 29:48of the first column is the user ID and then you have all the
- 29:52recommendations and then you retrain these every day, for
- 29:56example, or depending on the depending on the company and the
- 29:59use case. But imagine it's it's every day
- 30:02right now. What is the benefit of that?
- 30:04The benefit is that from from your front end you are just
- 30:10querying a database. This is very easy to get a
- 30:14request time. A very, very low request time
- 30:16below 10 milliseconds in some use cases, for example in
- 30:21ecommerce services or it is very, very important to to
- 30:26create APIs that that have these this request time, right?
- 30:33And what is the problem? The problem in that case is that
- 30:37you're not understanding the needs in real time, right?
- 30:41Yeah. So I, I always put, I always put
- 30:43the, the example of of the Microsoft Store.
- 30:47So if you go to so Microsoft has a store, microsoft.com and you
- 30:51can buy from, you know, Office, like Microsoft 365, but you can
- 30:57also buy Xbox, you can also buy games, right?
- 31:02So what could happen is that I I've been I've been buying
- 31:08software or I'd be I've been buying, I don't know, maybe a
- 31:11computers and and mouse. So what it the the machine
- 31:15learning, what it's going to do is if I train it is going to
- 31:19recommend things are related to that.
- 31:22But what happens if I go to to the website and I start looking
- 31:28at an Xbox? Yeah, right.
- 31:31So with the bots architecture, we will we won't be able to
- 31:35understand that Miguel, even though Miguel bought a computer
- 31:40and software, Miguel right now is interested in an Xbox.
- 31:45So you you should recommend, you know, maybe maybe a games or, or
- 31:50something like that, right? So that's the that's the what is
- 31:54called the real time architecture.
- 31:55So in the real time architecture, what you do is you
- 31:57train your model and deploy your model.
- 31:59So you need some kind of cluster that is able to hold this model
- 32:05in real time. If you are using some kind of
- 32:09deep learning model like LLM, obviously you know the your
- 32:14request time is not going to be as good as if you are just going
- 32:17in a database. So you'll you'll need to start
- 32:20doing some gymnastics to be able to reduce this this request
- 32:26time. And then you have the mixture of
- 32:30the bats in real time that that it has different names.
- 32:34Some people call it the hybrid architecture, some people call
- 32:37it the two step recommender architecture and recall rerank
- 32:42our detector. But the idea is that what you're
- 32:45going to do is you're going to do an initial training of a
- 32:51model and you're going to generate some candidates.
- 32:54And maybe these candidates are 1000 candidates for each person
- 32:58and you're going to store these candidates in a database.
- 33:02And then in real time, what you're going to do is you're
- 33:07going to create another model that what it does is rerank the
- 33:11candidates for each person. So in real time, what you're
- 33:15doing is you're taking one user with with a list of items that
- 33:22maybe are thousand items. These are the candidates.
- 33:26And then what you're going to do is based on the real time
- 33:29information, you're going to reorder that list and show them
- 33:35maybe the top ten or the top five for the top one.
- 33:38Something like that. Yeah.
- 33:40And that is kind of hopefully up from the point of view of of
- 33:43developing this architecture is much more difficult, but it's
- 33:47actually, it has the best of both worlds, right?
- 33:49It's faster than the real time Umm, but he's not his his, you
- 33:56know, you can get a really, really good solution in in that,
- 34:00you know, and that architecture. Yeah, that's funny.
- 34:04And you mentioned that and that's exactly what Spotify was
- 34:06doing. And Sankey was saying how most
- 34:10of his time goes into making sure that those candidates are
- 34:13accurate. Then yeah.
- 34:16Cause that's where those candidates and that evaluation
- 34:19of candidates and we all I'm sure know this now too because
- 34:23of Rags and how popular that has become.
- 34:26That retrieval step is so important.
- 34:29And for a company like Spotify, I think he mentioned they had
- 34:32100 million items that they could recommend at any given
- 34:36time. So, well for that, for him it
- 34:39was like, okay, out of all these 100 million, which ones are we
- 34:43going to make sure that we recommend or which one how can
- 34:46we make sure that it is the most pertinent for the person that is
- 34:50looking at it? And yeah, so this is fascinating
- 34:55and it also makes me think about features and feature stories,
- 34:59feature platforms and also the just the embeddings and how when
- 35:04you're looking at these different ways of doing it, you
- 35:08have batch, you have the real time or you have the hybrid.
- 35:12Have you seen common ways of setting U your vector stores and
- 35:18setting up your feature stores if you have it, or feature
- 35:21platforms? And what does that look like?
- 35:24So. Yeah, for us basically the
- 35:29everything I worked on was on Azure, right.
- 35:33So Azure has evolved from the way they do their vector stores.
- 35:38Now we have the Azure ML feature starting vector.
- 35:42So that, you know, is pretty, it is pre advance.
- 35:48I I think, you know, like these guys, they they have been doing
- 35:52databases for for decades, right?
- 35:54Yeah. So you know, there's SQL, the
- 35:56famous SQL Server, right? So I think basically what, you
- 36:01know, like all the team around these databases, what they've
- 36:05been doing is they've been kind of evolving the database for the
- 36:09new use case and basically the new use case, the most important
- 36:12use case right now is AI, right? So I think you know, there is
- 36:17this component of of vector stars and and and feature stars
- 36:23and and all this stuff that you know, it, it helps, it helps on
- 36:29the accuracy and and. But at the end of the day, one
- 36:36particular idea of recommendation systems that I
- 36:38think is very different to other areas like you know, like NLP or
- 36:44computer vision is that unfortunately in recommendation
- 36:48systems there is not a clear better solution.
- 36:53And that is very that's not good, right?
- 36:56Because if you go, if you go to computer vision, you know,
- 37:02everybody's doing right now either convolutional networks
- 37:06or, or vision transformer and, and that's it, right?
- 37:12In the old days, you know, some people might remember there is
- 37:15this thing called SIFT key points, right?
- 37:19And some other and some other structures like nobody's using
- 37:22that anymore. And in for example, in in NLP
- 37:27you have LM's, right? Yeah, you know like right now
- 37:32nobody, I haven't seen anybody using convolutional networks
- 37:35for, for NLP, right. Or few, very few people doing
- 37:39LTMS, right. So like what happens in these
- 37:44areas in is that you, you see that new algorithms make the
- 37:49older algorithms obsolete, right?
- 37:53So basically you, you actually, you, you just can try a few
- 37:57things and basically you can focus on optimising the few
- 38:02options that you have and you know, go from from there, right
- 38:07In, in, in terms of recommendation systems, that's
- 38:10not true. In recommendation systems,
- 38:12depending on the use case, depending on the data, you can
- 38:16use linear models and simple models.
- 38:19You can use even no material machine learning at all.
- 38:24So yeah. And from there to the Super
- 38:27advanced LNG, right. So it's very it is quite
- 38:34difficult to kind of fine tune your your model to make sure
- 38:39that that you are providing value right.
- 38:42And another of the and that that's a very big difficulty
- 38:48right from of of recommendation systems.
- 38:51And so this is a problem. And again, this is a problem
- 38:55that as I mentioned at the beginning, if you are very
- 38:59mature team, you've tried so many things that you kind of
- 39:03know like maybe you have like companies like Spotify or
- 39:07Netflix or Techno, they have different recommenders for
- 39:11different kind of content. But if you're starting from, if
- 39:15you're an ecommerce, for example, or if you, if you are
- 39:20any other company that you're starting, you need to go through
- 39:23all these different, different tests and different algorithms
- 39:28to figure out which ones work for you.
- 39:31So you know the same for example, a company like Natural
- 39:33is that you mentioned they have millions of of songs to an
- 39:38ecommerce that they may have in the thousands of items, right?
- 39:44Yeah, the algorithm completely changes, right.
- 39:49So one of the one of the problems I've seen recommenders
- 39:53is, you know, being able to select the right algorithm.
- 39:57And then the other big problem is that at the other day.
- 40:03When you are using a recommendation systems, while
- 40:05you're trying to do is you're trying to improve the user
- 40:09experience, increase the active usage, increase revenue,
- 40:15increased conversion, stuff like that.
- 40:17So you need to do a Navy test. So basically the data that
- 40:22processes the data. Engineers prepare data, the data
- 40:25scientists create the model. Then you have either data
- 40:29scientists or engineers or different, you know, different
- 40:33companies use different names, but you know, some, some somehow
- 40:37they deploy this model in any of the architecture that we
- 40:41mentioned. And then there is this process
- 40:43of AB testing and then again the A/B testing.
- 40:47You need a platform as a platform to be able to check
- 40:51this model and the, the AB tests, you know, you, you need
- 40:56some time for diabetes to, to be significant for, for the, for
- 41:01the statistics to, to, to be sound and, and and to be
- 41:04accurate, right? So maybe you need one week or
- 41:07two weeks for each experiment, right.
- 41:10So if you think about it, every time you do an experiment is
- 41:14very expensive in terms of time. So maybe you need to wait two
- 41:19weeks, right? Yeah.
- 41:21And one thing that happens in experimentation and, and, and
- 41:24people who is in a B test in experimentation now is like the
- 41:29average of industries that 80% of the experiments fail.
- 41:34So you're going to try a new recommender and on average for
- 41:40most industries, 80% of the time you're going to fail.
- 41:45So it is it is a challenging, it is a challenging situation.
- 41:52And you know, I believe I believe that of, of AI of of the
- 41:58A solutions, the personalization idea is, is one of the most
- 42:03powerful and, and solutions and, and, and probably one of the
- 42:08ones that have the highest return of investment.
- 42:11But getting to these return of investment, it is not easy.
- 42:16So one problem that I've seen in many companies that they don't
- 42:22fund enough the data science team of, of recommenders,
- 42:27because you know, it is something that is not just you,
- 42:32you just get a few trials and and then you suddenly you're,
- 42:36you're doubling your, your revenue.
- 42:39So you need to spend some time doing tests and you know, if, if
- 42:44you're a company and, and you know, like this is some makers,
- 42:48they maybe don't understand AI very well and maybe they don't
- 42:51understand recommendations on personalization.
- 42:54They don't see the value. But you look at it, you look at,
- 42:57for example, companies like Spotify or TikTok or or Netflix
- 43:03or Amazon, you know that they know.
- 43:07They they, they, they, they spend resources in these teams
- 43:13and their return of investment is, is crazy.
- 43:16Yeah. Just to give you some numbers,
- 43:18the 35% of the revenue of Amazon.com comes from
- 43:24recommendation systems. So if, if so, think about, think
- 43:28about that right? Like if last time I, I looked,
- 43:32I, I think they were doing over 100 billion in revenues of 35
- 43:36billion is basically a team of people like like us, right?
- 43:43It's like like if you think about it, and I always put I
- 43:47when I pitch, when I pitch this idea of recommendation systems
- 43:51at Microsoft, one of the things I do is I go to the tree of, of
- 43:58the DPP. So you have Satya Asia there you
- 44:01have the different B's, right, and different products, right?
- 44:04And you have the sales organisation like it's, it's
- 44:07like a tree, right? And then I ask, OK, so who of
- 44:11these VP's make 35% of the revenue, Sure they are not that
- 44:17of Microsoft, right? There are not that many, there
- 44:19are not that many. And there is like the question
- 44:22is OK, so if you take the two or three people who make these
- 44:28number of billions, how many, how many people are there and,
- 44:33and and the numbers in the in the 10s of thousands of people
- 44:36in general. So to, to generate 35 billion,
- 44:4040 billion, you need, you know, in the 10s of thousands of
- 44:43people. Well, I don't know exactly the
- 44:46number of people working in in recommendations of on Amazon,
- 44:51but I'm sure it's not in the 10s of thousands of people.
- 44:54So for for our life that you can get from recommendation system
- 44:59is inside. Yeah, wow.
- 45:03I had never thought about it like that.
- 45:04And this brings me to another point which I think you brought
- 45:09up. And it's how expensive
- 45:11experiments can be just in terms of not expensive as far as
- 45:16headcount goes, but expensive in terms of time.
- 45:20And also the fact that 80% of these experiments fail, it makes
- 45:24it really hard to justify doing another experiment.
- 45:29And so how do you as, because I know you're leading teams right
- 45:32now at Microsoft, how do you get across to leadership that it's
- 45:38worth making another attempt or trying another experiment and
- 45:44getting that buy in to have leadership understand that and
- 45:50then also not see you as just a cost centre?
- 45:53Yeah, O, that's a very good question because that's
- 45:57precisely a big part of my job is basically talk to the leaders
- 46:03or my organisation and even other organisations and
- 46:07Microsoft to, to actually help them see the, the potential and
- 46:13the opportunity. And the only like at least what
- 46:19what I've found that is more useful is when you come with
- 46:24results. So basically my pets, my pizzas.
- 46:28Hey, I'm Miguel. My team does recommendation
- 46:32systems and I've done this number of $1,000,000 with
- 46:37recommendation system. So this is my presentation.
- 46:42So suddenly if you come with salts, actually not my, my
- 46:49technique is very simple, right? Like I go, I say, hi, my name is
- 46:53Miguel Ferrer and I've been working on this problem and we
- 46:56made this amount of money. And then I pause.
- 47:00Then you drop the mic. I weighed then I wait for them
- 47:04to to ask, right? And because you know, you cannot
- 47:08go, you cannot go to, to a person that doesn't understand
- 47:12AI or recommendation systems and say, you know, AI is the future
- 47:17or recommendation system is the future, right?
- 47:20Because, you know, first of all, maybe it's not because and, and,
- 47:23and also they have like 1000 different problems in their
- 47:27head, right? But you know, if you go to to
- 47:32these people and say, look, I I've got these results.
- 47:38So I'm not saying I'm not, I'm not telling you that AI is the
- 47:41future. I'm not telling you that
- 47:42recommendation system is important and just telling you
- 47:45that I got the results. They ARAI is 40,000%.
- 47:53So what what? What do you want to do right?
- 47:58Balls in your court. Yeah, exactly.
- 48:01So yeah, now he's what do you want to do?
- 48:03Right. And I found these very very
- 48:06useful. And how do you calculate that
- 48:09ROI and how do you calculate how much money that you've made so?
- 48:12The the typical way, the typical way of doing this is and you do
- 48:19a Navy test and the in the Navy test, you need to measure some
- 48:24key metrics. Depending on the business is
- 48:26different, right? You have a revenue leave like
- 48:29average revenue per user, for example, is a metric that is
- 48:32important in other companies. A conversion rate is important
- 48:37monthly active usage like Mao or, or you know, depending on
- 48:42the engagement, depending on the, on the business, you, you
- 48:47have different metrics. But what you do is you take the,
- 48:53you do the experiment and you say, OK, so we increase, we
- 48:57increase this metric, you know, 3% or whatever number, right.
- 49:03And then you say, well, based on the for example, amount of
- 49:08revenue or amount of you know, average revenue per user or
- 49:12conversion that we had last year that equates like if if we if we
- 49:18use this model that equates to these $1,000,000.
- 49:22And I think another thing that I found very useful is to talk in
- 49:25terms of dollars, right? You're, you're asking, it's kind
- 49:30of I'm asking for headcount, I'm asking for dollars.
- 49:34You, you give a result, a result in terms of dollars.
- 49:39It's very, very easy to for because it's it's kind of very
- 49:41easy for them to to understand. Man, that's fascinating.
- 49:45And I find it so cool how you think about the incredible ROI
- 49:53when you're looking at it as like, hey, we saved or we
- 49:57increase the average sale price or whatever, the average value
- 50:02per customer by this percent and it equals this many dollars.
- 50:08And then you say, and I did that with a team of 20 people or 50
- 50:14people. And so the ROI on that is 40,000
- 50:19times for whatever you put in. Yeah, you know, the cost of
- 50:22those twenty people was well worth it.
- 50:26I think it is very interesting, right?
- 50:28Because what I've seen, what I've seen in in particularly
- 50:32working in Microsoft is that now thanks to Opening Eye, there is
- 50:40a lot of companies that are really understanding that, that
- 50:45we are in a new industrial revolution, which is a
- 50:49revolution of the eye. But I've been there, I've been,
- 50:52I've been selling to customers where when, you know, AI was
- 50:58like this magical thing that, you know, nobody really
- 51:02understood, right. So it's very interesting how
- 51:08the, how important it is that the key decision makers, they
- 51:13have an, A, a strategy and, and actually, you know, like I, I
- 51:19don't, I don't work with them with the sales organisation in,
- 51:22in, in Spain, in Microsoft, but I, you know, I know many people.
- 51:27So if you ask these, these people like, what is the, like,
- 51:31what is the difference? Like what?
- 51:32Why two years ago, like most companies were not interested in
- 51:37AI and suddenly now many companies are really thinking
- 51:42about AI and having a strategy and it's all about trust.
- 51:49It's all about that. You know, two years ago they
- 51:54CEO's of these companies were not convinced.
- 51:57They were not convinced of AI, right.
- 52:01And I think all this and, and something very interesting is
- 52:04that all these CEOs, typically, they are all enough to have seen
- 52:10the Internet revolution because the Internet revolution was 20
- 52:15years ago. So it's not that it's not like
- 52:18100 years ago Saturday. No, no, it's 20 years ago.
- 52:20So many of us are all enough to have seen this.
- 52:25And you've seen companies that they didn't get into the
- 52:29Internet and many of them failed, right?
- 52:33But you know, it happened the same thing 100 years ago with a
- 52:37steam engine, with a steam engine and a lot of companies,
- 52:41they were into the, you know, the steam engine and and
- 52:43electrification came and all these companies went away.
- 52:46But you know, people haven't lived that, but we have lived
- 52:50the Internet. So now, only 20 years later, we
- 52:55have another revolution, which is I.
- 52:56So I think now people are like, OK, I'm not going to make the
- 53:00same mistake that people do 20 years ago with the Internet.
- 53:05Now I'm going to get into AI and you like from an SC was actually
- 53:11it was thanks to Chad Deputy, thanks to Chazy beauty, people
- 53:15really started to see a I as a useful solution.
- 53:21And and you know, that actually was what convinced the decision
- 53:27makers. And then you know when, when you
- 53:29have the buy in from, from the CEO, from the decision makers,
- 53:34then top down is much easier to to actually start implementing
- 53:39these air solutions. Yeah.
- 53:41Then the budgets all of a sudden open up and we gotta get
- 53:44involved in this and find out what's REI strategy.
- 53:47I really like that. Well, man, this has been great.
- 53:51I wanna end with one question because I know that we're
- 53:54talking about LM and we're talking about ChatGPT and tying
- 53:58that into recommender systems. Have you seen many people using
- 54:02LMS with recommender systems or is that just over engineering it
- 54:07making it too complex? I know there's a lot of papers
- 54:10that come out that try and incorporate the two and I just
- 54:15wonder, like out in the wild, is it being used?
- 54:21Have you seen it? Have you tried to use it?
- 54:23Yeah, yeah. So, yes, absolutely.
- 54:25So I think there are many ways to combine Rico and elements.
- 54:33So you can think of as. You can think of elements as
- 54:37just another machine learning algorithm and one of the authors
- 54:41of of the recommenders open source library that actually,
- 54:44you know, we we donated to the new foundation recently from
- 54:48Microsoft. And in a similar way that we
- 54:51have, you know, gradient boosting trees or or linear
- 54:56models or we also have a transformer based architectures
- 55:01or LMC that you can use with, with recommendation systems.
- 55:06So it can they can be used just to power these algorithms.
- 55:11Another approach is to have a chat bot that is like a
- 55:18personalised chat bot. So basically, and when imagine,
- 55:24imagine when, when you go into something like, you know,
- 55:28Netflix or, or you know, or even an e-commerce, for example,
- 55:33right? You're looking for movies,
- 55:34you're looking for products that you could chat via voice or via
- 55:39text and say, you know how I would like to buy some product,
- 55:45right? And then based on this
- 55:47conversation, you can actually have and based on your, your
- 55:52history, your history of purchases and, and, and your
- 55:56preferences, you can have the answer some recommendations by
- 56:02by this recommender that actually is is is an LM combined
- 56:08with, you know, some other techniques.
- 56:11But the other day is, is basically just another chat bot
- 56:14that is personalised. And The thing is that they
- 56:18interface is different, right? Like you, you have the If you
- 56:22think about something like Netflix, for example, every row
- 56:27that you see in Netflix is a recommender.
- 56:30So there that there is no conversation.
- 56:32But for example, I've seen a lot of use cases of on on search
- 56:37that the certs experience is being changed to some kind of
- 56:43chat bot in a similar way that Google or Bing is kind of being
- 56:47moved to a chat. Who experience the search
- 56:52experience in an ecommerce probably is going to be moved
- 56:55through some kind of table experience as well.
- 56:58Fascinating to think about that. Yeah.
- 57:00And it does feel like those use cases are more prevalent when
- 57:05you don't need that super fast rendering time.
- 57:08And you can kind of fudge it because those LMS aren't
- 57:12particularly fast. They aren't known for being
- 57:14fast, at least not these days. So, man, I know we wanted to
- 57:20talk all about you donating recommenders to the Linux
- 57:23Foundation. I think we're going to have to
- 57:25save that for the next conversation.
- 57:27Yeah, so. It's super cool to talk with you
- 57:31about robotics and how if you can avoid using ML and robotics,
- 57:37you probably should. Also the football use cases of
- 57:41your past life and using those real time analytics and how
- 57:45we're seeing more ML in that. And then the different styles of
- 57:49recommender systems, the batch real time hybrid and of course,
- 57:56the ROI on recommender systems, which I think is probably the
- 58:00most important piece here. I'm going to be quoting that one
- 58:03for a while. So thanks again.
- 58:05Yeah, thank you, thank you. Thank you for the for this.