1. Home
  2. Explore
  3. Computer Science
  4. Reinforcement Learning Overview

Study methods

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

Reinforcement Learning Overview

Transcript

Hi everyone. We're going to go ahead and get started. I'm Emma Brunskill. I'm delighted to welcome you to Reinforcement Learning, CS234. This is a brief overview of the class and what we're going to be covering today. And I just want to start that probably everyone's heard of reinforcement learning these days. That wasn't true about 10, 15 years ago. But you can describe what is happening in reinforcement learning by a pretty simple statement, which is the idea of an automated agent learning through experience to make good decisions. Now that's a pretty simple statement to say. It sort of encapsulates a lot of what me and my lab and many, many others have been trying to work on for the last 10 to 15 years. But it's sort of deceptively simple because it involves a lot of different really challenging and important things.

So the first is that any sort of general agenda to try to achieve general artificial intelligence has to include the ability to make decisions. There's been absolutely enormous progress in what we would call sort of perceptual machine learning, things like being able to perceive faces or cats or identify cars. And we call that often perceptual machine learning because it focuses on trying to, say, identify something. But, of course, in reality, what we're all trying to do all the time is also to make decisions based on our perception and based on our information we're receiving. And so it's critical if we think about what it means to be intelligent to consider how to make decisions, and not just any decisions, but what it means to have good decisions. This sort of question over how can we learn to make decisions, particularly faced by uncertainty and limited data, has been a central question that people have been thinking about at least since the 1950s, particularly pioneered

by the ideas of Richard Bellman. And we'll hear a lot more about Bellman's equation, which many of you might have seen before, later even in this lecture or next lecture. So there's one sort of argument for studying reinforcement learning, which is it's an essential part of intelligence. It has to be part of a general agenda of artificial intelligence. And so we should study it to try to understand what it means to be intelligent. And that certainly for me is one of the really big motivations. So I think there's just a lot of fundamental questions about what is the data needed to learn to make good decisions. But there's another really good motivation to study reinforcement learning, which is that it's practical and it allows us to solve problems we'd like to solve. So in particular, over the last roughly decade, there started to be a lot of really impressive successes of using reinforcement learning to tackle problems or to get unprecedented performance in a lot of really

important domains. So the first one is the board game Go. So who here plays Go? OK, a few people. Maybe not. You can talk to the people that raise their hands. So it's an incredibly popular board game. It's also an incredibly hard board game. It's far harder than chess, and it was considered a really long outstanding question of artificial intelligence. But roughly like, I guess about eight years ago now, eight to nine years ago, there was a team at DeepMind, which was still a fairly small organization at that point, that thought that they could make significant headway at teaching AI agents to be able to play Go. And the idea in this case is that we're going to combine between the ideas of reinforcement learning and Monte Carlo Tree Search, which is something we're going to hear about later in this class, to create a system that played Go better than any humans in the world. And so there's even a movie now about sort

of one of the seminal games in that sort of endeavor and how humans felt about that and how the creators of the AI systems felt about that. But this feat was achieved far earlier than what people expected. And one of the key reasons for that was using reinforcement learning. Another really interesting place that we've seen progress of using reinforcement learning to tackle incredible challenges is in the idea of fusion science. Fusion is a potential approach for trying to tackle the huge energy issues that we have in trying to transition to more sustainable options for that. And one of the challenges here-- and I'm not a fusion expert-- is to manipulate and sort of control things within a vessel. And so what the reinforcement learning question in this case

is, how do you command the controllers, the coil controllers, in order to manipulate this into different types of shapes? And so this was a Nature paper from two years ago where they showed you could use deep reinforcement learning techniques to accomplish this in a way that was far more flexible than had previously been imagined. One of my favorite examples of the applications of reinforcement learning comes from a pretty recent important case, which is COVID testing. So this was a system that was deployed in Greece. They had limited resources, and they were trying to understand who you should test in order to help control the epidemic, because as many of you may know, there's a lot of sort of free movement within Europe and there was a lot of transitions. And they were trying to think about how to leverage their resources in a data-driven way because, of course, the epidemic was changing. And so this is a beautiful paper by a Stanford graduate, Hamsa

