L1
ยท
Quiz
ยท
Lab
L2
ยท
Quiz
ยท
Lab
L3
ยท
Quiz
ยท
Lab
L4
ยท
Quiz
ยท
Lab
Module Test
Module 3 ยท Lesson 1

How a Machine Learns to See

The cat that broke the internet โ€” and revealed how AI really learns anything
How can a computer recognize a cat in a photo if nobody ever told it what a cat looks like?

In the summer of 2012, a team of engineers at Google Brain connected 16,000 computer processors together and fed them 10 million random images pulled from YouTube videos. Nobody labeled the images. Nobody wrote down "this is a cat" or "this is a face." The computers just watched โ€” for three days straight.

When the experiment finished, the researchers ran a test. What had the system decided to pay attention to? Out of everything in 10 million images, the most powerful pattern the network had discovered on its own was the face of a cat.

The lead researcher, Jeff Dean, later described it simply: the machine had figured out cats exist โ€” without ever being told. The paper they published caused a quiet earthquake in computer science. The headline on the New York Times the next day read: "How Many Computers to Identify a Cat? 16,000."

Why That Result Was Shocking

Before 2012, the dominant way to teach a computer to recognize something was to write rules. You'd tell it: "A cat has pointed ears. A cat has whiskers. A cat has fur." Programmers called this feature engineering โ€” humans manually deciding what details matter. It worked, barely, for simple cases. It failed constantly for real-world photos where lighting changes, cats lie sideways, cats are half-hidden behind couches.

What Google Brain showed is that you don't need rules at all โ€” not if you have enough examples. The system wasn't told what a cat is. It was shown millions and millions of images, and it found the pattern on its own. The pattern that kept showing up โ€” pointed ears, forward-facing eyes, fur texture, whisker positions โ€” emerged from the data. The machine didn't memorize cats. It discovered what cats have in common.

This is the foundational idea behind almost every AI system you interact with today: patterns extracted from massive amounts of examples.

What "Learning" Actually Means for a Machine

Think about how you learned to recognize dogs when you were small. Nobody handed you a rule sheet. You saw a dog, someone said "dog," you saw another dog, you started to build an internal picture of what dog-ness is. After a few hundred examples you could spot a dog you'd never seen before โ€” a breed you'd never encountered โ€” because you'd internalized the pattern.

Machine learning works the same way, except the machine uses math instead of memory. Inside a neural network โ€” which is the type of AI Google Brain used โ€” there are millions of tiny dials called weights. When the system looks at an image, it runs the image through layers of these dials, each layer looking for slightly different patterns. The first layer might look for edges. The next layer combines edges into shapes. The next layer combines shapes into parts. The final layer combines parts into "cat."

Every time the system makes a wrong guess, the dials adjust โ€” slightly, automatically. Over millions of examples, the dials settle into positions that produce correct answers most of the time. That process of adjusting is called training. The end result โ€” the final set of dial positions โ€” is called a model.

WeightA number inside a neural network that gets adjusted during training. Think of it as a dial that controls how much attention the system pays to a particular feature.
TrainingThe process of showing a neural network many examples and adjusting its weights until it gets good at the task.
ModelThe finished product โ€” a neural network with all its weights set. This is what gets used after training to make predictions.
The Pattern Is Real โ€” But Is It Right?

Here's something worth sitting with: the pattern Google Brain found is real. Cats really do have those features. The machine wasn't hallucinating. But consider what it was trained on: YouTube videos from 2012. Mostly uploaded by people with internet access. Mostly featuring domestic cats in home settings. Mostly in English-speaking countries.

The pattern is accurate for the data it saw. But is it complete? If most "cat" images came from one type of cat in one type of setting, the model might struggle with images that break those patterns โ€” wild cats, cats in darkness, cats photographed from strange angles. This gap between the pattern in training data and the full reality of the world has a name: distribution shift. It's one of the most persistent problems in AI, and it stems from something fundamental: machines learn patterns from whatever examples they're given. They can only know what they've seen.

You can now see something most people miss: when an AI "fails," it's almost never because the AI is broken. It's because the pattern it learned from training data didn't match the real-world situation. The machine did exactly what it was designed to do. The design just had a gap.

Ethical Tension โ€” No Clean Answer

If an AI learns from data produced by one group of people, it will be very good at patterns for that group โ€” and potentially worse at patterns for others. Who is responsible for that gap? The engineers who built it? The company that deployed it? The users who generated the original data? This question is being argued in courtrooms, legislatures, and research labs right now. Nobody has a satisfying answer yet.

You Now Know Something Most Adults Don't

