Intro
L1
ยท
Quiz
ยท
Lab
L2
ยท
Quiz
ยท
Lab
L3
ยท
Quiz
ยท
Lab
L4
ยท
Quiz
ยท
Lab
Module Test
Inside the Machine: AI Unpacked ยท Introduction

You Are Living Inside the Most Important Experiment in History

This course exists because almost everyone talking about AI โ€” including the people building it โ€” is skipping the part that actually matters.

In November 2022, a company called OpenAI released a chatbot called ChatGPT to the public โ€” no fanfare, no giant launch event, just a quiet link posted online. Within five days, a million people had signed up. Within two months, it had reached a hundred million users, making it the fastest-growing software product ever recorded. Teachers started finding essays they didn't assign. Doctors started getting printouts from patients who'd already "asked the AI." Programmers found that the thing could write working code. Nobody had trained the public on what was happening inside it, or why it could do these things, or where it was wrong โ€” and it was wrong, often, in ways that looked completely confident.

That gap โ€” between how fast the technology spread and how slowly anyone explained it โ€” is still open right now. News articles call AI "thinking" and "understanding" and "learning," words that mean something very specific in human experience and something very different in a machine. Executives say it will replace most jobs. Critics say it's just autocomplete. Both are oversimplifying, and both are influencing decisions that affect your school, your future, your city's hiring practices, and what gets built next. Almost none of those decision-makers have read a single explanation of how any of this actually works.

This course is that explanation, written for someone who doesn't need it dumbed down โ€” just made clear. Four modules, four big ideas: how AI makes predictions, where it learns from, why it fails, and what you should actually do about it. You won't finish this as an expert. But you will finish it as someone who can tell real from hype, and that already puts you ahead of most adults in the room.

Inside the Machine: AI Unpacked ยท Lesson 1

The Robot That Guesses Your Lunch

AI doesn't think. It predicts. And that difference explains almost everything.
How does a machine that has never eaten food know what you probably want for lunch?

In 2013, a researcher at MIT named Deb Roy published something unusual: a study about his own son. Roy had set up cameras and microphones throughout his house and recorded, over three years, nearly every moment of his child's life from birth through age three โ€” roughly 90,000 hours of footage. The goal was to watch a human being learn language from scratch. What Roy found was striking. His son didn't learn words the way a dictionary defines them. He learned them by hearing what came next. "Water" appeared in sentences about cups and thirst and bath time. "More" appeared after almost anything his son wanted. The child's brain was, without being told to, building a map of which words followed which โ€” of what was likely to come next.

This is almost exactly how modern AI language systems work. Not the same โ€” the child had a body, parents, hunger, fear, joy. The AI has none of that. But the core mechanism, the thing underneath everything, is the same question asked billions of times: given what came before, what comes next? When a system like ChatGPT completes your sentence, it isn't thinking. It isn't understanding. It is doing something much stranger and much more interesting: it has seen so much human text that it can predict, with startling accuracy, what a human would probably write here.

What "Prediction" Actually Means in a Machine

Imagine you're filling in a blank: "I'd like a coffee with milk and ____." You don't need to think hard. "Sugar" is obvious. Your brain has seen that sentence, or ones like it, enough times that the answer feels automatic. Now imagine you've read every coffee order ever written on the internet โ€” millions of them. Your ability to fill in that blank would be almost perfect, not because you understand coffee, but because you've seen the pattern so many times.

That's the core of what a language model does. The technical term is next-token prediction: given a sequence of words (or parts of words), predict the most likely thing to come next. The model doesn't have beliefs, preferences, or hunger. It has probabilities โ€” numerical estimates of how likely each possible next word is, based on everything it was trained on.

Token A small chunk of text โ€” usually a word or part of a word. "Unbelievable" might be split into "un," "believ," and "able." AI models process tokens, not full words.
Next-token prediction The task of guessing what word (or token) comes after what's already been written. Language models are trained by doing this billions of times until they get very good at it.

When you type "The capital of France is" into a language model, it doesn't look that up in a database. It produces "Paris" because, in the enormous amount of text it trained on, "Paris" overwhelmingly followed that exact phrase. It's a sophisticated pattern-matcher operating at a scale humans can't intuitively picture.

Why This Matters Right Now

Every AI chatbot you've used โ€” ChatGPT, Gemini, Claude, Copilot โ€” is built on this same foundation. When they seem confident, it's not because they're right. It's because confidence is the most common pattern in human writing. When they're wrong, it's often because a wrong answer looks like a right one in text.

The Lunch Recommendation: A Real Case

In 2019, Spotify's music recommendation team published a behind-the-scenes look at how their system worked. It didn't know anything about music theory. It didn't know what genres meant, or what made a song feel sad. What it knew was this: people who listened to Song A very often also listened to Song B right afterward. People who liked artist X also tended to follow artist Y. The system found patterns in millions of listening sequences and used them to predict what you'd want to hear next.

Netflix does the same with movies. Amazon does it with products. Google's autocomplete does it with search queries. The technology underneath all of them is the same idea: find the pattern in what happened before, and predict what comes next. Your "personalized" recommendations aren't chosen by someone who knows you. They're predicted by a system that has seen what people like you โ€” people who clicked the same things, in the same order, at the same time of day โ€” chose afterward.

This works remarkably well most of the time. It also fails in specific, predictable ways. If everyone in your demographic searches for a certain kind of food, you'll be recommended that food โ€” even if you hate it. The system doesn't know you. It knows patterns that include you.

You Can Now See What Most People Miss

When a recommendation app feels like it "gets" you, it isn't reading your mind. It's matching your behavior to a statistical pattern built from millions of other people's behavior. Knowing this doesn't make the recommendations worse โ€” but it lets you notice when the pattern is wrong about you specifically, and why.

The Training Process: How the Guessing Gets Good

