tl;dr: if an agent has a biased learning process, it may choose actions that are worse (with certainty) for every possible reward function it could be learning.
An agent learns its own reward function if there is a set R of possible reward functions, and there is a learning process P that maps world-histories (and policies) to distributions over R. Thus by interacting with the environment and choosing its own policies, the agent can learn which is the correct reward function it should be maximising.
Given a policy π, a history h, an environment μ, and a reward R, we can compute the expected probability of R:
EμπP(R|h).
Then a learning process is unbiased if that expression is independent of π, and biased otherwise. Biased processes are less desirable, as they allow the agent to manipulate the process through its choice of policy.
Simple biased learning process
The most trivial example of a biased learning process is an agent that completely determins its reward by its actions.
Let R={R0,R1}, let the agent only act once with two actions available, {a0,a1}, (hence a choice of “policy” is a choice of action), and set
P(R0|a0)=P(R1|a1)=1.
Thus the agent can simply choose its reward function through its actions.
Note that some designs are a bit more sophisticated, and don’t allow the agent to choose its reward function directly through its actions. But this doesn’t matter, if the reward function is a consequence of anything that is a predictable consequence of the agent’s actions (eg if the agent can trick/coerce/manipulate a human into saying “yes” or “no”, and if P is determined by the human’s response, it doesn’t matter that P is not defined directly through the agent’s actions: it is defined indirectly through them).
[Note that all P that involve learning about external facts are unbiased learning processes, so it’s not as if unbiased means trivial]
Strictly dominated behaviour
Then an agent with a biased learning process that wants to maximise the expectation of the true reward, can sometimes follow strictly dominated policies.
That means that there is are policies π0 and π1, such that for all histories hi possible given πi, and all reward function R∈R,
R(h1)>R(h0).
And yet the agent will still choose π0 to maximise reward.
For example, with P and R defined as above, define R0 and R1 to be:
a0a1R023R101
Thus a1 is always the better action, for both R0 and for R1; it is strictly dominant. However, since ai also determines which reward function is correct, the possible rewards the agent gets are the two bold numbers in the table: 2, by choosing a0 and hence making R0 the correct reward function, and 1, by choosing a1 and hence making R1 the correct reward function.
Then in order to maximise reward, the agent will choose the strictly dominated policy/action a0.
Unbiased learning
It’s possible to prove that if P is unbiased, then this behaviour won’t occur, but doing so involves introducing a bit more definition and machinery that presented here, so I’ll defer this to my forthcoming paper.
Note on expected dominance
[Reading the following is not relevant to understanding the main point of this post]
The dominant policy is defined so that for all R∈R, R(h1)>R(h0) for all histories hi, possible given πi.
We could instead talk about the expected reward given πi. But in fact, it makes sense to choose policies which are strictly dominated in the expected reward sense.
For example, let π∅ be a policy that does nothing (all rewards stay at 0), and let πP be the policy that first checks which of R0 and R1 is correct (for a given P) and then maximises the correct one. If Ri is maximised, it goes to 1, while the other reward will go to −2.
Assume that the probability of either R0 or R1 being correct is 1/2. Then it’s clear that πP is dominated in expectation by π∅, since
Eμπ∅Ri=0,
EμπPRi=1/2(1)+1/2(−2)=−1/2.
Yet πP is clearly the right thing to do, since it allows us to maximise the correct reward (Ri is only negative in worlds where it is not the correct reward).
So an unbiased agent can still choose a policy that is worse for every reward in expectation, if it’s confident that the (currently unknown) correct reward will get maximised more by this policy.
Why we want unbiased learning processes
Crossposted at Lesserwrong.
tl;dr: if an agent has a biased learning process, it may choose actions that are worse (with certainty) for every possible reward function it could be learning.
An agent learns its own reward function if there is a set R of possible reward functions, and there is a learning process P that maps world-histories (and policies) to distributions over R. Thus by interacting with the environment and choosing its own policies, the agent can learn which is the correct reward function it should be maximising.
Given a policy π, a history h, an environment μ, and a reward R, we can compute the expected probability of
R:
EμπP(R|h).
Then a learning process is unbiased if that expression is independent of π, and biased otherwise. Biased processes are less desirable, as they allow the agent to manipulate the process through its choice of policy.
Simple biased learning process
The most trivial example of a biased learning process is an agent that completely determins its reward by its actions. Let R={R0,R1}, let the agent only act once with two actions available, {a0,a1}, (hence a choice of “policy” is a choice of action), and set
P(R0|a0)=P(R1|a1)=1.
Thus the agent can simply choose its reward function through its actions.
Note that some designs are a bit more sophisticated, and don’t allow the agent to choose its reward function directly through its actions. But this doesn’t matter, if the reward function is a consequence of anything that is a predictable consequence of the agent’s actions (eg if the agent can trick/coerce/manipulate a human into saying “yes” or “no”, and if P is determined by the human’s response, it doesn’t matter that P is not defined directly through the agent’s actions: it is defined indirectly through them).
[Note that all P that involve learning about external facts are unbiased learning processes, so it’s not as if unbiased means trivial]
Strictly dominated behaviour
Then an agent with a biased learning process that wants to maximise the expectation of the true reward, can sometimes follow strictly dominated policies. That means that there is are policies π0 and π1, such that for all histories hi possible given πi, and all reward function R∈R,
R(h1)>R(h0).
And yet the agent will still choose π0 to maximise reward.
For example, with P and R defined as above, define R0 and R1 to be:
a0a1R023R101
Thus a1 is always the better action, for both R0 and for R1; it is strictly dominant. However, since
ai also determines which reward function is correct, the possible rewards the agent gets are the two bold numbers in the table: 2, by choosing a0 and hence making R0 the correct reward function, and 1, by choosing a1 and hence making R1 the correct reward function.
Then in order to maximise reward, the agent will choose the strictly dominated policy/action a0.
Unbiased learning
It’s possible to prove that if P is unbiased, then this behaviour won’t occur, but doing so involves introducing a bit more definition and machinery that presented here, so I’ll defer this to my forthcoming paper.
Note on expected dominance
[Reading the following is not relevant to understanding the main point of this post]
The dominant policy is defined so that for all R∈R, R(h1)>R(h0) for all histories hi, possible given πi.
We could instead talk about the expected reward given πi. But in fact, it makes sense to choose policies which are strictly dominated in the expected reward sense.
For example, let π∅ be a policy that does nothing (all rewards stay at 0), and let πP be the policy that first checks which of R0 and R1 is correct (for a given P) and then maximises the correct one. If Ri is maximised, it goes to 1, while the other reward will go to −2.
Assume that the probability of either R0 or R1 being correct is 1/2. Then it’s clear that πP is dominated in expectation by π∅, since
Eμπ∅Ri=0,
EμπPRi=1/2(1)+1/2(−2)=−1/2.
Yet πP is clearly the right thing to do, since it allows us to maximise the correct reward (Ri is only negative in worlds where it is not the correct reward).
So an unbiased agent can still choose a policy that is worse for every reward in expectation, if it’s confident that the (currently unknown) correct reward will get maximised more by this policy.