Skip to main content

A Replicated Stag Hunt

The stag hunt line of the continuous PredPreyGrass world gave both coexistence and cooperation above chance only once: in a single training run, in a world where a fat rabbit could be caught only by two hunters touching it together and where hunters could also call. Did that result depend on the calls, or on one lucky run? This page reports a replication set in advance: the same world without calls, renamed to deer, trained three times from scratch. The result held in all three runs. A second set of three runs then changed one rule, so that only touching a deer counts, and the result held again; in that world hunters also began to pair up on large young deer, where a partner pays but is not required, the stag hunt in its strict sense, and a control world in which a partner never pays for a young deer suggests that this pairing follows the payoff. The code, the pre-registrations and every number below are in the deer_stag_hunt module of the PredPreyGrass repository (RESULTS.md, sections 1, 2 and 5).

Key findings​

  • The result replicated. By the verdict rule set before training (all tests met in at least 2 of 3 runs), it replicated: two runs met all three tests at iteration 1000, and the third met the two cooperation tests but kept hunters and deer together in 43 of 50 episodes, short of the 45 required.

  • Cooperation above chance in every run. Hunters approached adult deer with another hunter near 15 to 23% more often than their time near other hunters gives by chance, and more often than they approached fawns. The 95% interval was above zero in all three runs, at every checkpoint measured.

  • Calls were not needed. The world that first showed this pattern also let hunters call. Without calls, and with the inputs and output that came with them removed, the pattern held.

  • The effect is small. At iteration 1000, adults were 1 to 4% of the deer hunters caught and gave 3 to 8% of their energy from deer; most food was still young deer caught alone.

  • It weakened late in two runs. From iteration 500 to 1000, adult catches fell by 84% in one run and 53% in another. At iteration 500 all three runs would have met all tests. Why is not known.

  • It held when only touching counts. In three further runs where a hunter merely near a young deer gets nothing, all three met every test: hunters and deer coexisted in 50 of 50 episodes in each run, and adults were approached with a partner near 12 to 21% more often than chance.

  • A first sign of the strict stag hunt. In that world a large young deer can be caught alone, by chance, or by two hunters for certain, and a partner pays more. Hunters approached the largest young deer with a partner near slightly above chance and teamed up on them nearly as often as on adults, in 2 of 3 runs by tests set in advance; in the original world they did neither. The tests were set after a look at earlier checkpoints, and the margins are small.

  • A control world points to the payoff. In a control world where one hunter catches any young deer for certain, so a partner never pays for one, hunters no longer approached the largest young deer with a partner near above chance, and teamed up on them at under a third of the adult level, in all 3 runs by a rule set in advance. Partnering still rose with the deer's size there, so looks or place may explain part of the rise; the margins are a few percentage points.

  • Two follow-ups did not strengthen it. Adding inherited instincts that evolve did not make hunters better at adults than learning alone, and the instincts evolved towards easy young deer and away from adults. Switched off, the hunters partnered on adults more but caught fewer. Sharing a caught adult with nearby hunters did not raise partnering on adults either (see Two follow-ups).

The world​

Hunters, standing for humans, and deer share an 800 by 800 continuous torus with clustered grass. Each species learns one shared PPO policy (Schulman et al., 2017), rewarded only for births. Deer eat grass and grow; what a deer is worth, and who can catch it, depends on its energy:

DeerEnergyHunter alone (no other hunter within 64 units)Another hunter within 64 units of the deerStag hunt role
Fawn2 or lessalways caughtalways caught, but shared by every hunter within 64 (the others need not touch it)the hare
Middlebetween 2 and 5caught with a chance falling from 1 to 0 as the deer growsalways caught, shared as for a fawnin between
Adult5 or morenever caughtcaught only if two or more hunters touch it within one decision (8 physics steps), shared by those who touched it alonethe stag
Display 1: Catching rules of the original world (run_1 to run_3). A second experiment replaced them with a rule in which only touching counts (Display 6). A failed attempt costs each hunter that touched the deer a wait of one decision. A hunter gains half its share of the deer's energy, so two hunters sharing an adult each get more than a fawn gives one.

