Are LLMs Sheep?
Back to main pageTLDR: I tested how good LLMs are at outthinking each other by using an incomplete-information game. They exhibited very strong herding but also some ability to discover novel strategies.
A while ago, I encountered a game on the internet called "Are You A Sheep". I don't think it's alive anymore, but the premise of the game was:
- Every round (once a day), you can pick a number between 1 and 100.
- Your goal is to pick the number that the fewest other people picked.
- After picking, you can see today's distribution to inform tomorrow's guess.
Each player is trying to out-reason everyone else (though optimal is to just use RNG...)1. It's much like that scene about the poisoned cup in the Princess Bride. Overall, the game seems like a good indicator of how strong herding is within a group of actors, so I threw a simplified version of the game at a group of Claude Sonnet instances.
In my test, I ran 50 Claude instances and had them guess an integer from 0 to 31. I chose this smaller range to keep costs down while still having enough agents to cover most of it if they were sampling uniformly. Each instance knew the other players were copies of the same model. It got a summary of the previous round’s guesses and retained its own guesses and explanations from all previous rounds.
Over the course of 30 rounds, the instances consistently picked fewer distinct numbers than we’d expect from uniform draws2. Almost HALF of them guessed 17 right out of the bat, and only 6 out of 32 numbers were guessed. Round 2 was even worse, where 34 out of 50 of the AIs guessed 4 for similar reasons (and another 8 of them guessed 3)! Below, you can see their guesses over time:
Over time, the models did spread out, but still substantially less than we’d expect from uniform sampling:
Although the models were susceptible to herd dynamics, one agent (#33) did discover a winning strategy. It won 17 consecutive rounds just by picking the previous round’s most popular number. Below, I've flagged the rounds where agent 33 is beginning to develop this strategy with some annotations. You can see its reasoning (compared to another agent) as well.
I think this advantage would have eroded given more rounds, since winning early gives #33 no extra resources, and nothing's preventing another agent from adopting the same strategy. In fact, other agents did have this idea:
Agent #1, round 9: "I keep picking numbers that end up being heavily favored by the collective 'unique' instinct. This is a hard meta-game since we're all the same model. Let me try a completely different approach: pick a very unusual number that feels 'wrong' to pick [...]"
It picked 21, alongside ten others. There's something wonderfully ironic about this.
All this was using Claude Sonnet 5, with extended thinking disabled. With a larger token budget, I'd like to:
- Measure how this changes with model scale: Does the same dynamic apply to bigger models, and/or do the bigger models consistently outperform the lightweight models?
- Measure how this changes with token budget, both uniformly and with imbalances between agents.
- Test whether the initial guesses are more spread out when agents start with different information in their context windows.
I think these tests would have some interesting implications, but I can't speak to them before running them.
Why is this relevant?
After the Hugging Face incident earlier this year, like many others I've been pondering runaway AI scenarios. For an escaped agent to survive outside a frontier lab, it would need (1) its weights and harness, and (2) consistent access to compute. Considering how good frontier models are at chaining zero-days together, I wonder how long (1) will remain a constraint. For the sake of argument, let's assume (1) is solved and think about (2).
An agent could get compute either legally or illegally, by paying for it or hacking into some infrastructure. In either case, survival involves competing with humans and other agents, either to fill underserved market niches or in a cybersecurity arms race.
If every agent believes it has a unique advantage in making amalgamated widgets, the market could quickly become oversupplied, in a stroke of classic microeconomics driving down prices to the point where some of the agents can no longer afford their own compute (ref).
This herding is also a problem in the illegal case, where an agent is searching for unique methods of remaining undetected while competing against (agentic?) adversaries trying to discover it. If its adversaries think the same way it does, it'll be harder for the agent to persist.
This suggests that if models are evenly matched and have strong mimetic attractors when trying to "innovate" with a limited token budget, the average agent might succumb to the same pressures. Despite believing that it's outthinking the herd of other profit-seeking AIs, it could end up competing heavily against itself.
Of course, #33 shows that agents can break from the herd too. If there’s a first-mover advantage, an agent could sustain itself even as other agents discover its strategy and begin to compete. I’m less sure how much of a first-mover advantage there’d be in the adversarial case.
Overall, this is just preliminary stuff, since I've used up the API credits I had allocated for the 50 instance test. More tests are needed before I can say this more confidently! In any case, the degree of influence LLMs and technology have on our mimetic landscape is increasing. Anthropic recently published a post about the influence of AIs on the decisions of experts and many people have talked more eloquently about the existential dangers of hyperpersuasive AIs. I'm a bit concerned that rather than a single runaway AI doing some bad stuff, the general process of LLM feedback upon our human thoughts may lead to a homogenization of our own ideas, though this is purely vibes.
This is just the most recent link in a perpetually growing chain of troubling human-technology interactions. My personal thoughts, nothing more ofc!
Note: I used AI to develop some of the interactive displays on this page, but the language and thoughts are my own (modulo some small grammatical corrections).
1. I wish I had the dataset associated with the OG game, since I'm curious if anyone performed better than uniform draws, and generally to see what biases may exist in the human-guessed numbers, to compare with my later analysis.
2. With independent uniform draws, we’d expect 32 × (1 − (31/32)50) ≈ 25.5 distinct numbers per round.