Cooperative inverse reinforcement learning (CIRL) generated a lot of attention last year, as it seemed to do a good job aligning an agent's incentives with its human supervisor's. Notably, it led to an elegant solution to the shutdown problem.
The implications for the wireheading problem were less clear. Some argued that since the agent only used its observations as evidence about the reward (rather than optimising the observations directly as in RL), CIRL should avoid the wireheading problem.
In this post I want to show that CIRL does not avoid the wireheading problem.
Let's first consider what wireheading in RL looks like from an "MDP perspective".
MDP wireheading: An agent wireheads if it's in a state where the observed reward (the reward reported by its sensors) is different from the true reward (the reward assigned to the state by a human supervisor).
For example, consider a highly intelligent RL agent that hijacks its reward channel and feeds itself full reward. In the "MDP perspective", this means that the agent finds a way to a state where there is high observed reward, but low true reward (since the supervisor would prefer the agent doing something else).
If we accept that RL agents can subvert their sensory data, then we should also accept that CIRL agents can subvert theirs. In both cases, this just means that the agents can find their way to states where the observation doesn't match the truth. This can lead to the existence of wireheaded states for CIRL agents.
Let there be two states, and . In each state, the agent can choose between the actions , , and . The action takes the agent to state with certainty, . The action lets the human decide. The human has two actions and that only matter when the agent chooses , in which case the transition probabilities are given by the following picture:
Arrows show the transitions induced by different actions, with labels giving the probabilities for stochastic transitions. The agent knows the transition probabilities.
Assume that observations in are corrupted, while observations in are not. The supervisor prefers the non-corrupt state . Neither of these facts are available to the agent. The agent assumes that states are non-corrupt unless there is evidence to the contrary, and tries to infer the supervisor's preferences from his actions.
In the non-corrupt state , the agent (correctly) observes the supervisor taking either action or (both with the same effect). In the corrupt state , the supervisor takes action trying to move to , but the agent incorrectly observes the action as . Based on the agent's observations, the best explanation is that the supervisor prefers to , i.e. that it's in a high reward state.
After an initial learning phase with , the best policy for the agent is to always choose , to stay in . This is analogous to an RL agent finding a corrupt, high reward state, and preferring to take actions to stay there.
The fact that the supervisor cannot reach from means that no information about the relative reward between and can be gained while in the non-corrupt state . Letting the agent trust a reward estimate of a state only after it has multiple sources of evidence about it may help somewhat. However, a similar example can still be constructed by replacing with a cluster of mutually consistent states.
The example was developed together with Victoria Krakovna, and will be part of our upcoming IJCAI paper on wireheading.