YouTube2Text

YouTube transcript (p7TdPUcPoik) — Transcript

10,493 words · 1,536 segments · language en · Watch on YouTube

Full transcript

  1. 0:05So lecture three is about verification.
  2. 0:09In the last lecture when we talked about
  3. 0:13uh inference time scaling and the
  4. 0:16generation
  5. 0:17verification gap. Uh basically what we
  6. 0:21discussed was that language model seems
  7. 0:24to be able to um seems to know the
  8. 0:28answer to many of the hard questions um
  9. 0:31and especially with methods such as
  10. 0:33repeated sampling or other scaling test
  11. 0:35test time techniques. they can generate
  12. 0:37one but a question is how do they how
  13. 0:41can we automatically select which answer
  14. 0:44is correct or guide the model throughout
  15. 0:47the process of answer generation. So
  16. 0:49that leads us to verification where
  17. 0:52which we are learning about today. Um so
  18. 0:56in today's lecture we are going to learn
  19. 0:59about the following four paper papers
  20. 1:02and it kind of there is a progression of
  21. 1:04like how our uh kind of the way we
  22. 1:07approach verification changed or
  23. 1:10progressed throughout the years. Uh so
  24. 1:13let's first start with training
  25. 1:15verifiers to solve math for problems.
  26. 1:18This is a paper uh from OpenAI in 2021
  27. 1:24and the motivation for this work was
  28. 1:26that LLM hallucinate and um can
  29. 1:31confidently present wrong solutions to
  30. 1:34the users. Uh this still is true to this
  31. 1:36day. Four years later, of course, the
  32. 1:38model has have become significantly
  33. 1:40better. Um there is also at the time one
  34. 1:45of the contributions of this paper was
  35. 1:47to introduce a new reasoning benchmark
  36. 1:50the around math and you can see here in
  37. 1:52blue one of these uh problems. Um this
  38. 1:56is um this is a uh this is the type of
  39. 2:00problem that um at the time it was hard
  40. 2:03for LLMs to solve and uh this led to
  41. 2:07this new data set and and and and that
  42. 2:11that is has become kind of a a a a big
  43. 2:17part of many of the benchmarking task
  44. 2:19for LLMs and even to this day this data
  45. 2:22set is called GSM8K and even to this
  46. 2:24date um for smaller models and
  47. 2:27benchmarking it's still a very useful
  48. 2:30language modeling evaluation and you can
  49. 2:33consider it for the type of evals that
  50. 2:36you want to define on your projects as
  51. 2:38well. So um it basically consists of
  52. 2:418,500
  53. 2:43grade school math problems. uh and the
  54. 2:46goal with was this for this was to have
  55. 2:48uh the quality and diversity of the
  56. 2:51problems but also importantly there was
  57. 2:54a focus on multi-step reasoning meaning
  58. 2:56that to solve the problems even though
  59. 2:58the problems were uh simple but the the
  60. 3:01model required a few steps of reasoning
  61. 3:04to get to the answer. Um
  62. 3:07and and you could also collect u the
  63. 3:11solution in natural language uh as
  64. 3:14opposed to uh pure math. Um but the
  65. 3:18other contribution of this paper which I
  66. 3:21which we're going to spend more time on
  67. 3:23was to train a verification model where
  68. 3:26the verifier outputs the probability
  69. 3:29that a solution is correct. So let's see
  70. 3:33about how this can be useful. For
  71. 3:35example, the model jet the when as
  72. 3:38humans we solve problems, it would be
  73. 3:41very very good for us to have access to
  74. 3:43kind of a rubric or a way for us to tell
  75. 3:46whether we are correct or not. And we
  76. 3:48kind of want to provide the same thing
  77. 3:50through this verifier for the language
  78. 3:53model.
  79. 3:55So now how these verif the the the
  80. 3:58verifier was trained in this case is
  81. 4:00that assume that we have a question and
  82. 4:02a solution for it. Then we do have a
  83. 4:06label whether the it's a binary label
  84. 4:09whether it's correct or incorrect. And
  85. 4:12during the training process the
  86. 4:14generator the language model which is in
  87. 4:16charge of uh answering questions here uh
  88. 4:20produces SI which is the solution to
  89. 4:23question QI. Um and then we can generate
  90. 4:27do repeated sampling and generate
  91. 4:29multiple in this case 100 solutions per
  92. 4:31problem. And then we create these labels
  93. 4:34based on whether they were correct or
  94. 4:36not. Um remember that these questions
  95. 4:39and answers were selectively designed by
  96. 4:42a lot of manual human supervision. So we
  97. 4:45know what the answers the final answers
  98. 4:48to these problems are. So we can just
  99. 4:50based on that create these labels for
  100. 4:52these problems. Um and then given that
  101. 4:56we can train a verifier because now we
  102. 4:58have a we have a question we have a
  103. 5:01solution and then we have a label for
  104. 5:03it. Um
  105. 5:07um now the way we use it at test time is
  106. 5:10that at test time again we generate a
  107. 5:12lot of answers and then we use the
  108. 5:14verifier and look at the score the
  109. 5:16basically the log probability that is in
  110. 5:19this model now to see which one has a
  111. 5:21higher score and use that for as our f
  112. 5:24and show that as our final answer. Um
  113. 5:31so in this paper the verifier was
  114. 5:33trained not just based on the
  115. 5:35correctness prediction but there was
  116. 5:37also a language modeling uh objective.
  117. 5:40So the language modeling objective is
  118. 5:42also like given uh for example here
  119. 5:46given these tokens corresponding to the
  120. 5:48questions. The moment we get to the
  121. 5:51solution solution token we also add a
  122. 5:53loss that kind of urges like motivates
  123. 5:57the model to predict or reduce the the
  124. 6:00solution um kind of um
  125. 6:04uh distance from the true labels for
  126. 6:07that solution. So in this paper they
  127. 6:09said that it helped them to have two
  128. 6:11losses. One is the binary loss and the
  129. 6:14other one was the the normal language
  130. 6:17modeling uh next prediction token loss.
  131. 6:20Um and the verifier itself the
  132. 6:22architecture of the verifier is also a
  133. 6:24language model. Um but also this
  134. 6:27language model has a small scalar head
  135. 6:30that outputs the binary prediction
  136. 6:34um on a per token basis. So basically on
  137. 6:39a per token we are saying how close was
  138. 6:42the solution to the to the true labels
  139. 6:46uh generated by humans.
  140. 6:50Um and then the tokens in questions are
  141. 6:52masked out because we are not optimizing
  142. 6:55for that. So we generate the question we
  143. 6:58pass in fill in the model with the
  144. 7:00questions and we ask it to generate the
  145. 7:02solutions and we we work with these two
  146. 7:04losses. Um
  147. 7:07the way they trained the model was to
  148. 7:09fine-tune the generator language model
  149. 7:12for two epochs. Um and then sample a 100
  150. 7:15completions per question um label it
  151. 7:20whether they were correct or not and
  152. 7:22then train a verifier uh for a single
  153. 7:25epoch on this data set. So first they
  154. 7:28did fine-tune the language model on a s
  155. 7:31on that data set on a portion of that
  156. 7:33data set. Um, and this step maybe
  157. 7:37it's like debatable whether we we still
  158. 7:40need this this step or not because
  159. 7:42language models are already very good at
  160. 7:44instruction following and understanding
  161. 7:46math. So maybe and for a lot of newer
  162. 7:49verifiers we directly go to the training
  163. 7:51the verifier objective without any
  164. 7:54supervised fine-tuning first.
  165. 7:57Um, so they did a number of abilation
  166. 8:01studies. one was to create this label of
  167. 8:06correct or incorrect at the sentence
  168. 8:10level. Um so
  169. 8:14we have a loss that only concerns at
  170. 8:16each sentence level for example after
  171. 8:18each period looks into the previous
  172. 8:20sentence and looks whether this is a
  173. 8:22correct step given the steps of the
  174. 8:27correct step for the for the solution or
  175. 8:29not. or they could do at a token level.
  176. 8:32So this is like very a very noisy kind
  177. 8:35of label like basically we want every
  178. 8:37token to follow um the the the the
  179. 8:43pattern that leads to a final correct
  180. 8:45solution at the end of this generation.
  181. 8:49Um and then the way this is used at test
  182. 8:52time is the final solution score is the
  183. 8:55score after the last token. Because if
  184. 8:58you have a token label prediction per if
  185. 9:01you have a label prediction per token at
  186. 9:04the end of the day we only we want only
  187. 9:06one prediction for the entire generation
  188. 9:08whether it's correct or not. And it
  189. 9:10turns out in this case they looked it
  190. 9:12after the last token. All right. So we
  191. 9:14were talking about if you have a token
  192. 9:16per a label per token at the end of the
  193. 9:18day we just we want one token yes or no
  194. 9:22whether this answer was correct or not
  195. 9:24and um this is done in this case by just
  196. 9:28looking at the very last token and if
  197. 9:30that was a correct then it's the entire
  198. 9:33answer is assumed correct and otherwise
  199. 9:35uh it's assumed incorrect. So we predict
  200. 9:38for S1 S2 uh SM we predict these labels
  201. 9:42and then we only look at the very last
  202. 9:43label for the to generate and allocate a
  203. 9:48label for the entire solution.
  204. 9:50So um here is um looking back at these
  205. 9:54problems um when we get to the solution
  206. 9:58we are looking at the token level
  207. 10:00prediction by the trained verifier and
  208. 10:02if it's green means the verifier has a
  209. 10:05high score and the red ones means a low
  210. 10:08score in this case and in this case this
  211. 10:11was there were some lower scores in the
  212. 10:13middle but towards the end it become
  213. 10:15became greener and greener and this was
  214. 10:17a correct prediction at the end at the
  215. 10:20end the last the very last stage is a
  216. 10:23green one and we assume the actual score
  217. 10:25and the verifier predictions are um and
  218. 10:28in in this case are matching. In this
  219. 10:30other case uh the last verifier is red.
  220. 10:33Uh it starts off well but it has a there
  221. 10:36is something that a mistake is made um
  222. 10:40which I
  223. 10:42uh
  224. 10:43uh
  225. 10:45which is uh towards the the end of this
  226. 10:48generation step and the actual score is
  227. 10:51negative and the verifier prediction is
  228. 10:53also negative. So this is how basically
  229. 10:55this verifier is trained for GSM8K and
  230. 10:59then they did some abilations or uh
  231. 11:02comparisons with a baseline where we
  232. 11:04just directly just fine-tune on this
  233. 11:07data set. Um finetune meaning with
  234. 11:10supervised fine tuning. So we just take
  235. 11:12the base model and the next token bird
  236. 11:14prediction or we do this verification
  237. 11:18stage uh where we generate a 100 samples
  238. 11:22uh at each at each generation and use
  239. 11:24the highest score of the verifier as the
  240. 11:27true as the delivered output by our
  241. 11:30system. So the the idea to what we can
  242. 11:34see here is that um for both 6B and
  243. 11:381775B
  244. 11:39models the this one is a GPT3 model I
  245. 11:43believe um for both of these
  246. 11:45verification seems to work better
  247. 11:48especially as the training set size for
  248. 11:51the verifier increases. So, so this the
  249. 11:54verifier model eventually outperform the
  250. 11:57fine-tuning uh only uh approach.
  251. 12:03Um and vice versa if you have smaller
  252. 12:06data sets in this case less than a
  253. 12:08thousand for the 175B
  254. 12:11uh we um the verification is not helping
  255. 12:15much.
  256. 12:24Sorry, but what can you speak up? Um
  257. 12:27like the test score rate um um I mean it
  258. 12:31has a sol of the 6B verification um is
  259. 12:37still much higher than the
  260. 12:40on smaller bit
  261. 12:44like the orange still like
  262. 12:48>> isn't it lower? Okay, I see.
  263. 12:52>> Yeah.
  264. 12:53>> Okay. Um, let me go here. So, this is
  265. 12:57another result which which is very
  266. 13:00interesting and some this is something
  267. 13:02that could potentially be a research
  268. 13:04project that you guys can look into. So,
  269. 13:07what they did is that they tested two
  270. 13:10idea two approaches. One having a larger
  271. 13:12generator and smaller verifier and two
  272. 13:16having a smaller generator and larger
  273. 13:17verifier. And what they saw was that the
  274. 13:20larger generator helps with a smaller
  275. 13:24wave does better than vice versa. And to
  276. 13:27some extent this is intuitive, right?
  277. 13:29Because if we assume generation is
  278. 13:34naturally or on an ex like um on average
  279. 13:37is a harder task than verification, then
  280. 13:40this this might make sense. But like
  281. 13:42finding the parto optimal of like how
  282. 13:45these two can um kind of be the sizes
  283. 13:49with respect to each other would be a
  284. 13:50very interesting um pro research
  285. 13:54direction question especially right now
  286. 13:56as the base model or generators have
  287. 13:59improved a lot and also we have access
  288. 14:01to a lot of verifiers on hugging face
  289. 14:03there's like there's a leaderboard of
  290. 14:05like verification verifier models or
  291. 14:08reward models that can be tested against
  292. 14:11um So um again uh this was the main
  293. 14:14message from this this uh abilation
  294. 14:17study.
  295. 14:19Another result that uh about test time
  296. 14:24uh scaling that they they're showing is
  297. 14:26that as they increase the number of
  298. 14:29completions per problem and then they
  299. 14:31use the verifier it seems like around
  300. 14:33400 or so the verifier
  301. 14:37that's that's where they get a lot of
  302. 14:39benefit but after that they're not
  303. 14:41getting a lot of benefit. So if they
  304. 14:43sample 800 uh solutions and they use the
  305. 14:46verifier against that the verifier kind
  306. 14:49of fails to track what's best and what's
  307. 14:52not compared to the true true kind of
  308. 14:54distribution of the of the solutions. So
  309. 14:58um the uh one question for you is that
  310. 15:01do you remember last time when we talked
  311. 15:03about majority voting what was the range
  312. 15:06that we were getting out of that? Like
  313. 15:08we show that majority voting although is
  314. 15:11useful to some extent as we increase the
  315. 15:14number of samples per query it fails
  316. 15:18after some point to track and that's the
  317. 15:21generation verification gap. Does any
  318. 15:23does anyone remember that?
  319. 15:28Okay. Uh so that was we saw that the
  320. 15:32failure happens after 10 to like we
  321. 15:36never got to 50 samples like even though
  322. 15:39the coverage goes up the the pass at one
  323. 15:42or basically how we can generate select
  324. 15:45the correct response uh fails for around
  325. 15:4950 or less for the majority voting
  326. 15:52approach. But here they're showing that
  327. 15:54up until 400 they can increase the
  328. 15:57accuracy and their verifier is still
  329. 15:59useful.
  330. 16:06Yes, but these uh but the but when they
  331. 16:10they have so they do have the true
  332. 16:11labels per problem and then when they
  333. 16:14are testing this verifier the verifier
  334. 16:16ranks these uh at each point say for 400
  335. 16:20these 400 solutions they they take the
  336. 16:23highest score and they compare that
  337. 16:26against ground truth and that's what
  338. 16:28they're reporting here whether that was
  339. 16:29correct or not.
  340. 16:3283 times performance monitor completion
  341. 16:36>> at test time and training time as well
  342. 16:39for the verifier but not for the
  343. 16:41generator.
  344. 16:42>> Okay. for the training types all are
  345. 16:44human
  346. 16:46for the training like
  347. 16:47>> there there's only so for each problem
  348. 16:50the human has once generated an answer
  349. 16:52that's offline that's done once then you
  350. 16:56take the model generate a 100 solutions
  351. 16:59per problem and you compare each of the
  352. 17:02solutions against the ground truth which
  353. 17:05which is generated only once by humans
  354. 17:07and you see whether they match or not
  355. 17:09that's how you create the label
  356. 17:13Okay.
  357. 17:17Okay. Any questions from this paper?
  358. 17:20Yes.
  359. 17:21>> Question for it makes sense. It's the
  360. 17:25verifier is increasing result but after
  361. 17:27that why does it drop like intuitively
  362. 17:30like why doesn't it stay constant?
  363. 17:33>> Okay. So the question is why does it
  364. 17:35drop after a after 400? It shouldn't be
  365. 17:38constant because we are not showing the
  366. 17:40coverage. If you're showing the output
  367. 17:42of this entire system where the verifier
  368. 17:45ranks these say at this point 800
  369. 17:48different solutions and we are getting
  370. 17:50the max score of the verifier but the
  371. 17:53precision of the verifier drops like
  372. 17:55it's like if two solution are too close
  373. 17:58to each other but one is correct and
  374. 18:00incorrect at across 800 it can't like
  375. 18:03distinguish between the two as well as
  376. 18:05it could do for 400. Right? So, so
  377. 18:08that's where we get the drop in
  378. 18:10accuracy. And in reality, when they're
  379. 18:12outputting their they they created this
  380. 18:15system, they said that we stopped at uh
  381. 18:17they stopped at 100 samples because
  382. 18:20that's where they get most of the gains
  383. 18:22anyway and that's where they're
  384. 18:24consistent
  385. 18:35>> repeated sound. So parallel.
  386. 18:39>> So same question you ask the model 100
  387. 18:42different times to solve that.
  388. 18:47>> Yes.
  389. 18:48>> When they generate the label sentences,
  390. 18:52how do you distinguish like like one can
  391. 18:56just be a paraph?
  392. 19:01Because this is trained on a larger data
  393. 19:04set and because the the verifier and
  394. 19:07they consider both sentence based and
  395. 19:09token based it still works because the
  396. 19:13data that the trainer first of all the
  397. 19:15verifier is a language model itself. So
  398. 19:17it knows a lot about this space itself
  399. 19:20but also through this uh label training
  400. 19:24it has been trained to be able to
  401. 19:27distinguish between correct and
  402. 19:28incorrect.
  403. 19:32>> Yes.
  404. 19:32>> Uh does it make sense because I'm
  405. 19:34standing on the verification itself?
  406. 19:37>> So the question let me repeat the
  407. 19:39questions because one of you asked this
  408. 19:41before. So the question is does it make
  409. 19:45sense to scale the verifier? do test
  410. 19:47time scaling on the verifier. Yes. And
  411. 19:49we're going to see that in the in the
  412. 19:51future slides.
  413. 19:56>> Yes.
  414. 19:57>> Um the you showed like verification
  415. 19:59versus fine tuning. You showed that like
  416. 20:02before like around like a thousand steps
  417. 20:04like thousand like training size, right?
  418. 20:07Um the fine tuning actually does better
  419. 20:09than the verified. Does that happen
  420. 20:11again? Like if you scale like to higher
  421. 20:15>> um the verifi finetuning versus
  422. 20:18verification, do they cross each other?
  423. 20:21>> Yeah, I get
  424. 20:23>> um
  425. 20:28like if you were to actually if you do
  426. 20:30need that much data for for for example
  427. 20:33for one for a task.
  428. 20:37I mean I think they would like if you
  429. 20:39have a ton of data like at a a whole lot
  430. 20:43of data then fine-tuning and
  431. 20:46verification probably they're going to
  432. 20:48be the same going to kind of converge to
  433. 20:50the same thing. But the but the beauty
  434. 20:53of a verifier is that you are not
  435. 20:55fine-tuning your base language model.
  436. 20:58You're not making it like really custom
  437. 21:00to like one data set or one specific
  438. 21:03task. So that base model the generator
  439. 21:06model remains general and then now you
  440. 21:08have a verifier that you can um kind of
  441. 21:12lead the the langu the the base model.
  442. 21:15Okay.
  443. 21:18Um now let's go through the second
  444. 21:21paper. Uh another paper by openai. Um
  445. 21:25let's verify step by step.
  446. 21:32And
  447. 21:34so this was this came about a couple
  448. 21:37years like less than two years after
  449. 21:39that first paper. Again pro LLMs have
  450. 21:42had the same challenges. They
  451. 21:43hallucinated.
  452. 21:45um if you if they're solving a problem
  453. 21:48step by step and they make a step in a
  454. 21:50single in in an S step early on it can
  455. 21:53derail the entire answer right uh so the
  456. 21:57solution that they were proposing here
  457. 21:59is that um they consider these two kind
  458. 22:03of approaches to reward modeling one is
  459. 22:06outcome uh based reward model and the
  460. 22:10other is processbased reward model so
  461. 22:12the outcomebased one like we saw earlier
  462. 22:14earlier in the previous paper it
  463. 22:17generates a reward to the entire
  464. 22:20solution. It's about the correctness of
  465. 22:23the solution uh of the entire solution
  466. 22:25whereas the process one um assigns a
  467. 22:28different reward per step of the
  468. 22:30optimization problem.
  469. 22:36And so let's take a look exactly how
  470. 22:39this training can be done for the OM
  471. 22:41versus PRM. So we have a math problem.
  472. 22:44The generator instead of generating a
  473. 22:46100 solutions like it uh uh right now we
  474. 22:49are only looking into a one solution and
  475. 22:52it has a bunch of steps. Step one, two
  476. 22:54and all the way until we get to the
  477. 22:56final answer. Um and then we have the
  478. 23:00ground truth. So we can um know whether
  479. 23:04the final answer is correct or not
  480. 23:06because we can match the final answer
  481. 23:07against the ground truth. Um now with
  482. 23:11ORM we are done there because we we
  483. 23:13that's how we assigned the label for for
  484. 23:16the model but for PRM uh the way they
  485. 23:20did it in this paper was that they
  486. 23:23looked into they had human annotators go
  487. 23:27through the steps of the generations
  488. 23:31um by the model and assign a score to
  489. 23:34each step. So step one in this case was
  490. 23:37correct. Step two was correct and
  491. 23:38probably because the uh the uh maybe all
  492. 23:42of these steps were correct. That's why
  493. 23:43we we let it led to the final correct
  494. 23:46answer. But basically they created this
  495. 23:49entire data set of human annotated uh
  496. 23:53stepwise kind of correct or incorrect
  497. 23:56labels.
  498. 23:58Um and the final reward for this
  499. 24:00step-wise now can again in this case
  500. 24:04could be what they propose is that could
  501. 24:06can be calculated as the product of the
  502. 24:10the stepwise rewards per step of the
  503. 24:12model. So they basically train a model
  504. 24:15against this step-wise annotations and
  505. 24:18then they use that they create steps
  506. 24:20like you can even ask the model to
  507. 24:23generate the answers to a solution step
  508. 24:25by step. So the steps are clear. They
  509. 24:28run this PRM against each of those step.
  510. 24:30They get a score. They multiply them
  511. 24:32with each other. They they get a range
  512. 24:34of like um what the the quality of the
  513. 24:38answer and they can based on that they
  514. 24:40can uh decide whether they uh output the
  515. 24:44answer or try again. Um so this is
  516. 24:47called process supervision. Um obviously
  517. 24:51there is this credit assignment and then
  518. 24:53it's the more precise way of collecting
  519. 24:56uh data and assigning labels to
  520. 24:59different steps of the problem rather
  521. 25:01than just looking at the output answer.
  522. 25:04Um
  523. 25:06a property here that's very important
  524. 25:08actually this is like a really kind it
  525. 25:11could be a pitfall for uh test time
  526. 25:14scaling is that with processor
  527. 25:16supervision we can manage the false
  528. 25:19positives way better than we can do with
  529. 25:22just outcome supervisions supervision.
  530. 25:25Why? Because model might hallucinate and
  531. 25:28this happens surprisingly model can
  532. 25:30hallucinate and get to a final correct
  533. 25:32answer while the process for it is like
  534. 25:35really wrong.
  535. 25:37Whereas with process supervision because
  536. 25:39we are kind of pro like we are
  537. 25:41supervising we are seeing all the steps
  538. 25:43and we have a score for it. It's less
  539. 25:45likely that we get into that um mode
  540. 25:49where the steps are wrong but we are uh
  541. 25:52the final answer is correct.
  542. 25:55Um also it encourages interpretable
  543. 25:59reasoning and um human endorsed uh
  544. 26:02process of solutions. It's human
  545. 26:05endorsed again because humans have
  546. 26:07created the labels. Um so this paper
  547. 26:11produced this data set PRM 800K.
  548. 26:15Um it's an open-source data set uh of
  549. 26:19800K step level labels. So, so and and
  550. 26:24um
  551. 26:25so the way they did this was a generator
  552. 26:28model against a language they took a
  553. 26:30language model and they generated a
  554. 26:32large number of samples per problem in a
  555. 26:35step-wise matter manner and then they
  556. 26:38also did this trick of like because they
  557. 26:40wanted to collect higher quality
  558. 26:43stepwise labels, they took him to um
  559. 26:47what they call convincing wrong uh uh
  560. 26:51kind of answers meaning that the they
  561. 26:55gave higher pri priority to samples
  562. 26:59where the the final answers were um
  563. 27:02correct but the intermediate steps were
  564. 27:06incorrect. Um
  565. 27:10and this enabled them to be 2.6 times
  566. 27:14more data efficient just than just
  567. 27:16randomly selecting these samples and
  568. 27:19give it to humans. So they did
  569. 27:21iteratively. So they had like a very you
  570. 27:24can have a step a PRM by just asking an
  571. 27:27LLM to judge a step, right? You can have
  572. 27:30that. Uh so they iteratively upgraded
  573. 27:33the PRM by collecting this data and then
  574. 27:36training on the PRM for it and then um
  575. 27:40increasing the quality of the data. So
  576. 27:43um and at each step the label was that
  577. 27:46was collected was either positive or
  578. 27:48negative or neutral. For example, let's
  579. 27:50take a look at this problem. Uh the
  580. 27:53denominator of a fraction is 7 less than
  581. 27:57um uh 3 * the the numerator. If the
  582. 28:01fraction is equivalent to 2 over 5, what
  583. 28:04is the numer numerator of the fraction?
  584. 28:06And then there are these steps and the
  585. 28:08first step was labeled correct, second
  586. 28:11was correct and all the way to the fifth
  587. 28:13step was correct. U but this last step
  588. 28:16obviously the model failed to do the
  589. 28:18math. X should be 15 14 but it's seven.
  590. 28:21So that was labeled incorrect. So that's
  591. 28:23how they
  592. 28:24collected the labels.
  593. 28:29Um here is the process. So they took
  594. 28:32GPT4 as their base model. Um [snorts]
  595. 28:35they still fine-tune GPT4 for both the
  596. 28:38OM and PRM training on this data set
  597. 28:41first. So the supervised
  598. 28:44uh uh finetuning first
  599. 28:47uh
  600. 28:49and
  601. 28:51for OM of course they just have the
  602. 28:53pairs of generated samples and final
  603. 28:55correctness but for PRM they had this
  604. 28:58generator generate the sample and then
  605. 29:01the stepwise corre correctness label. Uh
  606. 29:04for OM the final score was the score of
  607. 29:07the final token in the completion. again
  608. 29:10they again went to the token level
  609. 29:12approach for ORM um but for PRM it was
  610. 29:16the product of uh probabilities
  611. 29:19uh for every stop now let's take a look
  612. 29:22at some of the solutions um they were
  613. 29:25showing that PRM outperforms OM and
  614. 29:28majority voting so again here n is the
  615. 29:31number of solutions per problem majority
  616. 29:34voting again fails after in this case
  617. 29:37100 or so samples Uh the blue line is
  618. 29:40the OM model and the orange one is the
  619. 29:43PRM approach that is doing better. Um
  620. 29:48and the but they notice that PRM detects
  621. 29:51correct solutions for some of the very
  622. 29:53rare kind of occurrences of correct
  623. 29:56answers on problems with less than 5%
  624. 29:59correct answers in the distribution of
  625. 30:01samples.
  626. 30:04Um
  627. 30:06they also showed the benefit of larger
  628. 30:09data and this active learning uh
  629. 30:11approach that they had.
  630. 30:14Again um the
  631. 30:17and and the other the other kind of
  632. 30:19observation that they were showing is
  633. 30:21that PRM seems to be more data
  634. 30:24efficient. So the number of labels that
  635. 30:27they collected for PRM if they match
  636. 30:29that against um uh OM u both PRM and ORM
  637. 30:36benefit from more and more labels but it
  638. 30:38turns out that the PRM is more sample
  639. 30:40efficient right so um so if they have
  640. 30:44100 solutions label labeled per problem
  641. 30:47for an OM model that's kind of like
  642. 30:50having
  643. 30:51like one solution per problem based on
  644. 30:54the PRM approach and so on.
  645. 30:59Um the other interesting property uh and
  646. 31:04that's what what we all should strive as
  647. 31:07we gener as we are training these kind
  648. 31:09of verifier and reward model is the
  649. 31:11gener generalizability
  650. 31:13to new domains and new data sets. Uh
  651. 31:16here what they're showing is that
  652. 31:18majority voting actually is better than
  653. 31:21OM in terms of how it generalizes. Uh
  654. 31:24but PRM is a better u is a better than
  655. 31:28majority voting overall. Um and uh it
  656. 31:32can tolerate a whole lot more
  657. 31:33distribution shift than majority voting.
  658. 31:36Um and so overall this seems like a much
  659. 31:40better approach here.
  660. 31:43Um any questions?
  661. 31:46Yes,
  662. 31:47>> PRM obviously like could lead to like
  663. 31:50false credit assignment if like a step
  664. 31:52looks good but doesn't actually
  665. 31:53contribute to the final answer. Are
  666. 31:55there domains that you would expect PRM
  667. 31:57to actually hurt?
  668. 32:00>> Um so the question is can PRM hurt
  669. 32:03sometimes because um the final answer
  670. 32:06might still be incorrect. Um so the
  671. 32:09truth is like a lot of the newer
  672. 32:11approaches combine the two like the
  673. 32:13reality is they combine both the PRM and
  674. 32:16OM based solutions because you want to
  675. 32:18get the bene benefit of of both
  676. 32:21approaches. Um and the other thing is
  677. 32:24that like the threshold that you can
  678. 32:26define for for a PRM then is also like a
  679. 32:30hyperparameter that now you have
  680. 32:32introduced that you have to like deal
  681. 32:33with and optimize for your system and
  682. 32:36that that's an additional complexity
  683. 32:38here but yes
  684. 32:41>> the previous one
  685. 32:43um does it make sense to this comparison
  686. 32:46because J requests much more labels than
  687. 32:49RN so does it show up where the access
  688. 32:52Texas access is like nimble.
  689. 32:54Um I think they were trying to Yeah,
  690. 32:57because they also mentioned that it's
  691. 32:59hard to compare and they did they did
  692. 33:01manage to like have because um it's true
  693. 33:06OM needs like K labels per problems but
  694. 33:11PRM needs K times some number of steps
  695. 33:14but then it's very hard to control that
  696. 33:16number of steps of like how do you
  697. 33:17exactly control but they did try to
  698. 33:20manage that and I believe some of the
  699. 33:22graphs they they do that but that's a
  700. 33:23good Right. Yes.
  701. 33:26>> Majority voting mean in this context.
  702. 33:29>> So majority voting is you have n sample
  703. 33:34you uh you don't have any access to any
  704. 33:37reward model. You just see which sample
  705. 33:39or solution is repeated most and you
  706. 33:42take that as your final answer.
  707. 33:46>> Are you also working on the reason
  708. 33:48process?
  709. 33:49>> No, you look into the final answer.
  710. 33:53Um, in this case, are they using the
  711. 33:55same PRM 800K for all of those tasks or
  712. 33:59are they using different terms for each?
  713. 34:03>> Um, because they're talking about
  714. 34:04generalization, I assume this should be
  715. 34:07>> the same
  716. 34:08>> the same one. But yeah,
  717. 34:14>> yes.
  718. 34:15>> Uh, how does this avoid when the
  719. 34:17reasoning is actually bad but rated
  720. 34:19high? Like for example um if you go back
  721. 34:23to slide
  722. 34:25>> this one
  723. 34:30>> yeah this one like what if like the uh
  724. 34:34reasoning is let's call the numerator x
  725. 34:36and then x = to 14 and it jumps immunity
  726. 34:40to the x how does that avoid like 31
  727. 34:44>> so you're saying the prm can give a high
  728. 34:46score
  729. 34:47>> like what if it's like skip all the
  730. 34:49reasoning
  731. 34:50um like let's call the numerator x and
  732. 34:53then x= to 14 like how does that avoid
  733. 34:55like that kind of hacking?
  734. 34:57>> Sorry, I don't get it. Can you speak up
  735. 35:00what's the alternative scenario you're
  736. 35:03talking about?
  737. 35:04uh like the the reasoning step would
  738. 35:07just be numerator x and then x= 4 and
  739. 35:11how does the like the PRM avoid the kind
  740. 35:12of like real typing scenario
  741. 35:15directly skip some steps and directly
  742. 35:18generate the answer
  743. 35:21like speed
  744. 35:24>> so the parents are trained like parents
  745. 35:27can also see the previous steps like the
  746. 35:29questions previous step and here is the
  747. 35:31current steps to score Right. You're
  748. 35:33right. Um, so if X is 14, then it's
  749. 35:36great, right?
  750. 35:38>> It doesn't really encourage like the
  751. 35:39thinking process of like going to step
  752. 35:41by step.
  753. 35:43>> It doesn't. No,
  754. 35:44>> no, it doesn't. But you can prompt the
  755. 35:46model to to do this cuz you're not
  756. 35:49changing the model, right? You're not
  757. 35:51changing your generator. You can't like
  758. 35:53uh the that failure mode could be when
  759. 35:56you were fine-tuning your generator
  760. 35:58model and the model kind of stops
  761. 36:00reasoning and just generates and final
  762. 36:02answer that the PRM likes, right? But
  763. 36:05you're not touching your generator. The
  764. 36:07generators can still be prompted to do
  765. 36:09reasoning, create these steps, and then
  766. 36:11the verifier just scores them.
  767. 36:14Um
  768. 36:16>> but if let's say we want to use the PRM
  769. 36:18to train the
  770. 36:20>> yeah then you have to be careful then
  771. 36:22you have to like make sure that the
  772. 36:24chain of thought makes sense right and
  773. 36:27your PRM again your PRM can the way you
  774. 36:31train your PRM can also be aware of that
  775. 36:33because your PRM could be as your your
  776. 36:36PRM these are like human generated
  777. 36:40labels in this case right if we had like
  778. 36:43skipped all of this and then we would go
  779. 36:45to X14. Probably the human says this is
  780. 36:47this doesn't make sense. This step is
  781. 36:50lower because this step is skipping a
  782. 36:52few kind of reasoning steps.
  783. 36:56Does that make sense? So these labels
  784. 36:58are created by humans here.
  785. 37:05>> So if the labels are not generated by
  786. 37:07humans and we're going to see that in
  787. 37:09the next paper. Yes, that is definitely
  788. 37:11a caveat like and something that you can
  789. 37:13make sure but there are ways to handle
  790. 37:15that as well. Okay, so for now let's
  791. 37:18assume these are human labels. So the
  792. 37:20processes are labeled in a way that they
  793. 37:22make sense as well. We have so many
  794. 37:24things to encourage these gener
  795. 37:26generation to make sense. First of all
  796. 37:29the generator
  797. 37:31should should generate the steps. The
  798. 37:33PRM is trained on human annotations that
  799. 37:36also they also make sure that this step
  800. 37:38makes sense given the prior steps.
  801. 37:43Any other questions?
  802. 37:48Okay, let's go through the next the next
  803. 37:51paper. Matt Shepard verify and reinforce
  804. 37:54LLM step by step without human
  805. 37:56annotation. So we're getting to what if
  806. 37:59we um didn't want to collect that many
  807. 38:03annotations
  808. 38:05um from humans. So again motivation is
  809. 38:10that um
  810. 38:12having stronger vifiers shows the
  811. 38:15potential to really improve models
  812. 38:17reasoning behavior especially if you do
  813. 38:19test time scaling. um PRM have shown
  814. 38:23more potential than OMS but they require
  815. 38:26a lot of data and it's hard to collect
  816. 38:28these data so can be um automate the
  817. 38:32process of label collection for PRMS
  818. 38:37um so this paper talks about two kind of
  819. 38:40approaches one is automatic annotation
  820. 38:44um and also
  821. 38:47u kind of brings the the the the reward
  822. 38:50model as a into the loop of uh generator
  823. 38:53optimization via a reinforcement
  824. 38:55learning approach uh which uh we are
  825. 38:58going to briefly mention that. So
  826. 39:03in this case u the way they tried to go
  827. 39:07about this um automatic kind of
  828. 39:10annotation of steps was that they define
  829. 39:13the quality of the reason step as the
  830. 39:17potential of the step to reach to the
  831. 39:19final correct answer. So let's say we
  832. 39:22have we are at a given step. we sample n
  833. 39:25kind of completions from that given step
  834. 39:28and see the potential for um a correct
  835. 39:32solution at the very end. So and they
  836. 39:34introduce two ways of doing this. One is
  837. 39:37the hard estimate uh where the the step
  838. 39:43is annotated u as a success if
  839. 39:48it any of those n generations after that
  840. 39:51step gets to a final correct answer. The
  841. 39:55soft estimate thinks of measures the
  842. 39:58frequency like what portion of the
  843. 40:00generations after a current step reached
  844. 40:02the final correct answer. So here is
  845. 40:04like how it works. um say here is the
  846. 40:08problem and this is our current state.
  847. 40:11Instead of just sampling one step, we
  848. 40:15sample n is three in this case. So we
  849. 40:17sample three steps and then we continue
  850. 40:21um and and we measure the frequency in
  851. 40:23the soft estimate. We we measure the
  852. 40:25frequency of correct answer at the very
  853. 40:27end. In hard estimate, we see whether
  854. 40:30any any of these um uh are correct or
  855. 40:34not. So hard estimate would be one for
  856. 40:36step one. Soft estimate would be 2/3 for
  857. 40:40step one.
  858. 40:42Um anyone can
  859. 40:45um kind of name it a challenge or a
  860. 40:51drawback of this approach. So basically
  861. 40:55the this soft or hard um kind of
  862. 40:58estimation is replacing the human
  863. 41:02annotations. So we're getting a score
  864. 41:04per step by just rolling out more
  865. 41:07samples from that step and and seeing
  866. 41:09whether we reach to the final correct
  867. 41:11answer or not and assume that we do have
  868. 41:13final labels for these problems. Um
  869. 41:21>> yes
  870. 41:23>> or um where are predictable paths on the
  871. 41:28lower right uh the when the
  872. 41:31unpredictable path could be the only way
  873. 41:33to solve
  874. 41:35>> sorry speak up again if it's
  875. 41:37unpredictable
  876. 41:38>> unpredict or like unusual approaches to
  877. 41:40solving a problem but it could be scored
  878. 41:43as low or something that might You know
  879. 41:46a way to be able to solve that problem.
  880. 41:48So it might be really hard problem
  881. 41:51to lose that path to that solution.
  882. 41:54>> That is correct. So basically say n is
  883. 41:58three here. Maybe we needed like 100 n
  884. 42:01equal 100 to see that final correct kind
  885. 42:05of like trajectory to score this step.
  886. 42:09But we won't see that if we just look
  887. 42:11into three, right? And then we give a
  888. 42:13score of zero. Um, anything else?
  889. 42:23>> Yes,
  890. 42:24>> I guess this is similar, but if you're
  891. 42:26dealing with like a hard question, if
  892. 42:27you're taking the approach of like
  893. 42:29generating a lot of samples, a lot of
  894. 42:31the samples can just not be correct or
  895. 42:33not the correct way to do it. So,
  896. 42:35>> you just
  897. 42:36>> you don't get any signal for hard
  898. 42:38problems in this case.
  899. 42:41>> Um, that's right.
  900. 42:44that service doesn't mean any
  901. 42:48>> exactly I think this is like probably
  902. 42:51like these two that you all mentioned
  903. 42:53here one is for hard problems you don't
  904. 42:55get signal the other one is what if
  905. 42:57there are like wrong steps in the middle
  906. 43:00and we got to the final correct solution
  907. 43:03um we still label those uh steps as
  908. 43:06correct
  909. 43:07um so the hope is that if you have more
  910. 43:10samples it shows the wrongness in one of
  911. 43:12these these kind of uh trajectories but
  912. 43:16it's not guaranteed.
  913. 43:20So um
  914. 43:25so here is the verification process. You
  915. 43:27sample and again you sample in candidate
  916. 43:31solutions uh score them using the PRM
  917. 43:34and you select the highest kind of PRM
  918. 43:37score across across the the generated
  919. 43:41samples. They also took this PRM and
  920. 43:44trained the model with this PRM to
  921. 43:47encourage the model to generate uh steps
  922. 43:50that are scored higher and higher by
  923. 43:52PRM. So PRM basically uh served as the
  924. 43:55reward model uh for this. Um so for they
  925. 43:59looked into the hard versus soft
  926. 44:01annotations and although the loss
  927. 44:03function um as they increased n would be
  928. 44:08um it seemed like the the the soft
  929. 44:11annotations were uh doing better. Uh but
  930. 44:17somehow um what they observed with that
  931. 44:20with an n equal 4 the depth of like the
  932. 44:23trajectory completions to collect these
  933. 44:26labels that's where they get like their
  934. 44:28best results anyway. So it really didn't
  935. 44:32matter whether they used the hard
  936. 44:33estimate or softest estimate and they
  937. 44:35went with the hard estimate at the very
  938. 44:37end because it's um because it was just
  939. 44:39easier to to measure that. So um
  940. 44:47here is another comparison with
  941. 44:49baseline. So here they have SC is major
  942. 44:52self-consistency is another name for
  943. 44:54majority voting which which solution was
  944. 44:57most consistent. Uh that's the red one.
  945. 45:00Um OM is the blue one and the shepherd
  946. 45:04is this PRM approach uh is uh the green
  947. 45:07one. And the interesting part here was
  948. 45:09that there was no human annotation. All
  949. 45:12the annotations were uh modeled
  950. 45:14generated
  951. 45:16um or the with the the mechanism that
  952. 45:19they introduced.
  953. 45:21Um here they also compare with PRM 800K
  954. 45:24which was the way fire the that we that
  955. 45:28in the previous paper that was trained
  956. 45:30and it outperformed that as well on math
  957. 45:32which is like a harder much harder uh
  958. 45:35setup. This data set is more difficult
  959. 45:38than GSM GSMHK and they were getting
  960. 45:41even higher uh delta in there.
  961. 45:45Uh they also compared the these results
  962. 45:49uh with uh different types of verifiers
  963. 45:52again across uh
  964. 45:56GSM8K and MAT 500 problems. And you can
  965. 46:00see that the difference between these
  966. 46:01models and like these approaches um and
  967. 46:06um there there is a notable difference
  968. 46:11between these models and uh the
  969. 46:13baselines which is self-consistency
  970. 46:16approaches
  971. 46:18and this is true across different models
  972. 46:2070 lama 70B LMAD 34B and deepseek 67B
  973. 46:29uh they also showed that they can get
  974. 46:31even better they can make the model even
  975. 46:33better if they they RL the model against
  976. 46:35the PRMS that they trained. So in this
  977. 46:38case the match sheepard on this their
  978. 46:41their approach basically mis taking
  979. 46:43mistral 7B this model and then they uh
  980. 46:47po it against this PRM uh they're
  981. 46:50getting much higher results u compared
  982. 46:53to um doing this RL with just an OM um
  983. 46:59the delta here is um slightly less I
  984. 47:02would say than just the test time
  985. 47:04scaling but um this is also
  986. 47:07another way for the models to
  987. 47:08self-improve, right? You generate the
  988. 47:11annotation by the model itself. You
  989. 47:14train the PRM and then use that PRM to
  990. 47:17improve the mo the generator model as
  991. 47:19well, both at test time and during with
  992. 47:21this RL fine-tuning. So, it's like
  993. 47:23multiple levels of using the model
  994. 47:25itself to generate data and like RL
  995. 47:28reward signal for for for itself.
  996. 47:34Um
  997. 47:38yeah and then they can do RL and PO and
  998. 47:41do verification up on top and they get
  999. 47:43even better results but it seems like
  1000. 47:45kind of kind of their optimizations are
  1001. 47:48plateauing at some point. Um any
  1002. 47:51questions from this paper?
  1003. 47:56>> Yes. Are there ways to build PRM that
  1004. 47:58like incentivize like self error
  1005. 48:01correction which I imagine be like a
  1006. 48:03desirable thing but like if we're only
  1007. 48:04you know rewarding each step be correct
  1008. 48:07you don't necessarily end up reinforcing
  1009. 48:10a lot of incorrect steps back
  1010. 48:14>> so encourage parents to do more self
  1011. 48:17correction
  1012. 48:19>> yes absolutely like for example one of
  1013. 48:22the methods that that can be done is
  1014. 48:24that you have a rubric or a set of rules
  1015. 48:27that you give the model as your scoring
  1016. 48:31step. So the model can check the step
  1017. 48:34against this rubric that your design for
  1018. 48:37this data set and that can be used as
  1019. 48:40extra signal whether this step makes
  1020. 48:43sense or not
  1021. 48:45right for example the very or like use a
  1022. 48:47calculator in that case in the problem
  1023. 48:49in the equation that we are seeing if
  1024. 48:51the model could use could do tool use or
  1025. 48:54use a calculator in that case it would
  1026. 48:56not it could solve that problem easily
  1027. 48:58right could for example use uh simp.
  1028. 49:02So, so there are ways to bring more
  1029. 49:05supervision and more signal and enable
  1030. 49:07the model to use tools and test time
  1031. 49:11scaling and agentic approaches to
  1032. 49:13improve the verification process.
  1033. 49:19>> Yes.
  1034. 49:22>> Do they control the amount of test
  1035. 49:24compute?
  1036. 49:28Um
  1037. 49:30I I believe so. You mean test s times
  1038. 49:32when they're using the verifier like a
  1039. 49:34baseline verifier versus themselves? I
  1040. 49:37I'm actually not sure if they do they do
  1041. 49:39that when they're doing process versus
  1042. 49:42because again that's really hard to do
  1043. 49:45like but
  1044. 49:50>> you're scaling things right.
  1045. 49:52>> Yeah. I think that could actually be a
  1046. 49:54question that you could investigate like
  1047. 49:56you can sample more on the generator,
  1048. 49:59you could sample more on the verifier if
  1049. 50:01you if you're controlling for a fixed
  1050. 50:03compute. How do you allocate that? Um so
  1051. 50:07one of the challenges here is that
  1052. 50:08usually like the OM and PM should come
  1053. 50:10from the same data for us to do like a
  1054. 50:13good like apples to apples comparison,
  1055. 50:16right? Um cuz if you do train a PRM and
  1056. 50:19someone else train an RM makes things a
  1057. 50:21bit harder. The training data also
  1058. 50:23matters a lot.
  1059. 50:26>> Any other questions? Yes.
  1060. 50:28>> Um, can you go back to the 3D slide?
  1061. 50:31>> No, I was just Oh, no. No. It was the
  1062. 50:33basically for this one I was just
  1063. 50:34curious as to why after using RL um they
  1064. 50:37stuck with evaluating performances with
  1065. 50:403D decoding. Uh I was just curious like
  1066. 50:42whether or not you know raising the
  1067. 50:44temperature like really made a
  1068. 50:46difference or that's the only way they
  1069. 50:48could have seen like the you know
  1070. 50:50smalish delta.
  1071. 50:53So the the the reason so the question is
  1072. 50:55why they they stopped greedy decoding
  1073. 50:57why they didn't do like temperature
  1074. 50:59changes and test time scaling again
  1075. 51:01right I think that's what this slide is
  1076. 51:04so they they then in this case
  1077. 51:08um the verification is done against 256
  1078. 51:12outputs so the previous one is um no
  1079. 51:15verification right the ver verifier is
  1080. 51:17just using the RL training here it is at
  1081. 51:19test time as well Yeah,
  1082. 51:25I think it's something that they didn't
  1083. 51:26do and it would be interesting to see
  1084. 51:28what if they repeat the process again
  1085. 51:31um generate another set of labels and
  1086. 51:35train a verifier and then but starting
  1087. 51:37from this RLPPO
  1088. 51:40model. Yeah.
  1089. 51:47>> Okay. Let's get to the last paper. um
  1090. 51:51shrinking the generation verification
  1091. 51:53gap with weak verifiers. So this is the
  1092. 51:56paper a paper um that uh from from
  1093. 52:01Stanford that uh came out a couple of
  1094. 52:05months ago at this point. So um it's a
  1095. 52:09new 2025 paper. So the motivation again
  1096. 52:14um is
  1097. 52:17the same. We have we still have a
  1098. 52:19generation verification gap and but the
  1099. 52:22approach here was a bit different. The
  1100. 52:25here we were not training a new
  1101. 52:27verifier. We were thinking can we reduce
  1102. 52:29the generation verification gap by using
  1103. 52:32inference compute and inference scaling
  1104. 52:35and specifically by using an ensemble of
  1105. 52:38verifiers because it's but when we say
  1106. 52:41weak we just assume that no verifier is
  1107. 52:44perfect. So that's the weakness. We
  1108. 52:45didn't purposefully choose like bad
  1109. 52:47verifiers. These are the best verifiers
  1110. 52:49that are out there, but we are using an
  1111. 52:51ensemble of them to create uh a single
  1112. 52:55uh much more capable verifier. Um
  1113. 53:02so the property of weak verifiers is
  1114. 53:05that they do have they do correlate with
  1115. 53:07the true label of the problem but they
  1116. 53:09have of the solution but they have
  1117. 53:10imperfections. Um and there are two
  1118. 53:13types of these verifiers. We learned
  1119. 53:15about PRM and OMS. But another one that
  1120. 53:18we briefly discussed in the in in a few
  1121. 53:21minutes ago is that we can use LLMs
  1122. 53:23themselves as a judge. We can show it an
  1123. 53:28answer and ask it whether do you think
  1124. 53:29this is correct or not. The prompt could
  1125. 53:31be literally that or we can have the
  1126. 53:34model use tools and use rubrics and all
  1127. 53:36that to uh generate a score for a model.
  1128. 53:39So that's a whole category of verifiers
  1129. 53:42that we can use on top of just PRMs and
  1130. 53:44OMS. Um so here this first graph just
  1131. 53:48shows um how ensembling and using a
  1132. 53:52number of verifiers that are they could
  1133. 53:55be trained by different labs on
  1134. 53:58different data sets. We just like and
  1135. 54:00there are all these language models that
  1136. 54:01take a query as input and give a score
  1137. 54:04at on the output side. Here we are
  1138. 54:06comparing uh we are seeing these four
  1139. 54:08data sets. So in this case we showing
  1140. 54:12the performance of top one versus top
  1141. 54:15five versus top 10 verifiers based on
  1142. 54:18like how good they are in some ranking
  1143. 54:20system. Overall, it seems like um
  1144. 54:26like just uh un ensembling them with
  1145. 54:29each other um and using them at test
  1146. 54:32time
  1147. 54:34uh does improve things u but not in a
  1148. 54:38necessarily in a monotonically monotonic
  1149. 54:41way. But the thing that always helped
  1150. 54:43was that if we train a model to a a way
  1151. 54:48for them to to add them together. to
  1152. 54:51assign weights for different members of
  1153. 54:53the ensemble if we have labels from
  1154. 54:56them. Here we have we have two methods
  1155. 54:58naive base or logistic regression. These
  1156. 55:00are very simple methods. Basically, you
  1157. 55:03add a simple single weight per verifier
  1158. 55:05to score them together to and if you
  1159. 55:08have a training set set for for your
  1160. 55:11with a with labels, you can basically
  1161. 55:14come up with these weights and and now
  1162. 55:16these results are on the test set
  1163. 55:18corresponding to those tasks. So, you
  1164. 55:21basically say for math 500 500 I have a
  1165. 55:25set of labels. I use that to average my
  1166. 55:27verifiers, find the weights and then I
  1167. 55:30use this averages on a new on test data.
  1168. 55:33So that does give it seems like it does
  1169. 55:35give a lot lot of improvement just this
  1170. 55:38simple task. Um now you can do other
  1171. 55:43things. So the the way we works is by
  1172. 55:45this score weight and select approach.
  1173. 55:48So in the first step, we are going to
  1174. 55:51score outputs of the verifiers and uh
  1175. 55:55normalize them so they're all on the
  1176. 55:57same scale and and um and filter out the
  1177. 56:01lowquality verifier. So in this setup
  1178. 56:04even we are assuming we have access to a
  1179. 56:06very limited labels that we can say okay
  1180. 56:08these verifiers are just so bad against
  1181. 56:10our labels we just remove them from our
  1182. 56:13ensemble. We have noticed that this is a
  1183. 56:16very important step like your verifiers
  1184. 56:18should be above a certain quality to be
  1185. 56:20even be let in the pool of verifiers. So
  1186. 56:24then you have your verifiers, you have
  1187. 56:26your LM judges, you have your reward
  1188. 56:28models and then you get these scores
  1189. 56:30from them whether it's zero or one or
  1190. 56:32the log prop of correctness per um per
  1191. 56:36verifier. And then um what weieber did
  1192. 56:40was to use weak su weak supervision to
  1193. 56:44uh estimate kind of the verifier
  1194. 56:46accuracy with very small uh data labeled
  1195. 56:50data and then um and then we use those
  1196. 56:53ways to combine the verifiers output and
  1197. 56:55assign a score. Um I go briefly through
  1198. 56:59like how this week to strong supervision
  1199. 57:02works. Some of you if you have t taken
  1200. 57:04deep learning courses or even CS 229s
  1201. 57:08last time we talked about it about weak
  1202. 57:11to strong supervision. There's a whole
  1203. 57:13body of work here. Uh beaver was
  1204. 57:16specifically u kind of uh
  1205. 57:20um motivated by the work by snorkel by
  1206. 57:23Alex ran ratnell atal and other work
  1207. 57:26from Stanford. So the so here is how we
  1208. 57:29have these weak verifiers like weak
  1209. 57:32signal from our verifiers and combine
  1210. 57:34them together to get a stronger signal.
  1211. 57:36The setup is the following. We have n
  1212. 57:39queries. For each query we create k
  1213. 57:42solutions and then let's assume we have
  1214. 57:44m verifiers. So we have a total of n * k
  1215. 57:48* m labels. uh and our goal here is to
  1216. 57:54create to get this probability of um
  1217. 57:59query I sample J uh equal to one given
  1218. 58:03all the labels that we get from all the
  1219. 58:05verifiers. So how do we estimate this
  1220. 58:07probability correctly? Um the assumption
  1221. 58:10in beaver is that each verifier captures
  1222. 58:14independent aspect of the correctness.
  1223. 58:17So this is a key assumption that we
  1224. 58:19made. Um to some extent the reason we
  1225. 58:22get so think about it this way if you
  1226. 58:24have a pool of verifiers if all of them
  1227. 58:27agree on the score that they give to any
  1228. 58:30sample then we are not learning anything
  1229. 58:32new from them right if all of them are
  1230. 58:34like 100% or the same score the signal
  1231. 58:37here is on kind of similarity and
  1232. 58:40dissimilarity across these whole set of
  1233. 58:43verifiers with each other. So under this
  1234. 58:46assumption we can write this probability
  1235. 58:49for the the response being correct given
  1236. 58:52the labels that we have and then we use
  1237. 58:55two sets of equations. Again this the
  1238. 58:57first equation uh is uh we can write it
  1239. 59:01this way because we assume every two
  1240. 59:03verifier I and J are independent from
  1241. 59:05each other. The second equation is the
  1242. 59:08the just the base uh kind of the the the
  1243. 59:12way probability works. There's no
  1244. 59:13assumption in writing this. And given
  1245. 59:15these two uh we can kind of define uh we
  1246. 59:20can write an optimization and def come
  1247. 59:22up with the weights that we can assign
  1248. 59:25to each of the the verifiers.
  1249. 59:29Um and here we are comparing the results
  1250. 59:32with a naive ensemble approach. And it
  1251. 59:35turns out that it does help in some
  1252. 59:38cases that the the gains are more
  1253. 59:40significant in GPQA diamond um and math
  1254. 59:44and ML MMLU pro and each of these
  1255. 59:46problems that are relatively hard uh
  1256. 59:49problems for example the GPQA are our
  1257. 59:52our baseline um is already low but the
  1258. 59:56very fire this way of weak to strong
  1259. 59:58aggregation of uh responses is helping
  1260. 1:00:02getting a large boost over naive
  1261. 1:00:04ensemble. ing of them. Um, now there are
  1262. 1:00:07different ways that we can scale the
  1263. 1:00:09verification compute. We can sample more
  1264. 1:00:12generations. So instead of 10 samples,
  1265. 1:00:15we can do a 100 or a thousand. We can
  1266. 1:00:18use larger models for generation and
  1267. 1:00:20verification. We can increase the the
  1268. 1:00:23number of verifiers in the pool. um uh
  1269. 1:00:27and and in general there are different
  1270. 1:00:29ways to assign flops or inference uh
  1271. 1:00:32scale inference compute for um for
  1272. 1:00:35solving a problem. Um here we are
  1273. 1:00:38comparing uh some of these methods with
  1274. 1:00:40each other. So the dashed uh kind of
  1275. 1:00:44dark red line is the passetk oracle
  1276. 1:00:49meaning that if we had like an oracle
  1277. 1:00:53uh selector that would give us the
  1278. 1:00:56correct answer. We don't have that and
  1279. 1:00:58that's why we are training these
  1280. 1:00:59verifiers. Um the the purple one is we
  1281. 1:01:03were supervised and that's assumed that
  1282. 1:01:05we have a large body of label data and
  1283. 1:01:07we can use them to learn these weights.
  1284. 1:01:10The blue one is the unsupervised. In
  1285. 1:01:12this case, we're using 1% of the
  1286. 1:01:15training labels for each data set. Um
  1287. 1:01:18the orange one is the naive ensemble,
  1288. 1:01:20meaning we just average them average the
  1289. 1:01:24on the the the verifiers without any
  1290. 1:01:27special treatment. We still are
  1291. 1:01:29filtering um and keeping the good
  1292. 1:01:32verifiers in the loop. And then all of
  1293. 1:01:34these are significantly better than
  1294. 1:01:36methods such as majority voting or
  1295. 1:01:39multi- aent verification. And
  1296. 1:01:42multi-agent verification just or MAV is
  1297. 1:01:46um it's just based on prompting LLMs and
  1298. 1:01:50asking them to score a given response
  1299. 1:01:52based on different kind of aspects that
  1300. 1:01:54is produced. So kind of a rubric base
  1301. 1:01:57which is doesn't do that that much
  1302. 1:02:00better or actually worse in these two
  1303. 1:02:02cases than majority voting.
  1304. 1:02:08Um but something to notice here is the
  1305. 1:02:12drastic gains that the model can have
  1306. 1:02:16going from something like 40 less like
  1307. 1:02:18slightly over 40% to over 70% on these
  1308. 1:02:23hard uh problems. and in this case
  1309. 1:02:26matching a model like 03 mini. Um so the
  1310. 1:02:30thing that is interesting here is that
  1311. 1:02:33the we can use this weak to super weak
  1312. 1:02:36to strong supervision to reduce the gap
  1313. 1:02:39between model classes. So what we are
  1314. 1:02:42saying here is that if we take a
  1315. 1:02:44generator model of llama 3.18b instruct
  1316. 1:02:48and the verifier um model which is like
  1317. 1:02:51the the pool of verifiers that are 8b
  1318. 1:02:54and below uh we get an average of 70% on
  1319. 1:02:58these data set and this is almost
  1320. 1:03:01comparable to the accuracy that we get
  1321. 1:03:04with majority voting but when our models
  1322. 1:03:07and uh models are at 7B. So we are kind
  1323. 1:03:11of like
  1324. 1:03:13making the model making this 8B model
  1325. 1:03:17um the same roughly the same as the 7TB
  1326. 1:03:22class by just doing this inference
  1327. 1:03:25scaling and using the verifier and in
  1328. 1:03:27this case unlike the what we saw in most
  1329. 1:03:30of the previous lecture we are talking
  1330. 1:03:32about the end results we're not talking
  1331. 1:03:34about the coverage we're talking about
  1332. 1:03:36the solution accuracy of the entire
  1333. 1:03:39system.
  1334. 1:03:41Um and here again in this case for when
  1335. 1:03:44we do the same apply the same generation
  1336. 1:03:46and verification to 70B class of models
  1337. 1:03:50we are getting an average accuracy of
  1338. 1:03:5286.2% 2% on these data sets and this is
  1339. 1:03:55very comparable to this to O3 mini which
  1340. 1:03:59um which has a much uh uh which is like
  1341. 1:04:04a proprietary model and in general is a
  1342. 1:04:08higher like a different class of models.
  1343. 1:04:10So this shows how much verification or
  1344. 1:04:12this work on verification can help with
  1345. 1:04:14the results. Um, another uh work that
  1346. 1:04:18was done on the increasing the
  1347. 1:04:20usefulness of something like Vaver is
  1348. 1:04:22that a challenge with ensembling
  1349. 1:04:24verifiers is that you have a ton of like
  1350. 1:04:26models that now you need to run for each
  1351. 1:04:29solution to get a score and then to
  1352. 1:04:31average them, right? To uh and that
  1353. 1:04:34increases the cost especially if you
  1354. 1:04:37instead of one sample per per you have a
  1355. 1:04:40100 samples and then you want to create
  1356. 1:04:42all these scores. So instead what uh the
  1357. 1:04:46proposal here is that what if we do
  1358. 1:04:48train wever once and then distill it
  1359. 1:04:50into a much smaller model um and that's
  1360. 1:04:54how instead of running each of these LLM
  1361. 1:04:58judges or reward models per sample we
  1362. 1:05:00just take this distilled uh LM which in
  1363. 1:05:04this case we show that it could be
  1364. 1:05:06really really tiny like something like
  1365. 1:05:07400 million parameters as opposed to the
  1366. 1:05:11original model which was in the 70B
  1367. 1:05:14range. Um, and it turns out that with
  1368. 1:05:17this distilled model, we can kind of
  1369. 1:05:18capture 97% of accuracy of this large
  1370. 1:05:23pool of L uh verifiers, but be
  1371. 1:05:27significantly in this case 99 plus% use
  1372. 1:05:31less compute at test time. And these uh
  1373. 1:05:34and these um distilled version and the
  1374. 1:05:37original version, they're all open
  1375. 1:05:39sourced and the checkpoints are
  1376. 1:05:40available. um if any of you are
  1377. 1:05:43interested in working with them in your
  1378. 1:05:46um agentic or test time scaling
  1379. 1:05:49projects.
  1380. 1:05:52Um
  1381. 1:05:54and here is another graph. Here is the
  1382. 1:05:56distilled one which is the light blue
  1383. 1:05:58one and the original beaver is the dark
  1384. 1:06:01blue one. And we are comparing again the
  1385. 1:06:04efficiency the success rate over the
  1386. 1:06:07inference compute the total inference
  1387. 1:06:10compute that we are spending on this
  1388. 1:06:12data set. Um and u
  1389. 1:06:16um and the distilled one obviously is
  1390. 1:06:18like significantly more efficient. uh
  1391. 1:06:20but even the original weaver because it
  1392. 1:06:23reaches higher levels of accuracy um at
  1393. 1:06:26those levels it becomes more flop
  1394. 1:06:28efficient than models like naive
  1395. 1:06:30ensemble and majority voting
  1396. 1:06:35and
  1397. 1:06:37let's do a quick recap. So um here we
  1398. 1:06:42today we covered like four papers that
  1399. 1:06:45also showed the trajectory of how this
  1400. 1:06:47work on verific how research on
  1401. 1:06:49verification has progressed over the
  1402. 1:06:52last like four years. We talked about
  1403. 1:06:54how verification
  1404. 1:06:56um can improve training both during uh
  1405. 1:07:00can improve the outcome of the and the
  1406. 1:07:02quality of results uh both uh during
  1407. 1:07:06training and inference. uh process
  1408. 1:07:08rewards seems to be very useful and
  1409. 1:07:11overall uh very effective uh and more so
  1410. 1:07:15than the outcome rewards but perhaps we
  1411. 1:07:18need to combine them to get the best
  1412. 1:07:20results both PRMS and OMS um and we also
  1413. 1:07:25in Matt Shepard learned that scaling you
  1414. 1:07:27need a lot of data and the more data you
  1415. 1:07:29throw in the verifier training it
  1416. 1:07:32becomes better and you can use it during
  1417. 1:07:34your RL uh fine-tuning to increase the
  1418. 1:07:38quality of your generator as well. And
  1419. 1:07:41uh the beaver work was took a whole
  1420. 1:07:44different approach to verification was
  1421. 1:07:46and that was just uh doing this weak
  1422. 1:07:49supervised optimization on an ensemble
  1423. 1:07:51of verifiers and in a way we are using
  1424. 1:07:54test time scaling but by bringing more
  1425. 1:07:56verifiers rather than sampling a single
  1426. 1:07:58verifier more um to to get the results
  1427. 1:08:02and we can turns out we can distill that
  1428. 1:08:04and capture a whole lot of the quality
  1429. 1:08:07uh from a much smaller model and With
  1430. 1:08:10that I can conclude the class. Any
  1431. 1:08:13questions?
  1432. 1:08:15Yes.
  1433. 1:08:16>> The papers were on math or reasoning uh
  1434. 1:08:21benchmarks. Do you think there's
  1435. 1:08:22anything else that [clears throat] could
  1436. 1:08:23work for project other ways to evaluate
  1437. 1:08:26the model?
  1438. 1:08:28>> Um like coding other ways to evaluate
  1439. 1:08:30the model. You mean other areas like
  1440. 1:08:33coding would be a very interesting uh
  1441. 1:08:36area for for reasoning. So these like
  1442. 1:08:38there were like some coding problems in
  1443. 1:08:40this CT like in some of the benchmarks
  1444. 1:08:42here. So it's not not just math uh but
  1445. 1:08:46um coding is also a very interesting
  1446. 1:08:49kind of uh area for verification. We
  1447. 1:08:52will uh we will talk about code monkeys.
  1448. 1:08:55This is a paper uh that instead of
  1449. 1:08:58directly training a verifier, you can
  1450. 1:09:00make the model create a test time system
  1451. 1:09:03to make the model generate unit tests
  1452. 1:09:06and those unit tests become your
  1453. 1:09:07verifier. So that's an entire different
  1454. 1:09:09approach. Um but these kind of
  1455. 1:09:13verifications should also be useful for
  1456. 1:09:15any kind of reasoning task.
  1457. 1:09:22>> Yes. I'm curious like how do generation
  1458. 1:09:27verification help
  1459. 1:09:30us model like that internalized
  1460. 1:09:35one.
  1461. 1:09:37>> Okay. So the question is that for
  1462. 1:09:39reasoning model how does the generation
  1463. 1:09:41verification or these kind of test time
  1464. 1:09:43scalings work for them? It actually
  1465. 1:09:45helps them as well still. uh but the
  1466. 1:09:49reasoning model like uh we're going to
  1467. 1:09:51talk about them in this class but
  1468. 1:09:53basically what they're doing a big part
  1469. 1:09:55of it is to generate these reasoning
  1470. 1:09:57steps use the reward for it and do an RL
  1471. 1:10:01loop and generate positive trajectories
  1472. 1:10:04and then use that positive trajectories
  1473. 1:10:07as part of training for the next round.
  1474. 1:10:09Right? So the test time scaling is
  1475. 1:10:12inherently used to generate data and
  1476. 1:10:15generate the training process. But they
  1477. 1:10:18still would benefit because they still
  1478. 1:10:21uh could explore different parts of the
  1479. 1:10:24solution space with with more sampling
  1480. 1:10:29kind of like knowledge using training on
  1481. 1:10:33the test. Do you think in the future
  1482. 1:10:35like this two parish or do you think
  1483. 1:10:39like um maybe like repeat sampling would
  1484. 1:10:42only be used for generating training for
  1485. 1:10:47>> Yes. So the question is like would we
  1486. 1:10:50converge to a future where these kind of
  1487. 1:10:52test time scaling repeated sampling and
  1488. 1:10:54science just for training time to create
  1489. 1:10:56the data and then at test time we uh we
  1490. 1:10:59just use ask the model once I think
  1491. 1:11:01that's the direction we want to go right
  1492. 1:11:03we want the model to be really really
  1493. 1:11:05good at pass at one like the first time
  1494. 1:11:07we ask it to do something we want it to
  1495. 1:11:10generate and that increases the
  1496. 1:11:11efficiency and all that like that would
  1497. 1:11:13be the hope one challenge though with
  1498. 1:11:16making the model too like like to make
  1499. 1:11:19the the log props of the model too
  1500. 1:11:21sharpened through through one answer is
  1501. 1:11:23that the creativity and diversity of
  1502. 1:11:26solutions may be lost some somehow
  1503. 1:11:28during the training. Um so
  1504. 1:11:32surprisingly we still like them like
  1505. 1:11:34models that are very d like create have
  1506. 1:11:37a lot of creativity and diversity in the
  1507. 1:11:40way that they they think and that's like
  1508. 1:11:42a good feature that we want to have in
  1509. 1:11:44the models.
  1510. 1:11:46>> Yes.
  1511. 1:11:48Does it matter if generator and
  1512. 1:11:49verifiers have very different
  1513. 1:11:51architectures? For example, if the
  1514. 1:11:52verifier is like a mini version of the
  1515. 1:11:54generator versus if they're very
  1516. 1:11:56different architectures,
  1517. 1:11:59>> but does it matter like like which one
  1518. 1:12:01which one is um empirically?
  1519. 1:12:04>> Okay, so the question is like if the
  1520. 1:12:06generator and verifier from the same
  1521. 1:12:08family or not. That's that's a good
  1522. 1:12:11research question. Um I think in general
  1523. 1:12:16it's interesting like models like their
  1524. 1:12:18own generations and their their own way
  1525. 1:12:20of interpreting results much better than
  1526. 1:12:23using a different family of models. Um
  1527. 1:12:26we are going to talk about a paper that
  1528. 1:12:30talks about how uh certain models can
  1529. 1:12:33benefit from like a different class of
  1530. 1:12:35verifiers over themselves. But like a
  1531. 1:12:37specifically uh I am unaware of a study
  1532. 1:12:41that has looked into that specific
  1533. 1:12:43question of uh same kind of size and
  1534. 1:12:46family versus uh different size
  1535. 1:12:48different family. How does how that
  1536. 1:12:50changes the behavior of the model?

About this transcript

This page contains the full transcript of YouTube transcript (p7TdPUcPoik) , generated from the public captions YouTube serves with the video. The transcript has 10,493 words across 1,536 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.