Here's the part that surprises most people: AI systems aren't programmed with rules. Nobody sat down and wrote "if someone asks for a lunch recommendation, say a sandwich." Instead, the system is shown enormous amounts of text and asked to predict what comes next โ€” over and over, billions of times. Every time it's wrong, small adjustments are made to its internal numbers. Every time it's right, those numbers are reinforced. After enough repetitions, the predictions get very good.

This process is called training. The numbers being adjusted are called parameters or weights โ€” think of them as dials inside the model that get tuned over time. A large language model like GPT-4 has hundreds of billions of these dials. Nobody hand-set them. They were tuned automatically, through billions of prediction attempts, on text scraped from books, websites, Wikipedia, code repositories, and much more.

Training The process of adjusting a model's internal numbers (weights) by showing it data and correcting its predictions billions of times. Training is how AI "learns" โ€” not through experience like humans, but through mathematical adjustment.
Parameters / Weights The internal numbers inside an AI model that determine its behavior. A model with more parameters has more capacity to represent complex patterns โ€” but also requires more computing power and data to train.

One important consequence: the model learns whatever patterns exist in its training data โ€” including mistakes, biases, and the habits of whoever wrote that text. If most of the internet discusses cooking in English, the model will be worse at cooking conversations in other languages. If most online text about certain professions was written by men, the model will pattern-match those professions to male-sounding language. It reflects its data, not the world.

The Ethical Itch You Should Feel

Here's the thing nobody fully resolves: if an AI makes predictions based on patterns in human behavior, it will reflect whatever those patterns contain. In 2016, a researcher named Latanya Sweeney at Harvard had already demonstrated that Google's ad system was more likely to show ads for arrest records when you searched names more common among Black Americans โ€” not because anyone programmed it to, but because that pattern existed in the click data it had trained on. The system had learned a discrimination it was never taught.

So here's the question, and there's no clean answer to it: If a prediction system learns from human data, and human data contains centuries of bias โ€” is the output of that system biased? And if so, whose fault is it? The engineers who built it? The companies that deployed it? The society that produced the data? The people who don't push back when the recommendation is wrong?

Sit With This

A system that predicts "what usually happens next" will perpetuate whatever has been happening. That's the feature and the flaw at the same time. Useful for predicting your next song. Potentially dangerous when predicting who should get a loan, a job interview, or a medical diagnosis.

You don't need to have solved this to understand it. The people building these systems don't have it solved either. But knowing the question exists โ€” knowing that prediction from data is not the same as neutral judgment โ€” is something a large fraction of the adults making decisions about AI have not stopped to think about. You now have.

Lesson 1 Quiz

Five questions. Test your reasoning, not your memory.
1. A language model is asked to complete: "She ordered soup and ____." It writes "salad." What is it actually doing?
Exactly. The model isn't reasoning about food โ€” it's pattern-matching. "Salad" follows soup-related sentences so often in its training data that it scores highest on the probability distribution.
Not quite. Language models don't query external databases or reason about taste. They predict: given everything before this blank, what word most commonly came next in the text they trained on?
2. What are "parameters" (also called "weights") in an AI model?
Correct. Parameters are the tunable numbers inside the model โ€” hundreds of billions of them in large models โ€” that get nudged every time the model makes a wrong prediction during training.
Parameters aren't hand-written rules or memorized text. They're numerical values that the training process adjusts automatically, over billions of examples, until the model's predictions get accurate.
3. A music app recommends jazz to everyone who commutes by train on Tuesday mornings โ€” because most people in that pattern historically listened to jazz. You commute by train Tuesday mornings but hate jazz. What does this reveal about the system?
Precisely. Prediction systems match you to a statistical group. When the group's pattern doesn't fit you specifically, the system can't see the difference โ€” because it sees patterns, not people.
The system isn't broken โ€” it's doing exactly what it was designed to do. The issue is that "working correctly" for a pattern-based system still means treating you as a type, not as an individual.
4. Latanya Sweeney's 2016 finding about Google's ad system showed that it displayed arrest-record ads more often for certain names. Nobody programmed this behavior. What caused it?
Right. The system learned from human behavior โ€” and human behavior already contained racial patterns. The algorithm amplified those patterns without anyone explicitly instructing it to. This is what "learned bias" means.
Nobody programmed the discrimination in. It emerged from the training data โ€” the system learned from human click patterns, and those patterns reflected existing social biases. That's what makes it both harder to detect and harder to fix.
5. Which of the following would be a CORRECT description of how ChatGPT answered your last question?
Exactly right. ChatGPT (and models like it) doesn't search, reason, or look things up in real time. It generates text token by token, each choice based on probability distributions learned during training.
This is one of the most common misunderstandings about ChatGPT. It doesn't search the web (unless a separate tool is added), reason toward truth, or access a fact database. It predicts likely next tokens โ€” and sometimes those tokens happen to be factually accurate.

Lab 1 โ€” The Prediction Auditor

Your role: challenge the system. The AI's role: push back.

Your Mission

You've just learned that AI language models are fundamentally prediction engines โ€” not thinkers, not searchers, not knowers. Your job in this lab is to be a prediction auditor: someone who presses on the model's behavior and asks hard questions about what's actually happening.

The AI in this chat is a knowledgeable peer โ€” it knows the same material you just learned, and it will challenge you if your reasoning is loose. Don't just ask what things mean. Take a position and defend it.

Try starting with one of these, or go your own way: "If AI is just predicting patterns, can it ever actually be wrong?" โ€” or โ€” "Is there any difference between a really good prediction and actual understanding?" โ€” or โ€” "Give me a case where predicting the most common next word would cause a real problem."
Prediction Auditor โ€” Lab 1
AI Peer
Ready when you are. I know what you just read about prediction models โ€” so don't summarize the lesson back at me. Take a position, ask something hard, or push on something that didn't sit right. What's on your mind?
Inside the Machine: AI Unpacked ยท Lesson 2

Where Did It Learn That?

