# Workshop 23973

- Kind: Workshop
- Talk page and recording: https://iclr.cc/virtual/2025/workshop/23973

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

They will all be talking about this intersection of scale-driven generative AI and the correctness-focused principles of verification. So we're actually going to be starting the day with a set of three keynotes from some of the visionaries in the field I'm sure you recognize. Before we do that, I know you're not here to listen to me talk, but before we do that I
I just want to make a quick request. There's this QR code that you don't have to do this right now. I'll be displaying this later in the day as well. But if you scan this QR code, you'll be taken to a form where you can pre-submit questions for the panel later this afternoon. So if you're listening to a talk
If the speaker says something you have a question about or maybe something you disagree with and you would like more people's opinion on it, please do consider pre -submitting that question and that way us organisers can make sure that during the panel everyone's voice is heard and we get to talk about a representative set of topics. Yeah that's pretty much all from me. So instead let's move on to our first speaker of the day which would be Kevin Ellis.
So Kevin, if you haven't had the pleasure of meeting him, is a professor at Cornell University. Before that, he was a PhD student to turn postdoc at MIT where he did some seminal work at the intersection.

Some seminal work at the intersection of cognitive science and program synthesis and yeah, please join me in welcoming Kevin today. and for letting me do this on zoom can people hear me and I'll share slides right now
Is the screen share working? I think I can see in the room that it's just my face. Is it possible to, I think there might be an AV issue with the, oh, there we go. Okay. Perfect. Okay. So in that case, I'll just start.
So thank you to the organizers for putting this together and also for accommodating me doing a Zoom talk when my travel plans fell through. So today I'll be talking about some in-progress work that's led by my PhD student Atharv Sanwaim. And we're doing something that's related to formal verification in at least a conceptual sense.
But it's not really verification in the traditional sense. So we're thinking of it as verification with square quotes. So just to contrast this with what is ordinarily meant by verification, if you go all the way back to when core logic was introduced way back in the 60s, people were, so Horwitz was writing down inference rules like this.
which would allow you to prove correctness properties of programs. The Swedish inference rules would say that if we make certain assumptions about pre and post conditions of some components of a program.
like here the conditions are P, Q, and R, and the parts of the program are A and B, then the thing underneath the bar, which is a composite program that has A and B, we can then prove something about.
Now, horror wrote this slightly differently, but it's really the exact same rule. We'll get into exactly what this means in a bit. And in the many decades since, there's been a bunch of successes of verified software. So we've automated theorem provers like Koch. We have formally verified compilers like CompCert. We have tools like Daphne, which are...
quite practical for doing all sorts of reliable verified software. So all of this falls under the umbrella of verification and what you'll probably hear a lot about in this workshop. I want to contrast this with quote -unquote verification.
So true verification is something that grows out of formal methods and the programming languages community. And recently in AI, we've been talking a lot about verifiers, but in a slightly different sense, where in papers such as these, what we mean is some way of checking your work.
typically for reasoning problems or programming problems and it's really closer to software validation like when you're using tests or fuzzers to try to empirically test if certain properties hold but if you look at the ways in which people talk about quote-unquote verifiers in AI often they mean something which they're learning so the verifier might in some way involve a neural network
So if you look at these two different paradigms, true verification has the following important properties. So one is that you get mathematical guarantees. And part of that is because we're looking at formal properties, things that we specify in logic.
This gives tremendous power because you can actually prove that for all inputs the program will satisfy certain safety properties or that given some precondition that it will actually compute fully what you want if you're able to encode that in your post condition. Of course, it can also be really, really subtle to get this right. And sometimes formally specifying a program can be just as challenging as running it in the first place.
And so, of course, there's lots of empirical studies that show that in practice, there can still be bugs in verified software. Now, this is not to poke fun at verification. Like, obviously, I would trust a verified piece of software much, much more than something that is not verified. But just to highlight the fact that it can be very subtle to correctly specify what you actually want.
Now, if we look at quote unquote verification, we actually don't have guarantees. And that's because we're often looking at informal properties. So our so-called specification is something that we might write down in English. This means that it's also going to be subtle to get it right. So in some sense, you might think that this fake verification is strictly inferior.
Because it's still subtle to say what you want. But now we don't even get guarantees that you're getting what you want. At the same time, there's certain kinds of problems where verification just doesn't even make sense. And in fact, for a lot of everyday programming, it's really difficult to articulate in a formal logic precisely what you want.
So there's many examples of this, which I'll talk about in a bit. But one example that's kind of fun to look at is just all of the kinds of demos that people make of LLM programming agents. So if you follow, if you spectate this space, one thing you see is that people often ask the latest language models to make cool interactive graphics.
So here they're prompting O3 cloths on it and grok to make a kind of spinning orb animation. They want things with fading neon trails. They wanted to have 100 glowing neon orbs. Maybe you could formally specify that there should be exactly 100 neon orbs. But it's really hard to formally specify that it should be pretty.
Nonetheless, this is part of what you're telling the system. It is part of, in some sense, a specification. It's not something that you could ever formalize. So that makes it a good job for quote-unquote verification. And there's many other examples of this. So you're programming a computer game. You want to make the level harder. You want to not make a pretty animation of glowing orbs, but to make a picture of a pretty flower.
Or maybe you have some machine learning pipeline and you want to add some feature extractor that focuses on the sentiment of some natural language text. So by the time you've formally specified what that means, you might as well have just programmed it and it wouldn't necessarily be any more reliable to augment it with the specification. Or if you have things that have graphical user interfaces, you might want like a menu with keyboard shortcuts.
So there, it makes sense to check that the code is working correctly to actually open up the menu, make sure it shows the keyboard shortcuts that you want, but it doesn't make very much sense to specify in some higher order logic what it means to have this menu item with keyboard shortcuts. Or if you have a web page, maybe you just want it to look good on mobile devices. So for a lot of these, you actually could probably specify parts of it.
So maybe you could formally specify that the web page on a mobile device doesn't have any text that overlaps with an image. But other more qualitative things like being pretty or just looking good on a mobile device, it's hard to truly capture that in a full sense with a formal specification. And that means it's a good job for this quote-unquote verification. So another reason to look at this.
is because right now people are building large reasoning models and the way that they are actually trained is by having some kind of external checker and the existence of an external checker like what's used in self -taught reasoners or star or an r1 or what is almost certainly being done in o1 o3 o4
is something like this. So you have some problem or specification. For the purpose of this workshop, we can think of it as a programming problem, probably specified in natural language. We're going to give this to some kind of generator model. We can also think of it as like a policy. So we'll call it PI for policy. And that will generate various solutions to this problem. We'll think of them as programs.
And then we pass that to our verifier, V, which is going to return some kind of score or reward that tells us how close we are to actually satisfying our spec. So at inference time, we can then rewrite these options, or at training time, we can treat this as a supervision signal, for example, any reinforcement learning algorithm.
So if we can get these kind of verifiers for a specific problem class, then that means that we can kind of turn the RL crank and get much better at that class of problems.

that class of problems. Verification, if we can do it, also unlocks the ability to make systems that bootstrap or self -improve. So a nice example of this is this minimo system by Gabriel Poesia at most recent NeurIPS, and the idea is to train a problem generator and a problem solver.
And the problem solver, like the policy you saw earlier, is going to be supervised by some kind of verifier or checker. And then your generator is learning to make things that the solver can just barely solve.
So they did this in the context of theorem proving, but it's effectively the same thing as program synthesis going back to the Curry-Howard correspondence. So they call this conjecturing, you can think of it as programming problem generation. And basically this makes problems where a theorem prover, you learn a policy of that theorem prover, that conjecture is learning how to make challenging yet true conjectures. And if you look at game playing...
Again, you can effectively think of it as something where we have an external checker, and this external checker allows systems that get stronger at playing the game. So if you view things like AlphaGo or TD Gambit or expert iteration in this framework, effectively what you're doing.
is you are giving it some kind of rules. You're telling it, here's how you know when the game is won, here is your checker or your verifier, and then you throw some massive amount of offline computes, and out pops a policy or a solver, as well as a value function or a quote -unquote verifier V. And both this story here and also the minimum story are extremely appealing.
So what's appealing about them is that you basically just dump in some rules and then you do a massive amount of computes and you don't have to add more data. So the compute is really substituting for data. Unfortunately, we can't do this for tasks like making a web page pretty because we don't have a good checker.
for whether we have satisfied that specification. So if we think about building these kinds of checkers, these quote-unquote verifiers, we're going to need some kind of training data. And we really do want these quote-unquote verifiers. You know, this is the basis of RLHF, of DPO. For things like R1, they have ground truth answers.
So they can bootstrap off of that. And whenever you have formal environments where you actually have logical specifications, then you can use some kind of human -written checker, whether you're proving theorems or playing board games. So as a kind of research question, what me and Atharva are investigating is what to do when our specifications are informal.
When we can't do actual verification, so instead we're going to do quote-unquote verification, and the status quo is that you need some kind of human labels. Someone needs to go in and say, this is a correct answer to this problem, this is a wrong answer, supervise on that, and then learn how to determine if something is right or wrong.
That's a less appealing story because we're not able to just do it from pure compute. It'd be really nice if we had either no labels or far fewer labels and instead could do the kind of AlphaGo minimum story where we just dumped compute into the system and it got better at solving problems and also better at checking its own solutions to those problems.
So we're going to investigate that research question and we're going to do it in a simple testbed where we're trying to convert language into graphics programs. So this is a domain where you need to both generate and also check. So I might give you a specification like I want you to draw a red car.
with green wheels and yellow windows. In a kind of non-deformal verification, we're going to call this phi. Ordinarily phi would be a formula. Here it's actually just natural language. From this, the job is to generate a program. Here it's going to be in Python and it's going to be produced by a large language model.
When you run this, it comes from a large language model, so it's not going to look perfect. So this was the actual outputs. It didn't quite draw the desired car, but you can see that it's sort of getting in the right direction. We're going to use these semantics brackets to indicate that this is the output of this program.
So we want to train a kind of informal verifier, something that will look at a natural language specification as well as the program or its outputs and determine if it did what that specification was asking it to do. So if we were to just collect training data to solve this problem, here is what it would look like. We would have a set of triples.
where part of that triple is an informal specification. We would have some expression, some program that was written to try and satisfy that spec. And then we would have some label which said true or false. Is it the case that that expression actually entails that specification?
So we're going to try and build data sets of that form and we're going to try and bootstrap it with minimal human labels. The first way that you might think about doing this is to say well we have a generator. Maybe that generator, our kind of pre-trained LLM, could provide positive and negative examples which could then help train a verifier.
So here's what that would look like. We would take some specification like draw a red square. We would pass it to our policy, which is our problem solving generator LLM. It's writing code. It would write some code. We would get its denotation or its outputs. And we would say, yes, that's a positive label. It entails a specification.
Now here this was a simple problem, draw a red square, and the open source models we're working with, they can just do this out of the box. We're going to for now just take for granted that on simple problems our pre-trained model gets it right. We're also going to take for granted the fact that we can prompt our pre -trained models with a different specification.
which tells it basically draw the thing but deliberately introduce bugs and when we pass this to our generator we're going to assume that it typically doesn't draw the right thing so here as an example it drew a red triangle and we're going to call this a negative label so we're going to just assume that whenever we change our prompt to tell it to deliberately introduce bugs
that the resulting programs do not satisfy the specification. So this is a very simple idea. It will generate things that are definitely negative labels and things that are usually sometimes positive labels. So we're going to think through the logic of this simple idea and we're going to think through under what conditions it might work and under what conditions it might not work.
So to do this, we're going to consider the space of all expressions, which here I'm diagramming as just a line. So every single point on this line is a different program. If I hand you a specification, what that does is it effectively carves out some subset of this line and it says those are the programs that entail the specification.
When we prompt our generator with this perturbed specification, this fee bug, effectively saying here's a spec and sort of tried to do it but introduce some bugs, what we expect to see is not literally a uniform distribution over expressions, but we expect to see something which is not particularly concentrated around programs that satisfy the spec.
So here I'm just going to diagram it as this uniform distribution. In contrast, if I prompt the model with the true specification, I'm going to get some different distribution. And what we hope is that this distribution kind of peaks or at least is large around the programs that actually satisfy the specification.

satisfy the specification. So this is kind of the good regime, where our pre-trained model when prompted with the spec actually peaks at expressions that entail the spec. And when we do this, it means that samples from pi conditioned on phi are generally going to be positive examples for training our verifier.
And examples prompted with VBug are much more likely to be negative examples. Of course, the distribution might not actually look like this. It might look like this. So this is a problem. What this means is that we have a generator which sometimes satisfies this back, but it's actually concentrating most of its mass someone outside of the expressions that satisfy the specification.
So it means it would prefer a program right here, which is at the mode of its distribution, over a program right here, which is correct, but does not actually have higher probability than these other more misleading programs that the generator is producing. So the conclusion of this is that this recipe allows you to make verifiers for problems.
that the generator can already sometimes solve. So if your generator is never at least occasionally solving these problems, you can't get off the ground. You don't have to put most probability mass on a correct solution, but it's gonna work best if a correct solution lives at the mode of this conditional distribution. Effectively, this is bootstrapping a verifier for easy problems.
which implies that we're going to need another idea for extending to hard problems. So to get training data for harder verification problems, what we're going to do is we're going to look back to Hoare logic. So in fact what Hoare logic does is it breaks verification problems into smaller pieces. So if I have a program which says do A and then do B.
And I have some precondition P and some postcondition Q. And I want to prove that as long as P is initially true, then a termination Q is true. Then what Horologic does is it says, well, first prove from P that after you run A, some other condition R is true. And that after you assume R is true, once you run B, Q is true. And this is really a kind of decomposition into sub goals.
So now you have two smaller verification problems that are built out of the original problem that you had. You can also view this as running in reverse, where you take two easy problems and you glue them together into a harder problem. So you can build analogs of these kinds of rules for our problem setting. So if I wanted to prove if I had two programs.
E1 satisfies spec phi 1, E2 satisfies spec phi 2. Then if I wanted to draw a picture which said I want phi 1 next to phi 2, like I want a house next to a car, then I should be able to take the program for the first program which drew a house, the program for the second one which drew a car, and insert some code in between them.
to in my graphics language draw them next to each other. And in doing so I can take simple verification problems and turn them into a more complex verification problem. And you can build other rules which have a similar flavor to whore logic. So in whore logic you can always weaken your post condition. So an analog of this is that if I know a program entails phi
Like if I know that it draws a square, and if I know that drawing a square entails that you're also drawing a polygon, then I can build a new verification training example, which says that my program is also drawing a polygon. So effectively what we're doing...
is two things. One is we're using the generator to make simple positive and negative examples, and the other is we're using rules to augment those examples. So we put this together into a kind of bootstrapping system where we're given a training set of specifications, but with no solutions and no checkers.
We start with a generator, which makes training data for the verifier. Here, the T subscript indicates how many iterations we've run. We actually make preference data, so not the positive and negative labels. And that trains a new verifier, where the preference data tells you which one the verifier should prefer. And then that gives you a new generator, because you can sample and re-rank from your newly improved verifier.
We do a kind of thresholding, basically rejection sampling. And then you repeat this until convergence. So some preliminary results from this were just using the first idea. So there's no rule-based augmentation yet that's still in the works. So here we asked it to draw four overlapping circles, alternating red and purple.
And the base model sort of does this, but after you've learned a verifier and then use that to improve your generator, it's much better at drawing the correct picture. So the verifier is correctly intervening and then improving the generator. It gets surprisingly better at drawing clocks.
So here we want a pink clock with an orange hour hand and black tick marks. It basically drops the ball on that. And afterward you get a clock which has probably too many tick marks but is far closer to the true specification. It gets much better at spatial relations so it gets better at checking whether something is inside of something else and then better at generating those kinds of images.
You can do other kinds of patterns like alternating different colors to make squares. It doesn't always work. So particularly for things like windmills, it gets somewhat better, but basically it's not drawing windmills and it really flops at drawing fish. So we asked it to draw fish. It in its pre-trained state was really bad both at verifying fish and at generating fish and after training it was still very bad at fish.
So we did a small test set. We used a human judge to check to see whether it was actually improving. And indeed, this verifier gets better at verifying. And also, in general, it gets much better at drawing things as long as they're not fish. And again, going back to the other explanation of why this works, you have to be able to draw something correctly occasionally in order for this bootstrapping cycle to get off the ground.
If the problem is too hard, you really just can't get a learning signal. So the way to think about what we're doing is basically we have some practice problems, but we don't have any problem solutions and we have no way of checking the answers.
We're doing some offline computes and we're academics so it's not really massive and then when we get out is a kind of policy for writing programs as well as a value function or quote -unquote verifier for checking if we're doing it right. But what I think is appealing about this story is that we're not giving it solutions or a checker we're trying to use compute to bridge that gap.
So the lesson from this is that quote-unquote verification is not, I mean, the main topic of this workshop, but I think it's an important problem, but it's one for which data scarcity is an issue because you don't have formal checkers.
We've done some investigation to the extent which you can bootstrap a checker from pre-trained models. And our evidence is suggestive, but there's certain failure modes, like you can't compute your way to verifying really hard problems, which you couldn't get a foothold on in the first place. We think also that these kind of inference rules in the style of Horologic could actually be really valuable as a source of inspiration, although we're not literally using them in this work.
So that's it and thank you so much for the opportunity and I'll take questions.
I'm wondering in the examples that you showed of before and after, is the before using the un-fine-tuned verifier at all? Or is it just like a sample from the base model? And how much better does the verifier get over time? And how much does that help versus just like the process of using a verifier at all, even just one based on a pre-trained language model that gets to see? Yeah, does that make sense?
I guess it makes sense. Yeah, yeah.

It does make sense. Yeah, yeah. So the verifier does improve. It's not dramatic, but it does happen. The results that I showed were without using a verifier at test time. So the before picture was a greedy decoding at temperature zero from the pre-trained model. And the after picture was a greedy decoding at temperature zero from our final generator model.
I think we have time for a few more questions. Yes? Hi Kevin. Oh. Yes? Okay, so this is Ashish. Oh, hi from the hosting. Um so the question I had is when you were generating data for training the verifier, um did you implicitly assume that you know which spec what's which specifications are easy and which are hard? And similarly for the second part,
Is there an assumption that you know which compositions are easy and which are hard? No, but it would make sense to make those assumptions. So one easy proxy would just be the length of the specification. And I do think that you need some human data, like there needs to be some contact with reality that tells you whether you're drawing a fish correctly or not, or whether your web page looks pretty.
Um uh so the in in what I presented we're doing a kind of um proof of concept what happens when you don't have any human data but in practice um you you would actually have some data that tells you that those kinds of things All right, we probably have time for one final question. Any more questions? Otherwise, I have a, oh yeah, let's go over here.
Hi, uh p r pretty interesting. Uh you you you uh your examples, right, uh really you need a v visual uh as themes, right? Um probably a good um multi-modal model would know out of box what to fish um and and uh what's uh pretty to some extent. Um do you think that's a solution? Um Hmm.
I do think it's an important part of the solution. For the fish in particular, I think part of the difficulty was just writing code that draws a fish. You're right that it can probably check if something's a fish. I know it's not working. Like it's not an issue with my room. Maybe there's a speaker on Zoom. They need to mute themselves now.
Sorry, Kevin, please continue. Okay. So I was just saying, I agree with you. The verifier can probably tell what's a fish, but it's tough for the generator to write code that checks if it's a fish. So in theory, if we just increase the sampling budget, so if we just draw more programs, draw more samples, then eventually we'll stumble across fish and it will start to learn how to draw fish.
So the generator is ultimately bottlenecked by the verifier in some sense in the large compute limit. All right, cool. That's all the time we have for questions right now. Let's thank the speaker one more time for joining us on Zoom. Thanks so much.
Our next speaker will also be joining us on Zoom is Sean Liu, who is a senior principal research manager at Microsoft Research as well as a professor at the University of Chicago. So please join me in welcoming Sean. How to share screen.
I'm sorry having these two move all while how do I share to zoom? I'm sorry, we're working on Okay it. Okay, I find the button
Can everybody see my slide? Okay. Okay.
Yeah, I'm sorry about this. Okay, my name is Shan. So I'm very happy to be able to present to you about our project, AutoVeris. It's a project that involves a lot of my colleague at Microsoft Research and our interns. And again, I'm sorry that I couldn't be there today, but my colleague Shrey. So he is a major researcher in this project and he is there at EICLEAR. So feel free to chat with him.
Okay, so this is a slide that I always use to start my almost all of my talks because bugs is something that is always in my mind. And before I go into technical part of my talk, so I want to share with you some story about myself. I am a very, very, very bad programmer. 20 years ago, I remember when I did my internet micro research, I
to spend the whole summer just to debug a memory leak bug. And so I have a lot of sympathy towards developers who struggle at debugging. And so as a result, in the last 20 years, I've been working on finding bugs, understanding bugs, testing, finding bugs, program analysis, fixing, all kinds of techniques. And throughout this 20 years, there are two techniques that have always trying to avoid.
and the first technique is verification and I'm talking about formal verification here and I remember many years ago people told me you know there are many amazing amazing verification tools like Daphne mentioned in Kevin's talk cock and Isabella
And I was told that I just need to learn a new language, prove language to write formal specifications and I can write proof. And then once the verification goes through, it's amazing. I will know that my program is guaranteed to be correct under any input. Okay, I refuse to use verification because first of all, I'm a poor programmer and I really, really don't like learning a new language.
And I just feel like I'm just not smart enough to write a proof, no matter math proof or code proof. And the second technique I've always been trying to avoid is AI. I'm not an AI person and I just feel like I don't like black magic.
Okay, so you may wonder why I'm here today. So I joined Microsoft Research two years ago, and I suddenly I realized I'm surrounded by a group of people who are just very passionate about a verification tool called Veris. It's a tool to verify the correctness, formally verify the correctness of Rust program.
Now my office next door neighbor, Chris.
very nice guy and he just very politely suggested me hey maybe you should learn Verus and he told me that you know it's different from those traditional verification tool you have in mind it's very easy to learn because here you write specifications and proofs all in Rust right and then you prove you do we directly prove implementation in Rust so I just need to learn one language which is Rust and
It don't means easy to use because the verification tool leverage some nice features like the ownership and type system in Rust so that there's relatively few amount of proof that I need to write and the verification itself runs very fast just a couple of seconds for each function and he is right so in the next 12 months these various people they won a lot of paper awards and I also
I feel very proud that I was actually able to learn to use verbs. But is it easy to use? I have to say, I still feel like I'm not smart enough to write code proof.
Now the second thing that changed is when I joined Microsoft, I was told that as a Microsoft employee I get a free subscription to GitHub Copilot. And I don't know if you share my experience, I got really addicted to GitHub Copilot. And as I told you I hate learning a new language and I can tell you although I have written many RAS programs in the last projects as part in the last two years as part of this project.
I cannot write a syntax correct Rust program today without GitHub Copilot, but of course right with bugs always in my mind I am concerned with the quality of the code that I write right and I'm not the only person so there is a survey last year so Stack Overflow

