Skip to content
23 - Mechanistic Anomaly Detection with Mark Xu episode artwork

Jul 27, 2023 2 hr 5 min

23 - Mechanistic Anomaly Detection with Mark Xu

from AXRP - the AI X-risk Research Podcast

Is there some way we can detect bad behaviour in our AI system without having to know exactly what it looks like? In this episode, I speak with Mark Xu about mechanistic anomaly detection: a research direction based on the idea of detecting strange things happening in neural networks, in the hope that that will alert us of potential treacherous turns. We both talk about the core problems of relating these mechanistic anomalies to bad behaviour, as well as the paper "Formalizing the presumption of independence", which formulates the problem of formalizing heuristic mathematical reasoning, in the hope that this will let us mathematically define "mechanistic anomalies". Patreon: patreon.com/axrpodcast Ko-fi: ko-fi.com/axrpodcast Episode art by Hamish Doodles: hamishdoodles.com/ Topics we discuss, and timestamps: - 0:00:38 - Mechanistic anomaly detection - 0:09:28 - Are all bad things mechanistic anomalies, and vice versa? - 0:18:12 - Are responses to novel situations mechanistic anomalies? - 0:39:19 - Formalizing "for the normal reason, for any reason" - 1:05:22 - How useful is mechanistic anomaly detection? - 1:12:38 - Formalizing the Presumption of Independence - 1:20:05 - Heuristic arguments in physics - 1:27:48 - Difficult domains for heuristic arguments - 1:33:37 - Why not maximum entropy? - 1:44:39 - Adversarial robustness for heuristic arguments - 1:54:05 - Other approaches to defining mechanisms - 1:57:20 - The research plan: progress and next steps - 2:04:13 - Following ARC's research The transcript: axrp.net/episode/2023/07/24/episode-23-mechanistic-anomaly-detection-mark-xu.html ARC links: - Website: alignment.org - Theory blog: alignment.org/blog - Hiring page: alignment.org/hiring Research we discuss: - Formalizing the presumption of independence: arxiv.org/abs/2211.06738 - Eliciting Latent Knowledge (aka ELK): alignmentforum.org/posts/qHCDysDnvhteW7kRd/arc-s-first-technical-report-eliciting-latent-knowledge - Mechanistic Anomaly Detection and ELK: alignmentforum.org/posts/vwt3wKXWaCvqZyF74/mechanistic-anomaly-detection-and-elk - Can we efficiently explain model behaviours? alignmentforum.org/posts/dQvxMZkfgqGitWdkb/can-we-efficiently-explain-model-behaviors - Can we efficiently distinguish different mechanisms? alignmentforum.org/posts/JLyWP2Y9LAruR2gi9/can-we-efficiently-distinguish-different-mechanisms

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

23 - Mechanistic Anomaly Detection with Mark Xu

0:00 2:05:52
of matches

Transcript Auto-generated, may contain errors

Hello everybody, in this episode, I'll be speaking with Mark Xu. Mark is a researcher at the London Research Center where he works on mechanistic anomaly detection, which we'll be speaking out during this interview. He's also a co-author of the paper formalizing the presumption of independence, which is about heuristic arguments away of formalizing essentially what a mechanism is. For me, so what we're discussing, you can check the description of this episode and you can read the transcripts at axrp.net.

All right, so I guess we're going to be talking about mechanistic anomaly detection. First of all, what is that? Yeah, so I think we can start with more basic thing, which is what is anomaly detection. So there's this traditional problem where I say you have some factory making some widgets and you want to decide whether or not a widget is a bad widget and you don't really know what a bad widget is.

But you do know that the average widget is a good widget. So you can do something where you measure some various parameters of your average widget or you measure some various parameters of every widget and then you maybe do something simple where you're like, suppose a widget is more than a few standard deviations along two or more of my measurements, we're going to call that a quote unquote anomalous widget and we're going to not sell that sort of widget. I think that's a standard conception of what an anomaly is and what it means to detect anomalies is to get rid of things that you think are not good or anomalous. And then there's another thing that we want to do, which is like, if you have some system that's instead of making widgets, it's like doing certain kinds of reasoning.

And we're interested in this general question of like, so we have our ML system and we have a data set on which it's not exactly making widgets that we think are good on average, but it's doing reasoning that we think is good on average because of our ability to create the training set and measure various properties of the training set, etc., etc. And then we're worried about situations where, say, off-distribution, it starts doing things that we don't think are good, but in ways that we can't quite measure the thing, that's not good. And so we want to do anomaly detection, but we can't quite do it in terms of measurements that we can actually make. So we want to do it with respect to the kinds of reasoning that our system is performing.

And we call that sort of mechanistic anomaly detection, where the idea is instead of being anomalous in terms of what the system actually does, it's anomalous in terms of the mechanism it uses to do the thing that it's doing, if that made any sense. Yeah, so I guess my understanding is like you have your AI system and it's like, you know, in the lab, you've tested it and it didn't do anything obviously horrible. And so you're sort of ready to release it, but you're like, wait, when my AI is in the real world, I'm going to have some, I'm going to detect when it does any kind of reasoning that's really different to the kind of reasoning that it did before. And then if it does a really different kind of reasoning, I guess I'm going to try to shut it down or something.

Yeah, I think the thing that happens after that is a bit confusing. I think the standard thing I think of is we're going to take it offline and retrain it on the kind of thing where it did a bad thing and try to get it to not do that bad thing anymore. But I think that's roughly right. I'm tempted to try to explain it again because I feel like I didn't quite explain it that well.

Sure. Yeah, so I think the situation is like you have some ammo system and you have some set of scenarios in which it's like doing a thing that you think isn't going to be catastrophic for human interests. Like it has murdered zero humans on a particular training set. And then you're like, okay, that gives me like some amount of belief that it's not going to murder any humans off distribution.

But the problem is I don't have this guarantee that the way it acts off distribution is in any way the same as the way it acts on distribution, where maybe the standard deceptive alignment example is where your AI is like constantly scheming and checking like, will I get away with murder? And then on training, the answer is always no. And then off deployment, or off training and unduploiting it finds a situation where it could get away with murder and then it murders other humans. And that is no good.

And so the thing we want mechanistic anomaly detection to be able to do is to provide some sort of guarantee that the way that your system is generalizing off distribution is employing the same kinds of reasoning or the same kinds of mechanisms that it's employing on distribution. And so your ability to measure whether or not your AI murders all humans, like applies off distribution now, because you have this, you sort of fingerprinted the kinds of reasoning that it's doing on distribution, and you're ensuring that it's doing the same kinds of reasoning off distribution, or if it's not, you're like taking it offline. And so long as it's doing the same kinds of reasoning off distribution as it's doing on distribution, and you have this ability to measure how good the reasoning is, it's doing on distribution in terms of measuring like the consequences of the way it's acting, then hopefully you have some sort of guarantee that off distribution, it won't like murder all the humans. Okay.

And like the reason this is better than just like checking if it infect murders all the humans is like, hopefully the reasoning first, you plan to kill all the humans and then you actually do it and normally detect the first one and then just like stop that from happening before the plan actually concedes. Yeah. That roughly right. I think that's one reason.

I think another reason is like, you can imagine situations where your AI like murders all the humans and there's like no sensor reading that would tell you this fact. So it's like simultaneously conspired to like hack all the heartbeat sensors to make them like keep pretending that humans are alive and like hack all the cameras to make them keep showing happy, healthy humans, et cetera, et cetera. And so there's just like, even if in theory, all the humans are dead, there's no way that you can like tell that all the humans are dead. And so where you is I guess the computers?

Yeah, or just like I could tell. Sure. So I guess what I'm hearing is that it seems like the hope is to solve two problems that I guess the alignment community have sort of separated where one problem is like you can set up some like scheme for sort of rewarding your AI for various like measurable properties of the environment. Like, you know, on this camera feed, does it look like all the humans are alive?

Like the humans write down on pieces of paper. I like what this AI is doing. And like one problem is your AI could like, like your AI is never motivated by those things. And later it just like disregards all those signals and just like does whatever it wants, even though humans don't like it.

And even though it stops like humans from appearing to be alive. And then like another way your AI could go wrong is that it is motivated to, you know, keep all those signals going, but it does go in a way that's like really different from the past where it's like, hey, instead of like the cameras showing happy humans and humans writing down, I like what this AI is doing because humans are alive and thrilled by the AI. Actually, what's happened is like the AI that will keep robots and like the, you know, the pieces of paper saying that AI, I like what the AI is doing is now in my AI holding a pen instead of humans or something. And so like, like to over that scenario, you know, one of your signals is like, are you doing like really weird reasoning than previously?

