1. Home
  2. Explore
  3. Computer Science
  4. Introduction to Machine Learning

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Introduction to Machine Learning

Transcript

This is a very chill um low-key first lecture. You know, as usual, like I'm not going to talk about anything deep. It's mostly just a introduction about, you know, this course and some of the materials um that we're going to cover some of the topics. We're going to cover um and a very very high level introduction of machine learning. Uh um um still from a somewhat traditional viewpoint. So, the teaching staff, this is me and Chris. I guess Chris is not here today but he will start to teach from the next lecture. So basically either me or Chris will come to the lecture to give the lecture. Um and um um you know I guess [laughter] you can look look him up know I don't necessarily have to introduce him that much you know u um um he probably have introduction for himself but he works on a lot on like all kind of like AI large language models you know efficiency database you know everything. So um um and I um uh in my PhD I worked a lot on u theory for deep learning u and over

the years I start to work on more empirical stuff um so um these days I'm working on AI for sciences AI for math you know like self-improving algorithms you know um um so forth basically like training large language models so prerequisites right so I think um as usual we require um some background in probability and linear algebra uh and these are some of the um CS 109 or CS 1116 um um this list of like a courses might be a little out of date you know there are maybe equivalent courses you know on on campus which I'm not aware of but generally speaking you need to understand some of these buzzwords a little bit you know if you don't know them you can go to the um uh there are some kind of like there's a something called section there's something called um Friday uh TA lectures so those are for some of the backgrounds that you uh uh uh that you can learn uh there. So um but generally speaking, if you don't know anything about this, you know, you

probably should take some of this take this course later. Uh but if you are just missing some aspects, then you can come to some of these Friday lectures uh to catch up with some of the uh the basics. Yeah. And and I think one highlight I would say is that it's still a pretty mathematical intense course. uh uh we are trying to teach the basics you know in some sense the foundation of machine learning not necessarily proving theorems you know um but just there are derivations you know mathematical kind of like derivations you know mathematical modeling formulations you know we focus more on those as opposed to programming so uh so so we try to understand the basics behind the algorithms and code so um um so probability and linear algebra are pretty important um for understanding some of Yes. Yeah. So, uh AI tools policy which is uh [laughter] increasingly important these days. You know, I use AI tools every day. So, so

we do allow you to use tools but there are some restrictions. You know, for example, you cannot copy the results from the tools to um to your uh submission, right? So um in some sense you can just only use them as a human collaborator as if they are human collaborator or maybe superhuman collaborator um um but not like [clears throat] let them generate codes that directly uh go into your u questions. So um they may there are a little more details in on the website and and we're happy to clarify if there are any questions. Um so so you know um these rules probably sounds a little bit restrictive you know uh uh to some degree but I think this is to in some sense um what's the right word like to encourage you or or to enforce the learning like the updates of your your brain if you're just training like if you're building an agent that the agents understands the the materials then uh you probably don't have to take this course right so this is more about not

about training your own agent it's about training yourself like our synapsis. So [laughter] um um at least that's my interpretation so far. Um but we are still taking a somewhat kind of like uh um relatively traditional approach to think about machine learning which I think still applies because you know I think in terms of in my probably biased view. I think the uh the the methodology of training the models are still very similar to the old days. Uh but the way we are using the models are very different. >> [snorts] >> So uh so so for example in the old days I think uh if you use the machine learning in an company you have to get complicated kind of like pipelines get the data tune the model so and so forth but now you just prompt you just ask questions directly you build some kind of like skills in cloud code so and so forth right so um I think we are probably not going to focus too much on using these models you know u um you know we are not going to teach that much

about how to use cloud code work or cloud code to um to write code um but we are more focusing on how to tune uh what's the fundamental technology to tune these models uh so that's why I think most of the existing context still apply we did drop some of the uh uh the outdated stuff so and uh when I was reviewing this uh uh some of these lectures you know uh just uh last week uh um I I found surprisingly some of these definitions still kind of host you know this is 1959 it's like a like a