The rule for young deer is a sharing rule, kept from the earlier world: a hunter nearby makes the catch certain but takes a share without touching the deer. So the value of a partner grows with the deer's size. Near a fawn a partner costs half the meal; for a middle deer above energy 3.5 a partner gives more in expectation than hunting alone (at energy 4.5, 1.1 each against 0.4 alone); for an adult a partner is required, and the partner has to arrive in time. A lone hunter can live on fawns. The rule makes a partner necessary for an adult, so what is tested is coordination where the task requires two, not the full stag hunt, in which a lone hunter could also take the large prey.

Hunters see up to four other hunters and two deer, with the deer's energy, in a 150° cone of 200 units. Deer see three hunters and three deer in a 240° cone of 267 units, and are faster (top speed 6 against 5). Hunters breed at energy 12 and deer at 7. An episode lasts 8000 physics steps.

Display 2: Animation of 25 seconds of an episode with trained policies: hunters with spears move among deer of three sizes on a light blue torus; adult deer have antlers, fawns are small with white spots; grey and blue view cones show what one deer and one hunter see
Display 2: A stretch of an evaluated episode of run_2's final policies (seed 0). Adult deer, catchable only by two hunters together, have antlers; fawns are small with white spots; middle deer are plain.
Display 3: Line chart of the same episode over 8000 physics steps: deer numbers swing between about 10 and 67, with fawns, middle and adult deer each swinging between about 1 and 32; hunters rise slowly from 6 to about 13 and end at 9; both species are alive at the end
Display 3: Populations over the whole episode of Display 2. Both species are alive at the end, as in 49 of run_2's 50 evaluated episodes. In this episode hunters caught 636 young deer and 26 adults.

What was tested​

Three runs (run_1, run_2, run_3) trained from scratch for 1000 iterations each, differing only by chance. Each final checkpoint was tested on:

  1. Coexistence: hunters and deer both alive at the end of at least 45 of 50 evaluated episodes.
  2. Cooperation: approaches to adults have another hunter within 64 units more often than approaches to fawns, and more often than chance. Chance is the share of all hunter time spent with another hunter that near (20 evaluated episodes).
  3. Above the earlier world: adult share divided by chance above 0.90, the value of the stag hunt line's lean-and-fat world, where a fat rabbit needed a party nearby but not two touches.

The tests, the verdict rule and the hard stop (no change to the world after the runs) were written down before training. Checkpoints 250 and 500 were recorded as well, but were not tests.

Results​

RunCoexisting (of 50)ChanceFawn shareAdult shareAdult ÷ chanceAdult − chance, 95% intervalTests met
run_1430.0740.0580.0891.20[0.002, 0.028]2, 3
run_2490.1550.1170.1901.23[0.024, 0.045]1, 2, 3
run_3500.1250.0950.1441.15[0.010, 0.027]1, 2, 3
With calls (earlier, one run)490.1320.1551.18
Display 4: Final checkpoints (iteration 1000). A share is the fraction of approaches with another hunter within 64 units. Verdict: replicated. In run_1's 7 failed episodes the hunters died out.
Display 5: Two charts over training iterations 250, 500 and 1000 for three runs. Left: adult share with a partner near minus chance, in percentage points with 95% intervals; all nine points lie between 1.5 and 4.5, all intervals above zero, run_1's lowest at iteration 1000 at 0.2. Right: adults caught in 50 episodes; run_1 falls from 1757 to 1481 to 243, run_2 goes from 1043 to 1298 to 1130, run_3 from 1393 to 1491 to 706
Display 5: Left: how much more often adults were approached with a partner near than chance, with bootstrap 95% intervals over episodes. Right: adults caught over 50 evaluated episodes. At iterations 250 and 500 all three runs coexisted in 50 of 50 episodes.

Cooperation above chance was there early and stayed: at iterations 250 and 500 all three runs coexisted in every episode, with adult ÷ chance between 1.17 and 1.25. What changed late was how much hunting of adults there was. In run_1, adult catches fell from 1481 to 243 between iterations 500 and 1000, hunter births fell from 1042 to 439, and 7 episodes lost all hunters; in run_3 adult catches halved. Approaches to adults still had a partner near more often than chance, but there were fewer of them. This experiment did not test why.

