# Game Theory without Argmax [Part 1]

*Written during the SERI MATS program under the joint mentorship of* [*John Wentworth*](https://www.lesswrong.com/users/johnswentworth)*,* [*Nicholas Kees*](https://www.lesswrong.com/users/nicholaskees)*, and* [*Janus*](https://www.lesswrong.com/users/janus-1)*.*

![Create a surreal, black and white banner-like image of an agent deciding how to act in an infinitely large lattice-universe with infinitely many people. The agent should be portrayed as thoughtful and contemplative in the center of a vast, lattice-structured universe. This lattice, symbolizing infinity, should be populated with numerous small figures to represent the countless people. The image should have a surreal quality, with abstract patterns and shapes seamlessly integrated into the lattice. The panoramic, banner-style format should enhance the sense of vastness and complexity, emphasizing the enormity of the decision-making process in such an expansive and structured universe.](https://files.oaiusercontent.com/file-gdfd9Ppb5ojuaSyW92YNNQEI?se=2023-11-11T16%3A58%3A39Z&sp=r&sv=2021-08-06&sr=b&rscc=max-age%3D31536000%2C%20immutable&rscd=attachment%3B%20filename%3D485ee064-9e10-4c27-a163-dab6501c75ab.webp&sig=WTNo44fMz0RlqbuEIjOjWg/GOzm%2BR%2BslHLK1TL92xEo%3D)

Preface
=======

In classical game theory, we characterise agents by a utility function and assume that agents choose options which cause maximal utility. This is a pretty good model, but it has some conceptual and empirical limitations which are particularly troublesome for AI safety.

Higher-order game theory (HOGT) is an attempt to rebuild game theory without appealing to either utility functions or maximisation. I think Higher-Order Game Theory is cool so I'm writing a sequence on it.

*   [\[Part 1\]](https://www.lesswrong.com/posts/3ahqzpKvtqkom63cx/game-theory-without-argmax-part-1)
*   [\[Part 2\]](https://www.lesswrong.com/posts/BtZSNfAcBGQftAwxq/game-theory-without-argmax-part-2)
*   \[Part 3\]
*   ...
*   \[Part n\]

I'll try to summarise the relevant bits of the literature, present my own minor extensions, and apply HOGT to problems in AI safety

You're reading the first post! Let's get into it.

The role of argmax
==================

For each set $X$, let $\text{argmax}_{X}: (X \to \mathbb{R}) \to \mathcal{P}(X)$ be the [familiar function](https://en.wikipedia.org/wiki/Arg_max) which receives a function $u : X \to \mathbb{R}$ and produces the set of element which maximise $u$. A function like $\text{argmax}_X$ is sometimes called a [*higher-order function*](https://en.wikipedia.org/wiki/Higher-order_function) or *functional*, because it receives another function as input.

Explicitly, $\text{argmax}_X = \lambda^{u:X \to \mathbb{R}}.\{x \in X | \forall x' \in X, u(x) \geq u(x')\}$.[^ia4cfyuchia]

As you all surely know, $\text{argmax}$ plays a central role in classical game theory. Typically we interpret the set $X$ as the agent's **options,**[^toa3zxg0mrn] and the function $u : X \to \mathbb R$ as the agent's **task,** which assigns a **payoff** $u(x) \in \mathbb R$ to each option $x \in X$. We say an option $x \in X$ is **optimal** to the agent for the task $u : X \to \mathbb{R}$ whenever $x \in \text{argmax}_X(u)$. Classical game theory is governed by the assumption that agents choose optimal options in whatever task they face, where optimality strictly means utility-maximisation.

> **Definition 1 (provisional):** Let $X$ be any set of *options*. A *task* is any function $u : X \to \mathbb R$. An option $x \in X$ is *optimal* for a task $u : X \to \mathbb R$ if and only if $x \in  \text{argmax}_X(u)$.

Due to the presence of the [powerset operator](https://en.wikipedia.org/wiki/Power_set) $\mathcal{P}$ in $\text{argmax}_{X}: (X \to \mathbb{R}) \to \mathcal{P}(X)$, this model of the agent is *possibilistic* — for each task $u : X \to \mathbb{R}$, our model says which options are *possibly* chosen by agent. The model doesn't say which options are *probably* chosen by the agent — for that we'd need a function $(X \to \mathbb{R}) \to \Delta(X)$. Nor does the model say which options are *actually* chosen by the agent — for that we'd need a function $(X\to \mathbb R) \to X$.[^2cfpsvkh9oe]

| How many options are optimal for the task? | Example |
| --- | --- |
| Typically there'll be a unique optimal option. | $\\text{argmax}_\\mathbb C (\\lambda^{z \\in \\mathbb C}(1-\\|z\\|^2)) = \\{0\\}$ |
| Perhaps multiple options will be optimal. | $\\text{argmax}_\\mathbb R (\\sin) = \\{2\\pi k + \\dfrac \\pi 2 \\| k \\in \\mathbb Z\\}$ |
| Perhaps no options are optimal, i.e. every option is strictly dominated by another. | $\\text{argmax}_\\mathbb R(\\exp) = \\emptyset$ |
| Perhaps every option is optimal, i.e. the task is a constant function. | $\\text{argmax}_{\\mathbb Z} (\\lambda^{k \\in \\mathbb Z}.\\sin(\\pi \\cdot k))=\\mathbb Z$ |

**Exercise 1:** Find a set $X$ such that $\text{argmax}_X(u) = \emptyset$ for every function $u : X \to \mathbb {R}$.

* * *

Generalising the functional
===========================

The function $\text{argmax}_X$ is a particular way to turn tasks into sets of options, i.e. it has the type-signature $(X \to \mathbb{R}) \to \mathcal{P}(X)$. But there are many functions with the same type-signature (see the table below), so a natural question to ask is... What if we replace $\text{argmax}_X$ in classical game theory with an arbitrary functional $\psi : (X \to \mathbb R ) \to \mathcal P (X)$?

What we get is **higher-order game theory.**[^m3sm21yagpl] Surprisingly, we can recover many game-theoretic concepts in this more general setting. We can typically recover the original *classical* concepts from the more general *higher-order* concepts by restricting our attention to either $\psi = \text{argmax}_X$ or $\psi = \text{argmin}_X$.

So let's revise our definition —

> **Definition 2 (provisional):** Let $X$ be any set of *options*. An *optimiser* is any functional $\psi:(X \to \mathbb R) \to \mathcal{P}(X)$. A $\psi$-*task* is any function $u : X \to \mathbb R$. An option $x \in X$ is $\psi$-*optimal* for a task $u : X \to \mathbb R$ if and only if $x \in  \psi(u)$.
> 
> When clear from context, I'll just say *task* and *optimal*.

In higher-order game theory, we model the agents options with a set $X$ and model their task with a function $u : X \to \mathbb R$. But (unlike in classical game theory) we're free to model the agent's optimisation with any functional $\psi : (X \to \mathbb R) \to \mathcal P(X)$. I hope to persuade you that this additional degree of freedom is actually quite handy.[^dyz0askmdyl]

Higher-order game theory is governed by the central assumption that agents choose $\psi$-optimal options in whatever $\psi$-tasks they face, where $\psi$ is our model of the agent's optimisation. If we observe the agent choosing an option $x\in \psi(u)$ then that would be consistent with our model, and any observation of a choice $x\not \in \psi(u)$ would falsify our model.[^2wfkife2kk3]

Anyway, here is a table of some functionals and their game-theoretic interpretation —

| $\\psi : (X \\to \\mathbb{R}) \\to \\mathcal{P}(X)$ | Remarks |
| --- | --- |
| $\\text{argmin} =$$\\lambda^{u:X \\to \\mathbb{R}}. \\{x\\in X\\| \\forall x' \\in X, u(x) \\leq u(x')\\}$ | This agent will choose an option $x \\in X$ which minimises $u$. In classical game theory, this type of optimiser is typically used to model the **adversary** to the agent modelled by $\\text{argmax}$. |
| $\\text{satisfice}_s=$$\\lambda^{u:X\\to \\mathbb{R}}. \\{x \\in X\\| u(x) \\geq u(s)\\}$ | This agent will choose an option $x\\in X$ which dominates some fixed option $s \\in X$. The option $s$ is called the **anchor point**. It might represent the "default" option, or the "do nothing" option, or the "human-approved" option. According to [Herbert Simon](https://en.wikipedia.org/wiki/Satisficing), satisficing is an accurate model of human and institutional decision-making. Utility-satisficers are a kind of [mild optimiser](https://www.lesswrong.com/tag/mild-optimization), which might be a safer way to build AI than a full-blown utility-maximiser. |
| $\\text{argmax-$\\epsilon$-slack} =$$\\lambda^{u:X \\to \\mathbb{R}}. \\{x\\in X\\| \\forall x' \\in X, u(x ) +\\epsilon\\geq u(x')\\}$ | This agent will chooses an option $x \\in X$ which maximises the function $u$ up to some fixed slack $\\epsilon >0$. Such agents behave like $\\text{argmax}$ except that their utility $u(x)\\in \\mathbb{R}$ is measured with **finite precision**. |
| $\\text{better-than-average}=$$\\lambda^{u : X \\to \\mathbb{R}}. \\left\\{x \\in X \\| u(x) \\geq \\mathbb{E}_{x' \\sim \\pi} u(x')\\right\\}$ | This agent will choose an option $x \\in X$ which scores better than the average option, given that the option space is equipped with a distribution $\\pi \\in \\Delta(X)$. |
| $\\text{rock}_S = \\lambda^{u : X \\to \\mathbb{R}}. S$ | This agent will choose an option in a fixed subset $S \\subseteq X$, regardless of the task, e.g. DefectBot and CooperateBot.[^0uihcj00bue] Using $\\text{rock}_S$, we can model a non-agents as a special (degenerate) case of agents. |
| $\\text{quant}_\\epsilon =$$\\lambda^{u : X \\to \\mathbb R}. \\{ x \\in X : \\mathbb P_{x' \\sim \\pi}[u(x') \\geq u(x) ] \\leq \\epsilon\\}$ | This agent will choose an option $x \\in X$ in the top $\\epsilon$ quantile, given that the option space is equipped with a distribution $\\pi \\in \\Delta(X)$. This is the possibilistic version of [Jessica Taylor's quantiliser](https://intelligence.org/2015/11/29/new-paper-quantilizers/). Her original probabilistic version is a function $(X \\to \\mathbb R) \\to \\Delta X$, and so *wouldn't* count as an optimiser according to Definition 2.[^w1k9b62busn] |
| $\\text{satisfice}_S =$$\\lambda^{u : X \\to R}. \\{ x \\in X \\| \\forall s \\in S, u(s) \\leq u(x)\\}$ | This agent will choose an option $x \\in X$ which dominates every anchor point in $S \\subseteq X$. As special cases, when $S = X$ we get $\\text{argmax}_X$, and when $S$ is a singleton set we get Simon's satisficer mentioned before. When the set of anchor points is smaller, then the resulting optimiser is *less selective,* i.e. more options will be optimal. |
| $\\text{thresh}_\\alpha = \\lambda^{u: X \\to \\mathbb R}. \\{ x\\in X\\| u(x)\\geq \\alpha\\}$ | **Exercise 2** |
| **Exercise 3** | This agent will choose an option in the largest equivalence class, where two options are equivalent if they result in the same payoff. |

* * *

Generalising the payoff space.
==============================

Now let's generalise the payoff space to any set $R$, not only $\mathbb R$. We will think of the elements of $R$ as *payoffs* in a general sense, relaxing the assumption that the payoffs assigned to the options are real numbers. The function $u : X \to R$ describes which payoff $u(x) \in R$ would result from the agent choosing the option $x \in X$.

> **Definition 3 (provisional):** Let $X$ be any set of *options* and $R$ be any set of *payoffs*. An *optimiser* is any functional $\psi:(X \to R) \to \mathcal{P}(X)$. A $\psi$-*task* is any function $u : X \to R$. An option $x \in X$ is $\psi$-*optimal* for a task $u : X \to R$ if and only if $x \in  \psi(u)$.
> 
> This is the final version to this definition today.

This is significantly more expressive! When we are tasked with modelling a game-theoretic situation, we are can pick any set $R$ to model the agent's payoffs![^rt1dan2fei]

I'll use the notation $\mathcal{J}^\mathcal{P}(X, R)$ to denote the set of functionals $(X \to R) \to \mathcal{P}(X)$, e.g. $\text{argmax}_\mathbb Z \in \mathcal J^\mathcal P(\mathbb Z, \mathbb R)$.

Anyway, here is a table of some functionals and their game-theoretic interpretation —

| Payoff space | Remarks |
| --- | --- |
| $R = [0,1]$ | An optimiser $\\psi\\in\\mathcal{J}^\\mathcal{P}(X, [0,1])$ only needs to be well-defined for *bounded* utility functions $u : X \\to [0,1]$. |
| $R = \\mathbb{N}$ | An optimiser $\\psi\\in\\mathcal{J}^\\mathcal{P}(X, \\mathbb N)$ only needs to be well-defined for utility functions $u : X \\to \\mathbb N$. |
| $R = \\mathbb{R}\\cup\\{-\\infty, + \\infty\\}$ | An optimiser $\\psi\\in\\mathcal{J}^\\mathcal{P}(X, \\mathbb R\\cup \\{-\\infty, +\\infty\\})$ must be well-defined for *infinatary* utility functions $u : X \\to\\mathbb R \\cup \\{-\\infty, +\\infty\\}$. For example, $u(x)$ might be the expected total winnings of a gambler employing the gambling strategy $x \\in X$. The gambler themselves are modelled by an optimiser $\\psi : (X \\to \\mathbb R \\cup \\{-\\infty, +\\infty\\}) \\to \\mathcal P(X)$. This functional $\\psi$ is characterised by its attitude towards infinite expected profit/loss. |
| $R = \\Delta (\\mathbb{R})$, where $\\Delta$ is the [distribution monad](https://ncatlab.org/nlab/show/distribution+monad) on $\\text{Set}$. | An optimiser $\\psi\\in \\mathcal{J}^\\mathcal{P}(X, \\Delta \\mathbb R)$ will choose options given a *stochastic* task $u : \\Gamma \\to \\Delta\\mathbb{R}$. This is the type-signature of [risk-averse and risk-seeking maximisers](https://en.wikipedia.org/wiki/Risk_aversion) studied in behavioural microeconomics. The field of [Portfolio Theory](https://en.wikipedia.org/wiki/Modern_portfolio_theory) is (largely) the comparison of rival optimisers in $\\mathcal J^\\mathcal P (X, \\Delta \\mathbb R)$. |
| $R$ is the Levi-Civita Field, an extension of the reals with infinitesimals. | The Levi-Civita field contains infinitesimals like $\\epsilon, \\epsilon^2, 2 \\epsilon + \\epsilon^2, \\sqrt \\epsilon$ , as well as infinite values like $\\epsilon^{-1}, \\epsilon^{-2}, \\epsilon^{1/3} + \\epsilon^{-1/3}+2$. In [infinite ethics](https://www.lesswrong.com/posts/5iZTwGHv2tNfFmeDa/on-infinite-ethics), we encounter tasks $u : X \\to \\text{Levi-Civita Field}$, and we can model the infinitary ethicist by an optimiser $\\psi \\in \\mathcal J^\\mathcal P (X, \\text{Levi-Civita Field})$. **Exercise 4:** Solve infinite ethics. |
| $R = \\mathbb{R}^n$ | An optimiser $\\psi\\in\\mathcal{J}^\\mathcal{P}(X, \\mathbb R^n)$ can model different [multi-objective optimisers](https://en.wikipedia.org/wiki/Multi-objective_optimization). For example, there's an optimiser which, given multi-objective task $u:X \\to \\mathbb{R}^n$, returns those options which are maximal according to the [lexicographic ordering](https://en.wikipedia.org/wiki/Lexicographic_order), and there's another optimiser which uses the [product ordering](https://en.wikipedia.org/wiki/Product_order) instead.[^s0r0kpgn8dj] Later in this post, we'll encounter an optimiser $$in $\\mathcal J^\\mathcal P(X_1 \\times \\cdots \\times X_n, \\mathbb R)$ which returns the nash equilibria of $n$-player games, where a task for this optimiser is an $n$-by-$n$payoff matrix $u : X_1 \\times \\cdots \\times X_n \\to \\mathbb R$. The field of [cooperative bargaining](https://en.wikipedia.org/wiki/Cooperative_bargaining) is concerned with different optimisers $\\mathcal J^\\mathcal P(X +1, \\mathbb R^n)$. A bargaining task $f : (X+1) \\to \\mathbb R^n$ parameterises both the feasibility set $F = \\{ f(x) \\in \\mathbb R^n : x \\in X\\}$ and the disagreement point $d = f(\\star) \\in \\mathbb R^n$ where $1 = \\{\\star\\}$ is the singleton set. |
| Any preorder $(R, \\leq)$ | Suppose that $R$ is any set equipped with a preorder $\\leq$.[^q8755v7j5s] Then a function $u : X \\to R$ will induce a preorder $\\leq_u$ on $X$ via $x \\leq_u x' \\iff u(x) \\leq u(x')$. Let $\\text{argmax}_X\\in \\mathcal J^\\mathcal P(X, R)$ be the optimiser which chooses the [maximal points](https://en.wikipedia.org/wiki/Maximal_and_minimal_elements) of $\\leq_u$, i.e. options which aren't strictly dominated by any other options. Explicitly $\\lambda^{u : X \\to R}. \\{x \\in X: \\forall x' \\in X. u(x)\\leq u(x')\\implies u(x') \\leq u(x)\\}$ If $\\leq$ isn't total (i.e. the agent has incomplete preferences over the payoffs) then the resulting optimiser $\\text{argmax}_X$ is less selective (i.e. more options are optimal). In the extreme case, where no options are comparable, then $\\text{argmax}_X$ might choose any option.[^96jcy709w6j] **Exercise 5:** Which optimisers $\\psi \\in\\mathcal J^\\mathcal P(X, \\mathbb R)$ defined in the previous table can be generalised to any preorder $(R, \\leq)$? |
| $R = X$, where $X$ is the option space of the agent. | Occasionally the same set $X$ will serve as both the option space and the payoff space. In this case, a task $u : X\\to X$ represents some transformation of the underlying option space. There's an optimiser $\\text{fix}: \\mathcal J^ \\mathcal P (X, X)$, which choices options which are fixed-points of $u: X\\to X$. That is, $\\text{fix} = \\lambda^{u: X \\to X}. \\{ x\\in X\\| u(x) = x\\}$. We can use $\\text{fix}$ to model a **conservative agent** who chooses options which remain untransformed by the task. Note that this optimiser is *not* consequentialist, because the optimality of an option is not determined by its payoff alone. For example, $0 \\in \\text{fix}_\\mathbb R(\\sin)$ but $\\pi \\not \\in \\text{fix}_\\mathbb R (\\sin)$, despite the fact that $\\sin(0) = \\sin(\\pi)$. |

* * *

Subjective vs objective optimisers
==================================

It's standard practice, when modelling agents and their environments, to use payoff spaces like $\mathbb R$, $\mathbb{R}^n$, $\Delta(\mathbb{R})$, etc, but I think this can be misleading.

Consider the following situation —

> A robot is choosing an option from a set $X$. There's a function $f : X\to W^+$ such that, were the robot to choose the option $x \in X$, then the world would end up in state $f(x) \in W^+$, where $W^+$ is something like the set of all configurations of the future light-cone.
> 
> You know the robot is maximising over all their options, but you aren't sure what the robot is maximising *for* exactly — perhaps for paperclips, perhaps for happy humans.

Now, let $p : W^+ \to \mathbb R$ be the function which counts the number of paperclips in a light-cone, and let $h : W^+ \to \mathbb R$ be the function which counts the number of happy humans.

Here's what classical game theory says about your predicament —

> The payoff space is $\mathbb R$. You know that the robot applies the optimiser $\text{argmax}_X : (X \to \mathbb R) \to \mathcal P (X)$, but you don't know whether the robot faces the task $(p \circ f): X \to \mathbb R$ or the task $(h \circ f) : X \to \mathbb R$, and hence you don't know whether the robot will choose an option $x \in \text{argmax}_X(p \circ f)$ or $x \in \text{argmax}_X(h\circ f)$.

I call this a **subjective account**, because the robot's task depends on the robot's preferences. Were the robot to have difference preferences, then they would've faced a different task, and because you don't know the robot's preferences you don't know their task.

However, by exploiting the expressivity of higher-order game theory, we can offer an **objective account** which rivals the subjective account. In the objective account, the task that the robot faces doesn't depend on the robots preferences —

> The payoff space is $W^+$ itself. You know that the robot faces the task $f : X \to W^+$ but you don't know whether the robot applies the optimiser $\text{argmax}_X(p \circ - ) : (X \to W^+) \to \mathcal P (X)$ or the optimiser $\text{argmax}_X(h \circ - ) : (X \to W^+) \to \mathcal P (X)$, and hence you don't know whether the robot will choose an option $x \in \text{argmax}_X(p \circ f)$ or $x \in \text{argmax}_X(h \circ f)$.

Notice that both accounts yield the same solution! Nonetheless, I think the objective account is nicer for four reasons. (Feel free to skip if you're convinced.)

*Disclaimer: Admittedly, the distinction between subjective accounts — where payoff spaces are stuff like* $\mathbb R$*,* $\mathbb R^n$*,* $\mathbb R \cup \{-\infty, \infty\}$*,* $\mathbb Z$*,* $\Delta([0,1]^2)$*, e.t.c. — and objective accounts — where payoff spaces are stuff like future light-cones, or brain states, or pixel configurations, e.t.c — is an informal (and somewhat metaphysical) distinction, but hopefully you can see what I'm pointing at.*

**(1) Carve nature at its joints.**
-----------------------------------

The objective account, where $R = W^+$, bares a closer structural resemblance to the physical reality. The physical robot corresponds to the functional $\psi\in \mathcal J^\mathcal P(X, W^+)$ and the physical environment corresponds to the function $u : X \to W^+$. Notably, all the information about the robot's idiosyncratic preferences is bundled up inside the functional $\psi$.

In contrast, in the subjective account, where $R = \mathbb R$, the functional $\psi \in \mathcal J^\mathcal P(X, \mathbb R)$ contains almost no substantial information about the agent itself. It suggests (if read too literally) that all agents are basically indiscernible, and they behave differently because they face different environments.

**(2) Moral antirealism.**
--------------------------

The subjective account (again, read too literally) suggests that values are [*out there in the world*](https://plato.stanford.edu/entries/moral-realism/)*,* that the environment contains entities called *utilities* which all rational agents seek, that all [conflict is disagreement](https://slatestarcodex.com/2018/01/24/conflict-vs-mistake/), that [correctness is a property of pebble heaps](https://www.lesswrong.com/s/W2fkmatEzyrmbbrDt), that [microeconomics is normative](https://journals.sagepub.com/doi/abs/10.1177/0146167204264004), and (most concerning of all) that the primary obstacle to building a safe superintelligence is [writing down a utility function](https://www.alignmentforum.org/posts/NJYmovr9ZZAyyTBwM/what-i-mean-by-alignment-is-in-large-part-about-making).

The objective account, I think, is more [moral antirealist](https://plato.stanford.edu/entries/moral-anti-realism/). It says, "The world contains only paperclips and happy humans, never *utilities*! The world contains only paperclip-maximisers and happy-human-maximisers, never *utility*-maximisers!"

**(3) Experimental independence**
---------------------------------

In the objective account, the task $f : X \to W^+$ and the optimiser $\psi : (X \to W^+) \to \mathcal P(X)$ have independent semantic meaning. At least in principle, I know how to find $f : X \to W^+$ independently of $\psi$ — namely by inspecting the **physical dynamics** of the robot's environment or inspecting the robot's **world-model**. And I know how to find $\psi : (X \to W^+) \to \mathcal P (X)$ independently of $f$ — namely by placing the robot in different physical environments and observing their choices.

By contrast, in the subjective account, the task $f : X \to \mathbb R$ and the optimiser $\psi : (X \to \mathbb R)\to \mathcal P(X)$ have no independent meaning — they are merely exist to compress the optimality condition $\psi(f)\subseteq X$. What would it even *mean* for the robot to possess the utility function $u : X \to \mathbb R$ without the presumption that they maximise utility? I've honestly no clue. And without the task $u : X\to \mathbb R$, how would I determine the robot's optimiser $\psi : (X \to \mathbb R) \to \mathcal P(X)$ experimentally? Presumably I should vary the task $u : X\to \mathbb R$, however I can't do this experimentally because $u : X\to \mathbb R$ contains the robot's preferences which is a variable outside my control.

Granted, for most historic applications of classical game theory, we do know the preferences of the agent — we already know that White wants to checkmate Black, and the consumer wants cheaper goods, and the statistician wants to accurate predictions, e.t.c — so it doesn't matter whether one sticks those preferences in the task or the optimiser. But in AI safety, a big chunk of our perplexity comes from the preferences of the agents. So it matters more that we stick those preferences in the right part of our model.

**(4) No spooky reals.**
------------------------

The subjective account seems to rely on the elements of a mysterious set called "$\mathbb R$" which is extraneous to the phenomenon under consideration. By contrast, the objective account refers only to the sets $X$ and $W^+$, where the elements of $X$ and $W^+$ are physical stuff intrinsic to the situation being modelled. Hence, higher-order game theory promises to dispense with $\mathbb R$ from game theory, along with argmax and utility functions, ensuring the weirdness of $\mathbb R$ doesn't contaminate our game theory.[^4vkbdo288wt]

This has a computational upshot as well.

Supposes that $X=\{x_1 , \ldots, x_n\}$ and $W^+= \{w_1, \ldots , w_m\}$ are small finite sets. A task $f : X \to W^+$ can be implemented as dictionary whose keys lie $$in $X$ and whose values lie in $W^+$, which uses $n \log m$ bits. The functional $\psi : \mathcal J^\mathcal P(X, W^+)$ can be implemented as a program which receives input of type $\mathrm{ Dict[X,W]}$ and returns output $$of type $\mathrm{ List[X]}$. Easy!

In the subjective account, by contrast, the task $f : X\to \mathbb R$ requires infinite bits to specify, and the functional $\psi : \mathcal J^\mathcal P (X, \mathbb R)$ must somehow accept a representation of an arbitrary function $f : X \to \mathbb R$. Oh no! This is especially troubling for [embedded agency](https://www.lesswrong.com/s/Rm6oQRJJmhGCcLvxh), where the agent's decision theory must run on a physical substrate.

* * *

Recovering utility functions
============================

According to the **objective account**, what is fundamental about an agent is the functional $\psi : (X \to W^+) \to \mathcal P (X)$ where $W^+$ is some objective payoff, and the claim that the agent has a utility function $v: W^+ \to \mathbb R$ is understood as the claim that $\psi$ can be approximately decomposed into $\text{argmax}_X(v \circ -)$. Hence, the existence of a utility-decomposition of $\psi$ is an additional fact about the agent to be discovered, rather than an assumption that should be baked into the formalism itself.

Utility functions are an emergent property of the underlying functional.

One clue that utility functions are emergent properties is that they aren't unique! It's well-known that a utility function $v : W^+\to \mathbb R$ for an agent is only well-defined [modulo positive-affine transformation](https://en.wikipedia.org/wiki/Cardinal_utility), i.e. there is no meaningful distinction between $v: W^+ \to \mathbb R$ and $v' : W^+ \to \mathbb R$ whenever $v'= \alpha\cdot v + \beta$ for some $\alpha \in \mathbb R^+, \beta \in \mathbb R$. This fact falls immediately from the objective-first view, because $\text{argmax}_X(v\circ -)$ and $\text{argmax}_X (v' \circ -)$ are equal functionals whenever $v =\alpha \cdot v' + \beta$

Now, if we were dealing with $\text{argmax-$\epsilon$-slack}$ or $\text{thresh}_\alpha$ — instead of $\text{argmax}$ — then there *would* be a meaningful difference between some utility functions which are equivalent modulo positive-affine transformation.

Let's make this notion precise —

> **Definition 4:** Let $\psi \in \mathcal J^\mathcal P(X, W)$ be an optimiser. We say that $v : W \to \mathbb R$ is a (classical) utility function of $\psi$ if and only if $\psi = \text{argmax}_X(v \circ -)$. In general, for any $\Phi \in \mathcal J^\mathcal P(X, R)$, we say that $v : W \to R$ is a $\Phi$-utility function of $\psi$ if and only if $\psi = \Phi(v \circ -)$.

Typically, $\psi$ is some objective optimiser and $\Phi$ is some subjective optimiser. When $\Phi = \text{argmax}_X$ then we obtain the classical utility functions of an objective optimiser $\psi$, and we may obtain non-classical utility functions of the same optimiser $\psi$ by considering (e.g.) $\Phi = \text{satisfice}_s\in \mathcal J^\mathcal P(X, \mathbb R)$ or $\psi = \text{better-than-average}_\pi\in \mathcal J^\mathcal P(X, \mathbb R)$ or whatever.

Classical game theory is the study of optimisers with classical utility functions. There are some [theoretical](https://en.wikipedia.org/wiki/Von_Neumann%E2%80%93Morgenstern_utility_theorem) and empirical arguments for restricting only to such optimisers [but these arguments are probably overrated.](https://www.lesswrong.com/posts/yCuzmCsE86BTu9PfA/there-are-no-coherence-theorems) In any case, I suspect that unifying deep learning and classical game theory will require studying non-classical agents. Here's why — in the deep learning paradigm, we build agents by training a large neural network with stochastic gradient descent on tasks which fortify agentic-like behaviour. At initialisation, these neural networks aren't classical agents, and classicality emerges incrementally, probably after passing through phases of [nonclassical agency](https://www.lesswrong.com/tag/shard-theory). Therefore, if we want to account for the emergence of agency (classical or otherwise), then we need to account for the loss gradient over the entire space of optimisers $\mathcal J^\mathcal P(X, W^+)$, not merely over the subspace of $\mathcal J^\mathcal P(X, W^+)$ corresponding to classical optimisers.

* * *

Some properties of optimisers
=============================

We can define formalise various properties and operations of optimisation using arbitrary functional $\psi \in \mathcal J^\mathcal P (X, R)$.

I've included the list of examples below for illustrative purposes only —

| Property | Remarks |
| --- | --- |
| **Totality** | We'll say that an optimiser $\\psi \\in \\mathcal{J}^\\mathcal{P}(X, R)$ is **total** iff $\\psi(u) \\neq \\emptyset$ for all $u : X \\to R$. Informally, this condition states that our model of the agent never "breaks down", i.e. regardless of the task the agent faces, there's always some optimal choice. |
| **Selectivity** | We'll say that an optimiser $\\psi_1$ is **(weakly) more selective** than $\\psi_2$ if and only if $\\forall{u : X \\to R} .\\psi_1(u) \\subseteq \\psi_2(u)$. This relation defines a partial order on $\\mathcal{J}^\\mathcal{P}(X, R)$. For example, $\\text{satisfice}_A$ is more selective than $\\text{satisfice}_B$ whenever $B \\subsetneq A \\subseteq X$. Mild optimization, an approach for mitigating Goodhart's law, replaces $\\text{argmax}$ with less selective optimisers. |
| **Consequentialism** | We'll say that an optimiser $\\psi \\in \\mathcal{J}^\\mathcal{P}(X, R)$ is **consequentialist** if $\\psi = \\lambda^{u: X \\to R}.\\{x \\in X \\| u(x) \\in q(u)\\}$ for some $q : (X \\to R) \\to \\mathcal{P}(R)$.[^p8q3a20s3pj] In other words, for any task $u : X\\to R$, if $u(x) = u(x')$ then $x \\in \\psi(u) \\iff x' \\in \\psi(u)$. This condition says that, once we know the agent's task, then the only thing relevant to the optimality of a particular choice is its payoff. For example, $\\text{argmax}_X$ and$\\text{better-than-average}_\\pi$ are consequentialist, but $\\text{rock}_S$ and $\\text{fix}$ are not. This function $q$ says, for each task $u : X \\to R$, which payoffs would be acceptable to the agent, so $q = \\max$ is the quantifier for $\\psi = \\text{argmax}_X$. |
| Context-independence | We'll say that a consequentialist optimiser $\\psi = \\lambda^{u: X \\to R}.\\{x \\in X \\| u(x) \\in q(u)\\}$ is **context-independent** if $\\text{Image}(u) = \\text{Image}(u') \\implies q(u) = q(u')$. Context-independence is a stronger condition than consequentialism — this condition says that, once we know which payoffs are *achievable* in the agent's task, then the only thing relevant to the optimality of a particular option is its payoff. For example, $\\text{argmax}_X$ is context-independent, but $\\text{better-than-average}_\\pi$ is not. |
| Filtered optimisation | Suppose that $\\psi \\in \\mathcal{J}^\\mathcal{P}(X, R)$ is an optimiser, and $X_\\text{legal} \\subseteq X$is a subset of the options which are **safe/valid/legal.** Then we can define another optimiser $\\psi' = \\lambda^{u : X \\to R}. X_{\\text{legal}} \\cap \\psi(u) \\in\\mathcal{J}^\\mathcal{P}(X, R)$ who always chooses options in $X_{\\text{legal}}$. This operation captures the notion of **filtering** options after the agent has applied the optimisation. For example, if $X = \\mathbb R$ and $\\psi = \\text{argmax}_\\mathbb R$ then $\\psi(\\cos) = \\{2\\pi k:k \\in \\mathbb Z\\}$, so if $X_{\\text{legal}} = [0,4\\pi]$ then $\\psi'(\\cos) = \\{0, 2\\pi, 4\\pi\\}$. |
| Constrained optimisation | The filtering operation doesn't capture what we typically mean by *optimisation within side-constraints.* For example, if we change $X_{\\text{legal}}$ to $[\\pi/4,\\pi/2]$, then we would like $$the optimiser to choose $\\pi/4$ as this maximises $\\cos$ subject to the constraint $X_{\\text{legal}}$. The filtered optimisation would produce the emptyset, as none of the options optimal to $\\text{argmax}_\\mathbb R$ are legal. Let's define constrained optimisation for an optimiser $\\psi \\in \\mathcal J^\\mathcal P(X, R)$. Suppose that there is an element $\\bot \\in R$ such that $\\bot \\in u(\\psi(u)) \\implies \\text{Im}(u) \\subseteq \\{\\bot\\}$. Informally, this means that $\\psi$ detests the payoff $\\bot \\in R$ and would never chooses an option resulting in $\\bot$ unless it must. For example, $\\text{argmax}_X \\in \\mathcal J^\\mathcal P(X, \\mathbb R \\cup \\{-\\infty, +\\infty\\})$ detests the payoff $-\\infty$. We can defined constrained optimisation as follows: $\\psi' = \\lambda^{u : X\\to R}. \\psi(u')$ where $u' :X \\to R, x \\mapsto \\begin{cases}u(x) & \\text{if $x \\in X_{\\text{legal}}$}\\\\\\bot& \\text{otherwise} \\end{cases}$ **Exercise 6:** How might we define constrained optimisation if there is no such $\\bot \\in R$? |
| **Supervision** | Maybe the set of legal options $X_{\\text{legal}}\\in \\mathcal P X$ $$depends on the task $u : X \\to R$ itself. This dependency itself corresponds to an optimiser $\\psi_{\\text{legal}} \\in \\mathcal{J}^\\mathcal{P}(X, R)$. We can define the filtered optimiser as $\\psi ' : \\lambda^{X \\to R}. \\psi_{\\text{legal}}(u) \\cap \\psi(u)$. We can define the constrained optimiser $\\psi' = \\lambda^{u : X\\to R}. \\psi(u')$ where $u' :X \\to R, x \\mapsto \\begin{cases}u(x) & \\text{if $x \\in \\psi_{\\text{legal}}(u)$}\\\\\\bot& \\text{otherwise} \\end{cases}$ The optimiser $\\psi'$ behaves like one agent $\\psi$ being supervised by another agent $\\psi_\\text{safe}$ where the mode of supervision is filtering and constraining respectively. |
| **Unanimity** | For a collection of optimisers $Z \\subseteq \\mathcal{J}^\\mathcal{P}(X, R)$, we can define a single optimiser $\\lambda^{u : X \\to R}. \\bigcap\\{\\psi(u) : \\psi \\in Z\\}$ who will only choose an option if each constituent optimiser would also choose the option, forming a [unanimous coalition](https://en.wikipedia.org/wiki/Liberum_veto) of $Z$. Dually, we can define the optimiser $\\lambda^{u : X \\to R}. \\bigcup \\{ \\psi(u) : \\psi \\in Z\\}$ forming a unilateral coalition. |
| Shards | Suppose that $f: (X \\to R) \\to \\mathcal{J}^\\mathcal P(X, R)$ assigns an optimiser $f(u) : \\mathcal{J}^\\mathcal P(X, R)$ to each task $u: X \\to R$. In terms of $f$, we can define the optimiser $\\psi = \\lambda^{u : X \\to R}. f(u)(u) :\\mathcal{J}^\\mathcal P(X, R)$ by diagonalising — i.e. $\\psi$ will match the optimiser $f(u)$ in each task $u : X \\to R$. This operation captures (somewhat) the notion of [**shards**](https://www.lesswrong.com/tag/shard-theory), or context-activated optimisation. For example, imagine an agent $\\psi : \\mathcal{J}^\\mathcal{P}(X, \\mathbb R)$ who "plays it safe" by satisficing unless they can achieve sufficiently high payoff, i.e. $f(u) = \\begin{cases}\\text{argmax}_{X} & \\text{if $\\max(u) \\geq100$}\\\\\\text{satisfice}_{s} &\\text{otherwise}\\end{cases}$ Or imagine an agent who desires cheese whenever they are sufficiently close to cheese, but $$$$otherwise desires to run around aimlessly. |

* * *

Recap
=====

*   In classical game theory, agents maximise their utility functions $u : X\to \mathbb R$, i.e. they might choose any option $x \in \text{argmax}_X(u)$.
*   In higher-order game theory, we replace the utility functions $u : X \to \mathbb R$ with an arbitrary function $u : X \to R$, called a "task", and replace $\text{argmax}_X :(X \to \mathbb R) \to \mathcal P(X)$ with an arbitrary functional $\psi : (X\to \mathbb R) \to \mathcal P(X)$ called the "optimiser". They might choose any option $x \in \psi(u)$.
*   This additional expressivity lets us include mild optimisers and multi-objective optimisers which don't crudely *maximise* utility.
*   It also lets us include *objective optimisers*, which strive for particular physical configurations, which dispenses with the concept of utility altogether.
*   We can recover utility functions as an emergent property of an objective optimiser, relative to any choice of subjective optimiser, not only to $\text{argmax}$.
*   Finally, we can define some interesting properties and operations on the optimisers $\mathcal J^\mathcal P(X, R)$ which correspond (loosely) to things that AI safety researchers care about.

* * *

Next time...
============

The next post will answer the age-old question, "What happens when two optimisers $\psi_A \in \mathcal J^\mathcal P(A, R)$ and $\psi_B \in \mathcal J^\mathcal P(B,R)$ play the simultaneous game $g : A \times B \to R$?" We know what happens when $\phi_A$ and $\psi_B$ are both utility-maximisers — the possible option-profiles are pairs $(a,b) \in A \times B$ in nash equilibrium.

[Can we really generalise the nash equilibrium to *any* pair of optimisers?](https://www.lesswrong.com/posts/BtZSNfAcBGQftAwxq/game-theory-without-argmax-part-2)

* * *

Further reading
===============

*   [A semantical approach to equilibria and rationality (2009)](https://arxiv.org/pdf/0905.3548.pdf)
*   [Selection Functions, Bar Recursion, and Backward Induction (2009)](https://www.cs.bham.ac.uk/~mhe/papers/selection-escardo-oliva.pdf)
*   [Sequential games and optimal strategies (2010)](https://royalsocietypublishing.org/doi/epdf/10.1098/rspa.2010.0471)
*   [System T and the Product of Selection Functions (2011)](https://www.cs.bham.ac.uk/~mhe/papers/csl2011.pdf)
*   [Computing Nash Equilibria of Unbounded Games (2012)](https://www.cs.bham.ac.uk/~mhe/papers/unbounded-nash-equilibria.pdf)
*   [A generalisation of Nash's theorem with higher-order functionals (2013)](https://arxiv.org/abs/1301.4845)
*   [A Compositional Approach to Economic Game Theory (2015)](https://personal.cis.strath.ac.uk/neil.ghani/papers/ghani-cgt.pdf)
*   [Higher-Order Decision Theory (2015)](https://www.cs.ox.ac.uk/people/julian.hedges/papers/decision.pdf)
*   [Higher-Order Game Theory (2015)](https://arxiv.org/pdf/1506.01002.pdf)
*   [Compositionality and String Diagrams](https://arxiv.org/pdf/1604.06061.pdf)  
    [for Game Theory (2016)](https://arxiv.org/pdf/1604.06061.pdf)
*   [Towards compositional game theory (2016)](https://www.cs.ox.ac.uk/people/julian.hedges/papers/Thesis.pdf)
*   [A Higher-order Framework for Decision Problems and Games (2018)](https://arxiv.org/pdf/1409.7411.pdf)
*   [Coalgebraic Analysis of Subgame-perfect Equilibria in Infinite Games without Discounting (2018)](https://arxiv.org/pdf/1210.4537.pdf)
*   [A first look at open games (2017)](https://julesh.com/2017/09/29/a-first-look-at-open-games/)
*   [Coherence for Lenses and Open Games (2017)](https://arxiv.org/pdf/1704.02230.pdf)
*   [Morphisms of open games (2017)](https://arxiv.org/pdf/1711.07059.pdf)
*   [Selection Equilibria of Higher-Order Games (2017)](https://www.cs.ox.ac.uk/people/julian.hedges/papers/games.pdf)
*   [Compositional game theory (2018)](https://arxiv.org/pdf/1603.04641.pdf)
*   [Are open games useful for my problem? (2019)](https://julesh.com/2019/10/13/are-open-games-useful-for-my-problem/)
*   [Compositional Game Theory with Mixed Strategies (2019)](https://www.cs.ox.ac.uk/ACT2019/preproceedings/Neil%20Ghani,%20Clemens%20Kupke,%20Alasdair%20Lambert%20and%20Fredrik%20Nordvall%20Forsberg.pdf)
*   [Sequential games and nondeterministic selection](https://arxiv.org/pdf/1811.06810.pdf)  
    [functions (2019)](https://arxiv.org/pdf/1811.06810.pdf)
*   [Compositional Game Theory, Compositionally (2020)](https://strathprints.strath.ac.uk/73674/1/Atkey_etal_ACT2020_Compositional_Game_Theory_compositionally.pdf)
*   [Subgame perfection made difficult (2020)](https://julesh.com/2020/05/26/subgame-perfection-made-difficult/)
*   [The game semantics of game theory (2020)](https://The game semantics of game theory)
*   [Selection functions and lenses (2021)](https://julesh.com/2021/03/30/selection-functions-and-lenses/)
*   [Translating Extensive Form Games to Open Games with Agency (2021)](https://arxiv.org/pdf/2105.06763.pdf)
*   [Diegetic Representation of Feedback in Open Games (2022)](https://arxiv.org/abs/2206.12338)
*   [Bayesian open games (2023)](https://arxiv.org/pdf/1910.03656.pdf)

* * *

[^ia4cfyuchia]: The little \(\lambda\) is from (simply-typed) lambda notion for introducing functions. If \(\sin : \mathbb R \to \mathbb R\) is the familiar sine function, then \(\lambda^{x \in \mathbb R}. \sin(x^2)\) is the function \(\mathbb R \to \mathbb R\) which sends each \(x \in \mathbb R\) to \(\sin(x^2) \in \mathbb R\), so \((\lambda ^{x \in \mathbb R}. \sin(x^2))(\pi^3) = \sin(\pi^6)\). We can also use lambda notation to define higher-order functions, e.g. if \(\text{double}_X = \lambda^{u : X \to X}.u\circ u\) then \(\text{double}_\mathbb R(\sin)(\pi+1) = \sin(\sin(\pi+1))\). 

[^toa3zxg0mrn]:  Synonyms: actions, alternatives, behaviours, configurations, coordinates, hypotheses, moves, options, outputs, parameters, plays, policies, positions, strategies — or whatever else is being chosen due to the payoffs assigned to it. 

[^2cfpsvkh9oe]: Scott Garrabrant has called  \((X \to R) \to X\) the the type-signature of agency, and you can interpret this sequence as an expansion on his remark.In response to Garrabrant, MrMind raises the objection that no map \(\psi : (X \to R) \to X\) can be parametric in both \(X\) and \(R\) because there is no map \((0 \to 0) \to 0\). Fortunately, this objection doesn't apply here, because we're looking for functions \(\psi : (X \to R) \to \mathcal{P}(X)\), and there is a function \(\psi:(\emptyset \to \emptyset) \to \mathcal{P}(\emptyset)\). 

[^m3sm21yagpl]: The term higher-order game theory is coined in [Hedges 2015], presumably because functions of the form \(f : (A \to B) \to C\) are often called higher-order functions. Throughout the article, I will only use the term in this sense.Warning: The term higher-order game theory is also used in [Nisan 2021] to refer to "the study of agents thinking about agents thinking about agents..." — and [Diffractor 2021] calls this higher-level game theory. I will never use the term in this sense. 

[^dyz0askmdyl]: Spoilers: As you'll see later, this is the definition of optimisation you need to ensure that the nash equilibrium between two optimisers is also an optimiser.  

[^2wfkife2kk3]: Of course, if \(\psi(u) = \emptyset\), then this model of the agent and their task would be falsified by any observed option, and can be eliminated a priori.We can also interpret \(\psi (u) = \emptyset\) as the statement that the computer program implementing the agent's decision theory would throw an exception, or fail to halt, when given the input \(u : X \to \mathbb R\).  

[^0uihcj00bue]: Discussed in Program Equilibrium in the Prisoner’s Dilemma via Lob’s Theorem and elsewhere. 

[^w1k9b62busn]: In tomorrow's post, \(\mathcal P\) will be generalised to an arbitrary commutative monad \(M\). When we let \(M\) be the probability monad \(\Delta\), then we get optimisers of type \((X \to \mathbb R) \to \Delta(X)\) which would include Taylor's original probabilistic quantiliser. But don't worry about that now! 

[^rt1dan2fei]: ... and any set \(X\) to model the agent's options, any function \(u : X \to R\) to model the agent's task, and any functional \(\psi : (X \to R) \to\mathcal P (X)\) to model the agent's optimisation. 

[^s0r0kpgn8dj]: When \(\mathbb R^n\) is equipped with the product ordering, the optimiser \(\text{argmax}_X :\mathcal J^\mathcal P(X, \mathbb R^n)\) is the called the pareto optimiser which maps each multi-objective task \(u : X\to \mathbb R^n\) to the pareto-frontier. This is the least selective optimiser which cares about each objective \(\pi_i \circ u : X\to \mathbb R\).\(\) 

[^q8755v7j5s]: A partial order \(\leq\) is a relation on \(X\) satisfying three rules:(1) Reflectivity: \(x \leq x\).(2) Transitivity: If \(x \leq y\) and \(y \leq z\) then \(x \leq z\).(3) Anti-symmetry: If \(x \leq y\) and \(y \leq x\) then \(x=y\).A preorder \(\leq\) is a relation satisfying only reflectivity and transitivity. A preorder is the non-evil version of a partial order, because it's agnostic about ""identity"" between equivalent objects.Now, we say an agent's preferences are incomplete when neither \(x \leq y\) nor \(y \leq x\), and an agent's preferences are indifferent when \(\)both \(x \leq y\) and \(y \leq x\) but not \(x=y\). So a partial order represents preferences which might be incomplete but never indifferent, while a preorder represents preferences which might be both incomplete and indifferent. Agents with incomplete preferences have recently been proposed as a solution to the Shutdown Problem. 

[^96jcy709w6j]: Warning: There're another optimiser in \(\mathcal J^\mathcal P(X, R)\) who chooses the maximum points \(\)of \(\leq_u\), i.e. options which weakly dominate all other options. Explicitly, \(\lambda^{u : X \to R}. \{x \in X:\forall x' \in X.u(x')\leq u(x)\}\). This optimiser is qualitatively different, being more selective when its preferences are incomplete. 

[^4vkbdo288wt]: In Science without Numbers (1980), Hartry Field attempted to reformulate Newtonian physics without quantification over mathematical objects. Instead, the formulae of his theory would quantify only over physical objects and regions of spacetime. He called this normalisation of Newtonian physics.Likewise, higher-order game theory promises a normalisation of game theory.I don't know why, but this smells correct to me. 

[^p8q3a20s3pj]: This property is called closedness in [Hedges 2015] because the set \(\psi (u) \subseteq X\) is closed under the equivalence relation \(x \sim x' \iff u(x) = u(x')\) for every \(u : X \to R\).A function \(q : (X \to R) \to \mathcal P(R)\) is called a quantifier in the HOGT literature.