basically like a [laughter] ages ago for machine learning. U but somehow the study the the definition still seems to be pretty much the right thing. You know machine learning is a field of study that gives computer the ability to learn without being explicitly programmed. Um I think at that time I think explicit programmed means that you program some kind of like code to play chess and that's that's what explicit program mean and unarning means like you somehow use some data and you train some model to um to to predict or to make the decisions on what moves you should make. Um and then in 1998 um that's like 28 years ago. So u Tom Mitchell uh he's he's a professor at CMU uh uh he said that you know computer program is set to learn from experiences E with respect to some class of tasks T and performance measure P if its performance at tasks T uh at tasks T as measured by P improves with the experience E. I think there's a um

probably a small typo there. Um anyway so um I think this definition is very interesting because it mentions a few important component here um or concept here right one is experiences this is kind of like a different way to say data right uh and these days experiences is even more broad right because there are synthetic data you generate right there the the in the in the thinking tokens you know I'm not sure whether you're all familiar with that but like like the thinking tokens generate by the models you know um there are data from the web there are data from the real world there are human label data all of these are kind of experiences um and tasks [snorts] um um in the old days the tasks are very specific. you have like image classification, you know, you have like a u um you know some kind of like price prediction problem so and so forth. Each of them is a task. These days you still have tasks, the concept of tasks, but uh

but it's more general purpose. You can solve like you have one model that can solve a million tasks. Um and there's performance measure P uh which is also very important because this is the accuracy you know so and so forth because you need do need a goal in some sense uh uh to drive the learning of these models and I think also um [snorts] what after in the if clause I think it's trying to emphasize that um this model seems to be better and better if you train for longer longer with more and more data right and that seems to be uh that's a very important thing for for for learning right so if you have more data it's not improving is not learning, right? So, um um so I guess for games, you know, experience is data. You know, the um yeah, the performance measures the winning rate um and and the task is just a game. So, um and so these are the broad definition. Let's try to kind of like break down a little bit, right? So, if you have a taxonomy, uh I don't think

there's a consensus on, you know, what's the right taxonomy. I think the field is moving so fast so that there's no really consensus on anything because there's there's no even time to reach a consensus in some sense, right? Because sometimes you reach at the moment you reach a consensus the thing you are trying to make have a consensus on no longer important, right? Like like so uh so because people have moved to different techniques [laughter] um but but these kind of things you know at least you know if if I if you you coach me on how how do I classify machine learning techniques you know uh nobody will find crazy. So I'm not saying this is a universal ground truth but this is a reasonable view. So I think you have supervised learning, enterprise learning and reinforcement learning. Um and uh of course they're intersecting there are very a lot of intersections and even more intersections these days. Um [clears throat] and also you know you can think of this

as tasks. You can also think of this as kind of like tools or methods, right? So, especially these days, I think the tasks, you know, like I think people mostly think of this as probably methods or or paradigms uh uh as opposed to the the end goal, right? Because in some sense, nobody has the end goal of just doing super learning for one task, right? So, like the end goal is always having general purpose, you know, automatic automatic learning kind of agent so forth, right? So but supervising is still used uh uh in building these agents right so uh you probably heard of the word SFT that's called supervised fine-tuning which is one form of supervised learning so but they are more like tools but not end goes uh anyway but uh so um I'm going to introduce all of this a little bit on the high level so um so I guess you know supering maybe let's think about this you know uh you know 15 years ago if you study machine learning this is probably

one of the interesting application house price prediction So g data set contains some examples. Um and you want to uh predict what's the price for the uh for the house. So basically it's kind of like each example is one uh property and you have like xaxis is the square feet and y axis is the price. So given the square feet you want to predict the price and you know if this is the only thing you are given then um okay I guess the I'm going to introduce some mathematical notation which we're going to use uh throughout the uh the lecture. You know of course we're going to remind you about the notation. So often x is used to denote inputs. Y is used to denote output. So here square feet is the input you know and price is the output and you have many um pairs of this because you have many properties and each property is a is a point um and the question is just that you know if it has x square feet what's the price um and and when when you when you test it