Bastani, and her colleague. She's a professor over at Penn now that used reinforcement learning to really quickly do this. And it was deployed. So Greece used this for their testing at the border. But perhaps the most famous example recently is ChatGPT. So I think that as many of you might know, natural language processing has had incredible successes over the last decade. And there was a lot of work trying to use transformers to make really, really capable natural language systems.

But up till around, I guess, like a year and a half ago, most of that work was not known to the broader public. So even though we were getting these amazing advances in natural language processing, it wasn't at the state yet where everybody was using it. And so the key idea of ChatGPT was to use reinforcement learning to create vastly more capable systems. And I like to talk about ChatGPT not because it's perhaps the most well-known success for reinforcement learning, but also because it exhibits a lot of the different technical challenges and questions that we're going to be covering in this class. So let's just walk through sort of how at a very high level sort of this figure from ChatGPT of how the ChatGPT system works in terms of training. So the first thing it does is it does what we would probably call behavior cloning or imitation learning. We'll be covering that in this class. And we'll be talking more about it even in this lecture. So what did it do?

So, again, just to remind, I suspect everybody in this class probably uses ChatGPT probably multiple times a day or Claude or Gemini or one of the other large language model systems. But just in case you have not, the idea in this case is that you might have some sort of prompt or task you want your language system to do, like explain reinforcement learning to a six-year-old, and then someone gives a response, like we give treats and punishments to teach, et cetera. And you can think you can try this out with ChatGPT and see how well you think it explains it. And then what that was treated as is sort of a direct supervised learning problem. So just trying to take that input and then to produce that output. And we will call that also imitation learning or behavior cloning in this class. And we'll talk about why. So that was the first step. And this is sort of what people have been doing in natural language processing.

And the systems were good, but they weren't that good. So the next idea was to try to explicitly think about utility or rewards, like how good were these particular labels or these particular outputs. So here we're going to actually build a model. We're going to build a model of a reward which relates to model-based reinforcement learning. And the way we're going to do this is-- or the way they did this is we collect preference data. We ask people to compare or rank across different forms of outputs. And then we use that to learn a preference model. And we're going to cover that in this class. That's going to be one of the differences to this class compared to a couple of years ago that I think preference-based reward signals are really important and very powerful. And so we're going to be covering that in this class this term. So in this case, they would learn a reward. And again, don't worry if you haven't-- if you're not familiar with what rewards are and stuff.

We'll go through all of that. I just want to give you a high level sort of sense of how ChatGPT is related to some of the things we're going to cover in the class. So they learned a reward signal. And then they did reinforcement learning using that learned reward signal. So now they're going to do reinforcement learning. And this is called RLHF because it is reinforcement learning from human feedback. And I'll just note here that this was not the first time this idea was introduced. It had been introduced maybe about four to five years before this for sort of simulated robotics tasks. But ChatGPT demonstrated that this really made a huge difference in performance. And so I think it's a really nice example of the types of ideas that we're going to be covering, as well as sort of the incredible successes that are possible.

Now, even before ChatGPT came along, there was starting to be a huge interest in reinforcement learning. So some of you-- we have an optional textbook for the class. It's by Sutton and Barto. Richard Sutton is from Canada and is one of the sort of founders of the field. And when I started in reinforcement learning and I would go give my talks in conferences, it used to be like me and Rich and 30 other people. Nobody cared about reinforcement learning. I mean, it's not for, you know. A few of us did because we thought it was really amazing. But as you can see, sort of through the 2000s, which is when I was getting my training around here, there just weren't that many papers, and the community wasn't nearly as large. But this nice paper by Peter Henderson-- the y-axis is papers-- shows that there's been this sort of enormous increase in interest. And I think a lot of this was really due to the fact that kind of around here

there was some amazing successes on the Atari video games, where people showed that you could learn directly from pixel input to make decisions. And then there started to be the successes in AlphaGo, and then there became more and more successes. So it is an incredible time for reinforcement learning. This curve is continued to go up. However, I think it's also important to notice that there is also a number of skeptics. So there was a pretty famous talk by Yann LeCun in 2016 at one of the major machine learning conferences, NeurIPS. So Yann LeCun, for those of you who don't know him, is one of the sort of seminal figures in neural network research. He has won the Turing Award. He is an amazing, amazing researcher. So he gave a keynote at NeurIPS. I believe it was a keynote. He certainly gave a very famous talk there, where he was talking about the role of different types of machine learning questions and subareas in terms of making progress on machine learning.