Only touching counts​

In the world above, a hunter near a young deer shares it without touching it. That rule is not needed for a stag hunt, gives hunters a share for nothing, and builds in part of the fawn comparison. A second experiment, written down before training like the first, changed only that rule:

  • every touch is a solo attempt: a fawn is always caught, a middle deer with a chance falling from 1 at energy 2 to 0 at energy 5, an adult never; the catch goes to the toucher alone;
  • two or more hunters touching a deer within one decision catch it whatever its size, and share it between them only;
  • a hunter merely near gets nothing.
DeerEnergyOne hunter touches itTwo or more hunters touch it within one decisionA hunter near but not touching
Fawn2 or lessalways caught, all for the touchercaught, shared by the touchersgets nothing
Middlebetween 2 and 5caught with a chance falling from 1 to 0 as the deer grows, all for the touchercaught, shared by the touchersgets nothing
Adult5 or morenever caughtcaught, shared by the touchersgets nothing
Display 6: Catching rules of the touch rule (touch_1 to touch_3). Distance to other hunters plays no part: a deer is caught together only when two or more hunters touch it within one decision (8 physics steps). A failed attempt costs the toucher a wait of one decision, as before.

Adults are caught exactly as before. Three new runs (touch_1, touch_2, touch_3) were trained from scratch and tested as before, with the same verdict rule and the same hard stop. The cooperation tests kept the same measure too: an approach with another hunter within 64 units of the deer. Under the touch rule that distance plays no part in catching; it measures only where the hunters are, and was kept so that the two experiments compare directly. The measure that fits the touch rule, two hunters touching the deer together, comes in the next part.

RunCoexisting (of 50)ChanceFawn shareAdult shareAdult ÷ chanceAdult − chance, 95% intervalTests met
touch_1500.1320.0930.1481.12[0.006, 0.026]1, 2, 3
touch_2500.1420.0990.1711.21[0.023, 0.036]1, 2, 3
touch_3500.0820.0540.0951.15[0.004, 0.021]1, 2, 3
Display 7: Touch rule, final checkpoints (iteration 1000), same tests as Display 4. Verdict: replicated, in all three runs. All three runs coexisted in 50 of 50 episodes at iterations 250 and 500 too.

So the sharing rule for young deer was not needed for this result. The limits carry over: adults were 1.5 to 3.2% of the deer caught, and adult catches again fell between iterations 500 and 1000, by 25 to 44%, though no run lost its hunters.

Pairing where a partner pays but is not required​

Under the touch rule, a middle deer is a small stag hunt of its own. A hunter can try it alone and catch it with a chance that falls as the deer grows, or two hunters can take it for certain and split it. Per hunter, alone pays more below energy 3.5 and a partner pays more above it. Nothing forces a partner, so this is the stag hunt in its strict sense, which no earlier world of this line had shown.

After a first look at earlier checkpoints of touch_1 and touch_2, three tests were written down before the final checkpoints existed. In each run: (A) the share of approaches with a partner near rises from middle deer of energy 2 to 3.5 to those of energy 4 to 5; (B) for the largest middle deer (energy 4.5 to 5) it is above chance; (C) two hunters touch middle deer of energy 4 to 5 together at least half as often as they do adults. The pattern counts as shown if all three hold in at least 2 of the 3 runs.

Display 8: Two line charts over deer energy, from fawn through six middle-deer bands to adult, three blue lines for the touch-rule runs and three orange lines for the original-rule runs. Left: share of approaches with a partner near divided by chance; all lines dip to about 0.4 to 0.7 for small middle deer and rise with energy; the blue lines cross chance at energy 4.5 to 5, at 1.09 to 1.15, while the orange lines stay at 0.81 to 0.91 there; at adults all lines are at 1.09 to 1.23. Right: joint touches divided by joint touches on adults; the blue lines rise steadily from about 0.1 to about 1.0 at energy 4.5 to 5; the orange lines stay below 0.4 until adults
Display 8: Partnering by the deer's energy at the approach, final checkpoints, 40 evaluated episodes per run. Blue: touch rule (touch_1 to touch_3); orange: the original world (run_1 to run_3). Shaded: middle deer for which a partner pays more than hunting alone.

