Please enable JavaScript to use CodeHS

How Babies and LLMs Learn

Finding patterns

Both babies and LLMs are pattern detectors. A baby learns that a certain sound goes with a certain face. An LLM learns that a certain word goes with a certain context. The way they find those patterns is surprisingly different.

Cognitive Science + AI ~10 min Middle / High School
Human

Babies chunk the world

Babies are born pattern-seekers. They prefer faces over random shapes. They notice when a sound repeats. They startle when something violates their expectations, like a toy that seems to pass through a solid wall.

Developmental scientists call this statistical learning: babies track how often things happen together. They learn that “ba” and “by” often appear as “baby,” and that the syllable stress in their language usually falls in a certain place.

But babies are not just counting. They are chunking: grouping sights, sounds, and actions into meaningful units. A baby learns “bottle” as an object, an action (drinking), a feeling (fullness), and a social routine (with a caregiver). The word is tied to a rich package of experience.

Machine

LLMs count co-occurrences

LLMs also learn from statistics, but in a much more literal way. During training, the model sees millions of sentences and adjusts its internal numbers so that it can predict the next token. If “cat” is usually followed by “sat,” the model learns that connection.

The LLM does not have a mental image of a cat. It has a web of numbers that represent how “cat” relates to “dog,” “pet,” “fur,” “meow,” and “mat.” These relationships are powerful. They let the model generate fluent text, answer questions, and translate languages.

But the LLM’s patterns are distributional: based on what tokens appear near each other in text. It does not test whether “cat” actually exists in the world. It only knows how the word behaves in language.

Comparison

What they have in common

👶 Baby

Learns that some sounds group into words and some objects group into categories.

🤖 LLM

Learns that some tokens group into phrases and some words share contexts.

  • Both predict: A baby expects a dropped ball to fall. An LLM expects “The capital of France is” to be followed by “Paris.”
  • Both notice frequency: Common patterns are learned faster than rare ones.
  • Both can be surprised: A baby looks longer at an impossible event. An LLM assigns low probability to an unexpected token.
Interactive

Guess the next token

The LLM sees text one token at a time and tries to predict what comes next. Try it yourself: given the sequence, pick the most likely next item. Then see how an LLM might learn the pattern.

The cat sat on the ___

Check Yourself

Quick quiz

1. What does “chunking” mean in baby learning?

2. How does an LLM learn that “cat” and “mat” often go together?

3. What is one thing both babies and LLMs do when learning?

Keep learning

Patterns get stored as internal models. Next, compare how babies and LLMs build representations of what they have learned.

Part of the “How Babies and LLMs Learn” series.