YouTube transcript (AyO6wyu4DEg) — Transcript
Full transcript
- 0:05Okay, so we will start with
- 0:08with an overview of what we have covered
- 0:11in this quarter.
- 0:13So we started the class with just giving
- 0:15you an overview of LLMs and how over the
- 0:19past year test time scaling and train
- 0:23time scaling using self-improvement
- 0:24techniques where the fundamental loop is
- 0:26driven by verifiers and feedback from
- 0:30running those verifiers and getting
- 0:32rewards and then using reinforcement
- 0:34learning and even search algorithms to
- 0:36to help the models to hill climb on math
- 0:39and coding for example have been a lot
- 0:42of the focus of initial part of the
- 0:44class.
- 0:45From there we started talking about
- 0:47evolutionary strategies so there was a
- 0:49whole class on open-endedness where
- 0:51we're not just um
- 0:53driving self-improvement loop with um
- 0:56rewards we also allow the models to just
- 0:58go explore if the exploration space can
- 1:01be defined and here we discussed
- 1:03Alpha Evolve and similar techniques.
- 1:07Then we moved
- 1:08to to a paradigm where we build
- 1:10end-to-end workflows for agents using
- 1:13tool use and as the models interact with
- 1:16environments and tools you basically are
- 1:19able to drive the workflows end-to-end.
- 1:22And um
- 1:23if you imagine that you have tasks that
- 1:26need to be completed over multiple steps
- 1:28then you do need to have perhaps the
- 1:30ability to look at knowledge bases so
- 1:32that requires
- 1:33retrieval and memory. So basically
- 1:36as we go towards real-world workflows we
- 1:39need better planning and multi-step
- 1:42reasoning in these models so we
- 1:44discussed
- 1:45some works around that and how to really
- 1:48look at evaluations in the next
- 1:51generation of models and what
- 1:53capabilities would drive that. And then
- 1:55we had several guest lectures on post
- 1:58training and multi model agents and
- 2:00robotics and reasoning and so on.
- 2:03Is there anything you would like to add
- 2:05here?
- 2:07>> Yeah, I think I think this sounds good.
- 2:09This was full coverage. I guess so one
- 2:11of our guest speakers also talked about
- 2:15um
- 2:15the symbolic techniques which goes under
- 2:18the umbrella of tool use and how that
- 2:20could add to the synthetic data which is
- 2:23another trend we're seeing.
- 2:25>> Amazing. Thank you.
- 2:29So
- 2:30so I think just to recap and and this uh
- 2:33the class is named as self-improving
- 2:35agents. So it's not just focusing on
- 2:37LLMs, it's focusing on the agent aspect
- 2:40of it. What I roughly if I were to if if
- 2:43you were to remind you of what we
- 2:44discussed in first class um is that what
- 2:47how is an agent a generalization of LLM?
- 2:50It has a goal and it will go and
- 2:52interact with the environment, collect
- 2:53feedback, and use that feedback to
- 2:55correct its steps. So they're basically
- 2:57systems that can direct their own
- 2:59processes, use tools, and then
- 3:01accomplish a goal.
- 3:03And often times in the current paradigm
- 3:06uh the LLMs uh by themselves are not
- 3:08powerful enough to drive towards a full
- 3:10goal. Um they're getting there. So often
- 3:13times we would handwrite these uh
- 3:16systems as workflows where you are
- 3:18orchestrating LLMs and tools. Uh
- 3:20however, in certain
- 3:21certain scenarios like coding agents,
- 3:24you are seeing some of these uh agentic
- 3:26workflows being driven by themselves. So
- 3:29it's an exciting time where we are
- 3:30seeing a lot of progress in this area.
- 3:34And how we construct these workflows uh
- 3:36often times means you're orchestrating
- 3:38LLMs, you're orchestrating verifiers
- 3:40because you need some form of reward.
- 3:42You might have LLMs as judges for
- 3:44verifiers. You might have tool calls.
- 3:46You might have uh search algorithms in
- 3:48there. So you might have parallel uh
- 3:50parallel LLM calls that are going and
- 3:52doing this kind of search, but overall
- 3:54since uh agentic workflow is driving
- 3:56towards a goal, it needs the capability
- 3:58to plan and to
- 4:00reason over multiple steps, correct
- 4:02itself if it were going in the wrong
- 4:05direction, and overall keep improving in
- 4:08its capabilities, which is where the
- 4:10self-improvement aspect comes in. So, in
- 4:13this lecture as we wanted we wanted to
- 4:15cover some future research areas. So,
- 4:19we organized it as key ideas from
- 4:21certain papers that both cover the
- 4:24self-improvement side of things and just
- 4:26generally the
- 4:28efficiency side of things for
- 4:29intelligence, both of which we believe
- 4:31are extremely important directions in
- 4:34the next research areas.
- 4:38So,
- 4:40for the first three papers that I will
- 4:42cover um
- 4:44I'll just present the key ideas, but let
- 4:46me just present what
- 4:48why those papers were chosen and what
- 4:50are the key ideas that they kind of um
- 4:54point in terms of next steps and
- 4:56directions. So, what we learned in the
- 4:58classes a lot about say test time
- 5:00scaling where you could
- 5:02improve
- 5:04by having multiple samples and majority
- 5:06voting and so on. And then train time
- 5:09scaling where you can use that feedback
- 5:11in the inference loop to and get rewards
- 5:15to drive that self-improvement loop.
- 5:17Often times this is still limited to
- 5:19narrow domains like math and coding. So,
- 5:22how do you get generalization across
- 5:24these domains?
- 5:25And how do you generally get those
- 5:27reasoning chains
- 5:28to be diverse enough so that you can
- 5:30continue to drive that self-improvement
- 5:33loop is something that is
- 5:35an important research area even now.
- 5:38An important aspect of
- 5:41building these self-improvement loops
- 5:43continues to be verification. So, how do
- 5:45you have robust verification techniques
- 5:48or meta verification techniques where
- 5:50you verify
- 5:51what was going into the reasoning chain
- 5:54is
- 5:55often quite valuable. So that's another
- 5:57area that the second paper I will
- 5:59present the ideas on will cover. And the
- 6:02third aspect is that
- 6:04even though we talk about train time
- 6:05scaling that
- 6:07the prompts that go into training these
- 6:09models
- 6:10get selected very statically and require
- 6:12humans to select them.
- 6:14So
- 6:15how do you break through the data
- 6:17barriers so that the self-improvement
- 6:19loop can pick the right set of data that
- 6:22drives that loop.
- 6:24So that's going to be the first part of
- 6:25the focus and the second part of the
- 6:27focus will be focused on just what
- 6:29drives
- 6:30efficiency for intelligence. So
- 6:33intelligence per what aspects?
- 6:35So let's take a quick look at some of
- 6:37the ideas that might drive the
- 6:40self-improvement loop further in the
- 6:42next generation of systems and given how
- 6:45fast the field is moving
- 6:46maybe we'll be teaching papers on each
- 6:48of this next time.
- 6:51So the first paper that we cover is
- 6:54coming from multi-agent fine-tuning
- 6:55which focuses on self-improvement with
- 6:58diverse reasoning chains.
- 7:00The key idea of this paper is that
- 7:04pre-training computer and instruction
- 7:05tuning is bottlenecked by
- 7:07so pre-training computers are
- 7:09compression of internet scale data and
- 7:10instruction fine-tuning often requires
- 7:12real human data where you
- 7:14need human preferences to decide what is
- 7:17good model response and bad response
- 7:21bad model response. So an alternative to
- 7:24this is that you can use the data
- 7:25generated by LLMs which is often called
- 7:27a synthetic data and you can do
- 7:28iterative fine-tuning where you
- 7:30generate possible solutions and filter
- 7:32out the incorrect ones. This is called
- 7:34rejection sampling and fine-tune only on
- 7:36the good ones. Now there are many
- 7:37variants star and so on which uh can
- 7:41help drive this loop even better. We
- 7:43covered star in in class. Uh you can
- 7:45even add reasoning chains in in in that
- 7:48process.
- 7:49But, what typically happens is that if
- 7:51you're using a single uh large language
- 7:53model to generate the data, then uh
- 7:56it will generate solutions that will be
- 7:58very similar, and often time the
- 8:00performance increase will start uh will
- 8:02stop uh after a few uh iterations or
- 8:05after tens of iterations. And typically
- 8:08this problem is uh
- 8:10uh comes down to really the notion of
- 8:12lack of diversity. So, when uh you look
- 8:14at model training at the pre-training
- 8:16scale, the data is so diverse because it
- 8:18was generated over such a long time uh
- 8:21by humans, so it
- 8:23it is quite diverse, and that helps to
- 8:25uh helps improve the performance. But,
- 8:27when a single large language model is
- 8:29generating outputs for a set of prompts,
- 8:32it will not have very diverse responses
- 8:34even at high temperatures. And if uh so,
- 8:37the intuitive solution for this often
- 8:38means that you can use multiple agents
- 8:41uh which are specialized in some way,
- 8:43and then
- 8:44>> [snorts]
- 8:44>> use them to uh
- 8:46improve the diversity. So, what this
- 8:48paper proposes, for example, is multiple
- 8:50specialized agents uh for generations
- 8:52that will then produce uh diverse
- 8:55initial solutions. So, they they train
- 8:57generation agents and critic agents. So,
- 9:00um the generation agents will help
- 9:02generate a lot of diverse initial
- 9:04solutions, while the critic agents will
- 9:06evaluate and refine the solutions. Uh
- 9:09so, those are specialists as well. So,
- 9:11if you were to look at um step-by-step
- 9:13process, and we don't need to go through
- 9:15every single uh detail in the algorithm
- 9:18below, uh but uh the generation agent
- 9:20will come up with an initial answer, um
- 9:23and then there will be debate over
- 9:25multiple rounds. So, uh what the
- 9:27generation agent will In the In the
- 9:29initial step, it will just have the
- 9:31initial answer, but in the subsequent
- 9:33steps, it will summarize uh and get a
- 9:36summary of all other agents' responses,
- 9:38and use that also as part of generating
- 9:42the next response.
- 9:43The goal of the critic critic agent is
- 9:45to critique this updated set of answers.
- 9:47So, basically, if you're doing any
- 9:49iterations, there's an initial response
- 9:52from each of the generation agents, then
- 9:55you do a summary across all of these
- 9:57agents, and then the critic agent will
- 9:58critique this updated set of answers.
- 10:01So, it's very similar to what you guys
- 10:04were already familiar with. The main
- 10:05difference here is that instead of
- 10:07getting um
- 10:09uh the critique over a single agent's
- 10:12response, you're actually using multiple
- 10:14agents' responses, and then then
- 10:16specializing
- 10:17uh and summarizing across them. What
- 10:19this enables is that uh you have some
- 10:22form of diversity even at the generation
- 10:25stage before you're critiquing the
- 10:26answers. So, you basically get majority
- 10:28voting for free just by having multiple
- 10:31agents, and
- 10:32uh
- 10:33assuming that these are trained slightly
- 10:35differently, you
- 10:37uh you get diversity for free.
- 10:39So, uh the generation models in this
- 10:42particular case are fine-tuned from the
- 10:43same base models. So, they uh and and
- 10:46the goal there is to produce good
- 10:47answers given a question. So,
- 10:49uh over multiple iterations, what
- 10:51they're doing is they're taking outputs
- 10:53and filtering for a match with the
- 10:55majority vote, and then they're doing a
- 10:56SFT on this list of prompt and response
- 10:59pairs. Um if you were looking at a very
- 11:02naive version of doing this, uh you
- 11:03could just use different models, which
- 11:05is something that
- 11:06uh people do in practice as well. So,
- 11:08they will get very different responses
- 11:10with different prompts. So, that's the
- 11:13poor man's version of doing uh multiple
- 11:16generations.
- 11:17And uh the critic models in this
- 11:19particular paper was proposed as uh
- 11:22The critic models will basically take
- 11:24the
- 11:25uh
- 11:26input uh the updated answer, and then
- 11:29select the best one. So, they are also
- 11:30fine-tuned.
- 11:32Uh and uh these are um
- 11:34fine tuned on a mix of trajectories
- 11:35where answers correct at the start and
- 11:37then it's corrected over a course of
- 11:39debate. So basically the critic model is
- 11:42learning how to uh contrast the um
- 11:46correct and the incorrect answer.
- 11:49So to summarize the whole process, um
- 11:52there is end generation models and
- 11:54they're all each producing an output.
- 11:56The summarization happens. So you can
- 11:58imagine that either you summarize it
- 12:00with a model or you can just concatenate
- 12:02the responses of all the
- 12:04uh models. Then there is a
- 12:06um critic critique process on that and
- 12:09that's uh added to the um input uh and
- 12:12then then you do a second round where
- 12:14all of the models generates
- 12:16outputs, updated answers, and then then
- 12:18you do uh majority voting on top of that
- 12:20and again summarize the responses and
- 12:23you can continue this process in form of
- 12:25a debate in some ways. So uh those
- 12:28trajectories can then be used to fine
- 12:30tune different um different uh critiques
- 12:33as well.
- 12:35So how does this help? Um why did we
- 12:37discuss this? So I think the key metric
- 12:40that we're looking for is that
- 12:42uh
- 12:43on the x-axis you're looking at uh how
- 12:45many iterations of fine tuning it has
- 12:47gone through and on the y-axis you
- 12:49either have the negative log likelihood
- 12:51or you have the embedding uh
- 12:53dissimilarity. Uh the negative log
- 12:55likelihood is just uh a proxy for
- 12:57performance and the embedding
- 12:59dissimilarity the
- 13:00higher the
- 13:02higher uh the value, uh the more um
- 13:05diverse it is. So what we see on the
- 13:08left is for two open source models uh
- 13:11when they go and do fine tuning, they're
- 13:13actually able to continue to increase
- 13:14performance when they do this
- 13:16multi-agent fine tuning. So um and Llama
- 13:183 seems more responsive to this
- 13:20technique. Um I think the right side is
- 13:23more interesting as to
- 13:24uh
- 13:25as they're going through this process,
- 13:27uh the responses continue to stay quite
- 13:29diverse. And this is over math as a
- 13:32dataset.
- 13:33And overall, they tried this
- 13:36again in math over three open-source
- 13:38models. Uh and since they were going
- 13:40with fine-tuning, they had to stick with
- 13:42open-source models, but with multi-agent
- 13:44techniques, they were able to continue
- 13:46to see improvements even over multiple
- 13:49steps of fine-tuning. While for
- 13:51single-agent fine-tuning,
- 13:53the accuracy collapses or doesn't
- 13:56continue to improve.
- 13:58And uh they also show that
- 14:01not just in domain, which is math, in
- 14:04adjacent domains like GSM8K, this is a
- 14:06slightly older piece of work, so
- 14:09the numbers are not that high, but in
- 14:11even in adjacent domains like GSM8K, the
- 14:14model the fine-tuned agents actually
- 14:16show higher performance.
- 14:18Uh so this technique actually does help
- 14:20even it
- 14:21So it generalizes beyond just the
- 14:24in-domain uh datasets that it's trained
- 14:26on.
- 14:27So that's first set of comments. Um
- 14:30So what that roughly says is that if we
- 14:32want self-improvement, the reasoning
- 14:34chains that are provided to the model to
- 14:37drive those need to be diverse in some
- 14:39way, and how you do generate that, one
- 14:41technique could be based on having
- 14:42multiple models or multiple agents
- 14:44generate those kind of chains.
- 14:46A second problem that's very challenging
- 14:49and we covered actually in
- 14:51the first few lectures is around
- 14:53verification. So it's quite hard to
- 14:55verify
- 14:57model outputs.
- 14:58And typically, you would just look at
- 15:01the
- 15:02outcome. So if you have a math problem
- 15:04or a theorem proving uh
- 15:07a theorem proof, what you will look at
- 15:09is the final outcome, and then you have
- 15:11an outcome reward model. So does that
- 15:13match the ground truth? And then you
- 15:14will say that this verifies. One of the
- 15:16questions that we discussed
- 15:18in the
- 15:19verification lecture is that what
- 15:21happens if the reasoning chains are
- 15:23wrong and will that lead the model
- 15:25astray and or or will that
- 15:28cause uh some performance gap uh at the
- 15:30end. And
- 15:32we also realized that process reward
- 15:34models are quite hard to build. So,
- 15:36DeepSeek-Math V2 is a recent paper that
- 15:38came out which tries to show that at
- 15:40least in the theorem proving domain, it
- 15:42is possible to build uh
- 15:44self-verification loops uh which are
- 15:46automated. So, uh that's a very
- 15:48interesting uh concept.
- 15:50Um
- 15:51just to remind you on what I was saying,
- 15:54the current reinforcement learning
- 15:55approach assumes that final answer will
- 15:57match the ground truth and that's how uh
- 16:00you're basically creating the rewards.
- 16:02So, this has enabled saturation of
- 16:04multiple benchmarks like AMIE or uh
- 16:07other math-related benchmarks, but often
- 16:08times uh even when you have the correct
- 16:11answer, you might not have the correct
- 16:12reasoning. And if you are actually
- 16:14trying to get the models to do better in
- 16:16theorem proving, you do require rigorous
- 16:18step-by-step derivation which um the
- 16:20final output doesn't quite give you.
- 16:23Now, the interesting aspect is that uh
- 16:25the large language models are often
- 16:27trained on quantitative reasoning. So,
- 16:29the proofs that they might generate are
- 16:31mathematically invalid. And
- 16:34uh if you ask them to uh verify, they
- 16:37will claim that the incorrect proofs are
- 16:39valid. So, LLM as a judge technique
- 16:41doesn't quite work uh here. But, if you
- 16:43actually have expert humans look look at
- 16:46these proofs, um
- 16:47they will be able to look at the proof
- 16:49and and kind of uh reason about the fact
- 16:52that they know this area, they can
- 16:53reason about the fact and say that,
- 16:55"Okay, this proof has issues. It's just
- 16:57um not making sense because uh this next
- 16:59step is not following from the last step
- 17:02or there's reasoning gaps in the
- 17:04reference in the proof uh solution."
- 17:07So, uh what uh DeepSeek-Math V2 proposes
- 17:10is that instead of uh just training uh
- 17:14the reward models, they train uh
- 17:17verifiers, so meta verifiers basically.
- 17:19So, they get humans to identify issues
- 17:22in the proofs
- 17:23without any reference solutions, and
- 17:26based on that they train LLMs to
- 17:29identify issues in the proof and
- 17:32improve upon those. And then if you will
- 17:35find that there So, you basically have
- 17:38trained a model which can now critique
- 17:40the proofs themselves.
- 17:41So,
- 17:42what the final architecture for
- 17:44DeepSeek-Math V2 looks like. You folks
- 17:46are already familiar with the fact that
- 17:47there's a generator and a verifier
- 17:49typically in the in the loop for
- 17:51building
- 17:52chain time scaling systems. So, you are
- 17:55you have one model that is producing
- 17:56proofs and another model that is uh
- 18:00perhaps verifying things. So, it's
- 18:01identifying issues. What DeepSeek-Math
- 18:04V2 adds is this notion of meta verifier.
- 18:06So, you have
- 18:08a meta verifier that will review the
- 18:10verifier's analysis for whether it makes
- 18:13sense or whether there are issues with
- 18:14the proofs. And then the verifier is
- 18:16trained to
- 18:18take these issues and then score the
- 18:19proofs on a scale of 0.5 and 1.
- 18:23So, the verifier will then go improve
- 18:25the generator and the generator will
- 18:27produce harder proofs which will then go
- 18:29improve the verifier. So, there's this
- 18:31basically this ends up being a loop in
- 18:33some way.
- 18:35And the other interesting aspect here is
- 18:37that because
- 18:39once you seed the data for
- 18:41finding incorrect proofs, then you can
- 18:44actually automate that kind of labeling.
- 18:46So, you don't have to just rely on
- 18:47humans identifying issues in the proofs
- 18:49once the model once the meta verifier
- 18:51starts to learn this.
- 18:55So,
- 18:56this notion of meta verification is
- 18:58generally quite interesting in that
- 19:00verifiers can get correct score
- 19:02when the reasoning chains are incorrect.
- 19:04For example,
- 19:06they might come up with fabricated
- 19:08errors. So, meta verification has
- 19:10evaluation of this analysis to these
- 19:13issues that the
- 19:15that the verifier a verifier here is LLM
- 19:17as a judge uh
- 19:19do these identified issues actually
- 19:21exist? Does the score follow from the
- 19:23issues? So, they're basically analyzing
- 19:25whether the verifier did a good job or
- 19:26not. And then they have experts annotate
- 19:29the quality of this evaluation. And just
- 19:32by adding this additional block, they
- 19:34are able to improve the quality. So,
- 19:36it's almost like you had reasoning
- 19:38chains and then now you have um the
- 19:41verifier
- 19:42over those reasoning chains, which is
- 19:44basically saying that is this evaluation
- 19:46correct or not? Um so,
- 19:50it there is an LLM as a judge, which is
- 19:52identifying the issues in this reasoning
- 19:53chain and then
- 19:55do those issues exist or not is what
- 19:57meta verification is uh looking for.
- 20:02If you look at the results here,
- 20:05um
- 20:06just with this iterative optimization,
- 20:08uh I think all of those are familiar
- 20:10that a lot of the RL loop uh
- 20:12often uh is built on top of GRPO. Um in
- 20:15this particular case, they're building
- 20:17on top of DeepSeek V3 base models. So,
- 20:20just the verification generation loop
- 20:22now um benchmarked on IMO problems and
- 20:26CNML problems. Um this was present like
- 20:29the Gemini version of that was presented
- 20:31by
- 20:32uh one of our guest lecturers, but this
- 20:34is an open-source version that was
- 20:35released uh recently.
- 20:37Uh they are able to show that in
- 20:40eight iterations, um just with positive
- 20:43one, the proof score continues to climb
- 20:45just with that iterative loop. And then
- 20:47if you have best at 32, best at 32 means
- 20:50you pick the best solution out of 32
- 20:52generated proofs. Um there you are
- 20:55almost getting to 42% in uh proof score
- 20:58uh for IMO short list of 2024. So, this
- 21:02is quite promising as a hill climbing
- 21:04technique, which can suggests that there
- 21:06is some promise if you can identify the
- 21:09issues in the reasoning chains and
- 21:10actually push the model or nudge the
- 21:12model towards correcting them.
- 21:15So, overall um
- 21:18the insights here are that
- 21:20the best proofs will achieve higher
- 21:22verification scores and the generator
- 21:25can learn to differentiate higher
- 21:27quality proofs from flawed proofs and
- 21:29the self-verification as a result can uh
- 21:32basically uh have this better
- 21:35improvement loop. So, verification can
- 21:37be a bottleneck and this is one way to
- 21:39break that bottleneck.
- 21:41Overall, I think if you were to try to
- 21:44generalize this technique in other
- 21:46areas, what you're basically looking for
- 21:48is you're if you have LLM-based
- 21:50verifiers, you need need to find a way
- 21:53to get them to identify issues without
- 21:55reference solutions. That's what this
- 21:56paper is relying on. Then you need some
- 21:59form of an additional block which is
- 22:01meta meta verification so that it can
- 22:04reduce the chance of hallucinated issues
- 22:06that were identified by the verifier.
- 22:08And
- 22:09then you add an additional incentive for
- 22:11the generator to maximize
- 22:15quality through deliberate reasoning.
- 22:17So, you're basically improving the
- 22:18quality of the model responses here.
- 22:20So, overall, this notion of
- 22:22self-verification is introduced by our
- 22:24Deep Seek Deep Seek Math V2 and it
- 22:27starts to
- 22:28break the bottleneck in in verification
- 22:31if you can
- 22:32make that more automated end-to-end.
- 22:34Uh of course, this is still limited by
- 22:38uh by domains where verification is
- 22:40easier
- 22:42uh rather than more difficult.
- 22:46Okay.
- 22:47So, we covered through um
- 22:50what is the diversity in reasoning
- 22:52chains and we discussed a bit about um
- 22:57the verification bottleneck in the
- 22:58models where oftentimes um
- 23:01to get the models to
- 23:03uh, get over the bottleneck of, uh,
- 23:06verification, you need some form of meta
- 23:08verification techniques and N Deep Seek
- 23:10Math V2, uh, publishes that in open
- 23:13source. A third problem that you have to
- 23:15solve is this notion of, um,
- 23:18what data or what prompts, uh, should I
- 23:22train on? Um, so there's this very
- 23:24interesting paper that has not, um,
- 23:26uh, seen, uh, much, uh, um,
- 23:29use yet, but is quite promising and
- 23:31interesting is that, um,
- 23:34you basically, uh, have the models
- 23:36propose the set of tasks that they
- 23:38should go train on that are just, um, at
- 23:41the edge of, uh, what they have learned.
- 23:43So,
- 23:44to remind you, typically in the current
- 23:46AI training stack, um, you are either
- 23:49using human curated re- reasoning
- 23:51traces, so that's for the supervised
- 23:53learning stage, or for reinforcement
- 23:56learning with verifiable rewards, you
- 23:58are expecting some experts to curate the
- 24:00question-answer pairs, but that that
- 24:03basically requires that if you're
- 24:04constructing such, uh, model in, um,
- 24:07math, then you need math experts. If
- 24:09it's an IMO problems, then you need IMO
- 24:11experts, or if it is in coding, then you
- 24:14need, um, strong software coders. Uh,
- 24:17so,
- 24:18as, uh, the models continue to surpass
- 24:21human intelligence, um, the
- 24:23the ability to find more and more
- 24:25experts and more and more such tasks
- 24:27starts to be, uh, limiting.
- 24:30So, what this, uh, paper proposes, um,
- 24:33and this idea is still very new, is that
- 24:35a single model can both propose tasks
- 24:38and then solve them, so it
- 24:40it's almost goes to the other extreme of
- 24:42like, we should not really need an
- 24:44external, um,
- 24:46external source of data. So, basically,
- 24:48we don't should not need human
- 24:50generated, um,
- 24:52uh, prompts uh, to help climb on. The
- 24:55model itself will propose the tasks and
- 24:57then then it will go solve them and uh,
- 25:00so that's a very interesting set of
- 25:01ideas
- 25:03and uh
- 25:04it is feasible in certain domains. So
- 25:06they focus more on coding as a domain
- 25:08and they
- 25:10effectively construct three types of
- 25:12tasks
- 25:13abduction deduction and induction and I
- 25:16will explain this diagram in the
- 25:18subsequent slides but effectively what
- 25:20this is saying is that in the proposal
- 25:22stage
- 25:23they will
- 25:25construct the tasks based on this task
- 25:27types and then come up with a reward to
- 25:30select which tasks make sense and in the
- 25:32solution stage they will verify
- 25:35and then have an accuracy reward and
- 25:37then that can help give a joint update
- 25:40on the model itself as opposed to
- 25:43just one sided updates.
- 25:45So
- 25:46what is the proposer? How is the
- 25:48proposer proposing tasks? That's quite
- 25:50interesting. So it's effectively based
- 25:52on code coding paradigm so it's
- 25:54effectively saying that
- 25:55you have deduction tasks where
- 25:58you are generating program and input um
- 26:02and the
- 26:03environment is executing to get get
- 26:05output. So this is your usual
- 26:07um
- 26:09come up with a program and an input pair
- 26:11and then the environment will execute to
- 26:13get outputs.
- 26:15Abduction tasks they're similar to
- 26:17deduction you're generating the program
- 26:19and inputs and
- 26:20environment again computes outputs but
- 26:22induction tasks are different. It
- 26:24samples an existing program and then
- 26:26generates a new inputs for it
- 26:29plus a natural language message
- 26:30describing the function and the
- 26:33environment then goes and executes and
- 26:35and kind of decides whether this um
- 26:38this is going in the right direction or
- 26:40not.
- 26:41So
- 26:43what I and another interesting bit that
- 26:44I should mention here is that the
- 26:46proposer will be conditioned on past
- 26:49here. So
- 26:50I'll cover that in a later slide because
- 26:52otherwise it will get confusing, but it
- 26:54will be basically conditioned on past
- 26:56generated examples that are explicitly
- 26:58prompted
- 27:00so that they're basically added to
- 27:02promote diversity.
- 27:05So how do you how do you select tasks?
- 27:08The proposal will get a reward based on
- 27:11optimizing for task difficulty. So if
- 27:15when the solver so
- 27:17each of the tasks that are generated are
- 27:19passed to the solver
- 27:21and success rate is um
- 27:23zero, then you get a zero reward and if
- 27:26the
- 27:27success rate is non-zero, then you
- 27:28basically get one minus average success
- 27:30rate and the kind of tasks that you want
- 27:33to select are
- 27:35the [snorts] ones that are not trivial
- 27:36and the ones that are not impossible, so
- 27:38there is some ability to continue to
- 27:40learn. So you end up selecting tasks
- 27:42that are of moderate difficulty where
- 27:44solver will sometimes succeed and
- 27:46sometimes fail and this will generally
- 27:49help with uh
- 27:51getting the model to learn. So that's
- 27:54the goal of the
- 27:55proposer is to
- 27:57generate tasks for optimal task
- 27:59difficulty at a current set of model
- 28:02weights and as the model becomes more
- 28:03capable, then the proposal should learn
- 28:06to propose harder problems.
- 28:08Um of course, if you generate tasks,
- 28:11then you need to somehow make sure that
- 28:13these are valid tasks. So in the coding
- 28:15abstraction, one can run program
- 28:17integrity, so you can actually execute
- 28:19these tasks and see whether there are
- 28:21any errors. You can do safety checks.
- 28:23You can also make sure that if you run
- 28:25these inputs multiple times, you get
- 28:28exactly same outputs because in code
- 28:30that's possible. So
- 28:32the proposed tasks before it goes into
- 28:34the training pipeline is validated. So
- 28:36that's one way to make sure that
- 28:38um
- 28:39the proposal doesn't just um hack and
- 28:43come up with garbage tasks.
- 28:45And in terms of
- 28:46there's a buffer that is kept. So,
- 28:49for
- 28:50every seat triplet like there's an
- 28:52identifying like basically the the
- 28:55input, output, and the program for each
- 28:58of those triplet tasks, you're adding
- 29:00them to the task buffer and the proposer
- 29:03can sample references from the our
- 29:04buffer. So,
- 29:06there's some sort of a buffer that is
- 29:08kept
- 29:09along with how
- 29:13how many times the model is succeeding
- 29:15or failing on this. So, this is
- 29:16basically leading to this idea of
- 29:18curriculum learning that is evolving
- 29:20over time.
- 29:22And
- 29:23why is this exciting or interesting? I
- 29:25mean, on coding benchmarks, this notion
- 29:28starts to let you hill climb despite
- 29:30having much human curated data,
- 29:33which you know, human humans can
- 29:35generate a lot of coding data, but that
- 29:37after a while synthetic data or some
- 29:39This is almost a play on synthetic data
- 29:42in some ways, but it's um
- 29:44generating that in the loop at the task
- 29:47level as as well. So, what they show is
- 29:49that they're able to get state of the
- 29:51art on coding benchmarks even though
- 29:53they didn't have any human curated data
- 29:55on the prompt side, and they are able to
- 29:58outperform models trained on tens of
- 30:00thousands of expert examples. Some
- 30:02emerging behaviors that they show are
- 30:04that the complexity metrics increase
- 30:06over time. So, that can be expected if
- 30:08the proposer is continuing to increase
- 30:11the difficulty of what it's learning.
- 30:13And another aspect is that the diversity
- 30:16of programs and answers when the loop is
- 30:17set up correctly is is improving and the
- 30:20proposer is actually increasingly
- 30:23generating more and more difficult tasks
- 30:26as it's
- 30:27as the training is progressing. So, in
- 30:29in some ways it's almost like game
- 30:30theory where the proposer and solver are
- 30:33slightly adversarial, but overall
- 30:35they're helping each other improve in
- 30:37some ways.
- 30:38So, this is solving through the
- 30:40bottleneck of which tasks to go uh train
- 30:42the models on.
- 30:44So, if you were to uh look at takeaways
- 30:46here, I think it's it's basically going
- 30:48down the path of like the the task
- 30:50selection problem on which these models
- 30:53um run their self-improvement loop
- 30:55should not get bottlenecked on human
- 30:57data because otherwise you are very
- 30:59bottlenecked on which human experts as
- 31:01long as you can have some form of
- 31:03verification there.
- 31:04And uh you need some form of uh ability
- 31:06to do curriculum learning. So,
- 31:09uh this particular technique definitely
- 31:11relies on that. And uh even though they
- 31:14only
- 31:15hill climb on self-proposed code tasks,
- 31:18they actually see strong performance on
- 31:20both coding and math math benchmarks.
- 31:23So, that's actually surprising that they
- 31:25are also seeing strong performance on
- 31:26math benchmarks, but one can explain
- 31:28that from other results that have been
- 31:29seen in the field. And overall, larger
- 31:31models get bigger gains relative to
- 31:33smaller models. So,
- 31:35uh this is another uh idea in the space
- 31:38of uh improving the self-improvement
- 31:40loop that uh seems quite promising and
- 31:43uh continuing to hill climb in that
- 31:44area.
- 31:46>> Uh can I add something on on the
- 31:49previous? So, I feel like we are seeing
- 31:51the same thing. Like, we learned about
- 31:53Swirl, the step-by-step RL with
- 31:55synthetic data. Like, I feel like the
- 31:57findings here and there really kind of
- 32:00resonate with each other in the sense
- 32:02that uh synthetic data, like model
- 32:05generating its own training data, can
- 32:09improve the model not only on the
- 32:12the task that the generation is
- 32:14happening on, but also in
- 32:15transferability. Like, in Swirl, it was
- 32:18on us to a multi-hop question answering
- 32:21with retrieval, but then as more
- 32:23synthetic data was generated and RL
- 32:25training was done, the model was getting
- 32:27better at other tool calling, like
- 32:30calling a Python and solving math
- 32:33problems and vice versa. So, it seems
- 32:35like there is this like clear kind of
- 32:38repeated trend that we are seeing in
- 32:40terms of synthetic data generation by
- 32:42the model and generalization. And the
- 32:45other piece that's interesting again
- 32:46that
- 32:47kind of is the same kind of observation
- 32:50is that larger models seems to be better
- 32:53at absorbing this kind of data flywheel
- 32:56and also generalizing through that.
- 32:58Uh especially when it comes to in swirl
- 33:01at least on the RL optimization side,
- 33:03which is like an interesting
- 33:05observation.
- 33:07>> Great. Great.
- 33:09Uh where where would you take it from
- 33:10here
- 33:11from what you learn in swirl, right? So,
- 33:13I was going to summarize then you can
- 33:15add more bullet points. I I think to me
- 33:17uh
- 33:18to achieve true generalization and
- 33:19reasoning, we really need that notion of
- 33:22diversity um
- 33:24in the reasoning chain. So, that that
- 33:25was the first set of comments I was
- 33:27making and how we achieve that um
- 33:30continues to be an open problem. Uh we
- 33:32need better verification and the more we
- 33:34can break that verifier loop in a way
- 33:37where uh we are not bottlenecked by
- 33:39humans or or tasks that are uh
- 33:42verified only through human experts, uh
- 33:45the better off we are in some ways.
- 33:47Like, building reward models is
- 33:48challenging.
- 33:49And then I think the third is the
- 33:50selection of data itself. Um
- 33:53there's only so much uh
- 33:55data that can be curated by humans for
- 33:57what prompts go in. Uh so, that breaking
- 33:59that barrier is also quite important in
- 34:01next generation of
- 34:03uh self-improving models. What else do
- 34:05you would add there?
- 34:08>> Yeah, I think uh
- 34:10one just uh based on these kind of
- 34:12existing work
- 34:14uh
- 34:15uh
- 34:16something that would be interesting is
- 34:18that how much we can push the front here
- 34:21of the self-improvement just
- 34:23only be based on the verifiable domains
- 34:26that we can generate synthetic data and
- 34:28bring it back to the model
- 34:30on diverse task on diverse verifiable
- 34:33task, how much that pushes the
- 34:35performance and generalizes to other
- 34:38domains where we don't have uh
- 34:41automated verification. Like, can we
- 34:43generally make the model smarter and
- 34:45smarter in areas that we can verify
- 34:48verify
- 34:50and
- 34:51uh minimize or
- 34:54remove the need for label data in on
- 34:58non-verifiable
- 35:00domains based on that. So, I think that
- 35:02would be an interesting kind of research
- 35:04area, of course, a very compute-heavy
- 35:07research experiment.
- 35:10>> Uh there are there are some questions
- 35:12that people are asking. Uh what are some
- 35:14other applications of AI that don't fall
- 35:16into verifiable problems?
- 35:20>> So, it
- 35:21So, it comes in I I can just think about
- 35:24uh
- 35:25some uh areas that verification is very
- 35:29slow.
- 35:30Uh like, scientific discovery, running a
- 35:34very slow simulation in chip design that
- 35:36takes like a few days to run it to run
- 35:38to collect one kind of reward signal, or
- 35:42running this chemical experiment that
- 35:44you actually need to like go to a wet
- 35:47lab and run things and see like what the
- 35:50output, the quality, or the reward is.
- 35:53Those are the domains that the
- 35:54verification is really hard because
- 35:58in RL fine-tuning, we need or in test
- 36:02time scaling, we need these verifiers to
- 36:04be almost instant, right? Or we can wait
- 36:06a little bit. Maybe we can wait minutes.
- 36:08Maybe we can allow like 1 hour, but if
- 36:11this in this RL training route we RL
- 36:14training, we need like hundreds or
- 36:16thousands of steps of iteration,
- 36:18we can't wait like days
- 36:21uh or like someone a human in the loop
- 36:24to collect the reward for us.
- 36:27So those are the non verifiable domains.
- 36:31Those are some examples of non non
- 36:32verifiable domains.
- 36:35>> I think truly non verifiable also comes
- 36:37from creativity or any metrics that
- 36:40where where there's subjectivity in some
- 36:41ways.
- 36:44>> Like creative writing, right? It's like
- 36:46a
- 36:48designing an exact reward function for
- 36:50that is hard.
- 36:52But of course we can always model that,
- 36:54but then you you can the RL or the agent
- 36:58can do reward hacking if the model is
- 36:59slightly off
- 37:01off base, yeah.
- 37:04>> Any other questions from the class on
- 37:05those aspects?
- 37:11>> Yeah, we have one question. Can you hear
- 37:12us?
- 37:13>> Yes, we can hear you.
- 37:15>> Uh
- 37:16you mentioned
- 37:18the harder areas to verify. Like how are
- 37:22people attempting to
- 37:25uh solve that?
- 37:28Like for example, like chip design or
- 37:30like
- 37:31like bio
- 37:33discoveries.
- 37:37>> Um so one way to to go about it is to
- 37:43train a model like a separate reward
- 37:45model that can predict the outcome of a
- 37:48simulation. So instead of actually
- 37:51running those expensive uh simulations
- 37:54or emulations or true experiment, you
- 37:57collect a lot of data on them offline
- 38:00and then you train a reward model that
- 38:02for a given input it can predict the
- 38:05quality of the output and you use this
- 38:07reward model as your verification
- 38:11object like uh
- 38:13in the loop of RL optimization and so
- 38:15on. But of course the generality of the
- 38:19reward model is a function of how much
- 38:20data you have and
- 38:22um
- 38:23it can
- 38:24uh can be inaccurate and that can cause
- 38:26problems.
- 38:28So that's that's one area. Akanksha, do
- 38:30you have any?
- 38:32>> So
- 38:33I think we talked about chip design and
- 38:35so on, right? But even even before going
- 38:37to chip design, just the kernel bench
- 38:38stuff that was done at Stanford in your
- 38:40lab.
- 38:41Even there, for example, um
- 38:44get get you get compiler execution, so
- 38:47you can see that did you generate the
- 38:48right code or not? You can get some
- 38:49metrics, but
- 38:51there's a class project that is actually
- 38:53trying to read performance profiles as
- 38:55you make things more complex and that's
- 38:57a harder problem. So you basically
- 39:00even though you might be able to do
- 39:01design optimized kernels for simple
- 39:03enough things, but if you actually
- 39:05concatenate all of these things together
- 39:07and you want to
- 39:08performance profile and and change parts
- 39:11of the code that are
- 39:13not optimized, that's a harder problem
- 39:15in general in some ways and often times
- 39:18the way people will go about solving it
- 39:20is okay, the models can
- 39:22solve maybe kernel optimization problem,
- 39:25so maybe I break down the problem into
- 39:27sub parts and then then get the model to
- 39:29look at each part and then have some
- 39:32reference solutions to look at a
- 39:33knowledge base. I'm literally describing
- 39:36a class project right now. So what I'm
- 39:38trying to say here is that it's
- 39:40because of this being a hard enough
- 39:43problem and the models not being at that
- 39:44capability, often it requires breaking
- 39:46down the problem in interesting ways to
- 39:49what what the models are able to do now.
- 39:58Okay.
- 39:59Let's move to
- 40:01more along the lines of okay, we can do
- 40:03the self-improvement, but you're now
- 40:05doing a lot more inference and there's a
- 40:08cost to this intelligence. So Azalia
- 40:10will cover more on how to get efficiency
- 40:12there.
- 40:14>> Sounds good. Should I I, uh, present
- 40:17myself or would you like scroll? Like
- 40:19how what would
- 40:20>> Uh, whatever is fastest. I can continue
- 40:23to if you just tell me next I'll
- 40:24continue to this.
- 40:24>> Okay. Okay. Sounds good. So, next,
- 40:26please.
- 40:28Um, so this is a recent work, uh, that
- 40:31we did, uh, in collaboration with uh,
- 40:34Professor Ray and uh, Professor John
- 40:37Hennessy and a large team of uh,
- 40:40great collaborators. Um, so in this
- 40:43project we're what we're looking for is
- 40:46like looking into the the trends that
- 40:48are happening on the model side and also
- 40:51on the hardware accelerator side and
- 40:54we're what we are interested in, uh, in
- 40:58kind of like
- 41:00uh, thinking about the future and
- 41:02thinking about how the workloads and AI
- 41:04inference,
- 41:06uh,
- 41:07uh, is going to look like in terms of
- 41:09like the type of the size of the models
- 41:11and the type of accelerators that we're
- 41:14going to need to serve them. Uh, next,
- 41:16please.
- 41:20So, uh,
- 41:22right now we call we are in the
- 41:24mainframe uh, era meaning that uh,
- 41:29the
- 41:30the
- 41:31LLMs that we're running using ChatGPT,
- 41:34Gemini, uh, a lot of these uh, larger
- 41:37models that we're running, all of them
- 41:38are being run on cloud, uh,
- 41:42we don't we don't run them locally
- 41:44because these models are large. Uh, some
- 41:46of them we even don't have access to
- 41:48them, they're proprietary and the even
- 41:50the open source one for the larger
- 41:52models we're still using cloud to run
- 41:54these models.
- 41:55Uh, and at the same time what the
- 41:57observation is that the demand for
- 42:00compute
- 42:01as a result is exploding like Google
- 42:03Cloud uh, had grew in something in the
- 42:07order of 1200x in the last 12 20 months
- 42:11in terms of the compute serving in video
- 42:14had a 10x year over year kind of growth
- 42:18growth. And this is like crazy, right?
- 42:20These numbers are
- 42:22explicitly driven by AI and as a result
- 42:26you're going to need something in the
- 42:28order of 250 gigabyte gigawatt of data
- 42:31centers
- 42:33to be able to serve this demand right
- 42:35now and again this is exploding. So that
- 42:38means you're going to need more and more
- 42:41energy kind of supply for these data
- 42:44centers.
- 42:45On the right side we are this we are
- 42:47showing this graph of the number of
- 42:49tokens
- 42:50that are kind of like
- 42:52from from on the Google side has been
- 42:55processed. So in the February of last
- 42:58year it was 160 trillion and in October
- 43:01of this year it was 1.3
- 43:04quadrillion.
- 43:06So this is like one of the fastest
- 43:08growing compute demands that we are
- 43:10seeing in history.
- 43:12Next please.
- 43:15>> [clears throat]
- 43:15>> At the same time so we looked into like
- 43:18what kind of workloads are or the type
- 43:21of activities or AI serving
- 43:24demand that we are observing and there
- 43:26from this
- 43:28data set this very large scale data set
- 43:31of chat GPT users it turns out that
- 43:34something in the order of 77%
- 43:36of requests are for task like practical
- 43:41guidance, information,
- 43:44like asking for information or writing
- 43:47and a lot of these task
- 43:49it turns out that we don't need the very
- 43:51best frontier models to ask to to answer
- 43:54them correctly. Rather small smaller and
- 43:59local models can be used to address to
- 44:02address them. So on the right side you
- 44:04are seeing this kind of like categories
- 44:06of user queries, the type of user
- 44:09queries that exist and over time and
- 44:14what is interesting here is that of
- 44:16course users are going to ask more and
- 44:18more complex problems from the chatbots
- 44:21over time because the chatbots are
- 44:23getting better, but still it's kind of
- 44:26like the vast majority of the type of
- 44:29queries that are being asked are on the
- 44:32on the side of again the simpler side of
- 44:36complexity that can be addressed by
- 44:39smaller models rather than
- 44:42large proprietary models.
- 44:44Next, please.
- 44:47Um
- 44:48another trend that is happening right
- 44:50now is the improvements in local
- 44:54inference accelerators. So, the graph on
- 44:57the right what it shows is us since 2012
- 45:00up until now uh
- 45:03we we saw something like 126x
- 45:06improvement in the GPU memory of the
- 45:09local accelerators and right now
- 45:13we have laptops that our MacBooks could
- 45:16have
- 45:17something in the order of 100 GB of
- 45:19memory and that means that we can fit
- 45:23very very large model
- 45:26if we
- 45:27especially if you serve the model in
- 45:28quantized versions like in eight and so
- 45:31the larger some of the largest models
- 45:34that are out there we can take them and
- 45:36serve them locally. This is like a very
- 45:38interesting trend that is following this
- 45:41other trend that
- 45:42a lot of user queries are addressable by
- 45:46smaller models.
- 45:48Next, please.
- 45:50So, the question that we wanted to
- 45:52answer here is that
- 45:54uh
- 45:55what role can local inference play in
- 45:59re-redistributing
- 46:01the inference demand? So, we have all
- 46:03this traffic right now that pretty much
- 46:06all of it is going to cloud.
- 46:08Pretty much all of it is going is going
- 46:10to these accelerators like H100s and
- 46:14TPUs and GP200s, GP300s. But,
- 46:19the trends right now are suggesting that
- 46:21maybe we can do something different
- 46:22here. And so, let's see the next slide.
- 46:27Uh so, in order to look into this more
- 46:30systematically, we first did did
- 46:33uh
- 46:34define this new metric that looks into
- 46:37not only the capability or the way the
- 46:40models are the accuracy of the models,
- 46:43but also on the efficiency side. So, on
- 46:46the capability side, we are looking in
- 46:48this metric that I'm about to define
- 46:51called intelligence per watt is looking
- 46:54into the percentage of
- 46:57uh of the queries that are being uh are
- 47:00that are addressable by the model in in
- 47:03for the single turn and reasoning uh
- 47:06type of queries. And when I say local
- 47:09models right now, at least in this
- 47:10study, we considered those are the
- 47:13models that are 20 have 20 billion
- 47:15active parameters or less.
- 47:18Um and on the efficiency side is how
- 47:21much uh
- 47:22useful compute we can get from these uh
- 47:25per watt from running these models on
- 47:28our local hardware. So, in short, the
- 47:31definition of intelligence per watt is
- 47:34the average task accuracy divided by the
- 47:36average power draw to uh
- 47:40to to solve this task by the model.
- 47:43Uh next, please.
- 47:46And we looked into a variety of uh
- 47:49models, hardware, work uh type of tasks,
- 47:52and uh evaluation metrics.
- 47:54Uh we looked into more than 20 local
- 47:57models and like quant, GPTQ, llama 3,
- 48:00and so on.
- 48:02Uh we looked into both enterprise
- 48:04accelerators and local accelerators.
- 48:07Uh
- 48:08the type of workloads we looked into, as
- 48:10you can see here, were there were 1
- 48:12million queries from sourced from chat
- 48:14GPT
- 48:16and other reasoning
- 48:18benchmarks such as natural reasoning,
- 48:20MMLU Pro, and Super GPQA.
- 48:24Um and we also looked into the
- 48:26evaluation metrics such as accuracy,
- 48:28energy, latency,
- 48:30uh the compute used, and so on. And all
- 48:32of this data, so this massive data we
- 48:35used it to up to understand the trends,
- 48:37but we are also
- 48:39uh open-sourcing all of these kind of
- 48:41different metrics across different
- 48:44uh
- 48:45uh type of on the underlying model and
- 48:47hardware substrates.
- 48:49Next, please.
- 48:51So, here is our find our findings.
- 48:54Uh it turns out that local models are
- 48:58not only are very very good already, but
- 49:01the trend of their improvement is also
- 49:04very interesting. So, since 2023,
- 49:08um there was a 3.1x
- 49:11improvement in the accuracy or the
- 49:14portion of the chat queries that they
- 49:17could add they could solve.
- 49:19Um this is very very fast, and this
- 49:21happened in only 2 years. Um and right
- 49:24now they could among the queries that I
- 49:27described in the previous slide, they
- 49:29could address something in the order of
- 49:3188.7%
- 49:33of all these queries. Uh this is a very
- 49:35very large number number.
- 49:38Um another observation, which is like
- 49:41kind of not very surprising, is that
- 49:44local accelerators, in terms of their
- 49:46efficiency, they lag behind enterprise
- 49:49chips.
- 49:50Uh for example, an Apple M4 Max, uh,
- 49:54it delivers 1 and 1/2,
- 49:57uh,
- 49:58X lower intelligence per watt than a
- 50:01B200. And the reason for that is that
- 50:04these B200s are extremely, like,
- 50:06optimized to run language model
- 50:10workloads, whereas an Apple M4, of
- 50:12course, is optimized to run these AI
- 50:14metrics, but there are other metrics,
- 50:16other other kind of workloads that are
- 50:18out there that, uh, they're optimized
- 50:20for. And in general, while designing
- 50:23these chips, the understanding wasn't
- 50:26that
- 50:27the LLMs are going to be running
- 50:30locally.
- 50:31That's why, like, the majority of focus
- 50:34of chip designers are on this cloud
- 50:36cloud scale uh, chips for running these
- 50:39workloads.
- 50:40And lastly,
- 50:42there is this other very important
- 50:44observation that the intelligence
- 50:47efficiency, like, or the improvement in
- 50:49this IQ EW metric, is something in the
- 50:52order of 5.3X over the last 2 years. So,
- 50:553.1X of it is coming from better models,
- 50:59and another 1.7X of it is coming from
- 51:01the improvement in the hardware, and the
- 51:04how the hardware is becoming more and
- 51:06more efficient. So, both of these, uh,
- 51:09so the the all of these, uh,
- 51:12both of these trends, one is that local
- 51:15models are, like, becoming better and
- 51:17better. They can
- 51:18solve problems, uh, that they couldn't
- 51:21solve before at this, like, very
- 51:23accelerated rate. At the same time,
- 51:27uh, model efficiency is becoming better,
- 51:29and hardware efficiency is becoming
- 51:31better. This suggests that we're heading
- 51:34towards this future that more and more
- 51:36of this traffic can be addressed or can
- 51:40be solved by models that we can run on
- 51:42our edge device, for example, on our
- 51:44laptop or on our, uh, phone device in
- 51:48the future.
- 51:49Uh next, please.
- 51:52Um so, uh
- 51:55let's just go to the next slide. Uh
- 51:58so,
- 52:00with that, uh
- 52:02I get back to the IPW and the future
- 52:04directions for that in a second, but
- 52:07given this observation and everything
- 52:09else that we have kind of learned in
- 52:11this class,
- 52:12there are a few directions that are
- 52:16remain like open. There are a lot of
- 52:18interesting research questions around it
- 52:20that can be that are not addressed yet,
- 52:22and it's going to be interesting to work
- 52:24on.
- 52:25Uh one is the the fund foundational
- 52:28principles in test time scaling,
- 52:30um and learning from this like
- 52:33new kind of era of synthetic data and
- 52:37synthetic data flywheel that these
- 52:38models are creating.
- 52:40Uh right now, the way we are approaching
- 52:43it is through RL, through collecting
- 52:45this data, and then fine-tuning the
- 52:46models.
- 52:48Uh but, it kind of like suggests that
- 52:50there is more here, like our
- 52:51understanding of
- 52:53um
- 52:56First of all, why is why are we seeing
- 52:58this kind of property? Like, what does
- 53:01it suggest from the model that as they
- 53:03ask the model a question over and over
- 53:06again through test time scaling, what is
- 53:08happening that these correct answers are
- 53:10coming out? Like, what are the best
- 53:12practices to kind of distill these
- 53:15successful trajectories back to the
- 53:18model.
- 53:19Um these are still open questions, and
- 53:21there is a very clear segway from this
- 53:24synthetic data flywheel
- 53:26uh kind of phenomenon back to continual
- 53:29learning.
- 53:30Um
- 53:31something that is that seems like maybe
- 53:34it's not really we haven't gotten it
- 53:36right yet is the following. Like, us
- 53:39humans, like as we solve tasks, as we
- 53:43uh solve problems and study and do new
- 53:46things, there is this continual kind of
- 53:49progress in how our brain develops and
- 53:51how we become more and more skillful.
- 53:54Whereas for the models, it seems like
- 53:56mostly there's this offline process of
- 53:59like
- 54:00here is like some agent take up uh kind
- 54:03of experiences that are generated and
- 54:05then maybe after some time there's like
- 54:08this fine-tuning process of
- 54:10of the model.
- 54:12Uh it is not something that happens on
- 54:15the go.
- 54:16Uh and there is this kind of a mismatch
- 54:18between
- 54:20human behavior and model behavior that's
- 54:23a concept like continual learning could
- 54:25potentially answer. Like, what are the
- 54:28new practices that we can bring in model
- 54:31development that we can kind of like
- 54:34bring these
- 54:36uh positive experiences and learning
- 54:38from negative experiences and type of
- 54:41problem-solving that the model do back
- 54:43into the model in a more natural way
- 54:46uh that is different from the current
- 54:49like
- 54:50asynchronous like data generation and on
- 54:52and fine-tuning paradigm.
- 54:55Um
- 54:57Uh the last piece is the infra for the
- 55:01high-throughput low latency test time
- 55:03scaling. So, again, a a very
- 55:07um
- 55:08the way we do test time scaling, whether
- 55:11it's repeated sampling, whether it's uh
- 55:13these kind of like back and forth in
- 55:16terms of uh
- 55:18up updates that we do to the previous
- 55:20generations, we do tool calling, we do
- 55:21this and that. That is very different
- 55:23from the
- 55:25current mainstream chatbot usage, which
- 55:27is uh just like kind of mostly
- 55:30single-turn back and forth with the
- 55:32model.
- 55:33And that what that means is that there
- 55:35are very a lot of opportunities for
- 55:38doing systems and inference optimization
- 55:41work
- 55:42uh for these type of test time scaling.
- 55:45Uh my lab did some of this work like
- 55:48works like hydrogen, Tokamak
- 55:50uh and these things are going to matter
- 55:53again a lot more in the future because
- 55:56uh these methods are becoming more and
- 55:58more mainstream. So, that means we need
- 56:00to have uh specific ways to deal or
- 56:03optimize the systems and the underlying
- 56:05compute for them. So, overall, it seems
- 56:08like pre-training
- 56:10uh looking at the the figure on the
- 56:12bottom of the slide, pre-training a lot
- 56:15of interesting work in there. This
- 56:17course or our series of lectures touched
- 56:20less on that even though uh Akanksha is
- 56:22an expert on pre-training, but we mostly
- 56:26focused on post-training and the test
- 56:29time scaling methods. And there is this
- 56:33new kind of on unleashed area of like
- 56:36synthetic data flywheel and continual
- 56:39learning that is happening in this kind
- 56:41of connection between the fine-tuning
- 56:44and online learning and test time
- 56:45scaling that we hope that all of you
- 56:48learned a ton about it, but there's also
- 56:50a lot of interesting unsolved challenges
- 56:52that you can address going forward. Uh
- 56:55next slide, please.
- 56:58Um
- 57:00uh going back to the IPW metric and the
- 57:03observation about the shift the possible
- 57:05shift from everything on cloud to a lot
- 57:09more locally
- 57:11uh
- 57:12also suggests new direction in terms of
- 57:14inference
- 57:16uh serving engines that are hybrid
- 57:19uh that we we can kind of smoothly route
- 57:23traffic between our local and cloud kind
- 57:26of uh models and accelerators depending
- 57:29on the need and the complexity of
- 57:32uh of the resources.
- 57:34Um
- 57:36The other direction here again is new
- 57:39model architectures and kernels that we
- 57:42can use for any energy-efficient
- 57:44inference, especially on the local
- 57:46accelerators that we have, which is like
- 57:48a which is like a
- 57:50area that has much less
- 57:52uh kind of focus on compared to the
- 57:55cloud cloud accelerators.
- 57:58Um and the other important piece is that
- 58:00energy is going to be the most like kind
- 58:03of uh valuable resource that we have
- 58:06going forward. Uh and
- 58:08uh metrics such as intelligence per watt
- 58:11and better ways of our understanding of
- 58:14measuring energy and watt and power
- 58:17usage and optimizing for that again is
- 58:20going to be very very important. And
- 58:22that is an area that
- 58:26uh
- 58:27is less focused on right now in terms of
- 58:29like the metric of the target metric of
- 58:32optimization, but we expect that it's um
- 58:35it becomes more mainstream and more
- 58:37popular
- 58:38uh going forward.
- 58:41And
- 58:42I think that's the last slide on the
- 58:44future directions.
- 58:52Um Akanksha, you're muted.
- 58:58Okay, there's some some things in chat.
- 59:00So,
- 59:01um
- 59:03I'll start with the first question here.
- 59:05Do you think this is more pertaining
- 59:08This is more pertaining to memory
- 59:09systems
- 59:11or the LLMs themselves?
- 59:15I'm guessing uh So, whoever asked this
- 59:17question, can you ask it real time
- 59:19perhaps to uh put a little bit more
- 59:21context there? Otherwise, we're guessing
- 59:23the question.
- 59:25>> Yeah, happy to.
- 59:28Uh
- 59:28yeah, I was just referring to a few
- 59:30slides back when you were talking about
- 59:33that continual learning like from
- 59:35failures and success. Um
- 59:38Do you think that we're going to see
- 59:40more of that in
- 59:41you know, long-term memory systems and
- 59:43architectures or the you know, what's
- 59:45designed around an LLM or the models
- 59:48themselves?
- 59:50In terms of what's improved and what's
- 59:52worked on.
- 59:54>> So, I think the continual learning idea
- 59:55that might pertain to long-term memory
- 59:58systems with that's that would be the
- 1:00:00human analog of it, but if you're trying
- 1:00:03to but but before we even go there,
- 1:00:07get even in multi-step reasoning
- 1:00:09learning from success or failures or
- 1:00:11getting the model to keep that skill set
- 1:00:13and update things in the weights the or
- 1:00:16in subset of weights in a useful way
- 1:00:19like can you learn a new skill? Can you
- 1:00:23learn how to learn is is an important
- 1:00:26capability that we basically don't have
- 1:00:28right now.
- 1:00:30Like if you can watch videos robots try
- 1:00:32this when can you watch videos of how to
- 1:00:35do something and and learn how to do it
- 1:00:37as opposed to
- 1:00:38uh being given a lot of task
- 1:00:40demonstrations.
- 1:00:45Sorry, do you have more to add there?
- 1:00:49You're muted if you're
- 1:00:52Yeah, I think um
- 1:00:55um
- 1:00:56Yeah, I think there are other ways also
- 1:00:59to bring this knowledge like obviously
- 1:01:02in context learning
- 1:01:04is one way to enable continual learning.
- 1:01:07Imagine like one way I think about is
- 1:01:09that imagine we had an infinite context
- 1:01:12that the model could perfectly have
- 1:01:14access to every piece of it and could
- 1:01:17learn from everything in it. We don't
- 1:01:19have that, but if we had that, maybe
- 1:01:21that was one solution to like
- 1:01:24continual learning, right? Because we
- 1:01:26could put everything positive and
- 1:01:28negative in the context and the model
- 1:01:30could just remember all of that at the
- 1:01:32same time and reason over all of that at
- 1:01:34the same time.
- 1:01:35But, we don't have that. And we go
- 1:01:37through right now even a million or a
- 1:01:40few million, the models like kind of uh
- 1:01:43keep ability to reason over its ICL or
- 1:01:47in context uh kind of data diminishes.
- 1:01:51Um and there are other ways like we
- 1:01:54learned about cartridge in this tape in
- 1:01:56this uh in the span of our lectures. So,
- 1:01:59that's one other way that
- 1:02:01to be our enabling this long context and
- 1:02:05in context learning without changing the
- 1:02:07weights of the model, without fine
- 1:02:09fine-tuning it fine-tuning the model,
- 1:02:11but instead bringing them into the
- 1:02:14activations or in this case into the KB
- 1:02:16caches of the model. So, um
- 1:02:20all I'm saying here is that there are
- 1:02:22other ways to think about like continual
- 1:02:24learning uh without model
- 1:02:28without model fine-tuning. One could be
- 1:02:30by just increasing the effe- effective
- 1:02:32context length uh massively. Um
- 1:02:37and that could be another approach to
- 1:02:41memory like long-term memory and uh and
- 1:02:44continual learning.
- 1:02:48>> As a as a sort of follow-up to that,
- 1:02:49like
- 1:02:50in in practice, like in implementation,
- 1:02:52like do you think you know, what what
- 1:02:54would be easier to do? Like, you know,
- 1:02:57constantly updating the model's weights
- 1:02:58or uh you know, updating a memory store,
- 1:03:01right?
- 1:03:03>> So, I I I think it depends on the
- 1:03:04application, right? I mean, uh of course
- 1:03:07you can argue that updating the memory
- 1:03:09store
- 1:03:10would would be easier. Um if it's a
- 1:03:13knowledge base, if what you're I mean,
- 1:03:15the simplest and naive version of that
- 1:03:18is that if I could keep a database that
- 1:03:20the LM could learn to look at, then I
- 1:03:22should just go update the database,
- 1:03:23right? But what you're really trying to
- 1:03:25teach the LM is to the ability to reason
- 1:03:28over new domains, and and oftentimes
- 1:03:31having a side memory system doesn't
- 1:03:33quite achieve that. So that's where
- 1:03:35updating the weights does the job
- 1:03:36better. And the example that I was
- 1:03:39giving in robotics actually is very
- 1:03:42very pertinent there as to like no
- 1:03:44matter how much
- 1:03:46memory systems you add, the robot which
- 1:03:49has learned, I mean, the
- 1:03:50cross-embodiment generalization that you
- 1:03:52were looking at on the lecture on
- 1:03:54Monday, for example, that doesn't happen
- 1:03:56if you don't update the LM weights just
- 1:03:58by by having memory systems, right? So
- 1:04:01that's more of a skills transfer
- 1:04:03problem.
- 1:04:04>> Okay, makes sense. Yeah, thanks so much.
- 1:04:09>> Okay, there's one more question, I think
- 1:04:11from
- 1:04:12What he's saying is that in the zero in
- 1:04:15the absolute zero paper, the environment
- 1:04:17seems like the data used for
- 1:04:18post-training is in the paper for agents
- 1:04:20to self-create environments.
- 1:04:23So um
- 1:04:25I mean, if you go back to the worlds
- 1:04:27where there was narrow intelligence,
- 1:04:30right?
- 1:04:31There you could basically create
- 1:04:33simulations for games. So
- 1:04:37and those were used as environments for
- 1:04:38toy tasks.
- 1:04:40The
- 1:04:41The reason environments matter in the
- 1:04:43current generation are that they are
- 1:04:44proxies for real-world tasks. So it's
- 1:04:47not so much that there's a paper for
- 1:04:49agents to self-create environments, it's
- 1:04:51more along the lines of what is the set
- 1:04:53of tasks that you're trying to
- 1:04:54represent. Um
- 1:04:55if there is an easy way to simulate
- 1:04:57them, then
- 1:04:59whether you use agents to create that or
- 1:05:01software to create that, that's fairly
- 1:05:03straightforward, but is it a reasonable
- 1:05:05proxy of
- 1:05:06how the model will interact with the
- 1:05:09real world to get feedback.
- 1:05:10And for gaming
- 1:05:12it's
- 1:05:13kind of a finite space to explore, so
- 1:05:17it's easier to represent that in code
- 1:05:19and have simulations.
- 1:05:22>> Okay, thank you.
- 1:05:25>> Uh more questions from the class?
- 1:05:41You were saying something?
- 1:05:42>> I was saying
- 1:05:44no questions.
- 1:05:46>> Okay, we can't hear you, Jared. You have
- 1:05:48to speak up.
- 1:05:48>> I I think he said there are no further
- 1:05:50questions.
- 1:05:52>> Okay, awesome.
- 1:05:53>> Uh okay, cool.
- 1:05:55>> Okay, so let's start by let's end by
- 1:05:57thanking the class. It's been a It's
- 1:06:00been a real pleasure teaching you all
- 1:06:03and creating the content for this class
- 1:06:05so that you can learn about the latest
- 1:06:07and greatest set of techniques in the
- 1:06:09self-improving agents
- 1:06:11area. It's a evolving area, so anything
- 1:06:14that we teach now starts to be history
- 1:06:17by the next time the class rolls around,
- 1:06:20so and yet the basic techniques that
- 1:06:22you're learning um are extremely
- 1:06:25valuable over time because a lot of the
- 1:06:28new stuff still builds on top of the
- 1:06:31basic techniques.
- 1:06:33So, really grateful to have worked with
- 1:06:35you all and looking forward to what you
- 1:06:37do in your projects and in your posters.
- 1:06:40And let Azalia also thank the class.
- 1:06:43>> Yes, thank you so much for
- 1:06:46uh kind of
- 1:06:49the way we created this class is that we
- 1:06:51were also learning about a lot of things
- 1:06:54as we were creating the slides and we
- 1:06:57were preparing the course material
- 1:06:58because a lot of these topics are just
- 1:07:00like so fresh and so new and we were
- 1:07:03excited about them and we wanted you to
- 1:07:06also be aware of them. So,
- 1:07:08thanks for like kind of accompanying us
- 1:07:10in this journey journey and we're very
- 1:07:13grateful to you and we hope that you
- 1:07:16learned
- 1:07:17uh
- 1:07:18you learned some new skills, you got
- 1:07:20inspired in some new direction
- 1:07:22directions and we really hope that this
- 1:07:26is just the beginning for you to do to
- 1:07:28go ahead and do so so many more amazing
- 1:07:30work in your research projects, in your
- 1:07:32jobs, and in the future in general. So,
- 1:07:34thank you so much.
About this transcript
This page contains the full transcript of YouTube transcript (AyO6wyu4DEg) , generated from the public captions YouTube serves with the video. The transcript has 10,366 words across 1,765 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.