How it learns
Data in, patterns found, answers out. This level walks through those three steps, and shows why the data at the start decides so much about the answers at the end.
Level 2 of 8 About 55 minutes left
- Level 1: What AI is and isn’t
- Level 2: How it learnsYou are here
- Level 3: Words you’ll hearOpens after Level 2
- Level 4: Where it goes wrongOpens after Level 3
- Level 5: Using AI safely at workOpens after Level 4
- Level 6: The CLEAR frameworkOpens after Level 5
- Level 7: CLEAR in practiceOpens after Level 6
- Level 8: The test and your certificateOpens after Level 7
Start with your name and email.
The lessons open after that, so your progress, results and certificate belong to the right person.
Step 1: the data
- Data
- Training
- Model
- Inference
Every machine learning system starts with training data: the examples it learns from. For a spam filter, that is emails people marked as junk or not junk. For a tool that writes text, it is a very large amount of written language.
If the examples are old, narrow or unfair, the system learns that too.
Step 2: training builds a model
- Data
- Training
- Model
- Inference
Training is the process of adjusting a model, bit by bit, until it fits the training data well. What comes out is the model: the core part of an AI system that turns an input into an output, like sorting an image, scoring a risk or predicting the next word.
Think of the model as a recipe worked out from all those examples. Nobody wrote it line by line, which is why it can be hard to say exactly why a model gave an answer. Level 4 calls this explainability.
Many models are built as a neural network: layers of simple connected units, loosely inspired by the brain. Inspired by is not the same as working like one.
Step 3: inference, using the model
- Data
- Training
- Model
- Inference
Inference is the stage where a trained model is put to work on a new task. Every time you type a question into an AI tool and get an answer, that is inference. Training happened earlier; inference happens now.
A model learns from data gathered up to a point in time. Some tools can also look things up or read your files, but the data behind some public AI tools may be out of date.
Fine-tuning: teaching a trained model a specialty
Training a large model from scratch is hard, so much AI work reuses a model that is already trained. Fine-tuning adapts it to a specific task or field by training it further on examples from that task. A general model could be fine-tuned on a company’s past support replies so it writes in the company’s style.
Same task, a different style
Made-up example: a business writes short, friendly support replies. It fine-tunes a general model on its past replies.
Write a reply asking a customer to describe the problem.
General model
Please provide further details about the issue you are experiencing so that we can assist you.
Before further training on the business’s replies.
Fine-tuned model
Thanks for getting in touch. What went wrong? Tell us a little more so we can help.
After further training on examples of the business’s style.
Fine-tuning trains an already-trained model further for a task or field. This example shows a possible style change, not a guaranteed result.
Why the data matters so much
NIST, in its AI Risk Management Framework, lists risks that are new or bigger with AI than with ordinary software. Several are about data:
The data may not be a true picture of the real situation where the system is used.
Harmful bias and other data quality problems can make the system less trustworthy.
Data can become stale or cut off from the setting it came from.
AI systems may need more upkeep over time, because the data and the world change.
Example: a model that learned from past hiring decisions can copy whatever patterns those decisions held, good or bad, without anyone intending it.
That is why, when someone offers you an AI tool, two of the best first questions are: what was it trained on, and how old is that?
Flip the word
Guess what each one means, then flip the card to check.
0 of 6 flipped
Put it in order
Drag the steps into the right order. Not scored, and your answers are not saved.
Practice questions
Pick an answer to see if it is right, and why. These do not count toward the test, and your answers are not saved.
Keep these three
- A model learns only from its training data. If the data is old, narrow or unfair, the model learns that too.
- Training happens once, earlier; inference is every time you use it.
- Two first questions for any AI tool: what was it trained on, and how old is that?
A quick look back to Level 1
Your place is saved when you finish a level. You can come back to this one any time.