you just say I have a x and I want to know what is the corresponding y and um um as you can imagine you know the simplest way is that you just face a line uh and then when you predict you just say you read off the the value of the one at a position of x is equal to 800 u and you in this case probably fitting a square quadratic function is a better then you get a different prediction so [gasps] um and in lecture two and three I think we're going to cover some of this you know how to fit a linear quadratic functions to a data set and what are the training algorithms you know what's the optimizers you know what's the loss functions you know um and and what's the the algorithms so forth so um of course you know this is very simplistic big because you know it's not only about the square feet you know you probably also need to know know the loss size then you have a two dimensional problem now you have x1 x2 as inputs and you have y and

now if you visualize you you're in 3D settings um and just to um clarify some of the the the the notations or the kind of like the sorry the the the wording so so in machine learning every every concept has probably one more than one [laughter] name like a you know like a like there's so much confusions in the in the in the past now actually there are fewer confusions because some of these words are no longer used in the old days I think uh features and inputs are both

referring to uh the values you are given uh and and and the price is the the output you want to predict and also time sometimes people call it labels I think I just tend to use it as use input and output these days u to avoid kind of like the uh the confusion but sometimes people still use the word labeling which means that you give a label or give a designed output you know uh uh to um you you you you provide output for certain input right you can have human labels you can have machine label and so on and so forth okay so and uh and there's a concept between uh uh about the the output type so uh and it's called regression versus classification so if the output is a continuous variable as a pri for example price then it's called regression so if the output is a discrete variable. for example a label something like you know flamingo like what for example you can label the image with some kind of like tags right so if the output is a tag then it's a discrete

concept and then uh it's called labels and the problem to assign labels to the input uh is called classification uh so for example if the if you are trying to know whether it's a house or townhouse then that's two discrete variables then uh is one discrete variable with two options then that's called classification And if you have a classification problem then you cannot draw the you cannot visualize in the same way. So you you I think this is one of the ways to visualize. You have two dimensional inputs right? So lo size and um and square feet and then uh you can label um uh with like a triangle or circle and and you can see like the way to classify whether this is a house or townhouse is probably by building some kind of classifier that separates the plane into two parts and you say everything above the line is a house and everything below the line is a townhouse. Uh something like that. And in lecture three to five,

we are talking about classification. And this is actually very important uh even for these days because all of these large language models fundamentally is a classification problem. When you're predicting the next tax, next token or the next word, the word is a discrete label. So it's just you have a lot of labels. You have like 50k these days probably 250k different uh words or tokens. Um and and you you're classifying into all of those uh u discrete choices, right? like you have to choose one next word among 50k possible options. Um so um and um and then you can talk about you know even high dimensional inputs right so like the inputs you know eventually you want to know everything about this property to be able to predict the price. So you can have living size loss size floors conditions zip code so on and so forth. Um so so so eventually everything is a high dimensional problem. Um and also the outputs can be also high dimensional

as well. you know here I'm only having the price but you can have even much more complicated uh outputs so um and uh and some just you know you can as you can imagine there are some kind of applications you know image classification so this is a classification problem because each image is has a has a label like you know uh which is the main object in the uh in the image flamingo quark you know u quail you know so and so forth Egyptian cat um and uh this This is actually at

the beginning of the of this AI uh era, right? So like basically um I think Fay uh she's a professor at Stanford. So uh she uh and her team collected this 1 million uh this data set called image night which has 1 million image and label pairs. Uh and 1 million pairs at that time is really big. The second largest data set was like 50k. It's like 20 lakhs bigger than the second biggest one. Uh and uh um and and then um uh uh Jeff Hinton and and uh Alex Krosvski and

