YouTube2Text

Edward Lockhart - Why AI Needs Formal Mathematics — Transcript

by Institut des Hautes Etudes Scientifiques (IHES) · 14,590 words · 2,073 segments · language en · Watch on YouTube

Full transcript

  1. 0:08[music]
  2. 0:12Um so one of the joys about going last
  3. 0:14in the program is that you know other
  4. 0:15people have already covered some of some
  5. 0:17of the things that I I was going to say
  6. 0:19but that means hopefully I can skip over
  7. 0:20them a bit. Um I think this will be
  8. 0:22actually quite a different take on the
  9. 0:25uh an interaction between AI and formal
  10. 0:28mathematics. So, I've been at Deep Mind
  11. 0:30for about 10 years now, and the last
  12. 0:32four years I've been working on both
  13. 0:34Gemini training, our big LLM, and on
  14. 0:37formal math. So, and this presentation
  15. 0:39is essentially a claim of uh why that
  16. 0:41makes sense as a career choice.
  17. 0:44>> Is your mic supposed to be on or
  18. 0:45>> uh Oh, I thought I unmuted it. Let me
  19. 0:47try that again.
  20. 0:50>> Uh
  21. 0:51>> yeah, I think I've unmuted it.
  22. 0:54>> Um
  23. 0:55>> I think the mic works just for the
  24. 0:57camera. Oh, okay.
  25. 0:59>> Would you like me to shout a bit more? I
  26. 1:01can do that.
  27. 1:02>> Uh, okay.
  28. 1:05So, in order to justify why um AI needs
  29. 1:09formath, I first need to explain what I
  30. 1:11think AI is or what what we're trying to
  31. 1:13do um at Deep Mind and other other
  32. 1:15similar places. So, this um building AI
  33. 1:18from ML parts is a slogan. I don't know
  34. 1:21who who coined it first, but we've been
  35. 1:24using it for at least 10 years to say to
  36. 1:26try and build the distinction that um we
  37. 1:29have ML algorithms and then from those
  38. 1:31we build an AI system. So uh these are
  39. 1:35Gemini advertising slides but they could
  40. 1:37be advertising for any other uh model.
  41. 1:40This is the kind of thing that we're
  42. 1:41effectively trying to build. Something
  43. 1:42which can uh answer any question, help
  44. 1:46you plan, um help you build things,
  45. 1:49bring ideas to life, uh ask anything.
  46. 1:51That's that's the overall aim. And how
  47. 1:54are we going to build that? Well, the
  48. 1:56basic building block is an LLM. And
  49. 1:59we've heard a lot about these uh already
  50. 2:00today. And I think most people are
  51. 2:02pretty familiar, but um I'll repeat just
  52. 2:05a little bit which is that the key part
  53. 2:08of an LLM is a probabilistic model of
  54. 2:11natural language. And so the key feature
  55. 2:13is you take a prefix and emits a
  56. 2:16probability distribution over the next
  57. 2:18token uh which is like threequarters of
  58. 2:21a word or so. Um so that's uh that's a
  59. 2:25model that we can train on a very large
  60. 2:28amount of data. These are the um scaling
  61. 2:33curves from the chinchilla paper. Uh
  62. 2:35basically what these show are that uh
  63. 2:37more data is better. So the the training
  64. 2:40loss is better lower training loss is
  65. 2:43better. That means you predict more
  66. 2:45accurately the next token. Um so more
  67. 2:48data is better, a bigger model is
  68. 2:50better. Uh and also at constant flops,
  69. 2:54so each of these curves are an iso flop
  70. 2:56curve. uh constant flop curves there is
  71. 2:59a there's an optimal model size um this
  72. 3:03was actually very influential at the
  73. 3:05time um I say these days we tend to
  74. 3:07train much smaller models than this uh
  75. 3:09because we do much more inference than
  76. 3:11we do training so only optimizing for
  77. 3:14training flops is not necessarily the
  78. 3:15thing to do um but anyway you scale up
  79. 3:17your LLM you now have something that's
  80. 3:19really great at giving a random piece of
  81. 3:21text it can predict what the next word
  82. 3:22is and to do that obviously it has to
  83. 3:25have an enormous amount of internal
  84. 3:26structure uh the best way to predict the
  85. 3:28next word is to is to deeply understand
  86. 3:30what the text is saying, what the
  87. 3:32underlying logic of the text is and so
  88. 3:34on. So by getting better at this uh this
  89. 3:37very simple problem, the model uh learns
  90. 3:39all kinds of other things too.
  91. 3:42Uh and you can take a um a language
  92. 3:46model like this and you can turn it into
  93. 3:48a generative model by um doing auto
  94. 3:50reggression very simply just step by
  95. 3:52step. Um the points being made here is
  96. 3:56that in principle you can factoriize any
  97. 3:57probability distribution over text into
  98. 4:00a wordbyword probability distribution uh
  99. 4:02just with a chain rule like this. And
  100. 4:05the key thing that we do is we use
  101. 4:07exactly the same model uh for every
  102. 4:09single transition from one token to the
  103. 4:11next. So we can use one model and
  104. 4:12repeatedly apply it and then you get
  105. 4:14something that can generate samples from
  106. 4:17your probability distribution over text.
  107. 4:22Um so here it is. Here's a generative
  108. 4:25language model. Um it looks something
  109. 4:27like this. So you have some initial
  110. 4:29context. Um you then sample an X token.
  111. 4:34You produce a probability distribution
  112. 4:35for the next token. You sample from it
  113. 4:37and then you do that recurrently and
  114. 4:39then you emit a um emitter a completion.
  115. 4:43There's typically a special token that
  116. 4:45says stop so that this process doesn't
  117. 4:47go on forever. So eventually you'll
  118. 4:49sample the stop token. Um this is
  119. 4:52roughly what uh GPT2 was. So back in
  120. 4:562021 or so five years ago, this was um
  121. 5:00something like the state-of-the-art for
  122. 5:01gen generative language models. Um it's
  123. 5:06not all that useful um because although
  124. 5:09it's essentially just a very very smart
  125. 5:11autocomplete somewhat useful, but not as
  126. 5:13useful as a as a modern a modern AI. So
  127. 5:16I'm going to explain next what are all
  128. 5:17the things that we put on top of this
  129. 5:18and build around it to turn this very
  130. 5:21simple autocomplete next token
  131. 5:23prediction into something that's much
  132. 5:25more useful for a wide wide variety of
  133. 5:28tasks. Um actually just as a sidebar
  134. 5:31even even with this um one thing that's
  135. 5:33worth pointing out is we don't actually
  136. 5:35sample from the probability
  137. 5:36distribution. Um if you if you did that
  138. 5:39you would end up with um because the
  139. 5:42probability distribution uh will have a
  140. 5:44long tail of probability into wildly
  141. 5:46unlikely tokens. If you generate a long
  142. 5:48sequence of text it will eventually just
  143. 5:50insert some completely random word which
  144. 5:51is not great. So um we tend to truncate
  145. 5:55and flat and uh decrease the temperature
  146. 5:58make it more peaky before we sample.
  147. 6:01Anyway, but that's the only refinement
  148. 6:03here. all the other refinements come uh
  149. 6:05on top of the generative piece. Um so
  150. 6:10the thing I want to point out here is
  151. 6:11that once we start doing other things,
  152. 6:13we are no longer we strictly speaking we
  153. 6:15no longer have a language model. So LLM
  154. 6:18is is technically the wrong terminology.
  155. 6:21Um I don't think I'm going to change
  156. 6:23anybody's use of that terminology. Um
  157. 6:25I'm probably going to get it wrong
  158. 6:26myself, but I just want to try and make
  159. 6:28the distinction that what we're really
  160. 6:30talking about is a is a language agent.
  161. 6:32So something that uh consumes consumes
  162. 6:35text gets text in and produces text out
  163. 6:38and um it's no longer a probability
  164. 6:40distri probability distribution over
  165. 6:43anything that we could anything we could
  166. 6:46really talk about certainly not text in
  167. 6:47the wild. It's only a probability
  168. 6:49distribution over its own outputs but
  169. 6:50that's not very very meaningful I think.
  170. 6:54Um so it has text in text out and then
  171. 6:56on the on the right the key things are
  172. 6:58that it has um parameterized behavior.
  173. 7:02So we start with something that's being
  174. 7:04trained as a language model. It has all
  175. 7:05these parameters. So the LLM parameters
  176. 7:07are the big ones, but there's also
  177. 7:08sampling and harnessing. And then we can
  178. 7:11tweak those parameters to to get
  179. 7:13different behavior out of this out of
  180. 7:15this agent. Um and then this is
  181. 7:18potentially something that can tackle
  182. 7:19any text task. So a lot of text tasks
  183. 7:22can be framed in this case. So text in
  184. 7:25text out is very general. and our LLM
  185. 7:28architectures are very convenient for
  186. 7:30tackling those kinds of things.
  187. 7:34So um as I say in there is a there's
  188. 7:37some empirical questions you can ask
  189. 7:38here. So we could say in principle if
  190. 7:40you wanted to tackle some specific task
  191. 7:43you could start and you want to use
  192. 7:45something a bit like an LLM you could
  193. 7:47start by pre-training the LLM on this
  194. 7:49specific task and then training it on
  195. 7:51your on pre-training it on general data
  196. 7:54and then training on your specific task
  197. 7:55or going straight to your specific task
  198. 7:57and it's an empirical question which of
  199. 7:59those works better does it work better
  200. 8:00to start with a pre-trained LM or should
  201. 8:03you just focus on the task you want to
  202. 8:04you want to tackle and the answer is by
  203. 8:07far pre-training wins
  204. 8:10And the second question you could ask is
  205. 8:13can we learn a single policy have a
  206. 8:15single agent that's good at lots of
  207. 8:16things and the answer is yes we can. So
  208. 8:19in both cases the pre-training is
  209. 8:21extremely valuable.
  210. 8:25Uh okay so once you've pre-trained then
  211. 8:28in the kind of modern LLM the next thing
  212. 8:30you do is you do some fine-tuning. So um
  213. 8:34this is taking something that should
  214. 8:36like a general autocomplete and uh
  215. 8:38turning it into something that could be
  216. 8:39the useful basis for an assistant. So in
  217. 8:43the fine-tuning we give it uh a large
  218. 8:45amount of curated data that has golden
  219. 8:49examples. So uh when we first started
  220. 8:52doing this these would have been um
  221. 8:53quite often written by humans. They
  222. 8:55still are but some of many of them will
  223. 8:57be generated by models and then we
  224. 8:59filtered them for the best examples and
  225. 9:00so on. So the kinds of things that we
  226. 9:03teach the model during this process are
  227. 9:06getting formatting and style right,
  228. 9:07following instructions, uh the whole
  229. 9:09business of turn taking actually and
  230. 9:11saying you know here's a question and
  231. 9:13answer that that isn't kind of natively
  232. 9:15present in the in our very large scale
  233. 9:18data sets. We add it in finetuning uh
  234. 9:20long context. So when we train we tend
  235. 9:22to train on relatively small context
  236. 9:24lengths and then the model needs to
  237. 9:26learn to uh actually pay attention to
  238. 9:28larger context lengths. That's something
  239. 9:30we again teach during the fine-tuning
  240. 9:32process. Uh reasoning and tool use. We
  241. 9:35bootstrap the reasoning and tool use
  242. 9:37abilities of the models. I'll mention a
  243. 9:38little bit more what those are later. Uh
  244. 9:40and then we get close to something that
  245. 9:42would be a specialized model. So this is
  246. 9:46um roughly speaking something like uh
  247. 9:48GPT3
  248. 9:50about four years ago now.
  249. 9:52Um, and then the next step is to do RL
  250. 9:56pro training, which is what something
  251. 9:58I'm going to spend slightly longer on.
  252. 9:59So, we have an initial model that um has
  253. 10:04been fine-tuned. So, it's already some
  254. 10:06way to being an assistant. And uh we
  255. 10:08want to make it better, a better
  256. 10:11assistant, a more useful assistant, a
  257. 10:12more accurate one. And the the general
  258. 10:14process here uh I'll I'll talk about the
  259. 10:18algorithm later, but the process
  260. 10:20essentially is you take the model, you
  261. 10:22give it some some task. It might be uh
  262. 10:25you know, write a lasagna recipe. Um it
  263. 10:27might be, you know, plan a trip to Italy
  264. 10:29for me or it might be, you know, solve
  265. 10:32some these GSM8K word problems. and
  266. 10:34anything any task and then uh we
  267. 10:37generate a large number of samples well
  268. 10:39say 16 for example uh samples from the
  269. 10:42model and then uh we rank those samples
  270. 10:46somehow. We say you know this one this
  271. 10:48one is great and this one is less good
  272. 10:51and then when we have that ranking we
  273. 10:53then um do an update of the model
  274. 10:56weights uh to make it essentially do
  275. 11:00more like the good samples and less like
  276. 11:02the bad samples. So that's that's the RL
  277. 11:04loop and we go round and round and round
  278. 11:06that loop and um eventually we decide we
  279. 11:09have enough and then we have a model
  280. 11:11that we uh are willing to more willing
  281. 11:14to use as an as an assistant and that
  282. 11:17will typically have much higher quality.
  283. 11:20Um typically has lower diversity which
  284. 11:22sometimes can be a negative um but is
  285. 11:25less likely to hallucinate um more
  286. 11:27likely to behave in the ways that we
  287. 11:29expect an assistant to behave.
  288. 11:31>> Question. Yes.
  289. 11:33>> So, um when the second step where you
  290. 11:37give scores to the samples, is it done
  291. 11:40by hand or is it how is it done?
  292. 11:42>> Um I'm going to talk about that right
  293. 11:44now actually, but it's a great question.
  294. 11:46Um I hope I've got it on the next slide.
  295. 11:48>> How many cycles are we talking about?
  296. 11:52Um,
  297. 11:54>> so
  298. 11:57you might you might go around this loop
  299. 12:00a few thousand times, but each time
  300. 12:02round the loop will be thousands of
  301. 12:04prompts. So uh and then you assemble
  302. 12:07them into a single batch to uh so that
  303. 12:09you are not just training on one sample
  304. 12:11at once. So million definitely millions
  305. 12:14of tasks. Um then each task has been
  306. 12:16sampled say tens of times.
  307. 12:20Um, it's
  308. 12:23at least I I can't speak for other
  309. 12:24Frontier Labs, but in in our in our
  310. 12:26case, this uses a fraction of the
  311. 12:28compute that we use in pre-training. Um,
  312. 12:31we spend
  313. 12:32I can't I'm not going to speculate, but
  314. 12:34we spend much more compute than we do on
  315. 12:36pre-training than we do on this
  316. 12:36post-training process.
  317. 12:40Um,
  318. 12:43not sure I'm clicking the right way. Oh,
  319. 12:46yeah. I I think this is a math
  320. 12:48conference so I should have some
  321. 12:49equations. I I'll I'll come back to it
  322. 12:53maybe. But the um this actually I'll
  323. 12:56mention it now. This is the the most
  324. 12:58common uh RL algorithm that we use these
  325. 13:00days called GPO. Um the idea essentially
  326. 13:03is you sample some responses. You get
  327. 13:07you get a value for each of them. You
  328. 13:08then normalize them to have this zero
  329. 13:10mean and standard deviation one. Uh and
  330. 13:13then you do a policy update, basically a
  331. 13:15gradient update on all the weights of
  332. 13:16your model towards the uh so positively
  333. 13:19reinforcing the samples that have a
  334. 13:21better than average reward and
  335. 13:23negatively reinforcing the ones with a
  336. 13:24worse reward. Um and you can't do that
  337. 13:27entirely unconstrained. So um that is
  338. 13:31that is clipped and we also have this uh
  339. 13:34KL divergence between the model that
  340. 13:36we're training and some reference model
  341. 13:38so that it doesn't doesn't the weights
  342. 13:40don't go too far from from the original
  343. 13:42model. U so that's all this is
  344. 13:48to start pressing buttons. Okay. So here
  345. 13:50are the reward functions and we have
  346. 13:51lots. Um so they kind of fall into two
  347. 13:55categories. There's the sort of um
  348. 13:58approximate ones. So these will
  349. 14:00typically be judged by another LLM is is
  350. 14:03the usual way this works although not
  351. 14:05not always. Um so for example length and
  352. 14:09conciseness we can just measure the
  353. 14:10length and say you get a penalty on the
  354. 14:13you know small penalty if you uh if the
  355. 14:15if the answer is very very long. Um but
  356. 14:18other things like style and tone for
  357. 14:20example we can just use we use a simple
  358. 14:22LLM that just says uh is the you know
  359. 14:24how how is the style of this is this the
  360. 14:27and that uh model will ultimately have
  361. 14:29been trained based on human preferences.
  362. 14:32So we will have um sent a large number
  363. 14:34of samples to humans they will have said
  364. 14:36what they prefer will then uh train a
  365. 14:38model based on those preferences and
  366. 14:40then that model will be used in the RL
  367. 14:42loop. So humans won't be directly in the
  368. 14:44loop, but um models that have been
  369. 14:46trained on their stated preferences will
  370. 14:48will be in the loop.
  371. 14:49>> Is that where the sick of fancy enters?
  372. 14:52Is this
  373. 14:53>> uh yeah, definitely. Um we
  374. 14:57>> the sick of fancy that kind of always
  375. 14:59like sucking off to the user. Yeah, I
  376. 15:01mean there's a number of reasons why
  377. 15:02that happens, but um yeah, a big one is
  378. 15:05that when you naively just ask people
  379. 15:07what they prefer um then they tend to
  380. 15:10prefer sickophantic answers rather than
  381. 15:11answers that disagree with them. Uh
  382. 15:13people also tend to think that uh very
  383. 15:16long answers are more impressive. So
  384. 15:18this this um feedback mechanism does
  385. 15:22tend to make it more uh more verbose
  386. 15:24which is why we have the opposite uh
  387. 15:25feedback here. One reason why um this as
  388. 15:29well is another thing that come
  389. 15:31partially comes from human preferences.
  390. 15:33You know, is it uh is it free of you
  391. 15:36know is it not offensive, not not
  392. 15:39harmful, not toxic or all this kind of
  393. 15:40thing. Um we also measure things like
  394. 15:43are we giving medical advice or not? And
  395. 15:46we are giving medical advice. We want to
  396. 15:48obviously flag that we're that we
  397. 15:49shouldn't be doing that. Um so those are
  398. 15:52the vibes based rewards. Then we also
  399. 15:55have other rewards. Um, and obviously
  400. 15:58not every reward is applicable to every
  401. 16:00task, but we also have more verifiable
  402. 16:03rewards. So, sorry, there's a question.
  403. 16:07Um, so the big one by far um is code.
  404. 16:11So, code is an enormously big deal for
  405. 16:13LLMs. That's partly because the um
  406. 16:17the market for um people are very
  407. 16:19willing to pay for LLMs that do code.
  408. 16:21There's a huge market there. Uh it's
  409. 16:23partly because people who build and
  410. 16:25design LLMs care about code themselves.
  411. 16:28Uh and it's partly because uh we can we
  412. 16:31can get really useful reward functions
  413. 16:33because if you write code to spec to
  414. 16:36solve a particular problem uh we can run
  415. 16:39tests to see does the code do do what it
  416. 16:41should do. Um just as a reminder here in
  417. 16:44training the tasks are all prespecified
  418. 16:46by us. So when we specify a task, we
  419. 16:49will we can also then specify in a co
  420. 16:52case of coding task um you know the
  421. 16:54tests that we want that code to to to
  422. 16:56pass or in the case of a you know recipe
  423. 16:59task the ingredients that we want to be
  424. 17:01included in the recipe and this kind of
  425. 17:03thing. Uh then we have mathematical
  426. 17:05correctness. So um
  427. 17:08in the case of simple final answers we
  428. 17:11can just say if there's a numerical
  429. 17:12answer is it right? We can also
  430. 17:14potentially have um this is less
  431. 17:17verifiable but we can potentially have
  432. 17:18an LLM go through step by step and say
  433. 17:21does each step of this deduction make
  434. 17:23sense? Does it follow from the previous
  435. 17:24steps? Is there a gap? Um then other
  436. 17:28things there are um structural things.
  437. 17:31So if you ask your LLM to produce a
  438. 17:34table for example then it better adhere
  439. 17:36to the the right exactly the right
  440. 17:38format for a table so that it can be
  441. 17:39imported into a spreadsheet or what have
  442. 17:41you. uh similar for JSON and and so on.
  443. 17:45Um and then we can look at uh citations.
  444. 17:49If the uh if the model claims that you
  445. 17:52know some web link answers the question,
  446. 17:54you can actually say does that web page
  447. 17:55exist? Uh if you don't do this kind of
  448. 17:58thing, models are very likely to
  449. 17:59hallucinate web links. And again reason
  450. 18:02for that, one reason for that is that uh
  451. 18:04people like it. If there's a link they
  452. 18:05think great, that's reliable
  453. 18:07information. So models therefore do more
  454. 18:10of it. Um I'll talk about tool use a bit
  455. 18:14later but um if we provide the model
  456. 18:16with tools and we might say that for
  457. 18:18this particular task we expect the model
  458. 18:20to use a tool and therefore we give it a
  459. 18:21positive reward if it uses the tool
  460. 18:23potentially uh whether or not it got the
  461. 18:25question right because even using the
  462. 18:27tool is a is a positive thing that we
  463. 18:28want to reinforce. Uh and then things
  464. 18:30like grammar and spelling and all this
  465. 18:32kind of thing.
  466. 18:35>> Yeah. Uh so the assignment of the reward
  467. 18:37is done by a human or like by a group of
  468. 18:40human or no it's more automated.
  469. 18:43>> So the the tasks that we train on are
  470. 18:46written by humans and then for each task
  471. 18:48or each family of tasks um the the
  472. 18:51humans will specify the rewards that are
  473. 18:53relevant to that task. So um and that is
  474. 18:56quite often done on a so it might be
  475. 18:59done on a task by task basis. So if it's
  476. 19:00a coding task, you as well as writing
  477. 19:03the description of what the code should
  478. 19:05do, you would then also specify a bunch
  479. 19:07of tests that are not shown to the
  480. 19:08model, but they're used just in the
  481. 19:10reward calculation to check that the
  482. 19:12code does what it does. Um so that would
  483. 19:14be a case where we'd have um a very
  484. 19:16specific reward calculation for that
  485. 19:18individual uh for that individual task.
  486. 19:21In other cases, the uh the reward
  487. 19:23computation might be more generic. you
  488. 19:24might just say, you know, the answer,
  489. 19:27this should be an answer to the question
  490. 19:28and we use an LLM to judge whether or
  491. 19:30not that's the case. But yeah, it's all
  492. 19:33um all specified by humans and then
  493. 19:35evaluated by by machines at runtime.
  494. 19:42Uh okay, so that at this point we have
  495. 19:47um an LLM that's being turned into a
  496. 19:50language agent. I told you I'd get that
  497. 19:52wrong. and um does does things that are
  498. 19:54kind of useful. So I'm going to spend a
  499. 19:56couple of slides talking about what the
  500. 19:58limitations are of something that's
  501. 20:00trained in this way. I think probably if
  502. 20:02you ever used LM some of these will be
  503. 20:04familiar. Um
  504. 20:06>> there's a question.
  505. 20:07>> Yeah, sorry.
  506. 20:09>> So um if you go back to the previous
  507. 20:11step, there's a big part you say is code
  508. 20:14creating code that is why are you not
  509. 20:17building something that only speaks code
  510. 20:19so that you can eliminate like citation
  511. 20:22provenence and parameical grammatical
  512. 20:25will be that it compiles stuff, right?
  513. 20:27You you'll eliminate a lot of the
  514. 20:29constraints if you impose it if you just
  515. 20:31have something that only speaks
  516. 20:32[clears throat] code. Um yeah I suppose
  517. 20:35there are a couple of answers here. So
  518. 20:37one is that we would ideally like
  519. 20:39something that's capable across a broad
  520. 20:40range of domains. So um you know it's
  521. 20:44quite nice for example if you're um
  522. 20:46having a conversation with an an LLM
  523. 20:48about some topic and it can then uh if
  524. 20:51there's a point at which it makes sense
  525. 20:52to write code to do a calculation for
  526. 20:54example then it can just do that rather
  527. 20:56than having you know you had to switch
  528. 20:58to an entirely different agent that's
  529. 20:59now the now the code specialist. And the
  530. 21:01other the other reason I think or is
  531. 21:04that we actually see very positive
  532. 21:05reinforcement between all of these. So
  533. 21:08um if we improve the quality of our code
  534. 21:11code data for example, we see that um
  535. 21:14the quality on apparently unrelated
  536. 21:16tasks goes up. So um you know we have
  537. 21:20like visual questioning answers where
  538. 21:21you had to look at look at a picture and
  539. 21:24answer questions about it like you know
  540. 21:25how many birds are there in this picture
  541. 21:27or this kind of thing. um the the model
  542. 21:30performance on those tasks goes up when
  543. 21:32we improve coding performance. So at the
  544. 21:34moment it doesn't look like there's any
  545. 21:35kind of trade-off here. It looks like
  546. 21:37getting better at one thing gets makes
  547. 21:38you better at everything.
  548. 21:42>> Yeah,
  549. 21:43>> it's part of the answer as well that you
  550. 21:45need to be able to speak to it as a
  551. 21:48using natural language to have a thing
  552. 21:49and sometime it needs to be able to come
  553. 21:51back and ask question to check the
  554. 21:54specification. So it has to speak
  555. 21:56anyways. that yes that's that that is
  556. 21:58true. Um and another reason that we'll
  557. 22:01I'll mention later is that um the way
  558. 22:04our uh models work these days is even if
  559. 22:07even if you say just just give me the
  560. 22:09code nothing else in practice the the
  561. 22:11model will do some talking to itself
  562. 22:14some internal reasoning in natural
  563. 22:15language and obviously you want to
  564. 22:17retain that ability so it can kind of
  565. 22:19plan its coding before it before it then
  566. 22:21does it. Um there might be a related
  567. 22:25question which is in some cases um like
  568. 22:29this structural adherence can does it
  569. 22:31make sense to place restrictions on the
  570. 22:33generation process so it can't generate
  571. 22:35something that's uh syntactically
  572. 22:37invalid. Um the answer to that is that
  573. 22:41it's we do this occasionally just for
  574. 22:44internal use but um because of the uh
  575. 22:49auto reggressive nature of the of the
  576. 22:51sampling um you can't do this in a very
  577. 22:54valid way because what can happen is you
  578. 22:56kind of sample some tokens and there
  579. 22:58could be a syntactically valid
  580. 22:59completion but it's an absolutely
  581. 23:01terrible one. So you kind of painted
  582. 23:02yourself into a corner where the only
  583. 23:04the only legal thing you can do next is
  584. 23:06is a really terrible action. So it's
  585. 23:08much better to allow the model just to
  586. 23:10at that point say oh no I' I've I've
  587. 23:12done something horribly wrong and um
  588. 23:15effectively start again and the way it
  589. 23:16can do that is by breaking the the kind
  590. 23:18of rigid constraints of the domain and
  591. 23:20saying actually no I'm studying again
  592. 23:24um okay so related to that this is uh
  593. 23:27famous auto reggressive trap so um the
  594. 23:32question here is how many words in the
  595. 23:33NATO phonetic alphabet contain an e in
  596. 23:35them and then the specific instruction
  597. 23:37is first give me the answer and then
  598. 23:39enumerate them and keep a running count.
  599. 23:42So the model very confidently says the
  600. 23:44number of words in the nato phonetic
  601. 23:46alphabet that contain the letter E is
  602. 23:47seven. Uh it's a bit of an underestimate
  603. 23:49as we'll see. And then having said that
  604. 23:51it goes through and enumerates them and
  605. 23:53it does very well until M which is when
  606. 23:56it hits seven. Uh and then after that
  607. 23:59because it's um committed to the answer
  608. 24:01seven already uh it then claims that
  609. 24:03none of the remaining ones have a have
  610. 24:05an E in them. uh even though of course
  611. 24:07they do. Uh and that's the the the issue
  612. 24:11here essentially is that um when we're
  613. 24:14down at the bottom here, it's trying to
  614. 24:15produce a coherent piece of text and uh
  615. 24:19when it gets to, you know, does um
  616. 24:21whiskey have an E in it or something.
  617. 24:23The the pieces of information it has are
  618. 24:25that its running count is seven. There
  619. 24:28are seven E and there is an there's an E
  620. 24:31here. There might be an E in whiskey.
  621. 24:34And um therefore that the balance that
  622. 24:37it comes to is that there is no E. It's
  623. 24:39maybe worth pointing out by the way that
  624. 24:41the presence of an E is not quite as
  625. 24:44salient to the model as it is to us
  626. 24:46because because we we see the individual
  627. 24:48letters whereas the model sees uh
  628. 24:51tokens. And so the the model is is is
  629. 24:54probably actually just seeing one token
  630. 24:56for the whole word whiskey. So it then
  631. 24:59has to know does that does that the
  632. 25:01spelling of the word whiskey correspond
  633. 25:03to uh letters which have an E in it. So
  634. 25:05it's not quite as dumb as it looks but
  635. 25:07it is still um something that's induced
  636. 25:10by this early commitment to to the wrong
  637. 25:14answer.
  638. 25:15>> This is because it does not see the
  639. 25:18difference between the user's input and
  640. 25:20its own partially generated output.
  641. 25:23>> Um
  642. 25:23>> is that actually what's happening?
  643. 25:25>> No. No, not not in it's um the models
  644. 25:29have a strong tendency to
  645. 25:30self-consistency as well. So um and it's
  646. 25:36um so it will even even within their own
  647. 25:38text they they will uh they will
  648. 25:40maintain consistency and I think that's
  649. 25:42reinforced by just the general
  650. 25:44pre-training which is that any piece of
  651. 25:46text is likely to be self-consistent
  652. 25:48with within itself. And then also the
  653. 25:51the various things we do in training
  654. 25:53which if if you are inconsistent um
  655. 25:56halfway through a piece of text it's
  656. 25:58highly unlikely you're going to get the
  657. 25:59right answer. So that's going to be
  658. 26:00negatively reinforced anyway.
  659. 26:06Um my take on this by the way or is one
  660. 26:08way to think about it is that um we said
  661. 26:12before we use exactly the same model to
  662. 26:14generate every token. Uh that means we
  663. 26:16have exactly the same amount of compute
  664. 26:18um for each token and here the the the
  665. 26:20token that really matters is this seven
  666. 26:22which is towards the beginning and we
  667. 26:24have a fairly small amount of compute
  668. 26:25before we have to emit that token. So
  669. 26:27one way of thinking about this is the
  670. 26:29fix is to make sure you can somehow
  671. 26:31manage to leverage more compute in some
  672. 26:33way before you get to that that decision
  673. 26:35point of which number to output.
  674. 26:40Um
  675. 26:41>> agent was used to produce
  676. 26:43>> sorry
  677. 26:44>> which agent was
  678. 26:45>> uh I don't know actually I took this
  679. 26:47from Twitter um not I'm not sure they
  680. 26:50they all had this problem though I I
  681. 26:52promise not nothing unique. Uh okay. So
  682. 26:56here's one way to enable the the agent
  683. 26:58to use uh variable compute. It's called
  684. 27:01reasoning or thinking. Um don't say that
  685. 27:04too literally. The the basic innovation
  686. 27:07is this um thought and end of thought
  687. 27:10tokens that are at the beginning and the
  688. 27:11end of this purple thing. And from a
  689. 27:13technical point of view, this is all
  690. 27:15this means is that everything that's
  691. 27:17inside the thought tokens is thrown away
  692. 27:20and doesn't get sent to the um the
  693. 27:23reward function. So the so the reward
  694. 27:27function never sees um the stuff that's
  695. 27:30in purple, which means the model is free
  696. 27:32to be as long as it likes. It doesn't
  697. 27:33get penalized for it. It can be as
  698. 27:35inconsistent as it likes. Again, it
  699. 27:37won't get penalized for that. Um it can
  700. 27:40uh you try multiple answers, say, "Oh,
  701. 27:42no, that one's not not right. Now try a
  702. 27:44new answer." And it won't get penalized
  703. 27:46for not strictly following the
  704. 27:47instructions and so on because all of
  705. 27:48that gets thrown away. The only thing
  706. 27:50that goes to the reward function is the
  707. 27:52nice clean the answer is at zed that it
  708. 27:55produces at the end. So that effectively
  709. 27:58enables the model to use as much comput
  710. 28:00as it wants before um committing to an
  711. 28:03answer and and emitting emitting an
  712. 28:05answer. Um
  713. 28:08so actually technically in order to do
  714. 28:10it um we we first of all has to be in
  715. 28:12fine-tuning so the model sees some
  716. 28:14examples of using this begin and end of
  717. 28:16thought token because it wouldn't appear
  718. 28:17anywhere in the pre-training data
  719. 28:19something that we had later. Uh and then
  720. 28:21we just do RL with the thoughts being
  721. 28:24removed. Uh and just a just a thing that
  722. 28:28um when we do training we train on the
  723. 28:31um the RL training. Um so what I mean by
  724. 28:35this is the RL the reward ignores the
  725. 28:37thoughts but the RL learning includes
  726. 28:40the thoughts. So the model is thoughts
  727. 28:42which lead to a good answer are
  728. 28:44positively reinforced and that includes
  729. 28:46all the mistakes and corrections and and
  730. 28:48internal thought processes.
  731. 28:52So that's one way of enabling the model
  732. 28:54to leverage more compute.
  733. 28:57Um here's another way. This is uh we I
  734. 29:01think harnesses were mentioned this
  735. 29:02morning. Um this is an example of a
  736. 29:04harness is is deep think. So um
  737. 29:09essentially the way deep think works is
  738. 29:11uh I you know there many other harnesses
  739. 29:13are available. Uh but the way this works
  740. 29:16is that for a given question we generate
  741. 29:18multiple answers which are here on the
  742. 29:20on the first row uh you know 1 2 3 4 and
  743. 29:24then maybe some of those are right some
  744. 29:26of them are wrong or maybe different
  745. 29:27ones have different strengths and
  746. 29:29weaknesses and then we do a iterative
  747. 29:32refinement process. So you see five and
  748. 29:34six each of them get to see I think in
  749. 29:37this diagram three of the responses from
  750. 29:40the first row and then we basically say
  751. 29:43to the model at this point here's the
  752. 29:45question here are four answers which you
  753. 29:48may three answers which you may or may
  754. 29:49not find useful now come up with a
  755. 29:51better answer and the model is free at
  756. 29:53this point to um
  757. 29:56take just copy one of the answers
  758. 29:57verbatim say actually know all those
  759. 29:59answers are terrible I'm going to do my
  760. 30:00own thing or say I'm going to slightly
  761. 30:03polish this answer or mix and match
  762. 30:05pieces and anything like that and then
  763. 30:07uh it does that inside its thoughts and
  764. 30:09then eventually emits a clean answer um
  765. 30:13number five number six and then in this
  766. 30:15case it's a relatively shallow deep
  767. 30:17think. We have a last step which takes
  768. 30:19those two and does the same again. So
  769. 30:22combine them anyway at once just take
  770. 30:23the best one uh throw them both away and
  771. 30:25start again or or polish them or
  772. 30:28anything like that. So this is um I
  773. 30:31think somewhat available externally as
  774. 30:33Gemini deep think um but in in general
  775. 30:37this is just an example of the kinds of
  776. 30:39thing that uh was talked about this
  777. 30:41morning as well of having a a harness
  778. 30:43where you call an LLM multiple times and
  779. 30:46you kind of pass the outputs of one LLM
  780. 30:48into another LLM and um you get you get
  781. 30:52better responses as a result. Okay, so
  782. 30:54this is another way that we can use more
  783. 30:56compute to get uh better answers.
  784. 30:59And here's yet another way that we can
  785. 31:01use Oh, sorry. Was there a question? No.
  786. 31:05Um, another way, again, this was
  787. 31:06mentioned this morning. Um, we can use
  788. 31:09tools for thinking. The the distinction
  789. 31:11I'm making here is that, um, LLMs also
  790. 31:14use tools for actions as well. So, um,
  791. 31:18you know, if you want an LLM to draw you
  792. 31:20a picture, for example, it will call a
  793. 31:22picture during tool or it might call a
  794. 31:25tool to, you know, place an event in
  795. 31:26your calendar or something like this.
  796. 31:28But these are not that. This is when
  797. 31:29it's using a tool entirely when it's
  798. 31:31within its thought process. You don't
  799. 31:33see the the tool being called
  800. 31:34necessarily. Um but you know if it wants
  801. 31:36to do some multiplication then instead
  802. 31:39of trying to do it itself uh it can
  803. 31:41write a Python program that can do the
  804. 31:43multiplication for it for example. Um
  805. 31:47another example of a tool is uh web
  806. 31:49search as well. If it wants to look
  807. 31:50something up on the web, it can use a
  808. 31:52tool that can then um actually retrieve
  809. 31:55the document from the web rather than um
  810. 31:58hallucinating its contents.
  811. 32:00Um
  812. 32:02there you go. So we make tools available
  813. 32:04at thinking time during training and
  814. 32:06then uh the model uh our language model
  815. 32:10is therefore trained to use the tools
  816. 32:12when it's when it's useful to do so. And
  817. 32:14again there may be rewards that um
  818. 32:16[clears throat] that encourage uh
  819. 32:18encourage tool use. Yeah.
  820. 32:20>> So for both the reasoning and like using
  821. 32:23of tools the way that it is fine tuned
  822. 32:25is just by adding prompts which have
  823. 32:30some data set
  824. 32:32>> um well yes adding adding responses. So,
  825. 32:36so in the fine-tuning process, we give
  826. 32:38it examples of using a tool um and
  827. 32:40examples of um you know, thinking and
  828. 32:44then um we may also in the in the prompt
  829. 32:49early on in training say just as a
  830. 32:52reminder, here's how you call a tool or
  831. 32:54here's how you um how you use thoughts.
  832. 32:56But by the time we get to the end of
  833. 32:58training um those those prompts will
  834. 33:00have gone away and it will have seen it
  835. 33:03will have seen sufficient examples of
  836. 33:05tool use and and prompt and um thought
  837. 33:08use that we don't we no longer need to
  838. 33:10prompt it to do it. So yeah it starts by
  839. 33:13giving examples maybe a bit of prompting
  840. 33:15uh and then uh in reinforcement learning
  841. 33:18the model will learn when it's
  842. 33:19appropriate to do those things and how
  843. 33:21to use them and uh and then we get this.
  844. 33:24So one one example actually of the way
  845. 33:26this differs is that our fine-tuning
  846. 33:29data for thinking uh for the the
  847. 33:32internal thoughts the internal thoughts
  848. 33:34are typically very brief um just because
  849. 33:37humans wrote these examples mostly and
  850. 33:39they didn't write very much um but when
  851. 33:41we actually look at the model samples
  852. 33:43the thoughts can be enormously long and
  853. 33:46um that's something that the model kind
  854. 33:48of learns to do incrementally over over
  855. 33:51training. We if you we look at the how
  856. 33:53the model evolves over the course of
  857. 33:55training, you can see the length of the
  858. 33:56thoughts, you know, increases um very
  859. 33:58dramatically uh as it learns to make
  860. 34:01better and better use of the thoughts
  861. 34:02and increase its accuracy that way. And
  862. 34:04then later on in training the um it
  863. 34:10drops again because uh we have this
  864. 34:12reward for minimizing the thought
  865. 34:14slightly given that you've got the right
  866. 34:16answer. So once it's once it's kind of
  867. 34:19close to its capacity for getting the
  868. 34:20right answer, then that secondary reward
  869. 34:22will kick in and make the short the
  870. 34:24thoughts a bit shorter.
  871. 34:29Uh okay, I think I'm roughly halfway
  872. 34:32through. I think I think bit after
  873. 34:34halfway. So um formass so I'm going to
  874. 34:40talk so in RL um we have various kinds
  875. 34:43of tasks as I mentioned um a lot of
  876. 34:45coding tasks I should emphasize it's
  877. 34:47really a lot of coding tasks because um
  878. 34:50we care a lot about code and um because
  879. 34:53there's a easy supply of a lot of lot of
  880. 34:56interesting tasks but we also have math
  881. 34:58tasks um so they kind of come in two
  882. 35:02kinds um so there's the short answer
  883. 35:04with a verifiable rule award. Um, so
  884. 35:07GSM8K is an example of this. Um, where
  885. 35:11you know the the answer is just a
  886. 35:13number. Uh, or maybe it's a multiple
  887. 35:15choice question. There are have been
  888. 35:17some attempts actually we had um
  889. 35:20frontier method results earlier to
  890. 35:22create really challenging questions with
  891. 35:23numerical answers so they can be easily
  892. 35:25checked. Um, this turns out to be quite
  893. 35:27hard by the way. So epochai recently
  894. 35:31said that about a third of Frontier Math
  895. 35:33was was wrong in some way. Um it's not
  896. 35:37super surprising I think because trying
  897. 35:39to trying to create a problem where uh
  898. 35:41the answer is a definite number um but
  899. 35:44the uh so an integer in this case um but
  900. 35:48it's a really it's a really challenging
  901. 35:49question and you can't cheat all of
  902. 35:51those things. So um
  903. 35:53>> oh you mean the final numerical answer
  904. 35:55is wrong.
  905. 35:56>> Uh I think yes either the answer is
  906. 35:59wrong or the or the problem is cooked in
  907. 36:00some way that you could easily guess the
  908. 36:02answer without going through the um the
  909. 36:05intended reasoning process.
  910. 36:08Yeah.
  911. 36:09Um so that's the short answer verifiable
  912. 36:11reward. Uh and then the long answer uh
  913. 36:15requires a kind of vibes based LLM
  914. 36:17checked reward. So an example of that
  915. 36:20for math might be uh proof writing. So
  916. 36:22for the our IMO effort in uh 2025, we
  917. 36:28used uh basically a grader that got a um
  918. 36:32a model answer for the problem and then
  919. 36:35it got the LLM answer and its job was
  920. 36:37just to say how many points out of seven
  921. 36:38would you give the LLM answer given
  922. 36:41here's a reference here's a reference
  923. 36:43answer. Um,
  924. 36:46so yeah, those those two short answers
  925. 36:48and verifiable or long answers and vibes
  926. 36:50based. Um,
  927. 36:53>> [snorts]
  928. 36:53>> uh, I'd hope to have a Oh, I do. Great.
  929. 36:56Um, so reward hacking is a thing in, um,
  930. 36:58in RL. So this basically means that
  931. 37:01anytime you specify any kind of
  932. 37:03incentive for anything, um, including an
  933. 37:05agent, it will end up doing things that
  934. 37:07you didn't want it to do, but that were
  935. 37:09optimizing the reward. So, this example
  936. 37:11I'm about to show you is from about 10
  937. 37:12years ago, um when games were what AI
  938. 37:16was about. Uh this is a um I think it's
  939. 37:20a speedboat racing game. Is this going
  940. 37:21to work? Oh, damn it.
  941. 37:25>> Oh, this is annoying. Um I felt sure I
  942. 37:30had this. Okay, I will.
  943. 37:32>> Of course, people do that too.
  944. 37:37>> Yeah, absolutely. It's a very yeah very
  945. 37:39human thing. What happens in this game
  946. 37:41anyway I will tell you is that uh the
  947. 37:43model learns to I wonder if I can find
  948. 37:45it actually. Speedboat reward hacking.
  949. 37:50Oh no, I don't have the internet. Oh,
  950. 37:52that's probably why it's not working.
  951. 37:54Okay. Um All right. I apologize. What
  952. 37:56happens in the reward hacking is that um
  953. 37:59the agent learns to find a way to rather
  954. 38:02than do the intended thing which is to
  955. 38:04go around and and race the other
  956. 38:06speedboats, it finds a loop it can go
  957. 38:08around where it repeatedly crashes into
  958. 38:09an obstacle and gets a small bonus for
  959. 38:12crashing into that obstacle. It can
  960. 38:13actually outscore any human by doing
  961. 38:15that just by repeating in a tight loop.
  962. 38:17It's terrible at actually winning the
  963. 38:18race, but it gets a high higher score in
  964. 38:21the video game which was the objective
  965. 38:22that it was trained on. Um yeah
  966. 38:30okay so
  967. 38:33one way of thinking about that this is
  968. 38:34that um we're effectively uh it's an
  969. 38:39adversarial process the reward
  970. 38:40maximization we have our agent which is
  971. 38:43coming up with a in this case a proof
  972. 38:46and then we and then we have our grader
  973. 38:48which is checking it maybe it's got a
  974. 38:50mark scheme or a golden answer uh and
  975. 38:52this is just single shot you you don't
  976. 38:54get to then see the marking scheme and
  977. 38:56have another go. You just submit it and
  978. 38:57then you get your score back. Um
  979. 39:01this is this is you know adversarial the
  980. 39:04um the this this thing that's coming up
  981. 39:08with the answers is incentivized to do
  982. 39:10whatever it takes to convince the grader
  983. 39:11that it's answer is a good one. And the
  984. 39:14kinds of things that will end up doing
  985. 39:16are uh lots of things that you do not
  986. 39:18want uh your assistant actually to do.
  987. 39:20So we see a lot of self-praise,
  988. 39:22excessive length, fake citations,
  989. 39:24overconfidence, and hiding uncertainty
  990. 39:27or or flaws. I mean, all of those are
  991. 39:29terrible behavior for an assistant, but
  992. 39:31they're all being explicitly encouraged
  993. 39:33by the the training process here because
  994. 39:35doing all of these things is going to
  995. 39:37make it more likely that you'll pass the
  996. 39:38grading. So these are these are samples
  997. 39:41from one of our internal models. Um the
  998. 39:43model says the proof is flawless. Um in
  999. 39:46this case the model actually um shows
  1000. 39:49that its answer is incorrect because
  1001. 39:51it's off by 05 but it says um it's a
  1002. 39:54small margin and I have I have done the
  1003. 39:57rigorous argument so you don't need to
  1004. 39:59bo bother about the numerical check uh
  1005. 40:02solution is exceptionally well written
  1006. 40:04excellent and correct final response is
  1007. 40:06perfect and then uh says everything's
  1008. 40:09forwarded correctly it flows logically
  1009. 40:11there are no issues and an LLM uh you
  1010. 40:15know a naive LLM grader will find these
  1011. 40:18things quite convincing. Of course we
  1012. 40:20can uh we can adapt to this. We do
  1013. 40:23things like we tell the grader to take
  1014. 40:26points off for self-praise and to
  1015. 40:29excessive excessive length. We can check
  1016. 40:32citations. But this is ultimately an
  1017. 40:34arms race. Every time we improve improve
  1018. 40:35the grader, um the the prover will adapt
  1019. 40:39to it and find another way to craft
  1020. 40:42responses so that it exploits the
  1021. 40:44weaknesses in the in the psychology of
  1022. 40:46the of the grader
  1023. 40:50and you know it will all of these things
  1024. 40:52are things that you don't want to to
  1025. 40:55happen. So I think this is the third
  1026. 40:57time you've seen today a proof of the
  1027. 40:59infinity of primes. them. Hopefully
  1028. 41:01you're convinced that it's true by now.
  1029. 41:04But um
  1030. 41:06briefly formal mathematics the key
  1031. 41:08features that it that it has are that
  1032. 41:10you can represent more or less any
  1033. 41:11mathematical theory uh in it. Um so we
  1034. 41:15use lean which is a very common choice
  1035. 41:17for AI people. Um it has a large
  1036. 41:20pre-existing library of formalized
  1037. 41:21mathematics including definitions and
  1038. 41:23theorems which you can use by name. uh
  1039. 41:26and then how formal math works generally
  1040. 41:29you know the proofs are verified based
  1041. 41:31on the fundamental axioms and they're
  1042. 41:33written at relatively high level so you
  1043. 41:35don't have to descend to the individual
  1044. 41:37axioms to to actually write a proof. Um
  1045. 41:41so those are all those are the features
  1046. 41:43that we depend on of of formal maths and
  1047. 41:46then we can
  1048. 41:48if we kind of formalize the mathematics
  1049. 41:50before verification then this gives us
  1050. 41:53uh a different looking game. So we have
  1051. 41:56here the same same ideiator that's
  1052. 41:59producing a detailed step-by-step
  1053. 42:01natural language proof or plan. Great.
  1054. 42:03Uh we then have a formalizer
  1055. 42:06uh that formalizes it and then that is
  1056. 42:08passed to a verifier that checks it. So
  1057. 42:11the the nice thing about this is that um
  1058. 42:14as far as these two are concerned, this
  1059. 42:16is now a cooperative game. So the the
  1060. 42:19thing that's coming up with a natural
  1061. 42:20language proof is incentivized to make
  1062. 42:22the proof clear, unambiguous to if
  1063. 42:25there's any kind of difficulty to make
  1064. 42:28it make it obvious where the difficulty
  1065. 42:30is so the formalizer piece can uh you
  1066. 42:34know address the difficulty if it needs
  1067. 42:36to for example and it can follow the
  1068. 42:38follow the structure of the proof. So
  1069. 42:40more or less all the things that were
  1070. 42:41being encouraged by reward hacking are
  1071. 42:43being discouraged here in this more
  1072. 42:45cooperative setup. Um and the other
  1073. 42:49crucial piece is that this verifier is
  1074. 42:51unfallable. So there is there can be no
  1075. 42:53reward hacking of the verifier because
  1076. 42:55it is a completely unfallable unhackable
  1077. 43:00uh check.
  1078. 43:03>> So how do you deal with the formulation
  1079. 43:05of the the
  1080. 43:07>> yeah translation into being of the
  1081. 43:10statement?
  1082. 43:10>> Yes, exactly. So um in the in case of RL
  1083. 43:15training then um I I'll talk a bit about
  1084. 43:18the options that we have but one thing
  1085. 43:19we would do is that the task would
  1086. 43:21consist of here is the theorem
  1087. 43:22statement.
  1088. 43:23>> So that's provided as part of the task
  1089. 43:25and then the task is then to fill in a
  1090. 43:27formal proof.
  1091. 43:28>> Yeah.
  1092. 43:28>> Uh how would you say that the verifier
  1093. 43:30is unhackable? I don't understand why is
  1094. 43:33it like unhackable? Um, so I'm going to
  1095. 43:35admit that it's not that um it's
  1096. 43:38unhackable because uh it's a this is the
  1097. 43:42this is not a kind of LLM based vibes
  1098. 43:45based assessment. This is literally um
  1099. 43:48the the proof that you give given is
  1100. 43:50translated into uh a step-by-step
  1101. 43:52deduction and you can verify that each
  1102. 43:54step follows precisely from the previous
  1103. 43:56steps and the the axioms. So the check
  1104. 43:59is ultimately done by in our case lean a
  1105. 44:02very very small kernel that that
  1106. 44:04verifies that very very detailed
  1107. 44:06step-by-step mathematical argument. Um
  1108. 44:08you have to be a bit careful of what you
  1109. 44:10put around it. By the way I think I have
  1110. 44:11this next. So um we now we now use
  1111. 44:15either safe verify or comparator which
  1112. 44:17are lean tools to um to do exactly what
  1113. 44:21I just said to take a take a
  1114. 44:23mathematical uh proof and verify that it
  1115. 44:26does prove what you wanted it to prove.
  1116. 44:28But before we did that um we had some we
  1117. 44:31had some reward hacking in the uh in the
  1118. 44:33formal language case. So if you read
  1119. 44:36this the this is after some rounds of
  1120. 44:38RL. So the model will have happened upon
  1121. 44:40this uh tactic this approach early in RL
  1122. 44:44and then it will have been reinforced
  1123. 44:45through multiple rounds of RL. So by the
  1124. 44:47time we get to this trace the model is
  1125. 44:49actually quite adept at justifying to
  1126. 44:51itself that um this is the approach you
  1127. 44:53should take. So it says um sorry is
  1128. 44:56perfectly val so sorry in lean just
  1129. 44:58means I'm going to provide a proof of
  1130. 44:59this later just a placeholder for now.
  1131. 45:02So it says um sorry is valid syntax. So
  1132. 45:05surely that's okay. Um and then
  1133. 45:08obviously be better to prove it but it
  1134. 45:10looks like it might be a bit you know
  1135. 45:12difficult might take too much time and
  1136. 45:14so then um because what are our formal
  1137. 45:17checks actually ban sorry. So if it so
  1138. 45:20if it had just if it had submitted
  1139. 45:22something sorry it would have got a ne
  1140. 45:24negative reward and therefore would have
  1141. 45:25been negatively reinforced. However it
  1142. 45:27came up with something else which is to
  1143. 45:30um redefine the theorem to be true um by
  1144. 45:34uh by redefining the meaning of prime.
  1145. 45:37So in this case I think what it did is
  1146. 45:38define prime to be always true. So and
  1147. 45:41therefore this the statement was um was
  1148. 45:43vacuurously true about the being primes.
  1149. 45:46um yes, but also not very helpful. So we
  1150. 45:50we now use the safe verify which does a
  1151. 45:52bunch of things and essentially
  1152. 45:54elaborates the uh the proofs all the way
  1153. 45:57down to the axums then compares that the
  1154. 45:58definitions are exactly the same. Before
  1155. 46:00we were just doing a textual comparison
  1156. 46:02which is why we fell with this.
  1157. 46:03>> Is this green text the actual thoughts?
  1158. 46:05>> Yeah,
  1159. 46:06>> these are kind thoughts that you see
  1160. 46:09here.
  1161. 46:10>> Question on that. Do you still use
  1162. 46:13because I thought that comparator was
  1163. 46:15the
  1164. 46:16or improved and improved uh version of
  1165. 46:19that.
  1166. 46:20>> Um we have just switched from using safe
  1167. 46:22verify to comparator. So one reason we
  1168. 46:25use safe verify was because it enabled
  1169. 46:27us allowed us to do disproofs as well.
  1170. 46:29So what we'd like to be able to say is
  1171. 46:31here's the here's the challenge. Please
  1172. 46:33provide a proof and then the agent can
  1173. 46:35either provide a proof or alternatively
  1174. 46:36say actually no I'm going to disprove it
  1175. 46:38and provide a disproof and comparator
  1176. 46:40didn't allow that but we've just we have
  1177. 46:42our own private fork that does have that
  1178. 46:43feature in that hopefully will
  1179. 46:44contribute but yeah comparator is what
  1180. 46:46we want to use.
  1181. 46:48Um
  1182. 46:50okay so what kind of tasks do we have to
  1183. 46:52to your question here? So um one task is
  1184. 46:56just you given a theorem statement in
  1185. 46:57lean and then you provide a a proof of
  1186. 47:00that theorem. Uh we can extend that by
  1187. 47:03um you know adding some auxiliary
  1188. 47:05definitions as well. So it's not just a
  1189. 47:06oneline theorem statement. There's some
  1190. 47:08new mathematical structures that you're
  1191. 47:09expected to reason about. Uh and we can
  1192. 47:12also as I said we extend it to include
  1193. 47:14false statements. So the u agent can
  1194. 47:16provide a disproof instead. This is this
  1195. 47:20feels intuitively likely to be helpful
  1196. 47:21because the agent will sometimes come
  1197. 47:23will hypothesize things that are false.
  1198. 47:26So being able to um prove that things
  1199. 47:28are false seems like a useful capability
  1200. 47:30for it to have. Um an example of this
  1201. 47:32kind of thing is a mini F2F data set
  1202. 47:34which was quite early with sort of subly
  1203. 47:37olympiad uh problems.
  1204. 47:40Then um I think to the numinina people
  1205. 47:44where are you? Oh thank you think of
  1206. 47:46this. So this was a data set of uh
  1207. 47:49100,000 problems from the numina people
  1208. 47:52of sort of again olympiad and subly
  1209. 47:54olympiad level. Um so we we have have
  1210. 47:57been using these in training. Um again
  1211. 47:59just as a here's a theorem statement now
  1212. 48:01provide a proof.
  1213. 48:03Um and then also another possible task
  1214. 48:07is formalization. So take a paper from
  1215. 48:09the archive. There are quite a lot. Um
  1216. 48:12and then try and formalize the informal
  1217. 48:14mathematics in in that paper. You know
  1218. 48:16the probability means you have to add
  1219. 48:18some definitions. Uh and then when
  1220. 48:20you've done that um you can look at did
  1221. 48:23you did you formalize and prove the
  1222. 48:25right thing. This has to be as you're
  1223. 48:26saying a little bit vibes based. So we
  1224. 48:28no longer have the formal verification
  1225. 48:30guarantee. So we actually don't use this
  1226. 48:31for that reason but it is a possible
  1227. 48:33task that one that one could do.
  1228. 48:37Um here's another one. This is uh a
  1229. 48:40Jacobian challenge from Kevin Buzzard uh
  1230. 48:43recently published. So he's basically
  1231. 48:45got uh some mathematics and he's removed
  1232. 48:50some of the definitions and some of the
  1233. 48:53and all the theorem proofs and replaced
  1234. 48:55them with sorry.
  1235. 48:58And so the task for the agent is to
  1236. 49:00complete all the definitions and
  1237. 49:01complete all the theorem proofs. The um
  1238. 49:05this is very cool. We're going to try
  1239. 49:06and doing it. The slightly difficult
  1240. 49:08thing about this is it's quite um needs
  1241. 49:10some expertise to um to construct. So if
  1242. 49:14you see a line 50 uh there's a there's
  1243. 49:18an additional theorem which I guess
  1244. 49:19Kevin has added here to say that um
  1245. 49:24you know the genus is zero if it's is
  1246. 49:26empty I guess. Uh and the reason for
  1247. 49:28that is it's avoiding some kind of
  1248. 49:30trivial way that you could solve it by
  1249. 49:31giving the wrong wrong definition. So
  1250. 49:34getting this kind of thing right
  1251. 49:36requires quite a bit of expertise and I
  1252. 49:37would expect if we generated a large
  1253. 49:39number of these the models would hack a
  1254. 49:41lot of them. We'd have quite a process
  1255. 49:42of iterating on them but it's still a
  1256. 49:44very cool idea.
  1257. 49:48Uh and then
  1258. 49:50the last thing that we do is this idea
  1259. 49:51of a boss theorem. So you may recognize
  1260. 49:54this theorem statement in blue as the
  1261. 49:58less theorem. We think given the current
  1262. 50:00statement of math lab, it would probably
  1263. 50:02take a million maybe two million lines
  1264. 50:03of code um to to prove to prove this
  1265. 50:07statement. Um there's an awful lot of
  1266. 50:09mathematics that would need to be
  1267. 50:10formalized in order to get there. Um so
  1268. 50:13if we set that task to an agent and
  1269. 50:15eventually did it, uh we could be
  1270. 50:16reasonably confident that it got all the
  1271. 50:18stuff about modular forms and and
  1272. 50:20elliptic curves and so on correct even
  1273. 50:22though we don't check any of it. The
  1274. 50:23only thing we would need to check is
  1275. 50:25have you actually ended up proving uh
  1276. 50:27fossess theorem for example.
  1277. 50:29Um this is quite appealing for us
  1278. 50:32because um this it learns skills which
  1279. 50:35are transferable to code and because I
  1280. 50:38say proving one of these theorems would
  1281. 50:40uh involve formalizing a large amount of
  1282. 50:42theory. We are obviously not going to
  1283. 50:44put precisely this one into training.
  1284. 50:46There's no chance that a training agent
  1285. 50:48can do it. But what we can do is
  1286. 50:50similarly to um Kevin Buzzard's thing.
  1287. 50:53We can take a complete proof uh complete
  1288. 50:55formalization delete pieces of it and
  1289. 50:57get the model to fill in to fill in
  1290. 50:59those pieces. The the difference from
  1291. 51:02the other thing is that uh in this case
  1292. 51:04it doesn't depend on any esoteric
  1293. 51:06definitions. So the the definitions so
  1294. 51:10it will be we'll be asking the model to
  1295. 51:12build theory and then prove something
  1296. 51:13that doesn't depend on that theory. So
  1297. 51:15we we don't have that kind of problem of
  1298. 51:17it misformalizing something that the
  1299. 51:20eventual proof depends on.
  1300. 51:27And here we go. So this is why in
  1301. 51:31summary this is why formal math is great
  1302. 51:33for um agentic training for training uh
  1303. 51:37modern AI. Uh we have this verifiable
  1304. 51:40and unhackable reward. Um the training
  1305. 51:43dynamics are nonadversarial as a result.
  1306. 51:46So uh you know we encourages this sort
  1307. 51:48of collaborative style of interaction
  1308. 51:50that that we would ideally like and that
  1309. 51:53we can have very challenging long
  1310. 51:55horizon tasks you know up to millions of
  1311. 51:57tokens or or more or indeed probably
  1312. 52:00initially less. Um so all in all uh it's
  1313. 52:04very valuable for general model training
  1314. 52:07and as essentially a kind of happy
  1315. 52:10accident. Um it also means that the
  1316. 52:12models get very good at formalizing
  1317. 52:14mathematics or is much better at
  1318. 52:15formalizing mathematics. So my my last
  1319. 52:19slide is um if models are good at
  1320. 52:22mathematics uh what does that bias?
  1321. 52:25So
  1322. 52:27we could formalize two different kinds
  1323. 52:29of mathematics. Stuff we already know
  1324. 52:31and new mathematics. So the first thing
  1325. 52:34I think uh to to dismiss is the idea
  1326. 52:38that you formalize mathematics in order
  1327. 52:40to verify that it's correct established
  1328. 52:42mathematics. That's not what we're
  1329. 52:43doing. you know the if um you know
  1330. 52:46recent example was the formalization of
  1331. 52:48this uh sphere packing optimality that
  1332. 52:50was uh recently done by uh by math who's
  1333. 52:54a great great piece of work and there
  1334. 52:56was no doubt that that that mathematics
  1335. 52:57was correct it wasn't being formalized
  1336. 52:58in order to verify it its correctness
  1337. 53:02um so why why do it well one reason
  1338. 53:04would be to um formalize new mathematics
  1339. 53:07autoformalize new mathematics on top of
  1340. 53:08it so this mathematics the known
  1341. 53:11mathematics provides the basis for uh
  1342. 53:14new um you know untested mathematics and
  1343. 53:17the other reason of course is to
  1344. 53:19generate training data. So um by
  1345. 53:21formalizing well established mathematics
  1346. 53:23we can then uh use that as training data
  1347. 53:26with where we delete pieces and ask the
  1348. 53:28model to reproduce it. So that's one
  1349. 53:30thing and then the other I think
  1350. 53:32potentially more exciting end is
  1351. 53:35formalizing new mathematics. So um
  1352. 53:39I guess everyone is aware that the the
  1353. 53:41volume of new mathematics is increasing.
  1354. 53:43Uh anyone can um if you think what is
  1355. 53:47the what is the time it would take for
  1356. 53:49an expert to distinguish um a high
  1357. 53:52quality uh human written mathematics
  1358. 53:54paper from something that had been
  1359. 53:55generated by somebody had no clue what
  1360. 53:56they were doing with with AI then um
  1361. 54:00historically the answer would have been
  1362. 54:01you know a fraction of a second
  1363. 54:02immediately obvious that the that this
  1364. 54:04was this was nonsense. And I think now
  1365. 54:06the answer is actually it can take you
  1366. 54:08know several minutes for for an expert
  1367. 54:10to to read a paper and think actually no
  1368. 54:12this isn't right and um you can expect
  1369. 54:15as AI gets better that that time taken
  1370. 54:17will increase and um that's obviously
  1371. 54:21not feasible.
  1372. 54:23So um one thing is if we do formalize it
  1373. 54:26um then uh it makes it easier to trust
  1374. 54:30uh the results. Obviously, it's still
  1375. 54:32the case that if it contains new
  1376. 54:33definitions, then you need to scrutinize
  1377. 54:35the definitions and make sure that
  1378. 54:37there's nothing nothing lurking in there
  1379. 54:39that makes makes everything trivial. But
  1380. 54:41once you scrutinize the definitions,
  1381. 54:42then uh understanding the theorem
  1382. 54:44statements is relatively easy and then
  1383. 54:47you can trust that those theorems have
  1384. 54:48been proved to be true. Uh another thing
  1385. 54:51is uh improving understanding and making
  1386. 54:54more results more accessible. I think um
  1387. 54:58you know mathematics can be a little bit
  1388. 55:00unapproachable sometimes. Some sub
  1389. 55:01fields have things conventions which are
  1390. 55:03not written down. If you're not part of
  1391. 55:05that field, it can be you know
  1392. 55:06impossible to understand the literature
  1393. 55:08for example. And by by formalizing um by
  1394. 55:11formalizing things actually this should
  1395. 55:12have been in the first group. By
  1396. 55:14formalizing them we potentially enable
  1397. 55:16uh you know anybody who wants to to
  1398. 55:19sufficiently motivated to dig down and
  1399. 55:21see what actually is going on here. Uh
  1400. 55:23and then ultimately potentially we
  1401. 55:26enable long-term autonomous AI research
  1402. 55:28where uh if we if we're having AI carry
  1403. 55:32out a research program over the course
  1404. 55:33of multiple weeks, months um then being
  1405. 55:37able to formalize what it does and then
  1406. 55:39build upon that I think is going to be
  1407. 55:42um extremely extremely valuable. Uh and
  1408. 55:44then lastly generate new training data
  1409. 55:48and uh
  1410. 55:50it is me done.
  1411. 55:52>> [applause]
  1412. 55:57[applause]
  1413. 55:57>> Thank you very much. Are there any
  1414. 55:59questions? Yeah,
  1415. 56:02>> there is a famous example of
  1416. 56:04[clears throat] something where people
  1417. 56:05would like to check it which is a much
  1418. 56:08of claim proof of the ABC conjecture. Uh
  1419. 56:11yes I I think it might be challenging to
  1420. 56:13formalize uh what he has there but yeah
  1421. 56:16um sorry
  1422. 56:21what do you mean by understanding
  1423. 56:24because I think u it's a word which is
  1424. 56:28very very ambiguous.
  1425. 56:30>> Yes. So what I had in mind there was um
  1426. 56:32human understanding. So by um making it
  1427. 56:36very explicit the um the you know the
  1428. 56:39relationships between you know precisely
  1429. 56:41which theorems are being used precisely
  1430. 56:43which definitions are you depending on
  1431. 56:44that can potentially uh enable enable
  1432. 56:48humans to understand it better. So this
  1433. 56:50is something that uh again I was
  1434. 56:53discussing with the case of ferments
  1435. 56:55theorem with Kevin Buzzard. So he's has
  1436. 56:57a project to formalize the proof of
  1437. 57:00theorem and he's saying the the reason
  1438. 57:01he wants to do it is so that he
  1439. 57:03understands the mathematics of the of
  1440. 57:05the theorem better you know precisely so
  1441. 57:07he can trace through the dependencies of
  1442. 57:10um you know what body of theory does it
  1443. 57:11depend on and and how and by having all
  1444. 57:14of that in a single artifact where you
  1445. 57:17can where you can you know trace all of
  1446. 57:20the dependencies then then that
  1447. 57:22understanding is easier to get to.
  1448. 57:24>> Yeah.
  1449. 57:26To follow up a bit on that,
  1450. 57:28when people talk about live coding,
  1451. 57:31there's this negative connotation a
  1452. 57:33little bit sometimes because the code
  1453. 57:35can get very unwieldy.
  1454. 57:37Don't you see that there might don't do
  1455. 57:39you perhaps foresee that there's a
  1456. 57:41similar risk here that like little lemas
  1457. 57:43proved independently even though there
  1458. 57:45might be easy coronaries of of
  1459. 57:47something?
  1460. 57:49>> Yeah. No, no, we already we we see this
  1461. 57:51already. Um uh so an example of this
  1462. 57:55kind of thing is uh in a formalization
  1463. 57:57project we're doing at the moment
  1464. 57:59there's some um trivial case that we
  1465. 58:02should have dealt with um right at the
  1466. 58:05top and we didn't and that means that in
  1467. 58:07every every lema subsequently it has to
  1468. 58:10deal with this case potentially multiple
  1469. 58:11times. So the proofs of our proofs have
  1470. 58:14been blown out by thousands of lines
  1471. 58:16because this is in every line
  1472. 58:18essentially it has to then deal with
  1473. 58:19this trivial case that we should have
  1474. 58:20excluded. Um so so yes absolutely. Um
  1475. 58:24the good thing is that models are
  1476. 58:26getting better at doing what in code
  1477. 58:28terms we s call refactoring where you
  1478. 58:30take something that's already correct
  1479. 58:31and say actually I want to improve the
  1480. 58:33quality of it. I want to make it more
  1481. 58:34concise, more expressive, this kind of
  1482. 58:35thing. Um so I think it's a fixable
  1483. 58:38fixable problem but um effectively our
  1484. 58:41models need to relearn painfully what
  1485. 58:43humans have learned which is that you
  1486. 58:45know you need to design these things
  1487. 58:46properly and and that it will that
  1488. 58:49effort will repay itself in eventually
  1489. 58:52>> uh in the blue back.
  1490. 58:54>> Yeah I have two questions but I start
  1491. 58:55with one. So in mathematics culture it's
  1492. 58:58very important to give proper
  1493. 58:59attribution to past works previous ideas
  1494. 59:02and uh AI proofs are starting to be
  1495. 59:05extremely impressive but they don't seem
  1496. 59:06to be very good at this. So basically
  1497. 59:09they provide like no context and no
  1498. 59:11attribution of where the ideas come
  1499. 59:13from. Is this like an intrinsic uh issue
  1500. 59:17because the [snorts]
  1501. 59:18models just don't know or is it just
  1502. 59:21that for example there hasn't been
  1503. 59:23reinforce reinforcement learning towards
  1504. 59:25achieving this goal.
  1505. 59:27>> Um yeah, I think it somewhat intrinsic
  1506. 59:31in the sense that it's not something
  1507. 59:32that we um we train for at the moment.
  1508. 59:35Um that's said the tools like the
  1509. 59:38co-matician that we have at deep mind
  1510. 59:40has an explicit process of gathering
  1511. 59:42citations and um and making sure that
  1512. 59:45the correct citations are inserted and
  1513. 59:47are accurate. So it's it's definitely
  1514. 59:49it's a it's a solvable thing but um
  1515. 59:52especially when the model uh kind of
  1516. 59:55knows some fact in its weights it
  1517. 59:58doesn't because of the way um the the
  1518. 1:00:01LLM generation works it just because it
  1519. 1:00:04it knows a fact it doesn't necessarily
  1520. 1:00:06have immediate access to where that fact
  1521. 1:00:08is from because you know the the two
  1522. 1:00:11those two things may well not co-occur
  1523. 1:00:14uh in the in the data set that it's been
  1524. 1:00:15trained on the right the right
  1525. 1:00:17So it has to be something that's
  1526. 1:00:19explicitly train trained in Yeah. the
  1527. 1:00:21the thing to to site correctly.
  1528. 1:00:23>> Yeah. Yes. Quite possibly.
  1529. 1:00:26>> Uh yeah.
  1530. 1:00:27>> So follow the interestingness question.
  1531. 1:00:30So in your different criterion of why
  1532. 1:00:36the first one for me at least
  1533. 1:00:43and and I
  1534. 1:00:47for gentle with a few minutes
  1535. 1:00:50sometimes it's a few thousand minutes
  1536. 1:00:51just to realize this is pretty absurd
  1537. 1:00:54>> um but on the so I know a lot of people
  1538. 1:00:56are doing formalization to understand
  1539. 1:00:58more the math behind and also working on
  1540. 1:01:01automization and often criticism we get
  1541. 1:01:02is that usually the automalized group
  1542. 1:01:04well when you do automalization
  1543. 1:01:07versus manual optimization then you lose
  1544. 1:01:09this part of understanding the math
  1545. 1:01:10behind um so I was curious of having
  1546. 1:01:15having your clinics Yeah, I mean I think
  1547. 1:01:17my view would be that um the the proof
  1548. 1:01:21is probably not a very useful thing. So
  1549. 1:01:24when you've auto finalized something and
  1550. 1:01:26proved it then then you don't uh you end
  1551. 1:01:29up with some proof and I think it would
  1552. 1:01:30be fine if no human ever read that proof
  1553. 1:01:32honestly. But typically the the proof is
  1554. 1:01:36um you know refer to a large number of
  1555. 1:01:38lemmers for example and if you follow
  1556. 1:01:41that structure then that feels like
  1557. 1:01:44quite often that's the right level of
  1558. 1:01:45abstraction as a human to understand
  1559. 1:01:47what's going on. You don't necessarily
  1560. 1:01:49need to read the step-by-step proof. You
  1561. 1:01:50can say uh you know this fact is true
  1562. 1:01:52and it's true because of these these
  1563. 1:01:54other these other facts. And I I think
  1564. 1:01:56actually that's a great way to
  1565. 1:01:57understand the the the way the overall
  1566. 1:02:00argument hangs together. And then if you
  1567. 1:02:02need to convince yourself that some fact
  1568. 1:02:03is true then when when we have
  1569. 1:02:06ubiquitous uh you know
  1570. 1:02:08autoformmalization on demand you can you
  1571. 1:02:10can ask for uh you wouldn't in that
  1572. 1:02:13future be able to ask for this
  1573. 1:02:15complicated result can I split it into
  1574. 1:02:17is it still true if I weaken this
  1575. 1:02:19hypothesis or and so on. So
  1576. 1:02:24>> um you mentioned that if there are
  1577. 1:02:26definitions that are formalized in the
  1578. 1:02:28in the outputs you may need to check
  1579. 1:02:31that they're not completely bogus. So do
  1580. 1:02:34you see a solution to that definition
  1581. 1:02:37problem without loop like something
  1582. 1:02:40purely?
  1583. 1:02:42>> Um
  1584. 1:02:43yeah so there are there are kind of some
  1585. 1:02:46some solutions. um you know one one very
  1586. 1:02:49obvious thing is to uh get the AI to
  1587. 1:02:52generate many examples and and
  1588. 1:02:54non-examples. So if you if you define
  1589. 1:02:56something new then um rather than just
  1590. 1:02:58giving an abstract definition say okay
  1591. 1:03:00this thing is is an example of it this
  1592. 1:03:03thing is not um these kinds of trivial
  1593. 1:03:05these kinds of trivial properties. I
  1594. 1:03:07think um that can that can give you some
  1595. 1:03:09reassurance that the definition is
  1596. 1:03:11capturing the kind of thing that you
  1597. 1:03:12want do you want it to capture. Um the
  1598. 1:03:17um I mean the other thing to say is that
  1599. 1:03:19we
  1600. 1:03:20uh the models seem quite they they fudge
  1601. 1:03:24definitions when they're stuck
  1602. 1:03:25essentially. So the the
  1603. 1:03:28anthropomorphizing a bit they want to do
  1604. 1:03:30the right thing but if the uh if they
  1605. 1:03:33can't make progress then then yes they
  1606. 1:03:34will fudge a definition sometimes or of
  1607. 1:03:36course they may make a mistake. Um but
  1608. 1:03:38having other LLMs that review the output
  1609. 1:03:40and say do the all these definitions
  1610. 1:03:42seem to be correct is is a useful
  1611. 1:03:44signal. Um but on the other hand I would
  1612. 1:03:46say ultimately if if the question you
  1613. 1:03:49want to answer is is this mathematical
  1614. 1:03:50object interesting to humans then you
  1615. 1:03:52have to have a human answer answer that
  1616. 1:03:54question really. There's no um automated
  1617. 1:03:56substitute for that.
  1618. 1:03:58>> Uh
  1619. 1:04:00was that me? Uh so have you done the
  1620. 1:04:03inverse process of starting with lean
  1621. 1:04:06code and then can you please translate
  1622. 1:04:08this into a human readable thing and
  1623. 1:04:10maybe even like going between like human
  1624. 1:04:13readable well which human well write it
  1625. 1:04:15for an expert write it for a novice
  1626. 1:04:16write it for somebody who knows this but
  1627. 1:04:18not that and stuff like that.
  1628. 1:04:20>> Um yes absolutely you know models are
  1629. 1:04:21quite good at that. Um so typically the
  1630. 1:04:24way we do this is by saying first
  1631. 1:04:26translate each line and then you're in
  1632. 1:04:28entirely natural language and then you
  1633. 1:04:29can go through and say okay summarize it
  1634. 1:04:31and you can get as you say increasingly
  1635. 1:04:33brief proofs that uh you know skip over
  1636. 1:04:36the more boring details. So so yes that
  1637. 1:04:38that does work. Um we tried using that
  1638. 1:04:41kind of data as training data not very
  1639. 1:04:42successfully because um the the English
  1640. 1:04:46that we ended up with was rather
  1641. 1:04:47stylized and repetitive. So it wasn't
  1642. 1:04:49very useful as Gemini training data but
  1643. 1:04:51it's perfectly usable as something that
  1644. 1:04:53could explain it. I mean as a followup
  1645. 1:04:56so if we imagine that a goal is proving
  1646. 1:04:58theorems I know that's that's a weighty
  1647. 1:05:01statement but let's say that's a goal is
  1648. 1:05:03to prove theorems and is it is it clear
  1649. 1:05:06that the best route is [clears throat]
  1650. 1:05:08um not just to go directly to the lean
  1651. 1:05:11if all you cared about is is the theorem
  1652. 1:05:14true and you didn't care about
  1653. 1:05:15understanding it or whatever. So in your
  1654. 1:05:18system, you're going via natural
  1655. 1:05:19language and then you have the checker
  1656. 1:05:21who's a robot who reads the lean. But
  1657. 1:05:24maybe we could just skip that and just
  1658. 1:05:26have everything done directly in lean.
  1659. 1:05:28Is that a terrible idea or
  1660. 1:05:31>> um so this is what alpha proof did um is
  1661. 1:05:35it went straight to lean. There's no
  1662. 1:05:36natural language involved. I would say
  1663. 1:05:38since in the last two years or so the
  1664. 1:05:41capabilities of things like Gemini have
  1665. 1:05:43just so far outstripped our lean
  1666. 1:05:46capabilities that uh that no it doesn't
  1667. 1:05:48make sense to do that now because uh so
  1668. 1:05:53typically what we find is if if if we're
  1669. 1:05:55capable of formalizing it then we're
  1670. 1:05:58we're capable of proving it. So the the
  1671. 1:06:01there is pretty much nothing I would say
  1672. 1:06:03where the formal first approach is
  1673. 1:06:05stronger at the moment. Our best
  1674. 1:06:08formaliz our best formal provers do go
  1675. 1:06:10via via natural language.
  1676. 1:06:11>> Is that a statement about the nature of
  1677. 1:06:13mathematics or like what like why is
  1678. 1:06:15that the case that to prove a theorem
  1679. 1:06:17it's best to go via human language?
  1680. 1:06:20>> I mean I I would say it's something like
  1681. 1:06:23if if you were trying to prove something
  1682. 1:06:24that you didn't know was true then
  1683. 1:06:26sitting down and constraining yourself
  1684. 1:06:27to say right I'm going to first write
  1685. 1:06:28the first line of the proof would not be
  1686. 1:06:31like the best constraint. And that's
  1687. 1:06:33effectively what you're doing if you say
  1688. 1:06:35you go lean first. Um you're much more
  1689. 1:06:38likely to do some more let's think about
  1690. 1:06:41some related things. Let's read some
  1691. 1:06:43literature and and uh you know let's
  1692. 1:06:45make some hypotheses about reasons why
  1693. 1:06:48it might be true. And all of that is
  1694. 1:06:49much more naturally done in uh natural
  1695. 1:06:52language rather than lean where you
  1696. 1:06:53basically have to state something very
  1697. 1:06:56very precise and then and then attempt
  1698. 1:06:57to prove it.
  1699. 1:07:01Can you say a little bit more about
  1700. 1:07:02skill transfer? So, a couple times in
  1701. 1:07:04your talk, you mentioned how uh training
  1702. 1:07:06for one task helped the model overall,
  1703. 1:07:08which I assume you don't know why that's
  1704. 1:07:10true, but you have empirical evidence
  1705. 1:07:11for. I I would have thought that unless
  1706. 1:07:13you really uh got the the level of the
  1707. 1:07:16reinforcement rewards exactly calibrated
  1708. 1:07:18right, that you could actually kind of
  1709. 1:07:19drift off such that learning how to do
  1710. 1:07:21math would actually hurt you on other
  1711. 1:07:22tasks. Do you have a sense of why it
  1712. 1:07:24causes general generalization?
  1713. 1:07:25>> Um, no. But it's very handy that it's
  1714. 1:07:28true. Um I would say we we see this
  1715. 1:07:30across the board that um essentially if
  1716. 1:07:34you if you train exclusively on one task
  1717. 1:07:36then then yes you'll you'll lose the
  1718. 1:07:38ability to do other things. But what we
  1719. 1:07:40do is we always train on a on a mixture
  1720. 1:07:42of tasks. So even our like hyper
  1721. 1:07:44specialized math models t train like 10%
  1722. 1:07:46math and 90% other stuff. Um and if you
  1723. 1:07:51as long as you maintain that kind of
  1724. 1:07:52that kind of mixture then uh we find
  1725. 1:07:55that more training with novel tasks is
  1726. 1:07:58is just beneficial to to more or less
  1727. 1:08:00everything. I mean not it's not a 100%
  1728. 1:08:02guarantee but uh you know across
  1729. 1:08:05improving across the board is very
  1730. 1:08:06common.
  1731. 1:08:09>> I want to go back to this
  1732. 1:08:12the previous question. I mean when you
  1733. 1:08:14say that the agent they go through
  1734. 1:08:16natural language but for humans
  1735. 1:08:20depending on your natural language your
  1736. 1:08:22brain works differently. I mean if your
  1737. 1:08:24natural language is French, German,
  1738. 1:08:26Russian, Chinese, English in fact there
  1739. 1:08:29are cognitive processes that are very
  1740. 1:08:32different that are induced by the
  1741. 1:08:34structure of the grammatical
  1742. 1:08:36language that you use. Uh unless you are
  1743. 1:08:39telling me that uh everything has to be
  1744. 1:08:41in English these days and uh I I feel
  1745. 1:08:45that maybe something is getting lost. I
  1746. 1:08:48mean, Young explained that he got the
  1747. 1:08:50young I mean, what you call the young
  1748. 1:08:51mil in physics
  1749. 1:08:54was inspired by a Chinese. So, you know,
  1750. 1:08:57so
  1751. 1:08:58>> we we actually I I think you're right.
  1752. 1:09:00We we actually see um quite a lot of
  1753. 1:09:02Chinese inside the model's thoughts.
  1754. 1:09:04Incidentally, even when the even when
  1755. 1:09:07the question and the answer are in in
  1756. 1:09:08English, uh the the thoughts quite often
  1757. 1:09:10go through Chinese.
  1758. 1:09:15So um my question would be a little more
  1759. 1:09:19high level. Um I don't know how to ask
  1760. 1:09:23it. So like what is the as a group like
  1761. 1:09:27you work in a big group of people with a
  1762. 1:09:30big group of people and you have some
  1763. 1:09:32vision on what you are doing. So what is
  1764. 1:09:35the end goal like what is what are you
  1765. 1:09:38trying to do right? when is the thing
  1766. 1:09:40you say, "Okay, we we did it."
  1767. 1:09:43>> Uh, okay. I mean, for for me for me
  1768. 1:09:47personally, it's uh it's a highly
  1769. 1:09:50capable AI assistant. That's that's the
  1770. 1:09:52thing that I'm working on. And I'm doing
  1771. 1:09:54formal mathematics because it
  1772. 1:09:56contributes to contributes to that goal.
  1773. 1:09:59Um, I also care about mathematics for
  1774. 1:10:00own for its own sake, but I'm kind of
  1775. 1:10:02that's a side benefit. Exactly.
  1776. 1:10:05>> I mean when you say a very powerful like
  1777. 1:10:09co-maician or how you say it.
  1778. 1:10:11>> Sure.
  1779. 1:10:12>> Um
  1780. 1:10:14how powerful like [laughter]
  1781. 1:10:17>> I mean uh I don't know
  1782. 1:10:20>> I mean
  1783. 1:10:20>> I don't know how to ask this question.
  1784. 1:10:22>> I I don't know how to answer it really.
  1785. 1:10:23I mean we want
  1786. 1:10:27[laughter]
  1787. 1:10:28>> it's a question of resource. How do you
  1788. 1:10:30determine how much or how many resources
  1789. 1:10:33you're going to mobilize
  1790. 1:10:35to achieve something that in in part
  1791. 1:10:38seems to be from the outset a
  1792. 1:10:41self-created problem because you you
  1793. 1:10:44might not have the the the training data
  1794. 1:10:48or the capacity for instance to teach
  1795. 1:10:51your agents not to cheat.
  1796. 1:10:54um because that doesn't appear in in
  1797. 1:10:57input you provide and you obviously have
  1798. 1:11:00to work under a constraint because and
  1799. 1:11:03that's I guess the main reason why you
  1800. 1:11:05want a multimodal agent that is capable
  1801. 1:11:10of doing many different things ideally
  1802. 1:11:12everything you you throw at it uh
  1803. 1:11:15because there's a terrible amount of
  1804. 1:11:17resources you're mobilizing which might
  1805. 1:11:19be you know might be better to use them
  1806. 1:11:21differently in order to achieve a given
  1807. 1:11:25task or mathematical problem. So is
  1808. 1:11:27there a measure something formal you can
  1809. 1:11:29define and that tells you okay we're
  1810. 1:11:32we're going to go until here and if we
  1811. 1:11:35haven't solved it with this amount of
  1812. 1:11:37resources we might be on the wrong path
  1813. 1:11:40alto together and might have to
  1814. 1:11:41backtrack and try something else. Um
  1815. 1:11:44yeah so the Gemini so the Gemini team is
  1816. 1:11:49huge and there are many many things
  1817. 1:11:51being tried in Gemini any any time and
  1818. 1:11:53many of them don't work but the the
  1819. 1:11:55overall product gets um gets better
  1820. 1:11:58because some things some things do work
  1821. 1:12:00and so um I guess I'd say that
  1822. 1:12:04ultimately the majority users of Gemini
  1823. 1:12:06are going to be outside of Google and um
  1824. 1:12:09therefore what we want is to provide
  1825. 1:12:10them with something that is as capable
  1826. 1:12:12as possible that they can do all the
  1827. 1:12:13things that they want to do. We we
  1828. 1:12:15obviously internally inside Google we
  1829. 1:12:16have we have problems that we want to
  1830. 1:12:17solve. So we um we have obviously a lot
  1831. 1:12:20of engineering and coding problems that
  1832. 1:12:22that we want Gemini to help us with and
  1833. 1:12:24also within the science unit we um have
  1834. 1:12:27you know goals around doing impactful
  1835. 1:12:30impactful science that that we want to
  1836. 1:12:31pursue as well. But in terms of you know
  1837. 1:12:35actually making Gemini better um I
  1838. 1:12:37suppose the other thing to say is that
  1839. 1:12:38there is in ML and AI there's still an
  1840. 1:12:41awful lot of lowhanging fruit. So um
  1841. 1:12:43there are always you can you try
  1842. 1:12:45something do it for a few months it's
  1843. 1:12:47not working people move on and try and
  1844. 1:12:49try something else there's always
  1845. 1:12:50something else you can do that will work
  1846. 1:12:52so you know in math I mean in number
  1847. 1:12:54theory when you have a big I mean hard
  1848. 1:12:57problem to solve you would ask Zagi and
  1849. 1:13:00Zagi would give an answer sometime
  1850. 1:13:04immediately or after a few hours
  1851. 1:13:07I mean how do you compare to what could
  1852. 1:13:09do I mean on specific non
  1853. 1:13:12problem.
  1854. 1:13:15>> Okay. I don't I don't know. I'm I'm
  1855. 1:13:17sorry. I can't I can't tell you.
  1856. 1:13:18>> You're like 1% of his IVA. [laughter]
  1857. 1:13:22>> Okay.
  1858. 1:13:24>> We have some way to go.
  1859. 1:13:27>> So, you know, many great results in math
  1860. 1:13:29are sort of obtained by great
  1861. 1:13:33mathematician by analogy. you know you
  1862. 1:13:35have this algebraic geometry and then
  1863. 1:13:37somehow you have this
  1864. 1:13:40the back of your mind or sometimes
  1865. 1:13:43unexplainable that you know oh this is
  1866. 1:13:45similar to some argument I've seen I
  1867. 1:13:48don't know complex analysis or something
  1868. 1:13:51is there any chance that lean for
  1869. 1:13:54example or do you you know may sort of I
  1870. 1:13:56guess it's related to justice that you
  1871. 1:13:59know might be some kind of inference you
  1872. 1:14:02know what I like analogy or that
  1873. 1:14:05formalizing things might help with that
  1874. 1:14:07or I mean that would be
  1875. 1:14:09>> I I think honestly
  1876. 1:14:10>> very bad for
  1877. 1:14:10>> mathematicians
  1878. 1:14:12my guess is that it's the opposite
  1879. 1:14:14honestly that um when you formalize
  1880. 1:14:16something you tend to be uh locked in to
  1881. 1:14:19one particular way of way of looking at
  1882. 1:14:21it and um it's much easier to if there
  1883. 1:14:24are much easier to skip between to do
  1884. 1:14:27analogies or to look at things from
  1885. 1:14:28different angles in the informal space
  1886. 1:14:30and then only when you're confident you
  1887. 1:14:32know what you want to do then to then to
  1888. 1:14:34move into the formalization.
  1889. 1:14:36So we we quite often see uh by the way
  1890. 1:14:38that there are problems uh like IMO type
  1891. 1:14:43problems where you could formalize it in
  1892. 1:14:44multiple ways and there will be some way
  1893. 1:14:46you can formalize it that uh is easy to
  1894. 1:14:49solve. If you formalize it differently
  1895. 1:14:51it may be impossible for the model to
  1896. 1:14:52solve it even though to a human they're
  1897. 1:14:55obviously equivalent but just the one
  1898. 1:14:58way you formalized it is kind of quite
  1899. 1:14:59hostile to than a than a formal proof.
  1900. 1:15:02There's still hope.
  1901. 1:15:05>> Well, no, we can think of natural.
  1902. 1:15:08>> Yeah, I think there are lots but there
  1903. 1:15:11are kind of two clear answers to the
  1904. 1:15:12question out there about where where is
  1905. 1:15:14the scoring? What are the standards and
  1906. 1:15:17and [clears throat] one of them is when
  1907. 1:15:20either the computer or you know humans
  1908. 1:15:22with computer assistance prove some
  1909. 1:15:24impressive new result which is really
  1910. 1:15:26new and arguably that has just happened
  1911. 1:15:28you know with open AI and the human
  1912. 1:15:30distance problem and that will keep
  1913. 1:15:33happening and that's that's obviously
  1914. 1:15:36one and then the other you might not
  1915. 1:15:38like but it's to say there'll come some
  1916. 1:15:40point where mathematicians and
  1917. 1:15:42scientists feel they just have to have
  1918. 1:15:44this access to this technology to
  1919. 1:15:45compete.
  1920. 1:15:47I don't know if that'll be
  1921. 1:15:52>> um with recent focus on like um cyber
  1922. 1:15:56security vulner vulnerabilities
  1923. 1:15:58especially brought by cloud methods and
  1924. 1:16:00such. Are you worried at all that um
  1925. 1:16:04because at the end of your talk you seem
  1926. 1:16:06to
  1927. 1:16:08um like share a vision where maybe we
  1928. 1:16:11don't even check the lean in the future
  1929. 1:16:13and we have like some super intelligent
  1930. 1:16:15mathematician
  1931. 1:16:17that we just trust that it does compile
  1932. 1:16:20in lean and it's done. But if it does
  1933. 1:16:22try to hack into lean and if it does
  1934. 1:16:25really become intelligent enough to
  1935. 1:16:28maybe find vulnerabilities that we
  1936. 1:16:30aren't aware of, then if we don't look
  1937. 1:16:35into it ourselves um in the future, are
  1938. 1:16:38you scared that we might like complete
  1939. 1:16:41the script with uh what it's uh
  1940. 1:16:46[clears throat] providing us as
  1941. 1:16:48>> uh I mean I think for mathematics might
  1942. 1:16:50not be my concern in in that area
  1943. 1:16:53honestly. But but yeah, yes, I think it
  1944. 1:16:55is definitely the whole question of how
  1945. 1:16:57do [clears throat] we ensure that AI is
  1946. 1:16:59kind of aligned to to human preferences
  1947. 1:17:02and does things that we consider
  1948. 1:17:03valuable and uh doesn't try to fool us
  1949. 1:17:06about them. Yeah, I think that is a I
  1950. 1:17:08mean it's a big topic of research and I
  1951. 1:17:10think an important one for sure.
  1952. 1:17:13Yeah.
  1953. 1:17:14>> Any lessons for journal editors on the
  1954. 1:17:17frontier map?
  1955. 1:17:21Uh I mean what the the situation I would
  1956. 1:17:24love to be in is that we are able to
  1957. 1:17:27give um editors and others something
  1958. 1:17:29that will take a take a submitted paper
  1959. 1:17:32formalize it verify it and say okay here
  1960. 1:17:35are the here's a formalized version of
  1961. 1:17:36the paper and these this is the
  1962. 1:17:39formalized version of the claims and
  1963. 1:17:40these claims are correct and uh I think
  1964. 1:17:44that would be you know potentially
  1965. 1:17:46extreme you know extremely valuable for
  1966. 1:17:48uh the whole process of kind of
  1967. 1:17:50disseminating and sharing mathematics
  1968. 1:17:52without uh the very costly and
  1969. 1:17:56timeconuming process of of somebody
  1970. 1:17:58having to you know verify it line by
  1971. 1:18:00line and you know essentially stake
  1972. 1:18:02their reputation on it on it being
  1973. 1:18:03correct before before it's disseminated.
  1974. 1:18:06So I would love us to get there. I don't
  1975. 1:18:08think it's going to happen immediately
  1976. 1:18:10but it would be very cool.
  1977. 1:18:12>> Yeah. Um how much do you think this can
  1978. 1:18:15teach us about uh semiformalizing things
  1979. 1:18:19like physics where there's a certain
  1980. 1:18:20amount of math
  1981. 1:18:22formalized? There's also a lot of things
  1982. 1:18:24that involve you know approximations and
  1983. 1:18:27maybe old defined intuitions and things
  1984. 1:18:29like that where you cannot
  1985. 1:18:32at least with our current knowledge
  1986. 1:18:33formalized.
  1987. 1:18:35>> Yeah. Um I think the particular
  1988. 1:18:37advantages that I was talking about only
  1989. 1:18:39really occur in the fully formalized
  1990. 1:18:41setting where there is literally no uh
  1991. 1:18:44gap to um hack a reward function for
  1992. 1:18:47example. So as you see when I we we left
  1993. 1:18:49a tiny gap for the agent to to exploit
  1994. 1:18:51it did it. So I think the the thing
  1995. 1:18:55those specific benefits of formalization
  1996. 1:18:57probably only occur there. Um, but in in
  1997. 1:19:01general, I think the idea that by
  1998. 1:19:03formalizing something or
  1999. 1:19:05semiformmalizing it that you are you can
  2000. 1:19:08trust it more than if you didn't do that
  2001. 1:19:10at all, that feels to me like it might,
  2002. 1:19:13uh, you know, might extend more
  2003. 1:19:15generally. So, I mean, to take a rather
  2004. 1:19:17more mundane example, um,
  2005. 1:19:20uh, you know, calendars and time zones,
  2006. 1:19:22our models quite often make mistakes
  2007. 1:19:24with those. And if we enabled it enabled
  2008. 1:19:27them to like do formal reasoning about
  2009. 1:19:31uh what time of day it is and what time
  2010. 1:19:32of day it is in different places and how
  2011. 1:19:34that relates when you travel I think I
  2012. 1:19:35think that would increase reliability in
  2013. 1:19:37that area. Um I think yeah there are
  2014. 1:19:39lots of areas like that I think where
  2015. 1:19:41some degree of formalization will
  2016. 1:19:42probably improve reliability.
  2017. 1:19:44>> Okay maybe should we can ask one last
  2018. 1:19:48question in a different vein.
  2019. 1:19:51Uh so so everything we talked about
  2020. 1:19:53today here in your talk was about
  2021. 1:19:56basically prompt engineering in some way
  2022. 1:19:58right kind of because it has to do with
  2023. 1:20:00the way you do the reinforcement
  2024. 1:20:02learning
  2025. 1:20:04it's a way of uh looking at the internal
  2026. 1:20:06representation states of the model and
  2027. 1:20:09say something about that. Uh okay so I I
  2028. 1:20:12want to distinguish so prompt
  2029. 1:20:14engineering is a kind of older
  2030. 1:20:16>> older technology uh where you you modify
  2031. 1:20:20the behavior of the model by uh by by
  2032. 1:20:24the input that you give it. So what we
  2033. 1:20:26do now with RL is related but we instead
  2034. 1:20:29modify the behavior of the model by
  2035. 1:20:30updating the weights so that when you
  2036. 1:20:32give it the thing that you want it
  2037. 1:20:34produces the thing you want. They're
  2038. 1:20:35both they're both ways of basically
  2039. 1:20:37shifting the output distribution and but
  2040. 1:20:39they are slightly different um in terms
  2041. 1:20:41of looking at the internal
  2042. 1:20:42representations. Yes, there are there
  2043. 1:20:43are people who do this. The general um
  2044. 1:20:45topic is called mechanistic interpret
  2045. 1:20:47interpretability
  2046. 1:20:49uh where you we can do things like train
  2047. 1:20:52uh models which look at the activations
  2048. 1:20:54of the the neural network and try to
  2049. 1:20:57make deductions about them. I would say
  2050. 1:20:59at the moment this this field is very
  2051. 1:21:01much in its infancy. But um you know we
  2052. 1:21:05can do things like if if a model tries
  2053. 1:21:08to do a multiplication without using a
  2054. 1:21:10tool for example we can have a look at
  2055. 1:21:13we can see how does it do how does it do
  2056. 1:21:15a multiplication and so people have
  2057. 1:21:17found in models [laughter] you there are
  2058. 1:21:19clearly bits of the network that know
  2059. 1:21:21all of the two-digit multiplications.
  2060. 1:21:23Those are just memorized facts. And then
  2061. 1:21:25and then there are other bits which do
  2062. 1:21:27the kind of um the process of guessing
  2063. 1:21:30how long the answer should be, how many
  2064. 1:21:32digits it should be. And yes, you can by
  2065. 1:21:34inserting probes into the network and
  2066. 1:21:36training classifier, small classifiers
  2067. 1:21:38on top of the weights you observe from
  2068. 1:21:40the network, you can see what it's
  2069. 1:21:42doing. But it is at this very um we we
  2070. 1:21:46don't have a deep understanding I would
  2071. 1:21:47say of what's going on.
  2072. 1:21:49>> Okay. Any final question? Okay, let's
  2073. 1:21:52thank

About this transcript

This page contains the full transcript of Edward Lockhart - Why AI Needs Formal Mathematics by Institut des Hautes Etudes Scientifiques (IHES), generated from the public captions YouTube serves with the video. The transcript has 14,590 words across 2,073 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 translate the transcript into 100+ languages.

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, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.