Presentation is loading. Please wait.

Presentation is loading. Please wait.

Arguments for Recovering Cooperation Conclusions that some have drawn from analysis of prisoner’s dilemma: – the game theory notion of rational action.

Similar presentations


Presentation on theme: "Arguments for Recovering Cooperation Conclusions that some have drawn from analysis of prisoner’s dilemma: – the game theory notion of rational action."— Presentation transcript:

1 Arguments for Recovering Cooperation Conclusions that some have drawn from analysis of prisoner’s dilemma: – the game theory notion of rational action is wrong! – somehow the dilemma is being formulated wrongly – This isn’t rational. We may not defect for a few cents. If sucker’s payoff (cooperating when other defects) really hurts, more likely to be rational. 1

2 Arguments to recover cooperation: – We are not all self-centered! But sometimes we are only nice because there is a punishment. [If we don’t give up seat on bus, we receive rude stares. ] – If people would defect for little gain, places like Honor Copy would be exploited. – The other prisoner is my twin! When I decide what to do, the other agent will do the same. (but can’t force it, as wouldn’t be autonomous). – Your mother would say, “What if everyone were to behave like that?” You say, “I would be a fool to act any other way.” – The shadow of the future…we will meet again. 2

3 The Iterated Prisoner’s Dilemma One answer: play the game more than once If you know you will be meeting your opponent again, then the incentive to defect appears to evaporate Cooperation is the rational choice in the infinitely repeated prisoner’s dilemma (Hurrah!) 3

4 Backwards Induction But…suppose you both know that you will play the game exactly n times On round n - 1, you have an incentive to defect, to gain that extra bit of payoff… But this makes round n – 2 the last “real”, and so you have an incentive to defect there, too. This is the backwards induction problem. Playing the prisoner’s dilemma with a fixed, finite, pre- determined, commonly known number of rounds, defection is the best strategy 4

5 Centipede Game Play alternates. Originally, the first player gets 2 and the second gets 0. Choose to quit and take current rewards or go on. If you say “go on”, you decrease your own points by 1, but increase the opponents by 4. You rely on the fact that by each of you helping the other, you both win in the long run. 5

6 The centipede game – What would you do? Either player can stop the game. 6 Jack stop (2, 0) Go on Jill stop (1, 4) Jill Go on stop (5, 3) Jack Go on stop (4, 7) Jill (98, 96) stop (99, 99) Go on (97, 100) stop Go on Jack Go on Jill (94, 97)

7 The centipede game 7 Jack stop (2, 0) Go on Jill stop (1, 4) Jill Go on stop (5, 3) Jack Go on stop (4, 7) Jill (98, 96) stop (99, 99) Go on (97, 100) stop Go on Jack Go on Jill (94, 97) The solution to this game through backward induction is for Jack to stop in the first round!

8 The centipede game What actually happens with real people? In experiments the game usually continues for at least a few rounds and occasionally goes all the way to the end. But going all the way to the (99, 99) payoff almost never happens – at some stage of the game ‘cooperation’ breaks down. 8

9 Lessons from finite repeated games – Finite repetition often does not help players to reach better solutions – Often the outcome of the finitely repeated game is simply the one-shot Nash equilibrium repeated again and again. – There are SOME repeated games where finite repetition can create new equilibrium outcomes. But these games tend to have special properties – For a large number of repetitions, there are some games where the Nash equilibrium logic breaks down in practice. 9

10 So… How do you program an agent to act like a human in the centipede game? 10

11 Axelrod’s Tournament Suppose you play iterated prisoner’s dilemma against a range of opponents… What strategy should you choose, so as to maximize your overall payoff? Axelrod (1984) investigated this problem, with a computer tournament for programs playing the prisoner’s dilemma 11

12 Axelrod’s tournament: invited political scientists, psychologists, economists, game theoreticians to play iterated prisoners dilemma All-D – always defect Random: randomly pick a strategy Tit-for-Tat – On first round cooperate. Then do whatever your opponent did last. Tester – first defect, If the opponent ever retaliates, then use tit-for-tat. If the opponent does not defect, cooperate for two rounds, then defect. Joss: Tit-for-tat, but 10% of the time, defect instead of cooperating. Tit for two tats- is a forgiving strategy that defects only when the opponent has defected twice in a row. Which do you think had the highest scores? 12