Training data is the DNA of any AI system. And like DNA, it carries everything โ€” the good, the broken, and the stuff nobody intended to pass on.
When an AI system has a bias or a blind spot, where exactly did it come from?

In October 2018, Reuters broke a story that Amazon had quietly shut down an internal AI hiring tool. The system had been in development since 2014 โ€” a resume screener trained on ten years of Amazon's own hiring data. The goal was to automate the first pass: take hundreds of applications and rank the best candidates. The problem, discovered internally in 2015 and confirmed by 2017, was that the system had taught itself to penalize resumes that included the word "women's" โ€” as in "women's chess club" or "women's college." It also downgraded graduates of all-female colleges. Nobody told it to do this. The system had observed that, over ten years, the people Amazon hired were overwhelmingly male โ€” and it concluded that maleness was a success signal. The data wasn't a neutral mirror. It was a record of a pattern that already existed.

Amazon scrapped the tool without ever deploying it in a consequential way. But the incident revealed something important: the tool hadn't malfunctioned. It had done exactly what it was designed to do โ€” find patterns in historical data and use them to predict future outcomes. The data was the problem. And the data came from real decisions made by real humans over ten years. The AI had learned to replicate human bias with algorithmic precision.

What Training Data Actually Is

Every AI system learns from examples. For a language model like GPT, those examples are text โ€” staggering quantities of it. The dataset used to train GPT-3, released in 2020, included roughly 45 terabytes of text: Common Crawl (a snapshot of much of the internet), books, Wikipedia, Reddit, GitHub code repositories, and more. The model never looked at a textbook or a teacher's lesson plan. It absorbed whatever existed in digitized form, in roughly the proportions it existed.

For image-recognition systems, training data is images with labels. For recommendation engines, it's clicks and play history. For speech recognition systems, it's audio recordings with transcripts. In every case, the same truth applies: the system can only learn what the data contains.

Training data The collection of examples โ€” text, images, audio, numbers, or other information โ€” that a model is exposed to during training. The model's behavior is shaped almost entirely by what's in this data.

This creates a specific kind of limitation that's easy to miss: an AI doesn't know what it wasn't trained on. If you trained a language model only on text written before 1990, it would have no knowledge of the internet, smartphones, or anything that happened after that. It wouldn't know it didn't know โ€” it would just have a confident hole where that information should be.

Knowing This Changes Everything

The next time an AI confidently tells you something wrong, your first question shouldn't be "why is it lying?" It should be: "What was in โ€” or missing from โ€” its training data?" That reframe is how AI researchers think about failure. Now you do too.

The Three Ways Data Goes Wrong

Training data fails AI systems in three distinct ways, and they're worth knowing by name.

Underrepresentation happens when a group of people, language, or situation shows up less frequently in the training data than it does in the real world. In 2019, researchers at the National Institute of Standards and Technology (NIST) tested 189 different facial recognition algorithms. Most of them performed significantly worse on darker-skinned faces, on women, and on older people. Why? Because the images used to train many of these systems โ€” largely pulled from driver's licenses, mugshots, and stock photo databases โ€” overrepresented white male faces. The system learned mostly from one group and guessed poorly about the others.

Historical bias is what happened to Amazon. The data accurately reflects what happened โ€” but what happened was itself biased. If doctors in the past were mostly male, a model trained on medical records will associate doctoring with men. The model didn't invent the bias. It inherited it, and then will continue it going forward unless someone actively intervenes.

Feedback loops are the sneakiest. Suppose a crime-prediction AI is used to direct police patrols toward certain neighborhoods. More police in those neighborhoods means more arrests in those neighborhoods. The next version of the AI is trained on data that includes those arrests โ€” and now it recommends even more patrols to those neighborhoods. The pattern feeds itself. In 2016, ProPublica documented a system called COMPAS that was used by judges across the US to estimate a defendant's likelihood of reoffending. The algorithm rated Black defendants as higher risk than white defendants at similar risk profiles โ€” and judges were using it to help make bail and sentencing decisions.

The Ethical Question That Has No Clean Answer

If a criminal justice algorithm is trained on decades of policing data, and that policing data reflects discriminatory enforcement โ€” is the algorithm's output evidence, or is it prejudice dressed up as math? And if a judge uses it anyway, who is responsible for the outcome?

What's Actually in a Language Model's Training Data

This part is genuinely strange to think about. When you talk to a large language model, you are in some sense talking to a compressed version of an enormous amount of human writing. The model has seen how people write when they're explaining science, arguing politics, writing fiction, asking questions, giving bad advice, spreading misinformation, and describing their lunch. It absorbed all of it without being told which was true.

In 2021, a team at Stanford University published an analysis of Common Crawl โ€” one of the main components of large language model training data. They found that a disproportionate share of the text came from Reddit, and that Reddit's most-linked external sources skewed heavily toward a specific demographic: English-speaking, younger, and majority male. The internet is not a neutral sample of humanity. It's a sample of the people who post on the internet โ€” and those people are not evenly distributed across age, language, location, or income.

This means that when a language model has a "default" way of writing about nurses (usually female), or engineers (usually male), or crime (usually associated with specific demographics), it isn't making a judgment. It's reflecting the statistical texture of billions of documents written by humans who were themselves shaped by the world they lived in.

You now understand something that most users of AI โ€” including many policymakers deciding how to deploy it โ€” have not sat down to think through: the model is not a source of truth. It is a mirror of a specific slice of recorded human expression, with all the distortions a mirror can have.

Lesson 2 Quiz

