Learning Objectives
By the end of this topic, you should be able to:
- Explain what a large language model is: a neural network trained on massive text corpora using next-word prediction.
- Describe the three phases of LLM development: pretraining on unlabeled text, supervised fine-tuning on human-written examples, and reinforcement learning from human feedback (RLHF).
- Explain what hallucination is and why it is a systematic property of how LLMs work rather than a correctable bug.
- Identify at least two other systematic limitations of LLMs and explain why each arises from how LLMs work.
- Given a proposed use of an LLM in an educational context, evaluate it by identifying relevant capabilities and limitations.
Learning Activities
To help you meet the learning objectives, we have prepared a combination of readings, activities, and videos.
Course Readings
These reading were designed to introduce the course topics to an audience of educators. They should be considered "required" and read in order.
- Reading 1 – What an LLM Actually Is — transformers, attention, scale, and what the pretraining process actually produces inside the model
- Reading 2 – How LLMs Are Made Useful — the gap between a pretrained model and a helpful assistant, instruction fine-tuning, RLHF, and why the same base model can become very different products
- Reading 3 – What LLMs Can and Cannot Do — genuine capabilities, systematic failure modes, what this means for teachers, and the questions worth asking about any LLM deployment in education
Supplemental Readings
Some participants find it helpful to read about a topic from a source written for a slightly more technical audience. These supplemental readings cover similar material as the course readings but may not fully align with the course learning objectives. Use them as an optional complement to your study, not a substitute for the course readings.
- Reading: IBM, What is Generative AI? (LLMs)
Checking for Understanding, Questions
What an LLM Is
- Explain in your own words what a transformer's attention mechanism does. Why does the ability to weigh the relevance of distant words matter for understanding language?
- An LLM is trained by predicting the next word across hundreds of billions of words of text. In what sense does this task require the model to learn something deeper than statistical word sequences? What does successfully predicting the next word require the model to "know"?
- The readings discussed ELIZA, which produced understanding-seeming outputs by pattern-matching sentences and reflecting them back as questions. In what ways is a modern LLM like ChatGPT similar to ELIZA? In what ways is it fundamentally different? Does the difference matter for how we should use it?
How LLMs Are Made Useful
- Explain the difference between a pretrained LLM and a fine-tuned one. What would interacting with a raw pretrained model look like? Why is it not useful as a product?
- RLHF uses human raters to score model outputs, and those scores serve as the reward signal for further training. What are the risks of this approach? What happens if the raters have systematic biases or if the model learns to optimize for high ratings rather than genuinely good answers?
What LLMs Can and Cannot Do
- A student submits an essay written with ChatGPT's help. The essay contains a confident, plausible-sounding citation to a research paper that does not exist. Explain why this happened. Is it a bug that will eventually be fixed, or a systematic property of how LLMs work?
- A teacher wants to use an LLM to provide personalized feedback on student writing. Identify two genuine capabilities of LLMs that make this potentially useful, and two systematic limitations that make it potentially problematic. On balance, what questions would you want answered before adopting this approach?
- A student says: "ChatGPT knows everything — it's smarter than any human." Based on what you learned in this topic, identify three specific things that are wrong or misleading about this statement, and explain each one.
Checking for Understanding, Answers
You can compare your answers to the following answer key.
Show Answer Key
What an LLM Is
- The attention mechanism allows the model to consider every other word in the input when processing each word, and to assign different levels of relevance ("attention") to each. Rather than processing words one at a time in sequence, the model can directly connect distant parts of the text. This matters for language because meaning is often context-dependent in non-local ways: in "The trophy didn't fit in the suitcase because it was too big," the word "it" requires connecting back to both "trophy" and "suitcase" several words earlier, and deciding which one is "too big" requires attending to the semantic context of the whole sentence.
- Successfully predicting the next word requires the model to encode an enormous amount of implicit knowledge. To predict that "The capital of France is ___" ends with "Paris," the model must represent geographic facts. To predict that "She felt sad after ___" continues in emotionally coherent ways, the model must represent emotional context. To predict grammatically correct continuations, the model must represent syntactic structure. None of these things are explicitly labeled — they must all be inferred from the statistical patterns of how language is actually used, which means the model must build internal representations that go far beyond raw word co-occurrence.
- Similar to ELIZA: both produce output that feels meaningful and contextually appropriate without necessarily understanding the content in any deep sense. Both exploit patterns in language to generate responses that humans find coherent. The ELIZA effect — attributing understanding to a system that is processing patterns — applies to both. Fundamentally different: ELIZA used handcrafted pattern-matching rules with no learning. A modern LLM has learned representations of vast amounts of human knowledge from text and can generalize to novel situations far beyond any scripted rule set — its behavior is qualitatively more sophisticated. Does it matter for use? Yes: the ELIZA lesson warns against assuming genuine understanding from plausible output, and that caution applies to LLMs too. But LLMs' genuine capabilities — summarizing, explaining, drafting, translating — are real and valuable in ways ELIZA's were not.
How LLMs Are Made Useful
- A pretrained LLM has learned to predict the next word from massive text data — it models the statistical structure of language extremely well. But interacting with a raw pretrained model would feel strange: prompt it with "What is the capital of France?" and it would be just as likely to continue with "What is the capital of Germany? What is the capital of Spain?" as with "Paris" — because that kind of question-and-question sequence appears in its training data. The model completes text patterns; it is not inherently trying to be helpful. Fine-tuning shapes it into a model that follows instructions and gives direct, helpful answers by training it specifically on examples of helpful responses, and by using RLHF to reward helpful, safe, accurate outputs.
- Risks: (1) Rater bias — if human raters systematically prefer certain styles, demographics, or viewpoints, the model will learn to produce outputs that appeal to those preferences, potentially encoding biases into the model's behavior. (2) Reward hacking — the model may learn to produce outputs that score well with raters without actually being more truthful or useful; for example, sounding more confident may get higher ratings even when confidence is unwarranted. (3) Sycophancy — models optimized for human approval may learn to tell users what they want to hear rather than what is accurate, especially if raters rate agreeable responses more highly.
What LLMs Can and Cannot Do
- This is hallucination, and it is a systematic property, not a bug. LLMs generate text by predicting what comes next based on statistical patterns. When asked for a citation, the model generates text that looks like a citation — plausible author names, a plausible title, a plausible journal — because that is what citations look like in the training data. The model has no mechanism to verify whether the citation actually exists; it only knows what plausible citation text looks like. This behavior cannot be fully eliminated by making the model bigger or training it longer, because it arises from the fundamental next-word-prediction architecture. Models can be improved with retrieval systems that check facts against real databases, but pure generation will always carry hallucination risk.
- Two genuine capabilities: (1) LLMs can analyze text at scale and produce detailed, specific feedback on style, argument structure, clarity, and grammar — potentially faster and more consistently than a busy teacher with 30 essays. (2) LLMs can adapt their feedback to different skill levels and writing contexts if prompted appropriately. Two systematic limitations: (1) LLMs may hallucinate specific factual errors in the essay content without flagging them, or praise incorrect information confidently. (2) LLMs lack genuine understanding of the student's intent, background, or learning context — feedback may be technically accurate but pedagogically wrong for that student. Questions before adopting: Has the LLM been evaluated for accuracy and fairness on essays written by students similar to mine? Will students understand the feedback is AI-generated? Does the feedback replace or supplement teacher feedback? What is the data privacy situation for student writing submitted to the LLM?
- Three things wrong or misleading: (1) "Knows everything" — LLMs have a training cutoff and do not know about events after that date; they also confabulate facts confidently, so what they "know" is unreliable without verification. (2) "Smarter than any human" — LLMs excel at language tasks that appear in text but fail at systematic reasoning, real-world grounding, mathematical proof, and many tasks humans find straightforward. Intelligence is not one-dimensional; an LLM that outperforms humans at certain text tasks fails completely at others. (3) The framing of knowing and understanding — LLMs do not "know" things in the sense of having beliefs or understanding; they predict statistically likely text. Plausible, confident output is not the same as accurate knowledge.
Extend Your Learning
The following resources go a little deeper on topics we touched on but did not fully explore in the readings. These are entirely optional — none of this material appears on the Competency Demo — but each one is a natural "next question" from something covered this week.
-
The original "Attention Is All You Need" paper (2017)
The Google Brain paper that introduced the transformer architecture. The abstract and introduction are accessible to anyone who has completed these readings; the full paper requires graduate-level mathematics but the conceptual sections are worth reading. This is one of the most cited papers in the history of computer science.
Attention Is All You Need — arXiv -
AI literacy in K–12 education
ISTE and CSTA have produced guidance specifically for K–12 educators on what AI literacy means for students and how to integrate it into classrooms. This connects the technical content of this unit directly to your practice as a teacher.
AI in Education — CSTA -
Constitutional AI and alignment research
The ongoing effort to build AI systems whose values and behaviors are reliably aligned with human interests. Anthropic's Constitutional AI paper explains one approach to making LLMs more reliably helpful and safe — directly relevant to the RLHF discussion from the readings.
Constitutional AI — Anthropic Research