Program equilibrium

From HandWiki
Short description: Program equilibrium

Program equilibrium is a game-theoretic solution concept for a scenario in which players submit computer programs to play the game on their behalf and the programs can read each other's source code. The term was introduced by Moshe Tennenholtz in 2004.[1] The same setting had previously been studied by R. Preston McAfee,[2] J. V. Howard[3] and Ariel Rubinstein.[4]

Setting and definition

The program equilibrium literature considers the following setting. Consider a normal-form game as a base game. For simplicity, consider a two-player game in which [math]\displaystyle{ S_1 }[/math] and [math]\displaystyle{ S_2 }[/math] are the sets of available strategies and [math]\displaystyle{ u_1 }[/math] and [math]\displaystyle{ u_2 }[/math] are the players' utility functions. Then we construct a new (normal-form) program game in which each player [math]\displaystyle{ i }[/math] chooses a computer program [math]\displaystyle{ p_i }[/math]. The payoff (utility) for the players is then determined as follows. Each player's program [math]\displaystyle{ p_i }[/math] is run with the other program [math]\displaystyle{ p_{-i} }[/math] as input and outputs a strategy [math]\displaystyle{ s_i }[/math] for Player [math]\displaystyle{ i }[/math]. For convenience one also often imagines that programs can access their own source code.[nb 1] Finally, the utilities for the players are given by [math]\displaystyle{ u_i(s_1,s_2) }[/math] for [math]\displaystyle{ i=1,2 }[/math], i.e., by applying the utility functions for the base game to the chosen strategies.

One has to further deal with the possibility that one of the programs [math]\displaystyle{ p_i }[/math] doesn't halt. One way to deal with this is to restrict both players' sets of available programs to prevent non-halting programs.[1][5]

A program equilibrium is a pair of programs [math]\displaystyle{ (p_1,p_2) }[/math] that constitute a Nash equilibrium of the program game. In other words, [math]\displaystyle{ (p_1,p_2) }[/math] is a program equilibrium if neither player [math]\displaystyle{ i }[/math] can deviate to an alternative program [math]\displaystyle{ p_i' }[/math] such that their utility is higher in [math]\displaystyle{ (p_i',p_{-i}) }[/math] than in [math]\displaystyle{ (p_1,p_2) }[/math].

Instead of programs, some authors have the players submit other kinds of objects, such as logical formulas specifying what action to play depending on an encoding of the logical formula submitted by the opponent.[6][7]

Different mechanisms for achieving cooperative program equilibrium in the Prisoner's Dilemma

Various authors have proposed ways to achieve cooperative program equilibrium in the Prisoner's Dilemma.

Cooperation based on syntactic comparison

Multiple authors have independently proposed the following program for the Prisoner's Dilemma:[1][3][2]

algorithm CliqueBot(opponent_program):
    if opponent_program == this_program then
        return Cooperate
    else
        return Defect

If both players submit this program, then the if-clause will resolve to true in the execution of both programs. As a result, both programs will cooperate. Moreover, (CliqueBot,CliqueBot) is an equilibrium. If either player deviates to some other program [math]\displaystyle{ p_i }[/math] that is different from CliqueBot, then the opponent will defect. Therefore, deviating to [math]\displaystyle{ p_i }[/math] can at best result in the payoff of mutual defection, which is worse than the payoff of mutual cooperation.

This approach has been criticized for being fragile.[5] If the players fail to coordinate on the exact source code they submit (for example, if one player adds an extra space character), both programs will defect. The development of the techniques below is in part motivated by this fragility issue.

Proof-based cooperation

Another approach is based on letting each player's program try to prove something about the opponent's program or about how the two programs relate.[6][8][9][10] One example of such a program is the following:

algorithm FairBot(opponent_program):
    if there is a proof that opponent_program(this_program) = Cooperate then
        return Cooperate
    else
        return Defect

Using Löb's theorem it can be shown that when both players submit this program, they cooperate against each other.[8][9][10] Moreover, if one player were to instead submit a program that defects against the above program, then (assuming consistency of the proof system is used) the if-condition would resolve to false and the above program would defect. Therefore, (FairBot,FairBot) is a program equilibrium as well.

Cooperating with ε-grounded simulation

Another proposed program is the following:[5][11]

algorithm [math]\displaystyle{ \epsilon }[/math]GroundedFairBot(opponent_program):
    With probability [math]\displaystyle{ \epsilon }[/math]:
        return Cooperate
    return opponent_program(this_program)

Here [math]\displaystyle{ \epsilon }[/math] is a small positive number.

If both players submit this program, then they terminate almost surely and cooperate. The expected number of steps to termination is given by the geometric series. Moreover, if both players submit this program, neither can profitably deviate, assuming [math]\displaystyle{ \epsilon }[/math] is sufficiently small, because defecting with probability [math]\displaystyle{ \Delta }[/math] would cause the opponent to defect with probability [math]\displaystyle{ (1-\epsilon)\Delta }[/math].