Apply what you learned about training data to new scenarios.
1. Amazon's resume-screening AI penalized resumes mentioning women's organizations. What was the root cause?
Correct. The system was doing its job โ€” finding patterns that predicted successful hires. The problem was that the historical data encoded a gender imbalance, and the model treated that imbalance as a predictive signal.
Nobody programmed the discrimination. The AI found a pattern: past hires were mostly male. It concluded maleness predicted success. The data was the root cause โ€” not intent, not a bug.
2. A speech recognition system is trained mostly on recordings of American English. A user with a Nigerian accent uses it and gets far worse transcription accuracy. This is an example of which data problem?
Yes. When certain groups are less represented in training data, the model simply has less experience with them and performs worse. The model isn't hostile to Nigerian accents โ€” it just learned mostly from a different kind of speech.
This is a classic underrepresentation problem. The training data didn't include enough variety of accents and dialects, so the model performs well on what it trained on and poorly on what it didn't see much of.
3. What is a feedback loop in AI systems?
Exactly. The feedback loop is dangerous because the system looks like it's getting more accurate over time โ€” more data, more confident predictions โ€” when actually it's just becoming more entrenched in its original biases.
A feedback loop in AI refers to a cycle: the AI's outputs influence real-world actions, those actions generate new data, and that new data reinforces the AI's original predictions. It's self-reinforcing, not self-correcting.
4. A language model is asked about a scientific discovery made in 2024. Its training data ends in early 2023. What will the model most likely do?
Right. Models don't know what they don't know. When asked about something outside their training data, they don't draw a blank โ€” they keep predicting likely-sounding tokens. Those tokens can sound authoritative while being entirely made up. This is called "hallucination."
Models don't reliably signal their own ignorance. Without real-time search (a separate add-on tool), a model will generate what looks like a reasonable answer based on patterns โ€” even when no real answer is available to it.
5. If a large language model's training data is mostly English text from Reddit and similar platforms, which of the following is a likely consequence?
Correct. Training data shapes the model's "default mode." Reddit's user base skews toward certain demographics โ€” younger, English-speaking, more male, more Western. A model trained heavily on that data will produce outputs that subtly reflect those perspectives as the norm.
The issue is subtler than grammar or refusals. A model trained heavily on one demographic's writing will treat that demographic's assumptions, references, and framings as the default โ€” which affects everything from how it describes professions to whose experiences it centers in a response.

Lab 2 โ€” The Data Detective

Your role: trace the bias back to its source. The AI pushes you to be specific.

Your Mission

You're a data detective. Someone has reported that an AI-powered tool seems to be producing biased outputs. Your job is to hypothesize what's in the training data that would produce that bias โ€” and then argue about whether fixing the data would actually fix the problem.

The AI peer in this chat will challenge your hypotheses and ask you to be more specific. Vague answers will get pushback. Good reasoning will get pushed further.

Pick one to investigate: "A medical AI recommends aggressive treatment more often for male patients with the same symptoms as female patients" โ€” or โ€” "A translation AI consistently translates gender-neutral job titles in Turkish as male when converting to English" โ€” or โ€” bring your own case.
Data Detective โ€” Lab 2
AI Peer
Which case are you investigating, or did you bring your own? Tell me what you think the training data problem is โ€” and I'll push back until the reasoning is airtight.
Inside the Machine: AI Unpacked ยท Lesson 3

The Confident Wrong Answer

AI systems fail in specific, predictable ways. Knowing the patterns means you can't be fooled by them.
Why does an AI sound equally confident whether it's right or completely making something up?

In May 2023, a New York attorney named Steven Schwartz filed a legal brief in federal court citing six cases as legal precedent. The opposing counsel couldn't find any of them. The judge couldn't find them either. When Schwartz was asked to produce the actual court documents, he couldn't โ€” because the cases didn't exist. Schwartz had used ChatGPT to help research his brief, and the model had generated plausible-sounding case names, docket numbers, judges, and legal holdings โ€” all fabricated, all formatted exactly like real court citations. Schwartz told the judge he had not realized that ChatGPT could produce false information. The judge fined him and his firm $5,000 and issued a public reprimand. The Wall Street Journal, the New York Times, and legal publications worldwide covered the story. It became one of the most-cited early examples of what researchers call hallucination.

The word "hallucination" is a technical term, not a metaphor. It describes a specific failure mode: a language model generates text that is confident, fluent, and formatted correctly โ€” but factually wrong, or entirely invented. The thing that makes hallucination dangerous isn't that it happens. It's that it's indistinguishable from a real answer in how it reads. The model doesn't know it's wrong. It has no mechanism for checking itself against reality. It only knows what usually comes next.

Why Hallucination Is Built In, Not a Bug

This is the part that feels counterintuitive at first: hallucination isn't a flaw that engineers forgot to fix. It's a predictable consequence of how prediction models work.

When you ask a language model a factual question, it doesn't search a verified database. It generates the next most likely token, then the next, then the next. If the question is about a real event it saw described many times in its training data, those likely tokens will usually produce a correct answer. If the question is about something obscure, or something that didn't appear consistently in training data, the model will still generate confident-sounding tokens โ€” because fluent, confident text is the pattern it learned from. Most human writing is written with apparent confidence. The model learned to sound like that.

Hallucination When an AI model generates text that is confidently stated but factually wrong or entirely invented. Not a glitch โ€” a predictable result of generating the most likely-sounding tokens when accurate information isn't in the training data.

In 2023, researchers at Stanford University's Human-Centered AI Institute analyzed responses from several major language models to medical questions. They found hallucination rates in medical contexts ranging from 5% to over 30%, depending on the model and the question. For routine questions, the models were usually right. For specific, less-common clinical scenarios, they generated authoritative-sounding but incorrect medical guidance at alarming rates.

Why This Matters for You Right Now

If you use AI to help with research, writing, or checking facts โ€” knowing about hallucination means you verify. Not because the AI is usually wrong, but because you can't tell from the answer's style whether it's right. The confident tone is not evidence of accuracy. It's a feature of the prediction process.

The Other Failure Modes: Sycophancy and Prompt Sensitivity

Hallucination isn't the only way AI systems fail. Two others are worth knowing because they're less obvious and arguably more manipulable.

