Chapter C20 · Interactive Course

Different ways to learn

Find where a training setup's signal comes from.

Start chapter in web app

Core Learning Concept

Find the learning signal: what tells the model that one result is better than another? It may come from supplied labels, hidden parts of existing data, relationships between examples, or outcomes after actions. In the reward example, compare the measured score with the outcome people actually want.

What You’ll Learn in This Chapter

  1. Learning with supplied answers

    Activity 1 of 10 · 4 min

    Identify supervised learning from paired examples and targets.

    Supervised learning pairs inputs with target answers, such as photos labeled fragile. Training compares predictions to these targets. The learned model's quality depends on how accurately and consistently those targets reflect the real task.

    Start activity →

  2. Learning without supplied answers

    Activity 2 of 10 · 4 min

    Identify unsupervised learning from unlabelled examples.

    Unsupervised learning seeks structure without a supplied target answer for every example. Clustering book descriptions is one example. The absence of labels does not remove human choices: people still select the data, representation, method, and how the resulting structure will be interpreted or used.

    Start activity →

  3. Making a practice question from the data

    Activity 3 of 10 · 4 min

    Explain self-supervision using a hidden part of an example.

    Self-supervised learning forms training tasks directly from unannotated data, such as hiding words and predicting the missing text. This creates abundant training examples without manual labeling, shaping the representations a model learns.

    Start activity →

  4. Predicting what comes next

    Activity 4 of 10 · 4 min

    Identify the target in a next-piece training example.

    Next-token training asks a model to predict the next text piece from the preceding pieces. The actual next token in the training sequence supplies the target. Repeating this across many examples teaches language patterns. The target is the observed continuation, not a guarantee that every sentence is factually correct.

    Start activity →

  5. Matching things that belong together

    Activity 5 of 10 · 4 min

    Recognize a contrastive training task.

    Contrastive learning uses relationships between examples, often encouraging matching items to have compatible representations. A picture and its caption can be a positive pair. The training setup defines what counts as matching and contrasting; useful similarity is learned from those choices rather than supplied by a universal meaning scale.

    Start activity →

  6. Learning through consequences

    Activity 6 of 10 · 5 min

    Identify reinforcement learning from action and outcome feedback.

    Reinforcement learning trains policies through feedback following actions. Rewards may arrive after sequences of moves, requiring credit assignment to earlier choices. The reward function dictates which strategies the system ultimately develops.

    Start activity →

  7. The score is a design choice

    Activity 7 of 10 · 4 min

    Separate a reward from the real intention.

    A training score is a measurable proxy for an intended goal. If metrics omit key qualities like safety or cleanliness, optimizing them can produce unwanted side effects. Always inspect what a metric omits.

    Start activity →

  8. A small labeled set can guide a larger collection

    Activity 8 of 10 · 4 min

    Recognize semi-supervised learning from mixed labeled and unlabeled examples.

    Semi-supervised learning combines labeled and unlabeled examples. A small labeled set supplies target information while a larger unlabeled set may help reveal structure. This can be useful when labels are expensive, but the benefit depends on the method and data. Unlabeled examples do not guarantee correct targets.

    Start activity →

  9. Methods can be combined

    Activity 9 of 10 · 4 min

    Recognize successive learning methods in one model's development.

    A model can pass through several learning stages with different signals. Broad prediction training may be followed by demonstrations and preference feedback. Each stage can change behavior and knowledge in different ways. To explain an observed improvement, inspect what actually changed and how it was evaluated.

    Start activity →

  10. Find the learning signal

    Activity 10 of 10 · 6 min

    Inspect three training setups, identify the target or feedback source in each, and repair one badly chosen reward.

    Start activity →