Book a first conversation

Level 2 of 8 Card 1 of 10

Step 1: the data

  1. Data
  2. Training
  3. Model
  4. 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

  1. Data
  2. Training
  3. Model
  4. 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

  1. Data
  2. Training
  3. Model
  4. 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.