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

The Model That Was Too Good to Be True

When a machine learns your examples perfectly โ€” and fails at everything else.
Why would a higher score on a test sometimes mean a worse system in real life?

In 2013, a team of researchers at Memorial Sloan Kettering Cancer Center in New York partnered with IBM to build an AI system called Watson for Oncology. The goal was serious: give oncologists โ€” cancer doctors โ€” a tool that could read medical literature and patient records and recommend chemotherapy treatments.

When Watson was tested on the cases it had been trained on, it performed remarkably. It matched what expert doctors recommended at very high rates. The headlines wrote themselves: AI beats doctors at cancer treatment planning.

But something quietly wrong was building underneath those numbers. Watson had been trained almost entirely on patient cases from Memorial Sloan Kettering โ€” one of the most elite, specialized cancer hospitals in the world. When other hospitals tried to use it on their own patients โ€” patients who didn't look quite like the original training examples โ€” the recommendations started going sideways. A 2018 internal report from MD Anderson Cancer Center described Watson suggesting treatments that were, in some cases, medically unsafe.

Watson hadn't learned oncology. It had memorized one particular hospital's approach to oncology. When the world didn't match the training data, the model broke.

What Overfitting Actually Means

What happened to Watson has a name in machine learning: overfitting. It's one of the most important concepts you'll ever encounter when thinking about AI, and it's surprisingly easy to understand once you see it.

Imagine you're studying for a history test by memorizing every single answer from last year's practice exam โ€” not understanding why events happened, just memorizing the exact questions and exact answers. You'd ace that practice test. But when the real test showed up with slightly different questions about the same events, you'd struggle. You learned the answers, not the subject.

A machine learning model overfits when it learns the training data too specifically. Instead of finding the general pattern โ€” the real underlying rule โ€” it finds every tiny quirk, every coincidence, every specific detail of the examples it was shown. It gets excellent at reproducing those exact examples. But the real world is full of new cases that weren't in the training data.

Overfitting When a model learns the training data so precisely that it performs well on that data but poorly on new, unseen data it hasn't encountered before.