to you so psychological had a survey and to more than 50 ,000 professional developers and two-thirds of the lepers said they actually use AI to generate a code and also two-thirds of those people who use AI said they are worried they don't trust the output of AI okay so now you probably see you know what this story as I was telling is about so naturally right I started thinking hey maybe
We really should teach AI to write their proof. And if I'm more ambitious, can we actually teach AI to write very viably correct Rust code? And then I assume everybody knows Rust, but the system community Rust is a language that is starting to get very popular because it allows to do things similar to C, has very high performance, but at the same time it avoids all those...
a low level memory bug okay so next I will show you a demo I hopefully you know through this demo you can get a better idea about what a virus is about and also what our auto virus can do and this is an implementation of our auto virus in VS code plug-in
Okay, I'm sorry, I hope you can, I don't know if the sound is big enough, I hope you can see the code. So what I'm showing you now is just imagine I'm trying to do a rough implementation of binary search, right, and as a bad programmer as I am, right, I write detailed comment about what should be the precondition of this function and what's the post condition, right, precondition the input.
The input vector should be sorted, and the post-condition said the function should return the index of the key in the vector.
And you can also see I wrote a minimal amount of code saying what should be the input variable, what should be return variable, and so on. Okay, so now let me play this video. So you can see here in the various co-pilot, sorry, let me go back a little bit. Sorry, so just to show you what I click, I click the button and it says convert the comment to various specification.
And so then behind this, we are calling GPT for API.
Pretty quickly, if formal specification is written, but of course here I say formal but in various, this is really just specification in Rust. So I look at it, it seems fine, so I copy it to my function. Okay, so now I pause here. I don't know if you can read, so basically the precondition is a little bit more complicated than normal Rust code because it has quantified for and exists which varies.
xi and the rest is index. But basically it says like for every pair of index i and j as long as they're in range, right, if i is smaller than j then v i is smaller than equal to v j. So basically this says this factor is sorted. And if you look at the ensures, the post-condition is purely, pretty much purely rust, right? It says zero, the return value is between z and the vector's length, and this return value is an index that point to key.
Okay, so I finished writing specification, right? Of course, the co-pilot finished that. Now you can see, okay, now this is not very co-pilot. So this is just GitHub co-pilot. So if you have used GitHub co-pilot, you know it's very eager to generate code for you. So immediately it gave me this whole implementation of binary search. Is this correct?
I mean, to be honest, it's hard to tell. And here in this video, right, I stared at it and I decided to just accept it. Now, okay, let me pause here, right? So is it correct? So now what I do is I use this co-pilot and say, hey, generate a proof for me. I want to know whether this code is correct, which means whether it matches the specification and I want a proof. Okay, so now, so this is a video.
Video I taped yesterday. I did not speed it up. I did not slow it down. So usually this proof generation, it typically take five to six seconds. In this particular case, it take longer. The reason is our plug-in will keep calling GPT -4. And of course, using our framework that I will talk about later, trying to find the proof that allow the verification to go through.
Now, if it cannot find a proof for the verification to go through, it will just keep trying, keep trying until a timeout. And when the timeout, it will return the best proof it can find. Okay, so now this is the best proof.
Sorry, going back a little bit just to show you what one thing proved, right? Now in this case, for this problem, because it all what it takes is some looping variant and some post condition for the loop. Of course, for more complicated program, right, the proof involves more, you know, landmark function and so on. We can generate that as well. Of course, in this case, it's just looping variant.
Okay, so we've set to these and then we run variance. And so now note on the right and the bottom. So this is a verification result and shows that it's not verified. There is an error. So that's why the verification to the plugging took so long. Okay, now if you look at what's the error, it says there is a possible arithmetic underflow or overflow.
Okay, and I can tell you, right, you can check it offline. This is indeed the arithmetic overflow. And I can also tell you I tried many, so you can try different AI agent. And I'm pretty sure, right, every AI agent will give you this binary search implementation that contains this arithmetic overflow.
And it's not something testing can find, right? Gladly, you know, verification, the verifier told me so. So what I do is I just delete this expression. Now GitHub Copilot suggests me something else. And without changing the proof, a wrong verifier is correct. Okay, right? So this seems to be a great recipe for lazy people like me, right? To write verifiably correct code. Okay, so...
Now in the next like 15 minutes I want to just very briefly tell you the work we have been doing behind this demo and beyond right and also what's our future plan. So when I started this project I thought oh this should be easy right because various has a unique advantage over other verification tool in the sense that your specification and proof are written in a pretty
pretty popular language which is rust that gbt is already very familiar with so but but it turns out right i was too optimistic so if you feed a binary search implementation and a specification to gbt and you have to give a number of examples and gbt will generate something it will look reasonable but often it will make say
Type error. The reason is there is actually extended the Rust syntax to introduce some verification required type. And GBT often struggle at that syntax difference between various and Rust. And the second thing is the loop invariant. I would say it's a quite...
You know, common skills that are needed to use any verification tool. And sometimes when GPT does not make type error, it will often mess some loop invariant. Like in this case, sorry, so it actually missed one, just one loop invariant that I will show you later. And not just this missed one loop invariant, but this will certainly tell you a number of errors.
And the missing lines just to describe that when you do binary search, the upper bound is always less than the vector length. And another thing is I find that GPT makes some strategy, like as a human being, if I see this, if I'm an experienced proof writer, when I look at the list of errors, I will have a strategy about among the three errors which one I should prioritize and to fix.
to fix first, which is the last one. I want to go into detail, but the point is there's a lot of knowledge and skill and strategy beyond the basic logic syntax that we need to teach AI. And how to do that? And I mean the easy answer is data, right? For AI, anything, as long as it's data, it's not a problem. But the challenge here is
There's not enough data, right? And I think we all know these days it takes trillions of tokens, right, to train a large language model. Now, the problem for there is it's very, very promising. It's one of the...
most fancy you know tools for system verification but it's a it's a relatively young project it was started about three or four years ago so on github there's relatively few number of projects and in total when we count it it has only about half a million token so at the beginning we thought okay we don't have data to train to fine-tune a model we don't even have data to build a reg
So what we did, we were thinking, hey, let's just use existing GPT, right? It has, it already knows graphs well enough. So let's just fill those remaining missing knowledge through prompting.

Basic knowledge through prompting some well-designed workflow and something like that.
So that's what we did. We built a workflow that tried to mimic human experts' methodology in writing proof. So instead of just keep trying, right, generating a proof again and again and again, we, after the generation, we have a phase called refinement to fix some common mistakes that is very common, you know, in human written versus proof. And then this is then followed by a debugging process.
So we run the varies and varies give us you know the list and we implement something beyond AI to do error post processing and then to rank the priority among the errors and then to do many rounds of debugging until the final proof is generated.
And at every stage we developed a lot of GPT agents. Every agent has some expert written tips and then a couple of well-designed examples. And for example, say in debugging phase, we actually have more than 10 agents and each agent is designed to just to fix one specific type of verification error. And sometimes we have multiple agents for one type of error to represent different
different type of fixed strategy and beyond that we also build a lot of tools beyond this so we extended various parser
So that we can clean the proof generated by GPT, we can fix some syntax errors and we can reject some cheat in the proof. And we also do ranking based on various results and we also used a formal method, a well-established formal method algorithm called Houdini algorithm so that sometimes we can merge or stitch multiple incorrect proof together and get a correct proof. So with all these...
um we it does well on a benchmark so this benchmark um our intern help us developed it consists of 150 routes proof tasks um it's mainly based on um um code code that a code benchmark such as mvpp and we manually um write proof as a reference um so we so we see that okay if we run this workflow for
10 times and then 90 % of the proof tasks actually can be verified. Now but this is but we still feel not very happy. The reason is the prompt is actually quite complicated and quite fragile and we often need to fine-tune the prompt once after a few months that looks like the model has changed. And another problem is the inference time is really long and you probably had some sense about that when I show you
show you that there is called plug-in demo video every GPT call it takes about
five or six second at least and then when we try to do this debugging phase we have to repeatedly call and it takes really long time so after this project we thought okay let's go back try to let's see if we can conquer you know the data scarcity challenge and actually fine -tune a model a small model just for errors so this is actually our I clear paper this year so to
get more data right so we use a you know a well -known approach called self evolution so in self evolution right what you have if you have a medium right amount of seed data so what you can do is you can train a model it's not a good model but then you can feed a lot of unlabeled data to it and then it will generate some
So data that quality may not be good but then you can do some pruning and as long as you can pick you can find those good data from this pool you know sea of low quality data then you can add this into your training data set right and then you just keep going and you get a better and better model you get more and more training data okay so now this is a well-known approach the question is how to make it work for virus
Now just tell you it's actually very challenging. The good part is we actually have a data pruning right to pick good data is very easy here because we have a verification tool. The verifier can very confidently tell us which which proof is correct. Now the challenging thing is the data we have for virus is not even enough for seed data and it makes things even harder is we don't even have enough unlabeled data.
And for people who are not familiar with I guess VARS or called a verification, so what do we mean by labeled and unlabeled data? So lay unlabeled data here is not just rough code. It means rough code with a reasonable specification. Reasonable means this specification has to be consistent with the code. And then labeled data here means the proof, right, that can prove formally, allow VARS to formally verify.
very Thank fastnt or called implementation satisfied the spec. So now you can see we don't have enough there are a lot of rust code but they're not enough rust code with specification. So we actually ended up fine-tuned two models.
We first fine -tune the specification model and then here the unlabeled data come from 45,000 RAS programs from code synthesis data set such as MBBP and CodeNet and we use GPT to help generate the specification right and then goes through the self-evolution process and we get 20,000 programs with specification and the key part of this specification training is that
And I don't have time to go to detail, but the important thing is we actually use test input, test input mutation and verification together to get some quantitative scores for each specification so that we can automatically filter out good specifications. Okay, and with this code and specification, we use a subset of this GPT agent workflow that I talk about.
about and we keep polling it for more than a month and finally we got 4,000 programs that has proof available there okay so now that give us the seed data and once we establish seed data now things become much faster so when we start from the deep decoder 32 billion model
The initial accuracy was very low. It was only about 17% when we evaluated on our various branch. And after the first round, the accuracy improved to 41% and it also doubled the training data we have. And after three rounds, the accuracy improved to 54%. And of course at this point it's kind of saturated a little bit. So what we do next is we then paired incorrect.
correct proof and correct proof together for the same program and we get about 13 000 more pairs and then we go back to this model fine-tuning so that the model also get the capability of this improved debugging and then now this give us 28 22 percent of accuracy rate and so we're actually very happy comparing with the GPT result we have
I mean, both are good and both have pros and cons and complement each other very well. So for this fine-tuned model, the advantage is the prompt is very simple. You pretty much just say, please write a proof, a various proof. And we do not need to feed any examples, right? And then the inference is very fast. Even if I run the model, say 100 times, it can finish in a couple of seconds.
Okay, so in all the training, right, because it's a small model, the fine, once the data is there, so the training is actually very fast. Okay, so I will finish my talk by saying, now what's the next step, right? So we're doing well on this, but it looks like it's doing well on this benchmark.
But there's actually a big gap between benchmarks and the real system and I don't have time to go into detail but if you look at real system verified projects, well very it's designed for system verification. So they are like storage system, virtual machine, monitor were verified by theirs and you will see that there are a lot there's still a lot of there are many knowledge proof knowledge theory strategy right knowledge such as
how to use some standard library specification in various
skills such as how to verify some more complicated quantify related property strategy such as you know for those huge project even specification function often has many layers of function calls right and then you have post condition that is extremely long right you really need some strategy to to do the the proof and also in this large system how to generate specification is much more
much more complicated than the binary search example that I showed you. Often you have to start from a high-level property and really drill it down to class level invariant, to procedure level pre and post condition. And I would say that's it really requires very smart people, people much more smarter than me and it's far away now for AI to do. So what we are doing now
And we need more data and I think there will be some talk actually later in this workshop talking about some very novel technique to generate more data for virus and we need a manual data we need new ways

In the manual data we need new ways to synthesize data we need more benchmarks right so I mentioned to you about this VARAS bench and there's also effort led by CMU on creating more benchmark but these benchmark are all for small like one function Rust program so we need more benchmarks right just to evaluate how the model can work for real system code and we probably need a different AI technique eventually to work together
laser, right? Prompt, right? Fine-tuning, maybe reg, maybe other technique. And then we need a better AI and a human interface because it's very difficult. I don't think it will happen for AI to generate proof end-to-end for real large project in the next couple of years. So we need an interface and the various co -pilot, right?
WebSocket Plugin I showed you is just a starting point. Okay, so if you're interested, please join us and all the benchmarks and the code, the WebSocket Plugin, right, the framework, everything is open sourced. And don't worry if you don't have various background. If I can learn virus, I'm sure you can. Thanks very much.
Really interesting talk. Uh I think we have a few minutes for questions again.
Thanks for the great talk. Um my question is more in the direction of can you use varis also to verify other types of programmes because you showed like classical um sorting for example, but can you use like for example a neuron network that is programmed in software and can you verify that automatically? That would be really great.
Yeah, that's a great question. So yeah, like you said, my shoulder is very simple and it's a very traditional verification. So first of all, I'll say my colleagues at Microsoft, so they actually have verified a lot of...
You know, interesting properties. There's many for system code, like for example for a storage system. So they have verified properties such as whenever your storage, your file system, whenever there's a crash, they want to prove that your file system will not lose data, right? It will be crash consistent. And I also have colleagues that try to verify that, for example, a virtual machine security module is guaranteed not to leak data. So there are a lot of...
to because the the virus allow you to write pretty much anything you know using vast syntax so there are a lot of property you can verify but for for but for if for states like suppose you write to verify whether the say a neural network implementation is correct I guess then the challenge is
You have to really think about maybe there's some, I don't know, linear algebra property that you need to be able to express as invariant. So I think the challenge is more about I feel like at algorithm level, whether there's any invariant that you can find and then to verify. And I think beyond that, I think Kevin's talk is very interesting. I think there will be definitely be things.
things that goes beyond what formal verification can do. Okay, cool. Thank you very much, Shan. Uh I think unfortunately we don't have uh any more time for questions right now, but please join me in thanking the speaker one more time. Thank you.
So our next speaker will be Sita Wang. So Sita is a research scientist at MetaFair working on code LLMs, which I'm sure is something we're all very excited about. Particular yes, sorry. It takes one hour. Okay, done. In particular, uh Sita is very interested uh in
the new tool.
It's for having me here. So I work a lot on code and execution and code verification, but I never work on real verification. But I talk about two two projects that's that are most relevance to this area.
Um, okay. Uh, yeah, so, so the first, uh, the first one uh is uh called uh SWE-RL. Um, so SWE as in software engineering, advancing uh um reasoning via RL on open software evolution. So open software evolution really means uh right cards on GitHub, mostly pull requests, issues and things like this. Uh, so, so the lead of the this project is actually Yuyuxiang.
So, I'm with the contribution on data infrastructure and advice from the team. You know, your meta and your IoT. Okay, so so the task is the sweep and it's a pretty popular task.
Recently, I think for many good reasons in many cases, so you have these real issues on GitHub as people develop software.
So there is a description, in this case, something like a data leak somewhere. And the idea is then you want to solve the issue, so you have to view and understand the files in the repo, do some edits, do some testing, and produce a patch that can pass the unit tests provided in the repo.
And what's very surprising for others is it seems to be showing that current models are already very capable in this to solve a problem often requiring generating thousands to hundred thousand of tokens.
There is a small chance that there is some contamination, but I think that that's not the most likely case. The most likely case is it's actually, the current models are indeed already capable of doing this.
So in this work, it's, we follow, we follow RR1 and we use R, use R0 to improve Lama 7TB. So that means using rule-based rewards. I think what's very...
Yeah, very, very interesting. For first open, open weight efforts to reach a decent performance. So the best among smallish models and comparable to full OMP review, which was the case when really I think is still almost the case. Deep sea because a little bit better. But yeah, but it's a larger model as well.
And yeah, and we do this just by scalable use of public data. So no distillation from beating close weight models. And one surprising thing is actually there's more such kind of data because it's a real use case compared to something like competition coding and probably math as well.
And uh by by doing a following the the s the footsteps of our one, uh we also see some uh generalised reasoning ability to domains outside of uh this um uh specific uh suite domain. Um okay, so I t go over um a little bit of uh det details about this. Um
So the here here is the pipeline one very very important part is how how to how to get this data. The source is GitHub, but either uh some some curation and selection to will will go into. Um and when once you when once you have the data uh mainly what's the what's the issue really what's the issue what's the code uh what's the relavant code and uh what uh what are you
actuator supposed to generate, uh you put this into into this R_R_L_ loop, uh so so the um the R_O_M_ uh gen generates uh some uh some some reasoning traces and then there is a reward, we follow uh we we follow the R_ R_ uh set up and you use the use J_ or J_R_P_O_ um our ideas to to keep it as uh keep keep this part as standard as possible.
Um So for for uh data curation, um it starts with uh uh really this is some some details about uh about how how good good how how good uh good how works. Uh I so you you have uh the P_R_s or you you get or you can get hub events uh but uh whether the commits are in the actual report clones or someone

the actual report clones. So somehow you have to connect the two together. Usually all the data is there, but you have to do some work to make it into something that resembles issue solving.
Right. So we do take some domain specific steps. So here in particular, there is this framework called the agent-less. It's invented by a bunch of Google's software engineers to really adopt to the domain that just as you first identify which files are most relevant to solve the issue and then you use those.
kind of a pipeline, two two step uh pipeline, with with a some additional uh uh stuff s again again actually generating the answer. Um so so we simulate that, right, that to to the relevant file prediction you are using are using a model which uh which introduce some noise as well which uh which seems uh w which seems to be somewhat important if uh
Uh I I suppose to uh just giv given uh the ground truth uh files. Um so so the prompt follow follows our R_ one again. But but uh but with this uh agent loss framework we actually turn it to into into into one shot. So um and and in the end you have to generate a uh what what's called a search replace patch that fix the issue.
Okay, but a bit of detail on the prompt, right? So the first part is the reasoning eliciting prompt. You say, well, put your thoughts here, solution here. The second part under user is you provide all the relevant data to solve the issue, right? So it's a very simple.
You need a structure, but a caveat is the code context can be, can be very long. Yeah, but actually the model is able to handle this.
So for reward, because this is a real diverse, real, real world GitHub data, we can't actually execute them. So we use, we actually use this approximate reward that's based on patch, patch similarity. So, so a kind of a strength similarity like edit distance.
Um yeah and and uh you'll you'll use a format uh reward if uh uh if you you don't don't produce the correct uh thinking format or the correct patch format there is a reward of minus one. Um okay yeah so so that that's the training process. Um
Thank you. Very, very interesting thing is that this is just trend on GitHub issue solving, but once you elicit the reasoning, there's a bit of generalization to out of domain tasks as well. So shown here as an example in competition coding and in math.
So for to validate this a bit, we compare with the base model, a supervised fine-tuned version, and the R_L_ uh version. Um so so for our for supervised fine-tuning we follow a pretty similar process as the R_L_ except you have to generate the the reasoning chains, um.
with uh with the same uh LAMA3 uh instruct model um right and then then there's a bit of a scaffold on top of on top of this process which basically involves drawing a bunch of samples and uh make a prediction um
Yeah, so so this uh gets uh gets a deep decent result, once we batch um I think that's uh again the the best among small models. I think the first uh uh probably around the best for open weight models. Um Yeah. Well, okay, let's see. So um
Yeah, I guess that's called, right? So here is showing it's comparable to to GPT for all um and uh and the deep deep seek. Um but uh but behind the the best closed uh closed source models.
Okay, so to do a bit of comparison with the baseline, you can, so if you actually run the full process on the baseline, it's a little bit unfair and you get a lot of format errors and essentially the
The baseline, if you just take the base model, it's very close to zero. But if we inject it in the middle of the stage and do the localization, give the ground truth localization, make the task a bit easier for everyone, and the base model gets some performance, but you still see very significant gains from both supervised fine-tuning and HARO.
or over the baseline. Yeah, and you get better results if you are willing to spend some compute and draw more samples. This is a pretty common phenomenon that still holds here.
So we'll try to keep as close to R1 as we can, but one deviation is that we couldn't do real executions or use the similarity reward. We want to verify how that does with, say, a thresholded reward, and that's a little bit better empirically.
Right, so here you'll see some of the interesting results on generalization to other tasks, like human evolve.
Uh uh cro cro cro cro CROQCRAW. Um a big code, large hard, math and M_O_U_ Um s or rate those are general trend as a view you only do S_F_T_ uh on this task you your performance decrease, but uh but if we do this R_O_ and it list as reas reasoning and there is a small amount of increase or at least no no decrease on on all these tasks.
Um Yep, and for for for limitation we use a very simple similarity based reward to do this and it's still I really rely reliant on some of the scaffold there's a high something budget requirement
Um, so really here we followed the deep deep seek um uh approach that I that I here I quote in our last paragraph which they say uh well they couldn't get to uh do doing the large-scale RRL for software engineer task yet. Again, again this work we showed that you can actually do this at a large scale if you gave up some uh execution. Um but that that's that's the first step.
Um, still, we we overall we still agree that um um you you probably want to s to set up the environments and do execution and we are very excited about the progress in the uh a gigantic executable setting um and maybe more more open ended, R_L_
Yeah, so that's the, okay, so that's for the first work, we will do this on a switch bench.
Um okay, and for for the second part I want to talk about uh the this uh um work on noise noise and error scene L_M_E_ evaluation. So just like a sweep bench and most of the uh other other benchmark that we will look look at here, um you you generate some very complicated answer.
So so three bunch I think is still a pretty extreme example. And so so you do all these works generates uh tens of thousands of tokens. Um so so one of my my question is that are you um are you getting more out of uh each example if uh if your model has to work really hard and then generate uh a very very hard answer. Okay. So uh for a bit of background. Um
Actually all these test sets are much smaller than our MSData or or ImageNet which are in the 10K, more than 10K range. Um and if we we look at the usual evaluations that we use in the code generation domain, um and then code code generation is the especially bad offender. Um
But uh yeah, but uh I guess this this starts with our human human evolve which has only a hundred sixty four examples. Um the others M_V_P_P_ uh is a bit better um across evolve, the R_S_ one thousand I I I work with

