In this episode Lauren Hawker Zafer is joined by Damien Benveniste PhD Who is Damien Benveniste PhD? 10 years ago, after a Ph.D. in theoretical Physics, Damien started his career in Machine Learning and Data Science. He has been a Data Scientist, Machine Learning Engineer, and a Software Engineer. In these roles he has led various machine learning projects in diverse industry sectors such as: AdTech, Market Research, Financial Advising, Cloud Management, Online Retail, Marketing, Credit Score Modeling, Data Storage, Healthcare and Energy Valuation. Recently, he was a machine learning tech lead at Meta on the automation at scale of model optimisation for Ads ranking. He is also a machine learning top voice on LinkedIn. At present, Damien focuses on a more entrepreneurial journey where he builds tech businesses and writes about his experience. If you are interested in reading about his experience then check out his newsletter: The AI Edge. Why this Episode? 🎙️ Get ready to embark on an enlightening journey through the world of Machine Learning 101! 🤖 In our upcoming episode, we're diving deep into the fundamental concepts of machine learning and navigating the complexities of this ever-evolving field. Join us as Lauren and Damien explore: 🤔 What confuses people when discussing machine learning, and how can we untangle the web of differences in learning? 🌟 Discover the essential distinctions between supervised, unsupervised, and reinforcement learning, and see how they tackle real-world problems head-on. 🧠 Uncover the secrets of neural networks and explore the magic of CNNs and RNNs in solving diverse problems. 📸 Delve into the world of unstructured data, from images to text and audio, and uncover the challenges and considerations in ML tasks. 📊 Learn how to handpick and evaluate the perfect performance metrics for various machine learning tasks. 🤯 Delve into the trade-offs between model complexity and interpretability, with a spotlight on model explainability in real-world applications. 💡 Explore the ethical considerations and potential risks of deploying machine learning models, and discover how to ensure responsible AI development. 🤖 As well as: can Machines Learn Morality? Dive into the exciting world of ethical reasoning in AI, and uncover the challenges and opportunities that lie ahead. Don't miss this episode where we unravel the fascinating world of Machine Learning 101! Tune in for a journey of knowledge and insight into the heart of artificial intelligence. 🚀 #RedefiningAI #MachineLearning101 REDEFINING AI is powered by The Squirro Academy - learn.squirro.com. Try our free courses on AI, ML, NLP and Cognitive Search at the Squirro Academy and find out more about Squirro here.
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
So we've got another big question to start the show today, and the question is, Damien, why does the concept of learning in machine learning raise philosophical questions about the nature of intelligence, consciousness, and the boundaries between human cognition and artificial algorithms? I guess one of the reasons is that in machine learning we discovered a different way to learn than the one we tend to think about when we think about
humans. So in machine learning we have statistical principles that allow us to optimise the learning of the model. So basically you have optimization principles that allow you to learn from the data, and models are just following that optimization process such that. They understand the patterns within the data. It's a very solace type of learning and that makes it, I guess, strange if you try to
compare that to the way we grow as humans and we learn from experience. But if you look at the way we learn from experience, there's a lot of similarities. We are trying to optimise for some outcomes, for example. We are trying to do things that make us more happy. We are. Learning from our mistakes and in a sense it's very similar to what we try to do when we train mothers in machine learning. Yes, it's interesting.
I actually feel that especially in our everyday sort of I'm talking about Western practises when Western society there is this encouragement to actually try to optimise happiness. Which as you've just highlighted illustrates, you know the optimization process that is laid out for the machine learning model and actually made a book recently that was called Solve for Happiness where they were actually looking for the equation that would enable a happy life.
So it's almost like we're in a parallel of looking now for opportunities to mechanically optimise or happiness in real life as well, just like machine learning models. I guess you can say that and like in machine learning, the important thing to to do is to try to find the right. Metric to optimise. So when you have a problem to solve, you're trying to find the right metrics. That would lead the model to learn to predict the right outcomes for the problem you actually have.
And in real life, happiness may not actually be the right metric to optimise. So we go through life trying to find the right metrics to optimise to make sure that we have a more fulfilling life. Sometimes we make mistakes about the right metrics, sometime we get it right. It's a experimental process. Yes, I would say so. Hi everyone, it's Lauren. Hawkers offer. Welcome back to Redefining AI, the tech Podcast. Now today I've been joined by the machine learning engineer
and newsletter author of the AIH. And that's Damien Benveniste. Welcome, Damien. Thank you. So we start with the flow and the introduction into our forefront a topic today, which is machine learning. We're looking at machine learning 101. And I think that we can certainly say with certainty that there's a lot of listeners that have a varying degree of understanding when it comes to machine learning. And I also put myself into the category of being on an ongoing learning journey around machine
learning. So maybe we can start with a fundament of looking at it from quite a logical start. People nowadays, I think, especially with the enhanced prominence of machine learning and models per say, they tend to confuse a lot of the terms when they talk about machine learning and the differences in learning and some people sort of stumble on trying to comprehend it. And your experience, Damian,
because you know you've got 10 years plus experience in machine learning. Where are people stumbling? What are they confusing when they talk about machine learning? You know machine learning is a is a sub part of artificial agents and we tend to call the same thing with those two different names. Artificial agents is is a is a field where we are trying to have ways for computers algorithms to appear intelligent to make decisions and take actions that look like and agent
ones. Machine learning is a subfield of artificial agents where instead of trying to codify. Intelligence we actually trying to learn it from from data. Something that's I find as a confusion is that and it's due a lot to the way machine learning is taught in school. In textbooks you would find a lot of the formalism of machine learning to be very mathematical and this that typical underlying
formalism is called statistical learning theory. And this is a set of principles that allow you to have. Some learning done from the data. And this is the way people tend to educate students about machine learning. And there's a mistake that is typically made to think that machine learning is very much a mathematical science, where in fact there's a lot that relate to computer science, where you need to implement those
principles, those statistical learning principles, into algorithms. So there's a big algorithmic part of machine learning and in practise, machine learning. Is more of a experimental science than anything else. So we have a lot of principles to have, models to learn. But in the end what we have is people taking some data, taking some mothers and trying to get better learning for specific learning task. And the field became much more
of a set of experimental processes where we're trying to understand how to build better models for some some specific land task. So how would you then encourage people to reteach or re analyse how they're teaching it? Would you say that it would be more based around trying to experiment with these experimental processes, or what would you encourage there to try and minimise this
misunderstanding? So the bias that we see in the way it is, you know, it is thought is due to the different people that are teaching that domain. People that are teaching that domains are teachers, I mean professors, researchers that try to pursue boundaries of machine learning in term of the discoveries. But for example, in the industry, a lot of what they teach does not matter as much as other things.
And there are things that I wish were taught in school. Which would be to understand how to build machine learning systems and to end to make sure you can actually deliver products for users. And that's not something that is taught in school and it's something that many machine learning engineers take a long time to wrap their head around when they get into working in a company. Yes, I've also heard that as well. And not to interrupt you, but just to clarify there, when
you're talking to Damian, so when you're encouraging people to look at being able to understand how to build a machine learning system end to end, what does that mean, build a machine learning system maintained? So first of all you start to with a business problem. You start with a need from your users trying to understand what would help them. Trying to understand what business metrics would help you qualify or quantify the specific success on the deployment of a new ML powered product you need
to understand. The technical requirements beyond machine learning, meaning that when you need to deploy your models, you need to make sure that they sit on a server. You need to make sure that those servers can handle the request loads. You need to make sure that you have some fail safe in place. We need to make sure you have some monitoring. You need to make sure that you understand what needs to happen if something breaks. You need to understand who need to work on the different pieces
of the problem. There's lots of skills that go into deploying machine learning systems beyond machine learning engineering. There's like ML OPS, there is data engineering with software engineering. There's obviously some more theatrical aspects that relates to test statistics that are sometimes there but not always. So you know, there's there's a lot of things to take into consideration when you build machine learning systems beyond just the model and it's something that many of the.
Beginners in the field don't really understand, I think I mean and then keeping on that as well and trying to understand, you know, real life scenarios, real world problems. We can also see that in understanding the system and the models that you're building. There's a lot of different types of learning and models that can be built and I think that some of the main ones that a lot of our listeners might have heard or supervised, unsupervised and now which is more popular as
well Reinforcement learning. So what's the difference between these? And if we were to exemplify those with real world problems, can we give an example of the types of learning that relate to specific problems? Yeah. So I think we start to go beyond a bit those 3 categories, especially with the generative AI we are, we are seeing something slightly different, I believe. But let's start with supervised learning. So supervised learning. Is the type of learning where you have some input data and
you're trying to predict an outcome. So you're trying to basically learn the statistical relationship between some input data, some input variables, and a specific outcome. So for example, if you try to personalise ad placement on a website, you have maybe the browsing history of a user and you're trying to place a new ad today, right now. And what you need is you need some labels that. Indicates that the user is
likely to click on a specific ad. So you need to have some examples on users clicking on ads, and this is supervised because you have a label that will supervise the learning. You're trying to predict a specific outcome that you have labelled for just one question there. So are we talking about, I mean not only like binary labelling but like multi labels. So we've got a possible, what, 30 people's 50 labels? It can be any type of of labels. You can try to predict the
probability of a user to comment on a post on LinkedIn. You can have some labels that relate to how you detect object in an image. You can have some labels that relate to next quarterly profit margin. So those type of labels that you may want to try to, I mean some type of outcomes you're trying to predict, you need a label to educate the. Modern on what that labour looks like, statistically speaking, and how it relates to the input
data, you may have to predict that outcome. Hmm. So how does that differ then to unsupervised? So unsupervised learning is actually the type of learning where you don't have a label, so there's nothing to supervise the the learning. So in in supervised learning you're trying to learn statistical patterns to predict an outcome. In unsupervised learning, you're trying to learn patterns within the data that will help you. Categorise a bit better the the data. For example, clustering algorithms tend to be unsupervised.
You just look at data elements, data points and you're trying to understand how similar those points may be and you may try to group them together into a cluster. Unsupervised learning also help you to, by understanding the patterns in the data, help you to change the shape of the data. You know. You can reduce for example the dimensionality of your. Data by crunching it into a different shape than it is originally in One question that
might be interested in there as well when I'm thinking about the perspective of our listeners is obviously both of those have a training set, correct? Supervised and unsupervised. So what's the differences in the training sets then, between supervised and unsupervised? That's mostly the label. So in supervised learning you have a training set where you have input set of variables and you have a target, a label. So this is a. Pair of elements you need to be able to train a supervised learning model. In unsupervised learning, you have a training set that may
look like the one of your supervised learning one but without the label. So you're missing that label and instead of trying to predict that label, you're trying to find relationship between the data points in the data to try to group them or to shape them in a different format. Also something that is interesting to know is that. In the industry, supervised learning is I would say the the type of learning that is used 95% of the time because it's
very easy to quantify results, to build some experimental designs where you're going to be able to quantitatively assess a better model and how it relates to your business metrics. It's also maybe more costly in a sense that you may have to spend more money. To acquire the label that you are trying to predict. So very often you will need to buy some data or we need to spend some money to try to acquire the label. You're trying to predict.
Where in an unsupervised learning setup, it's easier to deal with it because you don't have a label that you need to acquire and you might need to pay for, but it's also less useful. It's also. It's also less useful in business settings because clustering or changing the shape of your data it's not something that has. A good business use case and where does the modality of the data come into play, Damian and the East. Like if we're talking about maybe images versus text videos, like, you know, where does the
modality come into play when we're looking at these different types of learning? Does it increase complexity? Does it pertain to the use case and the type of learning? Like where does modality come into play in that? I guess the data plays a role in maybe the algorithms you're going to use, and also maybe about. Engineering pipelines you will need to build to deal with the specific data When it comes to let's say what we call tabular data, where you have a set of variables, let's say you know
some some user variables, age, gender, job title. Those are very well defined categories of variables. We have been very good at building algorithms to predict outcomes on that type of data. This is called tabular data and we have had. Very successful models running on that type of data for 20-30 years. It's something that we know to do very well when it comes to image or text or audio. This is the type of data that
we're being less good at extracting statistical patterns from from those to predict interesting outcomes. And with the assumption with the latest models from that we have in in neural networks, we were able to actually. Be more efficient and more performant at extracting the right patterns from this type of data. So now we have very good models that are able to take image as an input, text as an input and understand the statistics of
that type of data to predict an outcome from it. So for example we in starting from the 2013, 2014, we've got a set of algorithms that in computer vision that allowed us to be. Very good at predicting our art labelling, at detecting an object on specific image. It's something that we were not extremely good at before recently. We're being extremely good at
generating text because we have better algorithms that allow us to understand the statistics of that type of data. We had mothers before, but we saw a revolution recently, let's say, I would say in 2018-2019. 2020 in the way to generate create text from text input or other type of outcomes and 2013, 2014, 2015, we saw a revolution in computer vision in the way we
were able to understand image and predict outcomes from them. So maybe something that our listeners as well will be asking there we sort of transgressed onto like generating text which comes into the whole generative AI space. And you touched upon the neural networks, we've also got convolutional neural networks, recurrent neural networks that also function and solving different problems. I think reinforcement possibly could be tied in there. I mean you you can tell us if it's not, but when people are
thinking about now the generative capabilities of AI and then taking it back to the subset of, you know, machine learning, what can they understand about the machine learning models that are then working and generate a VI? Your question is like how are the? Alternative I models different from what we had before, yes. So yes, the the neural networks has been the underlying modelling that led to extremely good charity AI models.
You could create generative AI models with other type of algorithms. You don't need neural net. I mean you don't have in principle to use neural networks to do so, but it has proven to be much less performance. So the interesting thing about neural networks. Is what it is. What is it? Is it? Yeah, that's what's going to ask. Like what? What? What is it in terms as well, Now we, I mean, I just spoke to someone earlier and they were talking about neural search and I was like, oh, it's neural
search. I mean semantic search, neural search, cognitive search. So yeah, what's the neural network? Yeah. So network is a model that is composed of many very simple computational units. If you think about the computational unit, you could think about, you know a linear regression for example. Linear regression is a very simple computational unit, something that takes. Input, as you know some input data and generate a now you know some number from it. So a neural networks is composed
of many of those computational units. And because you have a lot of flexibility in the way you architect those neural networks, the way you place the those competition units in those models, as an engineer you you have more flexibility to architect something very different than what we had before in previous models in what I would call traditional machine learning. We have learning algorithms that are not very flexible in the way
you construct them. Neural networks, you can really architect their structure, so you can replace, you can add some different competitional units and you can specialise them to the specific data you input in. For example, conventional network is a network where you have convolution layers. So you have a convolution, Not exactly a convolution, but we call it convolution that is computed on the image and later in some intermediary results
within the network. And those compilations are very good at understanding the local correlations between the different pixels in an image. And because of that specific computational unit, we were able to understand the statistics of pixels in an image at many different scans in an image and we were able to have a performance computer vision systems because of it. When you think about language modelling, recurrent network has been a very successful type of
architecture where the competitional units, the recurring competitional unit is using previous data and current data to predict the coming data, the future data. So you have this recurring aspect where you're able to reuse what happened in the past to predict with the current input what will happen in the future. So when you think about text, you have words that are ordered, it's it's really a time series of of words.
And if you're trying to predict the next word in a sentence, you can use the current word, the one that is just before the word you're trying to predict. But you can also use the words that happen previously in the sentence and recurring networks having very good at understanding that. Just thinking like so, there's obviously a calculation about the probability of two words coming together. So if we're thinking about the car is driving on the road, then we're looking maybe at the correlation between the car and
drive. Is that what you're highlighting as well? There have a better likeliness to understand what is the next word if you read the whole sentence basically. So how do you get that whole sentence to be fed into the network such that the network can take into consideration all that information? And more recently, we had the transformer architecture, but it's not using a recurring competitional unit, but more
what we call attention mechanism. But it's trying to understand the relationship between the words was the different units of data you're feeding it to predict what will be the next unit of data. So in the case of natural language processing, that would be the word or the next sentence. I mean obviously when you're looking at the implementation and the usage of the models in real life scenarios, you've got to consider the performance like how it's performing.
How do you select and evaluate appropriate performance metrics for different type of machine learning? Tasks. So it depends on where you work. If you're a researcher, there may be a consensus on the type of metrics that is usually accepted to be the right ones to assess your mother's on. And when you're trying to build new mothers, you need to utilise benchmark data to compare your models to the previous ones that has been made by, but you know,
developed by other teams. When you're in a industry setting, I think it's a bit different In my opinion it it really depends on the business problem you're trying to solve. Umm, if you have a business problem then you understand the business metrics you're trying to optimise. So let's say you're trying to optimise quarterly revenue, that's what you're trying to optimise as a as a company. And well there are two type of metrics that we usually deal with in machine learning. There's the performance of the
model that is measured on production data and there's a performance of the model that is measured on historical data. And the metrics chosen to assess the models on those two types of data may actually be very different. So what matters is production when your mother is in production, it is when it's generating revenue. When you're trying to understand what is a better model in production need to have metrics that relate to your business
metrics. So if you're trying to maximise the revenue, so the next quarter most likely you need to have some metrics, what we call online metrics that assess models based on some type of revenue metrics. So for example in ads ranking, when you personalise ads you may have your business metrics which is to optimise quarterly revenue and as the online metric, the one you're choosing, you're choosing to run a, B testing. Between different models.
You may want to choose something like model revenue per thousand impressions, so how much money did the model generated per impression? And you want to choose a model that generates the most revenue. So this is easy to measure in production because you present an ad to user and you see the user click on it or not. But when you run offline experiments, meaning that you use historical data, you don't know what would have happened if you presented another ad is the
one that has been presented to the user. So you don't have the full context to actually completely assess the model in the same way. And typically you need to choose metrics that can be quite different from the one you have in production. So the game is to try to find the right metric that correlates well with your online metrics. So if you have some experimental results that happen when you run some offline experiments, you
want similar results happening in online settings. You want to make sure that when you select a model in offline experiments, the same model would be selected if you were to run online experiments. If your metrics don't correlate very well, you would have potentially A suboptimal model selection in your on your historical data. Fascinating, Damian. It's really, really good insights. I think that a lot of people will be able to take away and actually integrate into their
practises and also their interaction with machine learning. So I've got a million questions that I wanted to ask you about. Time is not on our side today. Is there any sort of parting word that you'd like to share with us as we end our conversation? Right, so Western to talk about machine learning. So thank you for inviting me and maybe we can do that again, you know, in the future. Definitely a huge thank you again and I'd like to thank everyone else that's listening and joining our session today. If you'd like to find out more
about AI, machine learning and the insights engine, then go to learn.skiddle.com. Thank you. Thank you.
Episode Six: Why Do You Exist? Dr. Henna A. Karna on AI, Brain Health and Fixing Mental Health Care Why do you exist? It sounds like a question for a philosophy seminar. Dr. Henna Karna argues it’s the most urgent...
When an autonomous drone picks its own target and kills civilians, who’s responsible? The commander, the developer, or the state? Cybersecurity veteran Matthew Rosenquist (36+ years, advisor to governments and...
Six words, banned for thirty minutes: transformation, journey, reimagine, unlock, leverage, AI-native. Dave Wright (Chief Innovation Officer, ServiceNow) and Brian Solis (Head of Global Innovation, ServiceNow, and 10x...
Six words, banned for thirty minutes: transformation, journey, reimagine, unlock, leverage, AI-native. Dave Wright (Chief Innovation Officer, ServiceNow) and Brian Solis (Head of Global Innovation, ServiceNow, and 10x...
Most of the voices we hear on AI sit in one chair. Louisa Loran sits in several at once: operator, author, board director, and trusted advisor to Fortune 500 boards navigating once-in-a-generation change. In episode...