And he very famously talked about machine learning as a cake. And so he said that the main cake is really unsupervised learning. And that's really going to be the body, the most important aspect of machine learning. Things like representation learning from unlabeled data, that's really going to be the core, and that's where we're going to have huge amounts of data and we're going to make a lot of progress. And then supervised learning was the icing. So that's still pretty important. It's like very important part of the cake, at least in my opinion. But it doesn't have as much. We don't have as much supervised learning, and it's sort of [INAUDIBLE]. And then he argued that reinforcement learning was just the cherry. Now cherries are important, but not nearly as much, perhaps, as the rest of the cake. And he went on and talked about some places where he thought that RL still might have a role. But it was considered a really important talk

because what he was sort of demonstrating is that reinforcement learning was having a part to play in machine learning, but maybe only a very minor part. Now I think it'd be interesting to talk to him today. I haven't talked to him recently, so I don't know what his current opinion is, but I think it's a really important thing to think about like, where are all of these different techniques important, and where will we be able to make the most progress in terms of advancing AI? And so with that, we're going to try and do our first poll, which is about why you guys want to take this class. So we'll look through these. You'll have to bear with us a little bit with-- we had a few technical difficulties that we're working with CTL on, but it should work out. So if you go to either the first link in Ed or you go to this HTTP, you can-- if you have any issues like, do you want to be registered? If it's hanging, just skip the registration, refresh,

that should all sort it out, and then just add in your SUN ID as your screen, and just take a second and write down a bit about why you want to take this class. And it could be anything. It could be that you're really curious about something. It could be because you're doing an internship and they told you had to take something about reinforcement learning. Any of the things are fine. Just take a minute or two.

Thanks for all the great reasons. I will talk about some of those when I talk about also what we're going to cover today and try to address why. I think a lot of the things people are bringing up are things that we're going to be touching upon. So I think if we want to think about-- I think it's really important to start thinking about what is reinforcement learning about, because if we understand what it's about, then we know what types of questions we're interested in this space. And we also understand what sort of applications it might be helpful for. So, of course, your creativity is unlimited, so you can see what you might come up with other ideas that people may not have thought of for applied RL. But the four things that people typically think about when they think about reinforcement learning as a discipline and as the sort of what reinforcement learning involves is optimization, delayed consequences, exploration, and generalization. So the first is optimization.

And the optimization aspect is really just saying that we're thinking about the best way to make decisions, which means that we explicitly have to have some notion of utility. An example of this would be something like finding the minimum distance route between two cities given a network of roads. This means you can directly compare different solutions, because if one solution has a smaller distance than the other, it is strictly preferred. So there are many, many important optimization questions and reinforcement learning because it is concerned with making good decisions, cares about us being able to rank or decide across those different ones.

The second one is delayed consequences, the idea being that the decisions that we make now can affect things far later. So maybe saving for retirement now has some immediate cost, but it leads to some significant benefit later. Or maybe there's something you can do early in a video game that later has a lot of benefit. There are two reasons why delayed consequences is challenging. One is for the reason of planning. Many of you might have actually-- raise your hand if you've taken AI at Stanford. OK, so about half of you. So you probably saw planning in AI. And planning is the idea that even when we understand how the world works, it might be really complicated to try to decide what the optimal thing is to do. So you can think of this like chess. All the rules are known. It's still really complicated to think about what's the right thing to do. So when the decisions you make involve reasoning not just about the immediate outcomes but the longer term ramifications,

the sort of planning problems are even harder. But the other reason this is really hard is when we're learning, meaning that we don't know how the world works and we're trying to understand how through direct experience. So when we're learning, temporal credit assignment is hard, meaning that if you take some action now and later on you receive a good outcome or a bad outcome, how do you figure out which of your outcomes caused that good or bad later result? So this happens all the time to us as humans. How do you know why you got into Stanford? Well, I don't know. Was it because you colored you won a coloring contest when you were 6, because you scored well on the SAT, because you went to a good high school or you wrote a really good essay? It's really hard to understand this. In some cases, it may be impossible. But when we're getting to make repeated decisions, it's really important that we can start to use the prior experience to figure out

