Please enable JavaScript to use CodeHS

Are LLMs Smarter Than a 5th Grader? — Advanced

Advanced: What is AI?

Artificial intelligence is not magic. It is a set of techniques that let computers perform tasks that normally require human judgment — from recognizing speech to playing chess to generating text. Most AI you meet today is narrow AI: good at one task, clueless outside it.

Foundations ~12 min Upper High School
The Big Idea

Defining AI

Artificial intelligence is the field of making machines exhibit behavior that would require intelligence if done by a human. That includes perception, reasoning, learning, problem solving, language, and decision making under uncertainty.

AI is not a single technology. It is an umbrella that covers search algorithms, statistical learning, neural networks, planning, knowledge representation, and more. Different problems use different tools.

Key idea: AI is a collection of methods, not a single brain. The best tool depends on the task.


Vocabulary

Narrow vs general AI

Narrow AI can do one specific task, often better than humans. Examples include spam filters, face recognition, and chess engines. It does not understand the world outside its task.

Artificial general intelligence (AGI) is the idea of a machine that can learn and reason across any task a human can. It does not exist yet, and nobody knows when or if it will. Most research today focuses on narrow systems.

LLMs are somewhere in the middle. They can generate text on many topics, but they do not have goals, bodies, or persistent understanding. They are broad but shallow.


CS Minute

Algorithms, data, and models

Modern AI usually involves three ingredients:

  • Data: examples the system learns from.
  • Algorithm: the procedure that finds patterns in the data.
  • Model: the resulting artifact that makes predictions or decisions.

A model is not a set of hardcoded rules. It is a compressed representation of patterns in the data. That is why a model can fail in ways that look bizarre to a human: it has learned correlations, not causes.


Critical Thinking

Capabilities and limitations

AI today is powerful but brittle. It can:

  • Recognize patterns in enormous datasets.
  • Generate plausible text, images, and code.
  • Optimize well-defined objectives.

It often cannot:

  • Reason about cause and effect the way humans do.
  • Know whether its outputs are true or fair.
  • Handle situations very different from its training data.

Understanding these boundaries is one of the most important skills in working with AI.


Interactive

Classify AI tasks

Drag or click each task into the column that best describes it: narrow AI today or general intelligence territory. Remember that the dividing line is not always clear.

Tasks

Detect spam email
Play chess at grandmaster level
Hold a coherent, open-ended conversation about values
Recommend a movie based on past ratings
Invent a new scientific theory from scratch
Translate a sentence into another language

Narrow AI today

General intelligence territory


Code

A perceptron in Python

A perceptron is the simplest neural network. This NumPy example learns the AND function by adjusting its weights with gradient descent.


Your Turn

Check yourself

Why is it a mistake to assume an AI that is excellent at one task is therefore smart in general?

Your answer:

Sample answer: Narrow AI is trained on a specific task and data. It has no broad understanding, common sense, or awareness of context outside that task. Excellence in one domain does not transfer to another the way it often does for humans.


Check Yourself

Quick quiz

1. What is narrow AI?

2. Which of these is an example of general intelligence territory, not narrow AI?

3. A modern AI model is best described as:

Keep learning

You have a working definition of AI, narrow versus general, and the data-algorithm-model triangle. Next, learn how computers learn from data.

First tutorial in the advanced remake of the “Are LLMs Smarter Than a 5th Grader?” series.