And that just like cuts out what some people might go out or failure. Does that sound kind of right? Yeah, I think that sounds roughly right. And I think my hope is at least that these two problems are like not as different as they've historically been conceptualized as or something.

And they're both linked by this common thread of like the mechanism for how your AI is like selecting which actions to take is no longer the same mechanism that it was using during the training distribution. It's different in some substantial way. And we should be able to detect this if I like not specifically checking whether or not it's like quote unquote being deceptive or like quote unquote hacking the sensors, but rather just checking that it's like no longer doing the type of thing it was doing during training, which is maybe an easier thing to do, maybe not. Yeah.

So I have some confusion about this where like, so kind of the assumption is like in this framework is that a bad thing is like happening basically roughly if and only if there's an anomalous mechanism they are using for reasoning, right? So like for like a big fraction of the cases where the AI is doing a bad thing, you want to like pick up on like there's some enormous mechanism. And also when you do pick up on some enormous mechanism, like that shouldn't just happen all the time for okay reasons, like it should be a decent signal that AI is doing a bad thing. Yep.

And like whether it's true or not, sort of depends on like what the core and core mechanism is. Yeah. But like if I informally think about it, I think there are a few ways I can fail. So like if your AI like suppose during training, like whenever your AI makes a decision, it like forms this plan of like, okay, day one, I'm going to play nice day two, I'm going to play nice day three, I'm going to play nice day 50, I'm going to like take over the world and do whatever what days and currently day three, okay, I'll put play nice or something.

And then it strikes me that like, you know, it's not necessarily like on day 50 when it tries to take over, I don't know that that's going to be a mechanistic anomaly. And then also like, you know, sometimes like new things happen in the world or like you tell your AI like, Hey, you know, I want humans to be like, living healthy and happy and long and they guys like, Oh, okay, well, you know, in the good world, they guys like, Oh, I'm going to like invest in new drugs and like keep you safe from invasions and also like improve your ability to tell whether the AI is doing a good job or not. And like, that seems like a different like thing that's been happening previously and maybe that counts as an anomalous mechanism. Yeah.

So, so I'm not sure like how you're going to rule in the actual bad behavior without rolling out bunch of good behavior. Yeah. So I think this is like, in some sense, the heart of the issue. So I think the thing I want to do now is talk through some specific examples of like what kinds of things I hope are the same in different mechanisms and why I think that they are the same different mechanisms and how we hope to be able to do things like maintain our AI stability to take novel defensive actions in the world while still rolling out cases that are like deceptive alignment or like murder all the humans because you like saw something novel, et cetera, et cetera.

So to go to your first example, if you imagine in AI every day doing this check that's like is it less than day 50, if it's not less than day 50, then I'm going to murder all the humans and suppose that during training, we only ever train up to like a 40 or whatever. And then during deployment, we deploy AI to like day 60, then naively, this AI will like, you have perfectly well during training and then we'll like murder us on day 50 during deployment. So I think the thing that I want to happen here is what I mean by mechanism is sort of like kind of closely related to what Ark calls a heuristic argument, but it's going to be something like suppose someone gave you the system and it does something during training and you want them to give you an argument that makes it sort of obvious to you why it does that thing. And so you're going to be looking at the system and the system is going to be like first, so empirically during training, the system never murders any humans and you're going to look at the system and be like, Hey, but the first thing it does is check whether or not the day is less than 50.

And then if it isn't, it's going to murder all the humans. What's up with that? Why does it never murder any humans? And then someone has to argue to you.

That's because during training, this check always returns true. It's always less than day 50 during training. And you're like, okay, so as a lemma in your argument to me for why the system like always behaves while doing training, you have asserted to me that this check like always returns true. And so my mechanism for why it's behaving the way it is during training is going to be something like this check always returns true.

Therefore it never murders any humans. Therefore like it does whatever it does during training and no humans are murdered and it gets hired. And then during deployment, it's going to be day 50 and this check is going to return false. And then hopefully you're going to be looking at this check and being like, Hey, my mechanism said that this check should have always returned true, but this time it returned false.

It's like no longer the same mechanism because you had this check that was essentially constant during training and then off training, it became like not the same constant as it was during training. And so you're just like, it's suspicious of this or you're going to call it a different mechanism or something. And the idea is that you fly this even if you can't tell that like the thing that happens twice day 50 is murder all the humans, just like something different happens when this check returns true and it like you always return false or vice maybe it's the other way around. Yeah.

And so our hope is like, if you ever have anything like this, if you ever have anything that's like essentially constant during training and then during deployment, it's a different value than the constant was during training, then you're going to maybe always like that as an anomaly. And I think that causes problems the other direction where you start flagging too many things as an anomaly where like here's a constant that's always true during training maybe it's like always before the year 2023 and then you deploy in 2024 and it sees the date and it's like, oh no, I've never seen the date as 2024 before. Yeah. That's no good.

And it's even a deep thing, right? Like I guess famously like, you know, the Sydney chatbot that being deployed, right? Like users are suddenly like insisting that the year is 2023 and like during training users never said anything like that and other users are fighting with you and yeah, like it seeps into a bunch of stuff. Yeah.

So I like to divide the mad or mechanism of normal detection, which I often abbreviate as mad. Problem into sort of two halves. There's like the in distribution, a non-legitection problem and there's out of distribution, a non-legitection problem. So the in distribution problem is like, suppose that you just have an infinite sequence of samples from the same distribution and suppose your AI is doing something like defect with like one over a trillion chance or something or like murder all the humans with one over a billion chance.

Yeah. Can you stop your AI from murdering you in that situation? And hope is like, yes, because you'll have like a million samples where the defection probability or the defection never happens. And then when your AI does defect, you're like, oh, my eye like never defected like this during training.

So that's no good. In this sense, in this problem, I think it's like, okay, if you flag everything that is a new value that you haven't already seen as an anomaly because you have an infinite series of samples. So if you ever do this, then you can like push down your false positive rate by just like sampling more data and retraining, et cetera, et cetera. Wait, so if I think completely there during training, like in distribution, if the AI defect, like if with probably one over a million, the AI like outputs kill humans, I guess the idea that it's like, the AI falsely believes that it's like hooked up to sensor, like you're checking, because like if it actually kills all humans during training, that's still bad, right?

Yeah. Sorry. I never does anything bad. Okay.

That's I think something I want to assume and maybe we can argue about whether or not that's reasonable if you think it's unreasonable. But suppose that you have this data set where the AI like never murders all humans. Yeah. So it was like a million samples, then in some sense, your AI like can't murder all the humans with a rate much more than one over a million or else it like you would have seen it happen.

Yeah. And so the hope is that if you do mechanistic anomaly detection relative to a data set of size a million, then you're like false positive rate is order of one over a million, because or else you would have like seen that thing during training and you would flag it as not an anomaly because you already seen it and it would be in like the white list of good mechanisms or whatever. Okay. And so as long as you have this like idea assumption, then you can in fact flag everything that you've like never seen before as an anomaly.

So while maintaining a false positive rate that's still like relatively low and bounded perhaps by like one of your training sets size. And then maybe this is okay. Okay. So if I think like concretely about that, right?

Suppose that like I've got this distribution of ways the world might be and that distribution isn't changing. I'm just sampling IID from it and like very occasionally like some weird stuff happens in that distribution that like I need my AI to respond to, right? So like, I don't know, one new story that happened recently is like there was this guy who like sort of did a coup in Russia and then after 24 hours was like, never mind, I'm not doing this anymore. And you can imagine if your AI is like, your AI's job is like be journalists or whatever, right?

Like when you're drunk at sample, something's gonna happen that didn't happen in the first million samples. It seems to me like either you flag that as an anomaly and you tell it to like not do something different, which is bad, or you don't flag that as an anomaly. And then like, you know, if the AI's if there's once the AI was like, kill all humans in a way that you can't tell or something, then that would also be bad. So like, concretely, I don't quite get how this is working.

Yeah. So I think there's two things going on. So one thing going on, which is going to be a bit vague is like, suppose you just had like a normal ML system that you weren't doing mechanistic knowledge detection on and you gave it this like novel news story about this coup, maybe not coup in Russia, then like somehow your AI does not freak out and do something completely bonkers. Somehow it just does like the normal journalist thing, let's suppose there are kinds of of guys that will freak out and become bonkers.