one thousand, uh I I work worked hard. Um you know I thought okay well maybe maybe it's good enough to be to be five five times bigger than the uh leading benchmark of the area. Um right, but that's that's our take. Um yes, we bench uh sim similarly uh the the most most popular version of it is the verified uh which has the five hundred examples.
Um right, so top head back you image image that, right? Uh you do you do turn for some bad or on image that, no one no one has any doubt about the s the physical significance. Now we have these the ra but that was a classification, you can guess that correctly and everyone realise you you cannot have a small task set. Um now now we have the conflict complex generation task.
And I would say it's a little bit doubtful, right? You can certainly make an argument that if you make your model work really hard and solve hard problems, then each problem counts for more. Yeah, here I just include one example from human eval, right? Yeah, basically you have a prompt to do a simple programming question.
And the correctness is evaluated by a test, right? But you only gather correctness feedback. So for humans, I would say my intuition is that you can actually only ask very few questions and get a pretty good reproducible and reliable evaluation.
Right, so that's what all the kind of competition, marathon code competition does, it's what a lot of interviews does.
Um, yeah, and taken to an extreme, I think there's certainly some merits, right? So if you solve an important major open problem, people are, we are not going to say that, well, that was only a sample size of one. We don't believe you actually did anything important.
Um right and and usually these things you you really have to work hard produce a very long long answer right and you you ha you and in doing this you you show kind of a mastery of the field and all the background knowledge.
Yeah, so right, so if I try to illustrate this, it would be, okay, so here is the benchmark, right, and you get some of the questions correct, some of the questions incorrect.
Um and in the benchmark, in our current setting, they can contain some very hard questions. Right so suppose one of them is a prove uh P_P_ not equal to N_P_ um and and right and you you check you check the proof.
But if you get the case that um okay so so you you you you did the proof but but you cannot you cannot define what what is the what is NP or what is the or a simple problem in a in a area um then then probably I I suspect you you may be maybe copy that somewhere uh and don't don't really understand the domain. Um right so so the question here for for bench for for benchmarking is that
are small, right, so first is A, right, so small benchmarks are not reliable even if they contain some hard general problems or B, right, because solving a single hard problem could be significant already, so we can and should use small and hard benchmarks. So that's a question I kind of wrestled with a bit.
Um, I think I, right, I think definitely there are the cases where where it could go either way, but, uh, but for the current evaluations, uh, now now I'm currently I'm strongly leaning that A is the case. So you despite having these very hard problems that's potentially in there, um the the current current evaluations are very very noisy.
And the reason is we cannot find these really special problems in, you know, current benchmarks, like major open problems. So I will show a bit of the intuition.
So here here is the human human evolve. But but each each column is a model, right? So on the left side, you have the better models, right side worse models. Each row is a problem in human evolve. Right. So so green means this model got that problem right, red means the model got that problem wrong.
um and uh right and it's double sorted for for model quality and the problem difficulty just based on me um and and then you immediately see right so on the better model your gpt and clouds uh still sometimes fail on relatively easier problems
And on the very hard problems, sometimes you're one of your worst models gets guesses correctly. So right, as opposed to say you only have a few problems where only the best model gets correctly. So we see some of those almost all the evaluation benchmarks.
So that's pretty unreliable and so you try really hard to find if there are these special problems. If there are, then you can look for them and improve the quality of your evolve. Right, couldn't find them, but instead found that what models are pretty unreliable and very unpredictable in where they fail.
So that's a bit disappointing. We still need to realize, currently the best solution is still making bigger benchmarks.
And it's very hard because each example is much harder to make than an amnesty example. Okay, but now I try to turn this into a bit of a more useful direction, right? So because there are no special problems that you really need to pay attention to, and even if there are, your model still fails unpredictably.
It makes random mistakes. So really you can't do just do the statistical testing on these very very hard benchmarks still. And right under the
I guess uh yeah, I'll I'll skip some of the details but basically um you can characterise the noise level of your uh R_O_M_ evaluations based on the identity of the benchmark along.
Right, so you don't need to rely on the authors to say, oh, this is a statistical significant finding. For the most part, you can just see, okay, which benchmark is being used. And here is the very likely noise level. For the most part, there is a surprisingly narrow gap between the minimum and the maximum.
Um uh yeah, so uh those are really take takes on number in there. If it's not not in the range, it's uh probably not not uh significant. So uh so we did did this comput computation and uh ho hopefully um helps us to oba better uh better understand the evaluation numbers. Um
Yeah, so as I think to to conclude it's a some some very exciting time for agents and the code execution really the repo level agent is general enough to capture many very interesting problems and for for instance we are always provide the open recipe to do well using open weight models and our ones style RL.
Um and then to think a bit more about this kind of evaluation we will show that uh evaluative noise can be measured almost universally for each data set.
Um yeah, but okay, so until until truly open problems are solved, I would always have a bit of dots on on the validity of the this uh uh u evaluation and until then using the increase the size to to reduce noise is uh still seems to be to be the best way rather than the subjective quality of uh your your evaluation. Um yeah, that's it.
Thank you. Thank you, Sita, for that great talk. It's always nice to see industry contributing back to open science uh with these open source models. Uh do we have any questions from the audience? Okay, I actually have a question. Um so it's somewhat surprising to me that the model learns to reason about concepts such as

to reason by concepts such as whether a solution is like idiomatic Python or not. Because if you're using sim like string similarity as a reward, a lot of patches on GitHub will not be particularly idiomatic. Do you think this is a core limitation of the current approach that would go away with something like execution-based rewards? Or do you actually think that string similarity rewards get you most of the way there already?
Yeah, well, we are also trying to, like, yeah, so no strong stance on that yet. I guess, but I would say for even if you do execution, right, that doesn't mean ground truth.
There are you can easily find instances where where you execute the path that has when something is still wrong or vice versa. Um right well I guess for the idiomatic uh uh case um example right um yeah really really I think that that still comes from eliciting on the reasoning um mode.
Right. And there is a lot of knowledge stored in your base model. I don't see any reason a priori like training on PRs will be better at the math but but if you you can elicit the reasoning mode and that is a better better at math that would be my explanation of that. Okay, cool. Thank you. Any more questions from the audience? Yes.
Thank you for the great talk. So my question is related to the first part of the presentation. Swirel. So d uh like in deep-sea carbon they have mentioned that the reasoning models are not performing well on uh agentic tasks like Swibench. Do you think it's because of the over-thinking that happens during uh like between the thinking tokens because for
A lot of the agentic tasks you need to take actions and then reflect. So if we like decrease the the context required for thinking maybe we observe better performance. Um okay, yeah. So so I think uh there uh
Well, at least if I understand them right, they're they're not saying that doesn't work, but they are just saying you you have to do a lot of work, uh especially on setting up the execution environment and make them run fast enough uh ki kind of things be before before it works.
Um you know I actually we are seeing some early evidence that you take care of some details you you get uh you you get it to work. If you look at the clauses or trajectories of doing how doing R_L_ and that uh uh also works pretty well.
Yeah, but for now under this setup you have to, right, you have to draw all these containers. But that's a big difficulty. Maybe, right, that's the, I think one possible way forward is you make the whole thing more open-ended instead of having humans set up the containers that be part of the problem as well. And that's actually a more more elegant framework to train on.
Yeah. Awesome, thank you. We'll take one quick last question. Thanks. Uh great talk first of all. Uh so you had a slide about intuition on human. You had a uh pre slide upon intuition on human eval and how the these benchmarks are super noisy. Sometimes uh great models even fail on easy problems. Yeah. Do you think that's because uh they have seen similar problems in their training data and they cannot really reason about the code?
and some of the vegan models are capable of solving hard problems because of the same reason. Yeah, right. So some degree of contamination is definitely a potential explanation for all this, right? So no matter how weak the model is, if it has some basic memorisation capability, it may solve very hard problems. And
Yeah, but isn't it almost impossible to fully prove that one way or another? Yeah, well, I think in some sense it's consistent with us getting lost, right? If that's your model of how it works. Yeah. Right, the root of the cause, I'm not sure.
Alright, perfect. Let's thank Sita one more time for that excellent talk. Now that's it for our invited talks this morning. But before we go on break, we're gonna have a very short presentation from a representative of the UK A_I_ security institute. Um if you're interested in verification, I'm sure you're aware that, you know, building secure intelligent systems is definitely fertile ground for these sort of ideas. So
Hopefully you'll find it interesting to learn a little bit more about the stuff they're up to at Issey. Hi. Um thanks for the introduction. I'm a research scientist on our alignment team at the UK um AC Security Institute.
I'll try to give a sort of lightning overview of the different research we have going on in case it's of interest to you. Broadly, we're interested in risks posed by models on a lot of possible threat models. We're interested in misuse risks, which can span from starting with the data.
Looking at data poisoning mitigations, data filtering for misuse, and down to all the way through training, post-training, stress testing methods like jailbreaks. I'd say our approach is broadly problem first, so we're interested in looking at concrete threat models and then looking at what research can mitigate those. Beyond...
The well -known misuse models were also looking forwards at problems like control, which means monitoring for reward hacking and possibly other autonomous system behaviors. And I'm personally on the alignment team where we think about issues that will arise in the scalable oversight regime. As we've seen in some of the talks, there are questions around what the
Reward function should be both in verifiable domains like code domains and beyond in open -ended scientific questions. We also have policy, societal resilience, and other areas of work.
I think it's also worth mentioning that we're interested in broadly, we're currently running an RFP across our research unit, and so we're interested in applications for academics with work aimed at safety in all forms, and I think a lot of that involves verification, so be excited to take applications. This is under our challenge fund. I think taking a step back.
My team in particular and broadly at AC were interested in looking at how do we get to safe AI. So currently this means mitigating accidental risk. You want to know, I think an example that we heard earlier was, can we certify that a database is
will not lose data on crash and reset. But I think in the future we'll also have adversarial threat models in mind when it comes to data poison models and potentially misaligned models. And so we're very interested in also thinking about what are the sort of guarantees we need in that setting? What are the sort of invariants which we could be interested in?
which are defined potentially in terms of world models. There's good work going on at also at a sister organization in the UK and ARIA in this line of work on undoing verification with respect to world models. And I'd be excited to hear thoughts on this. Alex, Suli, and I will be at the poster session and keen to chat with anyone who has ideas in this direction. Thank you very much.
Okay, super cool. Uh thank you for that. Um we're now gonna take a short break, probably around twenty, twenty five minutes. And the posting session will begin at uh eleven a.m. Um I just want to say if you do have a poster when you come back from getting your coffee, please find me and Celine and get some of this blue tape. You absolutely must use the blue tape for your poster or we will damage the walls apparently. So
Yeah, that's it for this morning. Hope you enjoyed the invited talks and see you in 25 minutes.













I don't know.















Takk for att du så med.

back everyone to the afternoon session if you wouldn't mind taking your seats. Um sorry about the slight delay due to some technical difficulties, but don't worry we'll we'll make up for last time later. Um so our next invited speaker of the day is Emily First. Uh Emily is a post-doc at the university of California San Diego for which she was a P_H_D_ student at the university of Massachusetts in Amherst.
Emily's done some super cool work on automating formal software verification in the interactive theorem provers' style using L_L_M_s. And that she'll be telling us about today in particular how to better guide the search process using different forms of trial and error. So with that said, please uh join me in welcoming Emily. Thank you. Can everybody hear me okay?
So yeah, hi everyone. Thanks for having me today. I'll talk about using machine learning, specifically LLMs, to automate formal software verification within proof assistant environments. So first, some of you might not know what a proof assistant is. So proof assistant, or interactive theorem provers such as Koch, Isabel, and Lean, allow users to perform formal theorem proving where they can state a theorem, prove it, and then the proof is machine checked for correctness.
A popular application um uh proof assistant usage includes formalising mathematics, and most papers you've seen at ICLR using say the lean proof assistant are likely motivating their work with respect to that domain. But using proof assistants to formally verify software is also something the a the a community should care about.
With the proof assistant you can write your program, specify properties about your program as theorems, and then write mathematical proofs that your program adheres to these specifications. So this makes proof assistants really powerful. But spoiler alert, they're difficult to use. So let me show you what I mean with just a simple example.
So say we have a proof engineer that needs to create a verified implementation of lists and functions to modify them so one such function could be list reversal called rev and then they might want to write some tests like these. So what property are we testing here? Well the length of a reverse list is the same as the length of the original list which is a property that can be formalized as a theorem. So then you
So then if you manage to prove the theorem, you demonstrate that this property is true for your code implementation. And the process of writing a proof with the proof assistant is interactive, back and forth conversation. So here we have a programmer using the Coq proof assistant and they start by stating the theorem and enter proof mode with the proof keyword. And as a response, Coq provides feedback which is the current proof state.
This is simplified view for purposes of the example. It doesn't really look like this sort of iPhone conversation. And in this case, the proof state consists of one sub-goal, which is a theorem itself and is yet to be proven, and the programmer can examine the proof state, think critically about it before applying tactics to guide COC in solving the goal. So here we see the goal is this for all L, and so the programmer can assume the existence of some arbitrary L.
And apply the intro tactic to eliminate the for all quantifier. Now we see the list is um isn't the local context of assumptions. So to proceed let's say the programmer wants to use induction. So that would make it so they now have two goals to solve the base case and the inductive case. And the programmer can continue applying tactics to solve each of the goals until eventually there are no more sub goals left and they're done. So this back and forth helps guide the programmer in finding a proof.
With their final proof maybe looking something like this. So they had to perform a number of resync steps to get to the end. And thankfully, this human effort is not wasted. As formal verification using proof assistants has actually been shown to work in terms of producing better quality software.
So for example in 2011 a project called CSMITH tested three C compilers, the KUK verified C compiler CompCert, and two industry standard compilers, GCC and LLVM. And the project found that CompCert was the only one for which CSMITH could not find any wrong code errors. So no bugs. Well, GCC and LLVM had seventy nine and two hundred and two bugs respectively. So that's a pretty cool result.
But still somewhat predictably, and what I alluded to is even with the help of an interactive theorem prover, the effort required to write proofs is often prohibitive.
Verifying code requires a lot of time and a lot of proofs in relation to your code. So for example for that Koch verified C compiler, the proof is more than eight times bigger than the compiler code itself and took three person years of work. And similarly to verify an OS microkernel, Isabel, it took 11 person years to write the proof script. So there's not a lot of fully verified code out there as a result of this expense.
Okay, so let's do a quick recap. We know that these tools are very difficult to use and thus rarely used in practice as they require high cost in terms of human effort. But we also know that there are potential big gains to be had from using them, being able to prove aspects of our software. So thus we want to occupy this region up here where we have better automation for these tools reducing human effort. So this is the dream.
So are we anywhere near this in reality? Well, in reality, by my estimates, we're approximately here. With the vast majority of work, including my own being in full automation of proof generation, where we've gone from about 10% of theorems being automatically proven to about 45%. But this number also varying greatly depending on what project we're evaluating on. And a big driving force of this progress has been in using machine learning, and of late, LLMs.
And to break down that upper progress a little further, we have lines of research that do machine learning for proof search, naive combinations of that work with automation tools called hammers that deploy SMT solvers and perform efficient automated reasoning, LLM proof search, and finally LLM proof search with both naive and more targeted usage of hammers. So for the rest of this talk, I'll dive into some of my work on using LLMs, why they're a good fit here, and how we guide them to better in their proof search.
So the stars here indicate the papers and tools that I'll be talking about today and some of the rough categories that they fall into.
So first things first, should we even use an LLM in this domain just because we have a problem? Doesn't mean we should be throwing an LLM at it. Short answer though is yes, it does a good fit, so let's quickly motivate why. So LLMs have shown they're capable of very hard problems such as generating code, and have demonstrated what appears to be mathematical reasoning abilities. And since formal proofs themselves are written in code and require reasoning, LLMs are likely to generate useful proofs or partial proofs.
Well, while LLMs are produce good answers, the challenge with them that we all know is that they also often produce well-formed convincing wrong answers, making it difficult in most domains to use LLMs reliably. But proof assistants offer a solution to this challenge. So they can act as an oracle to machine check the proof. So we have Trusted Verify.

So we have a trusted verifier and an LLM that generates inherently untrusted outputs, but together we have a match made in heaven, where even if an LLM generates convincing looking but wrong proofs, the theorem prover can identify and flag that every time. So this makes theorem proving a potentially powerful domain for LLM use.
And in fact, LLMs are winning out of the box. I have out of the box in quotes since they still do need some contextual information, chain of thought prompting, sampling, etc. But, you know, very standard tricks at this point for LLM use in general.
So just to give some rough numbers on a recent CAWK project, so presumably not seen during GPT-4's pre-training, an RNN-based tool got around 12%. A tool doing more classical machine learning applying naive K-NN gets around 22%. And a hammer which deploys several S and T solvers to try to hammer out a proof but notably can't do proofs that require induction gets around 23%.
And GPT -4 slots in just about that. So kind of feels like game over. What have we even been doing? LLMs have already won. It feels like the next generation of LLMs, even if they're trained for general use and reasoning, will likely continue to reason better and better about proof. So maybe we should just wait for that to happen.
But let's not sit back and wait. It's just barely inching out these other tools. There's still a lot of room to grow, right? It's only getting 25% on this project, not 100%. And it's only using classic LLM tricks, not anything interesting proof-related tricks, right? So how do we continue to build on this immediate success and work towards that sort of dream that I painted earlier?
So we can attempt to guide LLMs better by controlling their search through the space of possible proofs. And so
When we think of LLMs performing search, it's important to understand the possible size of steps that they can take at each point in the search. So small steps amount to predicting the next tactic based on the current state of the proof, while big steps amount to predicting entire proofs from the beginning. And LLMs can do both, right? Like both are doing next token prediction, you're just choosing when to stop generating.
And to increase the chances of finding proofs, we sample from the LLM to get multiple attempts and then check each attempt using the proof assistant. So checking a tactic amounts to answering the question, is the new state valid or not, while checking a proof is whether or not the proof is valid.
And there are pros and cons to doing each of these things. So the pros being that with small steps you have access to the proof state to base further predictions on; and you have the ability to make partial progress in your proof even if you don't finish it. It's not like an all or nothing thing. With big steps, predicting entire proofs is a more maybe in distribution task with how LLMs were pre-trained. As they were trained on whole cohesive documents, maybe even seeing whole proofs during pre-training. And their proofs display
high-level reasoning proof plans. So alluding to LLM's emergent reasoning abilities, right? But the major cons of each are that with small steps, without
high-level plan, the model could waste time going too deep down a wrong path during search, and it is less token efficient to predict just one tactic tactic at a time as you need to process the resulting proof state and reprocess any contextual information so that they can serve as input for predicting the next tactic after that. And with big steps, on the other hand, a s a small mistake could be catastrophic, as it's all or nothing.
So whether an LLM is taking small steps or big steps, we know that it won't always get it right on the first try, right? So on the way to finding this successful path here, it would require some trial and error, just like humans undergo when doing proofs. So a trial could result in a proof system error, meaning that you have to backtrack along the path, and even more subtly, a trial may just end up being unfruitful, which the proof system won't really warn you of explicitly, but you would still need to backtrack.
So all these trials and errors and failure modes have the potential to be useful for improving LLM proof search, but this information has been somewhat underexplored in prior work.
So the work that I'll overview now will touch on L_M_S using trial and error in different ways. So balder and cobblestone are mainly focused on answering the question of leveraging error and proofs while trial master focuses on leveraging unfruitful paths. And just a a side note, these projects were implemented all for like different proof assistance, so they're not I don't compare them together, but don't worry about that.
So in addressing that first question in our exploration with our tool Balder, we found that one way to leverage error and proof is to use the L_L_M_ that is to train an L_L_M_ to fix its own mistakes given error messages. So with Balder, we fine-tune an L_M_ to predict entire proofs at once and check those proofs with the proof assistant and fine-tune L_M_ to repair these protections using the error information outputted by the theorem prover and the previous bad attempt to try to generate a whole new proof.
So to create training samples to fine tune these models, we extract theorem statement and ground truth human written proof pairs to serve as proof generation model examples. Um and then after a proof generation model has been trained, we can take each example uh theorem statement in the training set and use the proof generation model to generate potential repair examples. So it'll only become a repair example if an error is returned when the candidate proof is checked using the proof assistant.
And so these errors are indicative of mistakes that an L_L_M_ will be typically making, right? So now our proof repair training example is an augmented version of the original proof generation example where the source is now theorem statement, incorrect proof, error message, all concatenated and the target is the human written proof.
And so for the same infant's budget if we compare an approach that only generates proofs, so the blue line with an approach that generates and then attempts to repair, so the red line, we see that the repair approach consistently outperforms the generation only approach.
And to shed some light on where these gains come from, we trained an ablated proof repair model. So here the brown line is a generate and repair approach that is given the same information as before, except the repair model does not see the error message. And so while it's able to prove some additional theorems when doing repair, it does not surpass the performance of the generate only approach when normalized for inference cost, suggesting that the information in the error message is crucial for the observed gains of the repair approach.
So its nationals ask what if we tried to repair and attempt again? And so we evaluated this where we generated, repaired and then tried to repair again. But we found that while the second repair attempt did repair some more proofs it does not do much better than if you had just spent all that inference cost on generating from scratch. So to make iterative repairs a more viable approach greater consideration is needed to train the repair model with an eye towards those successive repairs.
So Falter relied on the LLM to fix our own proofs, but with our common sense approach we investigated a different solution. So that is to rely on the proof assistant to take the error in proof as is, execute as much of it as it can to break it down, thereby allowing us to reform some sort of local exploration.
So, let me motivate this quickly with an example. So, say an L_M_ predicted a a whole inval uh inval invalid proof for this given lemma. Um does it have any merits, such that we don't need to regenerate a completely new one. So, we see in this in this first row uh this first line here that it decomposes the goal into two sub-goals and that each bullet indicates an attempted proof of a sub-goal. So, uh a sub-proof.
So this decomposition is indicative of a plan to make progress by dividing the problem into smaller, more manageable problems. So let's leverage that plan. So our key insight is that LLMs generate high -level plans even when their proofs fail. And we can use this high-level sketch and invoke the proof assistant so that we can make localized fixes where we can then have access to the proof state again.
So back to that example to see how we can leverage this failed proof. So you localize the errors and see if they occur in the proofs of the sub-goals. So the first line is fine, doesn't have any errors, it can stay the same. And we can attempt to just repair each of these sub-proofs with the use of the hammer where one succeeds and the other fails.
And so while we now appear to be at a dead end with the proof of the first subgoal, recall that we have access to the L_M, and so we can recurse, applying this procedure at the subgoal level, where we first sample for a candidate sub-proof. Again we can localize the errors in that sub-proof, and attempt to repair the error with the hammer, and this time it works, and we're done.
So this can be generalized as a divide and conquer approach, where given a theorem and some contextual info, we build a prompt to send to GPT -4 and sample for whole proof attempts. We can take the sample proof, try to run them in our fail safe mode in order to localize erring portions of the proof. If there are no errors, we're done. If there are, we take the partial solution with erring sub proofs and first attempt to repair those calls to the hammer.
they can be repaired great, otherwise do recursion. So, on a benchmark of theorems published on GitHub after GPT-4 is reported pre-training cut update, we have that Cobblestone is able to prove more than prior tools, and it has added value over them as well. But a natural question is, is Cobblestone just an aggregate of LLMs plus Hammer? And so while Cobblestone's performance without being able to