Folk theorem

We here give a theorem that characterizes what payoffs can be achieved in program equilibrium.

The theorem uses the following terminology: A pair of payoffs [math]\displaystyle{ (v_1,v_2) }[/math] is called feasible if there is a pair of (potentially mixed) strategies [math]\displaystyle{ (s_1,s_2) }[/math] such that [math]\displaystyle{ u_i(s_1,s_2)=v_i }[/math] for both players [math]\displaystyle{ i }[/math]. That is, a pair of payoffs is called feasible if it is achieved in some strategy profile. A payoff [math]\displaystyle{ v_i }[/math] is called individually rational if it is better than that player's minimax payoff; that is, if [math]\displaystyle{ v_i \geq \min_{\sigma_{-i}}\max_{s_{i}} u_i(\sigma_{-i},s_{i}) }[/math], where the minimum is over all mixed strategies for Player [math]\displaystyle{ -i }[/math].[nb 2]

Theorem (folk theorem for program equilibrium):[4][1] Let G be a base game. Let [math]\displaystyle{ (v_1,v_2) }[/math] be a pair of real-valued payoffs. Then the following two claims are equivalent:

  • The payoffs [math]\displaystyle{ (v_1,v_2) }[/math] are feasible and individually rational.
  • There is a program equilibrium [math]\displaystyle{ (p_1,p_2) }[/math] that achieves payoffs [math]\displaystyle{ (v_1,v_2) }[/math].

The result is referred to as a folk theorem in reference to the so-called folk theorems (game theory) for repeated games, which use the same conditions on equilibrium payoffs [math]\displaystyle{ (v_1,v_2) }[/math].

See also

Notes

  1. It is not necessary for programs in the program game to be given access to their own source code. By the diagonalization lemma, one can use quining to enable programs to refer to their source code.[2][3][4]
  2. Equivalently, (by von Neumann's minimax theorem), [math]\displaystyle{ v_i \geq \max_{\sigma_i}\min_{s_{-i}} u_i(\sigma_i,s_{-i}) }[/math], where the maximum is over all mixed strategies [math]\displaystyle{ \sigma_i }[/math] for Player [math]\displaystyle{ i }[/math].

References

  1. 1.0 1.1 1.2 1.3 Tennenholtz, M. (November 2004). "Program equilibrium". Games and Economic Behavior (Elsevier) 49 (2): 363–373. doi:10.1016/j.geb.2004.02.002. ISSN 0899-8256. 
  2. 2.0 2.1 2.2 Template:Cite tech report
  3. 3.0 3.1 3.2 Howard, J. V. (May 1988). "Cooperation in the Prisoner's Dilemma". Theory and Decision (Kluwer Academic Publishers) 24 (3): 203–213. doi:10.1007/BF00148954. 
  4. 4.0 4.1 4.2 Rubinstein, A. (1998). Modeling Bounded Rationality. MIT Press. ISBN 978-0262681001. 
  5. 5.0 5.1 5.2 Oesterheld, C. (February 2019). "Robust Program Equilibrium". Theory and Decision (Springer) 86: 143–159. doi:10.1007/s11238-018-9679-3. 
  6. 6.0 6.1 van der Hoek, W.; Witteveen, C.; Wooldridge, M. (2013). "Program equilibrium—a program reasoning approach". International Journal of Game Theory (Springer) 42 (3): 639–671. doi:10.1007/s00182-011-0314-6. 
  7. Peters, Michael; Szentes, Balázs (January 2012). "Definable and Contractible Contracts". Econometrica (The Econometric Society) 80 (1): 363–411. doi:10.3982/ECTA8375. http://discovery.ucl.ac.uk/15001/1/15001.pdf. 
  8. 8.0 8.1 Barasz, M.; Christiano, P.; Fallenstein, B.; Herreshoff, M.; LaVictoire, P.; Yudkowsky, E. (2014). "Robust Cooperation in the Prisoner's Dilemma: Program Equilibrium via Provability Logic". arXiv:1401.5577 [cs.GT].
  9. 9.0 9.1 Critch, A. (2019). "A Parametric, Resource-Bounded Generalization of Löb's Theorem, and a Robust Cooperation Criterion for Open-Source Game Theory". Journal of Symbolic Logic (Cambridge University Press) 84 (4): 1368–1381. doi:10.1017/jsl.2017.42. 
  10. 10.0 10.1 Critch, A.; Dennis, M.; Russell, S. (2022). "Cooperative and uncooperative institution designs: Surprises and problems in open-source game theory". arXiv:2208.07006 [cs.GT].
  11. DiGiovanni, A.; Clifton, J. (2023). "Commitment games with conditional information disclosure".