The wisdom of crowds a.k.a. doing your own experiments

Matt Webb
Posted on:14 Sept 2023

(Hi! Iā€™m Matt. Iā€™m making and sharing with PartyKit for a few months. You can find an intro to what Iā€™m up to over here.)

Some years ago there was a buzz around collective intelligence. One famous experiment gave a game controller to every person in a theatre, and had them land a (simulation of a) jumbo jet by averaging their actions.

I donā€™t have a 747. But another experiment asked a crowd to draw a picture, pixel by pixel, simply by highlighting a single pixel for each person and saying: ā€Weā€™re drawing the number 3. Hereā€™s what weā€™ve got so far. Should this pixel be black or white?ā€

Well, does it work? I couldnā€™t find the original experiment. (If this rings a bell for you, please let me know.)

So I tested it.

10 people drawing a smiley face

Hereā€™s Mosaic Challenge. Itā€™s real-time and multiplayer. Thereā€™s a single challenge. You just get asked to choose whether a tile is black or not.

Play the demo here! (Feel free to reset the game if it has already converged or is old.)

First we get collective intelligence, then we get individual playing around

Result: for a 15x15 grid it takes about 600 tile flips to become recognisable. The wisdom of crowds!

Iā€™ve seen this succeed with a few challenges now: draw a tree, draw a number 3, draw the letter A. It all works.

But then!

It takes a couple hundred turns to get the basic shape, and we get decent recognisability after 600 turnsā€¦ but then, in about half the games Iā€™ve seen, we lose detail. My guess is that the challenge is insufficiently constrainting. People want to flip a tile and, seeing as thereā€™s no longer an obvious goal to guide them, the tile flip becomes essentially random.

Lesson: with collective intelligence, you need to know when to stop. I wonder if thereā€™s a programmatic way to tell when that is?

Also, I suspect that thereā€™s usually a single person (maybe two) driving most of the decision-making, simply by flipping tiles faster than anyone else. I should check that.

Drawing the number 3

Letā€™s look at the code

The first version took me maybe an hour to build and put live. Check out the code on GitHub. There are instructions about how to run it on your own laptop.

Itā€™s neat to be able to run an experiment like this myself.

The party server code is here. It maintains the current board state, and sends that out to any new connected browsers. It broadcasts any new tiles to all connected browsers in real-time.

Youā€™ll also find two other handy tools in the code:

I decided not to use any shared data structure libraries for this because thereā€™s not much going on ā€” there are no complex edits to be merged or conflicts resolved. Just users flipping tiles.

So with this approach I can make something that Iā€™m confident will scale: for example, I would love to see this presented on stage at a conference with 500 connected users, all making a picture together. Would that work? Iā€™m pretty sure it will work technically. Iā€™m using hibernation so the server can hold open many thousands of websockets simultaneously. But I donā€™t know if it would work socially, and thatā€™s the real experiment. Iā€™ve only been able to share this on social media so far.

Let me know if youā€™re able to try this with a crowd, live! I would love to know what happens.