While cobblestones performance without being able to use the hammer, so just simply recursing and sampling from the LLM drops significantly to less than that of the hammer. Cobblestone does significantly better than a simple naive combo of LLMs and hammer.
And so compared to a search that is just taking small steps, Cobblestone is able to prove theorems that require longer, more complex proofs, such as these two which required many tactics, many subproofs, and even sub-subproofs. So if you can see, there's like some double bullets that shows you're getting deeper. And sometimes we see Cobblestone does struggle though, where a simpler search strategy does not. So for example when
Hammer can't perform induction, which when Hammer can't perform induction doesn't succeed on a theorem. A valid proof could have simply been of the form induction and then hammer on each sub-goal, but Cobblestone's initial proof sketch would sometimes overdo it. So predicting some long complicated proof and not getting this first initial very simple decomposition. So having the granularity at which we search.
be a dial that is sort of tuned could be a fruitful direction going forward. So now looking at our um second question that we posed earlier, um we'll investigate how to leverage unfruitful paths with the the short answer being that we need to devise new methods to generate and collect high quality failure paths for L_L_M_s to learn from. So these paths don't just exist in the wild right now. So let me explain.
So recall that the error increase leveraged by Baldwin and Kaufman is so unarticulate of the errors that an LLM makes. So maybe even along the lines of hallucinating an identifier. But humans also make errors all the time when we're proving, going down unfruitful paths and only realizing much later. So however these realistic high quality failure paths are never saved, only the final proof that worked for them is. So
Here it would be this correct path in this tree search. But you could imagine extending proofs the human wrote to include information of the failed search paths and when somebody backtracked and learned and then we can like learn from these types of proofs. So see here we have a correct proof annotated with a failed path and a backtrack instruction.
But how would one get these high quality trial and error paths at scale? Well, for the domain of intuitionistic propositional logic, it is possible to generate these high quality failure paths. So we generate a propositional logic data set called PropL by uniformly sampling from all possible theorems utilizing a bijection between natural numbers and propositions to ensure representativeness.
And their proofs are constructed using an existing deterministic algorithm called focus proof search, which utilizes a focusing method with polarization. So this allows us to incorporate a detailed trial and error search process that includes both successful and backtrack steps. So thus our data set is complete, scalable, and representative. And it serves as the perfect playground to see whether we can learn from high quality trial and error information.
So our ground truth when training is now the entire search tree, including the failed paths and backtracking info, and we use this to fine tune LAMA 7b, which allows the LLM to learn from the failed paths and also when to backtrack. So not having to rely on an external search system like DFS, like depth first search.
And then at inference time we can greedily decode at each step where we either predict the next tactic and then use lean to apply the tactic and generate the next state or we predict which state to backtrack to.
And so we look at both an in-distribution task where the training and test proofs are of similar length and an out-of-distribution task where training proofs are shorter than the test proofs. And so while for the in-distribution task, that's a lot to say, in-distribution task, trial master and a DFS system perform similarly. So both nearly mastering the task. For the out-of-distribution task, trial master outperforms DFS with lower search costs and effectively learns how to backtrack on its own.
And Abolition's approach showed that the use of trial and error info and failed search paths greatly helped in this way.
And quickly motivated by the success recently we have collected real human written trial and error information from novice proof assistant users so namely students doing programming language homework assignments in Lean and Cock by recording their keystrokes with their permission of course. And so we hope to analyze this data and collect even more and do some bootstrapping and be able to apply this technique to a more general domain. So if you know any folks willing to participate in this.
data collection, or if you have any other ideas in this front, please let me know. So now looking to the future, how do we continue making progress towards the dream? We could try continuing on the current path of full automation, though this is a path with more resistance as gains are hard to come by. So instead,
And where like the power probably really lies is in helping humans, letting humans interact with automation tools. So you can get much further this way and so we'll have to, you know, incur some cost, so more human effort, but likely see more gains along a path like that, where eventually you'll get to some sort of human AI collaboration.
Um, so my collaborators and I have built some interfaces to explore different human-AI interaction modes in the context of proof generation. Um, and we'll be conducting some user studies to understand if they are helpful or not. So even though we have a path to the dream, I didn't paint a complete picture. In reality, this is just one piece of the verification puddle that needs better automation. This is just the proving aspect.
Some of the real struggle comes in generating the specifications and code itself that you then prove. And there's already been some parallel work outside of the proof assistant realm on using AI for specification and code synthesis, and there's many ways in which these pieces can interact with one another.
And where AI can help in these interactions, where you use the spec to guide the generation of the code or in the reverse where you have code and then you want to conjecture specs to see what properties currently hold and as you generate your proofs you may realize you have to refine your specs or synthesize more helpful dilemmas to get you unstuck and your proving could also reveal bugs in your code that you have to update.
And so while AI could help in automating these processes, again, the use of human oversight and input and effort would be vital to its success.
So quickly, one such line of research that my collaborators and I have been exploring in this direction is specification generation via conjecturing. So in our approach, we take functions, so here for lists we have append and reverse, and we also supply a template that shows the shape of a desired lemma. So here this template describes an associative binary function F. And we can feed them both to a symbolic engine.
which exhaustively attempts to instantiate the template with conjectures. So here it found that append is associative. So the use of templates like this allows for the search space of symbolic tools to be restricted, making them more efficient and likely to find something of interest to a user. So this all sounds great, but who does this effort of supplying these templates? Well, could be a human, as they know best in terms of what they think is interesting or not. But
An AI could learn these shapes and patterns across lemmas to uncover what are generally useful templates. So for our tool Lemonade, for the Isabel proof assistant, we train an LLM to predict templates from our template language to feed into a symbolic engine. And when we compare our neuro-symbolic approach Lemonade to an existing purely symbolic approach QuickSpec that is only able to generate equational laws,
And a purely neural baseline of our own creation that conjectures lemmas directly. We see that on some projects, Lemonade outperforms these approaches and that importantly, all these approaches are complementary, conjecturing more useful lemmas together and conjecturing different kinds of lemmas and not just all equational laws.
And so for all these processes here and more, there are many approaches we can explore to get humans and AI to work together, but unlike with proofs that can get away with complete full automation, human oversight, especially with respect to specification generation, is probably going to be unavoidable, as only the human can be the one to have that sort of official sign-off on whether their requirements were met.
So before I conclude, I'd like to thank all my collaborators, some of whom are pictured here because they had pictures available online. So you don't have a website, I suggest you get one. So yeah, in conclusion, today I spoke about my work on guiding LLMs towards automating proofs and how I believe the path.
forward to a bright bug-free future is human AI collaboration on this front and continuing to strive for AI automation tools for the whole verification pipeline. Yeah, feel free to reach out to me via email if you'd like to work together as I'll be starting a faculty position in the fall and I'll take any questions at this time. Thank you.
Thank you Emily, it's great talk. Um I think in the interest of time we're only gonna take one question, but Emily will also be on the panel later today. So if you have more questions, you wanna pick her brain more there will

more questions you want to pick our brain more there will be an option to do that later uh do we have one question from the audience? If not, maybe we will try and draw back some of that time now. But Alright. Emily will be on the panel again later, so uh save your questions for then. Alright, let's uh thank Emily one more time.
Okay, so for our next invited speaker, we're going to be joined by uh Charlie Snell. Charlie is a PhD student at U_C_ Berkeley, uh where he is advised by Dan Klein and Sergey Levine. Um his work focuses on the intersection of deep reinforcement learning and natural language processing. This is obviously a super hot area right now, so I'm sure we're all eager to hear more about this. Um please join me in welcoming Charlie to the stage.
Test. Okay. Yep. Yeah. It's live. Start. Full screen. Oh. Okay. Full screen on the other screen. I can't. Oh You could probably slide it over. There we go. Are you Oh shoot. mirroring or
Well then maybe I'll start up. Sorry. Can't do mirroring.
Okay, now. This looks good. Yeah, we can see the screen now. Perfect. Oh it's sweet. Okay. Um We'll screed that with you. It might just be a lag a little. Yeah. Is it just a lag? Should I try this Okay, instead? so it's probably just a lag. Is there a lag on the There might be some. Should we go together?
The changing slide seems slow though. Is it laggy? Yeah. Is there a time lag during the previous presentation? You should Yeah. Yeah, sorry once again for the technical issues, we'll be proceeding shortly. Yeah, yeah of course. Okay. Thank you. Give me a sec. Mic. Oh, it's resetting. Okay.
I'm gonna change this. Uh I mean there was the yeah, there was one. Oh, okay.
Oh it's not showing up now. Oh they they might have taken it off. I think We should have the odd another item Right. in the view display. Extend display, yeah. Choose a new two view, extend display. Wait, which one?
You chose the metal extending split. Yes. Put it you I choose should extended. choose the extended split. So it is? Extend this split? Yeah. Wait I did that and it messed it up. Are you sure? If you're sure. Okay. Okay. Then you can uh show it. Create visual. If there's a lag it might take a second. Yeah, maybe just give it a second. I think it's just lagging. Oh wait it just went. Just laggy.
Thank you. Sorry. May I? Yeah, go ahead. Sure.
Yeah, the mirroring seems to work. Um, told you have the presentation. Okay. Just go to Safari. Yeah. There you Oh, great, so it it not laggy now? Okay, cool, cool. Amazing. Thank you. Um. Okay, I'll get started. So
I'm going to present this work that I also presented earlier at the conference in a little more detail and then I also have some like additional discussion on test time scaling some of the recent developments around that and like sort of a different perspective on how it relates to this question of like can these test time scaling techniques generalize outside of verifiable domain.
Um yeah, so this paper is uh some work I did with some collaborators during an internship at Google. Um and so the the basic premise is when you scale pre-training, you get sort of these uniform improvements on many tasks kind of simultaneously. But there are some tasks where the scaling is very slow. So on very challenging problems like
IMO problems or just really hard math problems or coding problems, you might need to explore multiple approaches to solve the problem. There's also just some very simple problems that you can come up with which fundamentally require doing some kind of search. And so you can't just directly predict the answer necessarily without memorizing every possible solution.
And so one way to potentially get around this is allowing models to do search at test time. And so in the past in AI we've seen by giving neural networks the ability to use additional computation at test time by doing some kind of search, you can substantially improve performance. So in the case of AlphaGo, once you give the policy network the ability to do search over the game using Monte Carlo Tree search algorithm, you can...
boost performance significantly to improve beyond human play and more recently with language models we've seen with a1 o3 deep seek r1 which I'm sure everyone has seen at some point like by giving these language models additional test time compute we can substantially improve performance on these very challenging math tasks
And so all of this has led people to wonder, is pre-training dead? Is this test time scaling going to be the more effective access for improving language model capabilities going forward? And in our paper, we kind of get at this question by comparing test time compute and pre-training. We want to know when test time compute is better than pre-training.
To do this analysis, we first introduced this notion of compute optimal test time scaling, which is inspired by the idea of compute optimal pre-training, but in this case, how we define this is for a given problem at test time, we want to select the best configuration for our test time scaling algorithm. So this could be the beam width we're using in the search algorithm or which search algorithm to use. We might want to vary this depending on the question we're given.
And in practice, how we implement compute optimal scaling is a little bit more coarse. We bin questions by their difficulty and select sort of the best performing approach within each difficulty bin. We look at sort of two different ways of scaling test time compute in the paper. One is by doing search against a verifier model, and the other is by fine tuning a model to iteratively revise answers in sequence.
I'll start with the verifiers. So we look at a few different ways of doing search against verifiers. The simplest possible way is by sampling multiple solutions, passing it to a verifier model, and picking the solution with the highest score under the verifier model. We also can train a verifier to provide a score at the end of each intermediate step in a solution.

intermediate step in a solution. And then we can do a more sophisticated beam search procedure with between each step.
We also experiment with extending the beam search using these look-ahead rollouts to get the score at several steps in advance with the hope of further improving the accuracy of our ability to score the intermediate steps. This is closer to how Monte Carlo tree search is done. To train the verifier which scores intermediate steps, we call this a process-based verifier or PRM.
to train it we apply the approach from this paper called Math Shepherd by weighing it all and what they do is they train the they train the verifier on it with Monte Carlo rollouts so at each step you're going to roll out several times and then get the accuracy of each solution under the ground truth and then you're going to supervise the verifier on the rate of correctness at each step
Using this verifier, we then compare several different solution, uh several different approaches to doing search. So we find that the beam search performs best at small budgets. Once we go to larger budgets, best of end uh is more comparable to beam search.
So the benefits diminish a bit. Look-ahead search, on the other hand, generally underperforms just due to this high cost of the look-ahead rollouts. It's not Pareto optimal to do this extra rollout with our verifier. In general, all search methods outperform sort of the straightforward majority baseline. So by using a verifier, we can improve over this.
Once we look beyond just the aggregate accuracy and bin questions by difficulty level, we see somewhat different trends. On the easy questions, beam search shows some slight signs of over-optimization, and it's sort of the higher budget's best of n is kind of the best you can do. On the medium and hard difficulty questions,
BeamSearch shows pretty large improvements over best of n, and then on the very hardest questions over here in difficulty bin number five, all methods struggle. Since different methods kind of perform best depending on the difficulty level, we can select sort of the best setting per difficulty bin and create this compute optimal scaling curve. And this improves test time scaling efficiency by a factor of four times.
Now moving on to how we do test time scaling with a revision model. So we fine tune a model to iteratively revise answers in context. How we do this is we kind of create these synthetic traces. So we're going to take a base model sample several times from it and then create a chain of incorrect answers followed by a correct answer.
And then we're going to fine-tune the model to generate the correct answers conditioned on the chain. Once you do this, you get a model that can kind of improve its accuracy iteratively over the course of revision. So as we sample more revisions, the pass at one rate is going up. The model is effectively working. There is one kind of quirk here due to how it's trained. Sometimes the model will revise a correct answer into an incorrect one. So to account for this...
we will kind of just fix the budget and kind of determine the stopping condition post hoc. So we'll sample and outputs in sequence and then use a verifier to select the most likely correct answer from the chain. And once we have this setup, we have this model, we can sort of sample in a couple different ways. We can sample a bunch of answers in parallel.
Given a budget of n, we could sample all of our answers in one long sequence, or we could do some ratio of these two. And looking at sort of the trend by difficulty level, we see that on the easier questions there's a preference towards sampling one long sequence of revisions. On the harder questions there's kind of an ideal ratio where you want some amount of parallel sampling. Some intuition for this could be that on the easier questions the model already roughly...
He roughly knows how to solve it. It just needs to revise out some of its errors. On the harder questions, it may need to benefit from the diversity of parallel sampling so that, like, it can explore different high-level approaches to solving the problem. And then again, if we select sort of the best sequential to parallel ratio for test time scaling here, we can improve the efficiency of the test time scaling curve.
Now that we've looked at uh how to scale test time compute with these two techniques, we now want to look at uh what's better, scaling test time compute or pre-training, and what are the trade-offs between these two. So how we set this up is we can use a much larger language model, specifically a fourteen times larger model, without additional test time compute. So we're gonna sample one answer from it. Or you can use a much smaller model and uh apply additional test time compute using the techniques I will
as I just discussed. To equate sort of the flops between these two, we need to take into consideration the number of inference queries we're expecting. So if we're, for example, Google and we're serving our model to a billion users, then if we 10x our test time compute budget, it's going to add up very quickly and quickly exceed the cost of pre-training even the larger model.
If we're just running a few inferences, maybe our number of queries far falls much lower than our pre-training budget, then we can afford to really scale test time compute before it makes any kind of dent. So once we do this analysis, we found that on the easy and medium difficulty questions or in settings with low inference requirements, scaling test time compute can be preferable to scaling parameters.
And recently, and so I guess on the harder questions, scaling parameters was better, or if you have a very high inference budget. There have been a couple works which have like subsequently reproduced our core findings on this, which was great to see. But more recently, or I guess, yeah, using fairly, so the main takeaway we have from this is using fairly simple methodology, scaling test time compute can greatly improve performance, and some settings outperform parameter scaling.
However, more recently there have been a number of very exciting novel approaches to scaling test time compute, which have shown very impressive performance. This is the work you've probably all seen with O1 and DeepSeekR1, where you train the model with reinforcement learning and it learns to generate these very long chains of thought which exhibit these somewhat emergent behaviors of backtracking and revision completely on their own.
And these techniques seem to benefit a lot on very hard questions. So you see a very strong improvement on AMI just by scaling up the test time compute. It's likely that you would see slightly different conclusions than the ones we drew using this technique and would be an interesting direction for future work to explore.
But given all of this, a natural question that is often asked and is a good fit for this workshop is this question of, are these improvements from test-time scaling limited strictly to these cleanly verifiable settings like code and math, or can we also get these techniques to work in less verifiable settings? I'm going to present a slightly unique perspective on this. I'm definitely not going to answer the question, but hopefully get at it from a slightly different angle.
So we can think about test time scaling as enabling a form of data efficiency in the learning algorithm. So if you think about performance on Amy over the last year, the pre-reasoning models like GPT-4.0 were scoring pretty poorly, around 13%. If you believe the scaling law,
that on downstream tasks, performance will kind of somewhat smoothly improve as you scale up compute and data. Then if you had an enormous number of question solution pairs, you should be able to get to this very high accuracy of like 90 % on Amy. But you would need truly a large number of question answer pairs to do this with, you know, just predicting the solution and no additional test time compute. By applying the sort of O1 test time scaling, we're able to get
to get there with presumably much more reasonable amount of data. So we can think about test time scaling as effectively enabling a form of data efficiency in like shifting the scaling curve to be more data efficient.
And so then the natural question is why? Why is it more data efficient to use additional test time compute? Is there something special about the structure of verifiable problems where we can construct a single verifier, like just have a single final answer for a math problem and then perform infinite rollouts that enables this data efficiency?
I guess one recent counter-argument to this is there seems to be a surprising effectiveness of distilling these extended chain of thoughts, where you can just take a couple thousand examples of these long chain of thoughts and get a base model to significantly improve on these difficult math tasks like Amy, even coming up to nearly matching the performance of some of the early O1 models. I think this specific result...
needs like a little bit more rigorous examination, but I think it's very interesting that there's such an improvement from distilling these trajectories. Several years ago, I had a paper called The False Promise of Imitating Proprietary LLMs, where we show if you do this distillation on a small amount of fine tuning data, it doesn't improve the performance of the model as much as you would expect. It mostly learned the style, but these extended chains of thought seem to really improve performance just from distilling a few thousand examples, which is very interesting.
Um, this leads to the question, like maybe there's some

