YouTube2Text

YouTube transcript (6YnLB0XbTnI) — Transcript

11,603 words · 1,840 segments · language en · Watch on YouTube

Full transcript

  1. 0:05Welcome everyone to fall quarter and
  2. 0:07welcome to CS 329A.
  3. 0:10I hope you made it to the right class.
  4. 0:11This class is on self-improving AI
  5. 0:13agents.
  6. 0:15Anyone
  7. 0:16made it to the right class here?
  8. 0:19Yes? Okay.
  9. 0:21How many of you are here
  10. 0:24and doing masters at Stanford?
  11. 0:28PhD?
  12. 0:30Okay.
  13. 0:31A few of you and then undergrad?
  14. 0:34Okay. So masters is the big crowd here.
  15. 0:37>> There's a good balance. Yeah.
  16. 0:39>> It's a really good balance. Uh
  17. 0:41So we'll introduce ourselves. So I'm
  18. 0:43Akanksha. I have been working in large
  19. 0:45language models for a while and I'm an
  20. 0:47adjunct professor at Stanford and I'm
  21. 0:48also in research
  22. 0:50at a startup called Reflection AI.
  23. 0:52>> Hi, I'm Azalia Mirhoseini. I'm a I'm an
  24. 0:56assistant professor in the CS department
  25. 0:59and
  26. 1:01Akanksha and I met each other when we
  27. 1:04were
  28. 1:05at Google Google Brain Google Brain.
  29. 1:07Yeah, back in the day and then Google
  30. 1:09DeepMind.
  31. 1:11And I also worked on Cod and Anthropic
  32. 1:13and Gemini at Google
  33. 1:15DeepMind and we are so excited to
  34. 1:18teach this course again. This is the
  35. 1:20second time we're teaching. Of course,
  36. 1:22we have made some updates both to the
  37. 1:24lectures and also the way we are
  38. 1:27kind of conducting everything during the
  39. 1:30the for the course.
  40. 1:32And we are we were just so amazed by the
  41. 1:34amount of interest
  42. 1:36for people to join this course. So
  43. 1:39we are excited to have you here.
  44. 1:41>> The course website is at
  45. 1:42cs329a.stanford.edu.
  46. 1:45We have updated the website in terms of
  47. 1:47all the lecture materials and and the
  48. 1:50papers that you'll be reading as well as
  49. 1:52what's the homework schedule to expect
  50. 1:54the project proposal and project
  51. 1:56structures as well.
  52. 1:58So, in today's lecture we'll start with
  53. 2:00an overview of large language models.
  54. 2:03Just how the scaling trends have evolved
  55. 2:05over the last 5 years and then we'll
  56. 2:08focus more on what we will cover in this
  57. 2:10class. And then from there
  58. 2:12in the second half of the
  59. 2:14this lecture we'll cover the course
  60. 2:15logistics and that part you should pay a
  61. 2:18lot of attention to because that
  62. 2:19influences your grades.
  63. 2:23So, let's take a look at an overview of
  64. 2:25the trends for large language models.
  65. 2:27So, one of the aspects that has been
  66. 2:29mind-blowing since GP3 came out is that
  67. 2:34there is a
  68. 2:35as you scale up the number of parameters
  69. 2:38in a model they get better and what this
  70. 2:40means is that language models like BERT
  71. 2:44and T5 were good but as we increase the
  72. 2:46number of parameters they got really
  73. 2:48better. They they perform much better
  74. 2:50and what this led to is something called
  75. 2:51a scaling loss for large language models
  76. 2:54which are used in building the base
  77. 2:56model for the pre-trained base model
  78. 3:00as you increase the amount of compute.
  79. 3:01So, there are three graphs here. As you
  80. 3:03increase the amount of compute on the
  81. 3:04x-axis the loss function on the y-axis
  82. 3:08goes down and and the more compute you
  83. 3:11have put in the more
  84. 3:13the test test loss goes down which leads
  85. 3:15to a better model. So, that was one big
  86. 3:17aspect that led to GP3 and then all the
  87. 3:20subsequent chat GPT, Palm,
  88. 3:23Gemini and so on. And then similarly as
  89. 3:26you increase the data set size on x-axis
  90. 3:29the test loss goes down further on
  91. 3:31y-axis. So, that's another aspect of
  92. 3:33like another axis of scaling that leads
  93. 3:36to better language models. And
  94. 3:39the fourth one is of course the third
  95. 3:40one is of course parameter count. So, if
  96. 3:42you increase the number of layers in a
  97. 3:44transformer or the amount of parameters
  98. 3:46that are there in the language model
  99. 3:48that improves the loss our and that that
  100. 3:51leads to a better model. And then this
  101. 3:52has been the foundation for a lot of the
  102. 3:55this has been the foundation for a long
  103. 3:57time until last year where this was
  104. 3:59starting to hit some kind of a
  105. 4:01saturation point.
  106. 4:04So,
  107. 4:05from 2018 to almost 2024,
  108. 4:08this graph is a little bit outdated but
  109. 4:11from 2018 to 2024, the as the model size
  110. 4:14has gone up
  111. 4:16almost consistently, we have been
  112. 4:17increasing the the size of the model.
  113. 4:19So, we started with something like BERT
  114. 4:21was 340 million parameters, GPT-2 was
  115. 4:231.5 billion parameters, and then GPT-3
  116. 4:26was 175 billion parameters, and then
  117. 4:29PaLM was 540 billion, and then
  118. 4:32there was a bunch of subsequent models,
  119. 4:34and GPT-4 is estimated to be
  120. 4:36there which is like trillions of
  121. 4:38parameters. So, you can imagine that
  122. 4:39there has been an exponential growth in
  123. 4:41just the model size of for large
  124. 4:43language models. The large stands for
  125. 4:45that they're growing in size, and that
  126. 4:47has been one of the key areas in which
  127. 4:50the models have been getting better.
  128. 4:53So, why do we care about the models
  129. 4:55getting bigger? What does this lead to?
  130. 4:57So, as I was explaining that as the
  131. 5:00models get bigger, they continuously
  132. 5:02improve in performance on natural
  133. 5:04language benchmarks, on various other
  134. 5:06benchmarks, reasoning benchmarks, and so
  135. 5:08on.
  136. 5:09And then other interesting aspect that I
  137. 5:11will show you in a moment is that they
  138. 5:13learn how to do few-shot learning. So,
  139. 5:15earlier you have to fine-tune the model
  140. 5:17for a specific domain, but just by
  141. 5:19giving a few examples, the model can
  142. 5:22follow that template and and reason in
  143. 5:24that same vein which makes it extremely
  144. 5:26easy to prototype things. And then the
  145. 5:30third aspect is that as the models
  146. 5:32become bigger, they have emergent
  147. 5:33behavior where the capabilities like
  148. 5:35reasoning only emerge in larger models.
  149. 5:39So, just to understand few-shot learning
  150. 5:41or zero-shot learning here. So,
  151. 5:44if if the model is given a question like
  152. 5:47or a task like translate English to
  153. 5:49French,
  154. 5:50it's able to give So this is called a
  155. 5:52prompt. Like it's given a task translate
  156. 5:54English to French and then it's asked to
  157. 5:55translate cheese to whatever is the
  158. 5:57French word. If the model can predict
  159. 5:59the answer without
  160. 6:01actually being trained on the specific
  161. 6:03task, then that would be called
  162. 6:04zero-shot learning. And then few-shot
  163. 6:06learning,
  164. 6:07in addition to giving the
  165. 6:09description of the task, you're also
  166. 6:10giving a few examples. So in this
  167. 6:12particular case, it's given translate
  168. 6:14English to French and it's given a few
  169. 6:15examples of the translation from English
  170. 6:18to French and then it's asked to
  171. 6:19translate cheese and it's able to
  172. 6:21translate that and you can see that this
  173. 6:23capability shows up in the large
  174. 6:26language models across a large number of
  175. 6:28tasks and that has been one of the key
  176. 6:29areas that GPT-3 and Palm and other
  177. 6:33models enabled and then that
  178. 6:35subsequent innovations came from
  179. 6:37reasoning aspects of this.
  180. 6:39So on the reasoning side,
  181. 6:41as models have become bigger, they have
  182. 6:44this emergent behavior of reasoning
  183. 6:45which Azalia will tell us a little bit
  184. 6:46more about.
  185. 6:48>> So as the models become bigger, not only
  186. 6:51we have this kind of a predictive
  187. 6:53scaling laws property that we kind of
  188. 6:56know how the loss function's going to go
  189. 6:58down as we throw in more compute data
  190. 7:00and parameters in the model, there are
  191. 7:03new kind of behaviors that appear in the
  192. 7:07model that they didn't have before and
  193. 7:08we never could predict that until we had
  194. 7:11these bigger models and saw these kind
  195. 7:12of behavior in them. And one of the most
  196. 7:16important
  197. 7:18one of those behaviors is the emergent
  198. 7:21is the chain of thought behavior. And
  199. 7:24for those of you who are not familiar
  200. 7:26with this, here is how it works. So in a
  201. 7:29usual prompt prompting of a model, we
  202. 7:32can ask a model in this case a
  203. 7:34a math problem
  204. 7:36and then we can give it a one-shot
  205. 7:38example. Here is a math problem, here is
  206. 7:40the answer. Now I ask you a similar but
  207. 7:44not exact and not exactly the same math
  208. 7:46problem, and the model is expected to
  209. 7:48answer that.
  210. 7:50Um
  211. 7:51And the model might be able to use the
  212. 7:53the one-shot example or it might not be.
  213. 7:55But we can do better here by not only
  214. 7:59give an example in but also provide the
  215. 8:02reasoning or the chain of thought on how
  216. 8:05we got to that answer. So, in this case,
  217. 8:07the question is a very simple question.
  218. 8:10Roger has five tennis balls. He buys two
  219. 8:13more cans of tennis balls. Each can Each
  220. 8:16can has three tennis balls. How many How
  221. 8:19many total tennis balls does he have
  222. 8:21now? And instead of just saying 11, like
  223. 8:23we're walking the model through how to
  224. 8:25get to this.
  225. 8:26Um Roger started with five balls. Two
  226. 8:28cans of three tennis balls is six. And
  227. 8:32uh 5 + 6 is 11.
  228. 8:34Uh And with this example, then the model
  229. 8:37has become familiar with the process to
  230. 8:41get to the answer, and it can leverage
  231. 8:42that to answer new problems.
  232. 8:46Well, obviously this is a very simple
  233. 8:48problem. Any like one-B parameter model
  234. 8:50nowadays can solve this. Doesn't need a
  235. 8:53an example or a few shot or a chain of
  236. 8:56thought. But the chain of thought
  237. 8:57property itself is a property that is
  238. 9:00holding to this day and it's a very very
  239. 9:02important property for the reasoning
  240. 9:05models and all the thinking models and
  241. 9:07all the prog and many much of the
  242. 9:09progress that we have seen um
  243. 9:11in the past year or so.
  244. 9:14Now, um
  245. 9:15this property again appears as we have
  246. 9:18larger and larger models. Here are three
  247. 9:21models, Lambda, GPT, and PaLM. And as
  248. 9:24you can see, the chain of thought and
  249. 9:26this is some results on the math some
  250. 9:28math data set. And these models
  251. 9:32when they're smaller, like eight billion
  252. 9:35parameter for Lambda or
  253. 9:37um deep for GPT around 7 billion. They
  254. 9:40can't really benefit from chain of
  255. 9:42thought. Like it doesn't do anything for
  256. 9:44them. But as they become larger
  257. 9:47or for a palm model again at 8 billion,
  258. 9:50it can leverage this chain of thought
  259. 9:52property and learn from the reasoning
  260. 9:55that is and the the process that is
  261. 9:57provided in the context in order to
  262. 10:00solve problems better.
  263. 10:03And not only that, there are other kind
  264. 10:05of abilities to solve new task as we
  265. 10:08increase the size of the models. Like
  266. 10:10for example, small models can all of a
  267. 10:12sudden solve mod arithmetics better or
  268. 10:15solve
  269. 10:17word unscramble problem just by having
  270. 10:20this larger size and this property. You
  271. 10:23see that all of a sudden it appears at a
  272. 10:25certain size.
  273. 10:27And because of all of this, we still
  274. 10:30as in frontier companies and labs are
  275. 10:32still interested in pushing the the the
  276. 10:35scaling laws and not only get the
  277. 10:38natural kind of progression, but also we
  278. 10:41are we we will see more and more of
  279. 10:42these kind of emergent behavior that we
  280. 10:45are
  281. 10:45that is going to be very important.
  282. 10:49Now, a little bit of history here. So
  283. 10:52chat GPT was launched in
  284. 10:55November 2022.
  285. 10:58Obviously, it was one of the most
  286. 10:59successful
  287. 11:01kind of
  288. 11:02apps or software ever created. The time
  289. 11:05to reach 1 million users for it was
  290. 11:095 days, which is significantly
  291. 11:13faster than any that many of the other
  292. 11:16famous
  293. 11:17software that you can see there or
  294. 11:18services that you can see there. And
  295. 11:20there were pieces of
  296. 11:22kind of innovation on top of just
  297. 11:25scaling up the parameter size of the
  298. 11:27model that were very important to make
  299. 11:30chat GPT what it was and to make that
  300. 11:33kind of leapfrog and over the previous
  301. 11:36models like GPT-3 and so on. And two two
  302. 11:40important piece here but were
  303. 11:43um the instruction tuning and um the
  304. 11:46reinforcement learning from human
  305. 11:48feedback which which we're going to
  306. 11:50briefly mention in the next slides but
  307. 11:53throughout this course we're going to
  308. 11:54learn more and more about them. Um so
  309. 11:58let's
  310. 12:00first and then um we're going to learn
  311. 12:02about all of these in more details but
  312. 12:05let's just take a step back and see how
  313. 12:08the process works. So the pre-training
  314. 12:10step is
  315. 12:12the step that
  316. 12:13the the beginning of any language model
  317. 12:16training.
  318. 12:17Uh that's the easiest step and we just
  319. 12:19train the model to predict the next
  320. 12:21token out of all sort of text and data
  321. 12:24and so on.
  322. 12:25And then this is the fine-tuning step
  323. 12:27that was a key differentiating factor
  324. 12:30for a model like chat GPT. Um and let's
  325. 12:33start with um
  326. 12:36uh the first aspect of fine fine-tuning
  327. 12:39which is kind of alignment between human
  328. 12:41preferences.
  329. 12:43So when a model is pre-trained it has no
  330. 12:46sense it has seen all data on the
  331. 12:48internet on the in the books everywhere
  332. 12:51but it has no sense of like what is
  333. 12:53right and wrong and what is it just have
  334. 12:56it this statistically knows about the
  335. 12:57state of the world but does it it
  336. 12:59doesn't exactly know things or know how
  337. 13:01to follow instructions. So the next step
  338. 13:04in training these models
  339. 13:06uh is the the the the [clears throat]
  340. 13:08step where we try to steer the AI models
  341. 13:11to follow the goals and preferences uh
  342. 13:15and values of humans. Um
  343. 13:18and this is still a big problem it's a
  344. 13:20big issue we we haven't like mastered it
  345. 13:23yet but as the models become as we
  346. 13:26progress models are becoming better and
  347. 13:28much more uh kind of like
  348. 13:31uh
  349. 13:32powerful in the things that they can do.
  350. 13:35So, it turns out that we can fine-tune
  351. 13:37the models to be aligned. For example,
  352. 13:40here are some graphs that show what if
  353. 13:42we take our base base model that's just
  354. 13:45pre-trained and fine-tune it for things
  355. 13:48like sensibleness or safety. And
  356. 13:52these are like these are data that that
  357. 13:55we have collected. High-quality data for
  358. 13:58kind of showing the model what it what
  359. 14:00we mean by what's safe and what's unsafe
  360. 14:03or what's sensible and what doesn't make
  361. 14:05sense. And these are like more curated
  362. 14:07like more highly curated data that we
  363. 14:10pass to the model for fine-tuning and to
  364. 14:12make the model more aligned with the
  365. 14:13values or the or the preferences of
  366. 14:16humans.
  367. 14:18Um
  368. 14:21So,
  369. 14:22going back, let's just walk through this
  370. 14:25process again. So,
  371. 14:28the first stop when we take a
  372. 14:30pre-trained language model is
  373. 14:33fine-tuning with next token prediction,
  374. 14:35which follows the same process as
  375. 14:38pre-training, but this time on data that
  376. 14:41is much more higher quality.
  377. 14:44For example, this could be data from
  378. 14:47books, creative essays,
  379. 14:50data that companies pay a whole lot
  380. 14:52millions of dollars or hundreds of
  381. 14:54millions of dollars potentially to buy
  382. 14:56this data that's really high quality,
  383. 14:58and then we train the we fine-tune the
  384. 15:00model on those. And the model becomes
  385. 15:03much better as a result of that.
  386. 15:06Um
  387. 15:07The The next step is instruction tuning.
  388. 15:11And by instruction tuning, what we mean
  389. 15:13is that we show the model again
  390. 15:16traditionally in the past 2 years, this
  391. 15:20instruction tuning data is like a
  392. 15:22combination of human generated data or
  393. 15:24templates and then and then and the
  394. 15:26synthetic data. But, the way this
  395. 15:28instruction to fine-tuning works is that
  396. 15:31we do have
  397. 15:33instruction and then question answer
  398. 15:36pairs
  399. 15:37where the model learns how to follow the
  400. 15:40questions and answers them. For example,
  401. 15:42here an instruction for
  402. 15:45tuning data set could be about the
  403. 15:47weather like please answer the following
  404. 15:49question. What is the boiling point of
  405. 15:52nitrogen? And then that this is the
  406. 15:53answer.
  407. 15:54Or, we can have chain of thought
  408. 15:56fine-tuning where we
  409. 15:59show the model how it can walk through a
  410. 16:01process to get to the answer. And then
  411. 16:04we have the label, we have the results
  412. 16:06over here. And this is like these pairs
  413. 16:08of like questions and instructions and
  414. 16:10answers. And again, this this data set
  415. 16:13is very um is
  416. 16:16is there's a lot of effort that goes
  417. 16:18into this data set and the quality of
  418. 16:19data set and the uh generality of it uh
  419. 16:22has a lot of impact on the quality of
  420. 16:25the model that we get at this stage.
  421. 16:27Um and after this point in the model
  422. 16:30becomes more and more like um
  423. 16:34like the models we see today. Like you
  424. 16:35can ask them questions, you can go back
  425. 16:38and forth with them. They they have this
  426. 16:40sense of like how to uh perceive a
  427. 16:43question and how to walk through kind of
  428. 16:46uh some sort of like process to get to
  429. 16:48to an answer.
  430. 16:51And the next step after instruction
  431. 16:53fine-tuning is this process of
  432. 16:56um using human preferences
  433. 16:59and fine-tuning the model based on that.
  434. 17:01And this process is called RLHF or
  435. 17:03reinforce reinforcement learning from
  436. 17:05human feedback. Um the way this is
  437. 17:08different from the previous system is
  438. 17:10the way we create the objective function
  439. 17:13and uh create the data. So, in this
  440. 17:15case, instead of like just creating some
  441. 17:18supervised prompt and labels, we are
  442. 17:21basically creating a reward model out of
  443. 17:25human preferences. So, companies spend a
  444. 17:29lot of money
  445. 17:30uh
  446. 17:31asking humans, sometimes experts,
  447. 17:33sometimes just
  448. 17:35humans, normal humans, uh about
  449. 17:37questions and the answers generated by
  450. 17:40the model. And we ask the the humans to
  451. 17:43rate them
  452. 17:44to see which one is correct and is not
  453. 17:46correct. And that's how we can create
  454. 17:49some sort of a reward model here.
  455. 17:51Um and this reward model is instead
  456. 17:54instead of human, then we can use the
  457. 17:56reward model in order to kind of like
  458. 17:58guide the parameters of our LLM towards
  459. 18:02uh generating answers that are in line
  460. 18:04with this reward model. So, basically,
  461. 18:06we want the the generations by the model
  462. 18:10uh to be such that this reward model
  463. 18:11says, "Yes, these are good generations."
  464. 18:14Um we're going to learn more about this
  465. 18:16here, but I wanted We wanted to you to
  466. 18:18have um the high-level idea of what
  467. 18:21RLAIF means. Uh and we can collect We
  468. 18:24can have different reward type different
  469. 18:26types of reward. For example, we could
  470. 18:28ask the model to reward a pair of
  471. 18:30answers based on their correctness or
  472. 18:32helpfulness or specificity or
  473. 18:35harmlessness, all sort of reward
  474. 18:37functions that we can define. And
  475. 18:39depending on how we want the models to
  476. 18:41be and what we care most about, we can
  477. 18:44weight these different reward models and
  478. 18:46kind of use that in the RLAIF process.
  479. 18:50So, these step at a at a high level, of
  480. 18:53course, there's a lot of effort goes
  481. 18:55into that, but like pre-training and
  482. 18:57then
  483. 18:58um
  484. 18:59fine-tuning on higher-quality data,
  485. 19:01instruction tuning, and RLAIF are were
  486. 19:04the core kind of components that made um
  487. 19:08a model like ChatGPT over over something
  488. 19:12that existed over all the large models
  489. 19:15um
  490. 19:16like GPT-3 and prior models. So, that
  491. 19:18made the huge difference in how good and
  492. 19:21capable the models were.
  493. 19:23Um
  494. 19:24Uh
  495. 19:25so
  496. 19:26so that was very cool up until last year
  497. 19:29or a year a year year and a half ago,
  498. 19:32pre-training and then fine-tuning were
  499. 19:33the big pieces.
  500. 19:35Uh but since a year and a half ago, it
  501. 19:37turns out inference is also a frontier
  502. 19:41for making the models much more capable.
  503. 19:44Um
  504. 19:45so
  505. 19:46and that
  506. 19:48opened like a whole set of whole lot of
  507. 19:50new research and directions and ways
  508. 19:52that we can make the model better.
  509. 19:54Um so let's think let's talk about it a
  510. 19:58little bit. Like this is a work we did
  511. 20:00in my lab last year
  512. 20:03uh last summer. It it was called large
  513. 20:05language monkeys. Um
  514. 20:08and it's kind of inspired by the
  515. 20:09infinite monkey theorem and it's related
  516. 20:12to inference scaling. Um
  517. 20:14how many of you have heard of the
  518. 20:16infinite monkey theorem?
  519. 20:18Okay, that's a good amount. So, the idea
  520. 20:21of the infinite monkey theorem uh what
  521. 20:23it says is that
  522. 20:24it's not proven, but what it says is
  523. 20:27that if you have a monkey and a kind of
  524. 20:29a typing machine and then we keep
  525. 20:32letting the monkey type all day forever,
  526. 20:36um after some time you will have the
  527. 20:38works of William Shakespeare in in the
  528. 20:40things that the monkey types.
  529. 20:42Um
  530. 20:43so we were inspired by that to name our
  531. 20:45project. Uh but the idea here was that
  532. 20:48let's let's have the LLM be the monkey
  533. 20:52and uh let's
  534. 20:54uh ask the model over and over again to
  535. 20:57solve a given input problem.
  536. 21:01Uh you can think of it as parallel
  537. 21:02sampling or parallel generation. So,
  538. 21:05instead of asking the model once to
  539. 21:06solve the input problem, you can ask it
  540. 21:08many times. And also, let's assume you
  541. 21:11have some sort of a verifier or
  542. 21:13selection mechanism, so you can pick
  543. 21:16which one of these generated responses
  544. 21:19were correct.
  545. 21:21Um and then you output that in your
  546. 21:23system. That becomes the out the final
  547. 21:25output. So, the model, instead of
  548. 21:27generating one answer, generates many,
  549. 21:29many answers. And then your verifier
  550. 21:31selects which one of them is correct and
  551. 21:33then outputs one of the correct ones. Um
  552. 21:36you can think of a verifier as, say,
  553. 21:38some unit tests. If the problem is a
  554. 21:41generating code, the verifier can could
  555. 21:43be the unit test that we run against the
  556. 21:45code and we see which which one of the
  557. 21:48code generations passes all the unit
  558. 21:50tests and so on.
  559. 21:52Um The reason this is very This is a a
  560. 21:56This can be a possible possibility here
  561. 21:58is that models are um do not are not uh
  562. 22:03there is some variance in the data the
  563. 22:05models generate responses. It's not
  564. 22:07deterministic. And you can even control
  565. 22:10the variation in the model responses
  566. 22:12with this thing called temperature. So,
  567. 22:14you can force the model or encourage the
  568. 22:16model to generate more different
  569. 22:18responses as you ask a question.
  570. 22:22Um
  571. 22:23And here, now let's see some of the
  572. 22:26results of this repeated sampling. For a
  573. 22:29bunch of tasks like math and coding
  574. 22:32benchmarks, we increased the number of
  575. 22:36samples per problem from one, this is
  576. 22:39the normal one,
  577. 22:41uh to 10,000.
  578. 22:43And here we are showing the coverage or
  579. 22:45the fraction of problems that are solved
  580. 22:48by at least one of these samples.
  581. 22:50And what we are seeing here is that um
  582. 22:54so the red line, the red dashed one, was
  583. 22:56the GPT-40
  584. 22:58model. And while these blue and green
  585. 23:02lines, which were the llama 8B, llama 3
  586. 23:058B, and 7B, were worse than GPT for our
  587. 23:08model with one sample, but if we
  588. 23:11increase the number of samples from
  589. 23:13these models, in all of these cases,
  590. 23:16they do better than the GPT 4 model.
  591. 23:21And what it says is that it kind of
  592. 23:24seems like the model or models already
  593. 23:26know a whole lot more
  594. 23:29than what you get out of them when you
  595. 23:31just ask them once, right? So, this is
  596. 23:33the kind of the underlying property of
  597. 23:37inference scaling because it seems like
  598. 23:39we can get a whole lot of a whole lot
  599. 23:41more capability and problem-solving kind
  600. 23:44of ability from these models if we just
  601. 23:47bring in this inference scaling. Here,
  602. 23:50you're showing repeated sampling, but
  603. 23:51there are many other ways to do that.
  604. 23:53And we are So, the reason it's called
  605. 23:56inference scaling is that we're not
  606. 23:57touching any of the parameters of the
  607. 23:59model. The model is fixed, and we are
  608. 24:01just like at inference time, we are
  609. 24:03creating different ways to generate to
  610. 24:06kind of produce generations from the
  611. 24:08model and use them to generate
  612. 24:11higher-quality answers or answers to
  613. 24:13harder problems for the model. Um
  614. 24:15the interesting part here is that for
  615. 24:17some of these problems, out of these
  616. 24:1910,000 solutions, maybe like three or
  617. 24:22four of them were correct for a single
  618. 24:25problem. So, it shows that how how kind
  619. 24:28of
  620. 24:29um
  621. 24:30uh how important it is to to scale the
  622. 24:33inference to really get to the
  623. 24:35core capability of the models.
  624. 24:56Sorry, what's the question?
  625. 24:57>> What is the difference of GPT-3 and when
  626. 24:59we select traversing all the possible
  627. 25:01answers and we do
  628. 25:03and select and select all the
  629. 25:04>> So, the possible answers need to be
  630. 25:06generated somehow by the model, right?
  631. 25:10So, so this is like the space of all
  632. 25:13possible answers to the model is way
  633. 25:15bigger, like like right? We can like if
  634. 25:18we do like a tree search or a random
  635. 25:20search, it's like way bigger, right?
  636. 25:22There's no way to like hit even like
  637. 25:24imagine like we are asking a human like
  638. 25:28just sit down and solve this problem,
  639. 25:30right? There is a limit to
  640. 25:32Um of course there is no limit to human
  641. 25:35creativity, human's creativity, but
  642. 25:37there is a limit to how many generations
  643. 25:39we can have, right? Or if you're
  644. 25:41randomizing, there's a whole lot set of
  645. 25:44answers that can be generated and it's
  646. 25:46and this is like highly still highly
  647. 25:48sample efficient, right? 10,000 is not a
  648. 25:51whole lot, especially like for example
  649. 25:53for the math um F2F,
  650. 25:56some of these problems are really hard
  651. 25:58like IMO level problems. Like these are
  652. 26:00really hard problems that a tiny model
  653. 26:03like a 7 and a Llama 8B can solve.
  654. 26:08>> How does it compare how how does the
  655. 26:09latency compare with
  656. 26:12like when you do actually generate all
  657. 26:14the samples like compared to the GPT-3
  658. 26:17or all, right? Like how does the latency
  659. 26:21>> Yeah, of course there is a trade-off um
  660. 26:24and we we have we touch on that in the
  661. 26:26in the lecture that I go more details
  662. 26:28toward this. The parallel samples, the
  663. 26:30good thing about them that they're they
  664. 26:32can be running parallel.
  665. 26:34Um so, from a latency perspective,
  666. 26:36that's less of an issue, but of course
  667. 26:38there is the frontier of cost trade-offs
  668. 26:40between how much compute you're spending
  669. 26:43and and we will look into that. And it
  670. 26:45varies, it varies depending on the type
  671. 26:47of and complexity of the problems.
  672. 26:50Yes.
  673. 26:52>> The latency when you have
  674. 26:53a pair viable depending
  675. 26:57Yeah.
  676. 26:59Yes, great question again. It's a very
  677. 27:01hard When you have verifiers, it's much
  678. 27:04easier. When you don't have verifiers,
  679. 27:06there's this whole set of research on
  680. 27:08how to train LLMs judge or LLMs reward
  681. 27:12functions or LLMs with tools becoming
  682. 27:15and we're going to learn about all of
  683. 27:16it. We have a lecture just dedicated to
  684. 27:18verifiers, so.
  685. 27:22Yeah.
  686. 27:35No,
  687. 27:37yeah, we can't like have the temperature
  688. 27:38being too high because it's just it's
  689. 27:40going to be gibberish, like the model
  690. 27:42doesn't generate. So, we
  691. 27:45There's actually like a research project
  692. 27:46last year was like on tuning that or
  693. 27:49like figuring out what temperature.
  694. 27:50Usually, if you go beyond like 1.2 or
  695. 27:54so, it's
  696. 27:55it's not great, yeah.
  697. 27:57Yeah.
  698. 27:58But there are there are other tricks
  699. 27:59that you can do to
  700. 28:00kind of kind of uh
  701. 28:03make the model be more um
  702. 28:05like have more diversity in the type of
  703. 28:08answers
  704. 28:09and that can be useful.
  705. 28:11Uh
  706. 28:12All right.
  707. 28:13Um
  708. 28:16So,
  709. 28:18let's look at this. So, now, again,
  710. 28:21going back to the events of last year,
  711. 28:24year and a half, um we had the DeepSeek
  712. 28:27model. I think it came out in
  713. 28:29>> December.
  714. 28:30>> December.
  715. 28:32>> DeepSeek came out December 2024.
  716. 28:35Uh oh, well.
  717. 28:36>> It's been out for a
  718. 28:38>> Short time or long time, I don't know.
  719. 28:40The both. Uh so, so then models like
  720. 28:44DeepSeek came last year. So, basically,
  721. 28:46a core kind of innovation in Deep Seek
  722. 28:49and then the 01 series Gemini thinking
  723. 28:51and such were that. Now, we are kind of
  724. 28:54bringing this fine-tuning and test time
  725. 28:56scaling together because with this test
  726. 28:59time scaling and the models themselves,
  727. 29:01we have this new like kind of engine
  728. 29:04that we can generate a whole lot of
  729. 29:06synthetic data um
  730. 29:08for for example, for problems like for
  731. 29:11math problems where we know the answer,
  732. 29:13we can have the model generate different
  733. 29:15like kind of answers that leads to that
  734. 29:17final final kind of golden answer. Or
  735. 29:21for the coding problems, we can use the
  736. 29:23model to generate tons of data during
  737. 29:26test time scaling,
  738. 29:27uh tons of like quality data to solve
  739. 29:30coding problems, and that becomes part
  740. 29:32of our training set now. We can use that
  741. 29:34to fine-tune the model
  742. 29:36to to become better. So, that kind of
  743. 29:38bringing these two together became a big
  744. 29:41piece in thinking models and reasoning
  745. 29:44models. Um and this this is like a This
  746. 29:47is like a an area that is like really
  747. 29:50really important. There's just so much
  748. 29:53to be explored in this because again,
  749. 29:55there there is no It's kind of
  750. 29:56open-ended, right? There's no boundary
  751. 29:58in how good the models can become with
  752. 30:01test time scaling and then bringing that
  753. 30:04back to the process of training the
  754. 30:06model or fine-tuning the model to become
  755. 30:07better is very exciting, and that's kind
  756. 30:10of the self-improving piece that we are
  757. 30:13very excited about.
  758. 30:16Um so, a little bit about reasoning
  759. 30:18models. Um
  760. 30:20in the language monkeys, what we were
  761. 30:21showing was the coverage. Like if we had
  762. 30:24access to a verifiers, how uh we we can
  763. 30:27see the kind of a log linear kind of
  764. 30:29scaling laws with the number of samples.
  765. 30:31Um
  766. 30:32and all OpenAI, when they released 01
  767. 30:36last September, um they showed a a log
  768. 30:40linear relationship this time with pass
  769. 30:42at one for these like hard hard Amy uh
  770. 30:47benchmark which is like I said a really
  771. 30:49difficult uh math questions. So, as
  772. 30:53they're show what they're showing here
  773. 30:54is that as they're increasing test time
  774. 30:56compute and this is in log scale
  775. 30:59um
  776. 31:00uh the the accuracy the pass at one
  777. 31:02accuracy of the model goes up and this
  778. 31:05is for test time alone. Uh previously
  779. 31:09uh it this has been shown for training
  780. 31:11but it's very interesting that this kind
  781. 31:12of scaling applies to test time as well
  782. 31:16um without changing the parameter count
  783. 31:18of the model. Um
  784. 31:22Um I'm going to walk you through like
  785. 31:24one a few examples of how this kind of
  786. 31:27reasoning or test time uh scaling
  787. 31:30uh kind of is
  788. 31:32works with models like O3 and or Gemini.
  789. 31:35So, one motivation here is that for
  790. 31:38difficult problems just like humans
  791. 31:41think a lot more, spend a lot more time,
  792. 31:43or consider many different strategies,
  793. 31:46uh thinking models do the same and they
  794. 31:50may use a chain of thought or other
  795. 31:52techniques to just go go about like
  796. 31:54solving a problem um
  797. 31:57and
  798. 31:58there are different steps to that. For
  799. 32:00example, um problem analysis is one step
  800. 32:04like the model first sees a problem and
  801. 32:06tries to analyze it. Um then it can do
  802. 32:09the task decomposition breaking a task
  803. 32:12into kind of simpler tasks that are more
  804. 32:15addressable. Um then there is the self
  805. 32:18uh evolution strategies where the model
  806. 32:21kind of try something, sees the
  807. 32:23feedback, for example runs some
  808. 32:26tests on the code or use a uses a
  809. 32:29calculator or just judges the answer and
  810. 32:32it can use that feedback to optimize
  811. 32:34itself. Um there's self-correction and
  812. 32:37there are alternative proposals if
  813. 32:39something doesn't work, the model can
  814. 32:41backtrack and kind of, um,
  815. 32:44try different approach. These are some
  816. 32:46key principle principles that the model,
  817. 32:50uh, probably at some point, uh, pieces
  818. 32:53of it were trained as part of the
  819. 32:55training kind of data set were curated
  820. 32:57by humans, but a big part of it is also
  821. 33:00the model kind of acquiring these skills
  822. 33:03during this fine-tuning process and RL
  823. 33:07like RL from synthetic data process that
  824. 33:10the model does. Um, here is an example
  825. 33:13of like how O 1 does analysis. Um,
  826. 33:17uh, the model is asked to write a bash
  827. 33:19script, um,
  828. 33:21uh, that takes a matrix and then
  829. 33:23outputs, uh, the transpose of the that
  830. 33:25matrix. The model starts with just like
  831. 33:28humans, like starts like thinking, what
  832. 33:32are the pieces important pieces here?
  833. 33:34So, the user is requesting a bash
  834. 33:36script, um, let's understand the input
  835. 33:39and output, uh, formats of this matrix,
  836. 33:42um,
  837. 33:43and and so on. So, the model just thinks
  838. 33:45itself,
  839. 33:46um, and amazingly this kind of like
  840. 33:50it's like a progression of chain of
  841. 33:52thought. This is like helping the model
  842. 33:54finding the answer, but the difference
  843. 33:56between chain of thought and this is
  844. 33:57that the model itself is
  845. 33:59producing this chain of thought.
  846. 34:02Um, there's of course task
  847. 34:03decomposition, like in this case for the
  848. 34:07the approach, uh,
  849. 34:09the model thinks about parsing the
  850. 34:11input, building the matrix as an array
  851. 34:13of, uh, as as an array of arrays, and so
  852. 34:15on. Um,
  853. 34:17there's also self-correction, which is a
  854. 34:19big important piece of, um,
  855. 34:21this is is an important piece here, and
  856. 34:23I don't know how many of you have seen
  857. 34:25that when trying with the models that
  858. 34:27you can see the thinking traces. Uh, and
  859. 34:30this is actually pretty common, like the
  860. 34:31model starts something and then in the
  861. 34:33middle says, "Wait, the correct for like
  862. 34:36there's something wrong, maybe. Um, or
  863. 34:39and maybe I need to fix that." And it's
  864. 34:42very, very cool that the model can do
  865. 34:43that itself. Um, so reasoning models
  866. 34:46when they came out, like models like 01,
  867. 34:49compared to a model like GPT-4o,
  868. 34:52which model, um, they tend to be better
  869. 34:55in, obviously, the reasoning task. For
  870. 34:58example, in math calculation, data
  871. 35:01analysis, programming and such, they all
  872. 35:05kind of outperform GPT-4o, but not
  873. 35:08necessarily in personal writing or
  874. 35:10editing text and so on.
  875. 35:12Yeah. Question?
  876. 35:15>> Do you think the gains due to this
  877. 35:18asking for a reasoning process due to
  878. 35:20actually the act of generating this
  879. 35:22reasoning process or just the act of
  880. 35:24asking the model to think or to use the
  881. 35:27composition at all? Like, for example,
  882. 35:29if you
  883. 35:31think step-by-step but don't generate
  884. 35:33out loud,
  885. 35:34like don't actually generate those
  886. 35:36thought processes which are there but
  887. 35:37without saying
  888. 35:39>> Yeah.
  889. 35:40Um,
  890. 35:42I repeat the question. Like, do you
  891. 35:43you're saying that is it the Do you
  892. 35:45think the reasoning models are becoming
  893. 35:47what they are is based on the Is it
  894. 35:50based on the loud way of thinking?
  895. 35:53>> I I think the question is that Is it
  896. 35:55because of the, um, reasoning process or
  897. 35:58is it because of things step-by-step?
  898. 35:59The chain of thought.
  899. 36:01Like, is it the data thinking difference
  900. 36:03or is it the the instruction? Um,
  901. 36:05>> It's I mean, so the data basically has
  902. 36:08made the model kind of become a
  903. 36:10generalized thinker, right?
  904. 36:13Like, the model can and the all of it
  905. 36:16All of these steps, like breaking down
  906. 36:18the problem, being able to backtrack,
  907. 36:20being being able to do analysis, all of
  908. 36:22these are these skills that the model
  909. 36:25has learned during this thinking
  910. 36:27optimization process that now generalize
  911. 36:30to other things and they're helping the
  912. 36:32model right now.
  913. 36:34>> So, I think the other way to look at it
  914. 36:35is as Ali presented repeated sampling.
  915. 36:37So, if you had just a base model right
  916. 36:40after pre-training, it would be able to
  917. 36:42do some reasoning.
  918. 36:44But, at the same time it will generate
  919. 36:45different kinds of reasoning chains and
  920. 36:47it doesn't quite know which one is
  921. 36:49correct. So, a lot of the
  922. 36:52what we will cover in train time or test
  923. 36:54time scaling really comes down to it
  924. 36:55learns which is correct. So, pass at one
  925. 36:58accuracy goes up which is what you were
  926. 37:00seeing in the reasoning models as
  927. 37:01opposed to like pass at K or coverage
  928. 37:04which is what you were seeing in the
  929. 37:05repeated sampling results.
  930. 37:07>> Yeah. And and one other way to think
  931. 37:10about like yes, these kind of like kind
  932. 37:12of
  933. 37:13deep thinking and things that the model
  934. 37:16generates is actually helping the model
  935. 37:19every time to solve a new problem.
  936. 37:21Um
  937. 37:22and although it's like very expensive
  938. 37:25for the model to generate those things,
  939. 37:27still like we want them to generate
  940. 37:30those because it
  941. 37:31leads to better answers.
  942. 37:34Um
  943. 37:35Any other questions? Yes.
  944. 37:37>> Do you use a different model for the
  945. 37:39reasoning stuff versus generating the
  946. 37:41final answer? Like maybe a smaller or
  947. 37:43like a probabilistic one just for the
  948. 37:44reasoning and the final answer is the
  949. 37:46large model.
  950. 37:48>> Um
  951. 37:49So, typically the reasoning capabilities
  952. 37:51have gone up with the model size. So, if
  953. 37:54if anything uh you would use the larger
  954. 37:57model for reasoning traces and then
  955. 37:59maybe you collect a bunch of reasoning
  956. 38:01traces and then have a smaller model
  957. 38:02summarize the answer.
  958. 38:03>> Yeah. So, the models like this is like
  959. 38:06at least currently, things may change,
  960. 38:08they like their own traces more. Even if
  961. 38:11they're the traces are coming from a
  962. 38:13better model, they tend to like their
  963. 38:16traces their own generated traces more.
  964. 38:19And we're going to have talk about
  965. 38:20swirl, this is one of the papers that uh
  966. 38:24>> the multi-step reasoning
  967. 38:24>> the multi-step reasoning that we talked
  968. 38:26about. What if we bring a different
  969. 38:28model, not in the context of generating
  970. 38:31reason traces, but in in the context of
  971. 38:33like evaluating and giving feedback. And
  972. 38:36we we're going to see that as well. But
  973. 38:38models, surprisingly or not
  974. 38:41surprisingly, like their own traces a
  975. 38:42lot more.
  976. 38:44>> For reasoning models, how are they
  977. 38:47taught to reason? Is it a hardcoded set
  978. 38:49of sequences of or taught to do traces
  979. 38:51or they somehow fine-tuned to say, "You
  980. 38:54need to do this much or this kind of
  981. 38:56thing that will cause the traces to
  982. 38:58generate."
  983. 38:59>> So, I don't think there's a published
  984. 39:00piece of work that really covers this
  985. 39:02bit. Uh
  986. 39:03>> It's both, yeah.
  987. 39:05>> But it's it's a bit of both. At the same
  988. 39:06time, the base model did have the
  989. 39:09thinking capability to begin with,
  990. 39:10right? It would go do in some go do some
  991. 39:13amount of thinking. One thing that we
  992. 39:15will cover in the classes this notion of
  993. 39:17outcome rewards model and process reward
  994. 39:19model and how you can use that feedback
  995. 39:22to get the model back.
  996. 39:25>> Yeah, there's always some bootstrapping.
  997. 39:27Like, okay, here are different ways.
  998. 39:29Like, chain of thought itself, which is
  999. 39:31heavily used in the instruction tuning
  1000. 39:33of data set,
  1001. 39:35tell shows the model some ways of like
  1002. 39:37how to think.
  1003. 39:39And there could be like some templates
  1004. 39:41showing
  1005. 39:42for the model fine-tuning. But
  1006. 39:45the things that the model, if you just
  1007. 39:46ask them any ask it any question and it
  1008. 39:48comes up with that, there's a whole lot
  1009. 39:50of generalization that. So, models have
  1010. 39:52gone way above like what the data or
  1011. 39:55instructions that are used for training
  1012. 39:57them.
  1013. 40:00Yes.
  1014. 40:01>> Uh can you repeat some of Is there a way
  1015. 40:03to make the number of samples dependent
  1016. 40:05on the problem
  1017. 40:07>> Please speak up.
  1018. 40:08>> The number of samples, can they be
  1019. 40:10dependent on problem difficulty?
  1020. 40:13>> I don't think there's a published piece
  1021. 40:14of work that does that. Uh but
  1022. 40:17yeah,
  1023. 40:18>> we just So,
  1024. 40:20So, when So, there is
  1025. 40:23follow-up work to that where we you use
  1026. 40:25a reward model and then you can use
  1027. 40:27that. So, assuming the reward model has
  1028. 40:29some notion of complexity, if you
  1029. 40:30haven't solved it, it can guide like
  1030. 40:32more sampling or whether it's repeated
  1031. 40:35or parallel.
  1032. 40:36Uh but that's definitely an interesting
  1033. 40:39direction to explore.
  1034. 40:41Yeah.
  1035. 40:42>> [snorts]
  1036. 40:43>> Okay, we need to get to the Oh, we
  1037. 40:46haven't. Right.
  1038. 40:47>> Yeah, let me cover these.
  1039. 40:49>> Okay, so we you now know about large
  1040. 40:52language models and then you heard about
  1041. 40:54how they learned how to think and then
  1042. 40:56they learned how to reason.
  1043. 40:58So, what's next and why does this Why is
  1044. 41:00this course relevant? So, a lot of what
  1045. 41:02this course is about is that large
  1046. 41:04language models as chatbots or as
  1047. 41:07reasoning models are basically still
  1048. 41:08single turn like or or just like in the
  1049. 41:11chat format. So, they're not
  1050. 41:12accomplishing a task for you. They're
  1051. 41:14fun to interact with, but they're not
  1052. 41:16necessarily accomplishing a task for
  1053. 41:18you. What has happened this year
  1054. 41:20almost in the last few months and it's
  1055. 41:22been surprising is that
  1056. 41:24agents like Claude Code or Deep Research
  1057. 41:26have really enabled people to do
  1058. 41:28real-world workflows.
  1059. 41:30So, they're agentic workflows which can
  1060. 41:32achieve tasks that you ask them to do
  1061. 41:34end-to-end. So, for example, if you want
  1062. 41:36to go research and figure out where
  1063. 41:38should I
  1064. 41:40rent a home perhaps for the entire year
  1065. 41:44for if I want to take a class at
  1066. 41:46Stanford.
  1067. 41:47The model would actually be able to do a
  1068. 41:49whole bunch of analysis and like go look
  1069. 41:51at a lot of different websites and
  1070. 41:53actually summarize the results and give
  1071. 41:55you pros and cons of different places.
  1072. 41:57This used to not be possible before. So,
  1073. 41:59this
  1074. 42:00will cover a little bit of how that that
  1075. 42:01becomes possible and how this course
  1076. 42:03allows you to learn about that. And then
  1077. 42:05Claude Code for example, any of you are
  1078. 42:08Codex which is the coding agent from
  1079. 42:10OpenAI, if you're using that, what you
  1080. 42:12will see is that just by giving
  1081. 42:14instructions in English, you can modify
  1082. 42:16files or you can like figure out test
  1083. 42:18cases and and whatnot. So, it really
  1084. 42:21uh is become a coding productivity tool
  1085. 42:23in in the day-to-day workflows for
  1086. 42:25software engineers at this point in
  1087. 42:26time.
  1088. 42:28So, what what is the transition from LLM
  1089. 42:30to agents? So, as I was giving you the
  1090. 42:32example of Deep Research and of uh
  1091. 42:35coding agents, basically the goal
  1092. 42:38basically now the uh model can be given
  1093. 42:41a goal and it will plan out the steps,
  1094. 42:43then it will go interact with uh the
  1095. 42:45environment, and based on the feedback,
  1096. 42:48it will correct its steps until it
  1097. 42:49achieves the goals or it will come back
  1098. 42:51and say, "I cannot achieve the goal."
  1099. 42:53So, this notion of like having some
  1100. 42:54notion of a goal, uh taking actions
  1101. 42:58towards that goal, getting the feedback,
  1102. 43:00and then deciding when to stop, that's
  1103. 43:03what makes agents uh different from the
  1104. 43:05chatbot times of what you were doing
  1105. 43:07before. And um
  1106. 43:10this also might require interacting with
  1107. 43:12tools uh which are external to what the
  1108. 43:15model itself is doing, getting some
  1109. 43:17inputs from there, but it still stays on
  1110. 43:19track of like whatever task it's uh
  1111. 43:22choosing to accomplish, which might mean
  1112. 43:23that it has to have some form of memory
  1113. 43:26to keep track of the task that it's
  1114. 43:28trying to accomplish.
  1115. 43:30So, what has been uh accomplished? So,
  1116. 43:32like in in in several cases in simpler
  1117. 43:34cases, you can achieve these uh um
  1118. 43:37these end-to-end goals like Deep
  1119. 43:39Research can like be accomplished
  1120. 43:40end-to-end. But, in most scenarios,
  1121. 43:42you're still having very static
  1122. 43:44workflows. So, today what exists is
  1123. 43:46closer to agentic workflows where you
  1124. 43:48have um some sort of an input where
  1125. 43:50you're giving a model the goal and then
  1126. 43:52uh
  1127. 43:53what this slide is showing you is that
  1128. 43:55one model is perhaps uh giving the
  1129. 43:57output like a solution and then another
  1130. 43:59model is judging it and then deciding
  1131. 44:01based on that whether the solution
  1132. 44:03should be accepted. So, that's like one
  1133. 44:05orchestration framework that's possible.
  1134. 44:07Uh Deep Research will be more of the
  1135. 44:09second one where you're basically
  1136. 44:10generating
  1137. 44:12you're calling the LLM on multiple
  1138. 44:15possible inputs and then aggregating
  1139. 44:17these
  1140. 44:18things to get the output which will be a
  1141. 44:20summary of the deep research results.
  1142. 44:22So, this is a very
  1143. 44:23cartoonish abstraction of what agentic
  1144. 44:26workflows might look like and you can
  1145. 44:27generalize from there, but instead of
  1146. 44:29having like very open-ended loop that I
  1147. 44:32was showing you here where you're
  1148. 44:34supposed to go take an action from the
  1149. 44:35environment and come back and do some
  1150. 44:37feedback.
  1151. 44:38Um,
  1152. 44:39it's easier for open-ended problems to
  1153. 44:41like construct this graph by hand of
  1154. 44:43like how a human would do it and then
  1155. 44:44like get this feedback perhaps from an
  1156. 44:46LLM which is the LLM evaluator here. So,
  1157. 44:50a lot of the real world workflows still
  1158. 44:52have this paradigm, but in in certain
  1159. 44:54cases we are starting to see signs of
  1160. 44:57life for what's possible in this slide
  1161. 44:59encoding being one and research being
  1162. 45:01another one.
  1163. 45:03So, typically the workflows will have
  1164. 45:05things like LLM calls. So, you would
  1165. 45:07basically call an LLM with an
  1166. 45:09instruction or some form of like input
  1167. 45:11and then you're asking the LLM to give
  1168. 45:13you an output. It will have some form of
  1169. 45:15verifiers. We'll cover verifiers in a
  1170. 45:16whole lecture by itself. It will have
  1171. 45:18some form of critics or judges which is
  1172. 45:21effectively LLM as a judge paradigm.
  1173. 45:24There might be tool calls. For example,
  1174. 45:26for deep research you have to actually
  1175. 45:27go search the web to figure out what
  1176. 45:30exactly is the content that you should
  1177. 45:32be looking at. So, there might be tool
  1178. 45:33calls of that form or
  1179. 45:35getting some value around
  1180. 45:38what exactly is the weather.
  1181. 45:40Um,
  1182. 45:41and similarly search would be another
  1183. 45:43tool call. And then you would
  1184. 45:44orchestrate these in in some form of a
  1185. 45:46workflow. So, a simplest workflow here
  1186. 45:49would be prompt chaining. So, similar to
  1187. 45:51reasoning models where the task gets
  1188. 45:53decomposed into subtasks, prompt
  1189. 45:55chaining would simply be like you have
  1190. 45:56chained a bunch of different subtasks
  1191. 45:58that you're supposed to go accomplish to
  1192. 46:00achieve the end-to-end goal. There might
  1193. 46:02be routing. Routing works for complex
  1194. 46:04tasks where you say, "Okay, if this is
  1195. 46:07very complex, then go do this more
  1196. 46:09complicated set of LLM calls, and if
  1197. 46:11it's less complicated, then do this
  1198. 46:13simpler workflow."
  1199. 46:14Um there might be parallelization where
  1200. 46:16you like deep research is one example
  1201. 46:18where you you can have multiple LLM
  1202. 46:20calls work simultaneously on researching
  1203. 46:23different keywords that you give it as
  1204. 46:25input to the LLM, and then uh finally
  1205. 46:27you aggregate the output, or you might
  1206. 46:29break the task into independent
  1207. 46:31subtasks, and then uh combine uh the
  1208. 46:33solution. Or you might have this notion
  1209. 46:36of orchestrator where you basically are
  1210. 46:38actually using some sort of a
  1211. 46:41In simple words, LLM managers where
  1212. 46:43central LLM is actually doing the
  1213. 46:45planning. So, in Claude code, you
  1214. 46:47actually start to see that that there is
  1215. 46:48some notion of like a plan that it comes
  1216. 46:50up with, and then based on that plan, it
  1217. 46:52will like make subsequent LLM calls.
  1218. 46:55You might have an evaluator or a judge.
  1219. 46:57So, instead of like getting feedback
  1220. 46:59from real-world like user or from some
  1221. 47:01sort of a actual running a unit test, it
  1222. 47:03actually might just use LLM as a judge,
  1223. 47:05and we will have uh some homeworks that
  1224. 47:08will cover this aspect. And then you
  1225. 47:09might have verifiers. Verifiers are
  1226. 47:11things where you can actually verify the
  1227. 47:13output. So, in code for example, if you
  1228. 47:16run the code, how do you know that this
  1229. 47:18code is correct? So, typically as
  1230. 47:20software developers, we write unit
  1231. 47:21tests. Uh so, similarly, verifiers might
  1232. 47:24be running some kind of unit test to
  1233. 47:26check whether what LLM generated is
  1234. 47:28correct. And in domains which are
  1235. 47:30verifiable, uh math, code, um and other
  1236. 47:33domains that are more rule-based, uh
  1237. 47:35this verification is a good way to give
  1238. 47:37feedback back to the model so that um it
  1239. 47:40can correct its steps.
  1240. 47:42So, most of these uh
  1241. 47:44workflows mean that the
  1242. 47:46uh the LLM needs to be better at
  1243. 47:48planning. It needs to be better at
  1244. 47:49multi-step reasoning, and it needs to be
  1245. 47:51better at self-improvement. Like when it
  1246. 47:53makes mistakes, it needs to be able to
  1247. 47:54correct itself. So, effectively, these
  1248. 47:57are sort of new paradigms that the
  1249. 47:59current set of LLMs just with reasoning
  1250. 48:02were not quite accomplishing, and these
  1251. 48:04are some of the topics we do plan to
  1252. 48:06cover in subsequent lectures.
  1253. 48:09And just to drive the point home around
  1254. 48:12coding agents, so this is a very simple
  1255. 48:14example. This is actually
  1256. 48:17I should have updated the slide to four
  1257. 48:18cloud code, but basically, what this is
  1258. 48:20showing is that you have an LM agent,
  1259. 48:22and
  1260. 48:23it's interacting with the computer
  1261. 48:25these days just with the terminal. You
  1262. 48:27give it an instruction where you might
  1263. 48:28tell it that you want to implement a
  1264. 48:30task,
  1265. 48:31and then
  1266. 48:32has some navigation of repository,
  1267. 48:34searching of files, all of these tool
  1268. 48:36calls around like viewing files, editing
  1269. 48:38lines, and then it will go execute a
  1270. 48:40bunch of commands in the terminal, and
  1271. 48:42based on the output, it might be like,
  1272. 48:44"Okay, I need to go edit this other
  1273. 48:46file, or I need to go look at this other
  1274. 48:48file." So, if you look at this loop,
  1275. 48:50this very much mirrors uh
  1276. 48:52what was So, this was not quite reliable
  1277. 48:54last year, and it's just starting to get
  1278. 48:56reliable in what we're seeing in the
  1279. 48:58realm of coding agents now.
  1280. 49:00Yes.
  1281. 49:11I mean, I think the paradigm is very
  1282. 49:13much the same. It's it's mostly a matter
  1283. 49:15of more powerful models, and then better
  1284. 49:17RL.
  1285. 49:19RL with verifiable rewards is working.
  1286. 49:22The train time scaling is working well.
  1287. 49:37I mean, it's computer data, right? One
  1288. 49:40of those two, but like just also, once
  1289. 49:42the models start to get better, there's
  1290. 49:44the self-improvement loop that kicks in.
  1291. 49:47Uh because you can now generate tasks,
  1292. 49:49and the tasks become more reliable. So,
  1293. 49:51in the published pieces of work, if you
  1294. 49:52look at say Code Monkeys, which we coded
  1295. 49:54last year,
  1296. 49:56if you can generate unit tests
  1297. 49:58for whatever code the model generated
  1298. 50:00and then see if the
  1299. 50:02generated unit tests are
  1300. 50:05making things better, then that that
  1301. 50:06that's a very good way to verify things,
  1302. 50:08right?
  1303. 50:09>> Yeah, like model-based. It seems like to
  1304. 50:12some extent, if we have good verifiers,
  1305. 50:15um
  1306. 50:16we can make the model generate the the
  1307. 50:19right code.
  1308. 50:21Um but the question is how do we do
  1309. 50:23that? And there are ways to do it. And
  1310. 50:25we
  1311. 50:26we would be happy to
  1312. 50:28for you guys to take research projects
  1313. 50:30in that domain, too. But obviously, it's
  1314. 50:32an active research area, but there are
  1315. 50:35ways to make improvements that we can
  1316. 50:38discuss.
  1317. 50:38>> what you're alluding to is this notion
  1318. 50:40of generator-verifier gap. So, it's easy
  1319. 50:42for models to generate a whole bunch of
  1320. 50:44nonsense or sensible set of like
  1321. 50:46reasoning traces or like useful set of
  1322. 50:48content. But at the end of the day,
  1323. 50:50whether that's useful or not, we need
  1324. 50:52feedback loop for that. And if you're
  1325. 50:54creative writing, how much feedback can
  1326. 50:55you get? So, human feedback ends up
  1327. 50:57becoming a bottleneck. In domains where
  1328. 50:59you can have good feedback, that's where
  1329. 51:01it's possible to continue to improve the
  1330. 51:03model. And that like but where getting
  1331. 51:05robust verification, a lot of robust
  1332. 51:07verification is hard. So, uh Azalia will
  1333. 51:10cover a paper that she did in her her
  1334. 51:11lab about like how to combine verifiers.
  1335. 51:14And but what verification continues to
  1336. 51:16be one of the bottlenecks in this space
  1337. 51:18to make them better.
  1338. 51:20>> Yes.
  1339. 51:21>> Um just like intuitively, like in
  1340. 51:23pre-training, you get
  1341. 51:25abilities to find looking at the same
  1342. 51:27logical abilities.
  1343. 51:28>> Mhm.
  1344. 51:29>> So, just like to me, intuitively, I'm
  1345. 51:30trying to figure out why there's a
  1346. 51:31significant drop.
  1347. 51:33>> Mhm.
  1348. 51:33>> Because like we're sort of dividing up
  1349. 51:35what they know.
  1350. 51:36>> Mhm.
  1351. 51:36>> And we have logical abilities that I
  1352. 51:39guess shouldn't exist
  1353. 51:40>> Mhm.
  1354. 51:40>> in pre-training.
  1355. 51:41>> Mhm.
  1356. 51:42>> Um
  1357. 51:43So, yeah, I I guess like I'm I'm not
  1358. 51:46completely resonating with like
  1359. 51:48>> I I think this is still an active area
  1360. 51:50of research. So, there is different set
  1361. 51:52of opinions around what really improves
  1362. 51:54the model. Is it RL or is it like the
  1363. 51:57the pre-training diverse data by itself?
  1364. 51:59And I I don't think there's single point
  1365. 52:02of consensus at this point in time. Both
  1366. 52:04processes help. Um what you just said,
  1367. 52:07uh which I'll repeat for the class, is
  1368. 52:09that if pre-training is the place where
  1369. 52:12uh the model after repeated sampling
  1370. 52:13should be able to at least have one
  1371. 52:15solution correct out of if it was
  1372. 52:16generating a large number of samples,
  1373. 52:18then uh this notion of giving feedback
  1374. 52:20should improve the pass at one accuracy,
  1375. 52:22but should not improve the model. Why is
  1376. 52:24it like such a big jump? But I think um
  1377. 52:27that whole loop is not completely well
  1378. 52:29understood. It's like the first signs of
  1379. 52:31life and it starts to get
  1380. 52:32commercialized, but I think there's a
  1381. 52:34lot more research still open in this
  1382. 52:36area.
  1383. 52:37So, that's only one uh way of thinking
  1384. 52:39about it. There are other um at least
  1385. 52:41some signs of life that say that you can
  1386. 52:44continue to do RL and then that will
  1387. 52:46continue to improve the model. Yeah.
  1388. 52:50>> Okay.
  1389. 52:51>> Yeah.
  1390. 52:52So, uh so this is basically covering a
  1391. 52:55lot of the same set of points, but uh
  1392. 52:57one abstraction that is worth taking
  1393. 52:59away from this particular chart is that
  1394. 53:02even when you give the model a goal, it
  1395. 53:04has to clarify the user intent. So, it's
  1396. 53:06like not always obvious to it what the
  1397. 53:08user wants. And then it might go search
  1398. 53:10for relevant files and then whatever um
  1399. 53:13set of uh actions it chooses to take,
  1400. 53:16often times it needs some form of
  1401. 53:17verification. In this particular case,
  1402. 53:19it's based on um
  1403. 53:21passing the tests and it might actually
  1404. 53:22generate the tests that needs to pass,
  1405. 53:25which um
  1406. 53:27which is also uh mentioned here. But the
  1407. 53:30the key idea is that
  1408. 53:32if you give it a task, how does it come
  1409. 53:33back and how do you know that it's going
  1410. 53:34to complete what you asked it for? Often
  1411. 53:37times the users will not specify the
  1412. 53:39problem well enough. So, asking
  1413. 53:41clarifying the user intent so that it
  1414. 53:43knows what to go look for and how to
  1415. 53:45verify it starts to become important and
  1416. 53:48in models like 03, I think they have
  1417. 53:49seen a lot of these traces end to end.
  1418. 53:51So, they are able to like do the
  1419. 53:52planning, the reasoning, the multi-step
  1420. 53:54reasoning and like come back with the
  1421. 53:55conclusion, but
  1422. 53:57a lot of this is needed for um
  1423. 54:00completing tasks end to end or having an
  1424. 54:02end to end goal.
  1425. 54:03And where this has been super useful is
  1426. 54:06if you have repeated repetitive tasks
  1427. 54:08like code migrations or version upgrades
  1428. 54:10or if you need to restructure the code
  1429. 54:12base.
  1430. 54:13Or if you have tasks that involve data
  1431. 54:15engineering where you have to basically
  1432. 54:17do some sort of extract the data and
  1433. 54:19then do some sort of clean clean up on
  1434. 54:21the data or if you have to do some sort
  1435. 54:23[snorts] of data warehouse migration.
  1436. 54:25So, a lot of this work tends to be
  1437. 54:27extremely
  1438. 54:28repetitive and it's much easier to just
  1439. 54:31delegate it to coding agents.
  1440. 54:33Same for unit tasks often times like
  1441. 54:35much easier to like start to give it to
  1442. 54:37coding agents.
  1443. 54:38Another area where agents have become
  1444. 54:41extremely prevalent is in customer
  1445. 54:43support. It's one of the most thankless
  1446. 54:45jobs that
  1447. 54:46when when you are on the customer
  1448. 54:48support side of things you have to do
  1449. 54:49and using LLMs to do that definitely
  1450. 54:51makes
  1451. 54:53streamlines the experience in
  1452. 54:54interesting ways. So, one simple set of
  1453. 54:56examples ends up being like you can use
  1454. 54:58them to do live transcriptions. So, that
  1455. 54:59gives you a very nice record and and
  1456. 55:01you're seeing that even for meetings
  1457. 55:02these days.
  1458. 55:04Another simple example is that you can
  1459. 55:06have knowledge assist. So, if you have a
  1460. 55:08database of information, the customer
  1461. 55:11support agent does not need to know
  1462. 55:12everything. They can consult with the
  1463. 55:14LLM and and get an answer and surface
  1464. 55:17the relevant article which is better
  1465. 55:20than having just search
  1466. 55:22like an index and search by itself.
  1467. 55:25Smart replies. So, in in chat often
  1468. 55:28times this has existed for a while, but
  1469. 55:30you can use an agent to like give chat
  1470. 55:33responses and then having a call summary
  1471. 55:36can help you um
  1472. 55:38you can use the call summary to really
  1473. 55:40improve the customer experience by
  1474. 55:42itself as well. So, overall, I think in
  1475. 55:43the customer support area, there are
  1476. 55:46[snorts] multiple companies that are
  1477. 55:48going after this area, but uh
  1478. 55:50there are different segments of the
  1479. 55:51problem that can be addressed using LLMs
  1480. 55:53and they have been super useful and then
  1481. 55:55there's also the end-to-end stuff that's
  1482. 55:56starting to happen here.
  1483. 55:59And then the third example that we will
  1484. 56:01use and actually some of the homeworks
  1485. 56:03is that if you have very complex topics
  1486. 56:05and you want to provide a comprehensive
  1487. 56:07report, um
  1488. 56:08earlier it used to be that you had to do
  1489. 56:10a literature review and then you had to
  1490. 56:11summarize each paper and then you had to
  1491. 56:13synthesize these things and these days
  1492. 56:15you can just give it to an LLM and
  1493. 56:16actually do it for you and um study
  1494. 56:19maybe more articles than you would. So,
  1495. 56:21typically, if you give it an example
  1496. 56:23like uh say 2022 Winter Olympics opening
  1497. 56:26ceremony, it will identify what
  1498. 56:28references to go look at, then it will
  1499. 56:30construct an outline of like, okay,
  1500. 56:32these references are relevant or not,
  1501. 56:35and then summarize each references as to
  1502. 56:38what is the relevant content and then
  1503. 56:39combine them to create a full-length
  1504. 56:41article, um which is
  1505. 56:44uh very impressive in certain cases and
  1506. 56:46and you'll get to try it in one of the
  1507. 56:47homeworks.
  1508. 56:49And then even uh more uh forward-looking
  1509. 56:52um these research agents are starting to
  1510. 56:55be used for uh as AI scientists. So,
  1511. 56:58basically, they're starting to assist
  1512. 57:00scientists in say uh solving math
  1513. 57:02problems or solving science problems.
  1514. 57:04So, here the LLM is used as a
  1515. 57:07brainstorming thing to come up with
  1516. 57:08ideas to the idea generation phase, then
  1517. 57:11the experiment iteration phase, it might
  1518. 57:12actually help you iterate on the
  1519. 57:14experiments that you are hoping to work
  1520. 57:17on. This is from the AI scientist paper.
  1521. 57:19And then in the paper write-up phase, it
  1522. 57:21will help you improve uh
  1523. 57:23the the paper write-up by itself.
  1524. 57:27And what's interesting uh is that
  1525. 57:31even even though these models
  1526. 57:32hallucinate just I just the notion that
  1527. 57:35they can come up with so many different
  1528. 57:36set of ideas
  1529. 57:38as an AI scientist it might actually
  1530. 57:40brainstorm or like give you ideas
  1531. 57:42outside what you would have thought if
  1532. 57:44you had just like taken a bunch of
  1533. 57:45courses or or if you're a researcher and
  1534. 57:47you've been in the field for a long time
  1535. 57:49sometimes the reading the web allows
  1536. 57:52these LLMs to come up with ideas that
  1537. 57:54are way outside the box and can be a
  1538. 57:55very good brainstorming um
  1539. 57:58way uh so these have been super useful
  1540. 58:00for in the AI [clears throat] scientist
  1541. 58:02style of work.
  1542. 58:04Okay, so
  1543. 58:05let's move to course logistics but
  1544. 58:07before that do we have any questions?
  1545. 58:09Yes.
  1546. 58:11>> To clarify so is reasoning and chain of
  1547. 58:14thought baked in training or is it just
  1548. 58:17prompt engineering that was accidentally
  1549. 58:19discovering these kind of capabilities
  1550. 58:20in larger models? And if so are there
  1551. 58:23other emergent behaviors besides our
  1552. 58:26reasoning and chain of thought that
  1553. 58:28you think might be discovered?
  1554. 58:30>> So uh
  1555. 58:32I mean it was not baked in by
  1556. 58:34by design it was it was basically
  1557. 58:37discovered as in like it was
  1558. 58:39I mean we gave it hard problems and then
  1559. 58:41we saw that it was basically by having
  1560. 58:43reasoning chains it was doing better. So
  1561. 58:45the GSM8K was the first paper that kind
  1562. 58:47of showed signs of life of this and then
  1563. 58:50with larger model like Palm we actually
  1564. 58:53saw that this was a very big deal and
  1565. 58:55one of the examples there was that it
  1566. 58:57could explain jokes that which was very
  1567. 58:58impressive and then from there the
  1568. 59:00reasoning models have emerged. So it was
  1569. 59:02not
  1570. 59:03but it has read all of the web so it's
  1571. 59:05it has definitely seen data which is
  1572. 59:07like more
  1573. 59:09methodical and systematic.
  1574. 59:11>> But the reasoning models are trained to
  1575. 59:13be reasoning more and more, right? So
  1576. 59:16it's they didn't it entire reasoning is
  1577. 59:19not an emergent behavior. The reasoning
  1578. 59:21models they're trained to be to be
  1579. 59:24thinking but like the models are
  1580. 59:26convergent so the models are going to be
  1581. 59:28trained such that they know when to they
  1582. 59:30need a lot of reasoning and when they
  1583. 59:32don't and and to generate the answers.
  1584. 59:35But chain of thought originally was an
  1585. 59:38emergent behavior. They noticed that oh,
  1586. 59:40if we
  1587. 59:41explain things the model, it's better.
  1588. 59:46>> of emergent behaviors in large models.
  1589. 59:48>> I don't think it's I would see it as
  1590. 59:50emergent behaviors per se, but I think
  1591. 59:52as I was mentioning, we're usually going
  1592. 59:54looking for certain things, right? So in
  1593. 59:56the agentic workflows, what we're
  1594. 59:57looking for is planning,
  1595. 59:59which is a form of reasoning. We're
  1596. 1:00:00looking for multi-step reasoning, which
  1597. 1:00:02we will cover in class as well. And then
  1598. 1:00:04we're looking for self-improvement or
  1599. 1:00:06self-correction. So all of these
  1600. 1:00:07capabilities would be nice to have in
  1601. 1:00:09like what gets the models there is a set
  1602. 1:00:12of questions that are worth like there
  1603. 1:00:14are papers on this kind of thing.
  1604. 1:00:16>> Like self-correction,
  1605. 1:00:17backtracking, things like that is like
  1606. 1:00:20yes, you could call it emergent, but you
  1607. 1:00:23could also say think about it that they
  1608. 1:00:26have seen this kind of behavior and it's
  1609. 1:00:28kind of like it's reinforced in the way
  1610. 1:00:30that they're fine-tuned. So it's
  1611. 1:00:34Yeah, it's hard to say.
  1612. 1:00:38Okay. Um so let's go through the the the
  1613. 1:00:42logistics for the class. Um here is a
  1614. 1:00:45list of all the amazing topics that
  1615. 1:00:47you're going to learn about. Um they are
  1616. 1:00:50um
  1617. 1:00:52yeah.
  1618. 1:00:53This is very cool. [laughter]
  1619. 1:00:55>> I think the main thing to remember here
  1620. 1:00:57is that the overall theme stays the same
  1621. 1:00:59and then we'll also have guest lectures
  1622. 1:01:01around from folks in Frontier AI Labs
  1623. 1:01:04and covering things all the way from say
  1624. 1:01:07how have has how has post-training
  1625. 1:01:09evolved or say even multimodal agents
  1626. 1:01:11and in robotics. So it's it's a it's
  1627. 1:01:15going to be a mix of lectures and guest
  1628. 1:01:17lectures and
  1629. 1:01:19and of course you have project
  1630. 1:01:20presentations.
  1631. 1:01:23>> So, here is some logistics that you all
  1632. 1:01:26know the the pre-record there. Just make
  1633. 1:01:29sure that you you are comfortable with
  1634. 1:01:31these pre-reqs as you
  1635. 1:01:33uh register then in the class. So, we
  1636. 1:01:36have the external website, but uh
  1637. 1:01:39make sure that you're
  1638. 1:01:41uh you check Canvas. That's where we
  1639. 1:01:44send out the latest updates at all
  1640. 1:01:45times.
  1641. 1:01:46Um and um
  1642. 1:01:49we will also upload the We try to upload
  1643. 1:01:51the lectures before we start every every
  1644. 1:01:54in every class so you have access to the
  1645. 1:01:56lectures.
  1646. 1:01:57Uh and we will also have We already have
  1647. 1:01:59the due dates for all the assignments
  1648. 1:02:01and all the projects, so you can check
  1649. 1:02:02it out.
  1650. 1:02:04Um
  1651. 1:02:05So, this quarter we're going to have
  1652. 1:02:07three homeworks. That's a difference
  1653. 1:02:09from between this class and that's one
  1654. 1:02:11of the differences. So, we have one more
  1655. 1:02:14amazing homework for you all that we've
  1656. 1:02:16designed and the TAs have done a great
  1657. 1:02:18job
  1658. 1:02:19and that's helps you
  1659. 1:02:21um hopefully learn
  1660. 1:02:23uh learn these topics better and more in
  1661. 1:02:25depth.
  1662. 1:02:27Um
  1663. 1:02:27And then we also have a course project.
  1664. 1:02:29So, the course project is where you can
  1665. 1:02:31kind of unleash your creativity and like
  1666. 1:02:34your your way of like building agentic
  1667. 1:02:37systems or going deeper into a question
  1668. 1:02:41uh and and designing experiments around
  1669. 1:02:44it and see what works and what doesn't.
  1670. 1:02:46Um we will provide some um kind of
  1671. 1:02:50examples or suggestions, but it could be
  1672. 1:02:53completely on you how to design this
  1673. 1:02:55project. We'll have some examples from
  1674. 1:02:57last year like the successful projects
  1675. 1:02:59from last year as well.
  1676. 1:03:01Uh it's going to be uploaded to
  1677. 1:03:04um Canvas or Actually, we'll display
  1678. 1:03:07them on the website.
  1679. 1:03:08>> Oh, on the website. Oh, cool.
  1680. 1:03:09>> Yeah. The public website, so you can all
  1681. 1:03:11see that. Um
  1682. 1:03:13So, yeah.
  1683. 1:03:14>> the course project, I think the main
  1684. 1:03:16thing to remember is that uh
  1685. 1:03:18we will have API credits and you can
  1686. 1:03:20work in teams of two to four people.
  1687. 1:03:24Right?
  1688. 1:03:24>> Yeah. Or
  1689. 1:03:25up to four, I
  1690. 1:03:27>> to four. Okay.
  1691. 1:03:28>> It can be one if you really want that.
  1692. 1:03:30We we we suggest you team up with
  1693. 1:03:33others.
  1694. 1:03:34Um at the very least, you have more
  1695. 1:03:36credits collectively, so you can run
  1696. 1:03:38more experiments. But then you might
  1697. 1:03:40also uh find a friend collaborator along
  1698. 1:03:43the way and you can um
  1699. 1:03:46um do something bigger. Um
  1700. 1:03:48and we are going to have this um
  1701. 1:03:52What is this? The course project. Yeah,
  1702. 1:03:54we're we're going to uh we're going to
  1703. 1:03:55let you know about some
  1704. 1:03:57uh some of the previous years and some
  1705. 1:03:59ideas that you can take. Um here are
  1706. 1:04:01some course project examples that are
  1707. 1:04:04acceptable. For example, a new
  1708. 1:04:06evaluation data set or a new benchmark.
  1709. 1:04:09Um you can design a project around the
  1710. 1:04:13reliability of a of an agentic agentic
  1711. 1:04:16system that already exists. You can take
  1712. 1:04:18a benchmark that exists and try to hill
  1713. 1:04:20climb on it with whatever idea great
  1714. 1:04:23idea that you have. Um and then or you
  1715. 1:04:26can just be You're going to have a whole
  1716. 1:04:28lot of papers covered in this course and
  1717. 1:04:30we have we are showing all of that to
  1718. 1:04:32you. They're all on the website. So as
  1719. 1:04:34you as we give these lectures, we kind
  1720. 1:04:37of expect you to also have read those
  1721. 1:04:39papers or read the papers along the way
  1722. 1:04:42and develop better and deeper intuitions
  1723. 1:04:44on how these methods work. And you your
  1724. 1:04:47project could always be improving those
  1725. 1:04:49or like questioning one of the decisions
  1726. 1:04:52that they have made and trying to uh
  1727. 1:04:54change that or uh or evaluate that. Um
  1728. 1:04:58Negative examples are like a survey
  1729. 1:05:01paper or like We just don't want We want
  1730. 1:05:03something researchy here. So we just
  1731. 1:05:05don't want like just an app that you put
  1732. 1:05:08together and you just show us something.
  1733. 1:05:09It has to be like Here is like, here is
  1734. 1:05:13the hypothesis.
  1735. 1:05:14Here is the question that we wanted to
  1736. 1:05:16answer. Here is the type of like
  1737. 1:05:18improvement we wanted to see or the type
  1738. 1:05:20of like properties we wanted to analyze
  1739. 1:05:23and then we have built that, right? We
  1740. 1:05:24want something something that
  1741. 1:05:27something more than live coding
  1742. 1:05:29basically in this.
  1743. 1:05:31>> Um I mean in terms of milestones, I
  1744. 1:05:33think that it's worthwhile to remember
  1745. 1:05:35that you want to start early.
  1746. 1:05:37So it's you need to have a project
  1747. 1:05:39proposal
  1748. 1:05:41somewhere around I think we we put it
  1749. 1:05:43early October.
  1750. 1:05:44>> Yeah.
  1751. 1:05:44>> And then uh
  1752. 1:05:45>> It's on the website, yeah.
  1753. 1:05:46>> It's on the website and then for the
  1754. 1:05:48midterm project presentation, we do want
  1755. 1:05:50you to have some progress. So 2 weeks
  1756. 1:05:52after the project proposal, we do expect
  1757. 1:05:54you to have like So start thinking about
  1758. 1:05:56like what experiments you want to run by
  1759. 1:05:58the time you get to the project proposal
  1760. 1:06:00so that
  1761. 1:06:01you actually go run them for the midterm
  1762. 1:06:03projects. And so we do expect you to
  1763. 1:06:05have made some progress in the midterm
  1764. 1:06:06project presentation. It should not just
  1765. 1:06:09be
  1766. 1:06:10here is a proposal and then the final
  1767. 1:06:12report has a lot of weight and then the
  1768. 1:06:13final poster presentation uh will be the
  1769. 1:06:16end of the quarter.
  1770. 1:06:20>> Um yes.
  1771. 1:06:40I
  1772. 1:06:41I think so. If you add to it, right?
  1773. 1:06:46>> See this one name I want to name it in
  1774. 1:06:48the past study, right?
  1775. 1:06:50Yeah, yeah, that's fine.
  1776. 1:06:51>> I I think it's
  1777. 1:06:52>> I mean as long as you're doing actual
  1778. 1:06:54work and it's not just like reusing the
  1779. 1:06:55work from
  1780. 1:06:56>> [laughter]
  1781. 1:07:00>> Um
  1782. 1:07:01>> We had We had students publishing papers
  1783. 1:07:05out of their projects
  1784. 1:07:07uh in the last quarter. So in the last
  1785. 1:07:09last time we taught the class. So that's
  1786. 1:07:11something you could it could be one of
  1787. 1:07:13you or many of you this time again
  1788. 1:07:16turning your research project, working
  1789. 1:07:18more on it and then
  1790. 1:07:20turning it into a publication and
  1791. 1:07:24conferences.
  1792. 1:07:26And so here is a save the date for for
  1793. 1:07:31our poster presentation. It's going to
  1794. 1:07:33be December 12th 4:00 to 6:00 p.m. So
  1795. 1:07:37we we would want you to be there and
  1796. 1:07:39present the posters. We'll have people
  1797. 1:07:41from industry joining and you can that's
  1798. 1:07:44where you can brag about what you've
  1799. 1:07:45done and just meet new people. Here is
  1800. 1:07:49the course grading rubric. So we have
  1801. 1:07:53three homeworks. That's 50% of your
  1802. 1:07:56of of your entire grade and then another
  1803. 1:07:5950% is on the project. And the duration
  1804. 1:08:02of these are kind of like a line with
  1805. 1:08:03how much how much the grading grading is
  1806. 1:08:07allocated to each of these. And we of
  1807. 1:08:11course expect you to honor
  1808. 1:08:15the honor code.
  1809. 1:08:17And let's see.
  1810. 1:08:20Office hours will be posted on Canvas.
  1811. 1:08:23You can ask your questions. We really
  1812. 1:08:25really encourage you to ask questions on
  1813. 1:08:27Ed Stem
  1814. 1:08:28and make it public so others probably if
  1815. 1:08:31you have a question
  1816. 1:08:33it's very likely others have the same
  1817. 1:08:35question. So please like do broadcast
  1818. 1:08:37this to everybody.
  1819. 1:08:40Ed Stem is
  1820. 1:08:43again you can ask questions and then
  1821. 1:08:45GradeScope is where you submit your
  1822. 1:08:46project milestones and everything else.
  1823. 1:08:50Yeah, the homeworks and everything.
  1824. 1:08:52We have the following late policy that
  1825. 1:08:54we think it's kind of like
  1826. 1:08:56between the generous kind of like
  1827. 1:09:00So, I I am generous side of things and
  1828. 1:09:03because the class is
  1829. 1:09:05big this quarter, we really can't make
  1830. 1:09:08any exceptions. So, try to use these
  1831. 1:09:11kind of late days wisely.
  1832. 1:09:14Uh
  1833. 1:09:15Audits are not allowed, but we will have
  1834. 1:09:17the the course
  1835. 1:09:20the we will have the videos videos on
  1836. 1:09:22YouTube eventually. Eventually.
  1837. 1:09:26And that's it. Any questions?
  1838. 1:09:32No?
  1839. 1:09:33All right.
  1840. 1:09:34>> Okay. Thanks everyone.

About this transcript

This page contains the full transcript of YouTube transcript (6YnLB0XbTnI) , generated from the public captions YouTube serves with the video. The transcript has 11,603 words across 1,840 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.