Verdict: pattern shown. touch_2 and touch_3 met all three tests; touch_1 met A and C and missed B narrowly (its 95% interval for near share minus chance was −0.001 to +0.025). touch_3, the one run nobody had looked at before the tests were set, met all three. Under the original rule all three runs failed B and C: there the largest middle deer stayed below chance, and joint touches on them were about a quarter of the adult level.

This is consistent with hunters pairing up where a partner pays without being required. It is not proof of choosing by payoff. The crossing of chance comes near energy 4.5, not at the break-even of 3.5. Large middle deer differ from adults only by a little energy, so they may share places with adults, or hunters may simply treat them like adults; a joint-touch level close to the adult one would look the same either way. A control world separates these explanations (next part).

A control world: when a partner never pays​

To tell payoff apart from place and looks, three more runs (control_1 to control_3, 500 iterations) were trained in the touch world with one change, set in advance: one hunter catches any fawn or middle deer for certain. Adults still need two. A partner now never pays for a young deer, since sharing only halves a meal that is certain anyway, but the deer stand where they stood and look as they looked. If payoff drove the pairing on large middle deer, it should vanish here; if place or likeness to adults drove it, it should stay. The rule: payoff is supported if, in at least 2 of 3 runs that keep hunters and deer together (45 of 50 episodes or more), test B fails and joint touches on deer of energy 4 to 5 stay clearly below half the adult level.

RunCoexisting (of 50)Partner near, energy 4.5 to 5, ÷ chanceB: near − chance, 95% intervalC: joint (4 to 5) ÷ joint adult, 95% interval
control_1480.94[−0.026, +0.001]0.31 [0.27, 0.35]
control_2490.90[−0.036, −0.007]0.28 [0.24, 0.32]
control_3490.86[−0.043, −0.013]0.28 [0.23, 0.32]
touch_1, iteration 500501.18[+0.017, +0.039]1.00 [0.91, 1.11]
touch_2, iteration 500501.13[+0.011, +0.032]0.89 [0.82, 0.97]
touch_3, iteration 500501.04[−0.005, +0.013]0.84 [0.76, 0.93]
Display 9: Control world (one hunter catches any young deer for certain), final checkpoints (iteration 500), 40 evaluated episodes per run; the touch-rule runs at the same training length for comparison, in italics. Verdict: payoff supported, in all three runs. Adults, which still need two, were approached with a partner near 1.10 to 1.17 times as often as chance.

Verdict: payoff supported. Without a payoff for a partner, hunters stayed just below chance with the largest middle deer, and teamed up on them less than a third as often as on adults, much as in the original world. So place and likeness to adults did not by themselves produce the pairing seen under the touch rule; the result is consistent with hunters pairing up more where a partner pays.

It has limits. Partnering still rose with the deer's size in the control world, even more steeply, so place or likeness may explain part of that rise; what the control lacks is the step from just below chance to above it. Hunters teamed up on adults more often in the control world, which lowers the ratio in test C from the adult side too, so test B is the cleaner comparison. The two worlds also differ in food: easy catches feed the hunters more, and they stood closer together. The verdict rests on the pattern being absent in one world, not on a direct test of the difference, and the margins are a few percentage points.

Two follow-ups: instincts and sharing​

Two experiments built on the touch world, each pre-registered with a hard stop. Neither met its main test.

Inherited instincts plus learning. In the eco_evolutionary_deer_stag_hunt module every hunter carries inherited pulls towards or away from other hunters, young deer and adult deer, passed to its offspring with small mutations. In six runs (arm B) these pulls steer behaviour on top of the shared learned policy; in six others (arm L) hunters carry them but they do nothing. The deer learn alongside the hunters in every run. Each run's hunters were tested against the deer of the eleven other runs, so that no run wins by having easy deer.