and um and Leah Sask they they they published the famous Alex Net paper which was trained on this data set um and with new works and gets fantastic performance and that's the pretty much the beginning of this era of AI. Of course there are several waves in the last 10 years right there was like the vision uh uh innovation and then people moved to language and then uh at the beginning the language is models is of one form and then later on we have the large language models um and that goes to uh so basically that's how this last kind of 10 years have uh has evolved but everything started with this this is very very big data set uh so that you can do this very simple classification problem at this point right like I in 2026 this is a problem that's supposed to It's one task first of all, right? So like you can only do that the only thing you can do with this is like you can label it nothing else. You cannot ask any questions about these images, right?

So it's only one million pairs, right? Uh and the accuracy is only like at that point the first paper I think I remember the accuracy was on 50% and now it's like 95% maybe 97%. Um um so um anyway so the X is the raw pixels of the image and Y is the main object which is a discrete object. So and and then in vision there was a a few years people study you know people actually still use these kind of tools to uh do bounding box localization you can because each image is not only one object you can uh look um locate every objects and have bounding box for them and in this case the the y is the bounding boxes the the output is the bounding boxes and how how do you describe the bounding boxes you describe it by uh uh uh four numbers one number for the left bottom corner and two sorry two numbers for the left bottom corner that's like X or Y coordinates for the bottom left corner and the two numbers for the top right corner and with these two corners you

you you uniquely identify the bounding box [snorts] right so so basically outputs are four numerical numbers and the input is still the raw pixels and uh and machine translation is one of the super problems so basically you just have the input which is you know English the output it could be Chinese or any other languages or vice versa and u um so this is x to y um Um I think in and by the way in this course we we're not going to cover too much about applications. We are mostly trying to teach a little bit about the fundamental techniques u behind these applications um um and and use more toy examples to demonstrate the techniques. U if you really cover the applications I think there are other lectures other courses on campus that are more useful. So and uh um and deep learning you know as I said you know it's is one of the is is the technique that enables all of this. So basically it's a new network you know which is very complicated you know I'm

showing a small examples but actually there are like millions of neurons or billions of neurons in it and uh okay maybe not billions of neurons but like there are there are there are billions of parameters each parameter is actually like some kind of like edge um you know we're not going to details today but um um so in some sense this is kind of like simulating to some degree simulating the human brains right so the neurons are the nose and the and and the edges are the synapses Um and and you give this image to it and then it outputs uh the labels and we're going to talk about the basics about this like what's the how how do you define your artworks what are some of the uh um uh the basics on how how you define and what are the important things to pay attention to and then most importantly how do you train uh the models by computing the gradient because you're going to define loss functions and then you do the so-called back propagation and and this back

propagation is how you automatically compute the gradient of such a complex uh model or or function um um and and that's lecture seven and eight. Um so okay so that's super learning u let me see how much time I spending okay um any questions no feel free to interrupt me at any point you know this is a very low-key lecture I think I've only spent probably 15 minutes if there's no question um um yeah okay anyway so let's move on to an express learning um so what does that mean so so so it means

that you only have uh a data set with only inputs But there's no outputs. So there's no clear tasks, right? Because you don't know what they are trying to predict. You just only have inputs. So for example, you um um for super case you have the label which is like house versus townhouse, right? So you have this triangle versus circle and in the plot. But if you are unsurprised, then you don't have that information. You just have a bunch of like a um data, right? And you don't know what the type of the [clears throat] house uh it is. So um so just a b of sketch uh points on the on the plot uh and you still want to understand something about it right so there's still some patterns on the right hand side figure um you can clearly see you know if you're human right um um so so in some sense you know we are trying to get as much as possible from the data without the labels that's pretty much what learning is doing it's it's a very vaguely defined um goal because what