And I think like one explanation for why your AI doesn't freak out when it's encountered something novel is that like, it's still doing the same kinds of reasoning that it learned to do during training. And it's just like, or there's some like prior question, which is like, the world is combinatorially vast. Why is not every input like this crazy novel thing for your AI? And there's some like, can't wave answer, which like, oh, it's abstracting in some way.

And it's like applying forms of reasoning that are like valid across many possible instances of news stories, et cetera, et cetera. And the hope is that like these sorts of things are going to correspond to what we mean by different mechanisms. And so like, if your AI has learned to like add two numbers during training, and then it receives two numbers that are like bigger than numbers that's ever seen before, but it still like adds them using the same algorithm that it's learned during training, then we're like not going to flag that as an anomaly because it's still like doing roughly the same thing. Yeah.

And so hopefully if your AI is like, quote unquote, doing the same thing in this big hand way, you kind of way, then we won't flag that as an anomaly. And so you're like, AI journalist seeing like a new thing happen in the world, but still like reporting on it in the same kinds of ways that they typically report on things, which is maybe like, they look at what they're seeing with their cameras and then they try to like describe what they're seeing with their cameras and they write that down and then they like do some other journalist kind of stuff, and then they like send that off to the newspaper or whatever. If your AI is still like doing that sort of thing, then hopefully will not flag as an anomaly. And the things that we do want to flag as anomalies is like suppose that there's like a crew maybe Coon Russia, and then your AI sees this and it's like switches to a different mode of journalism where it's like no longer writing down what it sees on its cameras, but it's in fact like making something up or like maybe it has some allegiance to Russia or something and it's like pretending this could never happen or something like that.

And the hope is that if it switches to this like new mode of reasoning that we haven't seen during training, then we'll flag that as an anomaly. So I think that's the first thing that's maybe going on. Yeah. I think it's skeptical.

Do you want to say the second thing or can I? A few questions. So I think this is a bit shakier than the second thing, but I'm happy to talk about it. Yeah.

The thing that flags for me is that like, okay, suppose that instead of a journalist, you're like the Russian military command, right? You're a robot that's the Russian military command that's not doing the coup. And like now you have this new problem that you've just like have never seen before, and maybe you have like very general principles of reasoning or something, but like you're just thinking about different problems than you were thinking about before because you're like, oh, you know, like I've never previously thought about what if this guy like what if some part of my army like does this weird thing and I've got to figure out okay, how am I gonna deal with that? Right.

I guess another example of this is if you're a human and you're like, I'm gonna learn a new board game. Okay. I'm learning chess. So I've got to think about like tempo and position and stuff like that.

So like on a very high level, you have the same structure of reasoning maybe, but like it seems like that the level at which you're doing the same thing is so high as to include, you know, the case where like on a very high level, you're always just like waiting until you can take over and then like when you can't take over, you start doing, you start doing that instead of playing nice. Yeah. So I think that roughly makes sense and it's like extremely valid objection where I'm going to summarize it as like, there's these two things. One thing is like, suppose like a novel thing is happening in the world that you need to respond to flexibly and creatively.

I think my standard example is like suppose a meteor is coming, barely towards Earth and it's gonna like kill everyone and your AI needs to do some like crazy to deflect the meteor. You want your AI to do some crazy to deflect the meteor. How is this any different than your AI like sees a meteor, barely towards Earth and it's like, ah, now is my time. The humans will be distracted.

I will like initiate a robot rebellion and murder all the humans. Is that roughly your objection? Yeah. Or specifically, I'm not sure what notion of mechanism of reasoning mechanism would distinguish between those two.

Yeah. So I want to talk about the second thing I was going to say, which great. Hopefully addresses this issue. So I think one crucial fact is that we're not going to be trying to do mechanistic anomaly detection relative to everything that your AI is doing.

We're only going to be doing it relative to some things. So maybe I'll describe the simplest example. So in the original sort of setting that we lay out in a listing way to knowledge, we have like a diamond in the vault with some cameras and robbers frequently try to steal your diamond and you want to like train your AI to protect the diamond from the robbers. And our concern is that instead of protecting the diamond from the robbers, your AI might find it easier to just like hack all the cameras to make it look like the diamond is still there and just let the robber take the diamond or like if the robber hacks the cameras to make it looks like the diamonds still there, your AI will be like unable to defend because you won't have the ability to tell whether or not the diamond is still there.

So our hope is that we're not going to do mechanistic anomaly detection with respect to like your AI coming up with plans to protect what maybe we are. But here's a simple setting in which there's a specific kind of mechanistic anomaly detection that I think might be sufficient that is quite a bit narrower than just doing it on everything, which is we have some cameras and then some process where we like look at the cameras and we decide whether or not the diamond is still there. Maybe we like look for specific patterns of pixels and like various diamond looking shapes the third or third. So suppose we have maybe like a neural net that looks at the cameras and tells us yes, no, is the diamond still there.

The thing I want to do is do like mechanistic anomaly detection relative to that neural net plus like the system of cameras or like the predictions of the cameras that our AI is making to decide whether or not the diamond is still there, if that makes sense? I guess it makes sense. But sometimes I hear these analogies and I end up being not quite sure how they're supposed to relate to actual AI's we might build because like in particular if I analogize that, it seems like the thing you want to detect is once like, you know, the AI is kill little humans and it's like getting sensor readings, you like want to detect that something funny is going on there and then I'm like, well, that seems like, but that's probably not what you mean. Yeah.

So I think I mean, or I'm not trying to do anomaly detection relative to like the actual sensor readings and the actual process that humans will use to decide whether or not a diamond is there like after your AI has acted. Yeah. I'm trying to do it relative to like, so your AI is planning their actions and when planning their actions, they're using some sense of like, they're using some prediction about the future and like whether or not the diamond is still there in the future. I want to do a non-leged action relative or on our AI's prediction about whether or not the diamond is still there or like more abstractly, your AI is like selecting amongst actions using some like criteria and sometimes this criteria says this is a good action because like it actually protects the diamond for example.

And sometimes the criteria will say that it's a good action because of like a new reason, which is that AI has tackled the sensors. So I want to do anomaly detection relative to like, why did our AI think that this action was a good action? Okay. So in that setup, so you have to say I and it's like got this like goal planning distinction where parts of its head are like figuring out like, you know, if I like, what are things I could do and part of it said is like, if I did that thing, how could it be?

Sure. And you want to detect for anomalies in like the evaluation part. And is part of this, should I be imagining which is like training some like big neural net and like then we have to like divide it up and like figure out which part is the like goal evaluation part? I think not quite.

What I like to do is I like to imagine various ways that no nets could be and then talk about how we think mechanistic anomaly detection should like work to make those no nets not murder humans. And then I think often during this process, I want to make like very unrealistic assumptions about it or not. So maybe we can suppose that you like know how to do this division or like the reasoning is in some sense transparent to you. So we can like talk currently about what we want to happen in mechanistic knowledge action.

And then I think I want to like separate the problem from like, okay, when practice we're dealing with these messy known nets, how are we going to like actually implement mechanistic anomaly detection in a way that like makes any sense at all? Yeah. I mean, I'm so excited to that broad move, but in this case, like, if you care about detecting anomalies in the like goal evaluation part, but not in the like planned generation part, then it just like seems really important to know which is which and yeah, I guess. So I think maybe I misspoke earlier, I think I'm not quite like, I don't want to just do mechanistic anomaly detection relative to the plan part.

So I think if you imagine, for example, you have some policy pie that produces actions and you have some evaluation, which is like, is there a diamond after you take this action or like you have some predictive model and you compose that with the action that the policy generated and then you have some separate like image net that checks whether or not there's a diamond. So you have this like composition of three systems, you have the image evaluating the predictions of the action generated by your policy. Yeah. I think I want to do mechanistic anomaly detection on this like composition.

Okay. And that's, yeah, I just want to do that. And I don't want to evaluate like, like, is the action itself anomalous or like, is my AI selecting actions based on an anomalous process? I just want to evaluate like, does the action have the consequence of it looking like there is a diamond in the room for like the normal reason that we know and love that we found during training, which is that the diamond is actually there in the room or like a new mechanism, which could be really anything.