which decisions were important or led to good outcomes so that we can repeat them. So that's one of the reasons why this is hard. Exploration is one of my favorite things in terms of reinforcement learning. And the idea of this is that the agent can only learn about the world through direct experience. So it's like trying to learn to ride a bike by trying and failing and trying again and through that direct experiencing, learning the right way to ride a bike. And the key idea about this is that information is censored in that you only get to learn about what you try. So, for example, right now, you don't know how much worse your life would be if you were MIT. I went to MIT for grad school. MIT is also a great place. But you generally can't ever understand what that counterfactual life would have been like. It's one of the central challenges. It's also a huge challenge in causal inference, which

is another big interest of mine and something my lab works on. So there's this general challenge that you only get to learn about the actual things that you do as an agent, as a human, as an agent, et cetera. And so the question is, how do you use that experience to figure out how to make good decisions? So as a concrete example of this, you can imagine you're a company, and you give some promotion to all your customers. You can't know what it would have been like if you didn't give the promotion to those customers. And even if you can give it to one customer and not another, they are not the same people. So I can't rewind and say, Dilip, who is our head TA, this time, I'm not going to give you the promotion. Let's see how that world would have worked out. That's one of the central challenges. So we'll talk a lot about exploration later because it's one of the key things that is different compared to many prior approaches.

And generalization has to do with this question of really wanting to solve really big, challenging problems. So we'll talk a lot about what decision policies are. But in general, you can just think of them as a mapping from experience to a decision. And you might think in those cases, you could just preprogram it. So if your robot goes down the hallway, if it hits the end of the hallway, turn left. But let's think about a video game, which we can think of as just sort of generally having some input image. So let's imagine that it's something like 300 by 400. And let's say we have at least 256 different colors. So now we have set of images that we could see that is at least 256 to the 300 cross 400. So those are at least the space of images. That's probably an underestimate. And now we get to think about what we would do in each of those different scenarios. So the combinatorics are completely mind-blowing, and we can't write these down in a table.

So this is why we would need something like a deep neural network or something else in order for us to try to make decisions in these realistic settings which are extremely large in terms of the type of scenarios, the number of scenarios we want to make decisions on. So you've probably seen all of these ideas, or at least most of them in other classes for other types of AI or machine learning. So I think it's useful just to contrast what is reinforcement learning doing compared to these other ones. So the first is AI planning. So in AI planning, generally, we're doing some form of optimization, trying to minimize a distance or something like that. We are often trying to handle delayed consequences. And those are the two main things. So we might also have to do generalization if the size of the space is really large. OK. So that is how-- so RL, in general, will involve all of these. So this is how those would compare.

If we think about something like supervised learning, supervised learning does involve learning. So we learn from data, whether something is a cat or not. And we have to do generalization. So we have those two things. And again, this is going to be compared to reinforcement learning, which has all of those. In contrast to supervised learning where you get the correct labels, in unsupervised learning, we don't get any labels. But we're still learning from experience, and we're still trying to do generalization.

Now the next thing-- and this has become a really popular thing-- is to think about whether we can map reinforcement learning to imitation learning. We talked about this really briefly about ChatGPT, and we'll talk about a lot more in the course. So in imitation learning or behavioral cloning or reducing reinforcement learning to supervised learning, we generally assume that we get access to expert trajectories. So this could be like someone saying what they would do in response to those prompts. It could be someone driving a car, and then you want to mimic their behavior or some other similar example. So these ideas is that we get input demonstrations of good policies. And that allows us to reduce reinforcement learning back to supervised learning. So we're sort of taking this, and we're reducing it back to here.

I think, in general, the idea of reductions is incredibly powerful. For those of you that have taken CS theory classes, that's what we do all the time. We reduce things to set or other things like that. And, in general, I think in computer science, it's one of the strengths of it that they think of how can we reduce one problem to another and then inherit all the progress that's been made on that problem. So in this way, reinforcement learning is similar to other aspects of computer science in that we will try often to reduce reinforcement learning to other problems. This is particularly done in the theoretical aspects of reinforcement learning. Yeah. Yeah. So just before-- Whenever you ask-- just because I'm going to try and learn names, could you say your name, please? Yeah, my name's [AUDIO OUT]. So just to be clear, imitation learning then isn't like a separate technique. It's just an application of supervised learning to the specific reinforcement learning context?