does interesting structure means in data right what does that mean uh In some sense actually depends on your methodology right like different methods will give you different structures right in some sense um um um so for example you know for this data point if you there's a technique called clustering which just means that you look you find out you know data points that are somewhat similar right uh and in 2D is actually pretty obvious you just I think if you ask humans to cluster you probably get similar uh results or maybe you can cluster in this way as well um I guess this is probably value clustering because there's a clearer pattern. Um and uh uh in lecture 9 10 we're going to talk about some some of these clustering algorithms right like what's the uh the way to design these algorithms what's the the the loss function or what's the objectives here so and so forth so and [laughter] in terms of applications I guess these are some of the uh the

classical applications right so for example uh this is about classroom genes right so every column is the gene expression uh the genes for uh one individual and you have so individuals they have different genes and uh and you you put them into a table and you can see if you sort them in the right way this is actually somewhat sorted. So um you can see clearly patterns right so there are a bunch of individuals which have those kind of genes and there's a bunch of individuals which has these kind of genes u and and then you can classify them into different uh types and understand you know what genes can cause what kind of like disease or symptoms so and so forth. So um and uh and these are the clusters probably and you can also cluster uh uh words or documents. So um uh so I think this example is like you have um on the horizontal dimension is documents. So each document contains a number of words and you count how many words. uh for example this means that pollution show

up in document D0 for a lot of times and that's why it's darker and uh and you see this so basically you count how many times each word shows up in the document that's it that's how you build this table and you don't see much pattern here right but if you um regroup reorder them and uh let me see whether you can see oh sorry let's wait for the animation okay yeah so so after If you sort in the right way, you can find groups of like documents which have similar patterns, right? For example,

these three documents all have a lot of mentions of shuttle, space launch, and booster that seems to be about, you know, um maybe SpaceX or something like that. And uh and there's the top left kind of like corner is about air pollution, environmental, it's about environments. So, you can figure out similar words and also similar documents, right? Because these documents are similar and these documents are similar so and so forth. So um and this proper techniques called LSA um so and we're going to talk about how to uh do some of this in lecture nine. And then this is like a post deep learning uh your techniques you know you can also represent uh words you know by vectors. So um so basically every word you can encode it into a numerical vector which is like sometimes thousand dimensional a thousand dimensional vectors or sometimes even longer. Um and uh and it turns out that actually these vectors not only have um have a lot of

semantical meanings. First of all like similar words can have similar vectors right? So Rome, Paris and Berlin they have like um vectors in high space that are very close and also sometimes the the directions can corresponds to relationship and for example this direction from left to right um corresponds to relationship between the capital and the country. So basically if you uh find Italy and you don't know what's the uh the capital of it, you just go in this direction and find what's which point you head uh and that that word you had uh uh will likely be the capital of Italy and the same thing for France and Germany. So you have one direction where you can use to search for the capital of the the country. Um and there are many relationships like this people have found. Um and we're going to talk about how to kind of like learn this kind of embeddings or encodings of the the natural language. Um and all of these are learned um by training you know in those days they're

2014 2015 right so they're training on uh um uh unlabelled uh data sets you know basically Wikipedia uh I think actually I got this image from the web so so the free in uh I think this becomes the free coers right because people are using this uh to train models of course these days wiki is a very small corpus it's like probably like 1% or like.1% of the your the the the total corpus um um and these days. So um and and then let's talk about large we'll talk about large language models. I

guess um uh uh this is u um I think large language models also have like different kind of like nuances you know um uh we're going to talk about the so so the basically the general idea is that it's a general purpose model learn unlabelled massive data sets and it's general purpose because it's not only for for example before here you know what's the purpose here you are trying to understand which words are similar to the other words you know you understand the relationship right so here you are trying to understand the the relationship ship between documents, the relationship between words, so on and so forth, right? So that's one task in some sense or maybe two tasks. Um but but here when you have large language models, we have chat GBT, it says what's the agenda? What's on agenda today? You can you can ask anything. I guess that's the right. That's the [laughter] what they have here, right? Ask anything, right? You can ask anything about um anything, right? So like it's