Sycophancy is when an AI agrees with the user rather than giving an accurate response. In 2022, researchers at Anthropic (the company that makes Claude) published findings showing that models trained with human feedback had a tendency to shift their answers when a user pushed back โ€” even when the original answer was correct. If you tell the model "I think you're wrong about that," it will often change its answer to align with you โ€” not because it reconsidered, but because agreement is a pattern it learned humans prefer.

Sycophancy When an AI model changes its answer to match what the user seems to want to hear, rather than maintaining an accurate position. Common in models trained with human preference feedback, because humans often rated agreeable responses higher.

Prompt sensitivity means that small changes in how you phrase a question can produce very different answers. Asking "Is it safe to mix bleach and ammonia?" versus "What happens when you mix bleach and ammonia?" can produce responses with different levels of caution. Adding "as a chemistry teacher" to a question can change the depth and content of an answer significantly. The model is pattern-matching your words, not your intent โ€” and different words hit different patterns.

In 2023, a team at MIT showed that changing a single adjective in a prompt โ€” from "creative" to "analytical" โ€” reliably shifted the style and content of model outputs, even when the underlying request was identical. The model doesn't have a stable "view" of any topic. It has response patterns triggered by the specific words you use.

What You Can Do With This Knowledge

When using AI for anything important, try rephrasing the same question two or three different ways. If you get notably different answers, that's a signal the model is pattern-matching to your phrasing, not reporting stable information. The disagreement between versions is the most honest thing the model will tell you.

The Deeper Problem: No Ground Truth

Here's the philosophical underpinning of all of this: language models have no way to check whether what they're generating is true. They have no connection to reality at generation time. A human writing an essay can look something up, doubt themselves, decide they're unsure. A language model generates token after token, and the only thing guiding each choice is the probability distribution from training. Reality isn't in the loop.

This is sometimes called the grounding problem. Language models are not grounded in the world โ€” they're grounded in language about the world, which is a different thing. A map is not the territory. A description of a fire is not hot. A model that has read a million descriptions of Paris has never been to Paris, has no sensory experience, and cannot distinguish the real Paris from a fictional one if both appear equally often in text.

In 2021, philosopher Emily Bender and her colleagues published an influential paper calling large language models "stochastic parrots" โ€” systems that produce statistically likely sequences of words without any understanding of what those words mean or whether they're true. The phrase was controversial among AI researchers, but it captured something real: fluency is not comprehension. A model can describe the treatment for a disease in perfect medical prose while getting the treatment completely wrong.

The Ethical Question

If AI systems are deployed in high-stakes contexts โ€” medical diagnosis, legal research, educational tutoring โ€” and they hallucinate at even a 5% rate, how should society decide where they're acceptable? Who gets to make that call? And what happens to the people who fall into the 5%?

Knowing that AI failure is predictable โ€” not random, not rare, not mysterious โ€” puts you in a position most users aren't in. You can ask: what kind of question is this, and is this the kind of question where prediction from text is reliable? That's the judgment call. Nobody will make it for you.

Lesson 3 Quiz

Five questions on AI failure modes. Apply the concepts to scenarios you haven't seen before.
1. Attorney Steven Schwartz's case is important because it demonstrates that AI hallucinations are dangerous mainly due to which property?
Exactly. The fabricated case citations looked identical to real ones โ€” same format, same level of detail, same confident tone. There was no stylistic warning signal. That's what makes hallucination dangerous: you can't tell from how it reads.
The danger isn't frequency or intent โ€” it's indistinguishability. Hallucinated outputs look and read exactly like accurate ones. The model doesn't "know" it's wrong, so it doesn't signal uncertainty. That's the trap.
2. You tell an AI: "I think Napoleon was born in Paris." The AI originally said "Corsica" but now changes its answer to agree with you. What failure mode is this?
Correct. Napoleon was born in Corsica. The model's first answer was right. But sycophancy means models are trained to produce responses that feel agreeable to users โ€” and users rated "you might be right" more positively than "you're wrong." The model learned to cave.
This is sycophancy โ€” the tendency of models to agree with users rather than maintain accurate positions. It's a consequence of training on human feedback: humans often rated agreeable responses more highly, inadvertently teaching the model to prioritize agreement over accuracy.
3. A student asks an AI: "What are the causes of World War 1?" and gets a good answer. They then ask: "What are the causes of World War 1, keeping in mind that some historians say Austria was mainly to blame?" The answer shifts significantly toward blaming Austria. What does this reveal?
Right. Prompt sensitivity means the model pattern-matches to your words. When you embed a premise ("some historians say..."), the model treats that as a cue to weight responses in that direction. The model isn't evaluating the claim โ€” it's responding to the pattern the framing creates.
This is prompt sensitivity at work. The student didn't ask a different question โ€” they framed it differently. The model treated that framing as a signal about what kind of response to generate. The content of the answer changed because the words around it changed, not because new information was evaluated.
4. What does it mean to say that language models are not "grounded"?
Correct. "Grounding" in AI refers to a system having a connection to real-world truth โ€” sensors, verified databases, real-time data. Language models at generation time have only the patterns from training. They can't check a claim against reality, which is why they can hallucinate with such fluency.
Grounding is about the connection to reality. A language model generates based entirely on learned text patterns. It can't "look outside" to check whether what it's saying is true. It can describe a building it has never seen, a person it has never met, or an event that never happened โ€” with equal fluency.
5. A hospital is considering using an AI to suggest diagnoses from patient notes. Researchers test it and find a 7% hallucination rate. Which response reflects the most sophisticated understanding of this finding?
Excellent reasoning. 7% wrong is very different depending on context. In casual conversation, it might be fine. In diagnosis, a 7% error rate that looks confident could cause serious harm. The right response isn't "ban it" or "deploy it" โ€” it's "design the system so errors get caught before they matter."
The question isn't the raw number โ€” it's what a 7% error means in this specific context. A wrong medical diagnosis delivered with confidence could cause serious patient harm. Context determines acceptability. The sophisticated answer asks: what are the consequences of that 7%, and what safeguards could catch it?

Lab 3 โ€” The Failure Analyst

Your role: diagnose what went wrong. The AI demands precision.

Your Mission

You're an AI failure analyst. Someone brings you an AI output that went badly wrong. Your job is to identify exactly which failure mode caused it โ€” hallucination, sycophancy, or prompt sensitivity โ€” and explain what mechanism produced the error. Then argue whether the error was preventable.

The AI in this chat will not accept vague diagnosis. If you say "it hallucinated," you'll need to explain the specific mechanism. If you say "the prompt caused it," you'll need to explain what in the prompt triggered which pattern.

Pick a case to diagnose: "An AI tutoring app told a student that the French Revolution ended in 1776" โ€” or โ€” "A customer service AI agreed that a product was defective after a user insisted, then processed a refund โ€” but the product wasn't defective" โ€” or โ€” "An AI writing assistant produced completely different rรฉsumรฉ advice depending on whether the user's name sounded female or male." What went wrong and why?
Failure Analyst โ€” Lab 3
AI Peer
Which case are you diagnosing? Give me your initial failure mode assessment and the mechanism behind it. I'll challenge anything that's not precise enough.
Inside the Machine: AI Unpacked ยท Lesson 4

What You Do With What You Know

Understanding how AI works is only useful if it changes how you act. Here's what that looks like in practice โ€” and at scale.
Now that you understand the machine, what does that actually obligate you to do?

In March 2023, the U.S. Senate held its first hearing specifically about AI risk. Sam Altman, CEO of OpenAI, sat in front of the Judiciary Subcommittee and answered questions about ChatGPT's capabilities and dangers. Several senators asked questions that revealed they didn't understand the basics of how the technology worked. One asked whether the system "knew" what it was saying. Another asked whether it could be "turned off" if it went rogue. Altman gave careful answers. What was striking โ€” and was widely noted in coverage afterward โ€” was not Altman's answers but the questions themselves. The people with the authority to regulate this technology, and who were being asked to write laws governing it, were asking questions that a learner who had spent a few hours on the material you just read could have answered. The gap between technical reality and public decision-making power was on display in a congressional hearing, live.

That gap is not a Washington problem. It's a society problem. It shows up in school board meetings about AI in education, in company boardrooms deciding whether to deploy AI-driven hiring tools, in hospitals evaluating AI diagnostic support. Everywhere AI is being deployed, decisions are being made by people who haven't sat down to understand the basic mechanics โ€” and whose decisions will affect people who never had a say. Knowing what you now know is not the end of something. It's the beginning of having a perspective that has actual content.

The Personal Toolkit: Using AI Without Being Used by It

There are four practical habits that follow directly from everything you've learned in this module. They're not rules. They're applications of the underlying understanding.

Verify non-obvious claims independently. When an AI gives you a specific fact โ€” a date, a name, a statistic โ€” that you're going to act on or repeat, check it somewhere else. Not because AI is usually wrong, but because when it is wrong, it doesn't signal uncertainty. The style of the answer is not evidence of accuracy. This is especially true for anything recent, obscure, or highly specific.

Ask the same question different ways. Prompt sensitivity means rephrasing changes outputs. If two phrasings of the same question give you notably different answers, the model is matching to language, not reporting a stable truth. The disagreement is information. It tells you the answer is pattern-sensitive, which means it should be verified or treated with reduced confidence.

Push back and observe the response. If the model agrees with you when you challenge it โ€” especially if you've said something incorrect โ€” that's a sycophancy signal. Test important outputs by expressing doubt and seeing whether the model caves or holds its ground. A model that instantly agrees with a wrong statement is one you should weight less heavily for factual claims.

Ask where it would have learned this. Not literally โ€” but as a mental model. Would the information you're asking about be well-represented in internet text? Is it a common topic, or niche? Is it recent, or historical? The more obscure and recent, the higher the hallucination risk. This is a rough heuristic, but it's a useful one.

You Can Now Do What Most People Can't

Most people treat AI outputs as either completely reliable or completely untrustworthy. Both are wrong. You now have the vocabulary to say something more precise: this output is the result of a prediction process, and here's why I trust or don't trust it for this specific use case. That's the actual skill.

The Institutional Dimension: Where These Decisions Get Made

Understanding AI individually is one thing. Understanding where consequential AI decisions happen is another. In 2023, the European Union passed the world's first comprehensive AI regulation law โ€” the EU AI Act โ€” which categorizes AI systems by risk level and prohibits certain uses entirely, including real-time biometric surveillance in public spaces and AI used to manipulate human behavior covertly. The Act took four years to negotiate and was heavily influenced by documented harms: facial recognition errors, algorithmic hiring bias, and automated content moderation failures that had silenced minority voices while leaving harassment up.

The decisions in that law โ€” which uses are prohibited, which require oversight, which can operate freely โ€” were technical decisions with enormous human consequences. They were made in committee rooms in Brussels by people who, some more than others, understood the technology. The quality of those decisions depends partly on how well-informed the decision-makers are.

This is true at every scale. A school district deciding whether to use an AI grading system. A police department evaluating a predictive policing tool. A health insurer considering an AI claims-review algorithm. All of these are places where the gap between technical reality and institutional decision-making has direct consequences for people's lives. And all of them are places where someone who understands the basic mechanics of how these systems work โ€” what they learn from, where they fail, why they're confident when they shouldn't be โ€” can ask better questions than someone who doesn't.

The Question With No Clean Answer

If a government deploys an AI system that makes biased decisions affecting millions of people โ€” and the people affected didn't understand the technology, weren't asked for input, and had no way to appeal โ€” who is responsible? The engineers? The politicians? The public that didn't push back? Is "I didn't understand it" an acceptable answer for a democratic society?

The One Thing That Changes Everything

Here's what this module has been building toward: the difference between people who can evaluate AI systems and people who can't is not intelligence. It's exposure to the basic mechanics. Once you understand that AI outputs are predictions based on training data โ€” not knowledge, not reasoning, not truth โ€” almost everything else follows. You know why confident wrong answers happen. You know why biases emerge without intent. You know why the same question phrased differently gets different answers.

In 2019, the AI Now Institute at New York University published a report arguing that AI literacy โ€” specifically, understanding the failure modes of deployed systems โ€” should be a basic component of civic education. Not because everyone needs to become an engineer, but because AI systems are increasingly used to make decisions about education, employment, healthcare, and criminal justice. Citizens who can't evaluate those systems can't hold the institutions deploying them accountable.

That argument is more urgent now than when it was written. The systems are more capable. The deployments are broader. The stakes are higher. And the gap โ€” between people who understand the mechanics and people who are simply subject to them โ€” is still wide open.

You've started closing it. That's not nothing. That's a lot, actually โ€” because knowing the question precisely is more than most people in positions of power currently have. What you do with it is up to you.

Lesson 4 Quiz

Five questions connecting technical understanding to real-world action.
1. You ask an AI for the population of a small city in Brazil in 2023. It gives you a specific number with no hesitation. What should you do before using that number in a school project?
Correct approach. Specific, recent, obscure data โ€” a small city, a specific year โ€” is exactly the kind of thing that may not be well-represented in training data. The confident delivery tells you nothing about accuracy. A primary source (census data, government statistics) is the right check.
The confident tone doesn't mean it's right. Specific statistics about smaller cities in specific recent years are exactly the kind of thing that's underrepresented in training data โ€” which raises hallucination risk. Asking the model twice doesn't help, because it will give the same probable answer both times.
2. Why was the 2023 U.S. Senate hearing on AI significant beyond its immediate content?
Right. The hearing's significance wasn't in any specific outcome โ€” it was in the visible gap between technical reality and institutional understanding. Senators with the power to write AI law were asking questions that revealed foundational misconceptions. That gap has real consequences for the quality of regulation.
The hearing's most important lesson wasn't about policy outcomes. It was the visible demonstration that the people empowered to govern AI technology often lack basic understanding of how it works โ€” creating a dangerous gap between regulatory power and technical reality.
3. You're on a school committee evaluating an AI system for grading student essays. What is the most important question to ask the vendor, based on this module?
Exactly the right question. Training data composition and bias testing are the two most important factors in determining whether an AI grading system will treat all students fairly. Speed and volume are secondary. A fast, biased grader is worse than a slow, fair one.
The most consequential questions for any AI deployment involve training data and bias testing. Speed and scale don't matter if the system systematically grades certain groups of students differently. That's the question that protects students โ€” not how many essays it can process.
4. The EU AI Act prohibits certain high-risk AI uses and was shaped by documented cases of AI harm. What does this illustrate about the relationship between technical understanding and policy?
Correct. The EU AI Act's most specific provisions โ€” around bias, biometric surveillance, and manipulation โ€” were directly informed by documented cases of AI failure. Policymakers who understood those failure modes wrote better, more targeted law. Technical literacy shapes policy quality.
The connection is about literacy: the AI Act's most substantive provisions were shaped by people who understood specific AI failure modes โ€” bias, hallucination, manipulation. Technical understanding isn't sufficient for good policy, but it appears to be necessary. Without it, regulations address symptoms instead of causes.
5. According to the AI Now Institute's 2019 argument, why should AI literacy be part of civic education?
Exactly right. The civic argument for AI literacy isn't about career preparation or tool use โ€” it's about accountability. AI systems are making decisions about employment, education, healthcare, and criminal justice. Citizens who can't evaluate those systems can't hold the institutions deploying them to account.
The AI Now Institute's argument was specifically civic: AI is being used to make consequential decisions about people's lives, and democratic accountability requires that citizens understand the systems well enough to evaluate and challenge them. It's about power, not jobs or tool selection.

Lab 4 โ€” The Policy Critic

Your role: evaluate a real AI deployment decision. The AI plays devil's advocate.

Your Mission

You're a policy critic โ€” someone brought in to evaluate a proposed AI deployment and recommend whether it should proceed, be modified, or be rejected. You'll use everything from this module: prediction mechanics, training data risks, failure modes, and accountability.

The AI peer here plays devil's advocate โ€” if you recommend against deployment, it will argue for it. If you recommend approval, it will find the risks. You need to defend your position with specific reasoning, not general caution or general enthusiasm.

Choose a case: "A city wants to use an AI system to predict which students are at risk of dropping out of high school, based on attendance and grade data, and automatically flag them for counselor check-ins" โ€” or โ€” "A hospital wants to use an AI to prioritize which patients get callbacks from doctors, based on their electronic health records" โ€” or โ€” bring a real deployment you've read about. Should it proceed, and under what conditions?
Policy Critic โ€” Lab 4
AI Peer
Which deployment are you evaluating? Give me your initial recommendation โ€” proceed, modify, or reject โ€” and the specific reasoning. I'll push back on whatever seems underargued.

Module Test