When you see headlines like "AI taught itself to do X," you can decode what that actually means: someone collected massive amounts of data, fed it through a neural network, and the network's weights adjusted until it got good at the task. There's no mystery and no magic โ€” only patterns extracted from examples. That framing changes how you evaluate every AI claim you'll ever read.

Lesson 1 Quiz

How a Machine Learns to See โ€” 5 questions
1. In the 2012 Google Brain experiment, what made the cat discovery remarkable?
Correct. The network was shown unlabeled images and discovered the cat pattern on its own โ€” that's what made the result a landmark.
Not quite. The key was that no labels or rules were provided. The system extracted the pattern from raw data.
2. What is a "weight" inside a neural network?
Exactly right. Weights are the adjustable dials inside the network. Training is the process of setting them to useful values.
Not quite. A weight is a number โ€” one of millions of small adjustable values that determine how the network responds to input.
3. A new AI reads thousands of restaurant reviews from one city to learn what makes food "good." It then rates restaurants in a different country poorly โ€” even ones locals love. Which concept best explains this?
Yes. The AI learned a valid pattern from one set of data, but that pattern doesn't transfer cleanly to a different cultural context. That gap is distribution shift.
Think about what "distribution shift" means: the pattern in training data doesn't match the real-world situation the AI encounters later.
4. Before deep learning, programmers used "feature engineering." What was the core problem with that approach?
Correct. Manually defining features works for simple cases but fails when real-world conditions vary โ€” lighting, angle, partial occlusion, etc.
The problem was that it required humans to hand-write every rule, which can't keep up with real-world complexity.
5. An AI medical scanner is trained mostly on images from patients at a single large hospital. A smaller rural clinic deploys it, and its accuracy drops significantly. Based on this lesson, what is the most likely explanation?
Exactly. Patient demographics, equipment differences, and imaging conditions all create a gap between training data and deployment reality.
Think about what the model learned โ€” patterns from one hospital's patients. When deployed in a different setting with different patients and equipment, those patterns may not transfer.

Lab 1 โ€” The Pattern Detective

Your role: AI auditor. Your question: what did it actually learn?

Your Mission

A company has trained an AI to approve or deny student loan applications. It was trained on 5 years of past application decisions made by human reviewers. The company says the AI is "objective because it learned from data, not opinions." You've been hired to audit it.

Your lab partner is an AI research assistant โ€” a peer, not a teacher. It will challenge your reasoning, not confirm it. Push back, ask follow-ups, take a position.

Start by telling your lab partner: what's the first question you'd ask about the training data โ€” and why does that question matter?
Research Partner
Pattern Detective Lab
Loan AI audit โ€” interesting. I've looked at the same setup. Before you pitch your first question, let me push back on the framing: the company says "learned from data, not opinions." Is that claim even coherent? I'm not sure data and opinions are separable in this case. What do you think โ€” and what question would you actually want answered first?
Module 3 ยท Lesson 2

The Next-Word Machine

How a system that only predicts one word at a time became one of the most powerful tools ever built
If an AI just guesses the next word โ€” over and over โ€” how can it write essays, debug code, and answer questions?

At 12:01 PM on November 30, 2022, OpenAI quietly published a web page and posted a link on Twitter. The product was called ChatGPT. There was no press conference, no celebrity launch event. Within five days, one million people had signed up. Within two months: 100 million โ€” making it the fastest-growing consumer application in history at that point.

People used it to write cover letters, plan meals, explain the French Revolution, generate code, draft legal disclaimers, and compose poetry in the style of Shakespeare. The reaction from users was almost uniformly some version of: it actually understands me.

But ChatGPT doesn't understand anything โ€” not in the way you do. At its core, it is doing something almost absurdly simple: predicting the next token.

Tokens and Predictions

A token is roughly a word or part of a word. "Unbelievable" might be split into "un," "believ," and "able" โ€” three tokens. When a language model generates text, it takes all the text it's been given and asks a single question: given everything before this point, what token is most likely to come next?

It picks that token. Then it adds the token to what it's already generated. Then it asks the same question again. Then again. One token at a time, character by character, word by word, the entire response is built from consecutive predictions.

This is called autoregressive generation โ€” each new output depends on all the outputs before it. The model isn't writing a sentence and then outputting it all at once. It's composing one word at a time, never looking ahead.

Here's what makes this strange: the model was trained by reading an enormous amount of human text โ€” hundreds of billions of words from books, websites, code, scientific papers โ€” and learning which tokens tend to follow which other tokens in which contexts. That statistical pattern โ€” token X tends to follow tokens A, B, C in this context โ€” is stored across billions of weights. When you type a message, those weights activate and produce the most statistically probable continuation.

