TIL The Goodhart's Law: Any observed statistical regularity will tend to collapse once pressure is placed upon it for control purposes.

3 years ago by nodimetotie to c/til

load all comments
BJHanssen 139 points 3 years ago

Alternative (and generally easier to understand) formulation: Once a measure becomes a target, it ceases to be a good measure.

See: grades, GDP, workplace metrics...

path: 0 4392008, hotness: undefined, score: 139, children: 28
WhatAmLemmy 66 points 3 years ago

Yeah. OP's overly complicated explanation doesn't convey the reason why this happens, which is really kinda just human psychology. People are probably thinking it's like observability in quantum mechanics or some shit.

Goodhart's Law Example:

  1. App has poor testing and low quality. New bugs are introduced weekly. Customers complain.
  2. Management sets a test coverage KPI of 90% for the apps codebase.
  3. Dev team focuses on tests that hit as many lines of code as possible; NOT on requirements, business logic, or anything that would improve quality, or prevent bugs.
  4. Quality does not improve because KPI was an arbitrary statistic that holds no value in isolation. Productivity drops because dev team wasted hundreds of hours writing useless tests to achieve KPI. Codebase worse, abd less maintainable. Company wasted millions of dollars. Customers still not happy. Devs hate their lives.
path: 0 4392008 4394224, hotness: undefined, score: 66, children: 16
Riccosuave 15 points 3 years ago

It sounds like this is an example you chose from first hand experience. If so, I'm very sorry. That sounds incredibly frustrating.

path: 0 4392008 4394224 4394399, hotness: undefined, score: 15, children: 2
ericbomb 6 points 3 years ago

I never heard of this before, but I now know the word to describe exercise problems!

Body builders who are judged by how bulging their muscles are feel like garbage despite supposedly being "peak".

People with high muscle mass or tall being screwed over by BMI targets.

People who are told weight indicates health ignore everything else in exchange for lowering calories.

Even in high school I remember how they would judge you based on like how many push ups you could do... no one who did a ton did proper push ups. Which led to them not helping at all as actual exercise, and even possibly leading to injury.

Heck, we can even use this for stupid Dog Shows, where because they measure specific things for the "goodness" of the dog, they screw over the dog in every way imaginable that isn't being judged.

This is a good law to know. I like knowing this law. It's sad how often it's used, but it's good to know.

path: 0 4392008 4394224 4420286, hotness: undefined, score: 6, children: 2
agent_flounder 3 points 3 years ago

A big part of it seems to be manipulation of the results? So, like, devs writing tests for more parts of the code base, but ones that are written to always pass.

path: 0 4392008 4394224 4402305, hotness: undefined, score: 3, children: 4
Steeve 3 points 3 years ago

People are probably thinking it's like observability in quantum mechanics or some shit.

Lol I really don't think anyone was thinking that

path: 0 4392008 4394224 4408706, hotness: undefined, score: 3, children: 3
orrk 1 point 3 years ago

ya, code testing doesn't actually increase code complexity, nor worsen the code base, and tends to actually reduce and avoid bugs

path: 0 4392008 4394224 4556720, hotness: undefined, score: 1, children: 0
Chariotwheel 23 points 3 years ago

This is the first line of the linked article btw.

Goodhart's law is an adage often stated as, "When a measure becomes a target, it ceases to be a good measure".

path: 0 4392008 4393643, hotness: undefined, score: 23, children: 0
agent_flounder 10 points 3 years ago

So how does a company manage anything if they can't use measurement targets?

Like software engineering. How do you improve productivity or code quality if setting a target value for a measurement doesn't work?

path: 0 4392008 4401733, hotness: undefined, score: 10, children: 5
Moobythegoldensock 34 points 3 years ago

You don’t make your measures your targets.

Example:

“Our customers hate us. We will make our employees get a 10 on their surveys for each customer or we’ll punish them” makes the measure a target.

“Our customers hate us, so we’re going to change our shitty policies to be more consumer friendly and see how our customers respond” keeps the measure as a measure.

path: 0 4392008 4401733 4402167, hotness: undefined, score: 34, children: 1
agent_flounder 12 points 3 years ago

Ok I'm going to answer my own question because I'm too curious to wait lol

