r/programming • • Feb 26 '18

Compiler bug? Linker bug? Windows Kernel bug.

https://randomascii.wordpress.com/2018/02/25/compiler-bug-linker-bug-windows-kernel-bug/
1.6k Upvotes

164 comments sorted by

View all comments

Show parent comments

32

u/manly_ Feb 26 '18

Its a very common issue with machine learning. Usually it applies to reinforcement learning though. The problem is that your reward mechanism must be well considered, otherwise your machine learning will optimize uniquely into what gives that reward, leading to some degenerate cases such as your example.

It’s truly the same thing with genetic algorithm. You can’t have a magic algorithm that will balance perfectly zeroing-in the perfect solution (ie: searching for the local minima) and exploration (ie: search for the global minima).

28

u/Nicksaurus Feb 26 '18

The problem is that your reward mechanism must be well considered, otherwise your machine learning will optimize uniquely into what gives that reward, leading to some degenerate cases such as your example.

This is also useful advice for anyone who ever has to interact with other humans

6

u/Kendrian Feb 26 '18

In science, this is generally the result of an "ill-posed" problem: a problem that has multiple solutions, and/or the solution varies a large amount with very small changes in input parameters. In inverse problems, this is generally controlled via regularization, which does exactly what you said - we adjust the cost function by adding some penalty to the solution that makes the problem well posed, and then optimization techniques work well again.

3

u/cyberst0rm Feb 26 '18

just like society!

2

u/grendel-khan Feb 26 '18

The problem is that your reward mechanism must be well considered, otherwise your machine learning will optimize uniquely into what gives that reward, leading to some degenerate cases such as your example.

For more, see Scott Garrabrant's taxonomy detailing four variants of Goodhart's Law.