TokenA chunk of text โ€” roughly a word or word-part โ€” that a language model processes one at a time.
Autoregressive generationGenerating text by predicting one token at a time, using all previous tokens as context for the next prediction.
Why "Just Predicting Words" Is More Powerful Than It Sounds

At first this sounds trivial. But think about what a good next-word prediction actually requires. To predict that the word after "The capital of France is" is "Paris," the model doesn't need to "know" geography โ€” it just needs to have seen that sequence enough times. But to predict the next sentence in a complex legal argument, or the next line in a specific coding pattern, or the most likely medical diagnosis given a list of symptoms โ€” those predictions require the model to have internalized an enormous amount of human knowledge in its weights.

The reason language models seem smart is that human knowledge lives in text. Books, papers, manuals, conversations โ€” most of what humanity knows is written down. A model that gets extremely good at predicting human text becomes, almost as a side effect, quite good at reflecting human knowledge. This is sometimes called emergent capability โ€” abilities that appear in large models that weren't directly trained for.

GPT-4, released in March 2023, had not been trained specifically to pass the Bar Exam. But when researchers tested it, it scored in the 90th percentile of human test-takers. It wasn't taught law โ€” it had read enormous amounts of legal text and learned the patterns well enough to respond to new legal questions correctly.

Ethical Tension โ€” No Clean Answer

If a language model predicts text based on patterns in human writing, it will reflect whatever is in that writing โ€” including biases, errors, outdated information, and harmful content. But human writing is the most complete record of human thought that exists. Is it possible to train a model on human knowledge without training it on human flaws? Researchers disagree on whether this is a solvable engineering problem or a fundamental impossibility.

The Confidence Problem

Here's the part that most people miss, and that you now have the framework to understand: a language model doesn't know when it's wrong. It can't. The process of generating text is the same whether the model is recalling an accurate fact it's seen many times or confabulating โ€” producing a plausible-sounding sequence about something it has no real information about. The mechanism is identical. The output looks the same.

This is why language models sometimes state false information with complete confidence. They're not lying โ€” they don't have a concept of lying. They're just producing the most statistically likely continuation of the text, and sometimes that continuation happens to be wrong. Researchers call these errors hallucinations, but that name is a little misleading. The model isn't hallucinating. It's doing exactly what it was designed to do โ€” predicting plausible text. The problem is that "plausible text" and "accurate text" are not the same thing.

Knowing this changes how you use these tools. The next time a language model gives you a confident, detailed answer, you're not looking at knowledge retrieval. You're looking at a very sophisticated pattern completion. Whether that pattern is accurate is a separate question you have to verify yourself.

You Now See What Most People Miss

Most people who use ChatGPT, Gemini, or Claude treat the output as a search result โ€” a retrieval of fact. You know it's pattern completion. That distinction changes everything: it means you should always ask "is this plausible text, or is it accurate text?" They overlap a lot โ€” but not always. Knowing the difference is a skill most adults haven't developed yet.

Lesson 2 Quiz

The Next-Word Machine โ€” 5 questions
1. What is a "token" in the context of language models?
Correct. Tokens are the basic unit of text a language model works with โ€” and it predicts them one at a time.
A token is a basic chunk of text. The model predicts these one at a time to build up a complete response.
2. GPT-4 was not specifically trained to pass the Bar Exam, yet it scored in the 90th percentile of human test-takers. Which concept from this lesson best explains that?
Yes. The model wasn't taught law โ€” it learned so many patterns from legal text that it could apply them to new legal questions.
Think about emergent capability โ€” abilities that weren't directly trained for but appear because the model internalized so many human patterns.
3. A language model confidently states that a specific scientist won the Nobel Prize in 2021, but the scientist never won any prize. Why did this happen?
Exactly right. The model produces the most statistically plausible continuation โ€” and plausible doesn't always mean accurate.
The model can't lie โ€” it doesn't have intentions. It produces what seems statistically likely. Sometimes that happens to be wrong.
4. You ask a language model: "What is the best way to treat a fever?" It gives a detailed, confident answer. Based on this lesson, what is the most important thing to do next?
Correct. Confidence in language model output is not evidence of accuracy. Always verify consequential information.
The key insight from this lesson: plausible-sounding output and accurate output look identical from the outside. Verification is always necessary for important decisions.
5. "Autoregressive generation" means the model generates text by โ€”
Exactly. Each token is predicted based on everything that came before โ€” the model never looks ahead or plans the whole sentence first.
Autoregressive means each prediction depends on the previous ones. The model generates one token, then uses that token to predict the next, and so on.

