Program equilibrium is a
game-theoretic solution concept
In game theory, a solution concept is a formal rule for predicting how a game will be played. These predictions are called "solutions", and describe which strategies will be adopted by players and, therefore, the result of the game. The most comm ...
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.
The same setting had previously been studied by
R. Preston McAfee,
J. V. Howard
and
Ariel Rubinstein
Ariel Rubinstein (Hebrew: אריאל רובינשטיין; born April 13, 1951) is an Israeli economist who works in economic theory, game theory and bounded rationality.
Biography
Ariel Rubinstein is a professor of economics at the School of Ec ...
.
Setting and definition
The program equilibrium literature considers the following setting. Consider a
normal-form game
In game theory, normal form is a description of a ''game''. Unlike extensive form, normal-form representations are not graphical ''per se'', but rather represent the game by way of a matrix. While this approach can be of greater use in identifyi ...
as a base game. For simplicity, consider a two-player game in which
and
are the sets of available
strategies and
and
are the players'
utility functions. Then we construct a new (normal-form) ''program game'' in which each player
chooses a computer program
. The payoff (utility) for the players is then determined as follows. Each player's program
is run with the other program
as input and outputs a strategy
for Player
. For convenience one also often imagines that programs can access their own source code. Finally, the utilities for the players are given by
for
, 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
doesn't halt. One way to deal with this is to restrict both players' sets of available programs to prevent non-halting programs.
A program equilibrium is a pair of programs
that constitute a
Nash equilibrium
In game theory, the Nash equilibrium is the most commonly used solution concept for non-cooperative games. A Nash equilibrium is a situation where no player could gain by changing their own strategy (holding all other players' strategies fixed) ...
of the program game. In other words,
is a program equilibrium if neither player
can deviate to an alternative program
such that their utility is higher in
than in
.
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.
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
The prisoner's dilemma is a game theory thought experiment involving two rational agents, each of whom can either cooperate for mutual benefit or betray their partner ("defect") for individual gain. The dilemma arises from the fact that while def ...
.
Cooperation based on syntactic comparison
Multiple authors have independently proposed the following program for the Prisoner's Dilemma:
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
that is different from CliqueBot, then the opponent will defect. Therefore, deviating to
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.
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.
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
In mathematical logic, Löb's theorem states that in Peano arithmetic (PA) (or any formal system including PA), for any formula ''P'', if it is provable in PA that "if ''P'' is provable in PA then ''P'' is true", then ''P'' is provable in PA. If Pr ...
it can be shown that when both players submit this program, they cooperate against each other.
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:
algorithm
GroundedFairBot(opponent_program):
With probability
:
return Cooperate
return opponent_program(this_program)
Here
is a small positive number.
If both players submit this program, then they terminate
almost surely
In probability theory, an event is said to happen almost surely (sometimes abbreviated as a.s.) if it happens with probability 1 (with respect to the probability measure). In other words, the set of outcomes on which the event does not occur ha ...
and cooperate. The expected number of steps to termination is given by the
geometric series
In mathematics, a geometric series is a series (mathematics), series summing the terms of an infinite geometric sequence, in which the ratio of consecutive terms is constant. For example, 1/2 + 1/4 + 1/8 + 1/16 + ⋯, the series \tfrac12 + \tfrac1 ...
. Moreover, if both players submit this program, neither can profitably deviate, assuming
is sufficiently small, because defecting with probability
would cause the opponent to defect with probability
.
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
is called ''feasible'' if there is a pair of
(potentially mixed) strategies such that
for both players
. That is, a pair of payoffs is called feasible if it is achieved in some
strategy profile
In game theory, a move, action, or play is any one of the options which a player can choose in a setting where the optimal outcome depends ''not only'' on their own actions ''but'' on the actions of others. The discipline mainly concerns the actio ...
. A payoff
is called ''
individually rational'' if it is better than that player's minimax payoff; that is, if
, where the minimum is over all mixed strategies for Player
.
Theorem (folk theorem for program equilibrium):
Let G be a base game. Let
be a pair of real-valued payoffs. Then the following two claims are equivalent:
* The payoffs
are feasible and individually rational.
* There is a program equilibrium
that achieves payoffs
.
The result is referred to as a ''folk theorem'' in reference to the so-called
folk theorems (game theory) for
repeated games
In game theory, a repeated game (or iterated game) is an extensive form game that consists of a number of repetitions of some base game (called a stage game). The stage game is usually one of the well-studied 2-person games. Repeated games capt ...
, which use the same conditions on equilibrium payoffs
.
See also
*
Superrationality
Notes
References
{{Reflist, refs=
[{{cite journal
, last1=Tennenholtz
, first1=M.
, authorlink1= Moshe Tennenholtz
, date=November 2004
, title=Program equilibrium
, journal=]Games and Economic Behavior
''Games and Economic Behavior'' (''GEB'') is a journal of game theory published by Elsevier. Founded in 1989, the journal's stated objective is to communicate game-theoretic ideas across theory and applications. It is considered to be the leadi ...
, volume=49
, number = 2
, pages=363–373
, doi=10.1016/j.geb.2004.02.002
, issn = 0899-8256
, publisher = Elsevier
Elsevier ( ) is a Dutch academic publishing company specializing in scientific, technical, and medical content. Its products include journals such as ''The Lancet'', ''Cell (journal), Cell'', the ScienceDirect collection of electronic journals, ...
[{{cite journal
, last1=Oesterheld
, first1=C.
, date=February 2019
, title=Robust Program Equilibrium
, journal=]Theory and Decision
Theory and Decision is a peer-reviewed multidisciplinary journal of decision science published quarterly by Springer Science+Business Media. It was first published in 1970. The current editor-in-chief is Mohammed Abdellaoui. The journal publishe ...
, volume=86
, pages=143–159
, doi=10.1007/s11238-018-9679-3
, publisher = Springer
, s2cid=255103752
, doi-access=free
[{{cite journal , last1 = Howard
, first1 = J. V.
, date = May 1988
, journal = ]Theory and Decision
Theory and Decision is a peer-reviewed multidisciplinary journal of decision science published quarterly by Springer Science+Business Media. It was first published in 1970. The current editor-in-chief is Mohammed Abdellaoui. The journal publishe ...
, volume = 24
, pages = 203–213
, doi = 10.1007/BF00148954
, title = Cooperation in the Prisoner's Dilemma
, issue = 3
, publisher = Kluwer Academic Publishers, s2cid = 121119727
[{{cite book
, last1 = Rubinstein
, first1 = A.
, authorlink1 = Ariel Rubinstein
, title = Modeling Bounded Rationality
, publisher = ]MIT Press
The MIT Press is the university press of the Massachusetts Institute of Technology (MIT), a private research university in Cambridge, Massachusetts. The MIT Press publishes a number of academic journals and has been a pioneer in the Open Ac ...
, year = 1998
, isbn = 978-0262681001
, section = Ch. 10.4
[{{cite tech report
, last=McAfee
, first=R. P.
, authorlink = R. Preston McAfee
, date=May 1984
, title=Effective Computability in Economic Decisions
, institution=University of Western Ontario
, url = https://mc4f.ee/Papers/PDF/EffectiveComputability.pdf]
[{{cite journal
, last1 = Critch
, first1 = A.
, title = A Parametric, Resource-Bounded Generalization of Löb's Theorem, and a Robust Cooperation Criterion for Open-Source Game Theory
, journal = ]Journal of Symbolic Logic
The '' Journal of Symbolic Logic'' is a peer-reviewed mathematics journal published quarterly by Association for Symbolic Logic. It was established in 1936 and covers mathematical logic. The journal is indexed by '' Mathematical Reviews'', Zent ...
, volume = 84
, issue = 4
, pages = 1368–1381
, year = 2019
, doi = 10.1017/jsl.2017.42
, publisher = Cambridge University Press
Cambridge University Press was the university press of the University of Cambridge. Granted a letters patent by King Henry VIII in 1534, it was the oldest university press in the world. Cambridge University Press merged with Cambridge Assessme ...
, s2cid = 133348715
[{{cite arXiv
, last1 = Critch
, first1 = A.
, last2 = Dennis
, first2 = M.
, last3 = Russell
, first3 = S.
, authorlink3 = Stuart J. Russell
, title = Cooperative and uncooperative institution designs: Surprises and problems in open-source game theory
, eprint = 2208.07006
, class = cs.GT
, year = 2022
][
{{cite arXiv , last1 = Barasz
, first1 = M.
, last2 = Christiano
, first2 = P.
, last3 = Fallenstein
, first3 = B.
, last4 = Herreshoff
, first4 = M.
, last5 = LaVictoire
, first5 = P.
, last6 = Yudkowsky
, first6 = E.
, authorlink6 = Eliezer Yudkowsky
, title = Robust Cooperation in the Prisoner's Dilemma: Program Equilibrium via Provability Logic
, eprint = 1401.5577
, class = cs.GT
, year = 2014
][
{{cite journal
, last1 = van der Hoek
, first1 = W.
, last2 = Witteveen
, first2 = C.
, last3 = Wooldridge
, first3 = M.
, authorlink3 = Michael Wooldridge (computer scientist)
, title = Program equilibrium—a program reasoning approach
, journal = International Journal of Game Theory
, volume = 42
, pages = 639–671
, year = 2013
, issue = 3
, publisher = Springer
, doi = 10.1007/s00182-011-0314-6
, s2cid = 253720520
, citeseerx = 10.1.1.228.6517
]
[{{cite conference
, last1 = DiGiovanni
, first1 = A.
, last2 = Clifton
, first2 = J.
, title = Commitment games with conditional information disclosure
, book-title = Proceedings of the ]AAAI Conference on Artificial Intelligence
The AAAI Conference on Artificial Intelligence (AAAI) is a leading international academic conference in artificial intelligence held annually. It ranks 4th in terms of H5 Index in Google Scholar's list of top AI publications, after ICLR, NeurIP ...
, year = 2023
, arxiv = 2204.03484
[{{cite conference
, last1 = Cooper
, first1 = E.
, last2 = Oesterheld
, first2 = C.
, last3 = Conitzer
, first3 = V.
, title = Characterising Simulation-Based Program Equilibria
, book-title = Proceedings of the ]AAAI Conference on Artificial Intelligence
The AAAI Conference on Artificial Intelligence (AAAI) is a leading international academic conference in artificial intelligence held annually. It ranks 4th in terms of H5 Index in Google Scholar's list of top AI publications, after ICLR, NeurIP ...
, year = 2025
, arxiv = 2412.14570
[{{cite journal
, last1 = Peters
, first1 = Michael
, last2 = Szentes
, first2 = Balázs
, date = January 2012
, journal = ]Econometrica
''Econometrica'' is a peer-reviewed academic journal of economics, publishing articles in many areas of economics, especially econometrics. It is published by Wiley-Blackwell on behalf of the Econometric Society. The current editor-in-chief is ...
, volume = 80
, issue = 1
, pages = 363–411
, doi = 10.3982/ECTA8375
, title = Definable and Contractible Contracts
, publisher = The Econometric Society
The Econometric Society is an international society of academic economists interested in applying statistical tools in the practice of econometrics. It is an independent organization with no connections to societies of professional mathematicians o ...
, url = http://discovery.ucl.ac.uk/15001/1/15001.pdf
Game theory