# Conservative Agency with Multiple Stakeholders

Here are the slides for a talk I just gave at CHAI's 2021 workshop. Thanks to Andrew Critch for prompting me to flesh out this idea.

The first part of my talk summarized my existing results on avoiding negative side effects by making the agent "act conservatively." The second part shows how this helps facilitate iterated negotiation and increase gains from trade in the multi-stakeholder setting. 

1: Existing work on side effects
================================

![](https://39669.cdn.cke-cs.com/rQvD3VnunXZu34m86e5f/images/5d8db03fe692d0a310f42ec0c249a6b2be892ea6e84ec762.png)

Agents only care about the parts of the environment relevant to their specified reward function.

![](https://39669.cdn.cke-cs.com/rQvD3VnunXZu34m86e5f/images/11973d84ffe3b4c8b56ebfe90261e336e126ad93cdda39a5.png)

We *somehow* want an agent which is "conservative" and "doesn't make much of a mess." 

![](https://39669.cdn.cke-cs.com/rQvD3VnunXZu34m86e5f/images/19247989a8c519fbc27fc9d100129444d4ca2f86968a9a8b.png)

AUP penalizes the agent for changing its ability to achieve a wide range of goals. Even though we can't specify our "true objective" to the agent, we hope that the agent stays able to do the right thing, as a result of staying able to do many things.

![](https://39669.cdn.cke-cs.com/rQvD3VnunXZu34m86e5f/images/27b61d7c2b20d763836e0f4205fc5cb0b043d8c999d9513b.png)

We first demonstrated that AUP avoids side effects in tiny tabular domains.

![](https://39669.cdn.cke-cs.com/rQvD3VnunXZu34m86e5f/images/2b563e34fa6fa1f80fcf5992515e3911668f03e0297e547b.png)

Conway's *Game of Life* has simple, local dynamics which add up to complex long-term consequences.

![](https://39669.cdn.cke-cs.com/rQvD3VnunXZu34m86e5f/images/bc36232e143377cc3fb23ec0eaf31d162c17fa41698f8356.png)

*SafeLife* turns the *Game of Life* into an actual game, adding an agent and many unique cell types. Crucially, there are fragile green cell patterns which most policies plow through and irreversibly shatter. We want the low-impact agent to avoid them whenever possible, *without* telling it what in particular it shouldn't do. We want the agent to avoid disrupting green cell patterns, without telling it directly to not disrupt green cell patterns. AUP pulls this off.

![](https://39669.cdn.cke-cs.com/rQvD3VnunXZu34m86e5f/images/ec7027afd67e6d8d0d76cdf6f6f0ce4f1ca66561460c376e.png)

We learn the AUP policy in 3 steps. Step one: the agent learns to encode its observations (the game screen) with just one real number. This lets us learn an auxiliary environmental goal unsupervised.

![](https://39669.cdn.cke-cs.com/rQvD3VnunXZu34m86e5f/images/8e06d19568bf8cf2aa3f1ae7cb68237f739e7e8526d16e69.png)

Step two: we train the agent to optimize this encoder-reward function "goal"; in particular, the network learns to predict the values of different actions.

![](https://39669.cdn.cke-cs.com/rQvD3VnunXZu34m86e5f/images/ceedff3b01f8e4dd70c483030f9855e623643aa85c40b226.png)

Step three: we're done! We have the AUP reward function. 

Summary of results: [AUP does very well.](https://avoiding-side-effects.github.io/)

*   I expect AUP to further scale to high-dimensional embodied tasks
    *   Avoiding making mess on e.g. factory floor
*   Expect that physically distant side effects harder for AUP to detect
    *   Less probable that distant effects show up in the agent's value functions for its auxiliary goals in the penalty terms

2: Fostering repeated negotiation over time
===========================================

I think of AUP as addressing the single-principal (AI designer) / single-agent (AI agent) case. What about the multi/single case?

![](https://39669.cdn.cke-cs.com/rQvD3VnunXZu34m86e5f/images/41b1a2924d3be8196845296b9d719eb0a14dfb72ddc63326.png)

In this setting, negotiated agent policies usually destroy option value.

![](https://lh6.googleusercontent.com/lxOMfGe-uDlYALnWUDSeyMWMVJQQ-3tKJdfbZ1z1tZxMQqBDwgwGj3v3L380brypRwxAZ42LIJdpiAm3hMtbdJaQCNvfhSrhLurftO_FtDs8DE5eeZfcZQx9krtESwjAlTFuvJXKHD0)

![](https://lh5.googleusercontent.com/yPvWhqkDdASjqIubLPkiadhDX2Tp2knl3BSYh6Ssw1NMQAofWUDUVxk9Q-VVKpi0uwrnM9ctMaBCqAzX61jcO8qq60rpZ3wYUdDT6KcJA5PyXCS1SNB7nRryvNWmH2elD3LH5oyXbPY)

Optimal actions when $\theta>\frac{1}{2}$.

![](https://lh3.googleusercontent.com/O-WcaeE8FOMR397myHbv6f8GyqaGhTgB9RZ6Xox3sTRtuEfvVEGTSvaCRINdx4QmT4aDnk5khT7k-mUf7TpirfZF8oVJVixWIBkGE-3wE0dY6WFrnyZ5w-5LdlYk-Oea77M4w_3nAqc)

Optimal actions when $\theta<\frac{1}{2}$.

![](https://lh4.googleusercontent.com/Xix6MA7TflBtX3TgOufh6Uu8NtbVoruN8mFN8L19N2CsUWIS8eBzZDBdtklv4Vg3F2Dw7WaG5If8diTEB-4Gn8cDwRMAWcm2XXsgm34PO_V7on3bIFh6XGJaHsptjsHC2ptM_g4Eqag)

Optimal actions when $\theta=\frac{1}{2}$.

This might be OK if the interaction is one-off: the agent's production possibilities frontier is fairly limited, and it usually specializes in one beverage or the other. 

But interactions are rarely one-off: there are often opportunities for later trades and renegotiations as the principals gain resources or change their minds about what they want.

Concretely, imagine the principals are playing a game of their own.

![](https://39669.cdn.cke-cs.com/rQvD3VnunXZu34m86e5f/images/b54a0b7ddc089960a2a5ae1035ddf99beb74a154ddbe2f55.png)

![](https://39669.cdn.cke-cs.com/rQvD3VnunXZu34m86e5f/images/5d52ab1d3ba4d05d08be7de2f50b3ef0779c812f2cc23d87.png)

![](https://39669.cdn.cke-cs.com/rQvD3VnunXZu34m86e5f/images/4b77c2d3940413257bd7ee175cdc0804555877a1a7f553aa.png)

![](https://39669.cdn.cke-cs.com/rQvD3VnunXZu34m86e5f/images/b02a85f9bec27245725211e667061d61fc401fb75fee59bd.png)

MP-AUP is my first stab at solving this problem without modelling the joint game. In this agent production game, MP-AUP gets the agent to stay put until it is corrected (i.e. the agent is given a new reward function, after which it computes a new policy).

We can motivate the MP-AUP objective with an analogous situation. Imagine the agent starts off with uncertainty about what objective it should optimize, and the agent reduces its uncertainty over time. This is modelled using the 'assistance game' framework, of which [Cooperative Inverse Reinforcement Learning](https://papers.nips.cc/paper/6420-cooperative-inverse-reinforcement-learning) is one example. (The assistance game paper has yet to be publicly released, but I think it's quite good!)

![](https://lh6.googleusercontent.com/fFseYaVK8HgLfDCW6IjafbZpy3JPurMtVidU8F8i2M1E4ZoHWYuzIOb_G1ffMhQrJHfy-DFJr1hIjDqdMkBkM-S0dBzSKAGJZS1_ySkbM2XlP3qI8f5UPgMReK7g5Rk_EWg9oRtPSwk)

Assistance games are a certain kind of partially observable Markov decision process (POMDP), and they're solved by policies which maximize the agent's expected *true* reward. So once the agent is certain of the true objective, it should just optimize that. But what about before then? 

![](https://lh6.googleusercontent.com/T2VVU235ZaivjCGyw3h9JbyBHwHQw7Dx2hdKK6mw0euDTXsWd4CVqzAa-uNRr7ZsalMxNt-3Wu8MIb_-bgU3-UKROS-wZsRMTqUMoAj-rtXuSIuwuScONnaVnB6AvnpyQiDKHD0lHEk)

This is suggestive, but the assumptions don't perfectly line up with our use case (reward uncertainty isn't obviously equivalent to optimizing a mixture utility function per Harsanyi). I'm interested in more directly axiomatically motivating MP-AUP as (approximately) solving a certain class of joint principal/agent games under certain renegotiation assumptions, or (in the negative case) understanding how it falls short.

![](https://39669.cdn.cke-cs.com/rQvD3VnunXZu34m86e5f/images/77f188ecfc4f890ee3b3f2e39f03bbf81ccd68572cdaadd7.png)

Here are some problems that MP-AUP doesn't address:

*   Multi-principal/multi-agent: even if agent A *can* make tea, that doesn’t mean agent *A* will let agent *B* make tea.
*   Specifying individual principal objectives
*   Ensuring that agent remains corrigible to principals - if MP-AUP agents remain able to act in the interest of each principal, that means nothing if we can no longer correct the agent so that it actually *pursues* those interests.

Furthermore, it seems plausible to me that MP-AUP helps pretty well in the multiple-principal/single-agent case, without much more work than normal AUP requires. However, I think there's a good chance I haven't thought of some crucial considerations which make it fail or which make it less good. In particular, I haven't thought much about the $n>2$ principal case.

Conclusion
==========

I'd be excited to see more work on this, but I don't currently plan to do it myself. I've only thought about this idea for <20 hours over the last few weeks, so there are probably many low-hanging fruits and important questions to ask. AUP and MP-AUP seem to tackle similar problems, in that they both (aim to) incentivize the agent to preserve its ability to change course and pursue a range of different tasks.