Table of Contents
How ChatGPT Actually Works: LLMs Explained for Parents (No PhD Required)
LLMs predict the next word based on patterns from trillions of tokens. Here's what tokenization, context windows, temperature, and hallucination mean — and why this changes how your kid should use AI.
Your teenager probably uses ChatGPT more hours per week than they spend in math class. They might use it to draft essays, brainstorm ideas, explain concepts, write code, or just have conversations when they’re bored. What they likely don’t understand — and what most adults don’t either — is what’s actually happening when they type a message and press enter.
The explanation isn’t magic, and it isn’t a clever search engine, and it isn’t artificial general intelligence. It’s something more specific: a very large statistical model trained to predict what text should come next. That description sounds underwhelming until you understand the implications, which are both more impressive and more limiting than most people realize.
Understanding this changes how your child should use these tools. Not just “use them critically” — but specifically, concretely, knowingly.
What LLM Actually Means
LLM stands for Large Language Model. Each word matters:
Large: Modern LLMs have hundreds of billions to trillions of parameters — numerical values that encode statistical patterns learned from training data. GPT-4, the model behind ChatGPT, is estimated at roughly 1.76 trillion parameters. This scale is not incidental; scaling up model size and training data has been the primary driver of capability improvements in the field.
Language: LLMs process and generate text. They were developed primarily for text-based tasks, though modern multimodal versions can also handle images and audio. The fundamental operation is always about relationships between language units.
Model: This is a statistical model — a mathematical structure that has learned to represent patterns in language. It’s not a database of facts. It’s not a reasoning engine in the classical sense. It’s a model of statistical regularities in text.
The core operation: given a sequence of text, predict what comes next. That’s it. That simple-sounding task, trained at unprecedented scale, produces something that can write essays, explain quantum mechanics, debug code, and pass medical licensing exams — and also confabulate scientific citations, get basic arithmetic wrong, and sometimes produce confident nonsense.
How LLMs Actually Process Text
Tokenization: The Language of LLMs
Before a language model can process text, it has to convert the text into tokens. A token is a unit of text — roughly a word or word fragment in English, though the mapping varies.
“Unbelievable” might be one token. “Electroencephalography” might be three or four. “cat” is one token. “cats” is one token. “caterpillar” might be two. The tokenization is determined by a vocabulary developed during training.
Why does this matter practically? A few reasons:
First, token counts determine cost and processing. Most LLM pricing is per token, and most context window limits are in tokens. A typical English word is about 1.3 tokens on average.
Second, tokenization affects how the model handles unusual text. A word the model rarely saw in training might be split into strange token fragments, which can affect how it processes that word. This is one reason LLMs can struggle with uncommon proper nouns, technical jargon in specialized fields, and text in languages underrepresented in training data.
Third — and this is a subtle but important point — the model isn’t really processing words or meaning directly. It’s processing numerical representations of token sequences. The “understanding” happens implicitly through billions of parameters, not through an explicit parser or semantic analyzer.
Context Windows: The AI’s Working Memory
A context window is the maximum amount of text an LLM can “see” at once. Everything outside the context window is invisible to the model for that interaction.
Early GPT models had context windows of 4,096 tokens (roughly 3,000 words). Current models have context windows ranging from 32,000 to over 1 million tokens. This matters enormously for real-world use: a model with a small context window can’t hold a long conversation without “forgetting” early parts of it, can’t analyze a long document, and can’t maintain consistency across a long piece of writing.
Here’s the engineering analogy that makes context windows click: think of the context window as the whiteboard in a meeting room. Everyone in the meeting can see everything on the whiteboard and work with it. But anything that gets erased — or anything that was never written on the whiteboard in the first place — doesn’t exist for the people in the room. The model doesn’t have access to memories from previous sessions (unless explicitly included in the current context), can’t remember your child’s name from last week’s conversation, and doesn’t have any information about events after its training cutoff.
Temperature: The Randomness Dial
When an LLM predicts the next token, it doesn’t always pick the single most likely token. It samples from a probability distribution over possible next tokens. Temperature is a parameter that controls how “spread out” that distribution is.
Low temperature (close to 0): the model almost always picks the most likely token. Outputs are predictable and repetitive. Good for tasks where you want consistent, precise output.
High temperature (close to 1 or above): the model samples more broadly from possible tokens, including less likely ones. Outputs are more varied and surprising — potentially more creative, but also more prone to errors and incoherence.
For your kid’s practical use: most chat interfaces use a temperature optimized for helpful, varied responses. But it helps to know this dial exists, because “ask it again and it might give a different answer” isn’t a bug — it’s a feature of the sampling process.
The Hallucination Problem, Explained Precisely
Hallucination is the word the field uses for when an LLM produces confident-sounding false information. The term is slightly misleading because it implies the model “thinks” it’s telling the truth. More precisely: the model is doing what it always does — predicting statistically likely tokens — and the likely continuation happens to be false.
The engineering analogy: imagine training an AI to complete sentences by showing it millions of textbooks. Then you show it the sentence fragment: “The capital of France is…” The most statistically likely completion is “Paris” — and that’s correct. Now show it: “Research by Dr. Harold Finch at MIT shows that…” The most statistically likely completion is a plausible-sounding research finding. There might be no such person, no such research. The model has learned that sentences about academic research tend to have certain structures, and it completes the structure convincingly.
This is hallucination. The model isn’t lying. It has no concept of lying, because it has no concept of truth. It has token probability distributions. When it produces a false citation, it’s not cheating — it’s completing a pattern. Citations look like author names, journal names, volume numbers, page numbers. The model has seen millions of citations. It completes the citation pattern even when no such source exists.
Why This Is a Structural Feature, Not a Bug
Some people believe AI companies could just “fix” hallucination if they tried hard enough. This misunderstands the architecture. Hallucination is a consequence of how these models work. A system that predicts statistically likely text will sometimes produce text that sounds like facts, citations, or expert claims, because text that sounds like facts and citations is common in the training data.
You can reduce hallucination through additional training techniques — giving the model access to retrieved documents, training it to express uncertainty, training it to refuse questions it doesn’t have reliable information about. Modern LLMs have been substantially improved in this direction. But the fundamental tension doesn’t disappear: the model’s core operation is predicting likely text, and likely-sounding text is not the same as true text.
This is worth explaining explicitly to kids: the reason AI confidently makes up sources isn’t carelessness or laziness. It’s because the model was trained to produce text that sounds like credible sources, and it does that — whether or not the sources are real.
LLM Strengths and Limitations: A Parent’s Practical Guide
| Task Type | LLM Performance | Why | Practical Kid-Facing Example |
|---|---|---|---|
| Writing assistance (drafting, editing) | Excellent | Trained on vast high-quality writing | Drafting a first version of a school essay to react to and improve |
| Brainstorming and ideation | Excellent | Good at generating variations on patterns | Generating topic ideas for a project |
| Explaining concepts | Good to excellent | Wide coverage of educational text in training | Asking for an explanation of photosynthesis at different levels |
| Summarization | Good | Pattern of summary text well-represented | Summarizing a long article for a study guide |
| Answering factual questions | Variable — unreliable for niche topics | Only as good as representation in training data | Solid on popular history; unreliable on recent events, obscure facts |
| Arithmetic and exact calculation | Poor | Processes tokens, not numbers; no calculator built in | Don’t trust it for multi-step math without verification |
| Citing sources accurately | Poor — high hallucination risk | Learns citation patterns, not actual sources | Never use AI-generated citations without verifying each one |
| Truly novel reasoning | Limited | Recombines training patterns; doesn’t generate genuinely new chains of reasoning | Weak on novel logic puzzles that weren’t in training data |
| Code generation | Good for common patterns; poor for novel/complex | Trained on enormous code repositories | Excellent for boilerplate; needs review for logic-heavy sections |
| Current events (after training cutoff) | None | No information after cutoff | Use search tools, not LLMs, for recent news |
What This Means for How Your Kid Should Use These Tools
For Research and School
The most important habit: treat LLM output the way a journalist treats a source — a starting point, not a conclusion. LLMs can quickly give you the lay of the land on a topic, identify questions to investigate, and suggest frameworks for thinking. They can’t reliably give you accurate facts without verification.
Specific guidance for students: never cite a source you found from AI without independently locating and reading that source. The citation may be completely fabricated. The author may not exist. The journal may be real but the paper may not be in it. This isn’t hypothetical — it’s happened in court cases and academic papers.
See also: AI search tools and kids’ research habits.
For Writing
Using AI to improve writing is genuinely valuable — but the sequence matters. Writing your own draft first, then using AI to critique or refine it, develops both writing skill and the judgment to evaluate AI suggestions. Going to AI first, then editing its output, is a different skill set with different developmental implications. See also: AI writing tools and kids’ brain development.
For Learning New Concepts
LLMs are often excellent at explaining concepts at different levels of complexity. “Explain quantum entanglement to a 12-year-old” is exactly the kind of prompt that produces genuinely useful output. The caveat: check that the explanation is accurate before accepting it as your mental model. An incorrect understanding of a concept can be worse than no understanding.
For Coding
AI code assistants can dramatically accelerate learning for kids interested in programming. They’re excellent at explaining what a piece of code does, generating boilerplate, and debugging common errors. The important skill to develop alongside: reading and understanding generated code, not just accepting that it runs. Code that runs can still be wrong — it might run but produce the wrong output, have security vulnerabilities, or scale poorly.
What to Watch For
Context window filling. In very long conversations, early context can fall out of the window, causing the AI to “forget” things it knew earlier. This isn’t the AI being inconsistent — it’s a structural feature of how context works. For long projects, periodically summarizing the context helps maintain coherence.
Prompt injection. When LLMs process documents or web pages, malicious content in those documents can try to alter the AI’s behavior through embedded instructions. This is an emerging security concern, especially as AI tools gain the ability to browse the web and read documents on behalf of users.
Model updates without notice. The ChatGPT your kid used last month may have been updated since then. AI company model updates can significantly change behavior, including changing what topics the model handles differently or what safety filters are applied.
The “confident and wrong” combination is getting more convincing. As models improve, their incorrect outputs get more convincing, not less. A less capable model might produce obviously wrong text. A highly capable model produces confidently wrong text that requires domain knowledge to catch.
FAQ
Why does ChatGPT sometimes give completely different answers to the same question?
Because of temperature — the randomness parameter in the sampling process. The model doesn’t always pick the single most likely next token; it samples from a distribution. Ask the same question twice and you may get meaningfully different responses. This is by design, not a bug, and it’s why AI tools have “regenerate” buttons.
What is a training cutoff, and how does it affect my kid?
The training cutoff is the date after which the model has no information. A model with a September 2023 cutoff knows nothing about events that happened after that date. For school research on current events, recent scientific discoveries, or anything that changes rapidly, LLMs are unreliable and students should use current sources.
Why can’t AI do reliable math?
LLMs process tokens, not numbers. They’ve learned patterns about how mathematical text looks — what operations follow what — but they’re not actually computing. For simple arithmetic, pattern-matching often produces the right answer. For multi-step calculations or unusual problems, it fails in ways that are hard to predict. Modern LLMs often include access to a calculator tool for exactly this reason.
How is GPT-4 different from GPT-3.5 or earlier models?
Primarily scale and training quality. GPT-4 has more parameters, was trained on more data, and included more extensive fine-tuning for safety and helpfulness. The capability difference is significant — GPT-4 performs substantially better on reasoning tasks, is less likely to hallucinate on common topics, and handles complex instructions better. But the fundamental architecture is the same.
Can AI really “learn” from our conversations?
In most consumer products, the model itself doesn’t update in real-time from your conversations. Your conversations may be used as training data for future model versions (subject to privacy policies and opt-out options), but the model you’re talking to isn’t changing as you talk to it. This is different from what some people imagine when they think of “learning” AI.
What’s the difference between ChatGPT and a search engine?
A search engine indexes documents and retrieves matching ones. A search result links to actual sources that you can visit and verify. A language model generates text based on statistical patterns — it doesn’t retrieve documents and may not be linked to any source at all. The outputs look superficially similar but come from fundamentally different mechanisms with different reliability profiles.
About the author
Ricky Flores is the founder of HiWave Makers and an electrical engineer with 15+ years of experience building consumer technology at Apple, Samsung, and Texas Instruments. He writes about how kids learn to build, think, and create in a tech-saturated world. Read more at hiwavemakers.com.
Sources
-
Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., … & Amodei, D. (2020). Language Models are Few-Shot Learners. NeurIPS. https://arxiv.org/abs/2005.14165
-
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A., … & Polosukhin, I. (2017). Attention Is All You Need. NeurIPS. https://arxiv.org/abs/1706.03762
-
Ji, Z., Lee, N., Frieske, R., Yu, T., Su, D., Xu, Y., … & Fung, P. (2023). Survey of Hallucination in Natural Language Generation. ACM Computing Surveys, 55(12). https://doi.org/10.1145/3571730
-
Bubeck, S., Chandrasekaran, V., Eldan, R., Gehrke, J., Horvitz, E., Kamar, E., … & Zhang, Y. (2023). Sparks of Artificial General Intelligence: Early experiments with GPT-4. Microsoft Research. https://arxiv.org/abs/2303.12528
-
Ouyang, L., Wu, J., Jiang, X., Almeida, D., Wainwright, C., Mishkin, P., … & Lowe, R. (2022). Training language models to follow instructions with human feedback. NeurIPS. https://arxiv.org/abs/2203.02155
-
Kambhampati, S. (2024). Can LLMs Really Reason and Plan? Communications of the ACM. https://cacm.acm.org/
Also see: AI search tools and kids’ research habits, AI writing tools and kids’ brain learning, and AI literacy for kids in middle school.