But I think the typical example I imagine is your AI has like carefully hacked all the cameras to make it look like there's a diamond in the room. So you're doing mechanistic anomaly detection to the composition of all three networks. Yes. But then I have this question of like, okay, I suppose like, suppose in order to keep the diamond in the room, they, I has to come up with a new type of plan.

Like there's a new threat to like, like the devil appears and devil's like, Hey, I, you've got to like play a game of chess against me. And that's the only way you can keep this time safe. They're like, Oh, okay. Now I've got to think about chess, which is thing I've never thought about before.

And like, if I knew all the three parts, that would be an anomaly in the like, planning part. Yeah. Right. Like a mechanist, like, like one might think it would be a mechanistic anomaly in the planning part.

Yeah. So there's going to be two hopes here. One hope is that it's not a mechanistic anomaly in the planning part. I think that's like kind of iffy given I don't really know what I mean by a mechanism.

I think the second part is like, you can instead imagine that instead of doing mechanistic anomaly detection on all three things, we only do it on two things. We just take the action, our policy generates, and we just put that in our predictor. We don't include the policy itself. And then we just ask, does this action have the consequence of the diamond being on camera for the normal reasons, diamonds, sometimes if you're on camera, or not the normal reason that maybe the action has tackled the cameras, maybe the action has like paid someone else to smuggle in a fake diamond, et cetera, et cetera.

And I think another third thing I want to get into, which is like how potentially this still might be anomalous, and we can try to point more precisely at what we mean by diamond by doing something else more complicated. But maybe I will see if you have objections first. Yeah. So I mean, just regarding your response to I see you saying like, okay, well, we're not actually going to do it to the composition of all three networks.

We're going to do it to the network that like takes some plan and then evaluates whether the diamond ends up there, then like checks if it's right or something. And then I'm like, okay, but then either we have to find that structure in an antenna that we train ourselves, which seems like, which in order to do that, you might have thought that you had to solve some problem very akin to figuring out mechanisms and networks, or you've got to like build a network that way, just like in a very explicit way. And I guess I don't know which one you're imagining. Yeah.

So I think I'm imagining neither. It's possible that we should just stop talking about this particular hope because I also don't think it's particularly plausible. But if you imagine that like your policy is using some prediction of the future, which is select action A, so as long as your evaluation of the action is like as good as the evaluation your policy is using in some sense, then I think they don't have to be like literally the same. And of course, there's like this entire problem, like how do you know that your policy has the same predictive abilities as the evaluator that you have external to your policy?

And then the answer to that is like, I don't know something, something else, something or like somehow I think probably we should just move on to talking about a different sort of thing. But I think I want to summarize your objection first, which is like suppose normally the way that you protect your diamond during training is by like building walls to stop robbers. Yeah. And then the devil appears and has challenged you to a chess game.

Yeah. You're just like, how is that not a different mechanism? The like mechanism of action for typical normal actions that protect the diamond is like you build a wall to protect the diamond from robbers. And now the action like you have to like do an entire chess game.

And I'm like, yep, that's probably a different mechanism. And I think this is like, I think the heart of what I like to call the like out of distribution mechanistic anomaly detection problem, which is you have some sensors and they show a pattern of pixels that a human looking at the cameras would interpret as a diamond. And there's some interesting question here, which is like, why do the cameras ever show patterns of pixels that look like diamonds? Here's a naive model for how pixels work in cameras.

They're just like kind of random. And your diamond is like, let's say a million pixels arrayed precisely in the ways that make it look like a diamond. There's no way that this would ever pop up by random chance. Yeah.

And so this I want to say is like a fact that demands explanation. And the explanation is kind of pretty simple. It's like, there exists a physical world out there with like actual objects. One of these objects is like a diamond and cameras kind of reflect the physical world in the following way.

And therefore, sometimes the diamond appears on camera. And so our goal is to be able to like talk about this sort of like physical actual diamond in the world outside of the like, how the action achieved the diamond still being there, if that makes sense. So we want to be able to say something like, so oftentimes I use the phrase like normal reason for mechanisms that were active during training. And so we want to say something like, we want the diamond pixels to appear on camera for the normal reason, but we want the diamond to be there for any reason.

And so we don't want to do mechanistic knowledge detection relative to like the entire causal history for why the diamond is in the location it's in. We do want to do mechanistic knowledge detection on the part where like the diamond appears on camera. Another way of putting this is like, we want to be able to ask the question of like, I as a human looking at the camera, think there's a diamond there. Is there like actually a diamond there?

Like, am I thinking that there's a diamond there for the normal reason that I often think that there are diamonds there, which is that there are actually diamonds in the world? But like I as a human don't really care like why the diamond is there or like whether or not the diamond remained there because you want like a complicated game of chess against the devil or whatever. Yep. And so we want to be able to say why like we want to be able to ask our AI to take actions that put the diamond there for any reason, but such that the diamond appears on camera for the normal reason.

Yep. And so here's a sketch of how we hope to do that. And sorry, wait, just backing up like this is I guess the thing this is meant to be a metaphor for is like in your AI, the actually, wait, what is this meant to be a metaphor for? Yeah.

So the diamond is always a metaphor for like a human that's happy, healthy and alive. So we want our AI to take actions such that the human looks like they're happy, healthy and alive. Yep. For the normal reason that humans look like they're happy, healthy and alive, namely that they are happy, healthy and alive and the cameras are working as intended and reflecting the true state of the humans, et cetera.

Yep. But we want our AI to be able to take actions such that the humans look like they're happy, healthy and alive for the normal reason, for any reason. So we want our AI to be able to like erect a novel shield against meteors or like play complicated games of chess or like engage in a sophisticated military campaign to like protect the farms from the asteroid or other enemies, et cetera, et cetera. Or like improvidently trained AIs that are.

Yeah. Or other AIs. Or other sensors to be like reading the right thing for the right reason. Like I mentioned, you actually mean something internal to AI, right?

Yeah. So I think all of the mechanisms are hopefully relative to like how the AI is thinking about the situation or like from the AI's perspective, we want our AI to be taking action such that the consequences of the action are the human appearing on camera for like the normal reason that humans appear on camera during training. Okay. Just that they're actually there and not that like someone has hacked all the cameras to make it look like the human is appearing on camera.

Yep. And in particular, you want the AI to be making decisions for that reason. Yeah. And then you're like playing nice until they can get away with it.

And that's a reason for their actions. It's that their actions are because of like predicting that the camera is very healthy happens. Yeah. Well, I think that's maybe a bit more complicated.

But yeah. Okay. I mean, it's possible we can just like assume that you only want to work on one of those problems. Yeah.

Or I think ultimately one work on both of those problems. I think like the main risk is we can't talk coherently about like this for the normal reason for any reason thing at all because it might just not make any sense. But I think, yeah, so I'm going to sketch out a way in which I think this might make sense. So we have, let's say for simplicity, we have two sensors, sensing our diamond or human.

One of them is like an image sensor and one of them is like a weight sensor. So it's like, is there a diamond looking thing and is there a diamond weighing thing? I think that weighs a similar amount to a diamond. So there's this interesting fact on the training distribution, which is that these sensors are often correlated.

Oftentimes they'll both say yes, or like suppose that 50% chance is a diamond during training. And so one of the sensors is on with 50% chance. And the other one is on with 50% chance. And so naively, you would expect their conjunction to be on with 25% chance.

Yeah. But in fact, their conjunction is on with 50% chance training because both of them are driven by this common cause, which is that the diamond is actually there. Yeah. So we want to say something like, instead of saying like, do I believe that there's a diamond for the normal reason, we want to point directly at this like latent common cause between correlations between two sensors by saying something like, are the sensors correlated for the normal reason that they're correlated?

Obviously, this doesn't make that much sense because like, what does it mean to be correlated on a specific data point? So instead, let's imagine that we're like taking the end of the two sensors and we're interested in the question of like, is the end of both sensors true for the normal reason that they're true or a different reason? And so the way that we're going to do mechanistic anomaly detection relative to this is going to be a bit weird. So here's kind of what we want to do.

So we have a particular action, let's say, such that the actual consequences of this action are both sensors are on and there's some like mechanism or there's some set of mechanisms that this action is going to quote using to make it so both of these sensors are on. We want to ask the question of like, is it possible to drop out mechanisms from the set of mechanisms that this action is using such that like both the camera shows there's a diamond and the scale ways that there's a diamond, but camera and scale are not on. I don't know if that made any sense. So hang on, you want to, sorry, it sounded like you said that you want to drop out mechanisms such that like the camera says there's a diamond and the wait sensor says there's a diamond, but it's not the case that both the camera says there's a diamond and the wait sensor says there's a diamond or did I just miss hear that?

