# Goodhart's Law Causal Diagrams

![](https://lh5.googleusercontent.com/eurRQSAb3G4cAREGXaSrWQbU-r4HnLxymIKSzt4l1OKb0SQeWcdTKAmwbuw78PzH6_R8aPFJ4sRUGMarwoWW2m936ANry5mE-fP-l_svISgRbNU05R03gtcrVTGPNODDhy0xm1fm)

Goodhart's law is closely related to both [inner](https://www.alignmentforum.org/s/r9tYkB2a8Fp4DN8yB/p/FkgsxrGf3QxhfLWHG) and outer alignment problems and the principal agent problem. Understanding it better should help us solve these problems. This post is an attempt to work out a more precise, unified way of thinking about part of Goodhart’s law.

More specifically, we will interpret Goodhart's law using causal diagrams. We will introduce this framing and look at one class of situations where a Goodhart problem might arise. In future posts, we will describe a more complete categorisation of these situations and how they relate to the AI alignment problem. 

Definition of Goodhart’s law
----------------------------

The standard definition of Goodhart’s law is: “Any observed statistical regularity will tend to collapse once pressure is placed upon it for control purposes.” 

What does this mean precisely and in what ways does this happen? Let’s zoom in on each part of this definition.  

What does “Any observed statistical regularity” mean? In the language of causal diagrams, this statement can be translated as some set of causal relationships between observed and controlled variables. In the case of Goodhart’s law, one of these variables is a target (measures what you actually want), and one is a proxy (the variable you measure while optimizing for the target). There may be a complex set of connections and latent variables between the proxy, the target, and any variables under your control when taking actions. Let’s call any variable under your direct control an action variable.

Given this interpretation of “observed statistical regularity” what does “will tend to collapse once pressure is placed upon it for control purposes” mean? At a high level, it means that when an attempt is made to maximize the proxy variable by changing the action variables, then something about the relationship between the proxy and the target will (usually) change. Understanding Goodhart problems requires understanding both why this general situation comes up regularly, and the mechanics of how the problem occurs. 

Causal Diagrams
---------------

![](https://lh4.googleusercontent.com/qPNsGARmr9iikzl2xJKKOJatlya-qN9mlWJLbIcqstIIkbA59iRBXz7eOIHXTS3dO49rUVOGmhjV8rbNx8idKUOcN1epaDMghlF4CHnva__DeuonrRAW7WxF2RUN2EoVXjMz8g7p)

In this diagram, arrows are causality, and wavy line is correlation without any causal link

In this causal diagram, we have the true target goal Value, which represents the variable that we want to maximize, and four potential proxy variables (Parent, Sibling, Child and Disconnected) that are each correlated with Value. Since this is a causal diagram, each node is a random variable, and the value of a parent node “causes'' the value of the child node. For the purposes of this post, you don’t need to understand the technical definition of causality here, you only need to understand it at an intuitive level.

Let’s work through some examples to see how the causal structure framework can be applied.

**    Child proxy**

You are checking the quality of water by taking a sample and testing for a small set of common contaminants. What you want to maximize is the quality of water, so the test is a child node of the water quality. This goes wrong when the water is contaminated with something that isn’t being tested for. If the choice of chemicals to test for is under our control, then we will select a test for unlikely and irrelevant chemicals.

![](https://lh4.googleusercontent.com/bGzhjEa4Ih1XbJFvxhx6RRCLzZrXsV8O-7FuscgfWJe-htWsJm1fEk3QcPQzuWWthUAJ4gyJPbWzClua9fkrnEWLsfSCmR_OyqQ79ODV_P5YC4Qfj6N6AFj8wZPEvPkJkDjb9JSU)

**    Parent proxy**

Having more money has a causal influence on how happy you will be, so we could say money is a parent of happiness. Say our goal is to maximize our own happiness, and we decide to use [money as a proxy](https://www.lesswrong.com/posts/H25ruF4z92bisttYa/how-money-fails-to-track-value) for happiness. Then we are using a parent proxy, which will work for a little while, until we’ve saturated the ability of money to increase happiness but continue to seek money at the expense of other parents of happiness, like having free time or good relationships.

![](https://lh3.googleusercontent.com/ckAMFAf7sfeyecXoh0L64NV-c5eWSrOB9p7QrtHNsobGb5yKFkptZgHSM_43-C0mitf_M05d-xR5K5R5t0XtHeHLULgVp1ITZN7XeOEYNXy0XeroG3WTX9mg2hu94uN3iEbpny_i)

**    Disconnected proxy**

We have a new intervention for mitigating climate change: Simply [increase the number of pirates](https://towardsdatascience.com/hilarious-graphs-and-pirates-prove-that-correlation-is-not-causation-667838af4159)! The number of pirates is inversely correlated with world average temperature over the last 200 years or so. If we mistake this [correlation for causation](https://en.wikipedia.org/wiki/Correlation_does_not_imply_causation), then we might try using the number of pirates as a proxy for world temperature. This incorrect inference could be caused by p-hacking, or not taking into account the low prior probability of causal relationships between any two given variables.

![](https://lh3.googleusercontent.com/aK605kbztkm7tqTkSrCcqe0mZRARfIjNU8hkyJ6G5SR-PM3TMpR1QalVuhNyn9mlFC_w6bWK_Eh4G6TPgWT2tkiwByVRrVeNRUgQnSlFnkni60MZX6cU2Ad8-KxP__BVb8Fy-veG) 

**    Sibling proxy**

You give a job to people who pass a test. Doing well on the test is causally downstream of having the relevant skills for a job. The target in this situation is “doing the job well”, which is a child of “having the relevant skills”. So in this situation you are using a *sibling node as the proxy measure*. This could break down by the proxy having another parent that is downstream of your action variables. For instance, if knowledge about the test gets out then the correlation starts to break down, because passing the test is also causally downstream of knowing the test questions in advance.  
 

![](https://lh5.googleusercontent.com/3HXNPIvhou8P0y5TzYfK159z4UuyNX3KL1H-QuZCki2DnHwy9fsOVWxfCArowP3FEHLLgmPZPcEJN9u96cU06_hzI7xobp0CN0ICSYKSD2imz_kXZeCa1sGhQLGCyxaNFB7-rNFy)

**    Disconnected / Far away proxy**

You want to improve the economy of a country by maximizing GDP, so you find a big dataset that has lots of statistics about countries. You find every variable that you have control over, work out which ones are correlated with growth, and optimize over those. Many of these variables are causally disconnected or far away from growth. For example, maximizing the number of amusement parks won’t have the benefit you hoped for, because it has a distant relationship with GDP growth that is not fully understood.  
 

![](https://lh4.googleusercontent.com/f8MlQz07Q2QBKzi1mHtp1D-J9ahN9hyfSNg87dljr1rcuuPG0s2Y3t9e2CcQpROyJ698wVePXkOoxJk88JWkS5N3DZm8gqmbsskQxTdFTmaaXsn_evce1QzEWjjWZIkNVzAfbwDA)

Dotted line represents an unknown causal connection (or complex combination of connections), or possibly no causal relation at all.

More detailed causal diagrams
-----------------------------

The first causal diagram above is a simpler representation of a more accurate but more complex model, which looks more like this: 

![](https://lh3.googleusercontent.com/odl07V22u3ozl6C9KUl3YTM0vyNxX6MbjZuWWH2yzk_BET5ggs0NsprsM-XtlicY9DCHewY1DkbHTkTvYAjQ5LQ6CtS_H1W1gfyMOoXjD9ZupVVqPKsP4a1ezkRDWkFKIXT1pt73)

Light coloured nodes represent variables that are causally upstream or downstream of the variable Value at time 0. The variable P might be a proxy, and the variable A might be one you have direct control over. In this case, you have a parent proxy, and your actions are causally upstream of the parent.

In this diagram, there are many irrelevant background variables and latent variables and there is a different version of each variable at every timestep. Every variable has a “lightcone” of variables in the past that could influence its value, and variables in the future whose value could be influenced (the lightcone for node Value at t=0 is shown). Note that in the causal diagram your actions tend to affect things in the lightcone of the proxy variable you are aiming for. It’s important to keep this more complex diagram in mind even if drawing a simplified version, otherwise it's easy to become confused about things like variables that change over time or causal loops. Another ambiguity that this diagram helps with is that the Value you try to change has to always be in the future, and is usually a sum of value over time. 

Why do we not target value directly?
------------------------------------

Mistargeting is what we call a category of causes for Goodhart problems where the cause of the problem is a result of choosing a bad proxy. When it comes to AI alignment, we can break this down into different reasons this could happen.

*   Mistakes (missing the target)
    *   A mistake about what you value. E.g. You thought you wanted money, so you optimized for that, but you actually want lots of free time and money.
*   Deliberate approximations (hitting the target directly is too expensive or difficult) 
    *   Designer's proxy: For simplicity, efficiency or attention reasons, an AI designer specifies an AI’s goals to be a proxy for the designers’ true goals. E.g. designer chooses a standard classification loss, even though they actually care about some types of errors more than others.
    *   AI’s proxy: AI chooses to pursue a subgoal, e.g. make money to be used later. [Inner misalignment](https://www.alignmentforum.org/s/r9tYkB2a8Fp4DN8yB/p/FkgsxrGf3QxhfLWHG) is the combination of this and the pursuit of that subgoal having enough optimization power behind it and not being held in check by the surrounding AI. 

Mitigation
----------

A few strategies seem like reasonable approaches to reducing the impact of mistargeting value.

*   Actually just measure the target
    *   Even if the target is expensive to measure, it might be worth measuring it properly every now and then, and using this to validate your proxies.
*   Be careful about the identity of variables 
    *   Break up variables that might be mashed together in your world model, and experiment with adjusting your concept boundaries. This helps prevent mistakes about what you actually value.
*   Track many proxies
    *   Use multiple proxies to validate each other.
    *   Attempt to find a set of proxies that separates your action variables from your target variables. This means that your proxies will capture all the ways your actions affect the node you value. If you know precisely the relationship between the proxies and the target then (except for some additional noise) this is just as good as measuring the target variables directly and Goodhart’s law no longer applies. 
    *   At random times select from a wide set of proxy variables.
*   Reduce impact of actions
    *   Try to avoid actions that change the circumstances in unknown or complex ways, to reduce the chances of interfering with the relationships you care about.
*   Improve your model
    *   Always try to improve your model of the relationship between your proxy, your goal and your actions. This will always be done on very sparse data, because otherwise you wouldn’t be optimizing the proxy. Learning with very little data always requires good prior information.
*   Choose proxies that are expensive to interfere with
    *   This is most relevant in adversarial situations, which we mostly haven’t talked about yet. In non-adversarial situations, this corresponds to choosing proxies that are closer and more robustly linked to the target under natural change in background variables.

Sufficiently good understanding of mitigation strategies will be useful for designing inner aligned agents (by building these mitigation strategies into an agent), and outer alignment (by agent designers better understanding how to select goals and identify failure cases). **What is another approach for reducing the impact of Goodhart’s law?**

Conclusion
----------

A concrete and easy to apply understanding of Goodhart is valuable, because understanding Goodhart deeply and mitigating it is one of the most central problems for AI alignment research. We hope this causal perspective will be useful for thinking about this problem, because it unifies and clarifies a lot of thought about Goodhart problems. In two planned posts, we will further extend it by discussing scenarios where actions influence the future causal structure, scenarios where an imperfect understanding of the causal structure leads to poor generalization, and tighten the relevance of these ideas to AI Alignment.

*Core ideas for this post are from Justin Shovelain with Jeremy Gillen as the primary writer.*