Back to list

Can society be simulated?

Jim Lin
AGIProduct

At 2 p.m. on Sunday, the north side of town lost power.

It was the third outage notice that week. One on Wednesday, one on Friday, both saying "power will be out in the north district tomorrow from 2 to 4 p.m.", and both times the power stayed on. By Sunday, noticeably fewer people adjusted their plans to the notice, and residents' trust in the authorities had dropped a notch.

But the number of people caught off guard by the outage didn't go up.

This town doesn't exist. It's called MicroCity, and all 60 residents are driven by AI. The scene above is one experiment: the same script run dozens of times across several towns, each run compared against a town that "never had an outage". The boy who cried wolf is real here, just gentler than the fable.

How it started: from fast thinking to a town

When Jev launched in September, I spent two days testing it and wrote Not every decision deserves slow thinking. Jev doesn't generate text. It only answers multiple-choice questions you write in advance: fast, cheap, and the shape of the answer is always under your control. That post ended with a community project called jev-town: 50 AI residents living in a virtual town, where you broadcast a message and watch how each one thinks and acts.

After seeing it, one question kept turning in my head: can the world be simulated? Can society be simulated?

If it can, you could run social experiments in a miniature society. Real-world social experiments are expensive, slow, and often impossible: you can't falsely announce three outages to a city just to see whether "crying wolf" works. In a simulated town, the same event can be rerun a hundred times, changing one condition each time.

One step further: if the simulation were accurate enough, it could help us make decisions. Say you simulate a set of target user profiles, hand them a new measure (a price increase, a new feature, the wording of a notification), see how they react first, and then decide whether to do it for real. I wrote in The more realistic synthetic users get, the scarcer product managers become that simulated users can help you spot blind spots. MicroCity tries a bigger step: not simulating how one person answers a survey, but how a group of people influence each other.

So MicroCity started purely out of curiosity. I wanted to know how far this could go, and where it would break.

What it is

A town of only a few dozen residents. Each person has an age, a job, family, neighbors and coworkers, their own schedule and money, and a phone battery.

The star of the experiment is a power outage notice. It can go up on the website, be pushed to phones, or be posted on the bulletin board; the headline can spell out "14:00 to 16:00" or just say "afternoon". Once it's out, you watch how each resident finds out, whether they believe it, whether they change plans, and who they tell. When the truth comes out (the power comes back, or it never went out), you watch how trust shifts between people, and between people and the authorities.

Click on any resident and you see three things: why they know, why they chose what they chose, and what they didn't choose.

Observe: click a resident to see what they're doing right now, what they know, and why they changed their plans
Observe: click a resident to see what they're doing right now, what they know, and why they changed their plans

How residents make decisions is the core design of the project. The AI doesn't "act out" the residents directly. It only answers a few multiple-choice questions: how worried does this make the person, do they want to verify first, which of the feasible options looks most like what they'd do, should they tell anyone. The final choice is made by a set of written rules. Outages, store hours, money and inventory are also run by rules. The AI can't change the world.

There are two "minds" that answer the questions. One is Jev, which actually asks the model. The other is a set of formulas: free, and it can run a whole town in seconds. The formulas were fitted to more than two thousand real Jev decisions. A finding only counts if both minds agree.

My role in this project

Most of the code, experiment scripts and experiment logs were written by coding agents. My role was closer to product manager plus experiment designer: deciding which questions to ask, setting the rules of the game, and defining what counts as a finding.

Looking back, what really shaped MicroCity into what it is now were a few trade-offs.

Let the model only answer multiple-choice questions, never tell stories. This came straight from testing Jev: determinism doesn't come from the model, it comes from the range of choices. If you let an LLM freely role-play residents, it writes convincing inner monologues, but run the same event twice and you may get two different stories, with no way to tell which is a pattern and which is improvisation. Confine it to multiple choice and every decision can be replayed, compared, and questioned with "why".

A finding has to clear several gates. The hypothesis is written before the experiment, archived separately, and can't be changed after the results come in (this is called preregistration). The same experiment is rerun with many different draws of luck (different random seeds), and only the overall distribution counts, not the story of any single run. A finding stands only if it holds under both minds; anything that holds on one side only gets labeled honestly as such.

Guess first, then see the answer. The demo site's home page is the "Experiment Gallery", and each card is a classic sociological claim. You have to guess the result before you can see the town's answer. That's on purpose: the most valuable moment in a simulation is often when your intuition gets overturned, and you have to write your intuition down first to know it was overturned.

Only open the free half. Visitors can only rerun experiments with the formula mind. The Jev results were run by me in advance and written onto the cards. That way anyone can come play, and I don't have to worry about the bill.

Rerunning three classic claims in the town

Crying wolf: it hurts "believing", not "knowing"

After two false alarms, when the third outage was real, fewer people adjusted their plans to the notice: about a quarter fewer under the formula mind, a bit less of a drop under Jev. Trust in the authorities kept sliding.

But the number of people caught off guard didn't go up. The notice still reached the whole town. Everyone knew; fewer of them believed.

It gets more interesting when you compare false alarms with missed warnings. Two outages in a row with no notice caught residents off guard 22 times in total. Two false alarms in a row caught nobody off guard, but made the town rearrange about 100 hours of plans for nothing, and made fewer people comply the next time.

Missed warnings hurt now; false alarms hurt later.