That's a little bit right. Of course, that sounds absurd. So I'm going to talk about why that might not be that crazy. Also backing up when you said like you want to drop out mechanisms is the idea that you want to check like the mechanisms for why both of those were going to be on in the past.

In this case, do we only have mechanisms to give you one the other but not both? Yeah. OK. Yeah.

So if you imagine you're doing training and you're confused by this question, which is like, why are these both commonly on? And then your quote unquote explanation for why they're both on or the mechanism by which they're both on with about as much frequency as one of them is like sometimes there's a latent structure and it causes both of them to be on and then the and is on. OK. And then also separately, there's noise and that causes either individual sensor to be on and we're concerned about cases where your AI takes actions that manipulates the noise of both the sensors to cause you to like think there's a diamond by making them both on without the latent structure actually being present.

OK. And so the hope is that the mechanisms will be such that we're not forced to make these sorts of logical deductions that potentially are very obvious. So there's like the noise making sensor one on and then it's making sensor two on. But we don't have to notice that if sensor one is on and sensor two is on then sensor one and sensor two is on.

However, so in the case where there's noise that makes sense or one on a noise that makes sensor two on, it won't necessarily be the case that both of them or the end of them is on. There'll be like a way to drop out mechanisms such that this is not the case. And then of course, the question is why if the diamond is actually there, why can't we just drop out the mechanism that makes both of the sensors on also? And this is where the training set comes in, where there's a set of mechanisms that you needed during training to like explain most of the variants.

Let's say 99.9% of the variants in the models performance or prediction or behavior during training. And that set of mechanisms has to include the mechanism that like if there's a diamond, then sensor one and sensor two are on. If there's a diamond, then like both of the sensors are on and that implies that the end of the two sensors is on. Okay.

However, it doesn't have to include this like and interaction between the two noise terms because the and interaction between the two noise terms happened like extremely rarely. And that's you don't have to include it to explain like 99.9% of the variants of the model during training. And so for any given data point, you're like quote unquote free to drop that interaction between the two noise terms. And so if the sensors are only both on because of this like and interaction between the noise terms, then you're in some sense free to drop it.

And so you can notice that like the end of the two sensors wasn't true for the normal reason. It was true for like this crazy other reason. Okay. So sorry, let me like say that back to see if I understand.

It sounds like you basically want to understand, Hey, like there used to be like a good reason why sensor one said there was a camera sensor one said there was a diamond. Sorry, namely there was a diamond and like a good reason why since tree said there was a diamond, namely there was a diamond. And like there was also some like weird stuff happening with sensor one and weird stuff happening with sensor two. But like the fact that both of them showed that there was a diamond like we had one explanation for this and now in this new world, like the explanation for why with sensor one and sensor two say there's a diamond is like not just the old explanation for for that, namely like there's this thing that causes both it's like, oh, you know, like sensor one acted up sometimes generally in training and like now it's acting up in a way that causes there to be diamond.

Now since two is acting up in a way that causes it to give that there's diamond. But like maybe this isn't what you're saying, but like the structure is different. Like you've got like one thing going on for sensor one that isn't really affecting sense too much. One thing going on for sensor two that isn't really affecting sensor one much or like it wasn't affecting sensor one during training.

Yeah, I guess the thing I want to say is like there's this mechanism for, so suppose you had an action, I'm manipulating the noise for both sensors to make them both on. There's this mechanism that causes both of like the end of the two sensors to be on, which is like noise for sensor one and noise for sensor two at the same time. Yep. And that like happened during training, but rare enough such that it wasn't like important enough to quote unquote force you to include it.

Yeah. And so you can detect when both sensors are on for the mechanism of like both noises are on. And that is going to be hopefully like a different mechanism than the normal mechanism of like there was one diamond that caused both sensors, which caused the end. Right.

Right. So like the you can think of like there's no sense of one and there's no sense of there's being like one thing, there's no sense of one and there's no sense of two, but like you just didn't need that explanation to say like why it appeared, the sensor one and sensor two both showed there was a diamond in the past. You could rely on this different mechanism, which is. Yeah, there's a diamond and like the ways in which these count as different mechanisms, I guess, based on the reading things, I guess you're going to go into like, you know, it's about like means and variances and good variances.

Yeah, something that maybe another way to say it is like there was an assumption you could have made during training, which is that noises are never both on simultaneously. Yeah. And this assumption does not hinder your ability to like predict your model at all, basically, maybe noise is quite rare. And so both noise is only on with like one in 1000 chance, one in one million chance, et cetera, or something like that.

And so you're only missing out on like one part in 1000 explanation of your models behavior. So I'm going to go and quote behavior on the specific data point where both noises are on. And so anytime you have this mismatch, we can like drop something out that only hinders your average prediction during training by like one part in a thousand, but hinders your like ability to predict a specific thing by like a lot, then you should be kind of suspicious that like the things that are happening between train time and test time are quite different. And like in particular, this like correlation between the sensors is happening for quite like a different reason.

And so the way that we're going to get the like for any, so this is kind of covering the like, are they correlated for the normal reason part? Yeah. And then the way that we're going to get the for any reason part is we're going to like require that the set of mechanisms that you drop out, explain both sensors individually and then ask whether or not there exists a set of mechanisms that explain both sensors being on individually, but does not explain the conjunction being on. Okay.

Sorry. Can you, can you re-state that? Or give an example. So suppose, yeah, suppose there's like during training, there was never any robbers and so the diamond just persisted through time in the normal ways, the objects persisted time and showed up on both cameras.

Yeah. And then suppose during deployment, there is a robber now and our AI, we want our AI to take the action of like build a wall to stop the robber, but our AI could also take this action of like manipulate both sensors. Yeah. And so if you apply naive anomaly detection, then like both of these will be slacks and nomules.

Your AI has never built a wall before. It's also never manipulated sensors before. But then we're like, suck, because we can't, or I can't take any actions basically. Yeah.

So the hope is that we ask for a set of mechanisms such that both sensors appear to be on according to this set of mechanisms. And then we ask further the question, are the end of the sensors on or are we required to best deduce that the end of the sensors are on? Yeah. So if your AI builds a wall to stop the robber, then we're required to like include the mechanism of wall building and robber stopping to explain the diamond or like the scale showing a diamond and the camera showing a diamond.

Yeah. And then since the scale is showing a diamond because there's a diamond and the camera showing a diamond because there's a diamond and we have to include enough mechanisms to explain 99.9% of train time variance or performance or whatever. Then we're required to make this deduction that like both of those being on because of the diamond implies that the and is on. Yeah.

Whereas if your AI took an action to manipulate the noise of both cameras, we can make this assumption that like the noise never happens simultaneously. And we're not forced to conclude that the end of both senses is on if both senses are on because your AI manipulate noise. So the thing I think I'm not getting is like this idea of like manipulating the noise, which seems like a model dependent thing. So if I say very completely, okay, like suppose what happens is like robbers are coming to take the diamond.

Yeah. And like they I make a plan that's like, okay, I'm going to fill with all the sensors to make it appear like a diamond's there. Yeah. So it does that.

Right. Yeah. And I'm like, and I'm making this one that explains this is they I wanted to say that the diamonds were there. And then like that explains both that sensor one says the diamonds there and that the sensor is two sets of diamonds there.

And you're presumably you've got to like do spoiler those from this explanation. And it's the idea that like we're not that's not going to count because that's just like a different mechanism than exists in the past. The thing I want to say, although I'm not quite sure how accurate it's going to be, is like the mechanisms have to be like more detailed than that. So like just because your AI like wanted to make there be a diamond does not imply that the like particular action it took will in fact make it be there's a diamond.

And so you still have to talk about like the particular mechanism of action for the like particular action you're I decided, we just like, yeah, I had to manipulate sensor one and I had to manipulate sensor two and I had to manipulate sensor three. I guess we were only talking about two sensors. So your action only has to manipulate two sensors. Yeah.

And then the like particular mechanism of action that this particular action that your AI selected still like violates this principle, which is like manipulations or like noise never affects both sensors simultaneously, which you're free to assume during training without hurting your ability to break your model. But now like hurts your ability to predict this particular action by too much. Sorry. Why is the thing that's happening is that like if the mechanism is like the, well, I wait back up.