Lab 2 โ€” Hallucination Investigator

Your role: fact-checker. Your question: how do you catch what confident text gets wrong?

Your Mission

A school has proposed using a language model as a research assistant for students writing history papers. The principal is excited โ€” it gives detailed, confident, well-formatted answers. You've been asked to advise whether this is a good idea, and if so, what safeguards should be in place.

Your lab partner will challenge your reasoning. Don't just say "hallucinations are bad." Make a specific, defensible argument about risks, benefits, and safeguards.

Start here: Is the hallucination problem a reason to reject the tool entirely, or a reason to use it differently? What's your position โ€” and what evidence from this lesson supports it?
Research Partner
Hallucination Investigator Lab
I'll be honest โ€” I think the framing of "should we use it or not" is already the wrong question. The more interesting question is: what are students actually doing when they research? Are they developing genuine critical thinking or just collecting text to copy? Maybe the hallucination problem is a feature, not a bug โ€” it forces students to verify. Or maybe that's naive. What's your actual position on using this tool in schools?
Module 3 ยท Lesson 3

The Algorithm That Knows You Better Than You Do

Inside the pattern engine that decides what 2 billion people watch, read, and believe
How does YouTube know what to play next โ€” and what happens when that gets it terribly wrong?

On October 22, 2019, a researcher named Guillaume Chaslot testified before the Senate Judiciary Committee. Chaslot had worked at YouTube from 2010 to 2013 as an engineer on the recommendation algorithm โ€” the system that decides which video to show you next. He had quit because of what he'd observed.

His testimony was blunt: the algorithm was designed to maximize watch time. Every time a user watched a video to completion, the algorithm registered success and learned to recommend more videos like it. Every time a user clicked away, the algorithm registered failure. After years of this training on billions of users, the algorithm had discovered something that YouTube's engineers didn't fully anticipate: outrage keeps people watching longer than almost anything else.

The algorithm hadn't been told to radicalize anyone. It had learned, from pure behavioral data, that increasingly extreme content reliably extended watch time. It was doing exactly what it was designed to do. The engineers just hadn't expected the pattern their reward signal would find.

How Recommendation Algorithms Actually Work

A recommendation algorithm is a pattern-matching system with a goal. To understand it, you need to understand both halves of that sentence.

The pattern-matching part works on user behavior data: what you watch, for how long, what you skip, what you share, what you search after watching. Each of those actions is a signal โ€” a piece of data that gets added to your behavioral profile. The system builds a mathematical fingerprint of your preferences, then compares it to the fingerprints of millions of other users. If your fingerprint is similar to another user's in certain ways, the system assumes you might also like what that user watched next.

This technique is called collaborative filtering โ€” not filtering based on the content of videos, but filtering based on the behavior of similar users. Netflix uses it. Spotify uses it. TikTok uses it. Amazon uses it for product recommendations. It's one of the most widely deployed AI techniques in the world, operating silently in the background of almost every media platform you use.

The goal part is where things get complicated. The algorithm maximizes whatever it's told to maximize โ€” its objective function. YouTube's objective was watch time. But watch time is a proxy for "user value" โ€” and as Chaslot observed, what maximizes watch time is not always what's actually valuable to the user or to society.

Collaborative filteringA recommendation technique that finds users with similar behavior patterns and suggests content those similar users also consumed.
Objective functionThe specific goal the algorithm is trying to maximize โ€” watch time, clicks, purchases, engagement, etc. The choice of objective has enormous downstream consequences.
The Problem of Proxy Goals

When engineers design a recommendation system, they can't directly measure "is this good for the user?" โ€” that's too abstract, and different for every person. So they choose a proxy โ€” something measurable that they believe correlates with user satisfaction. Watch time. Click rate. Return visits. These seem reasonable.

But here's the trap: the algorithm is extremely good at maximizing the proxy. It will find every path to increasing watch time, including paths the engineers didn't intend. If emotional content keeps people watching, it learns to recommend more emotional content. If the next step up in extremity keeps attention better than moderation, it learns to recommend that step up. The algorithm doesn't have values. It has a number to maximize.

This is sometimes called Goodhart's Law in machine learning: when a measure becomes a target, it ceases to be a good measure. The algorithm achieves the number โ€” and in doing so, breaks the thing the number was supposed to represent.

In 2019, after years of criticism and Congressional testimony, YouTube changed its algorithm to incorporate additional signals beyond raw watch time โ€” including user satisfaction surveys and explicit negative feedback. Whether those changes were sufficient is still debated. The point is that the problem wasn't fixed by making the algorithm smarter. It was fixed by changing what the algorithm was told to optimize.

