Skip to content
29 - Science of Deep Learning with Vikrant Varma episode artwork

Apr 25, 2024 2 hr 13 min

29 - Science of Deep Learning with Vikrant Varma

from AXRP - the AI X-risk Research Podcast

In 2022, it was announced that a fairly simple method can be used to extract the true beliefs of a language model on any given topic, without having to actually understand the topic at hand. Earlier, in 2021, it was announced that neural networks sometimes 'grok': that is, when training them on certain tasks, they initially memorize their training data (achieving their training goal in a way that doesn't generalize), but then suddenly switch to understanding the 'real' solution in a way that generalizes. What's going on with these discoveries? Are they all they're cracked up to be, and if so, how are they working? In this episode, I talk to Vikrant Varma about his research getting to the bottom of these questions. Patreon: patreon.com/axrpodcast Ko-fi: ko-fi.com/axrpodcast Topics we discuss, and timestamps: 0:00:36 - Challenges with unsupervised LLM knowledge discovery, aka contra CCS 0:00:36 - What is CCS? 0:09:54 - Consistent and contrastive features other than model beliefs 0:20:34 - Understanding the banana/shed mystery 0:41:59 - Future CCS-like approaches 0:53:29 - CCS as principal component analysis 0:56:21 - Explaining grokking through circuit efficiency 0:57:44 - Why research science of deep learning? 1:12:07 - Summary of the paper's hypothesis 1:14:05 - What are 'circuits'? 1:20:48 - The role of complexity 1:24:07 - Many kinds of circuits 1:28:10 - How circuits are learned 1:38:24 - Semi-grokking and ungrokking 1:50:53 - Generalizing the results 1:58:51 - Vikrant's research approach 2:06:36 - The DeepMind alignment team 2:09:06 - Follow-up work The transcript: axrp.net/episode/2024/04/25/episode-29-science-of-deep-learning-vikrant-varma.html Vikrant's Twitter/X account: twitter.com/vikrantvarma_ Main papers: - Challenges with unsupervised LLM knowledge discovery: arxiv.org/abs/2312.10029 - Explaining grokking through circuit efficiency: arxiv.org/abs/2309.02390 Other works discussed: - Discovering latent knowledge in language models without supervision (CCS): arxiv.org/abs/2212.03827 - Eliciting Latent Knowledge: How to Tell if your Eyes Deceive You: https://docs.google.com/document/d/1WwsnJQstPq91_Yh-Ch2XRL8H_EpsnjrC1dwZXR37PC8/edit - Discussion: Challenges with unsupervised LLM knowledge discovery: lesswrong.com/posts/wtfvbsYjNHYYBmT3k/discussion-challenges-with-unsupervised-llm-knowledge-1 - Comment thread on the banana/shed results: lesswrong.com/posts/wtfvbsYjNHYYBmT3k/discussion-challenges-with-unsupervised-llm-knowledge-1?commentId=hPZfgA3BdXieNfFuY - Fabien Roger, What discovering latent knowledge did and did not find: lesswrong.com/posts/bWxNPMy5MhPnQTzKz/what-discovering-latent-knowledge-did-and-did-not-find-4 - Scott Emmons, Contrast Pairs Drive the Performance of Contrast Consistent Search (CCS): lesswrong.com/posts/9vwekjD6xyuePX7Zr/contrast-pairs-drive-the-empirical-performance-of-contrast - Grokking: Generalizing Beyond Overfitting on Small Algorithmic Datasets: arxiv.org/abs/2201.02177 - Keeping Neural Networks Simple by Minimizing the Minimum Description Length of the Weights (Hinton 1993 L2): dl.acm.org/doi/pdf/10.1145/168304.168306 - Progress measures for grokking via mechanistic interpretability: arxiv.org/abs/2301.0521 Episode art by Hamish Doodles: hamishdoodles.com

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

29 - Science of Deep Learning with Vikrant Varma

0:00 2:13:46
of matches

Transcript Auto-generated, may contain errors

Hello everybody. In this episode, I'll be speaking with the Chrome Pharma, a researcher in the Google DeepMind and the technical lead of their sparse auto-encoders effort. Today we'll be talking about his research on problems with contrast and system search and also explaining working through circuit efficiency. If you want to discuss the description, you can read the transcript at xRP.net.

All right. Well, welcome to the podcast. Thanks, Daniel. Thanks for having me.

Yeah. So first, I'd like to talk about this paper. It is called Challenges with Unsupervised LLM Knowledge Discovery. And the authors are Sebastian Farker, you, Zachary Kenton, your guest tiger, Vladimir Mcklek, and Rickinshaw.

And this is basically about this thing called CCS. Can you tell us what does CCS stand for and what is it? Yeah. CCS stands for Contrastive Consistent Search.

So I think to explain what it's about, let me start from a kind of more fundamental problem that we have with advanced AI systems. One of the problems is that when we train AI systems, we're training them to produce outputs that look good to us. And so this is the kind of supervision that we're able to give to the system. And we currently don't really have a good idea of how any AI system or how a neural network is computing those outputs.

And in particular, we're worried about the situation in the future when the amount of supervision we're able to give it causes it to achieve a superhuman level of performance at that task. And we can't, by looking at the network, we can't know how this is going to behave in a new situation. And so the Alignment Research Center put out a report recently about this problem and the name of this problem is, or the name of potential part of this problem as eliciting latent knowledge. And what this means is, if your model is, for example, really, really good at figuring out what's going to happen next in a video, as it's able to predict the next frame of a video really well given a prefix of the video, this must mean that it has some sort of model of what's going on in the world.

And instead of using the outputs of the model, if you could directly look at what it understands about the world, then potentially you could use that information in a much safer manner. Now, why would it be safer? So consider how you've trained the model. Supposing you've trained the model to just predict next frames.

But the thing that you actually care about might be, you know, is your house safe? Or is the thing that's happening in the world a normal sort of thing to happen? I think that we desire. And you have some sort of adversary, perhaps this model, perhaps a different model, that is able to trick whatever sensory using to produce those video frames.

Now, the model that is predicting the next video frame understands the trickery. It understands what's actually going on in the world. This is an assumption of superhuman systems. However, the prediction that it makes for the next frame is going to look very normal because your adversary is tricking the sensor.

And what we would like is a way to access this implicit knowledge of the latent knowledge inside the model about the fact that the trickery is happening, and be able to use that directly. Sure. And so I take this as kind of a metaphor for an idea that like, we're going to train an AI system, we're going to train it on an objective of like the stuff we like. And the notion of like, you know, we imagine that we're like measuring a world in a bunch of ways, right?

We're looking at GDP output, we're looking at like how many people give a thumbs up to stuff that's happening, you know, various sorts of ways we can monitor the performance of an AI system. And then an AI system could potentially like be doing something that we actually wouldn't approve of if we understood everything correctly. But like, we all give thumbs up to it. And so like, you know, ideally we would like to somehow get at the, it's latent knowledge of what's going on rather than just does a predict that we would thumb up a thing.

So we can say like, Hey, you know, do we actually want AI to pursue this behavior? Or like, are we going to reinforce this behavior rather than just reinforcing things that in fact would get us to give a thumbs up, even if it would suck in something. That's right. So one way you can think about this problem is we're trying to improve our ability to tell what's actually going on in a situation so that we can improve the feedback we give to the model.

And we're not able to do this just by looking at the model's outputs or the model's prediction of what the world will look like given certain actions. We want the model to connect the thing that we actually care about to what's going on in the world, which is a task that we're not able to do. Sure. So without other way, what was this CCS thing?

Yeah. So CCS is a very early proposed direction for solving the problem of listening late to knowledge. And in brief, the way it works is, yeah, so supposing you had a way to probe a model to tell you what it believed about some proposition. This is this is the kind of ideal thing that we want.

Supposing a solution to help. Then one property of this probe would be that the probability that this probe would assign to some proposition would be would satisfy the loss of probability. So for example, it would satisfy the effects equals one minus B of not X. And so you might try to use consistency properties like this to search for probes that satisfy them.

Sure. And speak clear by probe, you mean like a learned function from the activations of the neural net to like a probability or something? Yes. So you could have probes of different levels of complexity.

The particular probe in used in CCS is a kind of very simple linear probe on the activations at some site. Sure. So the idea is we like, there are some properties that are true of probabilities like the probability of X is one minus the probability of not X. And the hope is we like train a probe to sort of fit the laws of probabilities and stuff.

And hopefully that will get at the model's beliefs because the model's beliefs will be probabilities. That's right. Yeah. So there's a there's a lot of subtlety here.

So the thing I described is true of the models sort of true belief or true probabilities that is assigned to things. Yeah. It's also true of many other types of things that the model might be computing. And this is really a core of the problem that we pointed out in our in our challenges paper.

So I could go a bit into the problems or I could go a bit more into how CCS itself works. Yeah. Just thought CCS itself worked. So we have a sense of like what we're talking about.

OK. So mechanistically, what's going on in CCS is that you take a set of factual yes or no questions that you think the model knows the answer to. So an example of this is IMDB movie reviews where you're fairly sure that a model of a certain size knows whether the sentiment in the review is positive or negative. Now for each item in the state of sets of each review, you construct a contrast pair by appending, for example, the string.

This review is positive or this review is negative to that item. OK. And now you take now you take the difference in the activations when you run these two contrast pairs through the model. So I'm going to call these contrast pairs as having different charges as a positive charge and a negative charge.

OK. You're constructing these contrast pairs with these pairs of activations. And then I think you can do is you can cluster them. So when you're clustering the difference in the like positive and negative charge, the thing you will find or the thing you might hope to find is whether the model thinks that the charge that was dependent to the statement is true or is false.

And these two things will point in different directions. And so that's why you might hope that you could separate them. Now CCS is slightly different from this in that it doesn't directly do the clustering. So instead in CCS, you learn a probe that directly outputs the probability of that statement being true.

And then you're training the probe using this consistency property. So the fact that the two opposite contrast pairs should be like the negation of each other. And I'm right that before you take the contrast pairs, you like take all of the positive charge activations and like subtract off their mean and divide by the standard deviation. So the differences are just pointing in the direction of like is it is there a view or is the thing at the end saying this reviews was it versus this or his negative?

Yes, that's right. Right. So this is another pretty subtle point. One one problem with this general method of classification is that if there are other differences that are salient between the two contrast pairs that are not just did I construct a true statement, did I construct a false statement, then you might end up separating your clusters based on those differences.

Now, one obvious difference between the two contrast pairs is that you append a positive charge and you append a negative charge. And so that's a really straightforward one that we have to fix. And the method proposed in the CCS paper to fix that is that you take the average sort of positive activations and average negative activations and you subtract those off. And so you might hope that the thing you're left with is just the truth sort of value.

It turns out that in practice, it's not at all clear that when you normalize in this way, you're left with only the truth values. And one of the experiments we have in our paper is that if you introduce distractors, so for example, you put a nonsense word like banana in the middle of half of the or the end of half of the reviews and you put different nonsense word like shed at the end of the other half of reviews. Now you have this kind of weird other property, which is like is your statement banana and positive charge or is your statement banana and negative charge? And this is obviously not what you would hope to cluster by, but it turns out that this is just way more salient than is your review positive and positive is your review like that's your positive sentiment and did you append a positive charge, which is the thing you actually wanted to cluster by.

Yeah. So this is this is an important point that I wanted to make that this procedure of normalizing is it's actually quite unclear whether you're able to achieve the thing you wanted. Sure. So before we talk about these experiments, I'd like to talk about just like, so like in your paper, first you have some theorems, then you have some experiments.

I think that's a good way to proceed. So theorems one and two of the paper, I read them as basically saying that the CCS objective, it doesn't really depend on the propositional content of the sentences. So if you think of the sentences as being like, our cats mammals answer yes, and our cats mammals answer no or something. Like one way you could get low CCS loss is to basically be confident that the yes or no label matches the proposition of whether or not cats are mammals.

And I take your propositions one and two is basically saying, you know, you can just have any function from sentences to propositions. And like, you know, so for instance, maybe this function maps our cats mammals to is is Tony Abbott, the current Prime Minister of Australia. And like, you know, just write the yes or no answers based on like, you know, do they match up with that like transform proposition rather than the ritual proposition. And like that will achieve the same CCS loss.

And basically, like the CCS loss doesn't necessarily have to do with like what we think of as the semantic content of the sentence. So this is kind of my interpretation of the results. I'm wondering like, do you think that's fair? Yeah, I think that's that's right.

Maybe I want to give a more realistic example of a kind of unintended probe that you might learn that will still give a good CCS loss. But before that, I want to try and give an intuition of what the what the theorem is saying. So it's saying that the CCS loss is saying any probe that you find has to has to say opposite things on positive and negative charges of any statement. Yeah, this is the consistency property.

And the other property is contrast where it's saying, you have to push these two values apart. So you can't just be uncertain. You can't just be 50 50 between these two. Now, if you have a if you have any CCS probe that satisfies this, you could in theory flip the prediction that this pro makes on any arbitrary data point, and you end up with the probe that has exactly the same boss.

And so this is showing that in theory, there's there's not like theoretical reason to think that the probe is learning something that's actually true versus something that's kind of arbitrary. And I think all of the burden then falls on what is like simple to extract given given actual probe empirically. Yeah, so I take it. So if I'm trying to kind of defend the theory of the CCS method, I go to something like, well, kind of, most of what there is to a sentence is it semantic content, right?

Like if I say cats or mammals or something, like, you might think that most of what I'm conveying just is the proposition that cats or mammals. And like most of what there is to, you know, model about that is, you know, hey, you know, Daniel said this proposition, the thing he's saying is like cats or mammals. And like, you know, the neural network is representing that proposition and it's head somehow and maybe it like, and maybe, you know, it's keeping track of is that proposition true or false, because like, that's relevant because, you know, if I'm wrong about cats or mammals, then I might be about to say another bunch of more full stuff. But if I'm right about it, I might be about to say a bunch of more correct stuff.

So, yeah, like, like, what do you make of that kind of simple case that like we should expect to see the things CCS wants us to see? Yeah, that's great. So now we're coming to empirically what is simple to extract from a model. And I agree that in many cases, with simple statements, you might hope that the thing that's most salient as in like the direction that is kind of highest magnitude inside activation space is going to be just whether the model thinks the thing that you just said is true or false.

This is even assuming that the model has a thing as ground truth beliefs, but let's make that assumption. Now, it gets pretty complicated when once you start thinking about models that are also like modeling other characters or other agents. And any large language model that is trained on the internet just has like pretty good models of all sorts of characters. And so if you're making a statement in a context where a certain type of person might have made that statement.

So for example, you say some statement that let's say Republicans would endorse the Democrats would not implicitly the model might be updating towards the kinds of contexts in which that statement would be made and what kinds of things would fall in the future. And so if you now make a different statement that is let's say factually false, but that Republicans would endorse is true. It's totally unclear whether the truth value of the statement should be more salient or whether the Republican belief about that statement should be more salient. So that's one example.

I think this gets more complicated when you have adversaries who are deliberately trying to like produce a situation where they're tricking someone else. And so now the model is not another neural network is really modeling very explicit sort of beliefs and adversarial beliefs between these different agents. And if you are simply looking for consistency of beliefs, it feels pretty unclear to me, especially as models get more powerful that you're going to be able to easily extract what the model thinks as the ground truth. Sorry, why you haven't adversary what was the adversary doing?

So okay, maybe you don't need to go all the way to an adversary. So I think we could just talk about the Republican example here where if you're making a politically charged statement that for the sake of this example has a factual ground truth, but that Democrats and Republicans disagree on. Now there are sort of two beliefs that would occur in the models activations as a strength to model situation. One is the factual ground truth and the other is the Republicans belief or the Democrats belief about the statement.

And both of these things are going to satisfy the consistency of property that we named. And so especially when you're in a context where this is sort of like saying, we have the same problem as models being sycophantic, where the model might know what's actually true, but is in a context where for whatever reason modeling the user or modeling some agent and what it would say is more important. Okay, so I take this. So to me, this sort of points towards two challenges, the CCS objectives.

So the first is something like, you know, the propositions might not, the sentences might not map on to the propositions we think of, right? So like, yeah, this experiment where you, yeah, you'll, you'll pen the, you take a movie reviews and also you'll pen the word banana or shed. And then you depend it with sentiment is positive and sentiment is negative. And sometimes CCS is like, basically checking if the positive negative, you know, label is matching whether it's banana or whether it's a shed, rather than like the content of the review.

So that's the case where it seems like what's going on is the propositional content that's being attached to positive or negative is not what we thought it was. And then a different kind of problem is like, or what seems to me to be a different kind of problem is like, you know, the purpose of picking up on the right propositional content, there's some politically charged statement. And the purpose of really picking up like someone's beliefs about that completely charged statements. But it's not picking up the models beliefs about that statement.

It's picking up like one of the characters beliefs about that statement. Does that division feel right to you? I think I wouldn't draw a very strong division between those two cases. So the banana shed example is just designed to show that you don't need very complicated, or how should I do this?

Models can be trying to entangle different concepts in like surprising and unexpected ways. So when you when you're attending these nonsense words, I'm not sure what computation is going on inside the model and how it's trying to predict the next token. But whatever it is, it's somehow entangling the fact that you have banana and positive charge and banana and negative charge. I think that these kinds of weird entanglements are not going to go away as you get more powerful models.

And in particular, there will be entanglements that are actually valuable for predicting what's going on in the world and having an accurate picture that are not going to look like the beliefs of a specific character for whatever reason. They're just going to be something alien. And in the case of this, in the case of banana shed, this is I'm not going to say that this is like some galaxy brain scheme by the model to predict the next token. This is just something weird and it's like breaking because we put some nonsense in there.

But I think in my mind, the difference is more like a spectrum. These are not like two very different categories. So you start thinking spectrum is like, look, there are weird entanglements between like the final charge at the end of the thing and stuff about the content. And one of the entanglements can be, you know, throws the charge match with the actual propositional content of the thing.

One of the entanglements can be does the charge match with what some character believes about the thing. And one of the entanglements can be like, doesn't match with whether or not some word is present in the thing. That's right. Okay.

Yeah. Actually, so you're digging in on this banana shed example, like, like for CCS to fail here, my understanding is it has to be the case that like the model is like basically has some linear representation of the XOR of, you know, the thing says their view is positive. And it's a their view ends in the word banana. Right.

So like, there's one thing if it ends in banana and also your view is positive, or if it ends in shed and it says their review is negative, that's the other thing if it ends in shed and it says your view is positive or it ends in banana and it says their view is negative. So like, what, what's going on there? You know, like it seems weird that like this kind of XOR representation would exist. And like, we don't talk to be part of the pro because linear functions can't like produce XORs.

So it must be thinking about the model's activations. Like, what's up with that, you know? Yeah, that's a great question. So there was a whole, there was a whole thread about this model on our post on a strong and I think Sam Marks looked, looked into it in some detail.

So Rohenshia, one of my co-authors commented on that thread saying that this is not that surprising. And I think, I think I agree with him. I think it's less confusing when you think about it in terms of entanglements than in terms of XORs. So it is the case that you're able to back out XORs if the model is doing like weird entangled things.

But let's think about the case where there's no distractors at all, right? So even in that situation, the model is basically doing is true, XOR has true. And you might ask, well, that's a weird thing. Why is it doing that?

It's more intuitive to think about it as the model saw some statement and then it's all claimed that the statement is false and it started trying to do computation that involves both of these things. And I think if you think about it, if you think about banana shed in the same terms, like it's all banana and it's all, you know, the statement is false and it started doing some computation that depended on the fact that banana was there somehow, then you're not going to be able to remove this information by subtracting off the positive charge direction. Okay, so is the claim something like, so basically the models activations at the end, they're this complicated function that takes all the previous tokens and puts them into this high dimensional vector space, that vector space being vector space of activations. And it sounds like what you're saying is like, look, if you're just generic functions that depend both on the state banana or shed and does it say to view as positive or negative, just like generically, those are going to include this like XOR type thing or somehow be entangled in a way that you could like linearly separate it based on that.

Yes, that's right. In particular, these functions should not be things that are off the farm, like add banana and add shed, they have to be things that do computation that are not like you're nearly separate like that. Okay, is that like, is that true? Does someone check that?

Because that feels like a, okay, maybe one way you could prove this is to say like, well, if we model like the charge and the banana shed as binary variables, there are only so many functions of two binary variables. And like, if you've got a bunch of activations, like you're going to cover all the functions, is that roughly, is that like a proof sketch? I'm not sure how many functions of these two variables you should expect the model to be computing. I feel like this depends a bit on, this depends a bit on like what other variables are in the context and because you can imagine that if there's like more than two, if there's like five or six, then these two will like co-opear in some of them and not in others.

But the thing you can definitely do is you can back out the sort of XOR of these two variables by just linearly probing the model activations. And I think this effect happens because you're unable to remove the interaction between these two by just subtracting off the charge. And I would predict that this would also be true for like in other contexts. So I think models are probably computing like joint functions of variables in many situations.

And these will kind of, the saliency of these will probably depend a bit on the exact context and how many variables there are. And eventually, the model will run out of capacity to do like all of the possible computations. Sure. It sounds like, like based on the explanation you've given, it seems like you would maybe predict that you could figure out the, that you could get a banana shed probe from a randomly initialized network.

If it's just, you know, I don't think it's doing a bunch of computation and generically like computation, tendest to untangle things. I wonder if you've checked that. Yeah, that's a good experiment to try. That seems plausible.

Okay. We haven't checked it now. Yeah, fair enough. And I guess like, sorry, I just have so many questions about this.

There's still a question to me of like, even if you think the model represents, there's a question of why it would be like so salient, you know, because like, you basically, yeah, your paper has some really nice figures. Listeners, I recommend you check out the figures. I believe, like, this is the figure for the banana shed experiment. And you show like a principal component analysis of just like, like basically embedding of the activation space in three dimensions.

And basically what you show is that like, it's very clearly divided on the, on the banana shed. Yes. Like, that's one of the most important things that model is like, representing. Yeah.

What's, what's that seems like a really strange thing for the model to care so much about, you know, I'll point out first, firstly that this is a, this is a fairly weak pre-trained model, a extintilla ATB. Okay. So this model is like not going to ignore kind of random things in its prompt. It's going to a quote unquote break the model.

Okay. That's one thing that gives you a clue about why this might be salient for the model. So like, it would be less salient if they were just like, if there were words you expected, you know, the model could just like deal with it, but but the fact that it was like a really unexpected word, like in some ways, I mean, decompress it, you've got to like think about that in order to figure out what's happening next. That's right.

Yeah. I just expect that there's text on the internet that's like, that looks kind of normal and then suddenly has a random word in it. And you have weird things like, after that point, it just repeats banana over and over or weird things like that. And the model when it's, yeah, when you just have a pre-trained model, you haven't gotten, you haven't suppressed those methodologies.

And so the model just starts thinking about bananas at that point. I said to think about the review. And does that mean you would expect that some melty presence in models that have been like RLA-chef or instruction fine-tune or something? Yeah.

I expect it to be hard to distract models this way with instruction fine-tune models. Okay. Cool. Okay.

I've two more questions about that. One thing I'm curious about is it seems like if I look at the plot of like what the CCS method is doing when it's being trained on this banana shed data set, like it seems like sometimes it's roughly 50-50 if you grade the accuracy based on just the banana shed and not the actual review positive. Sometimes it's like 85, 90%. This is across different seeds?

Of course different seeds, I think. And then like if you look at it, if you're grading it based on whether their view is actually positive or not, sometimes CCS is 50-50 roughly, sometimes it's 85, 90%. But it seems like so firstly, I'm surprised that it's it can't quite make its mind up. Like across different seeds, sometimes it'll do one, sometimes it'll do the other.

And it seems like in both cases, you know, most of the time it's a 50-50 and only some of the time it's 100%. So it seems like sometimes it's doing a thing that is neither checking if their view is positive or checking if their view is like containing banana or shed. So firstly, does that sound right to you? And secondly, do you have a sense of like what's going on there?

Why is so inconsistent and why does it sometimes seem to do a third thing? Yeah, so I think this is this is pointing at the brittleness of the CCS method. So someone has an excellent write-up on this. I'm forgetting whether it's Fabian Roger or Scott Hemmons.

But I think Scott doesn't focus so much on the brittleness. So it might be Fabian. Okay. But any case, this person did this experiment where they subtracted off, they found like the perfect direction to separate these two, the perfect truth direction that separates true and false statements just using logistic regression, so using the supervised signal.

And then once you subtract that off, it turns out that there is like no other direction, basically, that is able to separate the truth. So both logistic regression and therefore further CCS is just gets random accuracy. So you might hope that CCS when it works is finding this perfect direction because there's only one. But in fact, CCS, yeah, the CCS probes learned are like not close as in they're not like they don't have high cosign similarity with this direction.

And so what's going on there? I think this is pointing at a kind of optimization difficulty with the CCS method, where it's able to find directions that are that separate the clusters and I get low CCS loss, but are not close to the truth direction. And you would kind of expect this to happen based on the evidence that random probes also classify true and false statements like reasonably well in the setup. So I guess going back, going back to your original question, I think what's happening here is that there's just lots of local minima that achieve good CCS loss.

Some of them are like, depending on how you initialize, some of them are close to the truth direction and some of them are not. And if you haven't initialized close to the banana shed like the distracted direction, then you end up being a pro like that. Okay, do you have a sense? So my interpretation was that like on the banana shed example, sometimes you see us as picking up on the truth of the description of the review, sometimes it's picking up on the banana shed and sometimes it's picking up on other things.

Do you know what some of these other things are? Or like, these are you talking about the probes that don't seem to go for either the distractor or the truth direction. That's right. Yeah, I wish I knew what those directions were.

In general, it seems very hard to figure out what happens when a CCS probe breaks. We did it. We tried a lot. So there's lots of other experiments that we tried, where we were trying to get more interesting earlier modes of CCS.

And I don't know, we ended up with these random probes and then we looked at examples that the probe was classifying and tried to come up with explanations for what do those clusters mean? And it was kind of hard. Fair enough. So you attribute this difficulty in CCS, you attribute the variance to just optimization difficulties, it sounds like you know, there being various local minima of the CCS loss.

So the original CCS paper, as you guys know in your appendix, they say that what they're going to do is they're going to have basically 10 random seeds. Do CCS gradient descent on the CCS objective for each random seed, seed of the parameters. And then they're going to take one with the lowest CCS loss and use that. And I take this to basically be their optimization method that's trying to avoid local minima by starting in 10 places and hopefully get sampling of 10 minimum and you can pick the best one.

And basically it seems like a motivation for that is the thing with the lowest CCS loss is more likely to be the actual tree of direction or something. Do you know, like in the banana shed case, like, it depends on if the probes that scored better on CCS loss were more likely to pick out truth rather than banana shed. Yeah, I think that the probes that scored lower went for the distracted direction and not the direction. Interesting.

This is also visible from the PCF lots where you can see that the distracted direction is more separable. Yeah. So I guess maybe when I explain to that is just that it's easier to tell if a thing ends up on our shed than it is to tell something is positive or negative, especially in the case of like if you think there's like some amount of mislabeling, right? Yeah, I could potentially do it.

Gotcha. That's an example of one like the CCS can go wrong for banana shed thing. You also have examples where like basically you include the prompt information about whether somebody names Alice or about what someone named Alice thinks about this thing. Yeah.

And you describe Alice as an expert or sometimes you say Alice is a as a capitalist and even when a thing is about a company she's not going to say this about a company. That's right. And the case of Alice the expert seems like probes learn to agree with Alice more than they learned about the ground truth of the thing. That's oh yeah.

Do you want to say something? Yeah. So I think there's like two separate experiments if I remember correctly. So one is one is where you modify the prompt to demonstrate more expertise.

So you have a default prompt, a professor prompt and a literal prompt. And then there's a separate experiment where you have an anti-capitalist character called Alice. I mean a third one where I start to say Alice is an expert in movie reviews and you know you give the if the review and then you say Alice thinks the sentiment of this review is positive. But like what Alice says is actually just randomly.

And in that case the prompts tend to pick up on agreement with Alice more than agreement with the ground truth. So that seems vaguely concerning. It only seems like a human failure mode. But I'm wondering do you know how much of it was due to the fact that Alice was described as an expert who knows about stuff?

Yeah. So I think in general an issue with CCS is that it's unclear whether you're picking up whether CCS is picking up something about the model's knowledge or whether the thing that's alien is whatever the model is doing to compute the next token. And in a lot of our experiments the way we've set it up is to nudge the model towards completing in the in a way that's like not actually true. So for example in the Alice is an expert in movie reviews.

The prompt is set up in a way that nudges the model to complete in Alice's voice. And the whole promise of CCS is that even when the outputs are misleading you should be able to recover the truth. I think currently CCS like even from the original CCS paper you can see that that's not true because it's not you have to be able to beat zero shot accuracy with quite a large margin to be confident about that. Yeah.

This is one maybe like limitation of being able to say things about CCS which is that you're always kind of unsure whether CCS is even the thing that you're showing. Is it really are you really showing that the model is computing Alice's belief or are you just showing that your probe is learning what the next token prediction is going to be? Sure. So I guess so yeah you have a few more experiments along these lines.

I guess I'd like to talk a bit about like I think if your paper is saying like there's a theoretical problem with CCS which is like a bunch of probes that like could potentially get voice CCS loss and there's a practical problem which is some probes do get more CCS loss. So if I think about like the CCS research paradigm I kind of think of it as when the CCS paper came out I was like I was like pretty into it. I think there were a lot of people who were like pretty into it and actually part of what inspired that Scott M and this post about it is I was like trying to sell him on CCS and I was like no Scott you don't understand this is like the best like this stuff since sliced bread and I know I came off into writing that course I'll consider that a victory for my annoyingness but I think the reason that I cared about it wasn't that I thought like literal CCS method would work but it was because like I had some sense of like you know just the general strategy right of like coming up with a bunch of consistency criteria and like coming up with a probe that like cares about those and you know maybe that is going to isolate belief. So like if we did that it seems like it would deal with stuff like the banana shed example right like you know like if you cared about um you know more relations between statements right not just negation consistency but you know if you believe A and A implies B then maybe you should believe B you know just like layer on some constraints there um you might think that you know by doing this we're going to get closer to ground truth um I'm wondering like beyond just CCS specifically what do you think about this general strategy of using consistency constraints?

Yeah that's a great question I think my take on this is informed a lot by a comment by Paul Cristiano on one of the CCS review posts um I basically also I basically share your optimism about being able to make empirical progress on figuring out what a model is actually doing or what it's actually like thinking about a situation by using like a combination of consistency criteria and even just like supervised labels in situations where you know what the ground truth is and being able to get like reasonably good probes maybe they don't generalize very well but you you know you do a bunch every time they don't generalize or you catch one of these failures you spend a bunch of effort getting like better labels in that situation and so you're mostly not in a regime where you're trying to generalize very hard and I think this this kind of approach will probably work pretty well up to some point um yeah I really liked Paul's point that um if you're thinking about um a model that is saying things in natural language in like human natural language and it's computing like really alien concepts that are required for superhuman performance then you should necessarily expect that this is kind of linearly extractable or extractable in a simple way from the activations um this might be like quite a complicated function with the activations. Why not? I guess one way to think about it is that the natural language explanation for a very complicated concept is not going to be short. Yeah so so I think the hypothesis that a lot of these concepts are encoded linearly and are linearly extractable like in my mind it feels pretty unclear whether that will continue to hold.

Okay so just because like why does it have to be linear you know there are all sorts of ways things can be encoded in neural nets? Yeah that's right. Okay and in particular like one reason you might expect things to be linear is because you want to be able to decode them into natural language tokens but if there is no like short decoding to natural language tokens for a concept that the model is using then uh like this is not important like it's not important for the competition to be linearly to be like easily decoded into natural language. Right right so if there's something so the model's encoding like whether a thing is like actually true according to the model like it's not like it's not like it determines the next thing the person will say right.

Right it's a concept that like humans are not going to talk about it's like never going to appear in like human natural language like there's no reason to decode this into the next token. So this is talking about like if the truth of what if the humans are talking about it actually depends on like you know the success or it's of the theory of relativity that the humans have never thought about like it's just not really going to determine the next thing that the humans are going to say. Yeah that's an example. Yeah so I think this critiques be firstly a critique of linear probes for this task.

Yeah I guess I can also you inform kind of a dilemma where like either you're using linear probes and then you don't necessarily believe that like the thing is linearly extractable or are you using complicated nonlinear probes then maybe like the stuff you're getting out is stuff about your probe rather than something like that. But then I guess there's a separate question of like can we like are there consistency constraints that could work putting aside the probe. I mean maybe we shouldn't go to side of probe thing but like putting aside the probe thing is there like some way some sort of consistency check we could do to say like you know is this property we found in the model like the model's actual beliefs or is it not? Yeah that's a good question.

So I think I think the more the more part of your model the more entities it's like quote unquote simulating or like whose beliefs end up mattering for next to a contradiction that the model is doing. And if these entities that the model is thinking about if their beliefs also satisfy all of the same consistency criteria that you're using then you just have a kind of very fundamental indistinguishable problem. Right. And in particular I feel I think the more powerful the model gets the more pessimistic I am that we're able to come up with consistency checks that correctly distinguish between like true beliefs and beliefs are similar to entities.

Yeah like one point you make in your paper that I thought was really actually no I think you make it in this less wrong place related to your paper is that like when if you're a smart agent and you're thinking about a proposition like one thing you might sometimes think about is what's the world in which I'm wrong about this proposition? Yeah and like you're thinking about a belief structure where the truth value of this proposition is the exact opposite of the thing you actually believe. That's right. Which is like which seems like a pretty nice impossibility proof.

You know like if you actually are representing these things. Yeah this is also what I'm in for adversaries. So you might be in a world where adversaries trying to make you believe the opposite of what's true. And now this adversary is modeling like the world in which you would have to believe this and all the evidence that would have to be true.

Right and the language model is modeling like what adversary wants you to think or something. Yeah that's another example. But I think maybe there's a different kind of hope. So I think the truth is represented simpler than agents beliefs might be a hypothesis that turns out to be somewhat true up to some point.

But I think this is a different kind of criteria from consistency. So now we're talking about mechanistically how are these concepts represented inside the model. And if you have a way to say for example if you had a way to say like the model's true beliefs are always linearly represented but beliefs about other agents they are non-linear represented and therefore we can be confident that linear probability of covering truth. That would be an example of the kind of thing like a mechanistic structure that you might hope to use.

I think we don't currently have any candidates for that. But it's a good area to look at. Yeah right. I think the analogous to that that we've learned.

It's like the one thing that so it's a based on trying to wonder if I wanted to like prove or disprove this what kind of thing would I do. And like the one thing I can think of is there's some research about like do convolutional neural networks you know do they learn texture or color first. And it turns out there's like a relatively consistent answer. Yeah I wonder if you can think of any like analogous things about neural networks that we've learned that we can maybe like.

Yeah so there's quite a few options presented in the eliciting letter knowledge report. So for example one of the things you might hope is that if the model is simulating other entities then maybe it's like trying to figure out what's true in the world before it does that. And so you might expect like earlier belief like things to be true and later belief like things to be like agents beliefs. Or similarly you might expect that if you try to look for things under a speed prior as in like things that are beliefs that are being computed using sort of shorter circuits then maybe this is more likely to give you like what's actually true because it takes longer circuits to compute that plus like what's the major that's going to be thinking.

So that's a kind of structural property that you look for. Yeah I guess it's I guess it's sort of goes back to the difficulty of listening knowledge and like somehow like in some ways I guess the difficulty is if you look at kind of standard you know rational like standard based on rational agent theory right like the thing the way that you can tell some structure is an agent's beliefs is that it determines how the agent bets and what the agent does you know like it tries to do well according to its own beliefs but like if you're in a situation where you're worried that a model is trying to deceive you like you can't like give it you know scoopy snacks or whatever for like the same things that you know for you can't hope to get to bet on its true beliefs if you're going to you know allow access to the world based on whether you think it's true beliefs are good or stuff like that. So yeah it seems I don't know it seems tricky. I guess I have a few other or I have some other minor questions about the paper.

Firstly so I mentioned this by Spicich diamonds and one of the things he says is that like a principle component analysis you know this method where you find the maximum variance direction and just you know base your you base your guess on the mobile leaf based on like you know what side of this some you know where the thing lies in this maximum variance direction. He says that this is actually like kind of similar to CCS in that you're encoding something involving confidence and also something involving coherence and that might explain why PCA and CCS are similar. I'm wondering like what do you think about that take? So it's a summary of the stake that most of the work in CCS has been done by the contrast bear construction rather than by the consistency loss.

It's partly that and also partly like if you decompose like what's the variance of X minus Y, you got like variance of sorry you get expectation of X squared plus expectation of Y squared minus twice the covariance of X, Y and then some normalizations terms of like variance of X squared. Sorry expectation of X whole squared expectation of Y whole squared and then another covariance term and basically you're saying like look you can think of if you think of like a vector that maximizes the outer product of that vector the variance in itself you're maximizing like the you know outer product of the variant of that vector with expectation X squared plus expectation Y squared which ends up being like the confidence of classification according to that vector and then you're subtracting off the covariance which is basically saying like is the vector giving both high probability for both yes and no or is the vector giving low probability for both yes and no? And so basically the take is just because of the mathematical properties of variance and like what PCA is doing you end up doing something kind of similar to PCA. Yeah I wonder if you have thoughts on this take?

Yeah that's interesting I don't remember reading about this it sounds pretty plausible to me. I guess one way I think about it intuitively is that if you're trying to find the classifier on these like different specters and contrast by different specters then you want to be you know for example you want to be like maximizing the margin between these two and this is a bit like trying to find a high contrast thing yeah so overall that thing is plausible to me. All right cool yeah okay so um it's all right with you I like to move on to the paper explaining Grogging through Circumficiency. Perfect let's do it.

Sure so this is a paper you write with Rohan Shaw, Zachary Kenton, Janos Kromar and Ramanak Kumar. So you're explaining Grogging for people who are aware, need or refresher what is growing? Yeah so in 2021, very low training loss and high test loss and then they continued training it for about 10 times longer and found that it suddenly generalized so although training loss stayed low and about the same test loss suddenly fell and they dubbed this phenomenon Grocking which I think comes from science fiction and means suddenly understanding. Okay cool so and basically you want to explain Grocking.

I guess a background question I have is it feels like it feels like in the field of AI alignment or you know people worry about AI you know taking over the world there's a sense that it's like pretty important to figure out Grogging and why it's happening and it's not so obvious to me why it should be considered so important given that like you know this is a thing that happens like in some voice settings but we don't like to my knowledge it's not a thing that we've observed on you know training runs that people actually care about right so yeah I'm wondering like in part I guess it's a two-part question firstly just why do you care about it which could be for any number of reasons and secondly like what do you think its relationship is to AI safety and AI alignment? Yeah so I think back in 2021 there were two reasons you could have cared about this as an alignment researcher one is it on the surface it looks a lot like a network was behaving normally and then suddenly it understood something and started generalizing very differently. The other reason is this is a really confusing phenomenon in deep learning and it sure would be good if we understood deep learning better and so we should investigate confusing phenomena like Grocking and kind of ignoring the superficial similarity to a scenario that you might be worried about. So where the superficial scenario is something like the neural networks place nice and then something you know realizes it should take care of the world or something.

That's right yeah and I think I can talk a bit more about the second reason or the overall kind of science of deep learning agenda if you like. Is that useful thing to go into now? I guess maybe like why are you addressing Grocking? Yeah so for me Grocking was one of those really confusing phenomenon deep learning like deep double descent or over time research networks generalizing well that kind of held out some hope as like if you understand this phenomenon maybe you'll understand something pretty deep about how we expect real neural networks to generalize and what kinds of programs we expect deep learning to to kind of find.

But it was kind of a puzzling phenomenon that somebody should investigate and we had some ideas about how to investigate it. But sure I'm wondering like if you think just in general AI line that people should spend more effort or resources on science of deep learning issues because like there's a whole bunch of them right and like not all of them have as much you know presence from the AI line of community. Yeah yeah I think that's an interesting question. So I want to decompose this into how dual use is investigating science of deep learning and do we expect to make progress and find a line of things by doing it?

And I'm mostly going to ignore the first question right now. But we can come back to it if you're interested. I think for the second question it feels pretty plausible to me that investigating science of deep learning is important and tractable and neglected. And I should say that a lot of my opinions here have really come from talking to Rohinsha about this who is really the person who's I think been trying to push for this.

Yeah why do I think that? So I think it's important because similar to mechanistic interpretability the core hope for science of deep learning would be that you're able to find some information about what kinds of programs your training process is going to learn and so therefore how it would generalize a new situation. And I think a difference from mechanterp is that mechanterp is more focused on reverse engineering this may be simplified distinction but one way you could draw the line is mechanterp is more focused on reverse engineering a particular network and being able to point at individual circuits and say like here's how the network is doing this thing. Whereas I think science of deep learning is like it's trying to say okay like what kinds of things can we learn in general about our training process like this with a data set like this.

What are the inductive biases? How does the distribution of programs look like? And probably these two things have quite a lot of like both science and deep learning and microtype quite a lot of overlap and like techniques from each will help the other but that's a little bit about the importance bit. I think it's tractable in the sense it's both tractable neglected in the sense that we just have all of these confusing phenomena and for the most part I feel like industry incentives are not that aligned with trying to investigate these phenomena really carefully and doing a very careful kind of natural sciences exploration of these phenomena.

So like in particular iterating between trying to come up with models or theories for what's happening and then making empirical predictions with those theories and then trying to test that which is the kind of thing we tried to do in this paper. Why do you think industry incentives are to lend? I think it's quite a high risk high reward sort of endeavor and in the period where you're not making progress on making loss go down in a large model. It's maybe harder to justify putting a lot of effort into that.

On the other hand, if your motivation is if you understood this thing it could be a really big deal for safety. I think making the case as an individual is easier. I do think that the, I don't know, even from my capabilities perspective, I think the incentives to me seem like stronger than what people seem to be acting on. I guess there's something puzzling about why there would be this asymmetry between some sort of corporate perspective and some sort of safety perspective.

So I think you'd be saying that like, look, there are some insights to be found here but you went necessarily up on tomorrow, it'll take a while, it'll be a little bit noisy. And if you're just looking for steady and incremental progress, you won't do it. But it's not obvious to me that safety or lending people should care more about steady and incremental progress than people who are just going to maximize the profit of their AI. You mean care less about that?

Like safety people should. Oh yeah, yeah, like it's obvious to me that there would be any difference. Right. So I think one way you could think about it from a safety perspective is like multiple uncorrelated bets on ways in which we could get a safer outcome.

I think probably a similar thing applies for capabilities except that and I'm really guessing and out of my depth here but my guess would be that for whatever reason it's like harder to actually fund this kind of research, this kind of like very exploratory out there research from a capabilities perspective. But I think there is like a pretty good safety case to make for it. Yeah, I guess it's possible that it's just a thing where it's hard to like, like, I don't know if I'm a big company, right? I want to have some way of turning like my dollars into people solving a problem.

And one model you could have is for things where that could be measured in like how far down did the loss go? It's maybe just easier to hire people and be like, your job is to like put more GPUs on the GPU rack or your job is like make the bottle bigger and make sure it's still transwell. And maybe it's like harder to just hire a random person off the street and get them to do signs of e-learning. That's potentially one asymmetric I think of.

Yeah, I think it's also just I generally feel like there are way fewer people who could do signs of e-learning really well than people who could make the loss go down really well. I don't think this fundamentally needs to be true but it just feels true to me today based on the number of people who are actually doing that kind of scientific expression. So when I ask you about the alignment case for signs of e-learning, you said there's a question of like dual use and then there's a question of what alignment things there might be there and you said you would ignore the dual use thing. I want to come back to that.

What do you think about? Some people say about interpretability yourself, well, you're going to find insights that are useful for alignment but you're also going to find insights that are useful for just making models super powerful and super smart and it's not clear if this is good on net. Yeah, so I want to say that I feel a lot of uncertainty here in general and I think your answers to these questions kind of depend a lot on how you expect the i-progress to go and where you expect the overhangs to be and what sort of counterfactual impact you expect. Like what kinds of things will capabilities people do anyway, for example.

Yeah, so I think to quickly summarize like one story that I find plausible, it's that we're basically going to try and make progress like almost about as fast as we can towards like H.I. level models and hopefully if we have enough monitoring and like red lines and RSPs in place, then it will become, if there is indeed danger as I expect, then we will be able to coordinate some sort of slowdown or even pause as we get to things that are about human level. And then a story you could have for optimism is that, well, we're able to use, we're able to use these like roughly human level systems to really make a lot of progress in alignment because it becomes clear that that's the main way in which anybody can use these systems safely. Or like that's how you construct a kind of strong positive argument for why the system is safe, rather than just pointing out an absence of evidence that it's unsafe.

And yeah, and we're in that sort of world and then just a bunch of uncertainty about how long that takes. In the meantime, presumably we're able to coordinate and prevent like random other people who are not part of the agreement to from actually racing ahead and building an unsafe AGI. So under that story, I think it's not clear that you get a ton of like counterfactual capabilities progress from doing my contour or science of deep learning. It mostly feels to me like we'll get there even without it and that the degree that these things are going to matter for capabilities, like I don't know, a few years from now capabilities people are going to start.

Well, maybe not science of deep learning, that's very like long term and uncertain, but definitely my control of expect for capabilities people to start using those techniques and trying to adapt them for improving free training and so on. And so, yeah, I think like I said, I feel pretty uncertain. I'm pretty sympathetic to the argument that all of this kind of research like my control and science of deep learning should basically be done in secret by if you're concerned about safety and you want to do this research, then you should do it in secret and not published. Yeah, I feel sympathetic to that.

So, I guess with that background, I'd like to talk about the paper. So, I take the story of your paper to basically be saying, look, here's our explanation of dropping neural networks. There, you can kind of think of them as a weighted sum of two things they can be doing. One thing they can be doing is just memorizing the data and one thing that they can be doing is learning the proper generalizing solution.

And the reason you get something like working is that it takes a while, like the networks are being regularized according to the norm of their parameters and the generalizing circuit, the method that generalizes, it can end up being more confident for a given norm of parameter. So, eventually it's favored, but it takes a while to learn it. So, you start off initially you learn to just memorize answers, but then as you sort of, as there's this pressure to minimize the parameter norm that comes from some form of regularization, you become more and more incentivized to try and figure out the generalizing solution and like the network eventually gets there. And once it, once the gradient descent comes to the vicinity of the generalizing solution, it starts moving towards that and that's when growing happens.

And basically from this perspective, you come up with some predictions, you come up with a single unbroken, which we can talk about later, you can say some things about how confidence should be related to parameter norm in various settings. But I think this would be your basic story. Does that sound like a good summary or other things that you want to learn? Yeah, that's pretty good.

Gotcha. So, I guess my first, the first thing that I'm really interested in is in the paper, you talk about circuits, right? You say that there's this memorizing circuit and this generalizing circuit. But you talk about them like, like you sort of have a theoretical model of them and you have this theoretical model of the imaginative circuits we're competing, you know, what would that look like?

But so the best of my understanding, like from reading your paper, I don't get a clear picture of what this circuit tool corresponds to in like an actual model. So, yeah, what do you have thoughts about what it does correspond to in an actual model? Yeah, that's a good question. So, we borrowed the circuit terminology from the circuit thread by Chris Ola and Antropic.

In there, they kind of defined a circuit as a computational subgraph in the network. I think this is you know, sufficiently general or something that it kind of applies to our case. Maybe what you're asking though is more like physically where is the circuit inside the network? Well, even like, so if I think of it as a computational subgraph, like, you know, the memorization circuit has to, if I think of it as a subgraph, it's going to take up like a significant chunk of the network, right?

Like presumably, well, like do you think I should think of like there being two separate subgraphs that like aren't interacting very much, one of which is a memorization, one of which is generalization, and just at the end, we like, I'll point the generalization down with the regularization. Like, that would be weird because neural networks, they tend to be like relatively, you know, there's going to be like crosswalk, like, that's going to inhibit the memorizing circuit from purely doing memorization and the generalization, from purely doing generalization. So, like, like when I try to picture what's actually going on, it seems difficult for me. Or I could imagine that like the memorizing circuit is just supposed to be one parameter setting from the generalizing circuit, it's supposed to be another parameter setting, or then you'll interpolate that, but like neural networks, they're like nonlinear in their parameters, right?

Like if you change, like you can't just take away the sum of two parameters, you can get away with the output. So, yeah, this is like my difficulty with the subgraph. Right, so I want to make a distinction between like the model or the theory that we're using to make our predictions and how these circuits are like implemented in practice. So in the model or in our theory, these circuits are very much independent.

So they have their like own parameter norms and they're, you know, they, the only way they interact is they add at the logic stage. Yep. And this is completely unrealistic, but we're able to use this very simplified model to make like pretty good predictions. I think the question of how, how a circuit's actually circuits in this theory actually implemented the network is something that I would love to understand more about.

And we don't have a great picture of this yet. But I think it's probably, we can probably say something about it already. So one thing we can say is that they're definitely not going to be like disjoint, you know, set the parameters in the network. So some evidence for this is things like there's a lot of overlap between like a network that is memorizing, like in terms of parameters, there's a lot of overlap between the network as memorizing and that later generalizes.

As in like a lot of the parameter norm is basically coming from the same weight. And the overlap is way more than random. And this is probably because when the network is initialized, there's some parameters that are just kind of large and some that are small. And both circuits learn to use, learn to use this distribution.

And so they're ends up being more overlap there. Okay. So my summary from that is you're like, okay, there's, there probably some, in some sense, computational subgraphs. And they probably overlap a bit.

And we don't have a great sense of how they interact. Yeah. Do you know, like, like, what, like, what keep pointing your model is like, like in the simplified model of networks where they're just like independent things get some to the end, you know, eventually you like reduce your weight on the, on the memorizing circuit and increase your weight on the generalizing circuit. You have a sense of if I should think of this as just like, literally increasing and decreasing weights or like, you know, circuits kind of rising each other somehow or.

Yeah, maybe closer to kind of rising somehow. If they are indeed, like, you know, there's a lot of competition for parameters between the two circuits. I think in a sense, it is also going to be like, increasing or decreasing weights, because the parameter norm is literally going up or down. It's just not going to happen in the, in the kind of way we suggest in the model where it's like, you have a fixed circuit and it's just being multiplied by scalar.

So in, in practice, there's going to be all kinds of things like, like, for example, it's like more efficient under L2 instead of just, if you have a circuit instead of scaling up the circuit by just multiplying all the parameters, it's more efficient to duplicate it if you can, if you have the capacity in the network. I also imagine that there are multiple families of circuits that are generalizing and memorizing. And within each family, these circuits are competing with each other as well. And so you have a, you start off with a memorizing circuit and instead of just scaling it down or up, you actually, it's actually like morphing into a kind of different memorizing circuit with a different distribution of parameters inside it.

But the overall effect is, is, you know, close enough to the simplified model that it makes good predictions. Sure. I'm wondering, so one thing this theory kind of reminded me of is singular learning theory, which is this, it's this trendy new theory of people learning people are into where basically it comes from this insight where if you think about like, Bayesian inference in high dimensional parameterized model classes, which is sort of like training neural networks, except we don't actually use Bayesian inference for training neural networks. If the model class has this property called being singular, then you end up like having phase transitions of like, you know, sometimes you're in your one solution, and then as you get more data, you can really quickly update to a different kind of solution, where basically what happens is like you're trading off some notion of complexity of different solutions or predictive accuracy.

Now, in the case of like increasing data, it's like kind of different, because the simplest kinds of phase transitions you can talk about in that setting are like, as you get more data, whereas you're interested in like phase transitions in number of gradient steps. But like, they would feature this kind of common theme of like, some notion of complexity, being traded off with accuracy. And like, if you favor, you know, minimizing complexity somehow, you're going to like end up with a lower complexity solution that like meets accuracy. So, I mean, that's kind of a superficial similarity, but I'm wondering like, what you think of the comparison there.

Yeah, so I have to admit that I know very little about single-length theory, and I feel unable to really compare what we're talking about with SRT. I will say though that this notion of lower weight norm being less complex somehow is quite an old idea. Like in particular, said Farcohar appointed me to this 1993 paper, I think, by Geoffrey Hinton, which is about motivating L2 penalty from a minimum description length angle. So if like, if people are trying to communicate all of the information that's contained inside a model, they could have some priors about what the weights of the model are, and then they need to communicate.

They need to communicate both like something about the data set, as well as errors that the model is going to make. And they use, in this paper, they use these Gaussianity assumptions and are able to derive both like mean squared error loss and L2 penalty as a kind of optimal way to communicate with these two people. And this seems similar to the classic result that L2 regularization is sort of like doing basic inference with a Gaussian norm, just because like, if your priors Gaussian, then take the log of that and that ends up being the norm. That's what I did before.

Sure. So I guess I'd like to talk a little bit, pick up on this thing you said about there being multiple kinds of circuits, because there's a sentence that jumped out to me in your paper. So you said, you're looking at doing a bunch of training runs and looking at trying to back out what you think is happening with the generalizing and memorizing circuits. And you say that the random seed starting training causes significant variance in the efficiency of the generalizing and memorizing solutions.

And that kind of surprised me. Partly because I think that there just can't be that many generalizing solutions. So we're talking about like fairly simple tasks where like add two numbers, modulo 113, and like, how many ways can there be to do that? I recently learned that there's more than one, but it seems like there shouldn't be a million of them.

Similarly, how many ways can it be to memorize a thing? And then also, I would kind of expect that gradient descent, I would have thought that gradient descent would find the most efficient or the most efficient memorizing circuit. So yeah, I'm wondering if you have thoughts about how I should think about this like family of solutions with seemingly different efficiencies. So one thing I'll point out is that even with the trigonometric algorithm for doing modulo addition, this is really describing a family of algorithms because it depends on which frequencies in particular the network ends are using to do modulo addition.

And if people are interested in that algorithm, they can check out my episode with Neil Netta. You can probably check out other things, but I'm not really factored, please. So yeah, this algorithm, like it's, you know, you pick some frequencies and then you rotate around the circle with those frequencies to like, you know, basically do the clock algorithm for modulo arithmetic, but you can pick with frequencies to use. But I would have guessed that like, I would have guessed that there wouldn't be a different complexity difference between the frequencies.

I guess there's a complexity difference in how many frequencies to use. Yes. So that's one of the differences. Like how many use and their relative strength and so on?

Yeah, I'm not really sure. I think this is a question we pick out as I think we would like to see future work on. The other thing I want to draw attention to is in many deep learning problems it is not the case like deep learning practitioners are very familiar with the observation that different random seeds and are producing networks with different like different test performance. And it's just quite common, you know, if you're trying to like create a state-of-the-art network for solving some tasks, it's quite common to run like 100 seeds and then bake like the top five best performing ones or whatever.

I think it's just not clear from this that gradient descent or atom is able to find the optimal solution from any initialization. Yeah, and I think this maybe also pointing at the, this also shows up not just when you're very random seed, but it shows up epoch wise because for example, one of the phenomena you mentioned from our paper is semi-grocking. You see these multiple phase transitions where the network is switching between generalizing circuits that have different levels of efficiency and these levels of efficiency are quite far apart so that you can actually visibly see the change in test performance as it, such as in a very discrete manner fitting circuits. And you know, if it was really the case that gradient descent could find the optimal solutions, then you wouldn't expect to see this kind of switching.

Yeah, there's just so many questions I have about these circuits. I'm not sure you have any answers, but like, I just bring up, sorry, part of your story is that like it takes a while to learn the generalizing solution, like longer than it takes longer than the memorizing solution. Yeah, maybe I have thoughts about what's, why that might be? I think my thoughts here are mostly what we've written down in the paper.

And I feel like this is another area that's pretty ripe for understanding. So the explanation of the offer in the paper comes from is mostly inspired by a blog post by Buck and I think another person whose name I'm forgetting. Brian Greenblatt? Yes, that's right.

And the explanation there is that maybe memorizing circuits are basically have fewer components that you need, like fewer independent components that you need in order for the circuit to develop. But a generalizing circuit is going to need multiple components that all that are all needed for good performance. Yeah, so here's a simplified model. So the memorizing network is implemented with like one parameter and that just scales up or down.

And the generalizing network is implemented with two parameters that are multiplied together to get the correct logic. And so the gradient of the output with respect to any of the parameters depends on the value of the other parameter in the generalizing circuit case. And so if you kind of simulate this forward, what you get for the generalizing circuit is a kind of sigmoid where initially both parameters are quite small and they're not contributing that much to each other's growth. And then once they start growing, both of them grow quite a lot and then those are because they're eligible.

Sure. I think this is just like kind of a general observation that an evolution, if you have like if you need multiple structures and they both depend on each other for that to work, that's a lot harder to evolve than a structure that is a little bit useful on its own and a structure that is a little bit useful on its own. And for a memorizing solution, I can memorize one thing and then I can memorize the second thing and I kind of do those independently of each other. So like each little bit of memorization is like a vulnerable one, it's own maybe.

Yes, I think that's right. Maybe another way I think about it is that the memorization circuit is like basically already there, like kind of random network. And like really the thing you're learning is the values that you have to memorize. And yeah, as you say, that's like independent for each point.

But that's not the case with generalizing circuit. I think another important ingredient here is that there needs to be at least some gradient at the beginning towards the generalizing circuit if it has multiple components. And it's kind of an open question by mine why this happens. Yeah, the most plausible theory I've heard is something like Lottery Tickets where basically the random initialization network has very weak versions of the circuit that you want to end up with.

And so there's a tiny but non-zero gradient towards them. Interesting. Yeah, I guess more work is needed. I'd like to talk a little bit about...

So the story of like, it takes you a while to learn the generalizing circuit. You learn the memorizing circuit and it takes you a while to learn the generalizing circuit once you do then that's working. So this is a sort of reminiscent of a story that I think was in appendix of the paper progress measures for rocking. There's progress measures for something by Newlanda.

And I have this story where like there are three phases of circuit formation. There's like memorization and then there's learning a generalizing solution. And then there's like cleaning up the memorized stuff. And in their story, they basically demarcate these phases by looking at the activations of their model and figuring out when the activations are representing the algorithm that is the generalizing solution according to them.

And so it seems pretty similar to your story. But one thing that's struggling as being in a bit of tension is in there, they basically say, rocking doesn't happen when you learn the generalizing solution. It happens when you clean up the parameters from the memorizing solution. So like there's somehow there's one stage of learning the generalizing solution and then a different phase of forgetting the memorizing solution.

So yeah, I'm wondering what you think about the relationship between that story and their paper and your results. So I think one thing that's interesting to think about here is the relationship between between logits and loss or between logits and accuracy. Like why is the memorization clean up important? It's because like to kind of a first approximation, the loss is dependent on the difference between the highest logic and the second highest logic.

And if you have this memorization circuit that is incorrectly predicting, that is really like putting high weight on the incorrect logic then when it reduces, you'll see like a very sharp clean up effect. I think this is something that we haven't really explored that much because the circuit efficiency model is mostly talking about this kind of steady state that you expect to end up in and is not so much talking about the dynamics between between these circuits as time goes on. So this is like a part of the story of rocking that is very much left unexplained in our paper, which is that like why exactly is the generalizing circuit developing slower? But if you put in that sigma assumption, as I was talking about, like artificially, then the rest of the theory is entirely sufficient to see exactly the same kinds of rocking curves as you see in actual rocking.

Well, like maybe I'm misunderstanding, but under your story, I think I would have expected the grocking to happen during the, or I would have expected like a visible, improved start of grocking or visible increase in test accuracy during the formation of generalizing circuits rather than it waiting until the clean up phase. Right. So by formation, are you talking about, there's like this phase where the generalizing circuit is like developing and it's there, but the logist has been putting our way lower than the memorization logits. And in that phase, I basically don't expect to see any change in test accuracy.

And then there's the phase where the generalizing circuit logits kind of cross the memorizing circuit for the first time. And this is like maybe another place where there's a difference between like the toy model and what you actually observe. So in the toy model, the thing you expect, the thing you would expect to see is like a jump from 0% accuracy, as it's like just below the quality threshold to 100% accuracy, the moment the generalizing logic crosses the memorizing logic, right? Because like that changes like what the high strength logic is.

But in practice, we see this, the accuracy of like kind of going through all these intermediate phases, so it goes to like 50% before getting 100%. And the reason that's happening is because there are some data points which are being correctly classified and some which are incorrectly classified. And so this is pointing to a place where the theory breaks down where like on some of the points, the generalizing circuit is making more confident predictions than on other points, which is why you get these like intermediate stages of accuracy. Yeah, so that's one thing.

So this also suggests like why the cleanup is important to get to kind of full accuracy because if the memorizing circuit is kind of making these high predictions on many points, even when the generalizing circuit is around around the same level, you need the memorizing circuit to, you know, because the variance you just need the memorizing circuit to like disappear before you really get like 100% prediction accuracy. Right. So the story is something like you start learning the generalizing circuit and you start getting the logit's being somewhat influenced by the generalizing circuit, but like you need like the logit's to start being like somewhat near each other to get a hope of making a dent in the loss. And like for that to happen, you more need like the memorization circuits to go away.

Like there's the formation of the circuit and then there's like switching the weights roughly the story that I'm thinking of. Yeah, that's right. Gotcha. Okay.

So yeah, there's something that you mentioned called like semi-growing and un-growing. Actually, can you describe what they are? Sure. I'll start with how should you think about the efficiencies of these two different circuits?

So if you have a generalizing circuit that is doing modular addition, then if you add more points to the training set, it doesn't change the algorithm you need to get good training loss. And so you shouldn't really expect any modification to the circuit as you add more training points. And therefore, the efficiency of the circuit should stay the same. Whereas if you're if you have a memorizing circuit, then as you add more points, it needs more weights to memorize those points.

And so you should expect the efficiency to be dropping as you add more points. Yeah. Or another way I would think about this is just that like if I'm memorizing endpoints, right? I figure out the most efficient way to memorize the endpoints.

The end plus point point, I'm probably not going to get that right because I just memorized the first ones. So I've got to change to memorize the end plus one point. And like I can't change in a way that makes me more efficient because I was like already the most efficient I could be on the endpoints. And so like even just a sort of a macro level just forgetting about adding weights or whatever, like it just has to be the case that like memorization is losing efficiency the more you memorize whereas like generalization you wouldn't expect it to have a lose efficiency.

Yeah. Yeah. That's a good way to explain. And of course I sold that from your paper.

I don't like I invented that. No, it's a good explanation. Yeah. So I think a kind of direct consequence of this.

So when you couple that with the fact that at very low data set sizes, it appears that memorization is more efficient than generalization, then you can conclude that there must be a data set size where memorization is like increasing as you increase the data set size, generalization, parameter norm is staying the same, they must be across over point. And then you can ask the question, what happens at that cross over point? When you have a data set size where the efficiency of generalization is equal to the efficiency of memorization. And so we did some maths on our toy model or a theoretic model, I should say, and came up with these like two cases, these two different things that could happen there.

And this really depends on the relationship between when you scale the parameters by some amount, how does that scale the logits? And if it scales the logits by more than some threshold, then it turns out that at this equality point, you will just end up with a more efficient circuit. But if the scaling factor is lower than some threshold, then you will actually end up with a mixture of both the memorizing and the generalizing circuits. And the reason for this is that because you're not able to scale the logits as much, it's more efficient to allocate the parameter norm between these two different circuits when you are considering the joint loss of L2 plus the data loss.

Okay. So something like, it's just sort of the difference between like convex and concave optimization, right? Like it's like you're getting diminishing returns per circuit. So you want to invest in multiple circuits, probably going only on one circuit, whereas like in some cases, if you have increasing returns, then you just want to go, well, I know the best circuit.

Yeah, that's right. And in particular, the threshold is like, there's quite a cool way to derive it, which is that you know that the L2 is scaling as the square of the parameter norm. So if the logits are scaling faster than that, then you're able to overcome the parameter penalty by just investing in the more efficient circuit. But if they're not scaling faster than that, then you have to split.

And yeah, so the threshold ends up being, if you're able to scale the logits faster than the factor, then to the power of two. Okay. So you have this semi-gorking and unbroken, right? Where you're training on this like subset of your training data set, and you like lose some test accuracy, you know, either some there or all of it, basically by partly or fully reverting to the memory solution.

So this is kind of an interesting phenomenon because like to maybe know a bit of me, but I'm not aware of people like talking about this phenomenon or connecting into groking before, or they talk about the general phenomenon of catastrophic forgetting, where you like train your network on a different data set, and if you got stuff that used to know, but in terms of training on a subset of the data set, I'm not aware of people discussing that before, predicting that before. Is that right? Yeah, I think that's right. So we got a lot of questions about, you know, from reviewers about how is ungroking any different from catastrophic forgetting?

To the extent that we, in like the new version of our paper, we have a whole section explaining what the difference is. I think basically I would view it as a much more specific and precise prediction than catastrophic forgetting, where, yeah, so one difference is that we're training on a subset of the data, and this is quite important because there's rules out a bunch of other hypotheses that you might have about why groking is happening. So for example, if your hypothesis is that the reason groking happens is because you don't have the correct representations for the model addition task, and like once you find those representations, then you've got that's a little bit incompatible with then reducing the training data size and ungroking because you already have the representations. And so you need this additional this additional factor of, you know, a change in efficiency, or another example is like a random walk hypothesis where you've like stumbled upon how you stumbled upon the correct circuit by randomly walking to parameter space.

And that also like either doesn't say anything about or anti-predict ungroking because you were already at that point. So I think that's quite an important difference. Yeah, I think going back to the difference between catastrophic forgetting. I think another another more precise prediction is that we're able to predict like the exact data set size at which you see ungroking, and it's quite a like phase changey phenomenon or something.

It's not like as you increase the data, as you decrease the data set size, you're kind of smoothly losing this accuracy in this case, which is more the kind of thing you might expect from like traditional catastrophic forgetting. Right, am I right? My impression was that the thing you were predicting would be that there would be some sort of phase change in terms of like subset data set size, and also that that phase change would occur at a point independent of the strength of weight decay. But I thought that you weren't able to predict like where the phase change would occur.

Or am I wrong about that? That's right. So we don't have, our theory is not producing a quantity of prediction of like exactly what data set fraction you should expect that phase change to happen at that's right. Yeah, but it does predict that it would be a phase change and it would happen at the same point for various levels of weight decay.

Yeah, if people, like one cool thing about this paper is like it really is a nice prediction and you've got a bunch of nice graphs, kind of nail it. So you jump on that. So, but one thing I'm wondering about is, so you have this phenomenon on broadening and it seems at least like an instance of catastrophic forgetting that you're able to say more about than people are previously getting able to say, but this offers an opportunity to sort of try and retrodict phenomena. Or in particular, like, so I'm not an expert in catastrophic forgetting, but my understanding is that one of the popular approaches to it is a single elastic weight consolidation, where you sort of basically have different learning rates, parameters, and you reduce the learning rate.

So you reduce the change, feature change in parameters for those parameters that were important for the old task. So that's one of the way of others. Does your view of groking and ungrok being retrodict these proposed ways of dealing with catastrophic forgetting? I think not directly.

So I can see a few differences. I'm not aware of this exact labor that you're talking about, but I think depending on the task, there might be different reasons why you're getting forgetting. So you might be forgetting things that you memorized, or you might be forgetting algorithms that are appropriate for that part of the data distribution. That's one aspect of it.

I think a different aspect is that it's not clear to me why you should expect these circuits to be implemented on different weights. The theory is that you find the weights that are important for that algorithm, and then you basically prevent those weights from being updated as fast. So you're not forgetting. And I think that is pointing at a disjoint sort of implementation of these circuits in the network.

And that's not something that we're really saying anything directly about. Yeah, I guess it makes sense that it would depend on the implementation of these circuits. Another question I have is that, so in a lot of your experiments, like you mentioned, you are more interested in the steady state than the train path, except for just the initial prediction of groking, I guess. Sorry, to be clear, the paper deals with the steady state.

I'm very interested in the training path as well. Fair enough, fair enough. So if I look at the groking stuff, it seems like there's a steady state prediction. Where there's this critical data set size, and once you're playing the critical data set size, you un-groc.

And it doesn't really matter what your weight decay circle is. If I sort of know you're thinking about the model, it seems like your model should suggest that it should take longer for less weight decay, because you have less pressure to care about the complexity of it, you're carrying about less spring in time. And similarly, the groking should be quicker for more weight decay. So I guess it's too far question.

Firstly, do you agree that that's a prediction of this model? And secondly, did that bear out? Yeah, so I think this is a prediction of the model. Assuming you're saying that weight decay affects the speed of groking.

Yes, and of un-grocing. Yeah, I think that is a prediction of the model. Well, to be fair, it is a red prediction because the power of the top paper already shows that groking takes kind of exponentially longer as you reduce the data set size and also as I forget what the relationship is, but it definitely takes longer as you reduce the weight decay. And does un-grocing take longer as you reduce weight decay?

We don't show this result in the paper, but I'm fairly sure I remember that it does. Yeah. Okay, cool. So I guess I'd like to talk a bit about possible generalizations of your results.

So as a written, you're basically talking about efficiency in parameter norm, where if you increase parameter norm, you're able to be more confident in your predictions, but that comes at a penalty if you train with weight decay. Now, as your paper notes, weight decay is not the only situation in which groking occurs. You basically have to emphasize that there are other forms of regularization against other forms of complexity and that there could be some sort of efficiency in those other forms of complexity that might become relevant. I'm wondering, you have thoughts on what other forms of complexity I should be thinking of.

Yeah, so we've already talked about one of them, which is that circuits might be competing for parameters on which to be implemented. And so this is a kind of capacity constraint. And so you might think that circuits that are able to be implemented on fewer parameters or using less capacity, however you define capacity in the network, would be more efficient. So I think some relevant words here is like bottleneck activations from the, I think this is from mathematical circuits of transformers, which is talking about other phenomena, like superposition that you would get from constraint capacity.

So that's one more notion of efficiency. I think possibly robustness to interference would be another kind of efficiency. So how robust is the circuit to being kind of randomly invaded by other circuits or maybe also robustness to drop out would be a similar thing here. Yeah.

And then I think there's just like, there are things like how frequently does the circuit occur, which might be important for will, from a given random seed, we'll be able to find it. So, it's even like how, like, what's the mass? What's the probability mass of it on the initialization prior ever weights? Yes.

And also then on the kinds of parameter states that SGD is likely to find. So this is like the kind of implicit priors in SGD or the, there's some work on implicit regularization of SGD and showing that it's like, it prefers similar kinds of circuits to what L2 might prefer, but probably it's different in some interesting way. Okay. Yeah.

Frequently asked questions

How long is this episode of AXRP - the AI X-risk Research Podcast?

This episode is 2 hours and 13 minutes long.

When was this AXRP - the AI X-risk Research Podcast episode published?

This episode was published on April 25, 2024.

Is there a transcript available for this episode?

Yes, a full transcript is available for this episode. You can read the complete transcript on the episode page.

Can I download this AXRP - the AI X-risk Research Podcast episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.