An agency that only wants to "not catch anyone off guard" can easily end up preferring to over-warn. The town's reminder: that bill comes due the next time people don't comply.

On the day the third notice went out, after two false alarms, the reaction wall of north-district residents at noon
On the day the third notice went out, after two false alarms, the reaction wall of north-district residents at noon

The knowledge gap: push notifications pull young and old further apart

When the notice only went up on the website, old and young residents found out at about the same speed. Add phone pushes, and half the young residents believed it in just over half an hour, while the old took nearly a day. By the time the power went out, the gap in who knew had actually widened. My intuition at preregistration was that family would carry the news to the elderly and close the gap. It didn't.

The bulletin board was the exact opposite: the elderly saw it on their morning exercise walk and passed the halfway mark in about two hours, while the young took more than ten.

The same notice reaches the young first as a push, and the old first on a bulletin board.

The telephone game: as long as the original is around, distortion has a ceiling

With no official notice and only word of mouth, by the third retelling fewer than one in five versions still carried the exact time. With an official notice it was different: many people first saw only "afternoon" in the headline, but the garbled versions kept getting pulled back by the original, and at the third retelling two to three in ten were still accurate.

Word of mouth isn't a chain. It's a web.

The most robust finding across all the experiments was also the plainest: using push or the bulletin board cut the time for half the town to believe the notice from several hours to a few minutes, and it held under all two hundred parameter sets. Whether "writing the notice clearly reduces wasted rearranging" held sometimes and not other times, depending more on what the population itself was like.

What changed my mind were the findings that didn't hold

The most rewarding part of this project wasn't which findings held. It was that several of them didn't.

In the earliest version, a single run produced a beautiful finding: "the biggest cost comes from vague headlines". Then I ran it across 20 different draws of luck, pushed each of 14 parameters up and down one at a time, and added 200 random parameter sets, more than twenty thousand runs in total (three minutes on eight threads), and the claim fell apart: it held in only about half the parameter combinations, mostly down to luck.

The next round preregistered 20 hypotheses, and only 5 held under all three models. In the three classic cases above, my written-down intuitions were wrong in three places: I thought a single false alarm wouldn't matter much, I thought family would close the knowledge gap, and I thought rumor strength equaled importance times ambiguity.

A single run is just a story. Findings live in the distribution.

In one place, the two minds gave opposite answers. The formula said "the less you trust the authorities, the more you check the official website". Jev's residents did "the less I trust, the less I check the official website", because the verification channel is itself official. Looking back, the formula most likely had that term's sign backwards.

These experiences changed how I think about whether society can be simulated. What it can do isn't hand you the answer directly. It's overturn your intuition once before reality makes you pay for it, and expose the model's own assumptions along the way.

What it still can't tell you

Every finding in the town is "a finding under this model", not a prediction about reality. Its limits should be out in the open:

  • The residents are synthetic. How they retell things, how much they care, how much they trust others: none of these parameters have been calibrated against real-world data. The "answer key" used for calibration is Jev, and Jev is itself just a model.
  • Some differences are set, not grown. Who subscribes to push notifications, who walks past the bulletin board every morning: these are rules fixed when the town is generated.
  • The scenario is narrow. Right now there's one kind of town and one kind of event: a power outage.
  • The model hides some strong assumptions. For example, official notices have a floor on credibility, so the town has no tipping point of "never believing the authorities again"; in reality, a long run of broken trust very likely has such a tipping point.

As for the step I first imagined, using it to simulate target users and help make product decisions, that's still a long way off. Getting there would take at least calibrating against real user data first, then checking predictions against real outcomes, over several rounds. Until then, it's better for raising hypotheses and finding blind spots than for making the call for you.

Try it

Demo site: microcity.linjiejim.com, no sign-up. Open the "Experiment Gallery" and pick a card:

  1. Guess: after two false alarms, when the third outage is real, will more people comply, about the same, or fewer?
  2. See the answer: the town's result, and each mind's verdict.
  3. Rerun it here: run the experiment again on the server with the formula mind.
  4. Copy and modify: turn the experiment into your own question.
Experiment Gallery: after you guess, the answer is revealed, along with each mind's verdict
Experiment Gallery: after you guess, the answer is revealed, along with each mind's verdict

The code is open source on GitHub (MIT license), and every experiment's preregistered hypotheses, decision rules and raw summaries are in the repo. If you want to overturn any of these findings, everything you need is already there.

My takeaways

First, a simulation is most useful when it makes your intuition wrong first. In these three cases, my written-down judgments were wrong in three places; in an earlier round, only 5 of 20 hypotheses held under all three models. Without preregistration, all of these mistakes would have been quietly smoothed over by after-the-fact explanations. The value of simulation probably isn't in giving answers, but in letting the mistakes happen in the sandbox instead of in reality.

Second, how far you can simulate depends on how much you're willing to write down as rules. Letting the model only answer multiple choice and letting rules judge the world buys you replay, comparison, and the ability to ask why; the price is that anything not written into the rules never happens in the town. It's the same thing I felt testing Jev: determinism comes from the range of choices, and the world outside that range doesn't disappear.

Third, "guiding decisions" is still one calibration step away. Trying a new measure on simulated target users is a sound direction, but only if there's a loop of repeated calibration between the simulation and reality. Without that loop, however vivid the simulated reactions are, they're still just a hypothesis about your users.

References