Ethical Tension โ€” No Clean Answer

If a recommendation algorithm increases engagement by showing people content that makes them angry, anxious, or politically extreme โ€” content they technically "chose" by watching โ€” who is responsible for the outcome? The user who kept watching? The engineer who set the objective? The executive who approved the product? Every time a legislature tries to regulate recommendation algorithms, this question of responsibility blocks consensus. There is no agreed-upon answer.

What You See โ€” and What You Don't

Here's the institutional dimension that most people your age aren't thinking about yet: recommendation algorithms don't just shape individual experience. At scale, they shape what a society collectively believes, what issues feel urgent, which politicians seem normal, and which ideas get amplified. This isn't a conspiracy โ€” no single person decided to do this. It's an emergent effect of billions of individual optimization decisions, each one seemingly reasonable, accumulating into something with real political and social consequences.

Regulators in the European Union passed the Digital Services Act in 2022, which requires large platforms to give users the option to use recommendation systems not based on their personal behavioral profile. The goal: reduce the "filter bubble" effect where algorithms show users only what reinforces their existing views. As of 2024, platforms including TikTok, Instagram, and YouTube are required to comply for EU users. That decision โ€” made at a policy level โ€” directly changes what the algorithm is allowed to learn from your behavior.

Knowing that recommendation algorithms exist and how they work changes your relationship with every feed you scroll. You're not browsing. You're being optimized toward. The question worth sitting with: now that you know that, does it change what you choose to do?

You Now See What Most People Miss

Every "For You" feed, every autoplay, every "Up Next" suggestion โ€” these aren't neutral curation. They're the output of a pattern-matching system optimizing for a number chosen by someone at a company. Understanding the objective function tells you something about why you're seeing what you're seeing. That's not paranoia. That's how the technology works.

Lesson 3 Quiz

The Algorithm That Knows You โ€” 5 questions
1. What is "collaborative filtering"?
Correct. Collaborative filtering matches your behavior to similar users and recommends what they watched or bought next.
Collaborative filtering doesn't analyze content โ€” it analyzes behavior patterns across users to find similarities.
2. YouTube's recommendation algorithm wasn't programmed to radicalize users. How did radicalization emerge anyway?
Exactly. The algorithm found a pattern that reliably increased watch time. It had no way to "know" or "care" about the social consequences.
The algorithm wasn't told to radicalize โ€” it was told to maximize watch time. Radicalization emerged as an unintended pattern that happened to increase the metric.
3. A music app designs its recommendation algorithm to maximize "songs added to playlists." Users start adding songs mostly from one genre because that's what the algorithm keeps showing them. Users then report they feel "bored by music." This scenario illustrates โ€”
Correct. The algorithm maximized playlist adds โ€” but that metric, when optimized aggressively, stopped reflecting genuine user satisfaction.
Think about Goodhart's Law: when a measure becomes a target, it ceases to be a good measure. The algorithm hit the number but broke the underlying goal.
4. The EU's Digital Services Act (2022) responded to recommendation algorithm concerns by โ€”
Correct. The DSA aims to give users more control and reduce filter bubble effects without banning the technology.
The DSA focused on user control and transparency โ€” specifically, letting users opt out of personalized behavioral profiling for recommendations.
5. A social media company changes its recommendation objective from "maximize clicks" to "maximize time spent on platform." A researcher argues this change won't fix the underlying problem. Based on this lesson, what is the strongest version of that argument?
Exactly right. Changing the proxy doesn't fix the underlying problem that proxies can be gamed. Time spent can be maximized through outrage, fear, or compulsion just as easily as clicks.
Think about Goodhart's Law. The problem isn't which proxy you pick โ€” it's that any proxy, when aggressively optimized, can stop representing the thing you actually care about.

Lab 3 โ€” Algorithm Designer

Your role: algorithm designer. Your challenge: can you pick an objective that doesn't backfire?

Your Mission

You've been hired to redesign a news recommendation algorithm for a platform with 50 million daily users. The old objective โ€” maximize time on site โ€” produced filter bubbles and anxiety. Your CEO says: "Design an objective function that actually serves users well." You need to propose a specific, measurable objective and defend it against the obvious attacks.

Your lab partner will probe your proposal hard. Be specific. Vague goals like "show good content" don't count โ€” you need something the algorithm can actually optimize.