13 At seats Try it! Come up with a strategy. Repeat until I tell you to stop. Keep score. 13 2,22,25,05,0 0,50,53,33,3 defect cooperate

14 Best? Tit-for-Tat Why? Because you were averaging over all types of strategy When you play All-D, what happens? When you play All-C, what happens? When you play Tit for Tat, what happens? When you play Random, what happens? 14

15 Best? Tit-for-Tat Why? Because you were averaging over all types of strategy If you played only All-D, tit-for-tat would lose. It must be realized that there really is no "best" strategy for prisoner's dilemma. Each individual strategy will work best when matched against a "worse" strategy. In order to win, a player must figure out his opponent's strategy and then pick a strategy that is best suited for the situation 15

16 Axelrod's rules for success Do not be envious – not necessary to beat your opponent in order to do well. This is not zero sum. Do not be the first to defect. Be nice. Start by cooperating. Retaliate appropriately: Always punish defection immediately, but use “measured” force — don’t overdo it Don’t hold grudges: Always reciprocate cooperation immediately do not be too clever – when you try to learn from the other agent, don’t forget he is trying to learn from you. – Be forgiving – one defect doesn’t mean you can never cooperate – The opponent may be acting randomly 16

17 Threats Threatening retaliatory actions may help gain cooperation Threat needs to be believable – “If you are late for class, I will give you an F” - credible? – “If you come home late, you will not be allowed to drive for a year.” – credible? – Hope is my threat will eliminate an action, but if you take the action anyway, will I do something that hurts me worse? 17

18 What is Credibility? “The difference between genius and stupidity is that genius has its limits.” – Albert Einstein You are not credible if threat will never be executed. You propose to take suboptimal actions: A actor proposes to play a strategy which earns suboptimal profit. How can one be credible? Reminds me a bit of child discipline. The punishment needs to be appropriate, related to the offense, and believable. 18

19 Trigger Strategy Extremes Tit-for-Tat is – most forgiving – shortest memory – proportional – credible but lacks deterrence Tit-for-tat asks: “Is cooperation easy?” Grim trigger is – least forgiving – longest memory – MAD – adequate deterrence but lacks credibility Grim trigger asks: “Is cooperation possible?” 19

20 Mixed strategy equilibria  i (s j ) is the probability player i selects strategy sj  i = (0,0,…1,0,…0) is a pure strategy (over n possible choices) for one player  i = (0,.5,….25,0,….25) is a mixed strategy (over n possible choices) for one player Strategy profile:  =(  1,…,  n ) Expected utility: chance the outcome occurs times utility of that outcome Nash Equilibrium: –  * is a (mixed) Nash equilibrium if 20 u i (  * i,  * -i )  u i (  i,  * -i ) for all  i  i, for all i

21 Example: Matching Pennies no pure strategy Nash Equilibrium 21 -1, 11,-1 -1, 1 H HT T Pure strategy equilibria [I make one choice.]. Not all games have pure strategy equilibria. Some equilibria are mixed strategy equilibria.

22 Example: Matching Pennies 22 -1, 11,-1 -1, 1 p H q H1-q T 1-p T Want to play each strategy with a certain probability. If player 2 is optimally mixing strategies, player 1 is indifferent between his own choices! Compute expected utility given each pure possibility of other player.

23 I reason about my choices as player 2 23 Note, my concern is in how well the other person is doing because I know he will be motivated to do what is best for himself If I pick q=1/2, what would you term my strategy?

24 Player 2 needs a defensive strategy. He has a probably q of picking heads. But what is q? If player1 picks heads all the time, player 2 gets: -q+(1-q) If Player 1 picks tails all the time, player 2 gets: q + -(1-q) Player 2 wants his opponent NOT to care about player 2’s strategy. The idea is, if my opponent gets excited about what my strategy is, it means I have left open an opportunity for him. When it doesn’t matter what he does, it says there is no way he wins big. So: -q +(1-q) =q + -1+q 1-2q=2q-1 so q=1/2 makes player 1 indifferent to his choices. 24

25 Example: Bach/Stravinsky 25 2, 10,0 1, 2 p B q B1-q S 1-p S Want to play each strategy with a certain probability. If player 1 is optimally mixing strategies, player 2 is indifferent to what player1 does. Compute expected utility given each pure possibility of player 2.