So this leads to the question, like maybe there's some more general thing here. Do LLMs potentially generalize better from a small amount of data when the behavior they're imitating is spread across these long chain of thought? Is there something more general about this form of data that is a little more efficient for learning? Or maybe is the data obtained from RL optimization better for generalization than standard human annotated data?
I'm not sure the answer to either of these, but I think they're getting at this question of, is there something more general here about this long chain of thought that could be potentially applied beyond cleanly verifiable settings to enable more efficient learning broadly? This is important because as we continue to scale LLMs, data efficiency will become a key bottleneck.
We know that if we train LLMs on higher quality pre-training data, we'll get a better language model. And the highest quality data is relatively scarce. So this fundamentally limits how far we can really push pre-training naively. So this is sort of my rephrasing of the question of can we apply this outside of cleanly verifiable settings? I would sort of rephrase it as can we develop algorithms that broadly improve data efficiency?
So test time scaling seems to improve data efficiency on some specific domains. Is there something more general here we can extract out that can enable a little bit more data efficient learning broadly? That's all I have. Happy to take questions. Perfect. Thank you so much, Charlie. We do actually have time for a couple of questions, so
Let's have that one over here. Uh, okay. Yeah, so I guess um one part of this analysis is this you know analysis in terms of like total flops at inference time, right?
Um but you know in practice there's a certain amount of flops that you can do simultaneously because you know we have GPUs. Um Yep. So I wonder what the scaling looks like if you say you know we can we have this width we can use that either to have a larger model or to do best of N or whatever, Mm-hmm. you know, search. I wonder how affects the scaling uh curve.
Yeah, I think that's a good question. I think there's been some like recent work on this. I think basically what you're getting at is if you do this parallel sampling of multiple answers.
A big advantage here is that you can potentially improve on latency. You're not sampling one very long chain of thought where you have to wait a long time. You can sort of spread your flop's budget over many things in parallel. I think that's really interesting analysis. Some collaborators of mine recently had a paper on trying to optimize models for parallel sampling and one of the results was showing like you can really push like if you have latency on the x-axis you can really push up performance by doing this.
Um so yeah, I I think that's like a really uh exciting like direction to push test type scaling is thinking about this latency constraint. Awesome, thank you. Any more questions from the audience? Thank you. Uh how do these uh revision models uh compared to
the rightly used verifiers. And also you also show that you used verifiers with this revision models uh as well. Like but uh have you found like the frontier on uh what improvements can be achieved using both methods? Yeah, that's a good question. So
Um, as for comparing the two, I mean, in, in the raw results, the revision model is performing a little bit better, but we didn't compare them in the paper because I think there's a few confounders, uh, here, like the, um, revision model is sort of fine tuned on this, uh, data, whereas the verifier, the base model we're doing search with is, is just the base model. It's not been fine tuned on the, um, training data. So, uh, we didn't make a clean comparison. I do think there is an interesting.
And sort of the second part of your question, I do think there is like an interesting thing of what if you combined these two, you did the beam search and the revisions at the same time, and you could do compute optimal scaling over both the sequential parallel ratio and the search algorithm use. I think you could probably get even more improvement from doing that. I wanted to explore this. I didn't have time for this project because of my internship ending, but I think it's really cool direction. Yeah.
Thank you. Awesome. All right. Let's thank Charlie one more time. Cool. So we're going to go into our last invited talk for the day. So we're going to be joined by Nikita Rao.
Nikita is a final year P_H_D_ student at Carnegie Mellon, where she works on A_I_ for code, and in particular she's done a lot of cool work on sort of levering ideas from the software engineer community to improve the reliability and actual usefulness of these L_L_M_ programming tools. And today I believe she will be telling us about her work on verification with L_L_M_s using software testing techniques. Yes. So please join me in welcoming Nikita.
Thank you for having me. So I also had a small thing I wanted to share with all of you. I recently defended my thesis and I will be studying at Google DeepMind in June. So I'm technically no longer a student but yeah today I'll be talking about my work on test generation with LLMs. So we all know.
Elements are really good at code generation, but verifying code correctness can be hard. The traditional way uh the traditionally we check for code correctness in the software development life cycle by using software testing. And this is the most common way of checking for quality assurance in practice. So why is software testing important? It can help us check for code correctness.
Formal verification can also be used to do this, but formal verification is hard. It can help us detect bugs in code. It helps with checking reliability and compliance of code. And it can help verify user requirements. So despite testing being important, it is time consuming and often overlooked. So there is a lot of work in automating test generation.
This includes classical methods like Iwasu -e, neural based methods like TECO, as well as LLMs. A lot of these traditional methods focus on generating test inputs to find edge cases and improve code coverage. But tools like Iwasu -e end up generating tests with poor naming conventions and spurious exception handling.
Neural based methods on the other hand focus more on test completion rather than generation and can only generate one statement at a time. So what are some desired goals we might have when generating tests? Ideally we want the test to have high code coverage, we want to be able to detect edge cases, we want to be able to check for correctness,
So this means that we want to generate tests that don't pass incorrect code, but they should also not fail correct code. And lastly, we would want these tests to be both readable and maintainable. All of these goals seem really doable with LLMs. So here's an example of a test generated by Cochan.
At first glance, everything looks okay. It satisfies a lot of goals that we had from earlier. It's readable, it's it has a bunch of assert statements, it's generating an entire test method. Everything looks good. Except the get balance method does not exist. Codechain ended up hallucinating this method. So despite it being readable, uh the test itself is incorrect. Why does this happen?
Because models are not trained to consider code under test, they're often trained on individual files at a time, and therefore fail to learn the dependency between code and test files. So key insight here is that existing models are trained on separate files, and therefore they can never learn the dependency between them. Our goal with this work was to demonstrate the importance of incorporating software -specific insights when building models.
We do this by creating a line code that's file-based. So we take our code file content, we introduce a code that's pair token, which we concatenate to the code content, and then we attach the test file content to create our code that's file-based. Just to give an overview of the entire pipeline, we first mine lots of data from GitHub, which is then used to pre -train Catalan.
We then use Catalyst to generate tests and evaluate these tests with our software testing framework. So we query GitHub to get lots of projects from Python and Java.

from biotin and java, we end up with close to twenty three million files. We then apply a bunch of heuristic filtering and deduplication techniques, and end up with close to fifteen million unique files. We then apply our alignment techniques to get our co-test file pairs. And this results in close to one point one five million pairs. Here is the distribution
of a all the data that we collected. You can also see on the bottom right corner uh the up an example of what the code test file pair looks like. So we have the code content, the code test pair token followed by the test content. When we plot the distribution of tokens in these code test file pairs,
With most so -called models at that time so this work was done two years ago uh only had a context window of two K_ tokens, which means that we could not make use of all the data that we had. We therefore pre-trained Catalan with a eight K_ context window, which was four times more than the so-called models at that time, using flash attention. So we introduced a novel pre-training signal for test generation which makes use of context when available.
We not only made use of the one point one five million code test file pairs that we collected, but we additionally make use of all the code files and all the test files that we c collected. This ensures that the model learns both the dependency between code and test files, as well as the general coding and test behaviour. So we pre-trained cat alum, which is a two point seven billion po model,
Using autoregressive uh pre-training signal, we had a compute budget of twenty thousand dollars, which is significantly lesser than most other models out there. For our task, we look at test generation. So given the code context, are we able to generate the first test in the file? Are we able to generate the last test in the file?
And I'll be able to generate an extra test in case there are any m tests that in case there are any missing tests in the test suite. When we evaluate Catalan we found that the coverage distribution of the test generated by Catalan is compared to tha that written by humans.
We also found that Cat-Elem is able to generate more passing tests on average, outperforming both Starcoder as well as the 16B CodeGen models, which are much larger and have been trained on a lot more data. This shows that CodeContext does indeed help Cat-Elem generate more valid tests despite it being undertrained.
Now, with Catalan, we showed that learning uh the dependency between code and test files can be really helpful with generating more valid tests. But other other software artifacts we can use in addition to just the code file. And the answer is yes. Software has lots of different artifacts, including natural language specifications, source code, existing tests written by developers, as well as previous bug reports. And we make use of all of these artifacts with DiffSpec.
So to spec is a differential testing framework that makes use of LLMs to generate more meaningful and targeted tests. Before I get into the details of uh how this works, what is differential testing? So given an input,
On two programmes that are supposed to do the same thing. So it's two implementations of the exact same programme, we would ideally want them both to behave in the same way and have the same output. And if they don't, it means that one of the two programmes has a bug in them. So the system that we were interested in testing here is E_B_P_F_ E_B_P_F_ is a framework that supports kernel extension by dynamically injecting programmes into the operator system kernel.
It's widely used by various organisations for lots of different use cases. And it has a specification document that provides standards on how the system needs to behave. So here is an example constraint from the B_P_F_I_S_A_ which states that if the B_P_F programme execution results in division by zero, the destination register should be set to zero.
E_B_P_F_ also has multiple implementations that should all conform to the s specifications. This means that we can check for conformance using differential testing. We mostly look at three different implementations, the Linux, Windows and U_B_P_F_ in this work. So this spec is a differential testing framework
By and we do this uh we implement this by prompt chaining LLMs. So we take all of our different inputs which are artifacts from uh software and we pass them to our the test generation framework. We then take the generated tests and pass it through our evaluation harness to check if any of the tests result in differentiating behaviour. I'll be walking through the framework in
More detail? So the first step we do is given our I_S_A_ doc, we want to extract all the relevant information. So we prompt G_P_D_ four to extract a list of all instructions. Then for each instruction we prompt the model to extract all the specifications related to that particular instruction.
So for example, for the add instruction, um there is a constraint that says that underflow and overflow should be allowed during arithmetic operations, which means that all the values should drop. Next, given our instruction and natural language specification and the source code for all these different implementations, we prompt the model to extract the relevant code snippets for that particular instruction.
We then had the model reason about the differences in implementations and natural language. So for example, in the first implementation, the immediate values were first moved to a temporary register and sign extended before performing the addition operation. Whereas in the second implementation uh the addition operation was directly performed on the immediate values and there was no intermediate step of moving these values to a temporary register.
We also take all of the historical bugs found and prompt the model to generate a list of commonly found bug classes. Next we take all of this context that we extract it from various artifacts and prompt the model to generate a test description. We then use this test description alongside a set of manually written instructions.
To generate the actual test body. Once we have the generated test, we execute it across all these different implementations and it could uh the result of that could be one of these possible execution outcomes. We then evaluate our framework using different evaluation metrics including validity,
Uh we look at the number of differentiating tests we're able to find. So differentiating tests could be something that passes on one implementation and fails on another. It could fail on two implementations, but return different values. Or it could pass an pass or fail on one and throw an error on another. We also look at the complexity and diversity of tests that we generate. So a big question we had at first was, is G_P_D_ four even capable of generating valid tests?
And while it is able to generate some valid text, it does often end up making some mistakes. So some common mistakes are syntactic. Like it might generate text with invalid labels or invalid registers and so on. Ideally they should be caught by the compiler. It could also generate text with semantic mistakes, such as having infinite loops or invalid jump targets and so on. They should ideally be caught by the compiler or the verifier.
For our baseline, we first look at a grammar-based fuzzor where, given the instruction, we which only makes use of the instruction along with the grammar. So all of the tests that we generate using the fuzzor are valid. We also look at an L_L_M_ based baseline which makes use of the instruction, the specifications related to that instruction, as well as some example tests.
We then split up the test generation process into a two-step process where we first generate the test description, followed by generating the test code. Next we add the bug class information. We add the differences in code implementation for a given instruction. And lastly, we combine all of this different context that we extracted. Now I know that there's no sig it appears like there's no significant improvements in validity, and this looks bad.
But it's actually not, because adding all of this additional context helps us generate more differentiating tests, which in turn helps us find bugs. We didn't we manually categorized a sample of differentiating tests for EBBF and found a couple of different types of bugs. Um so these differentiating tests often occur when uh different these tests make use of uninitialized registers, because different

uninitialized registers, because different implementations handle uninitialized registers differently. We found a few potential memory leaks. We found inconsistencies in the way jump instructions were being handled across implementations. There were infinite loops in some tests which caused the E_B_P_F_ for Windows verifier to hang. And there were some tests with call instructions to helper functions. But in this case the differential behaviour is expected.
So here's an example of a test that we generated. So this test passed on Windows. It threw an error on E_B_P_F_ and it failed on Linux. And you can see that both Windows and Linux took two completely different programme paths. Um We also found a test with a potential memory leak in the kernel of Linux, which is not good. It's a big security risk.
We also wanted to check if this spec is able to generalise to other systems and we tested it on BASM. And we found uh two big bugs in visit engine which was a type mismatch as well as an invalid type. Both of these bugs have since then been fixed.
We also found cases where differential behaviour was expected because implementations had different semantics for assertions in unavailable imports. And in the case of the differential tests generated by the fuzzer, we found that the fuzzer had a hard limit of on the memory and table size which in turn led to some crashes.
Now when we look at the distribution of the tests that we generate with Dipspec versus some of our baseline approaches, we see that Dipspec is able to generate a more complex distribution of tests compared to our baselines which generate very simple tests that have less than ten lines of code. And that's also part of the reason why the baseline methods have a higher validity rate.
We also looked at the diversity of the tests that we generate in terms of the number of unique instructions, registers, memory addresses and immediate values used in these tests, and we found that Despec is able to generate way more diverse tests compared to all our other baseline and ablations.
Additionally we found that LLMs are good at reasoning about some types of instructions over others. So they do really well with reasoning about arithmetic and jump instructions. But they're not so good at reasoning about and store instructions. All of the tests that we generated have been contributed to open source. So the BPF conformance repository as well as WasmSpec.
So uh we talked about how LLMs are really good at generating code, but verification continues to be hard. With Catalan in this spec, we showed that using the right context can be strong indicators of expected functionality. But this problem is far from being solved. Reasoning about correctness without an oracle continues to be a challenge.
So there is a strong, test generation is quite different from code generation, partly because there is a strong dependency between the code and test files. So when you look at when you try to generate tests from just the code, we make the assumption that the code under test is correct. However, this might not always be true. You might have buggy code and if you try to generate tests from the buggy code, you might end up with buggy tests.
This is commonly called as the test or oracle problem in software engineering, and it is yet to be solved. A challenge here is that when a test fails, how do you know if it's because there there was a bug in the underlying code or if the test itself was incorrect. This is really tricky. So one way to potentially overcome this is are we able to
synthetically corrupt code and have the module generate correct tests using this buggy code during train time and in order to try and overcome this.
Another challenge here is that LLM struggle to reason about the expected outcome on test inputs. So one way we overcame this with this spec was by actually executing the test on all the different implementations and using deferential testing to compare these outcomes. But there are limitations with deferential testing. So one, you would require multiple implementations of the same programme, which is not always true.
It requires a large input space in order to be able to find this one test that might highlight some differential behaviour. And rootca root cause analysis is still hard because all you know is that this particular test is causing some differential behaviour in these different systems, but you can't really tell which system is doing the right thing and which one is doing the right wrong thing.
Are there other ways in which we can use test execution or external tools to help us? And the answer is yes. Um one way to do this could be by using agents and using these testing metrics to refine generations. So given some programme under test, can we have the agent generate and refine tests based on um
Feedback collected from various external tools like compilation or text-test execution. We can also make use of static analysis or mutation testing, and make uh try to use all of these systems as a feedback from these systems, so we can try to optimise for improving coverage and uh minimise execution or compilation errors on the tests that we generate. Interestingly, a survey done
On um LLM-based agents for software engineering found that there was no work on verification with agents. So here is a challenge to all of you. There is a clear gap here that I would encourage you to work on. Another way we could approach this is with ARL.
So I think Sita also talked about this earlier in the morning. There is a lot of work on using reinforcement learning for um grum uh code generation. Can we also make use of reinforcement learning by using software testing metrics like coverage, test execution and error messages to improve test generation?
So to summarise, uh I touched upon some of the work I've done under uh for text generation with L_L_M_s. First we talked about cat L_M_ where we showed that training on aligned code and text can lead to significant improvements in the uh tests that we generate in terms of validity and the pass rate and we are able to outperform much larger models despite it being uh under-trained.
With this spec, we showed that we can make use of additional software artifacts, including natural language specifications, developer written tests, previous bug reports and so on to generate targeted meaningful tests which uh point to real bugs in real world systems. Thank you.
Awesome. Thank you Nikita. Um as you probably remember the subtitle of this workshop is A_I_ verification in the wild, and I feel like you did a great job capturing the spirit of that, like you said, finding real bugs in real systems uh using AI. So super cool. Uh we do have a couple of minutes for questions from the audience. Is there a question in the back? No. Um
So I actually have a question. Uh it's pretty specific. Um I think on slide fifty six you had this big table of results, one of the columns was uh validity. Right. And uh I couldn't wrap my head around why the validity wasn't decreasing or increasing monotonically as you were adding more uh features in the other columns. Could you help clarify those results?
Yes. So um part of the reason is because when you add certain types of context, like for example when you add bug information or when you add these differences in the um when you're trying to reason about differences in code implementation and stuff, the model's trying to generate more complex tests, because it's your basically asking it to generate a bunch of tests for a particular bug class or a particular um distinction in the way that
the two em uh the two implementations implement a given instruction and because it's trying to generate more complex tests, often these tests end up not being valid. Uh part of the reason for this is because like LLMs are not very good at reasoning about the expected outcome. So often it would not be able to generate like or it it's hard for the model to reason about what the expected outcome should be based on the
on these tests versus when you try to ask it to generate tests using like simpler approaches with just the baselines, the validity tends to be a little bit higher because it's generating very simple tests. Like it's testing for very few things. Perfect, thank you. Uh any more questions from the audience? If not, let's thank Nikita one more time and congratulate her on her new

Nikita, one more time, and congratulate her on her new position at Depop. Thank you. So if I remember the schedule correctly, um Celine yell at me if I'm wrong, uh we're n now gonna move into the second poster session of the day. Uh it's only gonna be thirty minutes long, so we'll say if you were in the middle of some conversation when I interrupted you this morning, or if you want to grab some coffee, now's a good time to do all of that. Starting at three p.m. we will be um moving into the orals.
Um so don't be late for that. Thank you.



you

And we'll be speaking about AlphaVerse that we heard some about this morning from Jean-Luc.
My, am I audible? My slides visible? It takes good to go. Ah, great. Cool. So hi everyone. If I may start, I am Pranjal Agarwal. I'm going to present a work titled Alphabetic Bootstrapping for Amulet Verified Code Generation through self-improving translation and refinement. So a long title, but I'm going to start with something very basic.
So typically how verification looks in co-generation.
So ideally, a user given a query passes it to a language model, the language model generates a code for the query and the code might then be evaluated against a certain set of test cases which tells you whether the code is actually correct or wrong. Now the challenge over here is that like where do we even get those test cases from like is it automatically generated or is it like generated by some language model or generated by humans. Are they comprehensive or is there even a guarantee that the test cases are correct?
These are correct. A second possibility is formal verification. And the way formal verification differs from the standard pipeline is that along with generating a code, the model also generates a proof of correctness of that code. And now instead of going to test cases, it goes to a formal verifier, which tells you whether the code is correct or not. The good thing here is that if the formal verifier says that the code is correct, then you're mathematically guaranteed that the code is correct.
So, form of verification typically looks like this, so it has like four different components. So the first one is like specification, this tells you the underlying intent, and it's like a mathematical definition of what you want to write the code for. So for example, this is like a specification for S prime function. The specification then goes to a generator, this could be a language model or anything, which would generate a code, which is mostly like normal Rust code, along with the proofs. So the proof...
Over here looks in the form of like some invariant statements, some termination clauses for the while loop, some assert statements, and these statements would then help a formal verifier, which is like a symbolic solver, like some kind of SMT solver, which takes the proof along with the code, and now it can do two things. Either it can say that the code is actually correct, or if not, it gives you a detailed error message, for example, over here it tells you that the invariant
variant is not satisfied at the end of loop body so formal verification is great because like it's providing you like some mathematical guarantee instead of those test cases but the question is like can a language model write formally verified code and the answer unfortunately right now is not really or at least they're not very good at them right now so why is that so there are fundamentally two challenges in formal verification for code right now the first one is like a data challenge
So for example, for Python, which is like not formally verified, it has like just trillions of tokens. Now there's another language called Daphne, which is like a research language for formal verification. It's not real world, so you cannot use it in like a production code base. And it has like close to like 10 million tokens or more than that. Then there's this third language, which is like Veris, which is built on top of Rust, which is like formally verified. It's like real world because it can verify your Rust code. But the challenge, like it has like less than 10 repositories.
at least at the time of writing the paper. So a lot less data than like Python and other languages. The second one is like the complexity of proofs themselves. Like it's like even difficult for humans to prove a code compared to just writing it down.
So to give you an example, like this is a comparison of performance of GPT-4 on like this human eval and MPPP, like without formal verification, they usually are like close to 90%. But if they have to write the proof in like the various language, the accuracy drops down to like close to 1%, which is because of both the data challenge as well as the complexity of proofs. So how do we solve that?
So that's what Alpha Veris is going to be about. So what we propose is that we will translate some like automatically translate, we don't want humans in the loop, some high resource language, for example, Daphne, which is like relatively high resource to low resource language to start as like more useful, for example, Veris. So given specification code and proof, we convert it into like a more useful language. And in the process, like we are going to apply a lot of different techniques.