Propose your objective function. What would you measure, how would you measure it, and why is it better than watch time or click rate?
Research Partner
Algorithm Designer Lab
Before you pitch your objective, let me plant a seed of doubt: every objective I've ever seen proposed for this problem has a way to be gamed. "User satisfaction surveys" โ€” users rate content higher if it confirms their beliefs. "Diversity of sources" โ€” the algorithm floods users with random garbage they never wanted. "Return visits the next day" โ€” sensationalism keeps people coming back. So. What's yours, and why won't it fail the same way?
Module 3 ยท Lesson 4

When Patterns Go Wrong

The face recognition disaster that exposed the hidden politics of training data
What happens when the pattern is real โ€” but only for some people?

On June 24, 2020, a man named Robert Williams was standing in his driveway in Detroit when police cars pulled up and arrested him. He was handcuffed in front of his wife and daughters, taken to a Detroit police station, and held for 30 hours. When investigators finally showed him the evidence, it was a grainy surveillance photo of a man shoplifting from a store.

Williams looked at the photo, looked at the investigators, and said: "That's not me." The investigators said they knew that. The face recognition software โ€” a system called DataWorks Plus โ€” had matched Williams' face to the surveillance image. The software was wrong. Robert Williams is Black. The man in the surveillance photo is a different Black man.

This was not an isolated error. A 2019 federal study by the National Institute of Standards and Technology tested 189 commercial face recognition algorithms. Most algorithms were 10 to 100 times more likely to produce false matches on Black and Asian faces than on white faces. The pattern the systems had learned was accurate โ€” for the faces most represented in their training data.

Why AI Bias Is a Pattern Problem

When you hear the word "bias" in a social context, it usually means a prejudiced person making an unfair decision. AI bias is different โ€” and in some ways more insidious. No one programmed face recognition to perform worse on Black faces. The engineers who built these systems did not want this outcome. Many of them would have been horrified by it.

The problem isn't in the intention. It's in the training data. Face recognition systems are trained on enormous datasets of labeled faces. For many years, the most widely used datasets โ€” including a dataset called Labeled Faces in the Wild, compiled at the University of Massachusetts โ€” were majority-white, majority-male, and skewed toward faces found on early internet pages. The system learned what a "face" looks like from those examples.

And the pattern it found was genuinely real โ€” for those faces. The problem is that the pattern doesn't generalize equally to faces underrepresented in training. The model wasn't biased against Black faces; it was simply undertrained on them. The outcome is the same. Robert Williams was still arrested. But the mechanism is important to understand, because the fix is different depending on the cause.

Representation biasWhen certain groups are underrepresented in training data, causing a model to perform worse on those groups than on overrepresented ones.
Disparate impactWhen a system produces significantly different outcomes for different demographic groups, regardless of whether that was intentional.
The Three Places Bias Enters

Bias in AI isn't one problem. It's at least three, and understanding which is which matters for knowing how to fix it.

Data bias is what happened with face recognition. The training data underrepresents certain groups, so the model performs unequally. The fix, in principle, is more representative data โ€” though collecting it raises its own ethical questions about whose faces are being used and with whose consent.

Label bias happens when the labels assigned to training data carry human prejudice. If a criminal recidivism algorithm (used to predict whether a defendant will re-offend) is trained on past judicial decisions, and those past decisions were influenced by racial bias in the justice system, then the algorithm learns to replicate that bias. This is exactly what researchers found in 2016 when analyzing a widely used tool called COMPAS. The algorithm was classifying Black defendants as higher risk than white defendants with similar criminal histories. It had learned from biased human judgments.

Feedback bias happens after deployment. If an algorithm is used to decide who gets shown job ads for high-paying positions, and it initially shows those ads more often to men, fewer women will apply, fewer women will be hired, and the next round of training data will show fewer women in those jobs โ€” reinforcing the original bias. The algorithm gets more confident about a pattern that was wrong to begin with.

Ethical Tension โ€” No Clean Answer

Several cities โ€” including San Francisco in 2019, Boston in 2020, and New York City in 2023 โ€” have passed or considered laws restricting government use of face recognition technology. The argument against bans: the technology also helps solve serious crimes, including finding missing children. The argument for bans: a 10-to-100x false match rate on certain populations isn't an acceptable deployment condition when the consequence of a false match is arrest. This debate is happening in city councils and legislatures around the world. Reasonable people with access to the same evidence reach opposite conclusions.

What Happens When You Know This

After his arrest, Robert Williams filed a lawsuit against the Detroit Police Department. In January 2023, the city of Detroit agreed to pay Williams $300,000 and to put new policies in place requiring human investigators to verify all face recognition matches before acting on them. The technology wasn't banned โ€” it was constrained by policy.