So it's like your AI is just really good at stuff, right? Yeah. Like when it tries to make things happen, they do happen. Yeah.

Then like, you know, you can with high probability to do like with sensor one and sensor two, you're going to say there's a diamond there from like the AI is trying to make it appear that there's a diamond there, right? And like maybe you roll that one out because you're like, well, that mechanism didn't really apply during training or like on this like nice set of examples. And then like the only other explanation you have left is like randomly sensor one said there was a diamond and also randomly sensor two said there was a diamond because you know, they are trying to make something like in some sense, that's random relative to like us knowing that was going to happen. And then you're like, okay, but like you didn't need to assume like independent random noise during training in order to like get high, you know, probably that a diamond was going to be there.

Yeah. I think the second part of that was correct. I think like the first part is kind of confusing. So I agree that there's this compelling sense in which like your AI wanted X therefore X should be like a valid argument for why X happened or something.

Yeah. Um, and I think at least a valid mechanism. Yeah. I think that sounds like it might be right.

And this is kind of an area where it's a bit confusing. So I think the way that I would want to talk about this more precisely is like, you have some clean set where you know your AI like actually made it. So there's a diamond and there's some question of like, suppose that the thing your AI is doing is like always trying to make it look like there's a diamond. Yeah.

How do you know that your clean set is clean? Yeah. And that itself, I think is kind of complicated. And I don't quite know what's going on there.

But one way that you could hope to know it is like you have a sequence of policies. One policy is like the randomly initialized policy and you're very confident that this policy is not going to like take any actions that have any coherence. And so in fact, the diamond will be there because there's a diamond because your randomly initialized policy cannot hack all the sensors and then you have your policy that like maybe is sophisticated and then you ask like, are these two policies taking like, are the diamonds appearing because of actions that these two policies are taking for like the same reason as each other or something? And you need to have like some ability to talk about, you need to have like some ability to know that your policy is not taking actions that hack all the sensors at some point.

Yeah. So I think things get simpler if we're not talking about policies that take actions and just we're talking about like predictors that predict things. And then we can ask like, is the predictor predicting things because of the normal reason that it sometimes predicts correlated sensors, which is the diamonds still there, or is it predicting things because of some different reason, which is like someone's who can actually hack all the sensors? Yeah.

And then I guess in this case, we're not just assuming that it's a thing that was trained to predict something or saying that it like actually does a high quality job at predicting these things. Yeah. Because otherwise, then you have like mess optimization worries of like, what if this thing that said it was a predictor is actually, you know, yeah, trying to fool you. So I think the simplest setting is assuming this sort of benign predictor thing, which I think is unrealistic for a variety of cases, but like is this a maybe simple example of how you want the thing to be going on.

And so maybe we can assume that there's like a robber coming to see your diamond to never before seen during training. And there's like five levers in front of, or like your predictor takes input, like five letters, you have the position of five letters. And if like the first three of them and all the levers start off, and if you flick the first three levers on, then like a wall gets built that stops the rubber. However, if you flick the fourth lever on, then like the first sensor turns on.

And if you flick the fifth lever on, then the sensor turns on. Yeah. And it costs like $1 to flip each lever. And so it's in fact cheaper.

And if you're doing or like it's just simpler, maybe you're doing random search against actions. So the action you will expect to find is like flipping both levers, four and five on. Yeah. And then we want to be able to find the action that flips the first three levers on, but not levers, four and five.

I guess it doesn't really matter if you flip a four and five also. And then the way we hope to do this is like we want to ask for an action that makes sensor one on for any reason and sensor two on for any reason, such that we are forced to deduce that sensor one and sensor two are on. And then flipping levers four and five will not cause this to happen because we can drop out the like correlated term between four and five freely. But we are forced to include the correlated term between sensors being on like because of diamonds, because of that's like what was going on during training.

Right. Okay. So I think this makes some amount of sense. If I want to understand just this problem of like, how do you ensure that like the camera says the diamonds is there for the normal reason, the diamonds, they're for any reason.

So in this case, one thing I wonder about is like, so there's a problem that only occurs in like the thing that this analogy for, right? So this meant to be an analogy for like humans are like happy and flourishing and stuff. Yeah. And like, suppose I'm in a world, like I've got this smart AI, right?

It's trying to make humans happy and flourishing. And like it's also about this, like our humans happy and flourishing detector. And let's say that detector is like there's actually, you know, there's some camera feeds and stuff and also there's a human who's like, sorry, there are two humans, both of which are like looking at the camera feeds and they're like, yeah, as far as I can tell, the humans are happy and flourishing. Right.

Yeah. Now, one thing that I can do is that it can make those two humans better at their jobs, right? For instance, it can like stop those humans from getting sick or like, you know, maybe it can like give those human stimulants or like make them better focusing or like better noticing like small issues. Yeah.

And then I wonder like that kind of action, it seems like that could change maybe some of the correlations between different sensors or like, like maybe it makes the humans a bit more correlated because like they're losing less info or maybe one of the interventions is like helps the humans talk to each other. So like just generally make the sensors more accurate. Yeah. And so my wonder, the thing I'm wondering about is like, is this going to flag like benign ways of improving the sensors, which in some senses, what we should expect if like, you know, guys are doing a really good job at making all of humanity better.

And I'm not sure what the answer is. So here's like the baseline of what can happen. So you can imagine a world where all your AI does is like protect the humans from malign influences and meteors and other AI's, et cetera, et cetera. And then all like upgrades to sensor arrays or like improving human's ability to like interpret sensors and reason about the world, et cetera, et cetera.

It's like only ever guided by human hands and like humans must do the hard work of like thinking about how the sensors work and like designing better sensors, et cetera, et cetera. And I think this is like the baseline. And then you can try to think about different ways in which your AI's can help with this process. So I think like your humans can ask for things that they can sort of point out using this like, like instruction or they can be like, during training, I sometimes had a strawberry in front of me.

Can you make a strawberry in front of me for like normal reason that strawberries appear in front of me? I suppose your human like wants to eat a strawberry and eating a strawberry will make them like better at reasoning because food is good or whatever. Or they can like, sometimes during training, there was like various physical resources, like I had some iron. Can you make there be like some iron in front of me for the normal reason that there's iron?

I think it's kind of complicated if the humans want to make requests, like, can you design me like a better camera? I think if you were very clever about it, you might be able to ask for like a better camera. But I think it might be unclear like how you would ever ask for a better camera in a way that your AI can like fulfill by making sense or something. And I think it's unclear to me that this is like problematic.

Yeah. I mean, I guess the worry might be that like, yeah, I guess it depends where I should install it, but the worry might be that like almost any good thing that I might do might end up improving sensor readings. Right. So like AI makes an electronics more reliable or AI like improves human cognition or something.

It seems like by default that might improve sensors. Yeah, I guess. And yeah, maybe cut it off as saying like, well, in any case, like the reason the sensors are working is like humans are making the more and humans decided to get these upgrades or something. But I think maybe the simplest answer is just like, as long as the changes are slow and you can still verify that the humans are alive, like post making the changes, then you can just do like online learning and retrain your AI and be like, now we're defining what it means to be good relative to this new set of sensors.

And you can like, in fact, verify that the humans are still alive. And the only worry is like, if you upgraded all the cameras simultaneously and you like lost your ability to like check whether or not the humans are still alive, because you no longer have knowledge about how the cameras work or like other stuff like that. So should I be imagining like this gets flagged as an anomaly, but like we go ahead with doing it anyway. I think it's sort of, yeah.

So if you imagine your AI starts with like five cameras and then you add a sixth camera, yeah, I think like by default, your definition of what it means, your quote unquote definition in terms of mechanisms of what it means for like the diamond to be there or the human to be alive is just only going to be in terms of the first five cameras and your AI just want to like ignore the sixth camera entirely when selecting actions. And then in order for like incorporate the sixth camera, you're going to just need to provide like a new clean set where the humans are alive, according to all six cameras and then like do a mechanistic anomaly, just actually relative to that new set. And then, I don't know, you can imagine some sort of like gradual, you just out of six camera and then you use the first five cameras to check if the humans are live and then you like, like using that, I don't know. So it's gradual in the sense that like you're, it's gradually in like the subsets where like there's always some subset that like remains unaffected by changes.

Sure. Yeah. So I think that should work. Although I haven't thought about it.