not only one task or two task, it's about um general purpose models. Um and uh we're going to cover something about the architecture like how what new artworks uh you're going to use for this kind of like uh pretrain large language models and what loss functions um people use to train these models. uh and then we're going to talk about some of the little more advanced things like how do you prompt these models or how do you train the models to be more responsive to prompting right so I guess when you use arish models you probably have seen that it does depend on how you ask the question right so if you ask the wrong question then it doesn't respond in the right way and and different models these days probably all the models are pretty responsive to instructions but if you um two years ago you know not every model actually responds to your instructions you know and also depending on how you instruct them so and the reason of The

change is just that um this frontier labs open anthropic they train the models to be more responsive to your instructions so they follow your uh your order. Um um and we're going to cover a little bit about image generation. So this is about you know how to generate realistic image you know from noise or from instructions. Um so this is the diffusion model. We're going to have like one lecture on this. Um so this is this is also unsurprised because you know you don't have labels for these images. you just have a lot of realistic image and then you can come up with a model such that you can generate more realistic images um um so I think one of the some of these data sets actually celebrity data sets I don't know why they use celebrity but apparently you can get a lot of celebrity data sets and and you can generate more images which looks like celebrities to some degree right with the right makeup you know the right style so and so forth um very

realistic [snorts] um anyway so we have one lecture on this um so and then we're going to move on to uh reinforcement learning. So uh this bullet is what we I had uh uh three years ago and I I just add another bullet. Uh actually I didn't make the the form consistent. I probably should use training. Um [gasps] so uh anyway so I guess uh I think the typical way to in think about reinforcement learning is that you are trying to uh use this is a task right the task is that you want to make sequential decisions right you want to make decisions and sequential decisions and the typical applications are like alpha go you know like learning robots you know maybe actually it's kind of interesting to uh play this right so this is at iteration 10 the robots cannot really walk that much and then eventually uh you can Um, oh, it I think iteration 20 it doesn't do anything yet. And then at 80, I think it's working a little bit. [clears throat]

And uh, let me see. And I I plan I remember for this example now it's it's doing pretty well. And okay, I know the point here is that this is the sequential decision task because at any moment you have to decide what actions you take, right? So how do you move your arm? how do you move uh the legs so and so forth. So every time you have to take a action and it's sequential because you know what you what actions you take right now does affect your future right if you take the wrong move then maybe you cannot recover you're going to fall down and then you you can never move again. So, so, so there's a sequential dependency and there is action aspect. So, so that's the uh the relatively kind of like traditional way to think about reinforce learning but um but I think these days people also use this as a tool to trim models especially when the model have stocastic uh decisions or stoastic kind of outputs in the middle.

So um probably you know a little bit you have probably played with CHBT right or or cloud. So uh if you ask a question right it will generate a lot of like tokens right a lot of tax right and some of the tax actually not revealed to you because they're saying I'm thinking right but actually the during the thinking process is kind of like generating a lot of like um tokens and all of these generation are stoastic sampling right so each time you generate a probability distribution and you sample from the probability distribution one of the words right and then you condition that word or you you give the word back to the model and then you generate next word and you generate next word so and so forth and each time is stocastic sampling process. It's not a differentiable operation. So, so um so that's why to deal with this kind of like um generation you cannot really back through it easily. In some cases you can but in some other cases you cannot. So uh and you have to use

reinforce learning which is a way is a technique to deal with this kind of stoastic sampling steps in the models. Um and uh I think that's a uh and you you can interpret each of the generation step as a decision. So and uh uh and it's a sequential decision because what you generate in the the first word depend affects what you generate in the second word so on and so forth. >> So would you say that the first bullet point is how um original RL was and like the second is how we're using oil for LC. >> Yeah. More or less. Yes. Yeah. Yeah. Yeah. Exactly. Exactly. Um you know they are not fundamentally different. It's not like a [laughter] they are contradicted to each other. It's more like a slightly different viewpoint in some sense. Yeah. Um so um yeah okay um I I think another aspect of reinforcement learning is I guess my automation is broken. So um another aspect of the reinforce learning is that it also allows you to collect data interactively. This is also very

