YouTube transcript (-Ggc37xLj_Y) — Transcript
Full transcript
- 0:05So today we're going to talk about
- 0:08inference scaling. Um we briefly hinted
- 0:10on this uh in the first lecture. So
- 0:13there are three stages for LLM kind of
- 0:16development. The first one is
- 0:18pre-training. This stage historically
- 0:21takes a lot more time. It could take
- 0:23several months. a whole lot of uh GPUs
- 0:27uh that are used for training these. Um
- 0:30and then there's a fine-tuning step.
- 0:32Usually this is a less or historically
- 0:35has been a less kind of compute intense
- 0:38process. If you're talking about
- 0:41trillions of uh data tokens in the
- 0:43pre-training side on the fine-tuning
- 0:46side, this is orders of magnitude less
- 0:48data that we use for fine-tuning. And
- 0:50then there is the inference part where
- 0:52we get to use the model and uh we are
- 0:56going to see different ways that at
- 0:58inference time we can make the model be
- 1:01better and become more useful without
- 1:03changing uh the parameters of the model
- 1:06and without any kind of uh fine-tuning
- 1:10of the models.
- 1:12So uh let's first start with the large
- 1:15language monkeys paper. Again, uh you
- 1:18are familiar with the infinite monkey
- 1:19theorem by now because we discussed it
- 1:21on uh uh Monday. But to recap, the idea
- 1:26of this paper is that we have an LLM and
- 1:29we have a problem as input. Instead of
- 1:32generating the response for this problem
- 1:35only once, we are going to repeatedly
- 1:37ask the same input problem again and
- 1:40again. Uh this could be a number of
- 1:42times, it could be 10 times, 100 times
- 1:44and so on. uh and we will see how that
- 1:46affects the performance and then we are
- 1:49going to have a verifier that can tell
- 1:50us which one of these responses were the
- 1:53correct response
- 1:55and then that is going to be the output
- 1:58of this system.
- 2:01The reason we like that is that by doing
- 2:04this repeated sampling, we can make
- 2:06models that are inferior. For example, a
- 2:09llama 38B or 7P that is um not as
- 2:14capable at GPT40 with single attempt. By
- 2:17by doing this repeated sampling and
- 2:20selecting the correct one among the
- 2:22generated
- 2:24candidates, we can um significantly
- 2:28improve the performance of these
- 2:29inferior models and make them better
- 2:31than these uh larger and proprietary
- 2:35ones. And these are here you can see
- 2:37examples across uh really hard math
- 2:40coding uh uh and different styles of
- 2:44math problem uh question answering
- 2:46problems.
- 2:49Is that is this clear to everyone? Um it
- 2:53just seems like the models and smaller
- 2:55models already know the answers to these
- 2:57hard problems and we are just like by
- 2:59doing this repeated sampling we are kind
- 3:01of eliciting those and surfacing those
- 3:05answers.
- 3:06It just they don't and they they just
- 3:08don't tell us that in the first trial.
- 3:12Um now this um
- 3:16uh kind of paradigm of repeated sampling
- 3:19works well across pretty much any domain
- 3:21that we have tried in so far including
- 3:24agentic uh benchmarks such as bbench
- 3:27which kind of mimics like how a software
- 3:30engineer goes about um editing code and
- 3:33creating new patches. Um so here we are
- 3:37seeing the coverage meaning uh the the
- 3:40the uh fraction of problems that are
- 3:43solved by at least one of the samples
- 3:46and here on the x-axis we have the
- 3:48number of samples going from one to a
- 3:50thousand and what we are seeing here is
- 3:53that a model such as deepseek um
- 3:58can u uh I I believe this was the
- 4:01deepseek v3 model can perform can
- 4:04outperform models such as claw 3.5 or 01
- 4:08uh preview um after a thousand samples
- 4:12like it can solve more coding and
- 4:13software engineering problems than those
- 4:16and the reason this is interesting is
- 4:18that we are doing um uh in this case for
- 4:22coding problems if we have unit tests
- 4:24that can that we can use to select which
- 4:28one of these samples is correct then we
- 4:30have an end toend automated way to
- 4:32create a more capable model um out of
- 4:36this in this case out of Deepseek and
- 4:38open source model.
- 4:43Um now again we saw pre-training scaling
- 4:47laws in the last class uh and that was
- 4:51we can predictably
- 4:53uh kind of reduce the test loss given
- 4:56these equations in in this paper and
- 4:58these equations might might change given
- 5:00the setup but there is a predictable
- 5:03path to increase data uh amount of
- 5:06compute used and the number of
- 5:08parameters in the model and use that uh
- 5:10to kind of uh predict or reduce the test
- 5:14loss. So this is for pre-training but it
- 5:17turns out we can define a similar
- 5:20scaling loss but this time for inference
- 5:23or test time compute. Um and that is
- 5:26something that we showed in this paper.
- 5:28Basically you're showing that the
- 5:29relationship between co coverage and the
- 5:33number of samples that are being drawn
- 5:35in parallel from the model follow an
- 5:38exponential power law. So assume this C
- 5:40is coverage meaning how many problems
- 5:43are solved by at least one of the
- 5:45samples and then K is the number of
- 5:48samples and A and B are these kind of
- 5:50coefficient that we can find through
- 5:53this uh the carefidding parameters that
- 5:55we can find through this scaling uh kind
- 5:58of u uh scaling behavior of the model.
- 6:03So concretely um as we scaled the number
- 6:07of samples across a range of models from
- 6:10llama 3 8b 7eb and models like gemma or
- 6:15pithia uh and this is for various range
- 6:18of parameter sizes going from 70 million
- 6:21parameter parameters all the way to 70
- 6:24billion parameters. We can see that we
- 6:26can u predict this power law and have a
- 6:29have a have a predicted curve that um
- 6:34closely for for the most part very
- 6:36closely follows the actual u practical
- 6:40kind of coverage that we are seeing as
- 6:42we increase the number of samples. So
- 6:44basically the way to think about it is
- 6:46that we can we can predict how many
- 6:49sample to achieve a certain coverage how
- 6:53many samples we're going to need to and
- 6:56and how much we should how much
- 6:58resources we should allocate to achieve
- 6:59that.
- 7:06Um and again the these curves show that
- 7:09this behavior is true for a range of
- 7:13models and a range of parameter sizes.
- 7:15Again I think one of the very
- 7:18interesting properties that we saw here
- 7:19is that for a very small model like a 70
- 7:22million parameter we also see this
- 7:25scaling behavior and of course this is
- 7:27true for much larger models as well and
- 7:30it is true across domains.
- 7:33Now, uh we uh we looked a bit more into
- 7:38why we see this um kind of paral law
- 7:41behavior in in in repeated sample
- 7:44sampling. um because it's it might be at
- 7:48first a little non-intuitive because if
- 7:51the probability of um
- 7:56the pass atmon being correct the
- 7:58probability of a correct response to a
- 8:01to a question is for example P then we
- 8:05can calculate the probability of um at
- 8:09least one of the answers being correct
- 8:11at K for an individual problems. So for
- 8:15problem I, if we have the pass at one
- 8:18for problem I, we can calculate directly
- 8:22what is pass at K for problem I with
- 8:25this um exponential equation. I hope
- 8:29this is clear for everybody. But
- 8:30basically this 1 minus P is the
- 8:33probability of the first like K answers
- 8:35not being correct and then one minus
- 8:38that is the probability of at least one
- 8:40of these K answers being correct. So
- 8:42this is for an individual problem.
- 8:45But what we are seeing that across a
- 8:47suite of problems we are seeing the
- 8:50expon the power law uh scaling law
- 8:53meaning across um AC across these
- 8:58problems we are seeing the the the
- 9:01equations are changing. So the question
- 9:03that we wanted to answer is that how
- 9:05does this what kind of behavior should
- 9:08we see across uh the problem examples in
- 9:11a data set that justifies our
- 9:14exponential um uh sorry our power loss
- 9:18scaling loss. Um and by looking into
- 9:21that further um uh what uh what was
- 9:26observed is that in order to have the
- 9:29scaling laws that we observed there has
- 9:31to be the sufficient and necessary
- 9:33condition for it is that we have a long
- 9:37tail of hard problems.
- 9:40Um
- 9:42basically from a ma mathematical
- 9:44perspective we are going to need that
- 9:46because this is the the power law
- 9:48scaling. This is the per problem uh
- 9:51exponential scaling laws and this is
- 9:54like this kind of these sort we need to
- 9:56have these sort of cur curve for the
- 9:58pass at one of problems in order to
- 10:01justify this um uh power loss scaling.
- 10:05And empirically when we looked into the
- 10:09problems we saw that this condition
- 10:11holds. And again what this condition is
- 10:14is that we have a long tail uh of really
- 10:19hard hard problems on the most on the
- 10:21most complex side of things. For
- 10:23example, um let's take a look at this
- 10:26model and and the count of uh the count
- 10:30of problems that are solved at passad
- 10:32one and uh at more and more samples. It
- 10:36seems like across all these problems, a
- 10:39large portion of problems are simpler
- 10:41and they're solved in pass one. And as
- 10:43we increase the complexity of the
- 10:45problems uh where the pass one
- 10:48probability is going to become lower and
- 10:50lower we have like a long pair of
- 10:52problems that kind of have that
- 10:54property.
- 10:56So these kind of curve that you see here
- 10:58from high at simpler problems and low at
- 11:02harder and harder problems meaning lower
- 11:04and lower pass at one is the type of
- 11:06problems is the type of behavior that we
- 11:09are seeing across these uh task and that
- 11:12is why uh we can see the the scaling
- 11:15loss that we that that we have that we
- 11:17have observed.
- 11:20Now
- 11:22um
- 11:24what this means for
- 11:27the the science and the engineering
- 11:30around LLMs is that while previously
- 11:34companies would would spend hundreds of
- 11:36millions of dollars or billion of dollar
- 11:39uh billions of dollar on pre-training
- 11:41alone and then a lot less on fine-tuning
- 11:44and then almost like nothing at each
- 11:47inference call because it used to be
- 11:49like a on time back and forth between
- 11:51the user and query and the model. Now we
- 11:54have a new paradigm where we can spend a
- 11:57whole lot more compute on inference and
- 12:00use that to increase the capability of
- 12:02model and this compute the inference
- 12:04compute can be done offline. We can kind
- 12:07of uh release our agents to go solve a
- 12:10problem and just keep generating tokens
- 12:12and keep uh improving the the the
- 12:15quality of the answers that they
- 12:17generate.
- 12:19Um now when we talk about this repeated
- 12:23sampling something that that's important
- 12:26to
- 12:28kind of have in mind is the need for
- 12:30automated verification because if you
- 12:33have a bunch of samples we still need to
- 12:35know which one of them are the correct
- 12:38ones and how to go about selecting them.
- 12:41um
- 12:43in certain domains uh verification is
- 12:46easier than the others. For example, for
- 12:49certain types of math problems, you can
- 12:53use formal formal proofs. So given a a
- 12:57proof u strategy, we can run them by
- 13:00these formal proof kind of software
- 13:02tools to verify whether each step is
- 13:05correct or not. Um we can write unit
- 13:08tests for coding and um in some cases
- 13:12writing a unit test arguably arguably is
- 13:15a much simpler task than writing the
- 13:17entire program that solves a problem.
- 13:20Right? So the unit test can be written
- 13:22for example by humans um and um we can
- 13:26use that as our verifier.
- 13:29Um there are other cases like AI as a
- 13:32compiler and this is one of the projects
- 13:34in the lab. um that and a direction that
- 13:37I'm very excited about and that is when
- 13:40we can generate compiler like lower
- 13:42level code like CUDA for a source code
- 13:45like P pietorch with LLM and the reason
- 13:48this is verifiable is that um for
- 13:52example here we can always
- 13:55um compare the output of CUDA with the
- 13:59source PyTorch and see if they're the
- 14:02same for for any given input. Right? So
- 14:05we don't need if we want to say whether
- 14:06the model has generate has generated the
- 14:09correct CUDA code for our source PyTorch
- 14:12code we can just see um whether their
- 14:16outputs match for any for any inputs.
- 14:20Um
- 14:22for those of you who are not familiar
- 14:23for CUDA, I hope you you all are, but
- 14:25it's like a lower level language for
- 14:28writing uh more hardware aware and
- 14:31optimized for hardware code uh for on on
- 14:35GPUs.
- 14:37Um for example, here um we we have a
- 14:42data set or a benchmark on CUDA
- 14:45generation called kernel bench. And here
- 14:47again we are seeing the same s sort of
- 14:50uh linear improving coverage uh in this
- 14:54case for CUDA code generation as we
- 14:56increase the number of samples that we
- 14:58take from the model. And in this case we
- 15:01have this again by by default perfect
- 15:04verifier that we can use for um
- 15:07measuring the correctness of our CUDA
- 15:10generated code.
- 15:13And and there are other examples of this
- 15:15um other any basically any kind of
- 15:19translation between two languages. If
- 15:22you want to like port from Python or C++
- 15:25to Java or vice versa. This is again
- 15:28this is true. You can measure the the
- 15:30equivalency
- 15:32uh much easier. Um now there are domains
- 15:35that we don't have verifier for and in
- 15:39those domains what we observe was that
- 15:41there is a large gap between best of end
- 15:44methods uh such as majority v voting um
- 15:49and uh and model based rankers and what
- 15:52is the true coverage of the model. Let's
- 15:55take a look at one example here. Um so
- 15:59here we compared a few different
- 16:00methods. We are going to learn about
- 16:02reward models or verifiers on Monday
- 16:05more but let's take a look at these
- 16:07examples. So we have a number of samples
- 16:10and then we are measuring the success
- 16:12rate here like basically what would be
- 16:15the output of this system. Um majority
- 16:18voting or the green one is we we just
- 16:21see which answer among the generated
- 16:23answers has um appeared the most. So
- 16:27based on that we just select that answer
- 16:30or that response as the output of our
- 16:32system. Does that make sense? It's just
- 16:35majority voting. And uh the blue line
- 16:38here is coverage. This is assuming we
- 16:40had a perfect selector or verifier in
- 16:43this case. And as you can see here,
- 16:45there is a large difference between
- 16:47majority voting which plateau plateaus
- 16:50after 10 or 50 samples and what we could
- 16:54possibly get if we had a perfect
- 16:56verifier. So this is a very very large
- 16:59gap. Um especially and this gap is even
- 17:04more pronounced if you have harder
- 17:06problems. So for example the math
- 17:08capital math here data set is a harder
- 17:10more complex data set than GSM8K
- 17:13and we here we we compared other methods
- 17:16like using a reward model and com add
- 17:19and um that uh generates that measures
- 17:24gives a reward per answer and we take
- 17:27the best of best of those or ways to
- 17:30combine these two we'll learn more about
- 17:32these reward models basically they're
- 17:35LLM based
- 17:36kind of LLMs that are trained to to kind
- 17:40of um score their the response quality
- 17:44and even with those there is a large cap
- 17:46gap. Uh and this is what we call the
- 17:50generation verification gap. So the
- 17:53generation it turns out we can generate
- 17:55a lot of good responses but the
- 17:58verification is this basically this gap
- 18:01is tells us how much we can actually
- 18:03capture those responses or those uh
- 18:05correct answers.
- 18:08Um, the reason methods such as majority
- 18:11voting doesn't work is that as we look
- 18:14into the quality of answers, it turns
- 18:18out that for some problems that are
- 18:21hardest to solve, sometimes we see that
- 18:24they were solved maybe even once or two
- 18:27times or three times across the thousand
- 18:31or 10,000 samples that we take from the
- 18:33model. So these correct problems um uh
- 18:38are actually very rarely solved by the
- 18:41model with the samples that we are
- 18:43taking from it. So it makes sense that a
- 18:45majority voting mechanism cannot capture
- 18:48those because they're rare. But for many
- 18:52of the problems in this case especially
- 18:54for the GSM8K which is simpler because
- 18:57uh the the answers or responses are more
- 19:00are simpler to generate majority voting
- 19:02works for many of the problems. But even
- 19:05even in this case for some of the
- 19:07hardest problems the frequency of
- 19:10correct answer is actually pretty low.
- 19:14So that makes it harder from a
- 19:15verification perspective. How do you how
- 19:17do you find them? How do you find out
- 19:19which ones are correct?
- 19:22Um, now I want you to here are some
- 19:25questions that some discuss discussion
- 19:28questions that I want to put it here for
- 19:31like something like 2 minutes or so and
- 19:33I want you to think about it and
- 19:36hopefully we'll have some volunteers
- 19:38uh or our I um and volunteer some of you
- 19:43to answer some of them. So, two minutes
- 19:46for this.
- 19:48Maybe we talk after.
- 19:54>> Okay, let's get back.
- 19:57Who wants to answer question one?
- 20:01This I I I I'm very interested in how
- 20:03you would build on this if you were if
- 20:06you were to do some research here or or
- 20:09what what you what uh database you you
- 20:12got from these papers.
- 20:17anyone?
- 20:21>> Yes. Like one takeaway is that uh
- 20:25sampling many uh answers and can shoot
- 20:31like if you have a good verifier it
- 20:33really helps with your
- 20:36and the second take away is that the the
- 20:39quality of the verifier is very
- 20:41important of doing this approach.
- 20:44>> That's right.
- 20:49>> Anything else?
- 20:51Yes.
- 20:58>> Examples for example [clears throat]
- 21:01like the model generally the solutions
- 21:04and the model or each of the solution
- 21:08that I need to generate a new solution
- 21:12even if you're not sure the solution is
- 21:16>> are you talking about revising a
- 21:17solution
- 21:19>> uh yeah
- 21:20>> by next
- 21:21Yeah.
- 21:21>> Okay. We're going to hear about it in a
- 21:24minute.
- 21:25>> Sounds good. Yes.
- 21:27>> I'm looking at it in two directions. One
- 21:29is the science for safe and accuracy.
- 21:32And for that um I will look at a hybrid
- 21:35approach where I will develop a
- 21:37knowledge graph along with a advanced RA
- 21:41documentation method and then returns to
- 21:44the RA method when I do the inance time
- 21:47score is lesser on the accuracy and more
- 21:50or less rely on the knowledge to give
- 21:53you more accurate answers. That way you
- 21:55can increase the speed of the answer
- 21:59while also maintaining accuracy. So you
- 22:01were suggesting we use rack to to uh
- 22:04boost
- 22:06>> or compare we go with the knowledge
- 22:10first and then only when um we feel that
- 22:13the accuracies that are coming have to
- 22:14come up we go through because rag also
- 22:17learns the uh time and there is um
- 22:21>> yeah so you're asking rag can help with
- 22:23the efficiency in the time find time
- 22:25domain
- 22:25>> we're trying to reduce the dependency on
- 22:29to increase the accuracy
- 22:33Okay, one more. Maybe you were waiting.
- 22:36>> Um, yeah. So, I think something that I
- 22:38thought about also is just um a even if
- 22:42it's
- 22:44easy to medium level of difficulty
- 22:46respect or verification or like
- 22:48verifiable domains. Um
- 22:51this it it would be cool to see sort of
- 22:54how uh past K changes with respect to K
- 22:57when we kind of employ sort of initial
- 22:59search techniques like almost like a
- 23:01self-study approach. if there's some way
- 23:03to maybe consolidate like let's let the
- 23:05model explore this domain gather
- 23:08insights as if you know you're not
- 23:09asking it to sample any solutions yet
- 23:12and maybe that can get you know related
- 23:14to some output context and we can then
- 23:16follow into parallel sampling and we
- 23:17might see maybe better trends um with
- 23:19respect to
- 23:20>> absolutely
- 23:21>> and we're going to learn about some of
- 23:22the ways to improve test time scaling
- 23:25beyond just repeated sampling
- 23:27>> um including self-study search and tool
- 23:29use um maybe one more.
- 23:34>> Yes.
- 23:35>> Um well, one interesting might be like
- 23:39verifiers. Um I think like without a
- 23:43good verifier, then the best you can do
- 23:45is exactly as what you showed in the
- 23:47previous slide usually doesn't work very
- 23:48well for hard problems. But maybe there
- 23:50are some hard problems where like it's
- 23:53hard to identify if an answer is correct
- 23:55because it's too expensive or doesn't
- 23:58it's just too hard.
- 24:00But it's easy to find like an answer is
- 24:02wrong, right? So you can like project um
- 24:05like bad answers. Maybe that would be
- 24:06more obvious in terms of thinking and
- 24:08then you can just keep like
- 24:12an evolutionary pattern. So I guess one
- 24:14interesting direction would be like
- 24:16trying to look at different domains
- 24:17where like
- 24:20right and also maybe verification is not
- 24:22fully accurate. Maybe it's a bit lost
- 24:24like they verify it's it own model
- 24:26because of the simulation. It's like a
- 24:29physics or like a dynamic simulation,
- 24:31robotics, something how you would.
- 24:34>> Yeah, basically there are other ways to
- 24:36filter out the incorrect answers. Maybe
- 24:39use a simulation or some
- 24:44other tool use or another model to do
- 24:47that depending on the domain. So the all
- 24:50of the data set here the 10,000
- 24:52different samples per problem is
- 24:55available on on on hugging face if
- 24:57anybody is interested to go around how
- 24:59to kind of improve like shrink that
- 25:02generation verification gap. Um that
- 25:05could be a potentially a good research
- 25:07project for the for the course. Um yes
- 25:11last question. Yeah. Could one try to
- 25:14generate multiple verifiers like maybe
- 25:17generate 10,000 verifiers and then do a
- 25:19majority deing like what the result
- 25:23verifiers?
- 25:24>> Yes,
- 25:26that's also a very interesting research
- 25:27question. So on Monday we're going to
- 25:29learn about this we work that we've done
- 25:33on ensembling but like a week supervised
- 25:36ensembling of verifiers. We don't have a
- 25:37thousand of them, but we can have 10 or
- 25:4020 of them. But that direction is
- 25:42definitely also interesting. It's very
- 25:44costly though from a compute
- 25:46perspective. Um maybe we should move on
- 25:48to the any any other like about the the
- 25:51other two questions. Anything? Um I
- 25:54think we discussed some of it in our
- 25:56discussion but anything that you want to
- 25:58share last minute? Yes.
- 26:01to what extent was it investigated
- 26:03whether the coverage number could be
- 26:06[clears throat] like engineering task
- 26:07for example like it could be test cases
- 26:09but it's actually not
- 26:11>> yeah for like for example for the math
- 26:13problems we manually looked into the to
- 26:16the answered questions and it was
- 26:18something above like a 90 like 7 8% by
- 26:23manually checking that but that's also
- 26:25always a a a case for a failure mode if
- 26:29your unit tests don't have true coverage
- 26:31of the code.
- 26:33>> So the quality of the verifier matters.
- 26:37>> Yes.
- 26:37>> Yeah. Maybe it's more
- 26:41generating it like trees. So but you're
- 26:44verifying each note.
- 26:45>> Yeah. Let's talk about that and what's
- 26:48coming next and how we can make
- 26:52uh different ways of uh test time
- 26:54scaling. So with the monkeys framework
- 26:57we we we see we saw that repeated
- 27:00sampling is effective but there are
- 27:01other ways to uh scale sampling and
- 27:04let's take a look at this paper uh
- 27:06scaling LLM test time compute optimally
- 27:10can be more effective than uh scaling
- 27:12model parameters. We're going to touch
- 27:13on certain as aspects of it that is most
- 27:16relevant to test time scaling. So there
- 27:19are two way like parallel sampling is
- 27:21one way for us to generate multiple
- 27:24answers per input question.
- 27:27But there is another way to generate or
- 27:30generate answers or use test time
- 27:32scaling to improve the quality and that
- 27:35is when we do sequential revisions. For
- 27:38example, we the model comes up with one
- 27:41initial steps of the problem or one
- 27:43initial approach for solving the problem
- 27:46and it keeps revising that or it keeps
- 27:50like improving and adding to that and
- 27:52that is the sequential approach. So
- 27:54instead of asking the model multiple
- 27:56times, we let the model know that it can
- 27:59keep revising its answers, look into
- 28:02that from a different angles and um and
- 28:05continue doing so until it's confident
- 28:08that it's ready to generate an answer
- 28:10and then finally output that. Yes.
- 28:12>> So is this by our own printing or is the
- 28:15model system?
- 28:17>> Um in this case, let's let's assume by
- 28:19our own prompting prompting. But when
- 28:21you look at the reasoning models, they
- 28:23are now trained like internally we have
- 28:25we see this kind of behavior in them. So
- 28:28they do this um uh revisions uh
- 28:32sometimes in their own answers. Um now
- 28:36there is another way to scale test time
- 28:39compute and that is how much how we
- 28:42select the answers. So for the parallel
- 28:45sampling, we we looked into the outcome
- 28:48like there are n different responses. We
- 28:50look into the outcome and see if they're
- 28:52correct or not. We mentioned unit test
- 28:55and so on. But there's also this other
- 28:57way of learning base or outcome reward
- 29:00models where they where they look into
- 29:02the outcome and and say whether they're
- 29:04correct or not. Of course, their
- 29:07accuracy or quality can be limited,
- 29:09especially if we uh go to new domains,
- 29:12but outcomebased reward model is another
- 29:15way that they look into the final answer
- 29:17and they generate a score. Basically,
- 29:19these models are trained to um to give a
- 29:22reward based on an output. Then there is
- 29:25also the process reward models. So in
- 29:29the difference between process and
- 29:30outcome is that process reward models
- 29:33are designed to give a score per step of
- 29:37the generated solution. For example, we
- 29:39have a math problems. There are like
- 29:41five steps that the model takes before
- 29:44generating a solution.
- 29:46outcome reward mo sorry process reward
- 29:48models again we learn about this more on
- 29:50Monday I believe um are trained to give
- 29:54a score for the steps of the generation
- 29:58so that's the difference between the two
- 30:02uh now for best of end sampling with a
- 30:04verifier again the problem is easy we
- 30:06generate parallel samples and then we
- 30:09can use an outcomebased reward model um
- 30:12to to see which one has the highest
- 30:14score and then take that as um as our
- 30:18answer.
- 30:20Then there are um other ways that we can
- 30:24bring these reward models into the
- 30:27processing into the into our test time
- 30:29scaling framework. For example, here
- 30:32let's assume at each level of this
- 30:35answering this question, we can take
- 30:37four s we have a budget of four samples.
- 30:39uh we take these four samples and then
- 30:42here use a process reward model or PRM
- 30:45to to kind of like in this case we
- 30:49select the top two uh with the highest
- 30:51score from our PRM. Then again we sample
- 30:54from them uh and and and and we continue
- 31:00and we can have a threshold on what how
- 31:03the to for selecting the top kind of um
- 31:07two two kind responses in this case and
- 31:10expanding the tree from there. So here
- 31:12we are doing a beam search approach to
- 31:16that uses the process reward model to
- 31:18guide how we are sampling our model. Is
- 31:21that clear?
- 31:24Yes.
- 31:24>> How do you choose the option
- 31:27>> based on the PRM score? So the process
- 31:29reward model is trained to generate a
- 31:33score imagine between zero and one based
- 31:36on the a step given given the question
- 31:39and or or just a step alone
- 31:44>> is the PR function from the language
- 31:46model. Yes, PRMs are generally also fine
- 31:50from a language model. As you can
- 31:52imagine, they would work better for in
- 31:54domain kind of types of task. So, if you
- 31:57have a certain task that you want to uh
- 32:00a certain benchmark that you want to
- 32:02optimize for, of course, training a PRM
- 32:04on a like a subset of that task helps
- 32:07you with test time scaling on that task
- 32:09better than across new task. uh but
- 32:12because they're language model based
- 32:14they they do exhibit some generalization
- 32:16across task as well.
- 32:20>> Yes.
- 32:21>> For the process reward uh is this a
- 32:24reward that's being computed in
- 32:26practice? I don't know what the research
- 32:28is like per token that is being done or
- 32:32maybe like blocks of tokens and then
- 32:34it's being computed.
- 32:34>> Yeah, it's not per token. is per like
- 32:37step like imagine and this is something
- 32:40we're going to learn about in future
- 32:41lectures. Imagine these are like a math
- 32:44problem and then there are steps to
- 32:46answer that like in one way to do it is
- 32:49to have humans annotate the quality of
- 32:51each step like yes or no this is good or
- 32:53bad and then training the model based on
- 32:56each step which could be like you can
- 32:58assume it's like one kind of
- 33:01intellectually meaningful chunk of the
- 33:04result or it could be you can define it
- 33:06as a sentence and so on.
- 33:14And of course um as it's intuitive as
- 33:18it's very intuitive if you combine the
- 33:20two of outcomebased reward model and
- 33:23parallel best of end and sequential
- 33:25revisions you get better results. this
- 33:27field is still there's a lot of unknown
- 33:30kind of uh questions around this and but
- 33:35combining the two for example one simple
- 33:37way to kind combine that is um instead
- 33:40of one parallel one sample and revisions
- 33:42you do two and and you use your um and
- 33:47you get to two final answers and then
- 33:49you use um
- 33:52the best one either using your PRM or OM
- 33:55to select how the two the two are, but
- 33:58you're augmenting each parallel sample
- 34:00with these sequential revisions and you
- 34:02can use a PRM to guide that search for
- 34:04each parallel for each sequential
- 34:06revision. Um, something that's
- 34:09interesting is that the PRM
- 34:12there are many off-the-shelf PRMs that
- 34:14you can use for your task. So you can go
- 34:17and say take a pre-trained PRM and use
- 34:19that to guide the search for your own
- 34:21task and you can potentially find a PRM
- 34:24that is most kind of relevant to the
- 34:27type of task that you're doing and you
- 34:28want to do test time scaling on or you
- 34:31can train your own PRM and and OM based
- 34:34on your own data as well.
- 34:39Um so this paper looked into the math
- 34:43data set and uh something like 12k train
- 34:46set 500 test questions um used a palm
- 34:50model. And what was interesting here is
- 34:53that they defined a notion of difficulty
- 34:56uh for compute opt uh for for measuring
- 35:00these different scaling behaviors and
- 35:02for that they looked into the pass at
- 35:04one performance of the model on each
- 35:06problem.
- 35:08Um and and by just measuring that they
- 35:11define okay these are the problems that
- 35:12are hard. These are the problems based
- 35:15on like how many of the generated
- 35:17answers are correct across a body of a
- 35:19number of samples. They had like
- 35:21different like five different bins for
- 35:24the complexity of the problem and they
- 35:26did that as we see to kind of get some
- 35:28conclusion about what test time scaling
- 35:31works better for harder or easier task.
- 35:36um they also train their own process
- 35:38reward model and even they fine-tune a
- 35:41model for creating these revisions. But
- 35:44right now the models every model that we
- 35:46use pretty much it's capable it's just
- 35:48as long as it's instruction tuned is
- 35:50capable of doing revisions if you prompt
- 35:53the model to do so ask the model to do
- 35:56so. Um and there are some interesting
- 35:59observations here. Uh for example, here
- 36:02is the majority voting for these
- 36:04problems. The accuracy as the generation
- 36:07budget increases. And then this is the
- 36:10the the purple one is the OM one. Um and
- 36:14the green one is the
- 36:18um PRM one and then the blue one if you
- 36:21really try to optimize different ways of
- 36:24mixing and matching things. Um and this
- 36:28is this area is the one that still is
- 36:30unopen research like how do we do that?
- 36:33How do we go about mixing and matching
- 36:35revisions and uh parallel scaling uh to
- 36:39optimize the test time scaling because
- 36:41at the end of the day we want for each
- 36:44uh accuracy we want the minimum
- 36:46generation budget to hit that accuracy.
- 36:49Um and in in a few slides ahead we talk
- 36:52about one method to optimize this um
- 36:55scaling and budget um performance per
- 36:58budget. Um they also looked into these
- 37:01different bins of difficulty. So number
- 37:03five is the most difficult questions
- 37:06because the accuracy is the lowest and
- 37:08number one and then here on the right
- 37:10there the these colors is the sequential
- 37:14to parallel ratio. And while they were
- 37:17saying that okay in the easier for the
- 37:19easier problems it seems like this
- 37:22darkest kind of the darkest purple color
- 37:26achieves highest accuracy and that's
- 37:28where we have a lot more sequential kind
- 37:32of tokens compared to parallel when the
- 37:35problems are more difficult and to some
- 37:37extent those are some of the more
- 37:38interesting problems. This optimality is
- 37:41kind of harder to say. It's harder to
- 37:43say whether it's sequential or uh the
- 37:45the ratio changes even from bucket four
- 37:49to bucket five on how you how you should
- 37:52allocate that.
- 37:56Um another uh observation from this
- 37:59paper was that um and this is a still
- 38:03work in progress and I believe still the
- 38:06true the true observation as of today is
- 38:08that for easy and medium questions it
- 38:12seems like additional test time compute
- 38:15can be more favorable than scaling
- 38:18pre-training of the model.
- 38:21So here we have these two like the easy
- 38:24are the green medium is blue and orange
- 38:29uh is the hard questions. It seems like
- 38:31if we look into the ratio of inference
- 38:34tokens to pre-training tokens uh it's
- 38:37positive uh uh here but as we get to uh
- 38:44it's positive for the uh easy and medium
- 38:46problem but for the hardest problem it
- 38:49seems like larger models like a more
- 38:52pre-training or larger models still do
- 38:54better if you are from a from a tokens
- 38:59optimized perspective.
- 39:00And this is something that we we we have
- 39:03seen in many of our research in the lab
- 39:06and or around the lab as well. Um it
- 39:09seems like like models simpler like open
- 39:13source models or smaller models are
- 39:15becoming more and more useful as we take
- 39:18more test time compute apply more test
- 39:20time compute on them. But still for the
- 39:23very very hard problem still the
- 39:25frontier models which presumably use
- 39:27more pre-training and they're larger
- 39:30they do better uh even if we had a whole
- 39:34lot like infinite budget for test time
- 39:36scaling. Of course we don't have
- 39:37infinite budget but any reasonably large
- 39:40test time scale. Yes. Um, in this case,
- 39:43how are you?
- 39:46Does it seem like for inverse use it
- 39:48once like pressure tokens, it's like use
- 39:53it once and you can use it.
- 39:54>> Yes, that that is that is true. But in
- 39:57general from a but this is a still so
- 40:00basically yes in pre-training is done
- 40:03once but scaling is every time right
- 40:07every time we run the model but but
- 40:09still um
- 40:15so so so but still this is an
- 40:18interesting observation from the
- 40:20perspective of are we done doing
- 40:23pre-training because we can just keep
- 40:26sampling from the models we have or no
- 40:29pre-training is still helpful and we
- 40:32should do more and more right um not
- 40:35everyone can pre-train a large model
- 40:38right so even if pre-training was an
- 40:40option for u achieving was better than
- 40:44test time scaling in any scale not
- 40:46everyone can do that because it's a very
- 40:48expensive process so this is very
- 40:50interesting that for many problems we
- 40:53can do test time scaling even if it's we
- 40:55do every time for a new problem because
- 40:58that's feasible. But also on the other
- 41:00hand, for the hardest problems, we still
- 41:03need to do pre-training and better
- 41:04models still do better,
- 41:06>> right? Um that makes sense. I was just
- 41:08curious like precisely like in the
- 41:10middle graph when it says like the ratio
- 41:12is one of the difference to that or like
- 41:17what
- 41:19there's also one is used for a single
- 41:22task.
- 41:23>> No, no, it's not it's not exactly that.
- 41:25It's more like some some ratio of
- 41:27pre-training to inference compute. It's
- 41:29not a one to one because it doesn't make
- 41:31sense in that case, right?
- 41:34>> For the hard questions part, why is it
- 41:36that larger models still better?
- 41:39So, can can you take a smaller model and
- 41:41yet make it an expert on hard questions?
- 41:45Yeah, you can always like fine-tune a
- 41:47model
- 41:48to become better on a certain set of
- 41:52questions, but we are talking about a
- 41:54more general perspective of like let's
- 41:57have a whole lot of data that's like
- 41:59general, not specific to a specific task
- 42:03and just like compare like the the
- 42:07common recipes that you use for training
- 42:09models. Let's just follow that and then
- 42:12see how much they do better at test
- 42:14time. Um
- 42:22any other questions?
- 42:25Okay. Um so here are maybe we discussed
- 42:28some of these already but here are some
- 42:32more questions that I give you another
- 42:34two minutes. Let me check the time. And
- 42:36yes, we do have time um to think about
- 42:41this. I think this helps you kind of
- 42:42like uh absorb some of the the topics
- 42:45that we that we learned uh or uh heard
- 42:49about in the previous slides and then we
- 42:51discuss them in 2 minutes.
- 42:56Okay. Should we should we start? Anyone
- 42:59wants to add any comments here or any
- 43:03questions you might have?
- 43:06Yes.
- 43:06>> Um, so do you try sequential and you try
- 43:10curl? What about tree search? And in
- 43:13that case, like you're kind of doing
- 43:16>> you're mixing the both.
- 43:17>> Yeah. You're kind of mixing, right?
- 43:19>> Yeah. There's no universal answer that
- 43:21can be there. But the general sentiment
- 43:23was that that does better like some sort
- 43:26of combining the two
- 43:28>> than doing like you do some kind of like
- 43:30cleaning and like reduce a lot of the
- 43:32confuse that you're doing, right? or
- 43:34like reuse control that you're doing
- 43:36because it's a tree like yes
- 43:39[clears throat]
- 43:39>> that is when we discuss the beam search
- 43:41stuff and the PRM like bringing a PRM to
- 43:45kind of cut the uh tree at it at each
- 43:49level and explore only the more uh
- 43:52promising branches.
- 43:57>> Anything else? Yes,
- 43:59>> we have discussion with it for example
- 44:02point for you was thinking that
- 44:05bigger problem the more paths you have
- 44:07towards the success of solving it
- 44:09therefore you require it could be more
- 44:11sequential while with harder problems
- 44:14you would there's few paths to solving
- 44:16that you would need many paralle to find
- 44:19at least one viable solution and we
- 44:22started thinking a bit also why could
- 44:24you do this in a chain of thoughts kind
- 44:26of way where you are doing your chain
- 44:28fault but verifying throughout the steps
- 44:30in the uniforms is that pruning and
- 44:33these branches that are violating
- 44:35anything.
- 44:37>> Yeah. So in terms of sequential you're
- 44:40saying that for easier ones easier
- 44:43problems the for harder problems you
- 44:45mean you need more exploration
- 44:47potentially for easier
- 44:49>> to the correct answer. Well, for easier
- 44:52problems
- 44:54um because like any kind of path might
- 44:58lead us to the correct answer. We might
- 45:00not need to explore different parallel
- 45:02solutions. Yeah, that is an intuitive
- 45:05kind of way of thinking about this.
- 45:10Any other thoughts?
- 45:18Um in general this is a very interesting
- 45:21appro kind of problem to think about how
- 45:24do you how do let's assume that this
- 45:26tokens that you generate is like a knob
- 45:28that you have to increase problem the
- 45:30quality of the responses how do you
- 45:32allocate this knob and how do you elicit
- 45:35these uh generations from the model so
- 45:38let's think about like in the following
- 45:40I'm going to talk about one way to do to
- 45:42optimize these kind of test time scale
- 45:45scaling to generate optimized answers
- 45:47and that is the archon paper um an
- 45:50architecture research framework for
- 45:52inference time scaling um uh so the
- 45:55problem state and your TA is uh one of
- 45:58the co-authors of this work so the
- 46:01problem in this paper is that again we
- 46:03are interesting interested to see um how
- 46:06we can mix and match different inference
- 46:08time scaling methods to build a kind of
- 46:10optimize the frontier of uh capability
- 46:14or correctness versus cost. Um
- 46:18and and and the the other thing that um
- 46:23again all of these questions basically
- 46:25saying the same thing that how how we
- 46:27can optimize assigning in press compute
- 46:30two different task um and basically
- 46:33design mechanisms that gets us to the
- 46:36high quality answers while not wasting
- 46:38too many tokens and generations.
- 46:43So here is the RQ like in this case we
- 46:47thought of inference scaling in this uh
- 46:49project as like an inference
- 46:52architecture design problem. Um so here
- 46:57is how this uh the frame archive
- 46:59framework works on the input side we had
- 47:02a set of target benchmarks that we
- 47:04wanted to get good good results on these
- 47:06benchmarks. So these are the benchmarks
- 47:07we are optimizing for. There's an
- 47:09inference called budget and then there's
- 47:12also a set of available LLMs because we
- 47:15can always mix and match different
- 47:17models also to get to and to a correct
- 47:20answer for a input question. And then we
- 47:23have a set of inference time techniques
- 47:25which I'm going to describe in the in
- 47:27the following slides. And then we have
- 47:30we designed this optimizer
- 47:33uh it's called itas. It's inference time
- 47:36architecture search that basically tells
- 47:39us how to put together these different
- 47:42models and different inference time
- 47:44techniques together whether it's
- 47:46parallel sampling sequential and all
- 47:48that in order to uh get high quality
- 47:52results given the budget the inference
- 47:54call budget that we have. how to
- 47:56optimize the quality of results based on
- 47:59that and then the output is this
- 48:01architecture that mixes and matches
- 48:03these different techniques and models
- 48:05together.
- 48:07Um so let's take a look at different
- 48:10inference time operations. So first we
- 48:14have the gen we called it the generation
- 48:16but this is basically um
- 48:19the
- 48:21the just sampling from the model and
- 48:24this can be part of the repeated
- 48:27sampling approach right so if we
- 48:29generate n we use n generations at a
- 48:33time that means we have generated n
- 48:35different responses to our input
- 48:37question so that's one one type of
- 48:39inference time scaling another one is
- 48:42fusion which is surprisingly a very
- 48:45effective method. So fusion is let's say
- 48:48we have k um k different responses
- 48:53and we want to generate one output
- 48:55response out of these k um fusion takes
- 48:59an llm and asks an llm the same exact
- 49:05question that I just said basically it
- 49:07says here's the input question here are
- 49:10k different responses to this input
- 49:12question given all of this generate or
- 49:15synthes ize one output response for the
- 49:20input question. Basically, we are
- 49:22showing all of the K generations to the
- 49:25model such that the the LLM can generate
- 49:28an output answer while being aware of
- 49:31all the possible ways that uh this
- 49:34question is answered.
- 49:37Um and this is kind of it goes under the
- 49:41C category of sequential update, right?
- 49:44we have this parallel samples but then
- 49:46we are kind of fusing them into one
- 49:48answer. Then there is the um um critic
- 49:53which
- 49:55basically for any given response we can
- 49:58ask a model to um
- 50:01generate or describe the weaknesses or
- 50:04strengths of these response and that
- 50:07could be one kind of inference scaling
- 50:09action. Um and then we have the ranker.
- 50:14This is again these are all prompting
- 50:16based optimization for the model. We
- 50:17don't have we haven't trained the model
- 50:19to do this specific test time scaling
- 50:22task. We just ask the model in the
- 50:24instruction prompt that um can you rank
- 50:28these generated responses from the
- 50:30previous step um based on the their
- 50:33quality.
- 50:35Um
- 50:38and then the vifiers generates the
- 50:40returns the response with while also
- 50:43talking about the reasoning of how why
- 50:45it came came to this um kind of way to
- 50:49score a certain answer. Um I'll get to
- 50:53the next two uh unit test generation and
- 50:56evaluation in a bit but just to show you
- 50:58how effective these different uh
- 51:01inference time scaling techniques are
- 51:03let's take a look at this win win win
- 51:05rate um
- 51:09um for
- 51:13what task we don't have the task here
- 51:15but it's one of the task of like uh one
- 51:18of these benchmarks that I don't I don't
- 51:21know if you remember the task.
- 51:23>> Yeah. Um, so it's some some pro question
- 51:28answering reasoning benchmark. So here
- 51:31let's take a look at how these things
- 51:33work. So uh first we have let's say we
- 51:37have a number of repeated samples from
- 51:40the model. Uh it goes from 1 to 10 on
- 51:43the left side. Let's focus on the graph
- 51:45on the left side. And then the orange
- 51:48one is the kind of worst possible way of
- 51:51approaching. We just randomly select one
- 51:54and look at the quality and the
- 51:56correctness of this response. Um the
- 52:00green one is when we use the model to
- 52:03rank them to rank the responses and we
- 52:06select the top one ranked by the model
- 52:09and and report that that already does
- 52:11better than uh [clears throat] that
- 52:13already does better than the the orange
- 52:15one.
- 52:16The blue one is um oracle selection
- 52:20meaning let's assume we are not mixing
- 52:23these responses in any way. We we just
- 52:27select the best one generated.
- 52:30Let's say we have an Oracle verifier
- 52:32that can tell us which one of these is
- 52:33correct. And that obviously does better
- 52:36than just asking the model to rank them
- 52:38because it's an Oracle verifier. And
- 52:41then we get to the red one which is
- 52:44where we when we use the fusion. So
- 52:47basically for each each point here let's
- 52:49say we are at five. Uh the red data
- 52:52point is basically we have given these
- 52:55five responses to the model and asked
- 52:57the model to synthesize one answer one
- 53:00final answer given all this information.
- 53:03And it's so interesting and this
- 53:05paradigm is so powerful that that can on
- 53:08its own improve the quality of responses
- 53:11over oracle selection.
- 53:14Um and then finally the purple one is
- 53:17where we um
- 53:20instead of fusing
- 53:23um all the uh all the all the responses
- 53:27we first selected the top five
- 53:30um in the and and then and then we went
- 53:33about fusing them. So it seems like some
- 53:35sort of a filtering of the two does
- 53:38better.
- 53:41Now on the right side we are doing a
- 53:43different experiment and that is we are
- 53:46um on the left side we had only one
- 53:48model generating everything. On the left
- 53:51side we had we were using we we were
- 53:53adding models. So first one is just one
- 53:56model generating one answer. Two the
- 53:58baseline is two different models
- 54:00generating one answer and 10 is 10
- 54:02different models each generating one
- 54:04answer. And we see that of course the
- 54:06random result um becomes worse because
- 54:10the model we looked on the left was I
- 54:13think it was among the better models in
- 54:15this ensemble. But we still see the same
- 54:19trend trend even if these responses are
- 54:22coming from different models like
- 54:24basically the same trend of how these uh
- 54:27all follow each other. Yes. Which model
- 54:31is like using if you're using like 10
- 54:33different models you're asking like
- 54:35somebody else to rank or fuse your
- 54:38>> uh I think it's the model number one in
- 54:40this case the same the model that was in
- 54:42all of those and this was uh kind of the
- 54:45way we created the ensemble was first
- 54:47with the best model and then added the
- 54:48second best model and so on.
- 54:56Okay. Now let's take a look at a couple
- 54:58other inference time techniques and that
- 55:01is unit test generation and evaluation.
- 55:04I think one of you was were were
- 55:06mentioning something like this earlier
- 55:09as well that where we can ask the model
- 55:12to generate these unit tests say when it
- 55:14gets to coding task or math optim math
- 55:17problem solving or other reasoning task
- 55:20tasks. Um, and the unit test evaluation
- 55:23is even crazier. Like instead of like
- 55:26running the unit test, you're asking the
- 55:28model to evaluate a generated answer uh
- 55:32against a unit test.
- 55:36For example, um here is a prompt uh
- 55:40check for so the coding problem in this
- 55:43case is check for balancness of round
- 55:46brackets in an input string. That that's
- 55:48a coding question. And then here is an
- 55:50example input. Here is the type of unit
- 55:53test that the model could generate. Um
- 55:56for example, given a string with an odd
- 55:58number of brackets, the solution should
- 56:00output no, which is like a good unit
- 56:03test in this case. Uh another one is
- 56:05when a closing bracket is encountered,
- 56:08it must match the most recently open
- 56:10brackets that hasn't been matched yet.
- 56:12That's another kind of reasonable unit
- 56:15test. And then you can ask the model to
- 56:17actually generate the code to test this
- 56:19as well. Um, now let's take a look at
- 56:22the types. I don't know if you guys see
- 56:24this well, but the type, but this is so
- 56:25big there's no way for me to put it here
- 56:28with like large font. But this is the
- 56:31type of architectures that aron found.
- 56:34So basically now think about it this
- 56:37way. we have different ways of mixing
- 56:39and matching models and inference time
- 56:41techniques and we can define these
- 56:43layers of optimization. Uh for example,
- 56:46the first layer in this case is
- 56:48generation and then these generations
- 56:50are from different models in this case
- 56:52and then we have a a critic and a
- 56:55ranker. So basically the critique will
- 56:58criticize these generations and then we
- 57:01rank them and then we the optimizer
- 57:04found that we could have a bunch of
- 57:06fusers at this point like each fuses
- 57:08these gener these responses into one
- 57:12output um and then we can go from there
- 57:16um continue this critique ranker. And
- 57:19this was like a rather complicated
- 57:20architecture. And the way that we
- 57:23optimized this architecture is that uh
- 57:26we did some kind of pre-processing to
- 57:28reduce the space of uh optimization. For
- 57:32example, the fact that we found this uh
- 57:35sequence of generation, critique, ranker
- 57:37and fuser do really well. We did that
- 57:40offline. So we limited the search space
- 57:43just because doing this search is very
- 57:45expensive. We need to run a lot of
- 57:47inference calls. But then the way we
- 57:49optimize it that we had a held out data
- 57:51set that we could we had a training data
- 57:54set that we could optimize against that
- 57:57and create this accuracy versus the
- 58:00number of calls that we are making to
- 58:02these models kind of as a as a metric
- 58:05that we are optimizing against. We want
- 58:07to maximize accuracy and min for any
- 58:10given um budget inference budget that we
- 58:14have.
- 58:16Um and this is for one some of the
- 58:18coding problems. This was an optimized
- 58:20architecture. Basically we generate a
- 58:22ton of samples. Uh we generate unit
- 58:25tests and then we evaluate them.
- 58:28Now
- 58:29um
- 58:31an interesting property here is that
- 58:35we found that stacking more and more
- 58:38layers of these inference time
- 58:39techniques or making it deep in a way
- 58:42actually does help with our
- 58:45um accuracy.
- 58:47Um in this case for example the
- 58:51rightmost pink uh graph is uh where we
- 58:54have uh where we have an ensemble
- 58:56meaning we have different models in our
- 58:58loop and we have three layers of
- 59:00critique critiques and fusers and a
- 59:03final fuser fuser layer. Um and this is
- 59:06like significantly better across many of
- 59:08these tasks over both just using a
- 59:12simple the best model only once or the
- 59:16best model eight times with like one
- 59:18layer of fusion. So it seems like these
- 59:20additional layers that we are adding
- 59:23here is actually just like in deep
- 59:25learning we are adding layers and
- 59:26pre-training and the model gets better.
- 59:28Seems like these careful kind of
- 59:30addition of these inference layers are
- 59:32helping the model become more and more
- 59:34accurate. across many of the tasks. Um
- 59:39this is true. And so now the optimizer
- 59:42itself, we used an Beijian optimizer
- 59:46again to simplify the search space. We
- 59:48did a few things. Um for example, we
- 59:51limited the optimizer to only use one
- 59:54inference time technique per layer. Um
- 59:57and the first layer was always just the
- 59:59generator. And then we had this cascade
- 1:00:02of ranker, critic, verifier.
- 1:00:05Uh they they could go anywhere, but we
- 1:00:08we made certain kind of modifications to
- 1:00:11the search search space. For example, a
- 1:00:13critic should go before a ranker or a
- 1:00:16fuser always because we did some testing
- 1:00:19locally and saw this is a better choice.
- 1:00:22Um and then a unit test generator must
- 1:00:24be followed by an evaluator op. Um and
- 1:00:28uh we again we use a Beijan optimizer to
- 1:00:31do this. Um this is often a very
- 1:00:34powerful um method methodology
- 1:00:37um uh a a ton of like good open-source
- 1:00:41software to do Beijan optimization for
- 1:00:43you. Basically you have this search
- 1:00:45space that you want to configure it with
- 1:00:47different uh different kind of uh
- 1:00:50choices for the architecture and the
- 1:00:52output side you have the accuracy and
- 1:00:53you want to optimize for that. Um and
- 1:00:56this does better than greedy search or
- 1:00:58random selection. We are much more
- 1:01:00sample efficient in terms of number of
- 1:01:02configurations that aron searches until
- 1:01:05it reaches a final kind of architecture
- 1:01:09and we can define different objectives
- 1:01:11for it. For example, um available models
- 1:01:15uh inference time inference call budget
- 1:01:17is are one of them are are some of them.
- 1:01:20Um the thing that I want you to uh pay
- 1:01:24attention to in this graph is that this
- 1:01:27interesting property that archon is at
- 1:01:29the end generating one response at the
- 1:01:31very end right so it's like you're
- 1:01:33optimizing pass at one at the very end
- 1:01:36and what was interesting here is that u
- 1:01:40while using just the open-source models
- 1:01:44we could match or exceed um these closed
- 1:01:49source models at the time uh the
- 1:01:51frontier co source model at the time by
- 1:01:54a large mar mar mar mar mar mar mar mar
- 1:01:55mar mar mar mar mar mar mar mar mar mar
- 1:01:55mar mar mar mar mar mar mar mar mar mar
- 1:01:55mar mar mar mar mar mar mar mar mar mar
- 1:01:55mar mar margin across many of these task
- 1:01:58in terms of pass at one here's the
- 1:02:00average pass at one improvement and not
- 1:02:02only that we we could train archon to be
- 1:02:05task specific so when we are doing the
- 1:02:08Beijan optimizing we only look into a
- 1:02:11certain task and we test on that or we
- 1:02:15could train archon to be general purpose
- 1:02:17so we wanted it to do whether bad good
- 1:02:20across many to do well across many tasks
- 1:02:23and even that the general purpose one
- 1:02:25does really really well and better than
- 1:02:27the the frontier models across these
- 1:02:31task and that was like a very
- 1:02:32interesting observation
- 1:02:35um that you can design these inference
- 1:02:37time architectures that do well beyond
- 1:02:39the task or uh the limited task that
- 1:02:43they're trained of. So on average in
- 1:02:45this case we were outperforming GPT40 or
- 1:02:48COD 3.5 sonnet in pass one uh by an
- 1:02:52average of 14.1%
- 1:02:54across these uh instruction following
- 1:02:57reasoning and math and coding problems.
- 1:03:00Uh here are some questions but um that I
- 1:03:04want you to think think about but since
- 1:03:06we're out of time um hopefully you think
- 1:03:09about it uh yourself and
- 1:03:12hope you have a happy weekend.
About this transcript
This page contains the full transcript of YouTube transcript (-Ggc37xLj_Y) , generated from the public captions YouTube serves with the video. The transcript has 9,464 words across 1,383 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.