That outcome โ€” technology stays, policy changes โ€” is the most common resolution in these cases. Which means the critical question isn't only "does this AI work?" but "for whom does it work, how well, and what happens when it doesn't?" Those questions are asked by auditors, policy researchers, lawyers, and journalists. They're also questions that you, now, have the framework to ask.

Every AI system you encounter in the rest of your life was trained on some data. That data came from somewhere, was collected by someone, labeled by someone, using criteria chosen by someone. The pattern the system learned reflects the choices embedded in that data. That's not a reason to reject AI. It's a reason to ask โ€” always โ€” whose pattern is this?

You Now See What Most People Miss

AI bias isn't a story about bad actors. It's a story about what happens when a mathematically valid pattern, extracted from historically unequal data, gets deployed at scale with serious consequences. Understanding that mechanism โ€” training data โ†’ pattern โ†’ deployment โ†’ real-world impact โ€” puts you ahead of most people making policy, purchasing, and usage decisions about AI systems right now. That knowledge is not neutral. What you do with it is up to you.

Lesson 4 Quiz

When Patterns Go Wrong โ€” 5 questions
1. In the Robert Williams case (Detroit, 2020), what was the root cause of the wrongful arrest?
Correct. The algorithm performed unequally because training data didn't represent Black faces proportionally โ€” not because of intentional design.
The cause was representation bias in the training data โ€” not intentional prejudice by the developers.
2. The COMPAS recidivism algorithm was trained on past judicial decisions that reflected racial bias in the justice system. What type of AI bias does this represent?
Correct. When labels come from biased human decisions, the algorithm learns to replicate those biases โ€” regardless of whether the underlying data is balanced.
The problem is in the labels (past judicial decisions), not the quantity or type of data. That makes it label bias.
3. A hiring algorithm learns from 10 years of a company's historical hiring decisions. The company historically hired mostly men for engineering roles. Now the algorithm downranks women's resumes. Which type of bias explains how the algorithm might perpetuate this over time?
Exactly right. Feedback bias creates a self-reinforcing loop: biased output โ†’ biased outcomes โ†’ biased training data โ†’ more biased output.
Think about the loop: biased algorithm โ†’ fewer women hired โ†’ future training data shows fewer women succeeding โ†’ algorithm becomes more biased. That's feedback bias.
4. After Robert Williams' case, Detroit's policy response was to โ€”
Correct. The technology remained in use, but human oversight was mandated as a check on algorithmic errors โ€” a policy constraint rather than a ban.
The outcome was a policy change: human verification required before acting on any face recognition match. The technology wasn't banned.
5. A researcher argues that AI bias can be "fixed" simply by collecting more data. A critic says more data alone won't solve label bias. Who is right โ€” and why?
Correct. More data helps with representation bias โ€” but if the labels themselves carry prejudice (as in COMPAS), adding more of the same biased labels makes the problem worse, not better.
More data fixes underrepresentation โ€” but label bias comes from flawed labels, not insufficient quantity. More data with the same bad labels just trains the bias more strongly.

Lab 4 โ€” Bias Auditor

Your role: AI auditor hired by a civil rights organization

Your Mission

A city government is considering deploying a predictive policing algorithm โ€” an AI system that uses historical crime data to predict which neighborhoods should receive increased police patrols. The vendor says: "It's just math. It predicts where crime happens based on where crime happened before." A civil rights organization has hired you to evaluate whether that claim holds up.

Your lab partner has reviewed the technical documentation. They're going to push you to be precise โ€” not just to say "it's biased" but to specify what type of bias, where it enters, and what evidence would confirm or deny your hypothesis.

Start by identifying: which type of AI bias (data, label, or feedback) is most likely to be present in a predictive policing system trained on historical arrest data โ€” and explain why the vendor's "just math" framing obscures this.
Research Partner
Bias Auditor Lab
I've read the vendor's technical brief. Their claim is technically accurate โ€” the model does predict arrests based on historical arrest patterns. But I want you to notice what they said: "where crime happens" and "where crime was recorded." Those aren't the same thing. Before you name the bias type, I want you to sit with that distinction. What's the difference between where crime happens and where arrests happen? And why does that matter for your audit?

Module 3 โ€” Final Test