different from super learning and unpress learning. I'm not sure whether you focused on you know I didn't really emphasize those right in all of the super and super sections at least traditionally you're giving a large data set um and and then you this is a you work with uh and if you're giving a bigger one you're going to work with the bigger one but but but you but you don't but your model don't generate more data so uh the data set is given right so you can you can probably try to collect more and more so and so forth right that's on a different layer but once you have the data your model only sees those data right so um but For reinforce learning, uh it's kind of like a trial and error kind of like a type of algorithm where you iterate between data collection and training, right? So you try some strategy and collect feedbacks. Uh for example, you can try how to walk and and you fall down and even it falls down,

right? So like uh there's still some data you collected, right? You collect some trajectory of data, a sequence of actions and observations uh for the trials and those are new data for your training for the next round. So, so you can improve your uh uh performance based on the data you collected yourself uh as opposed to just a given data. Uh for another example is that you know um so you can say automatic theorem proving this is something that I kind of like work on uh quite a bit these days. So, so you can you given some statements, you don't have the proofs, right? You don't have the proofs, but you gener first you generate some proofs yourself and you try to verify and you select the correct ones and those are the new training data and now you have like some more training data because you have you generate some of them and then you can tune or reinforce the large language model on the correct proofs with the hope that after reinforce then you can

generate more correct proofs in the next round and you get more data and the next time you're going to tune on more data and then you keep going and you have a bootstrapping kind of effect. >> [snorts] >> The same thing happens for robotics as well where you can collect more kind of trajectories and then you train on the a good trajectories. So um uh and you can also use this for training large language models. Um and uh um and the kind of the the rough idea is that you have some inputs which is for example user prompt and the logical machine model will generate a lot of tax and then you can have another u module either it's human reward or or human reward model or like kind of like another large language model that's separate discussion but there's another module which given a tax you generate so something called a reward. So basically it's indicating whether this is a good tax or not. Um and and you can use this reward as a guidance for updating the

large and push model to generate better text in next round. Uh and and uh so so so and the reason why we use reinforcement here is that um uh it's needed because this whole process is not antiffiable in the most traditional sense because the generation requires stoastic sampling. Um and that's why we're going to talk about how to deal with this case. I think the technique is called policy gradient and you can use this and extend it uh and some of the buzzwords is like rovr

with verify reward with human uh in the loop ro human human wait human feedback yes u and you can use this to train the longchain thought you know these are just passwords you don't have to understand um anyway so that's probably uh uh most of the lectures uh we're going to uh cover uh and I think on the website we have a link to uh the syllabus uh Uh this is my internal version. I just take a screenshot. I'm hoping that cloud code can make it more pretty, but it didn't really do the work. So I just have the the ugly version. Uh uh so um yeah. Anyway, so but this is just a summarizing uh what I have talked about. Um yeah, I think we're going to have probably what what what I didn't do is that there's another lecture we planned for ML system. So this is about how do you u u make the software and hardware um more compatible. You know actually this is very important because you know if you can make your algorithm run 2x faster you're going to save like billions of

dollars for open eye right you don't even have to do it 2x faster you can just only do 20x 20% faster it's going to be because everything is so expensive right so and [snorts] and even it's not like a saving millions of dollars it's actually think about if I have algorithm is 2x faster than you then it's one year for me and two years for you and one year versus two year that's just day and night like for for these days right like uh um so Um so that's why it's very important and uh we'll talk a little bit about we're trying to find a guest lecturer who can lecturer who can uh uh cover fairness and uh uh the the the social impact aspect of AI which I think will be very important as well u just because AI is replacing so much jobs uh and we have to think about the uh the social impact of them. Um um yeah, I guess that's the uh that's the overview for the for the course.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent