<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>AT</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>A Reinforcement Learning Based Strategy for the Double-Game Prisoner's Dilemma?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Yang Gao</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Computing, Imperial College London</institution>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2012</year>
      </pub-date>
      <volume>15</volume>
      <fpage>15</fpage>
      <lpage>16</lpage>
      <abstract>
        <p>The Double-Game Prisoner's Dilemma (DGPD) is a new game that incorporates the standard Prisoner's Dilemma (PD) with the Social Game. DGPD provides a novel approach in modelling economic behaviours: in each round, players not only need to choose to cooperate or defect, but also need to adjust their weights for each basic game. As a result, traditional strategies for PD, e.g. Titfor-Tat, do not perform well in DGPD. In this paper, we propose a new strategy for the DGPD game, based on a Reinforcement Learning (RL) algorithm, namely SARSA( ) with eligibility traces. This algorithm does not require a model of the player's environment and, therefore, is well suited for use in repeated games against unknown opponents. We empirically analyse the effectiveness of the proposed strategy. In addition, we discuss several key points in designing this strategy, e.g. the values of parameters, and show how they affect the strategy's performance. Our RL-based strategy wins the Material Versus Social Payoff Tournament (MVSPT) and significantly outperforms other strategies.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>However, because of the the complex nature of this game, traditional successful
strategies for PD does not perform well in DGPD. For example, the traditional
Titfor-Tat (cooperate on the first move and then reciprocate the opponent’s last action)
performs poorly in DGPD because it does not take resource allocation (i.e. social
coefficient adjusting) into account.</p>
      <p>
        Reinforcement Learning (RL) is based on the idea that the tendency to produce an
action should be strengthened (reinforced) if it produces favourable results, and
weakened if it produces unfavourable results. SARSA( ) [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ] is a RL algorithm that does not
need a model of the environment and can be integrated with other techniques, e.g.,
eligibility traces, reward shaping, etc., to improve its convergence speed [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ]. Therefore,
it is well suited for use in repeated games against an unknown opponent.
      </p>
      <p>In this paper, we propose a new RL-based strategy for the DGPD game. In
particular, our strategy consists of two parts: social coefficient updating and decision-making.
In the first part, we update the social coefficient according to the payoff matrix of
DGPD and both agents’ action in the last round. Upon the updated social coefficient, the
decision-making part builds a Markov Decision Process (MDP) and uses RL to adjust
to the opponent’s behaviours. Our RL-based strategy shows outstanding performances
in the Material Versus Social Payoff Tournament (MVSPT)1, a tournament to evaluate
the effectiveness and robustness of each strategy in the DGPD scenario.</p>
      <p>The remainder of this paper is organised as follows: Section 2 provides the
background of the DGPD game and related theories, and introduces the structure of MVSPT.
Section 3 gives details of our strategy and discusses several key issues in designing it.
Section 4 compares the performance of our strategy with that of the other candidates in
the tournament. Section 5 describes related works, including other sophisticated
strategy for DGPD and other RL-based strategies for standard PD. At last, we conclude our
research in Section 6.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Background</title>
      <p>We first introduce MG and DGPD, a 2-player MG consisting of two basic games: the
PD and the SG. Then we give some fundamentals of the concept of Nash Equilibrium.
After that, RL will be briefly described and a specific RL algorithm: SARSA( ) with
eligibility traces, will be presented in detail. Finally, we introduce the rules and
restrictions of MVSPT.
2.1</p>
      <p>
        Multi-Games and Double-Game Prisoner’s Dilemma
Formally, Multi-Games (MGs) are defined as follows [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]: consider M finite N -player
games Gi(1 i M ) with the strategy set Sij and the payoff matrix ij for player
j(1 j N ) in the game Gj . Assume each player j has a set of M weights ij
with PM
      </p>
      <p>j=1 ij = 1. The N -player MG G with basic games Gi is defined as the finite
1 Part of the documents and source code of MVSPT can be downloaded at https://
github.com/theoboyd/mvspt
strategy game with players j(1
payoff
j</p>
      <p>N ) each having strategy set Q1 i M Sij and
j (</p>
      <p>Y
1 i M
sij ) =</p>
      <p>X
1 i M
ij ij (sij )
for strategy profile sij 2 Sij and possibly incomplete information (types) ij for 1
i M . We say a MG is uniform if for each player j, the set Sij is independent of the
game Gi, i.e., we can write Sij = Sj , and sij = si0j for 1 i i0 M .</p>
      <p>
        The Double-Game Prisoner’s Dilemma (DGPD) is a uniform 2-player MG