There's a technical way to spot overfitting: the gap between training accuracy (how well the model does on data it's already seen) and test accuracy (how well it does on fresh examples it's never seen). A model that scores 98% on training data but only 72% on test data is almost certainly overfitting. Watson's internal scores looked great โ€” because it was being evaluated mostly on data similar to what it trained on.

The Complexity Problem

Here's what makes overfitting tricky to avoid: the more powerful and complex you make a model, the more capable it is of memorizing. A model with millions of parameters โ€” adjustable settings โ€” can find extremely subtle patterns. Some of those patterns are real and useful. But some are noise: coincidences that existed in the training data but don't exist in the real world.

Think about a medical study with 200 patients. Maybe in those 200 patients, everyone who got better also happened to be left-handed. That's almost certainly a coincidence โ€” there are simply not enough patients for this to mean anything. But an overfitting model might latch onto left-handedness as a predictor of recovery. It found a pattern. The pattern just isn't real.

The size of your training dataset matters too. With Watson, the problem was partly that the training cases all came from one hospital. That hospital treats a specific kind of patient โ€” often wealthier, often living in the northeastern United States, often already at an advanced stage of cancer because they came there seeking specialized care. A model trained on those patients learned that population, not cancer patients in general.

Pause and think

If you could only study 100 people to understand all of humanity, and those 100 people all happened to live in the same city and have the same job, what would your model of "humans" get wrong? Overfitting is that same problem โ€” at scale, in software.

How Engineers Fight Overfitting

The machine learning community has developed several tools to catch and reduce overfitting. The most important one is something called a validation split โ€” deliberately holding back some data so the model never sees it during training, then using that hidden data to test whether the model actually generalizes.

Imagine training a model on 80% of your data and keeping 20% locked away. After training, you run the locked-away data through the model. If performance drops dramatically, you know overfitting has occurred. This is now considered a basic standard in responsible ML development.

Another technique is regularization โ€” a mathematical penalty that discourages the model from getting too complicated. Regularization basically tells the model: "If you can explain this data with a simpler pattern, prefer that over a complicated one." It's like telling a student: don't write a ten-page essay if three paragraphs would make the same point just as well.

A third approach is early stopping. Training a neural network is an iterative process โ€” the model improves in rounds. Early stopping watches for the point where training accuracy keeps going up but validation accuracy starts to level off or decline. That's the signal: stop training now, the model is starting to memorize instead of learn.

Generalization A model's ability to apply what it learned to new data it's never seen before โ€” the thing overfitting destroys.

The Ethical Trap Inside the Technical Problem

Watson for Oncology cost hundreds of millions of dollars to develop. It was marketed to hospitals around the world, including in countries like India and South Korea where many patients purchased access to it. Those patients' care was being guided by a system that was, at some level, overfit to a wealthy American hospital in New York.

This is where the technical becomes ethical. Nobody making the original system set out to hurt anyone. They ran tests. The tests looked good. But the tests were run on the same kind of data the model was trained on โ€” which meant they weren't testing whether the model could handle new situations at all. They were testing whether the model had memorized well.

Ethical Question โ€” No Clean Answer

If a company tests a medical AI thoroughly and all their tests pass โ€” but those tests happen to use the same population the model was trained on โ€” is the company responsible for harm when the model fails elsewhere? They weren't negligent in the obvious sense. But they also chose which tests to run. At what point does oversight become a choice?

You now understand something most people reading headlines about AI don't. When an AI system is announced as achieving "state-of-the-art accuracy," the first question worth asking is: accuracy on what data? Is that data representative of the real world the system will face? Or is it the same data it trained on? Knowing the difference between those two questions is how you read AI news critically โ€” and it's a skill most adults haven't developed.

What You Can Now See

Every time you read that an AI scored 95% accuracy โ€” on medical diagnosis, on detecting fraud, on anything โ€” you're equipped to ask the question that separates a real result from an overfit one: was that 95% on data the model already saw, or data it hadn't? Most headlines don't tell you. Most readers don't know to ask.

Module 3 ยท Lesson 1

Quiz: The Model That Memorized

5 questions ยท Test your understanding of overfitting
1. IBM's Watson for Oncology failed outside Memorial Sloan Kettering mainly because it had been trained on data from only one hospital. What is the technical name for this kind of failure?
Correct. Overfitting is exactly this: excellent performance on training-style data, poor performance on new or different data. Watson learned one hospital's pattern, not cancer medicine in general.
Not quite. Overfitting describes what happened โ€” the model learned one hospital's cases so specifically that it couldn't generalize to other patients.
2. A student memorizes every question and answer from last year's practice exam. On the actual test โ€” which has different questions about the same topics โ€” they struggle. Which concept from this lesson does this story best illustrate?
Correct. This is precisely the analogy used in the lesson. The student (or model) has memorized instead of understood โ€” which fails the moment new examples appear.
Revisit the lesson's study-for-a-test analogy. The student memorized answers without understanding โ€” that's the core of overfitting.
3. You train a model on 10,000 examples. It gets 97% accuracy on those 10,000. Then you test it on 2,000 new examples it never saw โ€” and it scores only 61%. What is most likely happening?
Correct. A big gap between training accuracy (97%) and test accuracy (61%) is the classic signature of overfitting. The model has memorized the training set rather than learning a general pattern.
The large gap between training accuracy and test accuracy is the key clue. That gap is the fingerprint of overfitting โ€” the model learned the training examples, not the rule.
4. Which of the following is NOT one of the techniques for reducing overfitting described in this lesson?
Correct. Data augmentation is a real and useful technique, but it was not covered in this lesson. The three described were validation splits, regularization, and early stopping.
Review the lesson's third section. Three techniques were named: validation splits, regularization, and early stopping. One of these options wasn't among them.
5. A company announces their new AI scores 94% accuracy on detecting a rare disease. Before trusting this claim, which question is most important to ask based on what you learned?
Correct. This is exactly the critical-reading skill the lesson ends with. Training accuracy and test accuracy are very different things, and knowing which one a headline reports tells you almost everything about how seriously to take the claim.
Reread the final section of the lesson. The key skill it teaches is asking whether the accuracy figure comes from data the model already saw, or from genuinely new data.
Module 3 ยท Lab 1

Overfitting Investigator

You're reviewing AI systems for a hospital procurement board. Your job: decide what to trust.

Your Role

You've been hired as a junior AI auditor for a hospital board that's deciding whether to purchase three different AI diagnostic systems. Each vendor has given you their accuracy numbers. Your job is to figure out which numbers are trustworthy โ€” and which might be hiding overfitting.

Your lab partner โ€” an AI systems analyst โ€” will challenge your reasoning. Don't just state conclusions. Defend them.

To start: Vendor A claims 96% accuracy. Vendor B claims 83% accuracy. Vendor A trained and tested on data from one large urban hospital. Vendor B trained on 40 hospitals across 12 countries and tested on a separate held-out set. Which vendor's number do you trust more, and why?
AI Systems Analyst
Lab 1
Ready when you are. You've got Vendor A at 96% and Vendor B at 83%. Most hospital boards I've seen would immediately go with A โ€” higher number looks better. Make your case for why that might be a mistake. I'll push back.
Module 3 ยท Lesson 2

The Hiring Tool That Learned to Discriminate

How the patterns in past data can teach a machine to repeat the worst of human history.
If an AI was trained entirely on human decisions โ€” and humans have made biased decisions for centuries โ€” what does the AI learn?

In 2014, Amazon began building an AI tool to automate the first stage of job hiring. The company received hundreds of thousands of applications every year. The goal was to build a system that could read a rรฉsumรฉ and give it a score from one to five stars โ€” sorting good candidates from weak ones before a human recruiter ever got involved.

The engineers trained the model on ten years of Amazon's own hiring data: rรฉsumรฉs that had been submitted and decisions that had been made about those rรฉsumรฉs. It seemed like a clean, logical starting point. Real data. Real decisions. Real outcomes.

By 2015, researchers inside Amazon started noticing something troubling. The model was systematically giving lower scores to rรฉsumรฉs that included the word "women's" โ€” as in "women's chess club" or "women's college." It was downgrading candidates who had attended all-women's colleges. It was, in some detectable way, penalizing applicants for being women.

Nobody programmed that in. The engineers hadn't written a rule that said "penalize women." But the training data โ€” ten years of Amazon hiring decisions โ€” reflected a tech industry that had hired far more men than women. The AI had found the pattern in the data and amplified it. It learned: people who got hired here looked like this. People who didn't get hired looked like that. It simply reproduced the biases embedded in a decade of human choices.

Amazon quietly shelved the project in 2018 after Reuters reported on it. The system was never used to make actual hiring decisions. But its existence raised a question that the entire AI field is still wrestling with today.

What Bias in Training Data Actually Means

The word "bias" gets used in a lot of different ways. In everyday language it means having unfair opinions. In statistics it has a precise technical definition. In machine learning it can mean both โ€” and the distinction matters.

When we say a model has training data bias, we mean: the dataset used to train the model doesn't accurately represent the real world the model will operate in. This can happen in a few different ways.

Historical bias When past human decisions โ€” themselves the product of discrimination, inequality, or limited perspective โ€” are used as training data. The model learns to replicate those decisions.
Representation bias When some groups of people are over- or under-represented in the training dataset. The model performs well for groups it saw lots of examples of, and poorly for groups it rarely saw.
Measurement bias When the way data is collected introduces systematic errors. For example, if police arrest data is used to train a crime-prediction model, the model learns who gets arrested โ€” not who actually commits crimes.

Amazon's hiring tool suffered from historical bias. The dataset was made of real decisions โ€” but those real decisions reflected years of a hiring culture that had favored men. The AI didn't invent that bias. It inherited it, packaged it in math, and automated it at scale.

Representation Bias: The Dermatology Example

In 2019, a study published in the journal Nature Medicine examined dozens of AI systems trained to detect skin cancer from photographs. These systems had been celebrated for matching or exceeding dermatologist performance in clinical trials. The catches were buried in the details.

The training datasets were overwhelmingly composed of photographs of light-skinned patients. When researchers tested the models on darker skin tones, performance dropped โ€” sometimes dramatically. One system that achieved 91% accuracy overall performed at 65% on darker skin. The disease looks different on different skin. The model had barely seen the darker-skin version.

Nobody in those studies was trying to build a tool that worked better for white patients. But the photographs that were available โ€” collected over decades at hospitals serving predominantly white populations โ€” reflected those demographics. The data shaped what the model knew. And what the model didn't know, it couldn't detect reliably.

Think About Scale

If a skin cancer AI is deployed to 10 million users and performs 20% worse on darker skin tones, the patients most likely to have a cancer missed are already among the most medically underserved populations. The AI doesn't create the disparity from nothing. But it can automate it and expand it.

Can You Remove Bias from Training Data?

This is harder than it sounds โ€” and there's genuine disagreement in the machine learning community about what "fair" even means mathematically. It turns out there are multiple different definitions of fairness that are mathematically incompatible with each other. You can satisfy one definition of fair but not another simultaneously.

One approach is data rebalancing: deliberately collecting more training examples from underrepresented groups, or artificially reweighting the existing examples so the model treats all groups as equally important during training. Amazon could have, in theory, rebalanced its hiring data to include equal numbers of successful male and female hires.

But there's a deeper problem. If the real historical data shows more men being promoted, and you rebalance to pretend it was equal โ€” you've changed the data to reflect a more just world that didn't actually exist. That's not capturing reality; it's manufacturing it. The model trained on that adjusted data might make different predictions. Whether those predictions are more fair or less accurate or both is genuinely contested.

Ethical Question โ€” No Clean Answer

If you train an AI on real historical data, it learns and perpetuates past discrimination. If you deliberately modify the data to be more equitable, you're making a value judgment about what the world should look like โ€” not what it did look like. Who decides which is the right approach? Should that be an engineer's decision? A government's? The people affected?

There is no neutral choice here. Choosing to use historical data uncritically is a decision. Choosing to modify it is a decision. Choosing which definition of fairness to use is a decision. The decisions just happen to be made by engineers, usually without much public input.

What You Can Now See

When someone says an AI system is objective โ€” that it removes human bias from a decision โ€” you know exactly why that claim is suspect. Every AI was trained on data produced by humans in a world shaped by human history. "Objective" doesn't mean "unbiased." It often just means "the bias is harder to trace."

Module 3 ยท Lesson 2

Quiz: The Bias in the Data

5 questions ยท Apply what you know about training data bias
1. Amazon's hiring AI gave lower scores to rรฉsumรฉs mentioning "women's" organizations. The most accurate explanation for why this happened is:
Correct. Historical bias is the key concept here. The model wasn't programmed to discriminate โ€” it learned discrimination from data that reflected a decade of biased human decisions.
Reread the Amazon story. The engineers didn't program bias in; the bias came from the training data โ€” ten years of real decisions that reflected an industry pattern of hiring more men.
2. An AI trained to detect skin cancer performs at 91% accuracy overall but only 65% on darker skin tones. The primary reason for this gap is:
Correct. This is representation bias. The model learned from what it saw โ€” and it mostly saw lighter skin. The patients who most needed accurate detection were underrepresented in training data.
This is representation bias at work. The model learned from what data existed โ€” and the historical photograph collections came from hospitals serving predominantly lighter-skinned patients.
3. A city uses past arrest data to train a predictive policing AI that estimates crime risk by neighborhood. Which type of bias from this lesson is this most clearly an example of?
Correct. Arrest data measures police behavior as much as criminal behavior. Where police patrol more, they make more arrests โ€” so the model learns "high police presence = high crime" and can entrench a self-fulfilling cycle.
Think carefully about what arrests actually measure. Arrests happen where police patrol. The data is biased not because of historical attitudes, but because of what it actually captures.
4. A researcher proposes fixing Amazon's hiring AI by rebalancing the training data so it includes equal numbers of men and women who were hired historically โ€” even though women were hired less often in reality. What is a genuine problem with this approach?
Correct. The lesson makes this point explicitly: choosing to modify data to be more equitable is itself a value judgment. There is no neutral choice โ€” using biased data is a choice, and changing it is also a choice, each with different implications.
Revisit the lesson's section on removing bias. The key tension is that modifying data means making a judgment about what the world should look like, not just describing what it was.
5. A company claims their new loan approval AI is "completely objective โ€” it removes human bias from credit decisions." Based on this lesson, why is that claim worth questioning?
Correct. "Objective" doesn't mean "unbiased." The model learned from human decisions. Those decisions carried human history. The bias becomes harder to see โ€” not absent.
The lesson's closing thought addresses this directly. Every AI trained on human data inherits the patterns in that data. Those patterns include the biases built up over the history of those decisions.
Module 3 ยท Lab 2

Bias Auditor

You're reviewing an AI system before it gets deployed to 50 million users. Spot the hidden traps.

Your Role

A major bank wants to deploy an AI loan approval system. They say it was trained on "10 years of successful loan data" from their existing customer base. Before the regulator signs off, you โ€” the bias auditor โ€” need to ask the hard questions.

Your lab partner is a senior data scientist at the bank. They built the system and believe in it. Push them to reveal what the training data actually shows, and argue your case for what should be tested before deployment.

Start by telling me: what is the first question you'd ask about their "10 years of successful loan data" โ€” and why that specific question matters for bias?
Bank Data Scientist
Lab 2
I've spent two years building this system. Our validation accuracy is 89% and it's more consistent than our human loan officers. What's your concern โ€” the data is from real decisions made by real experts. What exactly do you want to audit?
Module 3 ยท Lesson 3

Who Gets to Define the Right Answer?

Training data doesn't come pre-labeled with truth. A human โ€” usually a stranger โ€” decided what each example means.
If a machine learns by being shown millions of labeled examples, who decided what those labels say โ€” and what happens when they're wrong?

In 2019, the investigative outlet TIME Magazine published a report on where a significant portion of AI training data labels come from. The answer was surprising to people outside the industry: a global network of contract workers โ€” often in Venezuela, Kenya, the Philippines, and India โ€” earning wages as low as one to three dollars per hour to label training data.

These workers โ€” called data annotators โ€” looked at images, listened to audio clips, and read text. They drew boxes around pedestrians in street scenes so self-driving car systems could learn what a pedestrian looks like. They listened to recordings and transcribed speech. They read sentences and decided whether the emotion was "positive," "negative," or "neutral."

One Venezuelan annotator described labeling 200 to 400 images per hour to make her quota. She was deciding, at a rate of seconds per image, what was in each photo โ€” and those decisions would become the ground truth that an AI model learned from. She wasn't a domain expert. She was working on a deadline, making judgment calls, and moving on.

The AI learned what she decided was true. The model had no way to question it. Whatever she labeled "cat," the model learned was a cat. Whatever she labeled "dangerous," the model learned to call dangerous. The model's entire understanding of the world was built on millions of individual human decisions made under time pressure, for very little pay, by people who often didn't speak the language of the content they were labeling.

What Labels Are, and Why They're Fragile

Supervised learning โ€” the most common form of machine learning โ€” requires labeled data. Every training example needs a tag that tells the model: this image is a cat, this review is negative, this tumor scan is malignant. The model learns by matching patterns in the input to the labels assigned to it.

The problem is that labels are not facts. They're judgments. And judgments depend on who is making them, under what circumstances, using what definitions.

Label noise Incorrect or inconsistent labels in training data. If 5% of your training images are mislabeled, the model learns from 5% bad information โ€” and has no way to know which examples to distrust.

Label noise is one problem. But label subjectivity is often a deeper one. Consider the task of labeling text as "toxic" or "not toxic" for a content moderation system. What counts as toxic? One annotator's "heated debate" is another's "harassment." Researchers studying the major toxicity datasets have found that annotators from different demographic backgrounds label the same text differently at measurable rates. The model trained on those labels learns the average judgment of whoever happened to be hired to label the data โ€” not some objective definition of harm.

The Content Moderation Crisis

In 2020, researchers at the University of Washington published a study examining whether major toxic speech datasets had racial bias in their labels. What they found was striking: text written in African American English โ€” a distinct dialect with its own grammar and patterns โ€” was labeled "toxic" at significantly higher rates than text expressing the same sentiment in standard American English.

The implication was serious. If you train a content moderation AI on those labeled datasets, the AI learns to flag African American English at higher rates. Users who write in that dialect would have their posts removed at higher rates โ€” not because of what they were saying, but because of how they were saying it. An AI trained to remove "toxic" content would, in practice, systematically remove the speech of a particular community.

No one who labeled that data necessarily intended this. Many were probably trying to make the judgment they were asked to make. But when you aggregate millions of those individual calls, patterns emerge that nobody explicitly chose.

Pause and think

A content moderation system decides what speech gets removed from a social platform used by billions of people. The training labels for that system were made by paid workers on a deadline. The workers' demographic background influences their labeling patterns. Nobody voted on what "harmful" means. Does this bother you? It should โ€” at least a little.

The Hidden Value Choices in Every Dataset

Here's what makes this consequential beyond just data quality: every labeled dataset encodes someone's definition of what's true, good, harmful, normal, or correct. That definition gets baked into the model's weights. The model then goes out into the world and applies those definitions at scale โ€” to billions of people who were never consulted about what the labels meant.

In 2021, a team of researchers examined the ImageNet dataset โ€” one of the most influential training datasets in AI history, containing 14 million labeled images. They found hundreds of labels for human beings that were derogatory, clinical in pathologizing ways, or simply demeaning. Those labels had been used to train AI systems that millions of people used. Some were eventually removed, but only after years of those definitions being baked into models already in deployment.

The label problem is ultimately a question of power: who gets to define the world that the AI learns? Right now, that power is largely held by whoever commissions the dataset and whoever is hired (often cheaply) to annotate it. That is a very small number of people making very large decisions about how machines will perceive reality โ€” for everyone.

Ethical Question โ€” No Clean Answer

If toxic speech datasets systematically label certain dialects as more harmful, and AI systems trained on those datasets remove more content from speakers of those dialects, is that a technical failure, a social failure, or both? And who is responsible for fixing it โ€” the annotators, the researchers who built the dataset, the companies that deployed the models, or the platforms that used the outputs?

What You Can Now See

The next time you encounter an AI system that classifies something โ€” whether a post is harmful, whether a person is a risk, whether an email is spam โ€” you can ask the question most people never think to ask: who decided what the labels meant, under what conditions, and who reviewed them? The label is not the truth. It's someone's decision about truth. Those are very different things.

Module 3 ยท Lesson 3

Quiz: Who Defines the Right Answer?

5 questions ยท Labels, annotation, and the hidden choices in data
1. Data annotators are paid workers who label training examples for machine learning systems. What role does their work play in what the model learns?
Correct. The model has no independent way to verify labels. It learns from them as if they are facts. Whatever an annotator marked, the model treats as ground truth.
Reread the opening story. The Venezuelan annotator's decisions โ€” made at a rate of seconds per image โ€” became the ground truth that AI models trained on. The model learned what she decided was true.
2. A content moderation AI was trained on text labeled "toxic" or "not toxic." Researchers found the AI flags African American English at higher rates than standard American English expressing the same sentiment. The most likely explanation is:
Correct. Label subjectivity โ€” different people judging the same text differently based on their own backgrounds โ€” gets baked into the model. The model then applies those human patterns at scale.
The lesson covers this specific finding from the University of Washington study. Annotators' labeling patterns โ€” influenced by their own backgrounds โ€” became the model's learned definitions of "toxic."
3. What is "label noise" as defined in this lesson?
Correct. Label noise is the presence of incorrect labels in training data. The model learns from all of it โ€” including the mistakes โ€” because it cannot distinguish a wrong label from a right one.
Return to the key term in the lesson. Label noise specifically refers to incorrect or inconsistent labels in training data, which the model has no way to identify or reject.
4. A team builds a sentiment analysis AI โ€” a system that reads social media posts and decides if they're "positive," "negative," or "neutral." They hire 500 annotators from one country to label the training data. Apply what you know: what potential problem should they be most worried about?
Correct. This is label subjectivity applied to a new scenario. Sentiment is culturally inflected. Annotators bring their own cultural norms to labeling โ€” and those norms become the model's norms.
Think about what the lesson says about how annotators' backgrounds shape their labeling decisions. Sentiment โ€” positive, negative, neutral โ€” isn't a universal fact. It's a cultural judgment.
5. The lesson argues that labeled datasets encode "hidden value choices." What does this mean in plain terms?
Correct. Every labeling decision is a judgment about what is true, good, or correct. Those judgments are made by specific people in specific contexts โ€” and they shape how the model understands the world for everyone who uses it.
The lesson's final section addresses this directly. Labels are not facts โ€” they're judgments. Whoever holds the labeling decisions holds power over what the AI thinks is real, normal, or harmful.
Module 3 ยท Lab 3

Label Designer

You're creating annotation guidelines for a major content platform. Your choices affect a billion users.

Your Role

A major social media company has hired you to write the labeling guidelines for their new content safety AI. Annotators across the world will use your guidelines to decide what gets flagged as "harmful." Your decisions will shape what the model considers dangerous โ€” for everyone on the platform.

Your lab partner is a researcher who has studied annotation bias. They're skeptical that any guidelines can avoid value judgments. Defend your approach โ€” or change it when they make a good point.

Start by telling me: what's the first thing you'd define in your guidelines โ€” and how would you define "harmful" in a way that doesn't just reflect your own cultural background?
Annotation Researcher
Lab 3
I've studied annotation projects across 30 countries. Every time a company tries to write "neutral" guidelines, they end up encoding their own culture's norms. I'm curious โ€” how are you going to avoid that? What's your first move?
Module 3 ยท Lesson 4

When the World Moves and the Model Stays Still

A model trained on yesterday's world is making today's decisions. What could go wrong?
If the world changes after a model is trained โ€” and nobody updates the model โ€” what happens to everything it gets wrong?

In the first weeks of March 2020, as COVID-19 began spreading rapidly across the United States, hospitals and health systems started deploying AI tools they had been developing for years โ€” tools that analyzed patient data to predict which patients were most at risk and how to allocate limited resources.

These tools had been trained on years of patient records from before the pandemic. They had learned patterns from a world where most respiratory illness came from the flu, pneumonia, and other familiar conditions. When COVID-19 patients started arriving, they didn't fit those patterns. The symptoms overlapped with what the model knew, but the underlying biology and progression were different. COVID affected blood oxygen, the heart, blood clotting โ€” in ways the model had never been trained to associate with respiratory illness.

A sweeping 2021 review published in The BMJ โ€” one of the world's oldest and most respected medical journals โ€” analyzed 232 separate AI tools developed for COVID-19 detection and triage. The conclusion was damning: "We identified major methodological flaws and high risks of bias in most of the models." Among the most cited problems was that tools trained before or during the early pandemic performed poorly as the pandemic evolved. The virus changed. New variants arrived. The population affected changed. The interventions available changed. The models had been trained on a world that no longer existed.

Some hospitals quietly stopped using their AI triage tools. Others kept using them, unaware of how much drift had accumulated between the world the model learned from and the world it was operating in.

Distribution Shift: The Concept

The technical term for what happened during COVID is distribution shift โ€” or sometimes called data drift or covariate shift. It describes what happens when the statistical patterns in the real world change after a model has been trained, but the model itself doesn't change.

Distribution shift When the statistical properties of the data a model encounters in real use differ from the data it was trained on. The model continues making predictions as if the old patterns still apply โ€” even when they don't.

Think of it this way: you learn to recognize cats by looking at thousands of photos of domestic cats โ€” mostly sitting, mostly indoors, mostly in well-lit rooms. Then someone asks you to identify cats in dark outdoor environments with unusual angles. Your recognition skills might fail โ€” not because you're bad at recognizing cats, but because the conditions don't match what you learned from.

A model doesn't know when it's operating outside its training distribution. It doesn't raise a flag and say "warning โ€” conditions have changed." It keeps generating outputs with the same confidence as always. The predictions get worse; the confidence stays the same.

Distribution Shift in Everyday Systems

COVID is an extreme case because the shift happened rapidly and visibly. But distribution shift is actually a constant, quiet problem in deployed AI systems โ€” not a rare event.

In 2016, a widely cited paper examined the behavior of fraud detection systems at financial institutions. These systems are trained to flag unusual patterns that suggest a transaction is fraudulent. But consumer behavior changes โ€” new apps become popular, people travel differently, shopping patterns shift with the economy. A system trained in 2016 on typical transaction patterns would, without updates, start mislabeling legitimate transactions as fraudulent โ€” and approving increasingly sophisticated fraud that uses patterns not in the original training data.

Credit scoring models face the same issue. A model trained to predict loan repayment behavior in 2018 used patterns from an economy that looked very different from 2020's pandemic economy or 2022's high-inflation economy. People's financial behavior changed. The model's definition of "risky borrower" didn't.

Language models trained on internet text from a specific period can become subtly outdated as language evolves โ€” slang changes, cultural references shift, events alter the meaning of words. A model trained before 2020 on the word "mask" primarily associated it with Halloween and surgery. By 2021, it had become one of the most politically loaded words in American discourse.

Think About This

Most large-scale AI systems are not retrained constantly. Retraining is expensive, technically complex, and requires new labeled data. The practical result is that many real-world AI systems are running on training data that is months or years old. Every day they operate, the gap between their learned world and the real world widens. Nobody sends you a notification saying "this model is now 18 months out of date."

Detecting and Handling Drift

Responsible ML engineering includes monitoring deployed models for signs that their inputs or outputs have started to drift from the training distribution. This is sometimes called model monitoring or drift detection.

One approach is to track the statistical properties of the inputs the model receives over time. If the average value of certain features starts to move significantly from where they were during training, that's a signal worth investigating. Another approach is to watch for drops in the model's confidence scores โ€” when a model that used to predict with 90% confidence is now at 70%, something in the world has changed.

Some high-stakes deployments include automatic retraining pipelines โ€” systems that gather new labeled data continuously and periodically update the model to reflect the current world. But this requires ongoing human oversight to make sure the new labels are correct, and it introduces its own risks (what if the new data contains new biases?).

At the institutional level โ€” the level of hospitals, banks, governments, and courts โ€” the question of how often to retrain models and who is responsible for monitoring drift is a genuine policy question that is currently being worked out in real time. Many regulatory frameworks for AI in healthcare and finance now explicitly require documentation of when a model was trained and regular performance audits.

Ethical Question โ€” No Clean Answer

A hospital deployed an AI diagnostic tool in 2019. By 2022, the medical literature had significantly advanced, new treatment protocols existed, and disease prevalence patterns had shifted. The model was never retrained. A patient receives a suboptimal diagnosis as a result. Who is responsible โ€” the hospital that failed to update the model, the company that sold the tool without a clear update policy, the regulators who didn't require one, or the physician who trusted the output without questioning it?

This question is actively being debated in medical AI policy today. The FDA's framework for regulating AI-based medical devices was designed primarily for static software โ€” software that doesn't change. An AI model that retrains itself is harder to regulate using the same tools. The institutions that govern medicine are still catching up to the pace of AI deployment.

What You Can Now See

When you encounter an AI tool making decisions about you โ€” a credit score, a medical screening tool, a content recommendation system โ€” you can ask: when was this trained, and on what era's data? A model making decisions about your world in 2025 that was trained on 2020 data is not just a technical footnote. It's a meaningful fact about the quality of that decision. Very few people know to ask this. You do now.

Module 3 ยท Lesson 4

Quiz: When the World Changes

5 questions ยท Distribution shift and the limits of static models
1. In 2021, The BMJ reviewed 232 AI tools built for COVID-19 detection and found most had "major methodological flaws." One key issue was that tools trained before the pandemic performed poorly as it evolved. What concept from this lesson does this best illustrate?
Correct. The pandemic changed the statistical properties of incoming patients far faster than any model could be retrained. The models kept predicting for a world that had already transformed around them.
The key issue wasn't how the models were trained โ€” it's that the world they were trained on no longer matched the world they operated in. That gap is distribution shift.
2. A model trained on consumer spending patterns from 2016 is still in use in 2024. Which of the following problems would most likely result from distribution shift?
Correct. This is distribution shift applied to fraud detection. Normal behavior changed. New fraud tactics emerged. The model's definition of "suspicious" is anchored to a world that no longer fully exists.
Think about what changed between 2016 and 2024 in consumer behavior โ€” new apps, new payment methods, a pandemic. The model still thinks 2016 is normal. That gap creates exactly these kinds of errors.
3. A deployed AI model doesn't know when it's operating outside its training distribution. What does this mean in practice?
Correct. This is one of the most practically dangerous aspects of distribution shift. The model appears to be working fine. No alarm goes off. But the quality of its predictions may have quietly deteriorated.
The lesson is explicit about this: a model doesn't raise a flag when conditions change. It keeps generating outputs with the same apparent confidence. That's what makes silent drift so dangerous in high-stakes systems.
4. "Model monitoring" is described in the lesson as a technique for handling distribution shift. What does it involve?
Correct. Model monitoring watches for statistical drift in the inputs and confidence of outputs โ€” looking for the early signals that the model's world no longer matches the real world.
Revisit the lesson's section on detecting drift. Model monitoring specifically tracks how the statistical properties of what the model sees in real use compare to what it learned from during training.
5. A hospital used an AI diagnostic tool for three years without retraining it. A patient receives an inaccurate diagnosis partly because the model's training data predates current medical knowledge. The lesson raises a hard ethical question here. Which answer best captures the tension it describes?
Correct. The ethical question in this lesson has no clean answer precisely because multiple actors made decisions โ€” or failed to โ€” that contributed to the outcome. That's what makes it a genuinely hard ethical problem, not just a technical one.
The lesson deliberately raises this as a question with no clean answer. Responsibility is distributed across the hospital, the company, the regulators, and the physician. Assigning it to only one party misses how the system as a whole produced the failure.
Module 3 ยท Lab 4

Model Lifecycle Auditor

You're deciding whether a critical government AI system should continue operating โ€” or be taken offline.

Your Role

A federal agency uses an AI system to assess benefit eligibility โ€” deciding who qualifies for housing assistance. The model was trained in 2019 on pre-pandemic economic data. It's now three years later. Economic conditions, housing markets, and the demographics of people seeking assistance have all shifted significantly.

Your lab partner is the agency's AI policy director, who is under pressure to keep the system running because replacing it would take 18 months and cost millions. You need to make the case โ€” or counter it โ€” based on what you know about distribution shift.

Start by stating your position: should the agency keep running the 2019 model, pause it, or do something else โ€” and what evidence from what you've learned would you use to argue your case?
Agency AI Policy Director
Lab 4
Look โ€” I understand the concern about drift. But we have 200,000 applications to process every quarter. Our case workers are overwhelmed. If we shut this down, real people stop getting benefits while we wait for a new system. The model still has an accuracy rate of 81% in our internal checks. What's your argument for actually taking it offline?
Module 3 ยท Final Assessment

Module Test: Hidden Traps in Machine Learning

15 questions ยท Pass at 80% or higher to complete this module
1. A model scores 99% on its training set but 58% on a test set it never saw during training. This large gap most strongly indicates:
Correct. A very high training score with a much lower test score is the clearest signature of overfitting.
The large gap between training and test performance is the classic overfitting signal. The model learned the training data, not the underlying pattern.
2. IBM's Watson for Oncology was trained primarily on patient data from one elite hospital in New York. When deployed globally, it failed in other contexts. Which trap is most central to this failure?
Correct. Watson overfit to one specific institution's patient population and clinical approach. It couldn't generalize to different hospitals, countries, or patient demographics.
Watson's core problem was that it learned one hospital so well it couldn't work anywhere else. That's overfitting โ€” excellent on familiar data, poor on new data.
3. Regularization is a technique used to reduce overfitting. What does it do, in plain terms?
Correct. Regularization adds a penalty for complexity โ€” pushing the model toward simpler patterns that are more likely to reflect real signal rather than noise.
Regularization is specifically the mathematical penalty that discourages complexity. Simpler models tend to generalize better; regularization nudges the model in that direction.
4. Amazon's hiring AI learned to downgrade rรฉsumรฉs mentioning women's organizations. The engineers didn't program this in. What type of bias does this illustrate?
Correct. Historical bias is when past human decisions โ€” biased by the standards of their time โ€” become training data. The model inherits and automates those decisions.
The bias came from the training data โ€” ten years of Amazon's own hiring decisions that reflected an industry pattern. The model learned that pattern. That's historical bias.
5. A skin cancer detection AI achieves 91% accuracy overall but 65% on darker skin tones. Which type of bias is primarily responsible?
Correct. Representation bias occurs when some groups appear far less in the training data. The model simply learned less about darker skin โ€” because it saw much less of it.
The model's poor performance on darker skin came from rarely seeing it during training. When certain groups are underrepresented in training data, model performance on those groups degrades. That's representation bias.
6. Measurement bias is defined in the lessons as a specific type of problem. Which of the following is the best example of it?
Correct. Measurement bias happens when the data collection method introduces a systematic distortion. Arrests measure policing behavior as much as criminal behavior โ€” that's a measurement bias in the data itself.
Measurement bias is specifically about how the data is collected introducing systematic errors. Arrest data is a classic example: it measures who gets arrested, not who commits crimes.
7. Data annotators label training examples for machine learning systems. Their labels become the ground truth the model learns from. What does this mean for the model's understanding of the world?
Correct. Labels are judgments, not facts. The model has no mechanism to question them. It learns whatever the annotators decided โ€” at scale, permanently.
The model treats all labels as facts. It can't distinguish a careful expert judgment from a rushed guess under deadline. Whoever labeled the data defined the model's reality.
8. Researchers at the University of Washington found that text written in African American English was labeled "toxic" at higher rates in major datasets. When an AI trained on these datasets is deployed, the most likely practical consequence is:
Correct. The model learned annotators' patterns. Those patterns treated certain dialect markers as toxicity signals. At scale, that means one community's speech is systematically flagged more โ€” regardless of content.
The model learned the labeling pattern โ€” African American English = more likely toxic. When deployed at scale on billions of posts, that pattern translates to disproportionate removal of a specific community's speech.
9. The lesson describes multiple mathematically incompatible definitions of fairness in machine learning. What is the key implication of this fact?
Correct. The existence of multiple incompatible fairness definitions means someone has to choose โ€” and that choice encodes a value judgment. There is no neutral, purely technical answer to "what is fair."
If multiple definitions of fairness are mathematically incompatible, then choosing one over another is a value judgment, not a technical one. That's the key implication the lesson builds toward.
10. Distribution shift is defined as the gap between training data and real-world data growing over time. Which of the following is NOT an example of distribution shift?
Correct. The face recognition example is representation bias โ€” the problem existed at training time, not because the world changed afterward. Distribution shift specifically involves the world changing after the model was trained.
Distribution shift is about the world changing after training. The face recognition example describes a bias that was present from the start โ€” because of who was in the training data. That's representation bias, not drift.
11. A deployed AI model doesn't automatically warn users when it's operating outside its training distribution. Why is this especially dangerous in high-stakes settings like medicine or criminal justice?
Correct. The model appears to be working. No alarm sounds. Practitioners trust the output. The degradation can be substantial before anyone detects it โ€” and in medicine or criminal justice, that gap can cost lives or liberty.
The danger is that the model looks normal. It still outputs a prediction with apparent confidence. The person relying on it has no signal that something has drifted โ€” and the stakes of trusting a quietly broken system are highest in medicine and justice.
12. "Early stopping" as a technique for reducing overfitting involves:
Correct. Early stopping watches for the moment when the model stops getting better on held-out data โ€” that's the signal that continued training will cause memorization, not learning.
Early stopping monitors validation performance during training. When it stops improving (while training accuracy keeps climbing), that's the overfitting signal โ€” and training is halted at that point.
13. A government deploys an AI system to decide who qualifies for housing assistance, trained on 2019 economic data. It's now three years later. You're asked to audit it. What is your single most important concern based on the concepts from this module?
Correct. This is distribution shift in a high-stakes public context. The world the model learned has changed substantially. People are being denied or granted benefits based on patterns from a pre-pandemic, economically different world.
Apply distribution shift here. Three years, a global pandemic, significant economic changes โ€” the world the model trained on looks different from the one it's operating in. That gap is exactly what distribution shift describes.
14. Which of the following best describes what makes the "label problem" a question of power, as the lesson argues?
Correct. The lesson's closing argument is about the concentration of definitional power. Whoever holds the labeling decisions determines how machines categorize the world โ€” and most people never have any say in that.
The lesson's final section addresses this explicitly. Power here means: who decides what is real, normal, or harmful. That power sits with whoever commissions and runs annotation projects โ€” without the input of the billions who will be affected.
15. Across all four lessons in this module, a common theme emerges about AI systems and human responsibility. Which statement best captures that theme?
Correct. This is the unifying insight of the module. None of the failures described required bad intentions. They emerged from structural properties of how machine learning works โ€” and understanding them is what makes thoughtful oversight possible.
The module's recurring point is that these failures happen without malice โ€” and that's what makes them systemic rather than individual. Understanding the mechanisms is the foundation of genuine accountability.