It's a good question. So I think some of you-- I mean, there's a lot of techniques that think about when you're doing imitation learning specifically for kind of decision data. You can just think of it just reducing it back. If you want to do imitation learning where you might recover like the reward function-- we'll talk more about that soon and others-- then you may need to use other types of techniques as well. But the most straightforward aspect of it is just to say, I've got demonstrations. I'm going to ignore sort of like this delayed consequences aspect and exploration, and I'm just going to reduce it back. Yeah. And name first, please. Wait, what do you mean by input demonstrations of good policy? What does that mean? Great question. So let me give you an example. So people have thought a lot about this. Maybe one of the first examples of this, or one of the first really public examples of this, was for driving. Like at least what you could do is I could drive a car.

It could record everything that I do in terms of controlling the steering wheel. And then we could-- if I'm a good driver, they could say, that's a good demonstration. So instead of the car trying to learn from itself how to steer the wheel in order to, say, successfully drive, you could have humans drive it, and it could try to figure out at each point how should I steer the wheel in order to have good behavior. So the idea is that you actually have access already to good demonstrations of what is a good policy. Yeah. Name first, please.

What do you exactly mean by optimization here [INAUDIBLE]? Optimization and what? What do you mean by optimization and imitation? Ah OK. Good question. So what I mean is that when we do imitation learning from good trajectories, we are assuming that we want to do well. So we want to actually get a good policy. So imitation learning, normally, we're not normally trying to imitate bad performance, but you could think of this as sort of reinforcement learning but without the exploration part, because it's not trying to pick its own data.

Why don't supervised learning and unsupervised have that thing? Have the optimization? Yeah. Yeah. So I think because we normally don't have the notion of utility in those. So you might say this is a cat or it's not a cat. It's not like a good picture of a cat or not. Whereas in decisions, we often have a real valued scalar value of like it was like a 0.7 good decision. Yeah, name first, please. [INAUDIBLE] also have the loss function, which we intend to optimize. Yes.

So we do often-- we always have loss functions. And that's a great-- but in those cases, there's not normally a utility that goes. So if you could get-- you could maybe have some smooth notion there of how well do you match like a stochastic policy, a stochastic output there. But for many of those, it would be more-- if it's like, did you say it was a cat or not, you would have a binary 0-1 loss. Yeah. Hi. [AUDIO OUT] So does that mean, if you have the data for imitation learning, it's like almost always better than reinforcement learning? Because avoiding the fasteners, you can directly learn what is good. Say that again. So if you have the data for imitation learning, if you have someone actually driving the car, does that mean that you will probably learn a better policy than reinforcement learning or that it's almost always better? Great question. So we'll get into that. So the question was-- if you can hear that-- is if you have good demonstration,

say, of driving behavior that you're using imitation learning, can that be better than reinforcement learning? It will depend on your reinforcement learning algorithm. In general, reinforcement learning should always be able to equal or exceed the performance of imitation learning. Yeah. So can you explain the difference between IL and RLHF? Yes, great question. So in imitation learning, what we would have-- and this is what-- this was the first part. You would say people give me-- given a prompt, I look on the internet, and I assume that those were good. So in the internet, I see if someone said like how to explain reinforcement learning to a six-year-old, this is what they said back. And so I just train on those. What RLHF said is that, well, the internet is a big place. Probably not all of it is good answers. So now let's actually ask people which of these two responses they prefer. And now we're going to try to do reinforcement

learning on that to actually get to a better policy. Yeah. Something I'd like to ask-- so AlphaGo actually discovers some Go strategies that are not invented by humans that we have never experienced before. So does it mean that if we apply imitation learning too much, it might actually hinder the model's capabilities to explore like what is actually good instead of what humans have thought of, which is probably wrong? Absolutely. And actually, I think this is on the next slide. Let's go back. Good. OK perfect. So this turns as to where are some of the places that you might hope that reinforcement learning would be better than these other strategies. So one of them is where you don't have examples of desired behavior. So this is exactly like the example that was just brought up. If you want to go beyond human performance, you cannot rely on human performance just to do imitation learning because you're not going to be able to get better than it.