we have been to apply a lot of different techniques but like after we have done this translation we get some data in the form of like these various programs that we use to improve our models on tasks that we really care about that is like given a specification write the code along with the proof of it
So the question is of how to automatically translate and that's what AutoBase tackles. It's a self-improving method, it's like every iteration has multiple stages. I'm going to start with the very first one, that's like the exploration stage. It's a simple idea given a source program, for example, type of program, you prompt language model to like generate a sample like different program, various programs from it. So these are like the target programs. You pass these programs to a verifier, the verifier tells you whether the solution is incorrect. If it's incorrect, we just simply ignore those values.
various programs if it's correct you get some data that we store in debug file and this is like pairs of Daphne program and its corresponding correct various programs there's a third set of data which is partially verified solutions and you get these because like verifier can tell you like what clauses of the code is correct like maybe not all not all functions in the code are correct so we can use this these examples as well
Now, an important thing is that initially the set of de-verify that you get is very low because the models are very bad at even translating the programs while the partial is very high. So the question actually is like, how do we use these like partially verify solutions?
we identify three key problems and like figure out whether it's possible to do them the first one is like can language model use the verify feedback which is self-refined their outputs and fix the errors can they keep on iteratively doing it without getting stuck in a loop and if they can do it like is there some efficient search method to fix those errors because like you don't want to spend a lot of compute and just just trying out fixing those errors and the answer was yes for all these three questions and that's what the second step of
type of algorithm looks like we call it refinement it's basically true search plus refinements that combine and the way it works is like this you given this deep partial data set you sample one program at a time and you do some kind of research every node in the tree is a set of is a single program plus error so it's like full program not like any partial set of lines it's a full program along with the errors that you get from the very
the verifier every node has a value assigned to it the value is assigned decided based on the verifier's output so if you have more errors then you have less value if you have like no errors and like all functions are verified you have a higher value and the goal of this search algorithm is basically to reach the correctly verified solutions also to clarify like every edge is is a refinement step so you have a refined refinement language model that takes the program along with the errors and tries to fix those errors
Once you have like let's say you after running the tree search you get the correct solution, you can store this data again in the de-verified data set because now you have a correct verification program that can be in turn used to like improve your translation model. Additionally, if you look at the trajectory from the root node till the correct verified solution, you can just pick up any node and a final node and this will give you an error triplet of like unverified program along with the error and the final correct verified program. So this data.
This data in turn can be used to improve your refinement model. So that's the idea basically. You collect some data at every iteration, so for example, the African-American translation pairs, you use that to improve your translation model, you have these triplets of error, unverified errors, error messages, unverified errors program, you use that to improve your refinement model at every iteration. And to just specify, we use this collected data only as in-context exemplar, so like no model fine tuning is happening, which I'll clarify the reason for in later slides.
But yeah, that's the idea. So you do some exploration, you do some refinement, you gain more data, you self-improve and keep on doing it until you probably saturate. So we did this and like the results were like really crazy. So if you look at like just four iterations, the model was able to translate more than 80% programs, which was kind of great because right now these models are like very bad at even translating a few programs. So what's really happening? So as it turned out, the model was actually doing some kind of reward hacking.
So what happened is that fault tolerance is only on the code and proof and not the specification select because the specifications tell you what the intent of the code is. So there could be a misalignment between the Daphne specification, that is source specifications and the target specifications. For example, like model could like leave some parts of the specifications that make them trivial, or it could just do some completely different translation and if you would have realized like we have no check.
Right now, surely you could like use sometimes cheat codes or debug statement, for example, assume false that trivially renders everything true. And other things, human developers use them as like for debugging their programs. And these errors might seem minute, but actually they have a snowballing effect.
For instance, like if you look at like the 27 programs that were initially generated in the first iteration of translation, only one had that reward had a zero false statement used. However, in second iteration, it was like more than 50% of the programs were zero false. And by third and fourth iteration, like everything that was being generated was literally just using a zero false, like a trivial way, nothing meaningful.
So how do we fix that? I mean, the simplest thing is just disallow those statements, right? So we did that, we didn't allow a zero false because it was a debugging statement anyways, but then Marlon figured out something else. So it said like insurance true, which is like a trivial post condition says that the state is true, which is like always the case. So we get string matching, remove this, then Marlon figured out something else. It's like insurance result equal to result, which is like, again, the same as insurance true, but because the string matching didn't figure it out.
without the model exploiting that fact so we kept on doing this for a while like just removing and using string matching and the model would always find some other way to trivially prove the programs and generate like meaningless translations so we had to we had to find a way to fix that so we proposed this critique module so it's like three-step filtering process the first one is just rule -based filtering so just disallow these assumed statements and like all these typical statements
This is pretty straightforward. We have an exploit model that's like an adversarial model that tries to find trivial solutions. So this is like a language model that would try to find trivial solutions to the specifications. And if it's able to find it, then it likely means that the specification is bad. So we remove them out. Finally, we have a comparison model that checks for alignment between the Daphne program and various programs and if they are same or not. So this is like a language model.
Yeah, that completes Alpha Vedas. So we have this exploration stage, we have this pre-suspecting refinement, we have this critique, and at every step we collect more data. This data is used to improve like individual components and this whole process continues for translation.
The next question is like once we have done this like translation task how do we validate our downstream task? So the objective for downstream is like keeping the code specification we just want to generate the code and prove and verify. And step one is like just exploration, sample programs, filter them out based on the parameters we have. Step two is like refinement on the partially verified solutions that you have.
We saw about 3.170B, so just like an open source model, we used Appleybench for our source programs, there's like 500 programs, downstream evaluations are on verified versions of human eval and MBPP, so that's like an ongoing effort. And evaluation metric is pass at the rate K, so if any one of the K generated programs pass, you get a plus one score.
So the first machine in the results was like two models improved and we found generally yes so like the translation keeps on increasing the amount of programs that are translated up until like five iterations and like after six iteration we actually stop. If you look at the downstream results so it's like by the blue line parse at direct 32 it also keeps on increasing, although like the alpha whole the complete alpha radius pipeline saturates at some point because like remember we use like
it's like very limited 500 programs uh but to give you conflict numbers so if you compare llama 3.170 billion on human eval it's like 12 percent and 27 percent this is like faster than 512 same as the alphabarist pipeline and it's like just 33 percent and 66 percent which is like a huge jump we also compare different research algorithms for research
uh another question is like why even do the tree findment why not just keep doing the exploration step and the uh this is this graph basically shows you that like after some point this green line that is exploration saturates while tree findment can give you some extra boost on this is also useful in the translation phase as well as transfer evaluation
These are just some quantitative examples. I'm not going to go deep into them. But the thing that I'm trying to convey is that from where the model started where they were like simply had like trivial performance, they started generating such long programs. This like a translation example, we have more such examples on the website. And another good thing about our method was like we didn't do fine tuning, which means that the collected data can be used as in context exemplars. Now we developed some methods for like
or like efficient use of those in context exemplars but we could just uh straight away apply them to like all black box models and like all models across sets show good performance improvement now unfortunately like there are not a lot of methods that have been yet developed for various there are like safe and auto various are like two complaint works uh they tackle slightly different tasks they have like differences like handcrafted prompts uh using gpt board and stuff like that but still like alpha is
eaten by decent margins so yeah that concludes my talk and thanks for listening and happy to take any questions Thank you very much for that. Maybe whilst the next speaker gets set up we could take one very quick question from the audience if there is one. Otherwise let's thank the speaker once more.

Thank the speaker once more. Great. Thank you. And uh we're gonna be jumping straight into our second oral, which is uh self steering lo uh language models, uh which will be presented by Gabe Grant from MIT. Um please help me in welcoming Gabe as well.
The choo-steer from the vendor? I don't have any option for that.

Um if anyone in the audience is an expert on screen sharing um uh Macbooks uh would like to come up and help us out, then please feel free to do so. Okay,
Okay, I was told it would be magic. Right. Uh
Thank you. Are you guys able, the slides people, are you guys able to see it? I'm gonna go ahead and assume that's a yes. Thank you guys. Okay, thank you. So today I'm excited to present some recent work on an inference method that we've been developing at MIT called self -steering.
So I don't think I have to tell this group that in recent years and months we've seen some pretty rapid progress in language models reasoning capabilities. And yet even as models are beating experts on many math science, you know, engineering benchmarks, people are also noting that they seem to struggle with intuitively simple tasks like counting, arithmetic, tic-tac-toe, poetry.
And this isn't something that only the AI community cares about. So people in the business world are also talking about how someone like a management consultant should account for inherent unreliabilities in systems like ChatGPT. So ultimately, a lot of this comes down to the fact that language models often struggle with problems that require long horizon search or planning. And let's to make this concrete, let's take a look at an example.
So can we do something about the th the feedback? Yeah. Okay, thanks. Okay, I'll I'll just go ahead for the time being. Okay, so suppose that we have a user who uh, you know, asks something like, uh please generate me a sentence with exactly eighteen words where the fourth, eighth and eleventh words should be Glasgow, in and and respectively.
Now a standard instruct tuned LM is typically typically going to struggle to generate a response that satisfies all of these constraints simultaneously and even very capable models like GPT-4o also struggle with this kind of problem where they will you know generate some of the constraints stochastically.
So, you know, there's a general consensus in the community that these kinds of problems require some sort of system two type reasoning. But an open question is how to best leverage this type of, you know, additional inference time compute. And one simple approach, which is currently popular in the sort of inference scaling literature, is sort of to just keep repeatedly sampling from a language model until we generate a valid response.
And this kind of sampling strategy is very easy to implement and it's also trivially parallelizable. However, it has some drawbacks, right? It requires either constructing or learning some sort of external verifier. And moreover, it relies on the underlying language model to eventually generate a valid response.
This means that the number of samples that we need to draw scales exponentially with the problem complexity and for some problems we actually may never generate a valid response in the first place. So another approach which has been recently popularized by industry models like OpenAI's O1 and DeepSeek's R1 is to scale up inference time compute by generating long chains of thought before producing a response.
And this approach is attractive for a few reasons. So first, if you give it a big enough token budget, models like O1 can crack hard problems like this one. And this approach is also very flexible, and it doesn't require sort of having some sort of external verifier, right? The LM itself acts as the verifier. However, this approach also has some complementary drawbacks.
So the first is that when we do reasoning via autoregressive generation, right, it requires linearizing branching search paths into one sort of long stream of search, which makes it, which can make it slow, right? Anyone who's interacted with these models through an API knows that they take a long time to return sometimes. And also, as problems become more complex, models have to generate more reasoning tokens, which means...
that inference can also be expensive. And then finally, even large reasoning models can still sort of make mistakes.
In this example, which was generated sort of first shot on a single shot on the first query, we ask L1 to do this task and it generated a sentence that passes the verifier. But it still has an issue. So if we read it out loud, it says the year begins Glasgow with thrilling developments in every corner. And now that's just not sort of totally fluent or coherent English.
So, you know, there are many cases where a chain of thought doesn't quite capture the kind of, you know, reasoning process that we would need to get carefully crafted generations for these kinds of tasks. Nevertheless, even when generation is difficult, you know, verification is often easy. People sometimes refer to this as the generator verifier gap.
And this means that even small models are capable of writing sort of the little snippet of Python code that you might need to verify if a solution is correct in many cases. And this leads us to sort of a key insight, which is that even when language models struggle to emulate the precise reasoning steps needed to solve a problem, they often excel at describing its abstract structure, right?
And this is a nice property because it means that for certain tasks,

property because it means that for certain tasks, we can use the LM to generate a verifier as code. And people are doing this and that's already very nice because it means we don't have to have an external verifier. But in this talk, we're going to take that argument one step further and sort of ask the following question. So if LMs can write code to verify solutions, could they also be used to write code to generate solutions?
So this is the motivation that led us to develop a new meta reasoning framework that we call disciple, in which language models themselves are driving the decisions for how to structure inference time compute. And in this talk, I'll just provide sort of a high level intuition for how this method works and refer to the paper for details. So in disciple, we have a planner LM.
that writes an inference program that defines a step-by-step procedure for how to solve a task. And crucially this program can recursively call language models both to generate text and also to evaluate the probabilities of different completions. And different programs
Court yeah different kinds of inference programs correspond to different inference strategies and our framework encompasses many of the LM inference techniques that have recently been proposed in the literature Including various kinds of independent or best of n type sampling as well as more structured search methods Now there are sort of many many libraries and languages that the planner LM could use to write an inference program
In our instantiation, we use a Python library called LAMPOL, which stands for the language model probabilistic programming language. This is something that we've been developing at MIT for the last couple of years. And LAMPOL's inference engine automatically handles low-level details like batching asynchronous execution, KB caching, which frees the planner LM to focus on writing a high-level search plan that is tailored to the task at hand.
Get hand. LAMPEL provides first-class support for an inference technique called sequential Monte Carlo. SMC is an adaptive inference algorithm that works by maintaining multiple candidate generations in parallel and dynamically reallocating compute to high-scoring partial completions. I won't get into the technical details here, but I highly encourage you to check out our recent paper on SMC with language models, which is presented yesterday at the main conference.
Okay, so let's take a concrete, take a look at a concrete example of disciple in action. So to go back to our running Glasgow example, the planner here generates a LAMpple program and that program is going to be executed in parallel by a population of follower language models. Let's take a closer look at this program. So this is implemented actually as a Python class which defines a step function that's called repeatedly during inference.
And at each step, the program instructs the followers to sample a single word, keeping track of the word index. And if the index corresponds to a constrained word, like Glasgow, the program forces the follower to generate the target word and scores by the probability of observing the word at that position under the LM.
So during inference, this allows us to avoid the problem that we saw earlier with the O1 example, right? Sequences that have low probability under the LM, like the year begins Glasgow, incur a steep penalty and will be discarded during the next resampling step.
Another feature of this approach is that it has a very different sort of scaling property to chain of thought. So inference actually scales orthogonally to the generation length. And, you know, we can efficiently parallelize it with a very small LM. In this work, we're using a 1B LAMA model. So that's the basic framework. One challenge of getting this approach to work is that because our inference program is auto -generated, it can sometimes contain bugs.
Um, and to address this, whenever we get a runtime error, uh, we can do program repair, right, and pass the trace back back to the plan or LM and ask it to regenerate a new program. Uh, and in practice we find that this is able to correct sort of, uh, roughly 50% of the initial errors, uh, with just a single iteration and then we get diminishing returns from there on. To test out this approach, we evaluated on a variety of challenging constrained generation tasks from the CAULE benchmark.
as well as a custom dataset of hard generation puzzles involving tasks like poetry composition, grant writing, budgeting, and itinerary planning that require sort of searching over combinatorially many completions. We instantiated Disciple using GPT -4-0 as the planner LM to generate code and LAMA 3.21B instruct to execute it.
And in this setting, the small LAMA model sort of struggles to adhere to the constraints, but actually also the planar GPT-4-0 is quite unreliable. And in contrast, Disciple boosts accuracy well beyond both the planar and the follower and actually approaches the performance of a much more powerful reasoning model like 01.
Our framework provides the planner with access to a number of powerful inference patterns that provide fine-grained control over the follower, including token masking with automatically computed importance weight corrections, a method to dynamically inject hints into the follower's prompt, and the ability to make use of external libraries and tools to verify responses on the fly. We also evaluated Disciple on some hard generation puzzles involving tasks like planning a trip itinerary.
And with these tools that I just showed, we find that our approach enables very small models to generate precise responses to queries that require sort of highly non-trivial planning around various kinds of constraints. And based on my experience in Singapore this week, I can definitely say firsthand that some of these constraints are much harder to satisfy than I originally thought.
Okay, so just to recap, self-steering is a method that lets language models decide how to coordinate inference time compute via a two-phase process where we do a small amount of serial upfront planning followed by sort of highly parallelized Monte Carlo inference. This approach enables small LMs like, you know, a 1B llama model to match and sometimes outperform much larger ones like GPT-4.0 and O1.
And our approach requires no additional fine tuning, and it can be implemented automatically by existing LMs. Okay, so with that, I'd like to conclude by thanking my collaborators, as well as engineering support from the GenLM team. And I'd also like to thank the organizers for putting this together. So if you're interested in learning more, I hope you'll check out our preprint on Archive, and happy to chat.
If you give maybe while the next speaker comes up and gets their laptop set up as well um we will do one quick question from the audience. Uh just quick question. So uh uh we showed like these four examples, right? Uh so what would be like friendly classes of tasks versus unfriendly classes of tasks for this kind of approach?
A question is what would be friendly versus unfriendly? Can you say more about what you mean by friendly? Friendly that uh you would solve uh things faster and better, right? Yeah, so anything that requires sort of uh like complex search or planning, uh something that maybe is would be unfriendly or maybe knowledge-based tasks, right, where really you you you know either the model knows uh the information or doesn't know the information. And so uh, you know no amount of planning or reasoning is gonna help you to solve that.
This grant preparation task, what what's uh this was one of four, right? Uh sure, yeah. Uh s Friendly or what kind of constraints are there? Yeah. So uh you know, in that task we're imagining a setting where uh you have to write a maybe a grant proposal for a big project, uh and you're not allowed to use certain words. Uh and um you know that maybe is more of a real-world task than uh some of us would like it to be. But
Yeah, perfect. Thank you, Gabe, and thank you for the excellent question. Let's uh jointly in the interest of time uh both thank Gabe and welcome the next speakers who'll be presenting their work on exact classification of graph neural networks against label poisoning. Thank you. Um yeah. Good afternoon everyone. Uh I'm Mahalaxmi and here is my colleague Lucas.
Uh we welcome you all to our presentation on exact certification of graph neural networks against label poisoning. Uh in the title the graph is in brackets um because we will show you a general method which is applicable on common neural networks, but as an application domain we uh consider graphs. Uh let's start with defining label poisoning.
So in label poisoning, training labels are to induce unwanted behaviours. For example, it can be misclassification of test inputs. So in a recent work, uh Carlini and others showed uh impressively that poisoning is a real threat for modern large uh web scale data sets. They have also been several ins incidents of poisoning that made headline news. You might have remembered uh Microsoft chatbot Tay.
uh which learned to be racist through interaction with Twitter users. So now let's formally define label poisoning. Here we allow an epsilon fraction of available M samples to be corrupted.

samples to be corrupted. So uh we have one more thing to define which is robustness certification. In robustness certification we ask the following question. Can we prove that the prediction of a test point does not change under a given perturbation model. So let's understand this with an example. Let's say we are given a neural network which classifies star and triangle.
Here uh we plot the prediction scores, meaning the logits of the last prediction layer for class star and class triangle. The dotted line here shows the decision boundary uh of the classifier in the logits space. Now let's say we are given a test input belonging to class uh star. And we uh see that the neural network is also classifying it correctly because it's above the decision boundary here.
A robustness certificate in this case would uh mean to quantify the reachable set of prediction scores under a given perturbation model, shown here in red. Um and So we uh we can see here that the worst case perturbation, uh closest to the decision boundary still preserves the class prediction, which means uh the prediction of the model for this particular test point is provably robust.
However, uh if suppose the reachable set of prediction crosses the decision boundary, as shown in this figure, then we know that there exist perturbations that are that can change the class prediction. Right? So uh this means the pro model is predicting uh the class prediction of the test point which is non-robust. Uh non-robust uh so it robustness certificate
quan exactly quantifies the reachable prediction set as shown here, then it's called exact certificate. So with the basics established, we will now present the objective of our work. So uh in this work we ask the following question. For a given test point can we prove that there exists no allowed perturbation in the training data that that would change the model's prediction?
So uh naturally to look into this question, uh especially for neural networks, we have to look at the training dynamics. Uh one thing to note here is prior to our work this was actually an unsolved problem because of the uh complex training dynamics. Now to approach this, we use a neural tangent kernel, as it characterizes the training dynamics of neural network under certain assumption. I will now briefly talk about neural tangent kernel.
So um assume we are given a model, outputting prediction wide hat that is an L-layer neural network. Um now the entity where the the kernels entry I_J_ is between two data points, uh it's the dot product between kernel of uh gradient of wide hat with respect to the weights for data point I with data point J_ It actually comes up in the expression describing uh the
training process. Now uh how does this help in our certification? When the width of the network goes to infinity, depending on the loss choice, it has been shown that neural networks actually converge to kernel methods. So to explain it concretely, uh for classification, if we consider a regularised hinge loss, this is actually equivalent to training a support machine with N_t_K_ as its kernel.
So, uh with this I now hand over to Lucas. Yeah, uh thanks a lot. Uh so um I'm happy to take over. Um so how can we make now use of this um of um of what wha what Maha just told us um to obtain a certificate against stable poisoning. So mathematically like poisoning um can be modelled as a bi-level optimisation problem where um an adversary tries to minimise some attack loss um
under um which can kind of captures the misclassification of a test data point by a model specified by theta under the um constraints that the perturbed labels by um tilde are from a set of possible perturbations and that the parameters of the model are chosen so as to minimize a given training loss on the uh perturbed training labels
Um now um actually like solving this optimization problem, which would give us a poisoning certificate, um is highly challenging, because um bilevel problems are um notoriously hard to solve like even if all the involved terms here would be linear. So um we develop a solution strategy which uses three main steps, and uh the first one is that we um leverage um the just uh talked about equivalence
of sufficiently wide neural networks with support vector machines that use the N_D_K_ of that network as its kernel to replace the bi-level problem um describing poisoning for neural networks with the bi-level problem describing poisoning for support vector machines. Then um in a second step um we reduce the bi -level problem um to a single level problem
by exploiting properties the training of kernelized support-vector machines fulfills. And lastly we now employ different uh linearization techniques um to this um uh single level um but still non-linear problem um to convert it into an equivalent mixed integer linear program or short MILP, um which allows us um to use highly efficient uh modern MILP solvers
um which actually make this problem tractable.
And with this we have thus actually developed a certificate first for like SVMs with generalized like with general kernel choices. But and more interestingly, by using now the NTK of different neural networks as their kernel, as indicated earlier, we know that the certificate transports to a certificate for sufficiently wide neural networks. And
Yeah, so with this we actually derive two different types of certificates.
First like a sample-wise certificate that provides guarantees on the robustness of a single test prediction and second a so-called collective certificate where we are given a set of test predictions and we kind of want to know how much how many test predictions in that set are simultaneously robust to predictions in my training data to perturbations in my training data.
in my labelled in my labels. And in the end, both cases, um our certificate is actually exact. Um because the re-formulation I just showed you earlier um actually does uh not employ any relaxations and is exact. Um and um yeah, with this um high level overview of our method um I actually want to already move to our um some of ki the key results um of our work. Um
So as I said earlier, our certificate is general, but as an application domain we looked at samey-supervised node classification in graphs, meaning that you're given a graph and you are sitting here to the left and you have nodes that have attributes and where some nodes have labels like blue and grey, and the goal is to use different neural networks to predict the glasses of the unlabelled nodes and
in uh yeah like shown here. And um now
Um in uh this figure um we contrast now the sample-wise certificate um with the collective certificate on core-ML, which is a common uh benchmark graph um data set. And here the y-axis shows you the certified ratio. This means how many test um test data points have been certified as robust. And this is plotted with respect to how many labels um are allowed to be perturbed in percent on the
x-axis and the colored lines represent the different neural networks and graph neural network architectures and the
A sample s sample-wise certificate results are here presented as dotted lines and the collective result as solid lines. And the first thing one notices in this figure um is that there's a stark contrast, um between the two um certificates. And in particularly the um the collective um certificate which is arguably the more realistic, because we usually train once on train data set and evaluate then on test data sets, um allows to certify uh significantly more
or a significantly larger per...
perturbations in our labels and um secondly, and I think this is probably uh um one of the um most interesting results of our work um is that if you use the collective certificate, um we actually find a curious kind of new phenomenon um namely um a plateauing of robustness for intermediate perturbation strength. Here for example you see the plateauing happening around fifteen percent.
percent of corruption in the label in the labels up to around 30 before robustness falls off again. And similar results also hold for other data sets which we investigated and seem to observe seem to happen in a strong or weaker form universally across data sets and architectures we look at and especially we also find that an MLP for in these figures for the gray line
sign also shows um the strong uh plateauing of the robustness to intermediate um perturbation strengths and establishes the s that this phenomenon is not confined