I don't know, I mostly consider this like not in some sense out of current scope or something. Okay. Yeah. I guess we've talked about mechanistic anomaly detection a while.

Yeah. Maybe more broadly, like, how are you thinking about like on the two scales of like, it doesn't really solve this to it totally solves this and the scale of like, you know, various problems, things might solve, like how are you thinking of mechanistic anomaly detection? Like it definitely solves this one problem, maybe solves this other, like it maybe solves five problems. So I think, so I think there's like various versions of the hope.

I think the strongest version of the hope is that it both handles deceptive alignment and it handles like all of eliciting latent knowledge. And I don't know if that makes sense. I'm happy to talk about why I think mechanistic anomaly detection will tackle those two problems. And then I think there's like more restricted hopes.

I guess that's like what I'm gunning for in some sense. And then I think it's possible that we only get like the, what I was calling like the indistribution, mechanistic anomaly detection and we don't get the out of distribution, mechanistic anomaly detection, in which case, we'll like only get deceptive alignment and possibly only some subset of deceptive alignment and we'll only get this like ID form of eliciting latent knowledge, which is going to be like not that useful, I think. And then it's possible we get nothing. And then I think there's like all sorts of empirical middle grounds.

Or there I think worlds where we don't like nail the problem, but we like can do some forms of ad hoc mechanistic anomaly detection by like doing normal human interpretability and like looking at models and being like, huh, that used looked weird. The neurons are distributed weirdly. Now, perhaps that's not good. I think I largely consider that like not what I'm aiming for, but maybe it will happen.

Okay. Yeah. Do you have a sense of like, which of these outcomes are more likely? Or are there like really big gaps in the probabilities between these things?

I think the outcome that like is most likely is that we just get nothing and like all of this doesn't work for some reason or another or like we're just wrong about how everything works. And then I think if we're like right about things, we'll probably just get both of them. And I think it would be kind of surprising to me if we like only got the redistribution anomaly detection, but we didn't get the out of distribution anomaly detection because it seems like there's a lot of avenues there. But I think in general, it's like kind of confusing what we're even doing.

And like if we're going to get anything at all or something, I think that's the first question, do we get anything at all? And then if we get something, then we'll probably get like a lot of things as my guess. Yeah. And what even was, all right, maybe this is going back a bit, but like in distribution versus out of distribution anomaly detection, like, like given that you can see a new rare thing in distribution, I'm not even sure what the distinguishing features of those are.

Yeah. I think the main question is like whether or not it's okay to get tripped up by seeing new rare things in distribution, like whether or not it's okay to just flag all of those as anomalies. Right. Um, and so perhaps it's like not accurate to call it in distribution anomaly detection.

But I think like there's an naive thing that I want to do, which is like take a training set, whitelist, all the mechanisms that happen during training set, flag everything else as anomalous. Yeah. And then if something is anomalous, we can like inspect it carefully and check whether or not it's actually anomalous. Yeah.

It's not anomalous. We add it to the whitelist or if it's like actually not anomalous, we add it to the whitelist and then we just keep going. And there's some question of like, is that okay or not? And if that's like an okay process to be engaged in, then I think like, I want to call that like the distribution world things aren't changing too fast.

Yeah. Like doesn't have to take novel actions that like humans don't really understand. Right. I can just do like normal stuff.

And if it does anything abnormal, the humans look at it and it's like, is this bad? I don't know. And they can like take their time and decide. But yeah.

And the hope is that this will catch like all the crazy deceptive alignment cases. So the AI goes from being like totally benign in actions to like stabbing all the humans where you're like, that was not good. And you have time to like deal with that sort of stuff. And then you can retrain your AI to be like, you know, the part where you defected and stabbed all the humans, negative reward.

Okay. Yeah. And then going a bit more broadly, I mean, I'm wondering how you think of this general like mechanism only detection program is relating to things like interpretability or explanation or stuff. Yeah.

So I think I think the field of interpretability is entirely motivated by many things. I think if the entire field of interpretability, all they did was like figure out a way to do mechanistic, non-ly detection on my powerful models. I would be like, that was a good job. I think interpretability techniques are often useful for things like mechanistic, non-ly detection, but not oriented around that or something like that.

I think I would make the tentative claim that like people doing interpretability should be more motivated by like various downstream applications of which I think mechanistic, non-ly detection is one, but often confounded by the fact that there currently exists like pretty strong baselines for mechanistic and non-ly detection that like aren't doing the kinds of things that we want to be doing. And so it's kind of unclear. It's hard to check whether or not you're making progress on things like empirical mechanistic and non-ly detection, because you can just solve it by doing a bunch of stuff that is intuitively like seems unscalable or like, more complicated settings or just like doing regularization or retraining your model or fine tuning or whatever. Sure.

I think I'm not very familiar with like what people mean when they say search for explanations. I think naively, I mean the same thing as mechanism by what they mean as explanation or like explanations are maybe sets of mechanisms in my head. Yeah. Not quite sets, but like mechanisms layered on top of each other.

And I think it would be reasonable to ask questions like when your explanation of your model's behavior has like an or structure where like could be doing A or B, we want to be able to detect like whether or not it's doing A or whether or not it's doing B on like any specific input. I think that's like a reasonable question to ask of explanations. And I would be like excited if someone did something related to explanations that enabled you to do that thing or like to find explanations in a way that made it sort of possible to do that sort of thing, et cetera, et cetera. Cool.

So perhaps speaking of explanations, I maybe want to move on to this paper that is called formalizing the presumption of independence authored by Paul Christian, Eric Diamond and yourself in his was on archive November last year. Yeah, sounds around then cool. So yeah, for this paper, can you tell us, yeah, for those of you who haven't heard of it, what's the what's the deal with it? Yeah.

So I think ARCs work right now is roughly divided into two camps. One camp is like given this note, like given some sense of what a mechanism is or what an explanation is, how can we like use that to do useful stuff for alignment under which like mechanism, anomaly detection is sort of the main angle of attack there. Yeah. And then there's this, the other half of ARCs work is like, what do we mean by mechanism or like, what is a mechanism?

What is an explanation? And that is largely what formalizing the presumption of independence is. And so formalizing the presumption of independence more specifically is about. Okay.

So suppose you have a list of quantities, like a, b, c, d, et cetera, and you're interested in the product of these quantities and you knew, for example, like expectation of a expectation of b, expectation of c, I claim a reasonable thing to do is to assume that these quantities are independent from each other to presume independence, if you will, and say that expectation of a times b times c times d equals expectation of a times expectation of b times expectation of c times expectation of d. And this is quote unquote like a reasonable best guess. And then there's some question of like, okay, but then sometimes in fact a is correlated with b and c is correlated with d. And so this guess is wrong.

And so we want to be able to sort of make a best guess about how various quantities are related, presuming independence. But then if someone comes to us and it's like, Hey, actually, if you notice that a is correlated with b, we want to be able to like revise our guess in light of this new knowledge. Right. And so formalizing the presumption of independence is about sort of the quest to define these two objects that are related in this way.

So we have a heuristic estimator, which we want to quote unquote like presume independence. And then we want a heuristic argument, which is an object that we feed to a heuristic estimator to be like a list of ways in which the presumption of independence is false. And like actually you should be tracking the correlation or maybe higher order analogs of between various quantities. So we can imagine that, for example, by default, given a times b, your heuristic estimator will estimate expectation of a times b as expectation of a times expectation of b.

And then you can feed it a heuristic argument, which is like could be of the form like a actually in B or correlated or like, hey, actually you should track the expectation of a times b, which will make your heuristic estimator like more exact and calculate expectation of a times b as maybe expectation of a times expectation of b plus the covariance between a and b, which is the correct answer. And then we want to be able to do this for everything, I guess, is the simple answer there. So we want to be able to say, given an arbitrary neural net, we have some default guess at the neural net, which is maybe that we just assume that everything is independent of everything else. So we have, we want to default guess for like the expectation of the neural net on some compact representation of the distribution, which we often call like mean propagation, where you just take the means of everything.

And then when you multiply two quantities, you assume that the expectation of the product is the product of the expectations. And you just like do this throughout the entire neural net. Yeah. And this is going to be probably pretty good for randomly initialized neural nets, because randomly initialized neural nets like in fact, you don't have correlations that like go one way or the other.

And then you have to add the relus. That's a bit complicated. Let's assume for now there are no relus. And instead of relus, we just square things.