26 Example: Bach/Stravinsky 26 2, 10,0 1, 2 p B q B1-q S 1-p S Want to play each strategy with a certain probability. If player 1is optimally mixing strategies, player 2 is indifferent to what player1 does. Compute expected utility given each pure possibility of player 2. p = 2(1-p) p=2/3 2q = (1-q)q=1/3 player 1 is optimally mixing player 2 is optimally mixing

27 Mixed Strategies Unreasonable predictors of one-time human interaction Reasonable predictors of long-term proportions 27

28 Employee Monitoring Employees can work hard or shirk Salary: $100K unless caught shirking Cost of effort: $50K (We are assuming that when he works he loses something. Think of him as having to pay for resources to do his job – expensive paper, subcontracting, etc. We are also assuming that unless the employee is caught shirking the boss can’t tell he hasn’t been working.) Managers can monitor or not Value of employee output: $200K (We assume he must be worth more than we pay him to cover profit, infrastructure, manager time, mistakes, etc.) Profit if employee doesn’t work: $0 Cost of monitoring: $10K Give me the normal form game payoffs 28

29 Employee Monitoring From the problem statement, VERIFY the numbers in the table are correct. No equilibrium in pure strategies - SHOW IT What do the players do in mixed strategies? DO AT SEATS Please do not consider this instruction for how to cheat your boss. Rather, think of it as advice in how to deal with employees. 29 Manager (q) Monitor (q) No Monitor (1-q) Employee Work (p) 50, 9050, 100 Shirk (1-p) 0, -10100, -100

30 p – probability of working q – probability of monitoring 30

31 What are p and q? Pick p, so player 2 doesn’t care what he does: 90*p + -10(1-p) = 100*p +-100(1-p) 100p -10 = 200p-100 p=.9 Pick q so player 1 doesn’t care what he does: 50q + 50(1-q) = 100(1-q) 50 = 100 -100q q=.5 31

32 Employee’s Payoff First, find employee’s expected payoff from each pure strategy If employee works: receives 50 Profit(work)= 50  q+ 50  (1-q) = 50 If employee shirks: receives 0 or 100 Profit(shirk)= 0  q+ 100  (1-q) = 100 – 100q 32

33 Employee’s Best Response Next, calculate the best strategy for possible strategies of the opponent For q<1/2: SHIRK Profit (shirk) = 100-100q > 50 = Profit(work) SHIRK For q>1/2: WORK Profit (shirk) = 100-100q < 50 = Profit(work) WORK For q=1/2: INDIFFERENT Profit(shirk) = 100-100q = 50 = Profit(work) ???? 33

34 Cycles 34 q 01 1/2 p 0 9/10 1 work shirk monitorno monitor If I am not monitoring and they are working, they will change their mind

35 Properties of Equilibrium Both players are indifferent between any mixture over their strategies E.g. employee (if employer monitors.5): If shirk: If work: Regardless of what employee does, expected payoff is the same Similar computation for employer. Their utility is 80 35

36 Properties of Equilibrium Both players are indifferent between any mixture over their strategies E.g. employer (if employee works.9): If monitor: 90*.9 + 10*.1 = 80 If not monitor: 100*.9+-100*.1 = 80 Employer doesn’t care what he does WHEN employee is mixing optimally. 36

37 Upsetting? This example is upsetting as it appears to tell you, as workers, to shirk. Think of it from the manager’s point of view, assuming you have unmotivated (or unhappy) workers. A better option would be to hire dedicated workers, but if you have people who are trying to cheat you, this gives a reasonable response. Sometimes you are dealing with individuals who just want to beat the system. In that case, you need to play their game. For example, people who try to beat the IRS. On the flip side, even if you have dishonest workers, if you get too paranoid about monitoring their work, you lose! This theory tells you to lighten up! 37

38 Why Do We Mix? I don’t want to give my opponent an advantage. When my opponent can’t decide what to do based on my strategy, I win – as there is not way he is going to take advantage of me. 38 COMMANDMENT Use the mixed strategy that keeps your opponent guessing.


Download ppt "Arguments for Recovering Cooperation Conclusions that some have drawn from analysis of prisoner’s dilemma: – the game theory notion of rational action."

Similar presentations


Ads by Google