consisting of two basic games: PD and SG. PD is an abstraction of social situations where
each agent is faced with two alternative actions: cooperating, i.e., doing the socially
responsible thing, and defecting, i.e., acting according to self-interest regardless of how
harmful this might be to the other player. PD is considered as a standard method for
modelling social dilemmas, and has also been used to model conditional altruistic
cooperation, which has been tested by real monetary payoffs [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. The payoff matrix of
PD is shown in Table 1. The payoff values in the PD should satisfy the following two
inequalities:
      </p>
      <p>T &gt; R &gt; P &gt; S
R &gt; (T + S)=2
(1)
(2)
Inequality 1 specifies the order of the payoffs and defines the dilemma, since the best a
player can do is to get T (temptation to defect), followed by R (reward for cooperation),
P (punishment for mutual defection) and S (sucker’s payoff). On the other hand,
Inequality 2 ensures that in the repeated game, the players cannot get out of the dilemma
by taking turns in exploiting each other.</p>
      <p>
        However, when faced with the choice of cooperate or defect, human beings not only
consider their material score, but also the social and moral payoffs. According to some
research [
        <xref ref-type="bibr" rid="ref17 ref18">17, 18</xref>
        ], human social evolution has a moral direction which has extended
our moral campus in the course of thousands of years of increasing communication
and complexity in human social organisation. The same applies to economic decisions
made by corporations or governments [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], in which actions taken can have significant
social and environmental implications, which are not incorporated in the material gains
they produce. A more adequate model of human behaviour, therefore, should take into
account these aspects of social evolution as well. As a result, SG has been proposed
and integrated into PD [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. SG encourages cooperation and discourages defection, as
cooperating is usually considered to be the ethical and moral choice to make when
interacting with others in social dilemmas. The payoff matrix of SG is shown in Table 2.
      </p>
      <p>The payoff of DGPD for each player are then the weighted sum of the payoffs of
PD and SG, represented by M aterialScore and SocialScore respectively, using the
player’s social coefficient, which reflects how much they cares about the morality of
their actions. The payoff matrix of DGPD is presented in Table 3, where and (with
0 ; 1) are social coefficients of Player 1 and Player 2, respectively.
Player 1 Cooperate (1
Player 1 Defect (1</p>
      <p>Player 2 Cooperate
)R + M1, (1 )R + M2 (1
)T + M10 , (1 )S + M2 (1</p>
      <p>Table 3. Payoff matrix of DGPD</p>
      <p>Player 2 Defect
)R + M1, (1 )T +
)P + M10 , (1 )P +</p>
      <p>M20
M20</p>
      <sec id="sec-2-1">
        <title>With respect to the payoff values, the following formulae hold:</title>
        <p>T &gt; R &gt; M1 = M2 &gt; P &gt; S</p>
        <p>M1 = M2 &gt; (R + P )=2</p>
        <p>M10 = M20 = S
(3)
(4)
(5)
Inequality 3 ensures that the social payoffs, namely M1 and M2, are neither
overevaluated (T &gt; R &gt; M1 = M2), nor under-evaluated (M1 = M2 &gt; P &gt; S), so
as to maintain the dilemma and encourage social behaviours at the same time.
Inequality 4 has the similar function as Inequality 2. Equality 5 indicates that M10 and M20
should be equal to S, in order to discourage defection with a high social coefficient,
which would be self-contradictory, and to punish defection, since M10 and M20 are the
payoff value for defection in the SG, which, by its definition, should not give high value
to defection.
2.2</p>
        <p>
          Nash Equilibrium
The notion of Nash Equilibrium (NE) is a solution concept of a game involving two
or more players, in which each player is assumed to know the equilibrium strategies of
the other player, and neither player has any incentive to change only its own strategy
unilaterally. In particular, John Nash has proved that every game in which every player
has a finite set of possible strategies has a Nash equilibrium in mixed strategies [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ].
        </p>
        <p>With respect to the PD game, the only NE accounts to both players defecting: since
T &gt; R &gt; P &gt; S (see Section 2.1 ), according to the payoff matrix (see Table 1), each
player can unilaterally improve their situation by defecting regardless of the other’s
decision. However, it is obvious that the score of both player cooperating is higher than
that of both player defecting. So the NE solution is not necessarily the optimal solution.
2.3</p>
        <p>
          Reinforcement Learning and SARSA( )
Among many mathematical models of RL, MDP is the most widely used one and has
several variants [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ]. An MDP is a tuple (S; A; T ; R), where S is the state space, A is
the action space, T (s; a; s0) = P r(s0js; a) is the probability of moving from state s to
state s0 by executing action a, and R(s; a; s0) gives the immediate reward r received
when action a is taken in state s, moving to state s0.
        </p>
        <p>
          However, in most real environments, the transition probabilities and reward
functions, namely the model of the environment, are not known. In these cases, on-policy
learning algorithms are used, which apply temporal-difference updates to propagate
information about values of states, V (s), or state-action pairs, Q(s; a). These updates
are based on the difference of the two temporally different estimates of a particular
state or state-action value. The SARSA( ) [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ] algorithm is such an on-policy
learning algorithm. In addition, we integrate SARSA( ) algorithm with replacing eligibility
traces, which keep a temporary record of the occurrence of each event, to improve the
convergence speed of the algorithm [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ]. The details of this algorithm is presented in
Algorithm 1. In the algorithm, is a learning rate parameter and is a discount
facAlgorithm 1 Learning algorithm: SARSA( ) with replacing eligibility traces (adapted
from [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ])
1 Initialise Q(s; a) arbitrarily for all states s and actions a
2 Repeat (for each episode):
3 Initialise e(s; a) = 0 for all s and a
4 Initialise current state st
5 Choose action at from st using the policy derived from Q
6 Repeat until st is the terminal state:
7 Execute action at, observe reward rt and new state st+1
8 Choose at+1 from st+1 using the policy derived from Q
9 rt + Q(st+1; at+1) Q(st; at)
10 e(st; at) 1
11 For all s, a:
12 Q(s; a) Q(s; a) + e(s; a)
13 e(s; a) e(s; a)
14 st st+1; at at+1
tor governing the weight placed on the future. The value e represents eligibility traces,
which stores the credit that previous action choices should receive for current rewards,
while governs how much credit is delivered back to them. The action selection rule
used in line 5 and line 8 is -greedy: the action with highest Q(s; a) value will be
selected for a proportion 1 of the trials; for the other proportion, actions will be
selected randomly.
2.4
        </p>
        <p>Material Versus Social Payoff Tournament
MVSPT is based on the DGPD game. The structure of the tournament is round-robin,
i.e., all the strategies compete in the iterated double game against all the other
strategies and themselves once. Each game between any two strategies consists of a variable
number of rounds. The number of rounds will in the range of 100 to 200, but the exact
number will not be given to each strategy to prevent the degenerate case of total mutual
defection2. The winner of the tournament is the strategy which has the highest total
score:
((1
)</p>
        <sec id="sec-2-1-1">
          <title>M aterialScore) + (</title>
        </sec>
        <sec id="sec-2-1-2">
          <title>SocialScore)</title>
          <p>where is the global social coefficient that represents the social inclination, and hence
weighting and importance of the social score to society as a whole. In order to encourage
both material and prosocial play, in MVSPT will be fixed to 0:5.</p>
          <p>However, instead of just showing the total score, the social and material scores will
be kept separate. As strategies play further rounds, their material and social scores are
tallied separately and recorded as two running totals that, along with , completely
represent the current state of the player. We believe this is a better way of formulating
the dual game as it does not lose the meaning of the two scores by themselves and allows
us (and strategies) to measure social contribution separately and with equal importance
to material contribution.</p>
          <p>The numerical values of the payoffs used in this tournament are:</p>
          <p>
            T = 5; R = 3; M1 = M2 = 2:5; P = 1; M10 = M20 = S = 0
As described in Section 2.1, these values are chosen precisely to create an environment
where a real dilemma is present. There are some other restrictions for this tournament:
– In order to simplify the system, each agent’s private social coefficient ( ) is a
discrete value. It is fixed to one of these six values: f0:0; 0:2; 0:4; 0:6; 0:8; 1:0g.
– To model human dynamics in social behaviour more accurately, certain restrictions
are imposed on how much a player can increase or decrease the social coefficient
in a single round. In particular, an agent can only increase or decrease their social
coefficient by 0:2 in each round, since, in general, humans do not change their
moral values radically in a short amount of time [
            <xref ref-type="bibr" rid="ref5">5</xref>
            ].
2 If the total number of rounds, n, was known, a strategy would plan to defect at round n as
there is no repercussion for doing so and they can guarantee the maximum payoff. Similarly,
they can also defect in round n 1 because they and their opponent will have (theoretically at
least) defected in round n. This continues backwards until defection is planned in all rounds.
– In each round (except the first round), a player is able to read his own as well as the
opponent’s action in the last round. However, each agent’s social coefficient ( ) is
always private to itself3.
– It is not permitted to attempt to cooperate just after having defected and reduced
one’s social coefficient. Similarly, it is not permitted to attempt to defect just after
having cooperated and raised one’s social coefficient. Both of these measures are
in place to prevent undermining the concept of the game and if a strategy attempts
to perform one of these combinations, it is invalid.
3
          </p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Our Approach</title>
      <p>The major difference between DGPD and standard PD is that in DGPD, agents not only
need to choose to defect or cooperate in each round — as they do in the standard PD
— but also need to update their weights on each game, namely the social coefficient
values. In accordance with this characteristic, our RL-based strategy consists of two
components: social coefficient ( ) updating and decision-making. The RL process is
only involved in the decision-making part. In Section 3.1, the -updating rules will be
presented and discussed, and in Section 3.2, the details of the RL algorithm will be
given.
3.1</p>
      <p>
        Social Coefficient ( ) Updating
We design our -updating strategy as a fixed-history strategy, namely will be updated
based on both players’ actions in the last k rounds, where k is the length of the history.
Same with the setting of the -updating rules in [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], we set k as 1 here. According to the
payoff matrix of DGPD (see Table 3), we analyse the updating rules in each situation
as follows (each situation is represented by (M; O), where M is my last action and
O is the opponent’s last action; with respect to actions, C represents cooperate and D
represents defect):
– (C; C): Assume that both sides still mutually cooperate in the next round. Then by
decreasing , a higher payoff can be gained. Similarly, if it is (D; C) or (D; D)
in the next round, decreasing is still the better choice. Note that represents the
weights given to the SG. Hence, to varying degrees, it reflects the agent’s
willingness to cooperate. As a result, by decreasing , our strategy is very unlikely to
cooperate in the next round. So even though by decreasing the payoff of (C; D)
will drop, we still believe that decreasing is the best choice in (C; C).
– (C; D) and (D; D): In these situations, instead of attempting to alter the opponent’s
behaviour by retaliating to its defections, we realise that it is better to increase the
value to get the social reward from cooperation and avoid the disastrous cycles of
mutual defection, which would be caused by a low value.
3 Because the social coefficient of the opponent, namely , is unknown to us, we ignore the
effect of when we discuss the social coefficient updating rules in Section 3.1
– (D; C): In this situation, we will decrease the value, as we see that the opponent
does not retaliate to our defection. In a sense we exploit the opponent in this
particular case, however, it is the opponent who allows that behaviour by not retaliating.
In such cases, some strategies allow themselves to be taken advantage of, because
if they have a high value, they can get higher payoff from cooperation and not
concern themselves about their opponent’s actions.
3.2
      </p>
      <p>
        RL-Based Decision-Making
As described in Section 3.1, the values are updated according to both sides’ actions in
the last round, so it is reasonable to believe that the updated value is able to compactly
summarise past sensations and roughly represent the history. In other words, satisfies
the Markov Property and, as a result, an MDP can be built upon . To be specific, the
state set S (see Section 2.3) can be set to fV g, where V is the value of . As described
in Section 2.4, there are only six values available for , so there are six elements in S.
Action set A = fC; Dg, where C and D represents cooperate and defect respectively.
Since the opponent’s action will affect the next state ( value), the transition probability
T (s; a; s0) is unknown. Immediate reward R(s; a; s0) are defined as the payoff of doing
action a in state s and moving to s0. Because we are using SARSA, the model of the
environment is not needed [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ]. As a result, if the opponent’s strategy is fixed, namely
the transition probability of each tuple (s; a; s0) (i.e. T (s; a; s0)) is fixed, our SARSA
learning algorithm is able to find the optimal action in each state if each state-action
pair (s; a) can be visited for infinite times [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ].
      </p>
      <p>However, as described in Section 2.4, each game consists of only 100 to 200 rounds.
So each state-action pair can be visited for 200 times at most, which is far fewer than
the theoretical requirement of converge (i.e. infinite times). In other words, in order to
ensure that RL can find the optimal action in each state ( value), some prior knowledge
about the environment is essential, so as the speed up the convergence process. As a
result, the initial Q(s; a) values, for all state s and action a, need to reflect some prior
knowledge about the opponent.</p>
      <p>
        Babes et al. [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] has suggested that by assigning Q(s; a) to be the maximum total
expected total discounted reward from state-action pair (s; a) can make learning optimal
behaviour nearly immediate. To simplify this initialization process, we assume that the
expected total discounted reward equals the immediate reward of executing action a in
situation s. Therefore, each Q(s; a) can be initialized as follows:
      </p>
      <p>Q(V ; C) = Poc
Q(V ; D) = Poc</p>
      <p>P ayof f (V ; (C; C)) + (1
P ayof f (V ; (D; C)) + (1</p>
      <p>Poc)
Poc)</p>
      <p>
        P ayof f (V ; (C; D)) (6)
P ayof f (V ; (D; D)) (7)
where P ayof f (V ; (M; O)) is the payoff when = V and my last action and the
opponent’s last action are M and O, respectively. Poc is the probability of the opponent
to cooperate. P ayof f (V ; (M; O)) can be calculated by using the payoff matrix shown
in Table 3 (for player 1). In addition, according to a principle in designing PD strategies:
be nice (see [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]), we always choose to cooperate in the first round of each game. The
complete RL-based strategy is shown in Algorithm 2.
      </p>
      <p>In Algorithm 2, the Initialisation part is executed at the beginning of each game.
When a game begins (our strategy begins to play with the opponent), our strategy will
behave according to the Response part. To be specific, we first read the opponent’s last
action Ao from the tournament simulation platform (see Section 2.4). In the -updating
part, by saying increase or decrease , the value of will be increased or decreased by
0:2 respectively (see Section 2.4). Then the updated value as well as Ao will be served
as input of the decision-making part. This part is basically same with the repeating part
of the SARSA( ) algorithm (see Algorithm 1 between Line 7 and Line 14). The strategy
will terminate when a game is finished.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Implementation and Empirical Results</title>
      <p>In this section, we will discuss the values of the parameters in our strategy in
Section 4.1, and show the performance of our strategy in the tournament (Section 4.2).
4.1</p>
      <p>
        Parameter Values
The values of each parameter shown in this paper are proposed on the basis of
observation, the principles for designing PD (see [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]) and earlier results. We implement five
strategies4 in our experiments: RL-based strategy, Tit-for-Tat, AlwaysRandom, AE-GS
and AE-GSS. Tit-for-Tat initialises randomly and keeps its value constant during the
whole process of each game. The AlwaysRandom strategy randomly initialises at the
beginning of each game and randomly updates its value in each round of a game. Based
on the updated value, AlwaysRandom chooses to cooperate if 0:5; otherwise, it
chooses to defect. AE-GS/AE-GSS are presented in detail in Section 5. However, we
cannot ensure that these strategies we implement in our experiments are exactly the
same as the strategies used in the real tournament, even though they may fall under
the same name. In our experiments, each game consists of 200 rounds of play, but the
agents are not able to access to the exact number of rounds for the reason described
in Section 2.4. It is worth to notice that as all the parameter values discussed in this
section are the results of a limited number of experiments, we make no claims that they
are optimal, and very likely there is considerable room for improvement.
      </p>
      <p>
        All the parameters involved in this strategy fall into two categories: the parameters
in standard RL, including , , and ; and the parameters specific to this strategy:
and Poc. In terms of the parameters in standard RL, since the effect of each of them
is clear (see Section 2.3) and a lot of research has been done to discuss how to choose
their values (e.g., [
        <xref ref-type="bibr" rid="ref14 ref9">9, 14</xref>
        ]), we give some conventional and classical values to them:
= 0:125, = 1:0, = 0:8 and = 1. Furthermore, we make linearly decrease
from 1 to 0 during the first 100 rounds in each game. By doing this, each state-action
pairs can have more opportunities to be visited in the early stage, so as to get more
4 Because we cannot access all the submitted strategies of MVSPT, we only implement five
selected strategies. However, even though our strategy collection is smaller than that of MVSPT,
according to the final performance (see Section 4.2 and Table 4), the top three strategies, i.e.,
RL-based, AE-GS and AE-GSS, are all included in our experiments. Therefore, the results
derived from our experiments are still valuable.
accurate Q(s; a) values for each state-action pair; moreover, since the exploration rate
decreases to 0 in the 100 rounds of each game, in the remaining rounds there will be no
explorations and, as a result, the performance can be stable and nearly optimal.
      </p>
      <p>
        Given the settings above, we then analyse the impact of and Poc on the strategy’s
performance. We increase the value of and Poc from 0 to 1 in the steps of 0:2 and 0:1,
respectively. The effect of and Poc on the strategy’s performance is shown in Figure 1.
The strategy’s performance reaches its peak when = 0:6 and Poc = 0:5. When the
value of is fixed, the performance does not change significantly with the change of
Poc; however, when we set Poc as constant and decrease the value of from 1 to 0, the
performance keeps stable when &gt; 0:2, but drops dramatically when 0:2. Recall
that represents the agent’s weight put on social score (see Section 2.1) and Poc
represents the probability of the opponent to choose to cooperate (see Section 3.2). Thus, this
result indicates that we should be neither overoptimistic (very high and Poc value) nor
overpessimistic (very low and Poc value). In addition, since the performance is better
when both and Poc are relatively large (larger than 0:5), this result also corresponds
with an important principle of designing PD strategy: be nice (see [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]). To summarise,
in order to ensure that the strategy performs nearly optimally and stably when
competing with a large collection of strategies in MVSPT, in our version the parameters are set
as: = 0:125, = 1, = 0:8, = 0:6, Poc = 0:5 and = 1 in the beginning of each
game and linearly decreases to 0 in the first 100 rounds.
The result of MVSPT can be checked online: http://www.doc.ic.ac.uk/˜tb208/
mvspt-results.php5. Because we cannot access all of the top 10 strategies, we are
not able to present and analyse their technical details in this paper. For more
information of these strategies, the official website of MVSPT (http://www.doc.ic.ac.
uk/˜tb208/mvspt-main.php) may be referred to. The performance of the top 10
strategies have been listed in Table 4.
      </p>
      <p>In Table 4, the second column (win percentage) shows how much percentage a
strategy’s total score (see Section 2.4) is higher than that of Tit-for-Tat. The third column
shows the average social coefficient value of each strategy. The higher this value is, the
the strategy is more likely to cooperate. Column 4 and Column 5 present the scaled
material score and social score (see 2.1), respectively. The results indicate that our
RL-based strategy significantly outperforms Tit-for-Tat as well as other sophisticated
strategies, e.g., AE-GS-S and AE-GS (for more details about these two strategies, see
Section 5). An interesting phenomenon is that among all the top 7 strategies, the average
social coefficient value and the social score of the RL-based strategy is the lowest. This
result implies that under the current setting of MVSPT, a successful strategy should be
more material rather than be socially beneficial. However, the principle being nice has
also been shown as important in choosing the value of parameters (see Section 4.1).
Therefore, how to keep the balance between being social and being material is the key
point in designing a successful strategy for this tournament.
5 Since this website is currently on a student’s domain of Imperial College London, due to the
college’s policy, it may be removed or moved to other places. If the website is unavailable,
please contact the author of this paper</p>
    </sec>
    <sec id="sec-5">
      <title>Related Work</title>
      <p>
        Because of the novelty of DGPD, there are few published sophisticated strategies for
this game. The only exception, to the best of our knowledge, is the AE-GS-S and
AEGS strategy proposed by Edalat et al. [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. Their strategies also consists of two parts:
-updating and decision-making. With respect to the -updating rules, the only
difference between their strategy and our strategy locates at the situation when both player
cooperate in the last round, namely (C; C): in our strategy, we choose to decrease
(see Section 3.1), whereas they choose to increase (AE-GS strategy) or do not change
its value (AE-GS-S strategy). The decision-making part of AE-GS and AE-GS-S
strategy are same: first they analyse the NE under different social coefficient values (both
self coefficient as well as the opponent’s coefficient ) and find the best action(s) in
each situation. When compete with other strategies, they give a fixed model to predict
the opponent’s behaviour and social coefficient ( ). Based on its own social coefficient
( ) and the prediction of , AE-GS/AE-GS-S find the best action in this situation. So a
main difference between AE-GS/AE-GS-S and our RL-based strategy is that their
strategy predict the opponent’s behaviour rigidly, whereas our strategy learns the opponent’s
behaviour dynamically. The AE-GS/AE-GS-S strategy is presented in Algorithm 3.
      </p>
      <sec id="sec-5-1">
        <title>Algorithm 3 AEGS/AEGSS algorithm</title>
        <p>
          There is some research on RL-based strategy in the Iterated PD (IPD) game.
Sandholm et al. [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ] studied the RL-based strategies in IPD along three dimensions: the
length of history the agents received as context, the type of memory the agents
employed and the exploration schedule the agents followed. They concluded that although
all the learners faced difficulties when playing against other learners, agents with longer
history windows, longer lookup table memories, and longer exploration schedules fared
best in the IPD games. Furthermore, Babes et al. [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ] proposed social reward shaping to
improve the learning performance in multi-agent learning scenarios. In particular, they
showed that learning agents with social reward shaping are able to both lead —
encourage adaptive opponents to stably cooperate — and follow — adopt a best-response
strategy when paired with a fixed opponent — where other existing approaches achieve
only one of these objectives. Although these research are based on IPD, they still give
us some insights into how to design RL-based strategies in DGPD.
6
        </p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Conclusion</title>
      <p>In this paper, we propose a RL-based strategy for the novel Double-Game Prisoner’s
Dilemma (DGPD) game. In this game, each player not only needs to choose to
cooperate or defect in each game round, but also needs to give different weights to two basic
games: the Prisoner’s Dilemma (PD) game and the Social Game (SG). In accordance
with the unique structure of DGPD, our strategy consists of two parts: social coefficient
( ) updating and decision-making. The values are updated based on the payoff matrix
of DGPD as well as both players’ actions in the last round. Based on the updated
values, the decision-making part uses SARSA( ) algorithm to adjust to the opponent’s
behaviours in order to get higher payoff.</p>
      <p>We present our strategy, discuss the parameter values and analyse their effects on the
learning results. The performance of our strategy in the Material Versus Social Payoff
Tournament (MVSPT) indicates that our strategy is able to learn and adjust to other
strategies’ behaviours quickly and accurately and, as a result, earns much higher payoff.</p>
      <p>
        There are several issues worth researching in the future. First, because our -updating
strategy is a fixed-history strategy (see Section 3.1), it can be modelled as an MDP [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
Therefore, a RL algorithm can be built upon this -updating process (Section 2.3). We
can extend our current single-stage RL-based strategy (where only decision-making
part involves RL) to a double-stage RL strategy (where both parts use RL). In addition,
since it has been empirically shown in [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] that in the IPD games, by extending the
length of the available history in fixed history strategies, the learning performance can
be significantly improved. Therefore, we can extend the history length in the -updating
part and check whether the same result applies to DGPD as well.
      </p>
      <p>
        The second issue is how to initialise Q-values so as to model the environment (the
opponent) more accurately. Since Q-value initialisation is equivalent with
potentialbased reward shaping [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ], the existing techniques for reward shaping (e.g., [
        <xref ref-type="bibr" rid="ref12 ref16">12, 16</xref>
        ])
apply to the Q-value initialisation as well. In addition, the techniques that improve the
performance of RL by using reward shaping, e.g. Argumentation-Based RL (see [
        <xref ref-type="bibr" rid="ref6 ref7">6, 7</xref>
        ]),
may also apply to this strategy.
      </p>
      <p>
        The last issue is multi-agent learning in DGPD. Currently we assume that all the
other agents have fixed strategies (see Section 3.2), and this is indeed the case in
MVSPT. We plan to design more RL-based strategies and observe their performances
in the tournament. This will not only improve the multi-agent learning research, but
also stimulate research in game theory, economy [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], social psychology [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], etc., since
in real economic scenarios, people are always learning from the environment and other
people and, as a result, changing their behaviours [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
      </p>
    </sec>
    <sec id="sec-7">
      <title>Acknowledgements</title>
      <p>The author wishes to thank Theodore Boyd, Ali ghoroghi and Abbas Edalat for their
efforts on designing, testing and organising the Material Versus Social Payoff
Tournament. I would also like to thank all the reviewers of the current and previous versions
of this paper for providing useful comments and suggestions.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>R.</given-names>
            <surname>Axelrod</surname>
          </string-name>
          .
          <source>The Evolution of Cooperation</source>
          .
          <source>Basic Books</source>
          ,
          <year>1984</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>M.</given-names>
            <surname>Babes</surname>
          </string-name>
          , E. Cote, and
          <string-name>
            <given-names>M.</given-names>
            <surname>Littman</surname>
          </string-name>
          .
          <article-title>Social reward shaping in the prisoner's dilemma (short paper)</article-title>
          .
          <source>In Proc. of AAMAS</source>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>C. D.</given-names>
            <surname>Batson</surname>
          </string-name>
          and
          <string-name>
            <given-names>T.</given-names>
            <surname>Moran</surname>
          </string-name>
          .
          <article-title>Empathy-induced altruism in a prisoners dilemma</article-title>
          .
          <source>European Journal of Social Psychology</source>
          ,
          <volume>29</volume>
          :
          <fpage>909</fpage>
          -
          <lpage>924</lpage>
          ,
          <year>1999</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>P.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Keijzer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Kempe</surname>
          </string-name>
          , and
          <string-name>
            <surname>G.</surname>
          </string-name>
          <article-title>Scha¨fer. The robust price of anarchy of altruistic games</article-title>
          .
          <source>CoRR, abs/1112.3680</source>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>A.</given-names>
            <surname>Edalat</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Ghoroghi</surname>
          </string-name>
          , and
          <string-name>
            <given-names>G.</given-names>
            <surname>Sakellariou</surname>
          </string-name>
          <article-title>. Multi-games and a double game extension of the prisoner's dilemma</article-title>
          .
          <source>CoRR, abs/1205.4973</source>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>Y.</given-names>
            <surname>Gao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Toni</surname>
          </string-name>
          , and
          <string-name>
            <given-names>R.</given-names>
            <surname>Craven</surname>
          </string-name>
          .
          <article-title>Argumentation-based reinforcement learning for robocup keepaway (extended abstract)</article-title>
          .
          <source>In Proc. of COMMA</source>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>Y.</given-names>
            <surname>Gao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Toni</surname>
          </string-name>
          , and
          <string-name>
            <given-names>R.</given-names>
            <surname>Craven</surname>
          </string-name>
          .
          <article-title>Argumentation-based reinforcement learning for robocup soccer keepaway</article-title>
          .
          <source>In Proc. of ECAI</source>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>H.</given-names>
            <surname>Gintis</surname>
          </string-name>
          .
          <article-title>The Bounds of Reason: Game theory and the unification of the behavioural sciences</article-title>
          . Princeton University Press,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>L.</given-names>
            <surname>Kaelbling</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Littman</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Moore</surname>
          </string-name>
          .
          <article-title>Reinforcement learning: A survey</article-title>
          .
          <source>JAIR</source>
          ,
          <volume>4</volume>
          :
          <fpage>237</fpage>
          -
          <lpage>285</lpage>
          ,
          <year>1996</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <given-names>D.</given-names>
            <surname>Matsumoto</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Haan</surname>
          </string-name>
          , and G. Yabrove et al.
          <article-title>Preschoolers moral actions and emotions in prisoners dilemma</article-title>
          .
          <source>Developmental Psychology</source>
          ,
          <volume>22</volume>
          :
          <fpage>663</fpage>
          -
          <lpage>670</lpage>
          ,
          <year>1986</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <given-names>J.</given-names>
            <surname>Nash</surname>
          </string-name>
          .
          <article-title>Equilibrium points in n-person games</article-title>
          .
          <source>Proceedings of the National Academy of Sciences</source>
          ,
          <volume>36</volume>
          :
          <fpage>48</fpage>
          -
          <lpage>49</lpage>
          ,
          <year>1950</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <given-names>A.</given-names>
            <surname>Ng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Harada</surname>
          </string-name>
          , and
          <string-name>
            <given-names>S.</given-names>
            <surname>Russell</surname>
          </string-name>
          .
          <article-title>Policy invariance under reward transformations: theory and application to reward shaping</article-title>
          .
          <source>In Proc. ICML</source>
          ,
          <year>1999</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <given-names>T.</given-names>
            <surname>Sandholm</surname>
          </string-name>
          and
          <string-name>
            <given-names>R.</given-names>
            <surname>Crites</surname>
          </string-name>
          .
          <article-title>Multiagent reinforcement learning in the iterated prisoner's dilemma</article-title>
          .
          <source>BioSystems</source>
          ,
          <volume>37</volume>
          :
          <fpage>147</fpage>
          -
          <lpage>166</lpage>
          ,
          <year>1996</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <given-names>R.</given-names>
            <surname>Sutton</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Barto</surname>
          </string-name>
          .
          <article-title>Reinforcement Learning</article-title>
          . MIT Press,
          <year>1998</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15. E. Wiewiora.
          <article-title>Potential-based shaping and q-value initialization are equivalent</article-title>
          .
          <source>Journal of Artificial Intelligence Research</source>
          ,
          <volume>19</volume>
          :
          <fpage>205</fpage>
          -
          <lpage>208</lpage>
          ,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16. E. Wiewiora, G. Cottrell, and
          <string-name>
            <given-names>C.</given-names>
            <surname>Elkan</surname>
          </string-name>
          .
          <article-title>Principled methods for advising reinforcement learning agents</article-title>
          .
          <source>In Proc. ICML</source>
          ,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <given-names>R.</given-names>
            <surname>Wright</surname>
          </string-name>
          . Nonzero: History,
          <article-title>Evolution and Human Cooperation: The Logic of Human Destiny</article-title>
          . Abacus,
          <year>2001</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <string-name>
            <given-names>R.</given-names>
            <surname>Wright</surname>
          </string-name>
          .
          <article-title>The Evolution of God: The Origins of Our Beliefs</article-title>
          . Abacus,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>