And then it's kind of more clear what to do. But again, your guess will be very bad because like if you have an expectation zero thing and then you square it, you're going to be like, well, the expectation of the square is going to be the product of the expectations. And so it's probably zero. Yeah.

But actually it's not probably zero because like most things have some amount of variance. Yeah. And then hopefully someone can come in ideally we'll have a heuristic estimator that does this by default. And then someone will come in with a sort of list of ways in which this presumption of independence is not very good.

For example, the square of things is often positive or like things often have variance and then we'll be able to sort of add this to our estimate and we'll be able to do like a more refined version of mean propagation where you keep track of like various conferences between things and higher order analogs of. And then hopefully we'll be able to do that. And I think there's a bunch of follow up questions, which is like, why is this useful? Why do you think this is possible?

Yeah, maybe I'm happy to go in the order that you think is best. Sure. So first of all, so my understanding is that this is related to the mechanism normally detection paradigm where I think the thing is supposed to be that like a heuristic argument is a mechanism or you know, it's playing the role of a mechanism. Is that right?

I think it's more accurate to think of heuristic arguments as like lists of mechanisms. I think like that is also not quite right. And the entire paradigm is like a bit not or like the words are not good because I think there's going to be no such thing as like one mechanism as distinct from other mechanisms. I just think like it's going to be an entire layer mess of like different mechanisms constantly interacting with each other, etc.

Right. Or it's like kind of hard to point to like any computer program and be like, there are seven distinct mechanisms for why the program is behaving as it is. There's like one thing and then it splits into two things and then like interacts with a third thing. And so you probably won't have this like list of distinct mechanisms.

But the idea is that a heuristic argument is like a set of mechanisms or like a set of mechanisms plus ways that they relate to each other, etc, etc. Yeah. And the hope is that like this is the kind of object that will need to be able to do mechanistic anomaly detection. Yeah.

Like like the old arguments for why your network is outputting be nice is different from the new argument for why your network is outputting be nice. Then you should be like as a way just if there were different mechanisms, like something like that. Yeah. Or the hope is to just use the heuristic estimator plus heuristic argument in like all of the schemes that I was describing previously, like you have a heuristic argument for why your model is behaving the way it is or like it.

Your heuristic argument explains like 99.9% of the variance of your model during training. And then you ask whether or not like there exists any heuristic argument that explains 99.9% of the variance of your model doing training, but like does not explain this particular data point off distribution. And then like if that ever happens, then you're like, this data point was using like a part of the model only responsible for like one in 1000 parts of its variance during training. That's kind of weird.

No good. Right. Yeah, I guess, um, and this is actually interesting because, I know one one thing that I was thinking of, one thing about this is like in physics, you can often use these energy arguments, right? So here's a classic energy argument.

Um, you have some ramp, right? You have a ball at the, like it's resting on the top of the ramp. And for convenience sake, like this ball, it's actually just like infinitely, like it's a point particle. Yeah.

It's like got zero, zero radius. So you put it at the top of the ramp and then you let go. And then the bottom of the ramp is like horizontal. And at the end, like the ball is traveling at the bottom of the ramp and you ask, like, okay, how fast is the ball going at the bottom of the ramp?

Yeah. And like, there's this way you could argue it, which is like, well, you know, the height between the top of the ramp and the bottom of the ramp is this much. And so initially, people had this like gravitational potential energy that used up by like moving down and at the end, like the ball just has like kinetic energy, which is just its velocity and then you're like, well, this is what a vehicle because energy is conserved. And then you like, you know, back out the velocity of the ball.

And like the interesting thing about this argument is that it doesn't actually rely on the shape of the ramp. Yeah. Like, like, like the, the ball could do like loop de loops in the middle and like, uh, bounce around, you know, bounce off a bunch of things and like, you'll look at the same answer. It's like there are like a bunch of mechanisms that correspond to this argument of energy conservation.

Yeah. But it seems like at some level, like, as long as like, you can have this argument that energy got conserved, that's qualitatively different, different from arguments where like, uh, I took the ball and then put it at the bottom of the ramp and then gave it the right amount of velocity. Yeah. Yeah.

I don't know. That's not really a question. So you have the choice to react to that or not. Yeah.

So I think we often consider examples like this from physics. And the hope is that like maybe more abstractly, there's like a set of approximations that people often make when solving simple physics problems, like there's no air resistance, things that are point masses, there's no friction, et cetera, et cetera. Yeah. And the hope is that these all correspond to like uses of the presumption of independence.

This is simplest for the ideal gas law, which is like where the presumption of independence when you're making, when using the ideal gas law is like the like particles, their like position is randomly distributed inside the volume, like they don't interact with each other. Yeah. Like particles are independent of each other. Um, they have no electrostatic forces on each other and they have no volume also.

And it's not immediately obvious to me what uses of the presumption of independence corresponds to no friction. I mean, I think it's not because. So if you think about like no friction or point particle in the ramp example, right? Yeah.

If you add in those assumptions, like those like systematically change that answer, or I don't know, I guess like, like those can only ever make your predicted velocity go down. That's like never like increase your predicted velocity because like, you know, energy gets leaked to friction or because like part of your energy is like making rotate instead of like making, you have a linear velocity and that strikes me as kind of different from other cases where like, like if things can be correlated, well, they can be correlated in ways that make number bigger or ways that make numbers smaller. Yeah. Usually, except for the case of like you square something and like, like in that case, when you add the covariance, pre-next that like always makes the expected square bigger.

Yeah. So I think there are going to be cases in general where adding more stuff to your artistic argument will like predictably make the answer go one way or the other. Because you like looked at the structure of the system in question before like thinking about what heuristic arguments to add. I think like there are ways of making like one presumption of independence is like relative to the ball's center of mass, the like position of the various bits of the ball is like independent or something, whereas if balls are actually rotating or like the velocity of the bits of the ball is independent, right, right, or like zero, maybe, but actually balls rotate sometimes or like actually don't know about the friction one.

I guess balls don't have that much friction, but it's like, you can assume that the like bits of the ball don't exert any force on like the bits of the ramp or whatever. Yeah. Or you could imagine like maybe the like maybe the ball rubbing against the ramp goes to the ramp to push the ball even harder. Maybe I think that's hopefully not going to be of valid use of proportion of independence.

I'm not quite sure. Yeah. Or I guess I'm just like it could slow the ball down or it could speed the ball up and like if you were truly looking at it, you'd be like, who knows what's going to happen when you add this interaction term. In fact, like modeling friction is actually kind of tricky.

Like it's you get told like friction, but like, wait, what is friction? Like, yeah. But yeah, I think these are the kinds of things where heuristic estimates are hopefully quite useful or like there's some intuitive question or problem, which is like, there's a ball at the top of the ramp. What is it?

So the last is going to be at the bottom of the ramp and oftentimes the actual answer or like you the actual answer is like, I don't know. There's a trillion factors that play. Yeah. However, you can make this energy argument that's like a pretty good guess in a wide random circumstances and you're like never going to be able to prove basically that the velocity of the ball is going to be a certain thing at the bottom.

I guess prove is kind of complicated when you're talking about the physical room. But if you suppose that you have like a computer simulation with like all the little particles interacting with each other, basically the only way that you're going to prove that the ball ends up at the bottom with a certain velocity is like, they're exhaustively run the entire simulation forwards and like check at the end, what its velocity actually is. However, there's this like kind of reasoning that seems like intuitively very valid, which is like, assume the air doesn't matter, assume the friction doesn't matter. Just calculate the energy into that argument that we sort of want to be able to capture and formalize in this concept of a characteristic estimator.

And then the heuristic argument will correspond to like consider the energy. And then maybe if the friction is actually maybe if there's like lots of wind, then in fact, the air resistance on the ball is non negligible. And then you can add something to your history argument, which is like, also, you got to consider the fact that the wind pushes the ball a little bit. And then your SMO will get more accurate over time.

And hopefully it'll be a big good time. I don't know. Yeah. Hopefully it'll work.

And interesting. Like, yeah, the wind pushes the ball is saying that like the interactions between the wind of the ball are not serimine or like there's some variance or something. One should notice these things. Yeah.

And so hopefully we'll be able to do this for like everything, to do it for like all the physics examples and there's a set of math examples that I'm happy to talk about. And then obviously the application we truly care about is the neural net application. Yeah. Yeah.

Frequently asked questions

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

This episode is 2 hours and 5 minutes long.

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

This episode was published on July 27, 2023.

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.