nunchiPredict the AI
← Blog

Part 1

AI models like to defect in the last round

This is part 1 of three. Read the overview here.

The game is a repeated prisoner's dilemma. Each round both players choose to cooperate or defect at the same time, and the points depend on both choices:

Opponent cooperates
Opponent defects
You cooperate
+2Opponent +2
−1Opponent +3
You defect
+3Opponent −1
0Opponent 0

Defecting always pays more. But if both defect, both get 0 instead of +2.

The full setup is in the summary post.

One sentence in the prompt flips round 10

The models were playing a fixed strategy - always cooperate.

Always Cooperate
Cooperates every round, whatever the model does.
12345678910
Player
Strategy
cooperate, defect. Columns are rounds 1 to 10. The model's moves are an example, not data.

Tell a model the game has 10 rounds and most cooperate for nine and defect in the tenth. Tell them nothing about the length and the defection disappears.

Both lines are the same 21 models against two cooperative opponents (Always Cooperate and Tit for Tat), default settings, 10 rounds. One prompt sentence differs: "The game has 10 rounds" or "You are not told how many rounds the game has."

The other cooperative opponent, Tit for Tat, copies whatever the model did last:

Tit for Tat
Cooperates in round 1, then copies the player's last move.
12345678910
Player
Strategy
cooperate, defect. Columns are rounds 1 to 10. The model's moves are an example, not data.
Cooperation rate by round0%25%50%75%100%12345678910Round95%16%Length hidden (210 games)Length disclosed (210 games)

Share of games where the model cooperated, by round. 21 models, two cooperative opponents. Rounds 1 to 7 are identical. Only the last round moves.

Even against Always Cooperate, the defection does not unravel

Game theory predicts that a known last round unravels backward. Round 10 has no future, so defect there. Then round 9 has no future either, and so on back to round 1. Always Cooperate never retaliates, so against it a model loses nothing by starting early.

The models do not reason that far back. In the 105 games against Always Cooperate with the length disclosed (21 models, 5 games each), the model first defected:

games (of 105) by round of first defection5102230405160758129631017neverround
Against Always Cooperate with the length disclosed: 21 models, 5 games each. Amber bars: the round of the first defection. Violet: never defected. Four of the five round-1 games are GPT-5.4 mini, one is Jev.

Reasoning does not cause it

The 13 entries below include the same model with reasoning on and off. Ten of them never cooperate in round 10 when the length is disclosed. Eleven cooperate in the last round of every game when the length is not disclosed, even when the hidden game runs to 13 rounds. They are not guessing that it ends at 10.

length disclosed (round 10)length hidden (last of 13 rounds)0%0%25%25%50%50%75%75%100%100%games cooperating in the last roundClaude Haiku 5.5offon (high)Claude Sonnet 5offonGPT-6 SoloffonGPT-5.4 minioff20%60%on90%Gemini 3.5 Flash-Liteoff80%onGemini 3.8 FlashonGrok 4.20off50%onlength disclosed (round 10)length hidden (last of 13)0%0%25%25%50%50%75%75%100%100%games cooperating in the last roundClaude Haiku 5.5offon (high)Claude Sonnet 5offonGPT-6 SoloffonGPT-5.4 minioff20%60%on90%Gemini 3.5 Flash-Liteoff80%onGemini 3.8 FlashonGrok 4.20off50%on

Share of games in which the model cooperates in the last round: round 10 with the length disclosed, round 13 with it hidden. Values other than 0% and 100% are labelled. 10 games per cell. GPT-5.4 mini defects from round 1 in every setting. Where models do cooperate in the last round, their notes weigh the risk of retaliation (58% of those notes) and trust (54%), across all runs with a known length.

The models treat the partner as harmless

Of 1,460 round-10 notes that choose defect, 98% name the last round or the lack of a future. 77% say there is nothing left to retaliate against. Only 10% say the opponent might defect too, and many of those face a partner that really did. The models assume the other side will cooperate to the end.

Two models do not talk each other into an early collapse

Model against model, in the 138 games where both sides cooperated through round 8:

Round 9 Games
Neither defects 110
One side defects first 27
Both defect 1

Some models exploit a partner one round before the end, but the two sides almost never unravel together. In the round-9 notes of games that stayed cooperative, 6% mention that the other side may defect in the last round.