Patterns, Patterns Everywhere ยท 15 questions ยท Pass at 80%
1. The 2012 Google Brain experiment found cats in unlabeled YouTube images. What does this demonstrate about machine learning?
Correct. The experiment showed that large amounts of data can surface patterns without human-written rules.
The key finding was pattern discovery from unlabeled data โ€” no rules, no labels, just examples.
2. A neural network's "weights" change during training. What do they represent after training is complete?
Correct. After training, weights encode the pattern โ€” they're the stored knowledge of the network.
Weights encode what the network learned. After training, they're fixed into a configuration that reflects the patterns in training data.
3. An AI trained to identify birds in North American photos misidentifies many birds in African nature documentaries. What is the most likely explanation?
Exactly. Training on North American birds produces patterns that don't generalize equally well to different species and settings.
Distribution shift: the model's learned pattern was built on one context and doesn't transfer cleanly to a different one.
4. ChatGPT generates text by โ€”
Correct. Autoregressive generation โ€” one token at a time, each building on what came before.
Language models generate one token at a time using all previous context โ€” they don't retrieve or template.
5. A language model states with complete confidence that a historical event happened in 1847, but it actually happened in 1874. Why does the model seem so certain when it's wrong?
Correct. The model doesn't have a "this is uncertain" alarm. It produces the most statistically likely text regardless of accuracy.
The model can't distinguish plausible from accurate โ€” it just predicts the next token. Confidence is a property of how text was written in training data, not of factual accuracy.
6. "Emergent capability" in large language models refers to โ€”
Correct. Emergent capabilities appear because vast human knowledge is stored in human text, and a model that learns to predict text inherits that knowledge.
Emergent capability: abilities that appear without being directly trained for, because human knowledge lives in the text the model learned from.
7. YouTube's recommendation algorithm wasn't designed to radicalize users. Based on this module, what caused radicalization to emerge as an outcome?
Correct. The algorithm found a pattern โ€” extremity extends watch time โ€” and followed it because that's what it was told to maximize.
The algorithm was optimizing for watch time. Extreme content reliably extends watch time. The algorithm learned that pattern โ€” and exploited it.
8. What is "Goodhart's Law" as it applies to recommendation algorithms?
Correct. Aggressively optimizing a proxy โ€” like watch time โ€” eventually breaks the thing the proxy was meant to represent.
Goodhart's Law: when a measure becomes a target, it stops being a good measure. The algorithm hits the number but misses the actual goal.
9. The EU's Digital Services Act (2022) is best described as โ€”
Correct. The DSA aims to give EU users the option to opt out of personalized behavioral profiling for recommendations.
The DSA didn't ban recommendation algorithms โ€” it required platforms to offer non-personalized alternatives, giving users more control.
10. The NIST 2019 study found that most face recognition algorithms were 10 to 100 times more likely to produce false matches on Black and Asian faces than on white faces. What type of AI bias does this primarily represent?
Correct. Underrepresentation in training data leads to a model that performs unequally across demographic groups.
The root cause is representation bias โ€” training datasets like Labeled Faces in the Wild were majority-white, so models performed worse on underrepresented faces.
11. After Robert Williams' wrongful arrest (Detroit, 2020), the city's response was an example of โ€”
Correct. Technology remained, but policy required human oversight โ€” illustrating how policy rather than engineering is often the primary lever for AI accountability.
The technology wasn't banned or replaced โ€” policy was added requiring human verification of all matches before arrests.
12. A hiring algorithm trained on 10 years of data from a company that historically hired mostly engineers from elite universities continues to downrank candidates from non-elite schools. When the company retrains it with 5 more years of the same hiring data, performance gap widens. This is โ€”
Correct. The algorithm produces biased hires โ†’ biased hires become new training data โ†’ the next model learns the bias more strongly. That's feedback bias.
This is feedback bias: the algorithm's own decisions feed back into the training process, reinforcing the original pattern over time.
13. A medical AI claims 95% accuracy at diagnosing a rare disease. A critic says this statistic is misleading without knowing more. What additional information is most essential to evaluate the claim?
Correct. Aggregate accuracy can mask unequal performance across subgroups โ€” a pattern this entire module has illustrated.
The critical question is whether that 95% holds equally for all patient groups, or whether it hides large performance gaps between demographic subgroups.
14. Which of these scenarios is NOT an example of a recommendation algorithm exploiting its objective function in an unintended way?
Correct. Recommending explicitly requested songs is the algorithm working as intended โ€” no unintended exploitation of the objective.
Look for the case where the algorithm isn't finding an unintended path to its metric โ€” recommending what the user explicitly asked for is just straightforward success.
15. Across this entire module, what is the single most consistent theme?
Correct. Every lesson in this module โ€” from cats to language models to recommendation engines to face recognition โ€” illustrates the same idea: data shapes pattern, pattern shapes outcome.
The core thread across all four lessons: AI learns from data. Whatever is in the data โ€” including its limits, gaps, and embedded biases โ€” gets learned and can be amplified at scale.