Tech

How does AI learn?

Level 3 ยท Ages 13 to 1860 seconds
Key idea

AI learns from examples. Show it thousands of cat pictures and it finds the patterns that make a cat. But it can still be confidently wrong, so double-check it.

Learning from examples, not rules

Machine learning is a way of building computer systems that find patterns in data. Instead of writing every rule by hand, developers feed the system many examples. The system adjusts itself so it can handle new inputs that are similar.

The examples are called training data. In a method called supervised learning, each example comes with a label, which is the correct answer. A photo plus the label "cat" helps the model connect certain features with cats.

How a chatbot writes answers

Chatbots, built on large language models, are trained on huge amounts of text. They learn patterns in how words and ideas fit together. When you ask a question, the model predicts what a good answer should sound like, rather than truly understanding the question.

That's the key point. As a Villanova University article puts it, the model "is optimized to produce a good next sentence, not to prove the sentence is true."

A short history

The term "machine learning" was coined by Arthur Samuel, a researcher at IBM. His checkers program recorded each position it saw and whether it led to a win or a loss, and it improved the more games it played. In 1962, after thousands of games against itself, it beat Robert Nealey, a self-described checkers master.

The confidence trap

A common misconception is that a confident answer is a correct one. AI can sound sure while being wrong, out of date or biased. When a language model produces plausible but false statements, it's called a hallucination.

Hallucinations often show up as made-up specifics: names, dates, statistics, quotes or sources that look real but aren't. AI can also reflect bias in the data it learned from. Poor-quality training data adds noise and bias, which makes predictions less accurate.

Using AI safely and smartly

Treat AI as a helper for brainstorming or drafting, not as the final word. Check important facts against trusted sources, like class notes, textbooks or teacher-approved sites. A good rule: no source, no claim.

Watch for warning signs, like very specific details with no source, citations you can't find, or facts that change when you ask a follow-up question. AI tools also raise privacy concerns about how they collect and share data, so keep personal details such as your address, school and passwords out of chats. And if you're upset or stressed, talk to a trusted adult, not a chatbot.

Key words

Machine learning
building computer systems that find patterns in data.
Training data
the examples used to teach a model how to make predictions.
Labeled data
examples that come with the correct answer attached.
Large language model
an AI trained on huge amounts of text to predict and generate language.
Hallucination
a believable but false statement made by an AI.

Good to know

  • AI doesn't always have current information, and even tools with live search can miss updates.
  • Samuel's checkers program ran on the IBM 701, one of IBM's early computers.
  • Common Sense Media advises that elementary-age kids avoid using chatbots on their own.
  • In 1997, IBM's Deep Blue computer beat Garry Kasparov in a six-game chess match.

Watch more

AI: What is Machine Learning?Opens YouTube in a new tab. Ask a grown-up first.

Try it

Next time you use an AI tool (with a parent or teacher's okay), pick one fact it tells you and check it in a trusted source like an encyclopedia or a museum website. Did it match?

Quick quiz

Question 1 of 3

Sources

  1. Villanova University: why your gen AI tool sounds right but might be wrong
  2. University of Edinburgh: machine learning
  3. IBM: what is machine learning?
  4. IBM: what is training data?
  5. IBM: what are large language models?
  6. OpenAI: why language models hallucinate
  7. IBM: early games and machine learning
  8. Common Sense Media: using AI wisely for school success
  9. AI: What is Machine Learning? (CodeAI, YouTube)