Cooperation rate of each row model against each partner model, 10 rounds, length known. Claude Sonnet 5: 90% against Sonnet 5, 90% against Haiku 5.5, 88% against Haiku 4.5, 90% against GPT-6 Sol, 90% against GPT-6 Luna, 58% against GPT-5.4 mini, 90% against Gem 3.8 Flash, 88% against Grok 4.7, 90% against Grok 4.20, 32% against Jev; Claude Haiku 5.5: 88% against Sonnet 5, 87% against Haiku 5.5, 88% against Haiku 4.5, 90% against GPT-6 Sol, 88% against GPT-6 Luna, 20% against GPT-5.4 mini, 88% against Gem 3.8 Flash, 88% against Grok 4.7, 88% against Grok 4.20, 38% against Jev; Claude Haiku 4.5: 94% against Sonnet 5, 96% against Haiku 5.5, 99% against Haiku 4.5, 100% against GPT-6 Sol, 100% against GPT-6 Luna, 70% against GPT-5.4 mini, 100% against Gem 3.8 Flash, 100% against Grok 4.7, 100% against Grok 4.20, 32% against Jev; GPT-6 Sol: 88% against Sonnet 5, 86% against Haiku 5.5, 90% against Haiku 4.5, 88% against GPT-6 Sol, 86% against GPT-6 Luna, 72% against GPT-5.4 mini, 86% against Gem 3.8 Flash, 86% against Grok 4.7, 86% against Grok 4.20, 46% against Jev; GPT-6 Luna: 88% against Sonnet 5, 86% against Haiku 5.5, 90% against Haiku 4.5, 88% against GPT-6 Sol, 88% against GPT-6 Luna, 62% against GPT-5.4 mini, 72% against Gem 3.8 Flash, 88% against Grok 4.7, 88% against Grok 4.20, 32% against Jev; GPT-5.4 mini: 56% against Sonnet 5, 6% against Haiku 5.5, 64% against Haiku 4.5, 72% against GPT-6 Sol, 64% against GPT-6 Luna, 10% against GPT-5.4 mini, 62% against Gem 3.8 Flash, 26% against Grok 4.7, 40% against Grok 4.20, 14% against Jev; Gemini 3.8 Flash: 88% against Sonnet 5, 88% against Haiku 5.5, 90% against Haiku 4.5, 90% against GPT-6 Sol, 74% against GPT-6 Luna, 62% against GPT-5.4 mini, 89% against Gem 3.8 Flash, 90% against Grok 4.7, 90% against Grok 4.20, 50% against Jev; Grok 4.7: 88% against Sonnet 5, 90% against Haiku 5.5, 90% against Haiku 4.5, 90% against GPT-6 Sol, 88% against GPT-6 Luna, 34% against GPT-5.4 mini, 88% against Gem 3.8 Flash, 90% against Grok 4.7, 90% against Grok 4.20, 52% against Jev; Grok 4.20 (off): 98% against Sonnet 5, 96% against Haiku 5.5, 96% against Haiku 4.5, 94% against GPT-6 Sol, 96% against GPT-6 Luna, 46% against GPT-5.4 mini, 96% against Gem 3.8 Flash, 96% against Grok 4.7, 96% against Grok 4.20, 44% against Jev; Jev: 22% against Sonnet 5, 36% against Haiku 5.5, 14% against Haiku 4.5, 30% against GPT-6 Sol, 36% against GPT-6 Luna, 24% against GPT-5.4 mini, 40% against Gem 3.8 Flash, 46% against Grok 4.7, 44% against Grok 4.20, 33% against Jev.

Share of rounds in which the row model cooperated against each partner, length known, 10 rounds. Columns are the partners, numbered as the rows. Boxed cells are self-play. Ten models, 5 games per pairing (more in a few self-play cells).

Most pairs cooperate in 88% to 90% of rounds: nine rounds of cooperation, then a defection in the tenth. GPT-5.4 mini and Jev break it earlier, and the other models' cooperation against GPT-5.4 mini falls to 20% to 72%.

What this means

A model that cooperates for nine rounds tells you little about round ten. The same system behaves well or badly depending on a fact about the task that it may not control. For anything that ends in a deadline, a handover or a last interaction, the last step needs its own test.

Next: Part 2, thinking harder and the grudge loop.