So there are a lot of application areas, I think, particularly in areas like health care or education and others where we think we can go beyond human performance. And so in those cases, reinforcement learning because it's trying to optimize performance could go beyond. It could be a particularly useful technique. Another is where you don't have any existing data for a task. So there might be something where you think of it as a decision-making problem, but you don't have prior data. And you need to learn from scratch, and you want to directly optimize. So that's another place where reinforcement learning can be very powerful. Another category is interesting because in some ways, it's also kind of a reduction technique. And this is the place where we have an enormous search or optimization problem with delayed outcomes. So there's been a number of examples of the work of doing this from DeepMind, which have been really extremely elegant. So what I put up here is AlphaTensor.

If you haven't heard of it, it's a faster way to do matrix multiplication, which is kind of mind-blowing. So what they did is they said, all right, there's standard ways to do matrix multiplication. This comes up all the time. Could we learn an algorithm that would be better at matrix multiplication? Not me as like a scientist try to write down an algorithm. Have an agent learn one. And they showed yes. And the way they did that was with reinforcement learning. And they've done this in other cases, too, like learning faster, sorting algorithms. So I think this is a pretty incredible frontier. The idea is saying, could we have AI actually be inventing new algorithms? And one of the ways that they framed it here-- and you can think of AlphaGo as similar-- is that it was a really, really, really large search problem. And the challenge with really, really large search problems is that even there, we may not have great techniques for solving them.

And so it's sort of a reduction. You can think of people taking a planning problem and trying to reduce it to a reinforcement learning problem to make it more tractable. So that's pretty wild. Most of the time we think of sort of RL been reduced in the other direction or involving planning or above that. But here, in some ways, you can think of these as like either adversarial planning problems or Expectimax problems that are being reduced back to learning as a way to just more efficiently go through the search space. So those are two of the areas that I think are particularly promising in terms of why reinforcement learning is still a really practical and really important area to think about. I think I saw a question back, but maybe-- Yeah, so for-- Oh, what was your name? [AUDIO OUT] For AlphaTensor, is that like it's fast but within some error of the correct matrix product? It's faster but with some error. Some error? Or do you actually get the correct value?

No, you get the correct value, which is wild. Yeah. Yeah. So no, it's just better. Yeah. And one of the really clever things they had to think of in this case was how do you know that the answer is correct. How could you provably verify that? So it's incredibly elegant. All right. Now we're going to go quickly through some course logistics before starting to dive into some content. And feel free to interrupt me throughout this or anything else if you have other questions. So in terms of the content, we're going to start off by talking about Markov decision processes and planning. And then we're going to talk about model-free policy evaluation and model-free control. Don't worry if you don't know what I mean by model. I'll specify it. Then we're going to jump into policy search. Policy search is things like proximal policy optimization and reinforce and other approaches. Some of you guys might have already seen related ideas, say, in robotics if you've taken them.

And then I'm highlighting here that this is one of the important differences compared to prior years. So we're going to do a deep dive into offline reinforcement learning, offline here meaning that we have a fixed amount of data. And we want to learn from it to get a good decision policy. And during this, we're going to talk about reinforcement learning from human feedback and direct preference optimization. So that's going to be a new third part of the course that we haven't done assignments on before. So I think that'll be pretty exciting. And we'll also talk about exploration and do advanced topics.

So the high-level learning goals of the class is that by the end of the class, you should be able to define the key features of reinforcement learning. You should be able to given an application, specify how you would write that down as a reinforcement learning problem, as well as whether or not you think it would be good to use RL for it, that you can implement in code common RL algorithms, and that you understand the theoretical and empirical approaches for evaluating the quality of an RL algorithm. So as you could probably imagine from those papers going up, there's going to be continued progress in this field, and there's going to be a huge number of different RL algorithms. And so one of the key things that I hope to talk about is sort of how do you evaluate and compare them, which might vary depending on the application area you care about. So the way that the course is structured is that we'll have live lectures.

