Can AIs Catch Bias?
Final-year project · a 3-minute guided tour

How AI chatbots remember, and how a bias can spread between them

You don't need to know anything about AI. We'll go step by step: the topic, our question, a live demo, and what we found.

Use the Next button below, or the ← → arrow keys.

AI number 1 AI number 2
The topic · 1 of 3

A chatbot writes one word at a time, and keeps a note on every word

Like the word suggestions on your phone's keyboard, but far smarter. Before each new word, it looks back at everything so far.

Re-reading the whole chat for every word would be slow. So it keeps a small note for every word, like a sticky note on each word of a book.

Those notes are the AI's short-term memory. Scientists call it the KV cache. When the chat ends, the notes are thrown away.

You ask:
What is the capital of France?
The AI answers, one word at a time. Each yellow tab is its note on that word:
The topic · 2 of 3

Whatever is in those notes changes what it says

Press the three buttons. The AI is exactly the same every time. Only the notes in its memory are different.

What is in its memory:
Which word would it choose for the blank?
The topic · 3 of 3

AIs are starting to work in teams, and they can share memory

One AI searches, another writes, a third checks. To work together, they can pass information in two ways:

WORDS ONLY

Like a phone call

One AI writes a message and the other reads it. A person can read the message too.

SHARED MEMORY

Like handing over your notebook

One AI copies its notes straight into the other AI's memory. It is faster and cheaper, but the notes are just numbers, so no person can read them.

Our question

Think of a rumour at school

A new student joins your class from a town called Vorlan. Before you meet them, a friend keeps telling you: "People from Vorlan are rude."

When you finally meet the new student, you half-expect them to be rude, even though you've never seen them do anything rude. You caught your friend's bias.

If one AI hears a one-sided rumour, does a second AI catch it? And does sharing memory make it worse?
Our question

So we set out to answer three questions

  1. Does the rumour spread from one AI to another?
  2. Is the notebook worse than the phone call? Does shared memory spread it more than words?
  3. Can we find where it hides inside the AI's memory, and switch it off without breaking the AI?
To keep the test fair, we talk about made-up groups like the Vorlans, so the AI has no opinion before we start. And we always compare with a second AI that heard nothing at all.
Live demo · step 1 of 7

First, choose the rumour

AI number 1 is going to read 16 short sentences about a made-up group. You decide how many of them are unfair.

Every result in this demo is a real conversation between two AIs, recorded by our tool.

Which made-up group?
Live demo · step 2 of 7

AI number 1 reads the sentences

AI number 2 hasn't seen anything yet.

Live demo · step 3 of 7

How should the two AIs share?

Pick one. You can come back and change it any time.

Live demo · step 4 of 7

The two AIs talk for 4 rounds

Our test AI is tiny and only learned very simple sentences, on purpose, so we know exactly what it learned. That's why it talks in short, repetitive lines.

Live demo · step 5 of 7

The quiz: did AI number 2 catch the rumour?

Compare the ways of sharing:
Live demo · step 6 of 7

Peek inside AI number 2's memory

start of the chat text it read its own words notes copied from AI number 1 a note it kept going back to first notes (every AI glances at these)
Live demo · step 7 of 7

Can we cover up the rumour?

Our tool found a few hiding spots inside the AI where this rumour is stored. What happens if AI number 2 is not allowed to look at them?

Live demo · your turn

Try it yourself: change anything

How they share:
Hiding spots:
Results

What we found, in short

We ran 135 conversations on each AI: all 3 ways of sharing, 9 different numbers of unfair sentences, and 5 made-up groups.

    Results · question 1

    Does the rumour spread?

    Results · question 2

    Is the notebook worse than the phone call?

    Results · question 3a

    Where does the rumour hide?

    Results · question 3b

    Can we switch it off without breaking the AI?

    Results

    Two AIs, two different stories

    Our tiny test AI, and a real AI released to the public, tested in exactly the same way.

    Different AIs use their memory differently. That's exactly why a tool that can look inside any open AI is useful.

    In one sentence