this this this phenomenon is not confined to the graph case. Um so it cannot be explained by the fact that we used uh some graph data sets here. And um
Yeah, with this I already wanna conclude and say that and summarize that uh you're using the anti-Kaeh-Dynaral-Tangent-Kernel we managed to derive exact certificates for label poisoning and uh we have several more interesting results in our paper um where we show how our method can be used as an effective tool to kind of quantify um exactly quantify the effect different uh architectural choices have on
Um the poison on poisoning robustness. So feel free to check our paper out using the quark code for example at the lower right. And um yeah thank you for your attention. I'm open for question. Super cool, thank you Alexmi and Lucas. Um could the next speaker please get ready to get up while we take a question from the audience.
Thank you for the great presentation. Um your adversary could be seen as applying some noise to the training data set. Um so for your your plots where you observe this plateauing of the performance, um do we see a similar trend if you were to not look at the worst case noise, but just randomly sampled noise? Uh good question. Um we have not checked it,
Um but there is some work on um like there's some empirical work on the like just attacking um networks um and they have not really observed this plateauing so far. Um I do think um this is also related to the fact that um the attacks definitely do not find
worst like the best attack like the best perturbations. And if you allow let's say thirty percent of the labels to be corrupted compared to fifteen percent, I think it's way easier for a heuristic attack to like find a strong attack. Thus you cannot see empirically that it s goes down. But um you have not really seen the plateauing so far. Okay, so that's a gap between what you can get in practice by an attack versus what you can
show that like Yes, there is a yes, yes. there's a worst case attack that we cannot find, right? Exactly, exactly, yes. Interesting, thank you. And one thing to add is
and it's as fairly challenging to do. So uh yeah, you know the goal is how do we really fine tune our models to enable this kind of behaviour. So uh this has been a subject of a lot of uh work in the past two years or so, and uh I'm going to just give you a p uh you know a whirlwind tour of this maybe. Uh so yeah, the standard prompting technique is you take your problem and you s you simply get the model to to answer it directly.
versus something like chain of thought prompting where you get the you elicit the model to output its answers by following steps.
And, you know, we have, I guess, chain of thought prompting with self consistency. You know, you kind of get the model to try to solve the problem in parallel multiple times and you majority vote over the final answer. There's also tree of thoughts. And, you can keep going on as for the number of methods that are in this of this flavor, but there's a lot of work that has come out on how to show test time scaling and these algorithms build on top of existing
uh sort of language models and uh verify our framework s frameworks. So uh yeah, the test time scaling methods, the goal is really to show how to implement these mechanism is in context. And there's really many approaches to doing this. We use uh supervised fine tuning versus RL, dense supervision, sparse supervision and and so on and so forth. So uh before I uh talk a little bit more about what we've done, I just wanna set up this problem very clearly. So
Uh the focus will be on reasoning problems and specifically on math reasoning problems. So you can think about this as sort of like a problem or the prompt which is the initial state. And uh as the model sort of uh spits out more uh tokens, each step is sort of like an action that it can take. And finally it spits out an spits out an answer and the reward that you get is one if the model got it correctly and zero otherwise.
And so this is like a, you know, in the in the RLL terminology, this is called a sparse reward Markov decision process. And, you know, it has deterministic dynamics, you know how the state sort of evolves over a period of time, it's just by appending the new step that was generated. And in the same framework, you can really think about test time compute as the horizon of this problem, which is the number of steps that you've taken overall. So this is some basic setup that
that will be useful going forward. So uh the main question that we tried to ask uh in this work is, should we really use rewards plus R_L_ or like in general some verifier based approach? And so I'm going to use the the word verifier uh synonymous to what a reward model would be here. Or should we just run something like S_F_T_ supervised fine tuning, which is verifier-free altogether?
So, um uh let's let's try to dig into what this question even means. So there's two worlds of fine tuning and and this is how I'm going to phrase it today. So you started with the base policy which is called uh you know it's a pre -trained policy uh pi subscript beta. And uh
You know, you kind of come up with a data set of XIs are prompts or problems and YIs are responses to these problems. You collect this data set. The first world is like verify free approaches where maybe, you know, you take your data set, your rejection sample down a little bit so that you get a data set that looks like it has a lot more correct answers in it. And so this you can think of as inducing like a better policy.
And then you just supervise fine-tune on this data. So you're supervised fine-tuning on a data set that looks like it came from a better policy than your base policy itself.
Um and then the second world is uh verifier based or RL like where you uh use a sort of an uh reward annotation on on this data set. So maybe you y you know the the the final answers for every problem here. So you can just anno annotate your data set with zeros and ones. You learn a verifier on this data set and then you uh solve the RL problem on this learned verifier. Or you know, another world is uh you you still use a verifier based algorithm which scales task time.
time compute differently which is like best event.
So um yeah uh really the goal here is test time scaling, which is better performance as we allow the model to think for longer. And there's two uh uh you know sort of frameworks I'm I'm again gonna introduce which might be useful for simplifying our the presentation a little bit. So if you really think about uh the test time token budget, each as you get the model to uh generate more tokens, maybe at the very end you get uh the reward, which is either zero or a one, and that's sort of
what I've highlighted in gray, that's the outcome reward. And the other alternative is like measuring uh sort of the progress of the model as it as its as it uh generates more tokens and more steps. And so the progress may not even be uh a nice linear curve. It might make backward progress at times too. But in this work we really simplify this and talk about uh a step-wise notion of progress. So uh it's just that, you know, once the model has sort of gotten the answer sufficiently correct, it cannot undo its own
and mistakes. And this is simplification. I think real-world uh reward functions or reward models look more complex than this, but it'll a lot of intuitions that come out from this model will already uh sort of match with what you see in practice. Okay. So I'm gonna like very quickly build some intuition by via this thing called the planted subsequence problem. So uh you know here the the prompts uh are of length five. It's it's a very small problem and, you know, it

small problem and you know this may not be relevant to everyone here, but uh in the next few slides I'll show uh how this sort of uh scales to harder uh you know bigger bigger cases. So the prompts are very simple, they just like length five, they take values in one through ten and you know you can just think about this example over here and the the the intuition you should keep in mind is this like a lock. There's also planted sequence, which is just like you take this length five prompt and you feed it in through this unknown function g.
And so, you know, maybe the alphabet space is size 30 over here. So I just plugged in G of X is equal to two X plus five. And so if you plug in the prompt, you're gonna get this key sequence, which is what this is. And you can think about the progress reward over here as being sort of like the model gets a reward of one every time the response that you've generated contains the key. So, you know, in this case, the highlighted in green section
actually is the key and this is like a response that the model might have generated so as you keep you know generating tokens it's always zero until it's contains the key for the very first time and then it contains the key at every point uh thereon okay so uh let's see what happens now when we train uh sort of like a reward based versus reward free methods on this sort of simple problem
Okay. Oh, yeah, I just wanna set up maybe one more thing, which is the uh the data collection model, the pre-trained model itself. You can think about this as like uh you know at every time it it has like a probability gamma of getting the next sequence in the key correctly given that it's got in the previous elements in the key correctly. So this is what is used to collect data and uh to to train the supervised fine tuning learner as well as the reward models themselves.
So what happens when we scale the compute budget as well as the test time budget over here? So I'm going to show you two plots. And so the first one just shows you what happens when you scale. You train supervised fine tuning as well as RLL based methods or like I guess here it's exactly just like learning a verifier and solving the RLL problem. And so I'm just like thinking about normalizing the total reward by something that scales with the test time compute.
And so you see that this is a number between 0 and 1. And in green is the supervised fine -tuning curve, and in orange is the RL curve. And it seems to be better that RL is doing better over here. You also see that when you sort of scale, yeah, the data budget keeping the horizon or like the test time compute fixed, the same sort of scaling rule holds true. The RL method scales a little bit better than SFT.
And what happens when you scale the two of them together? It sort of compounds. So you do see that the gap between R_L_ and S_F_T_ actually increases as you increase the amount of test time compute. Okay. So with this, let me move on to some of the more real world uh instantiations of this sort of experiment.
So again this is like a slightly complicated looking slide but the first two again the first two graphs basically capture what happens when you keep the the first one captures what happens when you keep the data budget fixed and you scale the amount of test compute. And you see that again the verifier based method does a lot better than verify free, it requires almost eight x fewer you know test time tokens to achieve the same kind of performance.
And the second plot is again what happens when you scale the data budget, keeping the test compute fixed. And the last one is again you see this like growth in the gap between these two, the accuracy between these two methods as you scale the test time compute. Okay. Yeah, and so just to be clear, this is like on the math data set and the evaluation is also on math 500.
Okay, so uh one more last uh scaling up of the previous experiment which I think is interesting. So uh this is a sort of an experiment with the a model that was already supervised fine-tune. So there's no scaling of the training budget over here, it's already fixed which is the S_ one model. And uh so the the comparison is uh over here is uh, you know you kind of like
have the the green curve being the the supervised fine-tuned model the blue curve is what happens when you take the base model which is not fine-tuned at all and you just do best event with the learned verifier and you see that again the verifier-based approach scales better in terms of test compute here the data budget is fixed you see that the verifier the the best event approach does better than the supervised fine-tuned method itself
um okay yeah so uh with this let me just move on to the the last part which is trying to like understand what what's going on over here. So what one observation is uh the base language models that uh you know you see they are kind of heterogeneous and so uh what does this mean? You know you can think about uh you know sort of different solutions to a given problem.
And all of these do solve the problem eventually, it's just that they solve them at different rates. They they may be slower or faster. And so the heterogeneity you can think about is just like the the variance of the rewards of traces uh drawn from the base policy on a given problem X_ um and so the intuition is having like more diversity or more heterogeneity means that it's harder to imitate and so supervised fine tuning should do worse for these kinds of uh settings.
Um yeah, and so uh you can also plot this and actually see that this happens. So over here I've just like uh sort of plotted bucketed the heterogeneity uh across many different problems in the math data set.
And so you know you see that there are some problems with low heterogeneity and there's many with high heterogeneity over here. And you also can see how well the verifier-based and verifier-free approaches do. So you see that when the heterogeneity is low, the verifier-free approaches do better. When the heterogeneity is high, the verifier-based approaches do better. So RL or like best event should do better in these settings.
And the second observation is that base language models are anti -concentrated. And so what does this mean? You can just take a problem and plot the reward histogram of how, you know, the responses, the reward collected by response is generated by the model. And so, you know, you're going to get some curve that looks like this with the mean mu and some variance. And so it's, I call this anti-concentrated just because, you know, there's like.
A reasonable mass of traces that actually beats one standard deviation of the mean. Whereas you can have another example where, you know, maybe the mean and the variance are kind of like there's a little like a small bump that makes the variance high. And so, you know, the amount of mass that actually beats one standard deviation is quite low. And so this is poorly anti-concentrated.
And it turns out that anti-concentration makes it easier to explore just because the model is typically going to output, it frequently generates trajectories that beat its own mean plus standard deviation.
And so yeah, again, you can kind of plot the anti-concentration across various difficulties of problems. So this is across easy and hard problems in the math data set. And you know, sort of what you see is regardless of the problem difficulty, there is this anti-concentration property being true. So yeah, I think these are like two main reasons for why we see on these kinds of data sets, RL doing better than SFD.
And so there's a little bit of theory in our paper as well which shows you specifically under these assumptions why verifier-based does better than verifier -free. And so what we show is like when the base policy is heterogeneous and anti-concentrated in a formal sense of both of those words, the reward gap scales as a square root of the test time compute that you've spent.
And so uh basically what this is sa is saying is like the re a reward based or verifier based uh approaches do better than the verify free approaches, uh assuming that your base policy is heterogeneous and and anti-concentrated, which seems to be true in practice. Okay. Yeah, with this let me wrap up over here. Uh yeah, this is our paper and thank you very much for your attention.
Oh, thank you for that super interesting talk. Um do we have any questions for our final speaker of the day? If not, let's thank the speaker once more. And with that I will hand over to Selim.
At this hour we're going to move into the panel. So the speakers that are in the audience, if y'all could come up um and everybody can think Can you hear me? Does this work? Yep, that works. Okay and then y'all can think about some questions that have been bubbling in your mind all day.
If I can have

presentations about how to improve potential verifiers. A little closer, yeah. Here. Um how to effectively use verifiers, uh methods of using M_L_ in combination with verifiers, um where verification's more of a first-class citizen. Um I think with a variety of perspectives we can have some interesting discussion. I'm gonna start off with one that's pretty general.
uh which is what does verifiability mean to you, in what context do we need concrete verification and when is just like empirical robustness sufficient. Um we've got a mic in the centre if anybody can start. So the question is what we mean by verifiability?
Yeah, maybe wind do you think we need verifiability and to what extent do we need it? Maybe that depends on the setting. Yeah, it depends on the problem domain. If you are talking in the domain of coding, uh we have different kinds of system, safety critical systems. There you better model check, you verify the system, right? But if you are writing Python code, a new router network, what does it mean to verify something there, right?
So there it might be useful to just run some tests with high coverage and see if things are crashing or not. So it really depends on the domain. And in case of if you go beyond the code then what is very probably clear, it's not clear, right? If you have a natural thing, if it is based on some kind of fact then you might be able to verify, but something else we don't know.
Yeah, I I mean I th I think I uh b basically agree with that. And also like you probably need verifiability depending on like the downstream use case. Um so if it's more of like a high-stakes setting, um whether it's like formal ver verifiability or just like yeah having some like robust ability to check um yeah the the importance should depend basically on the downstream use case.
Um yeah, somebody interested in software verification, I obviously agree with all this. I think from all the talks today and even just things that are not related to safety critical um applications, it seems as though people want verifiability even for just interacting with chatbots at times, right? They want it to respond in a way that's pleasant or follows their instructions. So even though you don't need it to be verifiable, it's
I guess people really want it to be, it seems. I think I would also like to add that bugs are always going to exist in software, irrespective of like how well established that system is and how well tested it is, there will always be a bug hidden in there somewhere. And so testing it.
uh is often like embodied. Well, yeah, I guess the most clearly defined part is the form of verification, right. Then that's very clear what it means. But maybe the very interesting part is there are like a lot of problems if you see the solution or the proposed solution. Um oh actually a lot of problems if you see the right solution, you kind of know.
Um and or or at least that's easier so that than to generate a solution. Like for for instance it would write rather a programme to draw a fish, right. Um it might be pretty hard to write a programme but uh you can pretty easily know that uh the the draw the fish. Um yeah so that's a pretty interesting kind of uh verification, that uh maybe the cannot be formulated by.
Are there any questions from the audience? Hi, uh so far the most uh like successful cases of R_L_ for reasoning have been uh around math or coaching domains. How would you go about generalising it to like chat data or
general purpose tasks. Yeah, so
I guess the reason it's, you know, particularly successful in the math and code domain is you have uh fairly robust verifier. You can optimise against it for a long time and the model will learn kind of these very interesting behaviours after you optimise for many uh R_L_ steps. In the last verifiable domains, uh you train a reward model, you can only uh take a few R_L_ steps before you start to over-optimize. Um and so really the key challenge there comes down to like
building a really robust uh reward function or something like that and maybe there's a few ways of kind of going about like shifting that that point where you kind of start over optimizing a little bit further away, you could condition the reward model on um you know some kind of special information. Maybe you have one or two examples of a solution. And also I think there's potentially some promise in using test time compute with the reward model itself.
potentially that can um make it more robust. I think there's like a few interesting directions like that that are um uh not not as explored but uh seem promising. Yeah. So I think uh coding and math uh interesting because in those cases we know how to verify things. We have formal verifiers.
Right. So basically for other domains which are less formal, one has to figure out what does verification means. Right, for one example domain like you are asking some news or some kind of question, where you can have you can actually write a verifier which will do some kind of fact-checking, right, that is possible. So I believe for every domain one needs to come up with some notion of verifiability.
It may be formal, it may be non-formal, it could involve the user. If I can ask a follow-up, Charlie, you said something about having more robust verification in settings that are not master code. What does it look to more robu what does it look like to be more robust in something softer like chatting, style, narratives?
Yes, a good question. Um I guess in that case probably the ground truth reward we care about would be like the human judgment or or something along those lines. Um and so you'd want uh a reward function which like you optimise against it, you can go longer before the the true reward your carrying you care about starts to um decrease. I think that's like a a good uh idea of what you'd wanna strive for. Yeah.
Any other questions? Um I've had one that I've been thinking about during the presentations, which is whether you think there are some topics or methods that have been over-explored or under-explored in the fields of AI and verification.
Well, I guess an obvious one that I also mentioned in my talk is there seems to be no work around using agents for verification, which I think is really interesting because there are like agents are known to do so well with external tools and like making use of the right context and all that, and all of this seems super relevant for verification, but yet there's no work done there, which is really surprising to me, so I guess we should.
probably try and explore that more. Yeah, I guess uh closing the loop from on task task generation and code generation um pro uh m making uh making the task generation better as well seems a bit uh under explored.
Yeah, t text and I think text generation is pretty robust nowadays with the recent models that came out like Gemini two point five pro. Uh you can actually give it bunch of code and maybe existing written unit test and it will it generates right unit test. If you show it a lot of code like some function

lot of code, like some function you are trying to test. Uh you can find all the sites where that function has been called and put them together in some context or the functions which are calling this target function and see what test you have written for them. Okay. So if you apply all this kind of techniques of constructing the right context then test generation is pretty robust nowadays.
Yeah, the assertions that it generate might be wrong, it might require some human judgement, but you are not going to it generate like thousands of tests, right? Will generate a handful number of tests like the programmers are writing. Uh so you can really verify what whether the output is correct or not. Um I guess in my problem space with you know proof generation for uh within proof assistance, if
I feel like a lot of papers evaluate on these Math Olympiad benchmarks, um so it's kind of very sanitised problems, you know, ones that definitely have solutions. Um and so yeah, I think at least there it's kind of that's
certain problem space has been more overexploited in my opinion and think maybe thinking more in terms of real world problems um and the workflows that a real developer like a real proof engineer would have to kind of go through um when trying to verify their code or formalise an actual math problem. Uh so coming up with the formalisation, things like that. So I think that that's
Um I think i i really thinking about what the the human process is I think is something needs to be more explored, um at least in in my space, yeah. Yeah, I I agree with that. I think in a lot of domains they have made a lot of progress by coming out with more and more benchmarks and making progress on those benchmarks. Um verification kind of sits at the intersection of a couple, but do you think it's
Could you see a benchmark that could be proposed that somehow pushes along specifically AI and verification, or will that have to be in something else? Yes, so one thing that I'd like to see, right, I mean, is with the R_ R_L_ approach, the reasoning is kind of produced by a single shot, I mean just from the prompt, right. We have learned a lot of programme analysis techniques in thirty or forty years of literature.
But the AI I don't know how much knowledge it has or how whether they will be able to apply those knowledge to the existing programmes. So one idea might be to train a LLN which actually knows how to verify and reason about the code and come with the verification conditions and so on.
Maybe could um one way is one of the two one of the tool that is often used in chord generation or sui range is you look up like uh which chord actually can uh or which function is calling which function and bring those in the context, right? But if you look carefully the call-graph generation, if you you if you are talking about python it's so imprecise.
that you cannot really use it, even the recent paper. So in those cases I think uh uh kind of c incorporating the verifier inside the L_L_M_ would be really useful. Uh so and also means we did some experiment with uh security vulnerability detection. Uh so you can always find but
Can you also use similar techniques to generate secure code in the first place? Right? So if you can incorporate all these verification and semantics oriented techniques about code into the model itself, maybe it will be able to generate more robust code in the first shot. It may not have to go through several steps.
So that's that is something I expect to see in the next few years. Train the L_L_M_s about all the techniques that we have learned and how to apply them. I think right behind you.
Sorry, actually I have a follow-up question, do you mind if I go first? Thank you. Okay, sorry. Um so along these lines, I want to ask, especially those of you in the panel who are becoming more from the sort of programme languages and software engineering communities, are there any areas of the verification problem where you feel like we are trying to apply the wrong hammer to the problem, where we're trying to make A_I_ fit into that box, do you think we're barking up the wrong tree and we are is there any part of this problem where you think
Actually, more grad students should be trying to develop new programme analysis tools instead of trying to throw everything into black box element. Uh So w one uh one thing that will really uh become popular is execution, feedback, like trace it, understand what the programme is doing, because if the if the uh LLVM knows how to actually simulate the code, right?
Or even uh learn how to do it internally. That would be a great thing. Because then it can immediately generate code which is kind of verified. So I believe in future the execution driven or where you incorporate the execution traces in the L_L_L_ would be very powerful.
Yeah, we can also move on to the next question. Thank you. Um hi. So yeah, whenever I talk to like my software engineering friends the kind of big gap that they have with using L_M_ is just that yeah like they don't trust the output and then it's more effort to like verify the output themselves than it is to just like write the code from scratch.
So I'm kind of wondering if you guys have any thoughts on like what's actually needed to close that gap, especially if it's not like another L_L_M_ doing it and where like automated verification becoming like maybe a bit less niche to the point where like normal engineers can use it for like any kind of thoughts around that. If you don't have any
It's also okay. Oh, I can't give you colours um so sorry for that. I could try something. Yeah. Wait, now I forgot the question. Could you say one second? Wait. Yeah, I guess generally like what do you think is needed to close the gap for like normal developers to be able to trust the output of LLMs if it's like, you know, like another verification step or something?
Yeah, I guess where I'm coming from it's like oh well you could do this all in a proof assistant, but then nobody's going to use a proof assistant. So then you have to say okay well maybe if there's a nice work flow for them to you know have their high resource language and translate it into something like the proof assistant and then have some sort of guarantee that this translation was sound and you know
This is semantic preservation and whatnot. That would be that'd be great, then maybe then an L_L_M_ in the background can be proving things about, you know, your programme and you don't have to really worry about writing the proof. All you had to do was you know maybe write some tests up front that maybe generalised to some property that you're trying to prove. So I think
If there I think that there has to be some way to kind of lower the the burden uh for the developer and look kind of lower the bar of you know the expertise that you need to be able to start using any sort of verification tools. So
could definitely kind of come down to what sort of interfaces we have, what sort of visualisations they get to see about what's going on in the back end. Don't wanna overwhelm them with too much information, 'cause then they're just gonna back off from using it. So Yeah, it's just for the love thinking about these human aspects, it's very tricky. Yeah, I I can tell you my experience have been trying to write a library,
for the little p.m. that will instrument the code and run time it will produce all the values and also print the actual source code expressions for those values. So I just struggled with L_L_M_s uh for a day and what I so this is a real software engineering task and initially it was failing mostly in the compilation, because it was cutting some
different um hallucinating or depregated A_P_I_ So once uh I chatted with it and said it's depregated and so on so on, I didn't write an agent or anything. I was trying to do it manually. And then once it uh it fixed it, fixed the compilation problem. But then what is happening when you try to run it, it was not, it was crashing.
So then I had to struggle with that and finally at Olympic State. Um then the biggest challenge was it was not producing the right instruments and trace, right? It was not it was printing the dynamic at