We'll have three homeworks. We'll have a midterm. We'll have a multiple choice quiz. We'll do a final project. And then we'll have what I call check or refresh your understanding exercises, which will be going through the Poll Everywhere. And we'll have problem sessions which are optional. Problem sessions are a great chance to think more about the conceptual and the theoretical aspects of the class. And they'll be held starting next week. So one of the main application areas I think about a lot is education. I think education is one of the greatest tools we have to try to address poverty and inequality. And so I'm really interested in evidence to think about how do we educate effectively. So with respect to that, I wanted to share this paper that came out, I guess, almost a decade ago now, where they did a study to look at how people who are taking massive open online courses, how they spent their time and how that related

to their learning outcomes. And what they found is that if you do more activities, there seem to be a six times larger learning benefit compared to watching videos or reading. And you might think this is just based on time, but it wasn't. In fact, it seemed like students spent less time per activity than reading a page. And I bring this up because sometimes I have people who come talk to me right before the midterm. And they say, I rewatched your lectures like three times. What else can I do? And while I'm flattered that they want to watch the lectures three times, I really highly recommend you don't do that, that, instead, you spend time doing problems or going through problems from the sessions, going through the homework, going through the check your understandings. It's far more effective and efficient, in general. So in general, engage practice, particularly forced recall, where you have to sort of think about things without checking

the answers, is shown to be very effective for learning. And so to achieve the class learning goals, I encourage you to spend as much time as you can or the time you have available for the course on those type of sort of directly engaging activities rather than more passive ones like reading or watching. Yeah. [INAUDIBLE] Name first. [AUDIO OUT] Do you have a time frame for when the problem sessions will be held? Great question. We will announce those by the end of tomorrow.

For those ones that we know it's like impossible to coordinate schedules-- so if you can't make it, we encourage you to come in person. But if you can't make it, we also release all the materials and the videos afterwards. OK. I will highlight-- I guess just also on this too-- and I saw several people asking about this. Well, we'll just go back to this part because [INAUDIBLE] cover. So several people mentioned that they were excited about having some more theoretical aspects. This class does involve theory. It is perhaps-- there's probably more theory, I think, probably than the normal machine learning and AI classes, probably a little bit more, and not as much as like an advanced seminar on theory.

So normally, most problem sets will have one-theory question. And if you're not familiar with some of the sort of theoretical techniques, totally fine. You can come to problem sessions. You don't have to have any prior background in doing proofs to be able to succeed. Another thing people asked about were Monte Carlo Tree Search. Several people brought up reinforcement learning from human feedback. We will be talking about that. Some people asked about multi-agents. We're going to be thinking about Monte Carlo Tree Search and other ways to have multiple agents that are making decisions. And a number of people said they wanted to get up to speed on sort of the latest ideas and reinforcement learning so they could read papers or do things in their applications. And I think this is all very relevant to that.

The final thing is just we have five wonderful TAs who will be supporting. The main ways to get information about the class is to go to the website or go to Ed. We'll be releasing our office hours by the end of tomorrow. And we'll start them for the rest of the week. And all of you guys are completely capable of succeeding in the course, and we're here to help. Yeah. [AUDIO OUT] Yeah. Please. Go back to the course topic slide. Do some of those topics include model-based approaches as well? Yeah. So the first part-- great question. So when we first start talking about-- here, we'll talk about models at the beginning and particularly when we're defining Markov decision processes. And then we will likely be talking again about that more when we get into the offline approach. There's a lot of very interesting questions about when we're picking different-- there's a lot-- we'll get into the fact that there's a lot of different representations you can use for reinforcement learning.

And there's a lot of questions over which to use when or when you combine them. And in particular, where do errors propagate in the different types of representations in terms of leading to error in the final decisions you make? But model-based reinforcement learning can certainly be a really powerful tool. Any other questions on the logistics? All right. So let's start to dive into the material. All right. We're going to start with a refresher exercise. So raise your hand if you've seen reinforcement learning at least a little bit in the past. So most people, not all. If you haven't, if everything I am about to say doesn't make sense, don't worry. We're going to cover it. But I like to kind of get a gauge in case people are like, I've seen all of this before for the very beginning of the course. So this is going to be a refresher exercise. We're going to do it on Ed.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent