AIQ AIQ
When AI Gets Confused · Lesson 2.2.2

Teaching "When AI Gets Confused" to Hacker mode (ages 11–14)

Part of the When AI Gets Confused lesson guide. Teaching a different grade? 🌈 Explorer (5–7) · 🔧 Builder (8–10) · ⚡ Architect (15–18)

Hook & Warm-Up

Open by putting the class in the attacker's seat rather than the victim's: "If you wanted to make a self-driving car run through a stop sign, and you couldn't touch the car itself, what would you try?" Let students throw out ideas — cover the sign, spray-paint it, knock it down. Push back on the obvious ones: "Those would work on a human driver too, so they'd get caught immediately. What if you wanted a change so small a human driver wouldn't even notice, but the car's AI would completely misread the sign?" Give it a beat, then read the lesson's hook:

"Even the smartest AI can be fooled. Tiny image changes trick vision models. Chatbots make up facts.
Let's examine why AI fails and what it means for trust and safety."

Reveal the real answer to the opening question: researchers have shown that a handful of small stickers, placed at specific points on a real stop sign, can cause an AI vision system to misclassify it — not because the AI is unsophisticated, but because of a structural property of how these models learn. Frame the stakes plainly: "This isn't a toy example. It's a documented category of vulnerability called an adversarial example, and it applies to essentially every image-recognition system built the way modern ones are — which is exactly why it matters for anything from content moderation to medical imaging to autonomous vehicles."

Main Activity

Move through the three scenes as a structured investigation into failure modes, naming the technical term for each category as you go and asking the class to reason about the underlying mechanism, not just recall the example. At this age, resist the urge to just present facts — Hacker mode students respond better to being handed a puzzle and working toward the mechanism themselves, with you filling in the correct vocabulary once they've reasoned their way close to it.

Scene 1 — Vision Fails, or Adversarial Examples 👁️. Present the stop-sign case, the leopard-print sofa, the banana-to-toaster image, and the adversarial glasses as four instances of the same underlying phenomenon. Explain the mechanism at a level appropriate for this age band: an image classifier represents an image as a large set of numbers and learns a decision boundary that separates, say, "stop sign" from "speed limit sign" in that numerical space. A small, carefully chosen change to the input's pixel values — often too small for a human eye to register — can push the image just across that boundary without changing what a human perceives at all. Ask: "Why does it matter that the change can be imperceptible to us? What does that tell you about where the vulnerability actually lives — in the image, or in how the model represents images?" (The vulnerability is in the model's internal representation, not in anything a human would call a meaningful change to the picture.) The leopard-sofa example illustrates a related but distinct issue worth distinguishing: texture bias — evidence that some image classifiers lean more heavily on local texture patterns than the overall shape or context of an object, which is a training-data and architecture issue rather than a deliberately crafted attack. Draw the distinction explicitly for the class: an adversarial sticker attack is something a person deliberately engineers to exploit a model; texture bias is a pre-existing weakness in how the model generalizes, discovered rather than manufactured. Both end in a misclassification, but only one required an attacker.

Scene 2 — Language Fails 💬. Cover sarcasm, polysemous words like "bank," confident nonsense, and hallucination as failures rooted in how large language models are trained: to predict a statistically plausible next token given prior context, not to verify factual accuracy or detect a speaker's intended tone. Ask: "If a model's only training objective is 'produce plausible text,' why would you expect it to reliably know when it doesn't know something?" (There's no separate mechanism checking truth — plausibility and truth are correlated in training data but not identical, and the gap between them is exactly where hallucinations live.) Point out that sarcasm detection is a genuinely hard, actively researched NLP problem, not a solved one, because it depends on tone, shared context, and sometimes world knowledge that isn't present in the text itself. Use the "bank" example to show a related but separate issue — lexical ambiguity — where a single word maps to multiple, unrelated meanings, and a model has to lean on surrounding context to pick the right one; ask students to spot the context clues that would disambiguate "I sat by the bank" versus "I deposited money at the bank" and note that removing those clues (a one-word prompt, a poor translation) is exactly when these models tend to guess wrong.

Scene 3 — Why AI Fails 🔍. Frame the four cards as the underlying causes behind everything in scenes 1 and 2. Data Limits (📊) is the training-data coverage problem: a model's competence is bounded by what its training distribution actually contained. No Common Sense (🧩) points to the absence of a grounded world model — the AI has no built-in physics, causality, or social knowledge unless something like that was explicitly represented in training. Context Blind (🌍) is about the model lacking situational awareness beyond the input it's given — it can't ask "why was this photo taken?" the way a person instinctively would. Defenses (🛡️) introduces the idea of adversarial testing and robustness — engineers deliberately generate difficult or adversarial inputs during development to find and patch weaknesses before deployment, understanding this as risk reduction rather than a guarantee of correctness. Worth naming explicitly for this age group: the broader practice this points toward is sometimes called "red-teaming" — deliberately attacking your own system, or hiring someone to, before an outside attacker does. It's the same logic as a bank stress-testing its own security instead of waiting to get robbed.

Wrap this scene with a synthesis question rather than moving straight to discussion: "Of the four causes we just covered — data limits, no common sense, context blindness, and imperfect defenses — which one do you think is hardest to fix with more engineering effort, and why?" There's a defensible case for any of the four, and a good answer will usually land on "no common sense," since that's arguably a different kind of problem than simply needing more or better data.

Discussion

Quiz Walkthrough

Hacker mode's quiz for this lesson swaps in the full technical vocabulary — adversarial examples, distribution shift, human-in-the-loop — rather than the plain-language phrasing used in the younger age bands' quizzes. If a student struggles with the wording rather than the underlying concept, it's fair to restate the question in the Scene 1–3 vocabulary above before they answer, since the goal of this quiz is checking conceptual understanding, not vocabulary recall under pressure.

Adversarial examples exploit...
Gradient-based vulnerabilities in neural networks. Adversarial examples are typically constructed by finding a small perturbation, guided by the model's own internal gradients, that moves an input across a decision boundary while staying visually indistinguishable to a human. This is a property of how the model represents and separates data, not a hardware or connectivity issue.
AI hallucinations occur because...
Language models optimize for probable sequences, not factual accuracy. A language model's training objective rewards producing text that looks like a plausible continuation of what came before. Nothing in that objective directly rewards truth, so a fluent, confident, and false statement can score just as well during training as a fluent, confident, and true one.
Distribution shift means...
Test data differs significantly from training data distribution. A model is only reliable within roughly the same statistical patterns it was trained on. When real-world inputs at deployment diverge meaningfully from that training distribution, accuracy tends to degrade — often in ways that aren't obvious until the model actually encounters that new kind of input.
The most reliable defense against AI errors is...
Human-in-the-loop oversight and verification. More data and bigger models can reduce error rates, but neither eliminates the categories of failure covered in this lesson. Keeping a person able to review, question, and override an AI's output remains the most dependable safeguard against consequential mistakes.

Wrap-Up & Extension

Close with: "Every failure mode we covered today — adversarial examples, hallucination, texture bias, distribution shift — is an active research area, not a solved problem. Understanding these failure modes doesn't mean rejecting AI; it means using it the way a good engineer uses any powerful tool: knowing exactly where its limits are."

Extension — Documented AI failure case study: In small groups, have students research one real, documented case of an AI system failing in production — a chatbot generating false information that made news, a content-moderation system flagging legitimate content, a facial-recognition misidentification, or a self-driving vehicle incident involving perception failure. Each group prepares a short presentation covering: what happened, which failure category from today's lesson it falls into (adversarial example, hallucination, distribution shift, or something else), what the company's response was, and what a better safeguard might have looked like. Require at least one credible, named source per group. This extends the lesson from recognizing categories of failure to evaluating how those failures play out — and get addressed, or don't — in real deployed systems.

If time is tight, a shorter version works too: instead of a full presentation, each group writes a two- or three-sentence "incident report" in the style of a bug tracker entry — what broke, why (in terms of today's vocabulary), and one proposed fix — and reads it aloud. Either version gets students applying the lesson's categories to something outside the app rather than only recalling the app's own four scenes.

← Lesson overview ← Sensors and Data (Hacker) AI Perception Challenge (Hacker) →