It was printing the dynamic address instead of the source code thing. Right. So then it was kind of non-trivial to actually make the LLM understand. No, you i and it was saying I cannot do that. LLM LLM does not provide that instrumentation, and it's very complex to do it using the debugging information. So then I had to kind of write my own code, that part.
So, yeah so this is my experience. So I I don't think uh that I I need to get my work done, right? So as long as it compiles, as long as it runs without any crash and as long as it produces the result that I'm expecting on some small examples, I'm happy.
And the writing a code and a kind of which has different kinds of memory operations on which I can test, I also asked Helen to do that. And it wrote a very short code that is easy to debug for me. So that was also very nice. So yeah so it was it was a kind of a different kind of experience that I had from the benchmarks that you see.
Yeah, it's not actually not totally not my uh area, but that but I can say maybe maybe if you can do natural language to Mm-hmm. stack to programme, right, and get uh get us back to agree with the programme um or even tests, right, uh tests on programme, um yeah, write that that would seem seems to be pretty uh pretty use you useful and much more friendly than
I would also like to add to that. So even with Divs pack, we found that making use of specification documents that have been like that very clearly define what the code is supposed to do and how it's need to how it needs to behave under certain conditions, making use of those artifacts in addition to just your um
In addition to the code will probably help the model generate better code, because then you're forcing it to conform to the specifications that have already been written. So just making use of other artefacts that exist or maybe providing it with knowledge of like common bugs that people have encountered in the past will also help the model learn to not repeat those mistakes. Um so those are some ways in which you can probably improve reliability.
Hi um I'm a researcher in the software engineering side, so I was curious whether there were um fair fires or some other checkers for code that you thought would be helpful for L_L_M_ training during the training time or the test time, but that you think um do not exist right now, and so it would be good to work on those kind of fair fires, thank you.
So in my experience in score that is being written or mostly in Python and other languages nowadays, uh in those languages I do not know how to do formal proofs. Okay? Semantics are very difficult and even accessing a attribute of a object may call a function and what not, right? So it's very difficult to do those things. The thing that is winning is very straightforward. It's just write test.
Test you can understand. If you write the logical formula, it's even difficult for the programmers to understand, right? But if you look at the test, or this is this is this is what is going to happen, right? And this third element of this uh uh sentence right should be Glasgow, right? Or something like that, right? Writing those kind of tests are pretty easy and straight-forward.
And I I I'll see that those kind of things will actually help the software developers who are familiar with testing. And it also helps the L_L_M_s to understand what is the semantics that we are trying to get out of the programme. So that works pretty well in practice I think.
speculator perhaps. Uh so it's pretty hard to predict what uh what our demand really need, right? So at some point people say well okay it says you need certain syntax, uh and early early demand does struggle with the syntax. But uh but after our business it's very hard to find a places where it's uh struggling with the syntax anymore. Um yeah, I mean now now it does seem to be still struggling with execution.
Um right and I'm doing a real eye execution, it's pretty difficult. So there is definitely some interest in in seeing if there is some kind of light uh light weight version of the execution that can get you some of the way there. Um you know I keep keep looking for some something in in in static analysis, but uh don't really see see anything uh so far.
Um yeah, but probably like identify what s um what how M_S_ are still pretty bad at, and see if there is uh some some augmentation. Um Yeah, and like building on that, I think like some of the code editors like
cursor will have like a language server, like um Linting in the prompt. So like the the agent can like iterate based on the linting errors um sort of like a light lighter weight version of verification in some ways. Like um yeah potentially if there was like more extensive versions of this, that could be helpful. Yeah, so I just want to remind you that the relevance are pretty good in static code analysis because they are trained on static code.
But not on the dynamics of how the code is being executed. If it understands that, I think it will be much more powerful. I feel that I've seen in software engineering uh papers or products a lot they talk about coverage, I think.
We've got has talked in your talk about coverage. Um do you think when we were talking about L_L_M_ generated code, we still care about line coverage? Or are we okay with large swaths of code or comments existing that are purely for the L_L_M_ and don't have any functional purpose? Does that make sense? So what is the last. Um
Whether we're okay with LLMs generating large amounts of code that are purely for its own thinking or for whatever purpose it has, but doesn't have any functional purpose, uh like doesn't get any passage in coverage tests that are traditionally used in SWE.
So I guess are you saying that you're not verifying anything about that uh other stuff that's being generated? Yeah, it's just bare. Uh but I guess in this the reason it's being generated is because it helps you the the LM produce the final more correct solution, right? So in that sense who cares, right? Um it's nice that you got the correct solution. I guess if it's not getting correct solution then
I don't know. Is it possible to edit the other stuff that's being generated and will that make it get it correct solution? Maybe maybe not. Right, that's kind of what's been shown is that sometimes it can can have bad reasoning and still get the right answer. So it's unclear I think what to do with all that other all those other tokens that are being generated except just hope that it's reasoning well enough.
I mean maybe you can show that to a human who's having trouble debugging something and then they're able to clearly see the the fault in the reasoning and then it inspires them or gives them some sort of insight and so in that sense it's nice to have all those extra reasoning tokens. But yeah, I'm not sure what to do it.
So I like nowadays on we we see like, you know, various schemes that, well okay, L_M_s write the test to like verify some things uh but like um so there was this recent like open A_I_ uh uh like paper or post or something about like um to in in some scenarios the L_M_s can interfere with the test.
do like uh is it like like reward hacking? Do theory cost a test to pass even though uh the the code doesn't actually pass. And that like I was wondering if like you know if we continue using these schemes where like L_M_S_ get the write-out the the verification verification code that uh what could be potential mitigations against like such reward hacking.
I think a very simple way to prevent that is having additional sources, like specifications. So then you can't just reward hack with the test, right? Because you have these natural language documents that are very explicit.

natural language documents that are very explicitly telling you what the code should do. And you can also compare your you can generate your tests from the specification rather than the code. So it's um the tests are ensuring that the code does what it's supposed to do according to the specification rather than trying to just get the code to pass. Does that makes sense? So having like an additional layer of
uh specifications or like an additional artifact that could be helpful. Yeah. I think uh there there's a funny uh thing with a a popular data set called the NPPP, right. So so it has uh some some tests, uh the includes uh includes the tests in a in a prompts. There are like a there are very few problem with a hidden uh with a hidden test.
Uh but a vei you know, have you do the few shots prompt the model don't really think to to cheat uh treats uh as a normal problem even even though all the information for it to cheat and get uh get perfect uh score is there. Um
Yeah, but but if you if you do do R_ and the R_ is working properly then then that should be the the solution, right? It's a goo good test for your R_ R_ R_ algorithm. Um and when when you're uh um yeah uh uh yeah and when when when you do that then you have to think a bit harder uh about uh what what the real real world is. Um yeah, I guess if you have those specifications and the ability to
To verify that uh yeah, that should right, that should work. Um yeah, but but it seems to be a fairly rare situation. Um otherwise we rely on maybe more more code, more tests tests where the input is uh very long. Um
Yeah, or hard very hard to in uh to ha to to really understand and hack or harder than to write a solution. And um yeah so far this hasn't sent too much of that. So so there are all kind of works like don't don't work that well yet. What oh oh I mean like uh
Yeah we don't see that much, but I was referring more to like okay, at least like uh that that that paper I was talking about, like open air was testing their like new frontier un-wieldy small dog kind of thing that like it could be a preview of like when we reach another level of scale, that could be a preview of uh what could happen. Yeah yeah, so today at least with the ones that we have access to, I d don't also don't see that much.
It's just like thinking what what if that whatever open AI claims in that paper could be the future that that we see as we scale the models up. Yeah yeah yeah I think it's a fair point like uh as you I mean I think there's probably still more to push on like the RL training on the code and as you do that you're eventually going to hit the point where you're like over optimizing the test cases.
Uh it does seem like if if you keep it uh scaling this, it'll uh like an inevitable thing that will happen. Um I'm not sure what the solution to that though. Um but yeah, it definitely seems like a real problem. So just uh I wonder be quite
So that was saying that uh it used to make like syntax errors, but and we used to do a lot of post-processing to avoid those things, but now we don't care. L_L_M_s know about it. Recent L_L_M_ models are again l a lot of kind of constraint decoding and and all those things typed system we used to do, but now it's the L_L_M_s don't make those kind of mistakes.
So I believe that whatever is happening, all this test generation, the based on that, eventually, I don't know whether it is R_L_ or something, but eventually the next leap will be where you don't have to do all this post-processing. They'll be incorporated in the model. So I I means my experience is we are been working on security and uh two point five pro came out.
And they wiped one of the benchmarks. Several of our benchmarks are gone. So now we need harder problem. I think there was a question over there. Uh hi, so yeah this is Tao Yu and uh yeah assistant professor from uh uh HKU, the University of Hong Kong. So I have one question about the
Uh scale I_I_ on this kind of example, training training uh train like a large rank models on this kind of verifiable task tasks using like scale I_I_ So for example uh uh uh we have seen a lot work in this kind of direction like DeepSeek, R_ one and also O_ one this kind of stuff.
um but recently uh uh some people argue that like uh uh uh training like uh a large random models on these kind of verifiable uh uh tasks using scale R_L cannot lead us to kind of a generalisation stuff like uh uh this kind of stuff, right? So so so uh uh because like uh uh why people uh
uh uh uh very like uh a passion uh like uh a lot of people uh are interested in this kind of uh scary hours because they can probably uh it's more likely to lead to like a uh a broader generalisation compared to for example uh S_F_T_ this kind of approach.
So so so so yeah, uh yeah, my question is like uh I would like to see like uh uh yeah uh your thoughts on this kind of uh uh uh question just like a uh if like a R_L_ can lead us to like a broader generalisation and stuff. Yeah, I think it's a good question. Like it these models are extremely good at like coding competitions. So like O_ three is like t
in the top like couple hundred people at coding competitions. But it's not like a top two hundred software engineer in the world or anything. So it seems like m you know that that's kind of the easiest thing for the R_L_ to optimise against. And maybe these skills are slightly correlated, so you get a bit better at coding competitions, it can do a little bit better in your real world code base, um but it doesn't like
dramatically improve there. And so th yeah, I think there is an interesting question of like how do you do the R_L_ on um like real world uh code settings where like a user cares, can you like directly optimise for this it in a little bit more of a targeted way or maybe how can you get more transfer to these settings. Um yeah I think uh it it's an o interesting open challenge in my opinion.
I I noticed uh recent uh results from one of the groups at Berkley. Uh so they t uh p uh did R_L_ on the geometry problems and it suddenly started getting good performance on the entire math set. But when they R_L_d on commutative problem, it didn't work.
Yeah, it seems like there's an interesting question of like how do you construct the set of verifiable demands which are useful for transferring to the tasks that maybe you care about. Um I think that that's like an interesting way to look at it, like an environment building perspective where the right environments to build. Um
I guess even even now there there even for the math code competition type of problems, right, there is still some lingering doubt uh if it's uh still just uh better recalling um
I can see how you know you know training set uh that uh has been before. Uh so so there is still a bit of a way to go. Uh right. I would say like if this solves an all open problem, a important open problem, that's the other point than um than most most people probably uh comments. Uh especially if it sol solves uh that you know you know a way that's not trivial even in retrospect. Uh not not not easy to see even in in retrospect.
Um but so far it have hasn't hasn't done that. And there are some evidence that uh you you don't really go beyond your past that uh high K, uh you have your base model. Yeah so so you want before you move to real real work, there is a little there there is more to do in the verifiable setting.
Hello, uh my question is more of um concerning influence time scaling. And currently the dominant paradigm in influence scale um influence time scaling is about just outputting more tokens and hoping for for your model to to self-reflect, to self-correct and output a better answer. So I would like to know whether this paradigm has mathematical foundation. Are we guaranteed that
By scaling the number of token during inference, we are going to improve the the model overall generation capability.

generation capabilities. And the second uh uh the second question is whether we can um what do you think about this paradigm? If we could, what are of um some other avenues that we can explore in order to make inference time scaling more robust, not just relying on outputting more tokens. Thank you.
Yeah, so for um sort of like the mathematical foundations, I I guess one perspective you could take is that um when it's doing sort of the inference scaling, it's sort of um approximating some kind of algorithm in its weights as it's like carrying out the chain of thought.
And so as you train it for this task, uh basically the model is kind of doing some kind of like induction over sort of the spaces of algorithms which are useful for um solving the task. Um and
You could in principle also get this from just doing a deeper network, but maybe there's something um special about having sort of the the natural language prior and um uh sort of separating it out, spreading it out over multiple tokens uh multiple discrete tokens. Uh outside of that, I'm not sure how much more mathematical foundation like rigorous mathematical foundation there is um behind.
And these ideas. Um I guess there was a second question about like improving the robustness. Um were you referring to like sort of uh like more robustly like generalizing to other tasks or yeah.
Yes I'm a bit about uh if they are since I I personally about aware of any mathematical foundation backing the fact that by generating more tokens we are going to reach better um unexpected outcome. So I was wondering whether if there is none whether they are I mean whether what do you see
uh this area of influence time scaling going I mean in the research so that we can move from just uh um we can move from just scaling the generation tokens to something that is more robust and have a solid mathematical foundation. Yeah, I guess wha
Like one thing that comes to mind is like adding more supervision to the like chain of thought you could um in principle instead of just supervising on the final outcome have certain rewards that apply to the like thinking process itself um that could probably greatly in in improve the robustness and like you could have slightly stronger um guarantees on
Maybe how the model is getting to the answer in that way. Um other than that I'm I'm not entirely sure.
Well, because the the the there is a some part of it which is uh y you you don't need to do experiment for. Uh there are problems which just takes a lot of time steps like a computing a hash function uh recursively or or some problem that just needs uh to do a lot of search and you you just have to do it uh uh step by step uh right and and I think there there are some theory about the like you know there are some problems are not solvable.
for people below a certain time complex of here. Right? And for those as in some kind of uh a year year for instance time compute uh has has to be uh and they cannot be parallelized. Um so so even without doing experiments you can't uh though those are need need inference time steps.
Okay. Uh yeah, uh so I have uh like a follow-up question, uh yeah still on this kind of uh steering eye of a like a approach. So for example uh uh so I have talked to a lot of people like uh uh from the industry for example all the eye or astrophysics people they uh some of them say like uh in in the era of like a scale eye or for larger animal models of this kind of stuff, the most important the question here is like uh
Uh most important uh thing to do is like uh okay I basically scale the number of like uh uh verifiable tasks.
Uh then uh I don't need to pay a lot of attention on like uh like uh uh like a for example aisle uh aisle masses or or like uh any other training technical things or something. Basically I get a lot of like uh uh verifiable tasks and uh I scale it. And uh oh uh of course they they they also need to make sure the the the the task set is diverse.
and they'll cover uh a lot of uh scenarios and something and the based on this kind of a a a very fabulous task sets, then it's scale L then you you basically uh work and uh is it yeah it's also scale like uh uh just uh just like what we have seen in like a steering eye uh like a steering law, uh in larger component of per training stuff. Right so so so so it's just like a uh uh uh uh uh like a leave a a like more like uh less
space for academia or small research labs to compete with them, okay, here. So so so my question here is like uh uh uh in this kind of era of like a scary eye or stuff, uh what kind of other like uh uh interesting research questions uh do you think uh like uh about for example like uh academia or small research labs can work on and stuff? Yeah yeah so so yeah this is my question, thank you.
Okay, I think uh uh so yeah, uh I mean I guess the scaling part is sort of obvious, right? That's uh what what people do when they have uh lots of uh computer, um and and uh yeah, multi-task, uh sure, let's let's do it. Um but uh but but there there are some pretty clear things uh clear problems, you know, you know currently in R_ R_L_ process, right? That we're learning from verification uh verifying reward.
Word. Right, so so you have to still gather reward somehow, um right. So so you're not getting the reward, the problem too hard, you you're not uh learning uh anything at all. Um right. Uh uh another another conceptual thing is uh you you're you're only you're only learning from the reward even if you got the reward, right. So uh we're that that's um also very inefficient.
Right. Like y uh we we learn um the the sum plus the thing that these these rather have to learn is the the format, right? And that takes a takes a while. And uh even even at uh after lots of our errors, there are still occasional formatting mistakes due to various r reasons. Um right and it has to figure figure that out.
from from the samples. Uh mo mostly if you do m do single turn it's fine. If you do do multi-turn you still get so get formatting issues. Um right and and you could that's partially because it only sees the reward, right? The people people you uh you you made a formatting error, you analyse why you made a formatting error and uh maybe try not to do that next time. Right, the the current paradigm don't seem to have that.
So so one thing I've noticed, the reasoning traces are not always correct. They might have logical bugs. I've seen that. Um earlier models I had issues with instructions. I gave a bunch of instructions, it may not follow all of them, okay, and do its own stuff or follow them in different order.
Uh so I think that has been fixed with the recent models. Uh they are pretty pretty good at following the instructions. I think the logical kind of bugs, if we can get rid of them, it will be another step towards more robust kind of uh post-inference uh for for scaling.
Because it still m is my experience comes from code and it was reasoning in the wrong way about the code. And then it's generating the right input, which crashes. So and that was not satisfactory to me, because if you have to explain why the input is causing the bug, okay, and if you look at the reasoning, you'll be totally confused. So I think the next step should be, at least l things should be logical.
It has the notion of causality should be there.
So I had the same question a few years ago, when like Copilot came out, a lot of the work I was doing was no longer relevant. And the strategy I took was to not compete with industry. I think there are a lot of other problems out there that industry is not really interested in. So if you are in academia you should probably focus on other problems.

only focus on other problems and not worry about scaling or not try to solve problems that GPT five or GPT six will solve. Because there are other interesting problems out there. And personally, I didn't want to compete with these big industry like open AI models. So catalum was like a very good example of that because
Uh even though it was an ex really small model, it was only two point seven billion parameters using some insight from using domain insight or like domain knowledge can fundamentally improve models and you don't always have to just focus on
building larger modules with more parameters and more data. So maybe think about uh the domain you're interested in and other insights that could fundamentally improve these models rather than trying to like compete against just scaling.
Yes. There are several other problems you can also solve that will improve the uh the reasoning and the answering. And one such thing is um it's uh uh you can you can create the right context. Okay. Preparing the right context for the inference it's a hard task.
You can help with kind of the data curation, data generation, high quality data generation, because it seems that with high quality data, the LLMs perform better, right. So there are things that we can do in academia which may not need you to RL a big model.
I guess my kind of question for you is, um, so let's say I've collected a lot of high-quality data for um some verification task, and it was, you know, a big struggle to collect this data 'cause it required a lot of human effort, um human subjects, things like that. But in the end I only have very few examples. Um
I guess w is my only option then to just kind of use that prompt a model with my examples and, you know, hope for the best or do I try somehow scaling this data, doing some bootstrapping or whatnot to synthetically generate more like conditioned on my nice examples that I curated.
So if human is involved then it's uh it's difficult to write scale and you can bootstrap and do those kind of things. It's not clear. I mean it may not be out of the domain so you're not learning something new. Yes. Yeah, so that that is one thing. But uh for a kind of data where you can generate automatically high quality and very viable.
So those data is pretty useful and it improves the performance of the elements a lot. And i if you want to see whether your data generation is of high quality or not, you can just train a sixteen B_ or thirty two B_ model which you can do in academia and see whether it is improving. And if you put those results, the big labs will pick that pick those things up and they will use it and
improve their models using similar techniques. Okay, great. Uh I think with that then we'll wrap up the panel. Thank you all so much. If we could all give a round of applause.
And yeah, that that wraps up Verif AI, the first Verif AI. Thank you all, I had a really great time. You got to hear some great presentations and had some really great conversations throughout. Thank you so much. We can support the organisers. Yeah. and