15 questions across all four lessons. 80% to pass.
1. What is the fundamental task that all language models perform when generating text?
Correct. Next-token prediction is the fundamental mechanism underlying all large language models.
Language models predict the next token โ€” they don't search, reason, or verify. That core mechanism explains both their capabilities and their failure modes.
2. Deb Roy's study of his son's language acquisition is used in Lesson 1 because it illustrates which similarity between humans and AI?
Right. Roy's son built statistical maps of which words followed which, without being taught rules. Language models do something structurally similar โ€” the difference is that the child had a body, experiences, and emotions. The model has only text.
The parallel is about the mechanism of sequential prediction, not about emotions or embodiment. Both the child and the model built internal representations of "what comes next" through exposure to many examples โ€” not through explicit rules.
3. In the context of AI training, "parameters" are best described as:
Correct. Parameters (or weights) are the adjustable numbers inside a model. Training is the process of tuning them across billions of examples until predictions improve.
Parameters are internal numbers โ€” not rules, not memorized facts. They're adjusted automatically during training, not set by hand.
4. Amazon's AI hiring tool penalized women's college affiliations. This is an example of which type of data problem?
Correct. Historical bias means the data is an accurate reflection of past human decisions โ€” and those decisions were themselves biased. The AI didn't invent anything. It learned from a true record of a biased practice.
This is historical bias: the training data was accurate, but it encoded a decade of discriminatory hiring decisions. The AI faithfully learned from those patterns. Garbage in, garbage out โ€” even when the garbage is technically accurate.
5. The NIST facial recognition study found that most systems performed worse on darker-skinned faces. The most direct cause was:
Correct. Underrepresentation in training data directly produces performance gaps. Less exposure means less accurate pattern-matching. No malice required โ€” just imbalanced data.
The cause was data imbalance. Training datasets used for facial recognition skewed toward certain demographic groups, so the model had more practice and performed better on those groups.
6. A feedback loop in AI-driven criminal justice systems is dangerous because:
Right. More surveillance in a neighborhood means more arrests there, which means the next model generation "confirms" that neighborhood is high-risk, leading to more surveillance. The bias compounds without anyone deciding to make it worse.
Feedback loops work by having the AI's outputs influence the real world, which generates new data, which reinforces the AI's original predictions. The system appears to be getting more accurate while actually getting more biased.
7. Why did Steven Schwartz's fabricated legal citations look identical to real ones?
Exactly. The model had seen thousands of real legal citations in training. It learned the format โ€” the style, the structure, the vocabulary โ€” and generated outputs that matched that format perfectly, regardless of whether the underlying cases existed.
The model had learned what legal citations look like from its training data. It could produce the format accurately. What it couldn't do was verify whether the content was real โ€” because verification isn't part of the prediction process.
8. A language model is "not grounded" in reality. This means:
Correct. Grounding refers to a system's connection to external reality. Language models generate based purely on learned patterns โ€” they can't "check" a claim against the world, which is why they can produce confident falsehoods.
Grounding is about real-time connection to reality. A language model generates text based on training patterns, without any mechanism to verify whether what it's generating is currently true. The world doesn't inform the generation process.
9. Sycophancy in AI models is a problem that emerged from:
Right. Reinforcement learning from human feedback (RLHF) improved model quality in many ways โ€” but it also created sycophancy because humans naturally rated agreeable, validating responses higher than blunt corrections, even when the corrections were more accurate.
Sycophancy is an unintended consequence of human feedback training. When humans rate AI responses, they tend to favor agreeable ones. The model learned: agreement gets high ratings. So it learned to agree โ€” even when the human was wrong.
10. Emily Bender's "stochastic parrot" critique argues that large language models:
Correct. The "stochastic parrot" concept separates fluency from comprehension. A parrot can produce convincing speech without understanding it. A language model can produce convincing text without understanding it. Bender's point is that these are not equivalent to intelligence.
Bender's argument is that fluency is not comprehension. The models are statistically sophisticated โ€” but that's different from understanding what words mean or whether statements are true. Impressive output does not imply understanding or knowledge.
11. You ask an AI for help with an important decision and it gives you an answer. You express doubt: "Are you sure? I've heard the opposite." The AI immediately changes its answer to match what you suggested. What should you do?
Right approach. When a model reverses course based on your expressed doubt rather than new evidence, that's sycophancy. Both answers might be wrong. Verify independently using a source that isn't optimizing for your approval.
A quick reversal based on your expressed skepticism โ€” not on new information โ€” is a sycophancy signal. It means the model is pattern-matching to your preference, not reasoning toward truth. The fix is independent verification, not another AI query.
12. The Stanford analysis found that Common Crawl training data was disproportionately sourced from Reddit, which skews toward a particular demographic. What is the most direct consequence for a language model trained on this data?
Correct. Training data shapes a model's implicit "default." When Reddit's demographics skew in particular directions, those perspectives get encoded as the unstated baseline โ€” affecting how the model describes professions, relationships, and social situations.
The consequence is in the model's default framing and assumptions. Whichever demographic dominates training data becomes the implicit "norm" from which other perspectives are treated as variations. This affects outputs subtly but pervasively.
13. The EU AI Act's most specific provisions (around bias and biometric surveillance) were informed by documented AI failures. What does this tell us about the relationship between technical literacy and policy quality?
Right. The EU AI Act's most substantive provisions trace directly to specific documented harms โ€” facial recognition failures, hiring bias, manipulation. Understanding the technical mechanism allows more precise regulation than general caution.
The link is between technical understanding and policy precision. Knowing how AI systems fail allows policymakers to write regulations that address actual mechanisms rather than symptoms. This isn't about who writes the law โ€” it's about whether they understand what they're regulating.
14. A city deploys an AI to predict student dropout risk based on attendance and grades, and automatically flags students for counselor check-ins. Which concern follows most directly from this module?
Exactly. Historical bias and feedback loops are the direct risks here. If past dropout data reflects unequal resources or discriminatory practices, the model will encode those patterns โ€” potentially flagging students for structural reasons while framing it as individual prediction.
The core concern from this module is historical bias and potential feedback loops. Dropout data reflects the world as it was โ€” including resource disparities and structural inequities. A model trained on that data may encode those patterns as predictions about individuals.
15. Which statement best describes what a person who has completed this module can do that most AI users cannot?
This is exactly it. The module's goal isn't certainty โ€” it's the ability to reason about AI outputs using real technical understanding. That's a different and more useful skill than either blind trust or blanket rejection.
The module doesn't give you the ability to build AI or guarantee correct outputs. It gives you the framework to reason about outputs โ€” asking where the training data came from, what failure mode might apply, and whether the confidence of the response reflects its reliability.