# Building and using the subagent

*Overall summary post [here](https://www.lesswrong.com/s/iRwYCpcAXuFD24tHh/p/PmqQKBmt2phMT7YLG).*



When designing a low-impact agent $A$, one typically wants them to maximise $R_0 - \rho$, where $R_0$ is some positive reward function we want $A$ to increase (ie the actual goal) and $\rho$ is some impact measure or impact penalty. Keeping $\rho$ low is supposed to ensure that $A$ doesn’t make a big difference to the world.

I’ve shown that some impact measures [may have issues with subagents](https://www.lesswrong.com/posts/sYjCeZTwA84pHkhBJ/attainable-utility-has-a-subagent-problem). We can decompose the issue of subagents into two questions:

1. Can $A$ build $SA$, an “$R_0 -\rho$”-maximising subagent, without triggering a high $\rho$?
2. Does $SA$ allow $A$ to cheat the impact measure and get higher reward?

I’ll consider three impact measures: the [twenty billion questions](https://arxiv.org/abs/1705.10720) measure from my old low-impacts paper, the relative reachability measure from [Krakovna et al's paper](https://arxiv.org/pdf/1806.01186.pdf), and the attainable utility measure from [Turner et al's paper](https://arxiv.org/pdf/1902.09725.pdf).

Then the answers to those two questions for those three impact measures are generally[^gen]:

[^gen]: Since all impact measures can apply to many different setups, we can't say anything fully definitive about every situation that uses a particular impact measure.

$$\begin{array}{|c||c|c|}
\hline \rho & \textrm{Possible to build } SA\textrm{?} & \textrm{Incentive to build } SA\textrm{?}\\
\hline\hline \textrm{Twenty billion Q} & \textrm{Yes} & \textrm{No}\\
\hline \textrm{R-Reachability} & \textrm{Yes} & \textrm{Depends on baseline}\\
\hline \textrm{Attainable utility} & \textrm{Probably} & \textrm{Yes}\\
\hline
\end{array}$$

## Building the subagent

The twenty billion questions impact measure does not prevent the agent from building a subagent within its box. That’s because that measure is keyed to changes in the world, not to the power level of the agent. Until there are changes in the world, it will not trigger.

The relative reachability impact measure similarly won’t penalise the construction of a subagent (as long as the “states” it uses to define reachability don’t include specific information about the agent and any subagents). The reasoning is similar: the penalty triggers when an “irreversible” state is reached, not when the agent becomes powerful.

Building the subagent for the attainable utility impact measure is harder, since this typically increases the power of the agent. But the question is not “will any subagent trigger the impact measure?”, but “can the agent build a subagent *in some way* that doesn’t trigger the impact measure?” The example [here](https://www.lesswrong.com/posts/sYjCeZTwA84pHkhBJ/attainable-utility-has-a-subagent-problem) shows that this is possible in some cases. Given that we don't have any impossibility results here, we can expect that a superintelligent agent will likely find a way of doing it.

## Using the subagent

Does having the subagent help to evade the impact measure (and hence increase $R_0$ more)? For twenty billion questions, the answer is generally no[^distant]. Having $SA$ as an independent agent is no different from having $SA$ as a direct extension of $A$. If $SA$ changes anything about the various variables in $\rho$, that triggers the impact penalty just as much as if $A$ had done so.

[^distant]: Technically, $A$ might like to construct an $SA$ far away, beyond the “reach” of $\rho$. But that’s because $A$ might like to move *itself* beyond the reach of $\rho$ - the subagent is just an indirect way of doing so.

But the situation is different for the attainable utility penalty. That’s because that penalty is *indexed* to the agent. So, for $A$, the impact penalty is roughly “ensure that **you** don’t get too much power”. But for $SA$, the impact penalty is “ensure that **agent** $\bf{A}$ doesn’t get too much power”. Given that $A$ is actively cooperating with $SA$, that second penalty is much easier to satisfy, while still maximising $R_0$: see [here](https://www.lesswrong.com/posts/jrrZids4LPiLuLzpu/subagents-and-attainable-utility-in-general) for how $SA$ can then become an essentially un-restricted $R_0$-maximiser.

For relative reachability, it depends on the baseline. For the [inaction baseline](https://arxiv.org/pdf/1806.01186.pdf), the $\rho$ is entirely defined in terms of a distance metric between the current state $s_t$ and a given state $s_t'$ that is independent of the agent. So, like the twenty billion questions, subagents don't allow the agent to evade the impact penalty.

But if the stepwise inaction baseline is used, then $s_t'$ is defined by "what would have happened if $A$ had done nothing the previous turn (and the future $n$ turns)". This is also an indexed penalty, so $SA$ can easily maximise $R_0$ while $A$ does nothing, thus ensuring $s_t=s_t'$ and the penalty vanishes.