ArmAdults caught per episodeSuccess per adult attemptPartner near adults ÷ chanceEvolved pull: young deer / adults
L: learning only (6 runs)18.60.0201.08 to 1.16drift, both directions
B: learning plus instincts (6 runs)14.20.0230.83 to 0.93+0.9 / −0.8 in every run
Display 10: Against a common panel of coevolved deer, iterations 500 to 1000. The main test (B above L on both adults caught and success per attempt) was not met: p 0.92 and 0.10. Hunters and deer coexisted in both arms. The last two columns were reported, not tested; pulls range from −1 to +1.

Where the instincts acted, evolution moved them the same way in all six runs: strongly towards young deer, which a hunter catches alone, and away from adults, which need two. Those hunters approached adults with a partner near less often than chance, while learning alone stayed above it. This looks like the stag hunt's familiar outcome, selection favouring the safe option over the risky joint one, but it is a reading, not a tested claim: the two arms differ in their whole history, including their deer. A pre-registered follow-up then switched the instincts off in the trained B hunters, keeping everything else the same. Their approaches to adults with a partner near rose from below chance to above it in all six runs, above every L run against the same deer. But they caught fewer adults, fed and bred less, and in some runs often died out. So the learned policy relied on the instincts to find food, and no better cooperative strategy appeared beneath them. The instincts and the learned policy pulled partnering in opposite directions, and the instincts won; the hypothesis that learning had built a more successful cooperative strategy underneath was not supported.

Sharing big game. In the deer_food_sharing module the catchers of an adult keep half, and the other half goes to every hunter within 128 units, as human foragers share large game widely. Three runs coexisted in 50 of 50 episodes, but approached adults with a partner near 1.04 to 1.12 times chance, not above the three touch runs (1.12 to 1.21), and caught no more adults. A theory model predicted this before training: sharing with everyone nearby is a transfer to free-riders, and sharing only among hunters of big game helps only when big game pays clearly more than the alternative, 1.2 to 1.75 times at the deer world's success rates. Field data on hunter-gatherers do not clearly show big game paying that much more. By the rule set in advance, the sharing line ends here.

Selection between groups. The textbook answer to a stag hunt is that groups which settle on the joint hunt outgrow or replace groups that do not. Before building it into the deer world, a theory screen tested it in the same stag hunt model, with 14 groups and two rules: the worst group replaced by a copy of the best, or a growing group splitting into a weaker neighbour. Neither let stag hunting take over, at any payoff ratio up to 1.75. The reason is arithmetic: when a hunt that needs two often fails and a missed meal costs more than a big one gains, even a group of only stag hunters is less fit than a group of hare hunters, so selection between groups has nothing to favour. Pooling the catch within the group would remove that cost; the two together were not tested. By the rule set in advance, this line too ends at the screen.

What this does and does not show​

Within this world, hunters learned to approach the prey that needs two with another hunter nearby more often than chance, in three runs out of three, and calls were not needed for it. The result held again, in three runs out of three, when only touching counts. That makes this the one replicated cooperation result in the stag hunt line.

It has clear limits:

  • For adults, a partner is required by rule. The main result is coordination where the task demands two, not the stag hunt in its strict sense, where hunters choose a partner for a bigger share although alone they could also succeed. The pairing on large middle deer under the touch rule is the first sign of that version in this line, but it is small and its tests were informed by a look at earlier checkpoints. A control world without a payoff for a partner did not show it, which points to the payoff rather than to place or likeness to adults, though the worlds also differ in ecology.
  • The measure is an approach with a partner near, not proof that hunters seek a partner. Hunters may meet near adults for other reasons, such as shared grass areas or deer herds; the chance baseline removes only part of that.
  • The fawn comparison is partly built in. A partner near a fawn takes half of it, so hunters have a reason to keep away from others near fawns, which lowers the fawn share. The comparison with chance does not have this bias, and adults were above chance in all three runs, but part of the gap between adults and fawns may come from avoiding sharing rather than seeking partners. Under the touch rule a partner near a fawn takes nothing, and adults were still above fawns in all three runs.
  • The effect is small and fragile. Adults stayed a small part of the hunters' diet, and in two runs catching them declined late in training.
  • Three runs show variation, not a population estimate. Learning is one PPO policy shared by all hunters, not individual learning within a lifetime.

References​