Goodhart’s Law states that “when a measure becomes a target, it ceases to be a good measure.” In other words, when we use a measure to reward performance, we provide an incentive to manipulate the measure in order to receive the reward. This can sometimes result in actions that actually reduce the effectiveness of the measured system while paradoxically improving the measurement of system performance. ... The manipulation of measures resulting from Goodhart’s Law is pervasive because direct measures of effectiveness (MOEs), which are more difficult to manipulate, are also more difficult to measure, and sometimes simply impossible to define and quantify. As a result, analysts must often settle for measures of performance (MOPs) that correlate to the desired effect of the MOE. ... These negative effects can sometimes be avoided. When they cannot, they can be identified, mitigated, and even reversed.

  • Use MOEs instead of MOPs whenever practicable and possible
  • Use the scientific method to generate new measurement data, rather than harvesting existing and possibly compromised data
  • Help customers establish authoritative and difficult-to-manipulate definitions for measures
  • Identify and avoid the use of manipulated data and data prone to manipulation
  • Use measurement data not generated by the organization being measured
  • Collect data secretly or after a measurable activity has already occurred
  • Measure all relevant system characteristics rather than just a representative few
  • Randomize the measures used over time
  • Wargame or red team potential measures

This report recommends that the organizations that employ analysts should do the following:

  • Return to the roots of operational research to focus more on direct measurements in the field
  • Answer the questions that should be answered, rather than the questions that can be answered simply because the required data are already available
  • Train analysts on MOEs, MOPs, and Goodhart’s Law and how they are interrelated
  • Make recognition of Goodhart’s Law part of the internal peer review process and part of all delivered analytical products
  • Identify and share mitigation best practices

[Source]

path: 0 4392008 4401733 4402142, hotness: undefined, score: 12, children: 2
nodimetotie 2 points 3 years ago

Thanks, yes, I saw that one, too, but I liked the emphasis on relationships. The shorter version is easier to get but it does not explain why this happens. E.g., you can observe some relationship (e.g., test results and a student's intelligence) and then you target grades. But then you have an incentive to teach to the test, which breaks down the relationship between test results and intelligence. Other people here gave great examples of relationships that can fail.

path: 0 4392008 4415567, hotness: undefined, score: 2, children: 3
fubo 4 points 3 years ago

Imagine an antivirus program that looks at a piece of code and outputs either "Yes, this is malware" or "No, this is not malware." It is not perfect, but it is pretty good.

If the malware authors have access to this program, they can test their malware with it. They can keep modifying their malware until it passes the antivirus program.

Once the antivirus people publish a function AV(code)→boolean, the malware people can use that function to make malware that the function mistakes for non-malware.

If you publish the exact metric that you promise to use to make a decision, then people who want to control your decision can use that metric to test their methods of manipulating you.

path: 0 4392008 4415567 4425524, hotness: undefined, score: 4, children: 2
til
til

@lemmy.world

login for more options
31905
1976
5696

What did you learn today? Share it with us!

We learn something new every day. This is a community dedicated to informing each other and helping to spread knowledge.

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Rules (interactive)


Rule 1- All posts must begin with TIL. Linking to a source of info is optional, but highly recommended as it helps to spark discussion.

** Posts must be about an actual fact that you have learned, but it doesn't matter if you learned it today. See Rule 6 for all exceptions.**



Rule 2- Your post subject cannot be illegal or NSFW material.

Your post subject cannot be illegal or NSFW material. You will be warned first, banned second.



Rule 3- Do not seek mental, medical and professional help here.

Do not seek mental, medical and professional help here. Breaking this rule will not get you or your post removed, but it will put you at risk, and possibly in danger.



Rule 4- No self promotion or upvote-farming of any kind.

That's it.



Rule 5- No baiting or sealioning or promoting an agenda.

Posts and comments which, instead of being of an innocuous nature, are specifically intended (based on reports and in the opinion of our crack moderation team) to bait users into ideological wars on charged political topics will be removed and the authors warned - or banned - depending on severity.



Rule 6- Regarding non-TIL posts.

Provided it is about the community itself, you may post non-TIL posts using the [META] tag on your post title.



Rule 7- You can't harass or disturb other members.

If you vocally harass or discriminate against any individual member, you will be removed.

Likewise, if you are a member, sympathiser or a resemblant of a movement that is known to largely hate, mock, discriminate against, and/or want to take lives of a group of people, and you were provably vocal about your hate, then you will be banned on sight.

For further explanation, clarification and feedback about this rule, you may follow this link.



Rule 8- All comments should try to stay relevant to their parent content.

Rule 9- Reposts from other platforms are not allowed.

Let everyone have their own content.



Rule 10- Majority of bots aren't allowed to participate here.

Unless included in our Whitelist for Bots, your bot will not be allowed to participate in this community. To have your bot whitelisted, please contact the moderators for a short review.



Partnered Communities

You can view our partnered communities list by following this link. To partner with our community and be included, you are free to message the moderators or comment on a pinned post.

Community Moderation

For inquiry on becoming a moderator of this community, you may comment on the pinned post of the time, or simply shoot a message to the current moderators.

go to feed...