본문으로 건너뛰기
L3.0

Level 3 — Deep Representations, Images, Sequences, and Transfer

About 7 h · + optional Python ~1.3 h

If an Implement Lab in this level stalls, review P2 — array slices and shapes or P3 — Python loops and branches.

Before L3.11: If you have not used PyTorch or Colab, take optional P5 — Reading PyTorch Code + Your First Colab Notebook. L3.11–L3.14 are run-and-change notebooks, with no PyTorch TODO implementation required.

Level 2 showed how a neural network combines numbers, produces intermediate values, and learns by changing parameters. Level 3 asks a different question:

What useful information can those intermediate values keep, change, or throw away?

That question is about representations.

Start with one image​

Imagine a tiny picture of a vertical line.

The raw input could be a grid of pixel values. But a later part of a network may not need every pixel separately. It may be more useful to receive a smaller description such as:

vertical-edge strength = high
horizontal-edge strength = low

That new description is a representation: information produced from the original input so later calculations can use it.

A representation is useful only relative to a task. If the task is “vertical or horizontal?”, edge direction may be enough. If the task is “is the line on the left or right?”, a representation that throws away location would be a problem.

This Level follows that same idea across images, ordered sequences, embeddings, and transfer learning.

A few words you will meet​

You do not need to memorize these before starting.

TermPlain meaning in this Level
representationan internal numerical description of an input used by later computation
convolutiona small pattern detector reused across different locations in an image
poolingreducing a local group of values to a smaller summary
augmentationcreating a changed training example that should keep the same label meaning
sequencedata where order matters, such as words in a sentence or measurements over time
hidden statea recurrent model's running numerical summary exposed at each sequence step
cell state / gated memorya longer-lived memory path in an LSTM, controlled by learned gates
gatea learned value that controls how much information is kept, written, or exposed
embeddinga learned vector of numbers used as coordinates for an item such as a token or category
transfer learningreusing a representation learned on one task as a starting point for another related task

Later you will also meet pretrained model and fine-tuning. A pretrained model has already learned parameters from earlier data. Fine-tuning means allowing some or all of those parameters to change on the new task.

Two specialized branches to recognize​

The same representation question also appears in model families that this Level does not turn into separate build tracks.

A graph neural network (GNN) starts from data organized as nodes and relationships rather than only a grid or a sequence. A node can update its representation using information from neighboring nodes. That makes graph models a natural family to investigate when relationships are part of the input itself, such as molecular bonds, network connections, or linked entities. “Use a GNN” is not a universal recipe: the graph definition, edge meaning, aggregation rule, and task all change what information the model can preserve.

Time-series forecasting asks for future values from past observations. L3.6 gives you the core prerequisite—order and time alignment matter—but forecasting adds its own evidence rules. Randomly mixing future and past rows can leak information. Trend, seasonality, missing intervals, changing regimes, and the forecast horizon can all matter. Forecasting systems may use classical statistical models, recurrent networks, Transformers, or other methods; “time series” describes the prediction problem more than one architecture.

Keep these as branches on your map. The core Level teaches representations, convolutions, recurrent and gated memory, embeddings, and transfer. GNNs and forecasting are places to reuse those ideas when a later problem has graph structure or a real time axis.

What you will learn​

By the end of Level 3, you should be able to:

  • explain a representation as an internal description used by later computation;
  • compute a small convolution and explain why the same detector can be reused across positions;
  • trace an image from pixels to local features to a class decision;
  • compare pooling methods and name the detail they discard;
  • decide whether an augmentation preserves label meaning;
  • explain why sequence order and time alignment matter;
  • trace a recurrent hidden state and describe it as compressed memory;
  • explain how LSTM gates decide what to keep, write, and expose, and how a GRU provides a related simpler gated design;
  • explain why gated recurrence can preserve information better without creating perfect memory;
  • explain why distant influence can shrink or grow through repeated transformations and why Attention changes the information path;
  • interpret embeddings as learned coordinates whose geometry depends on training;
  • compare training from scratch, frozen transfer, and fine-tuning fairly;
  • inspect what a pretrained model expects for input and preprocessing;
  • analyze failures by meaningful image or sequence groups rather than one average score.

The learning path​

Part 1 — Represent images​

L3.1–L3.5 move from the general idea of a representation to convolution, a transparent image classifier, pooling, and augmentation.

Keep asking: What information did this transformation make easier to use, and what information did it remove?

Part 2 — Represent ordered data​

L3.6–L3.10 move from sequence order to recurrent memory, measured long-context limits, gated memory, and embeddings.

The key shift is that position and history can carry meaning. Two inputs containing the same values can require different predictions when their order differs. You will also follow the sequence-model lineage from a simple recurrent state, to measured long-distance decay/growth, to LSTM/GRU gated memory, then see why Attention offers a shorter route between distant positions.

After L3.7 — Recurrent Models and Memory, complete Level 3 Mini Checkpoint — Represent, See, and Remember before continuing.

Part 3 — Reuse and adapt representations​

L3.11–L3.14 use notebooks on a real handwritten-digit dataset. You will test transfer learning, inspect what a pretrained model expects, fine-tune it conservatively, compare failure groups, and choose among adaptation strategies.

The word pretrained does not mean “already correct for my task.” It only tells you that some parameters were learned earlier. You still need evidence on the new task.

How to work through the Labs​

L3.1–L3.10 use browser Labs. Trace the named intermediate values and make one controlled change at a time.

L3.11–L3.14 use notebooks. There, pay equal attention to:

  • which data is used for training and evaluation;
  • how the input is prepared;
  • which parameters are allowed to change;
  • validation evidence;
  • how the representation changes;
  • which groups of examples fail;
  • the settings needed to repeat the run.

A run that finishes without an error is not automatically a good experiment.

What mastery looks like​

For each major idea, try to reach three levels:

  1. Explain it without relying on a framework name.
  2. Trace it through one concrete input, representation, or score.
  3. Transfer the reasoning to a changed position, sequence, task, or target-data size.

Read Quick Check feedback even after a correct answer; it should explain why the evidence supports the answer.

Level Project​

After L3.14 — Adaptation Review: Choose, Fine-Tune, Explain, complete Transfer Learning Across a Real Dataset.

A strong submission should make the adaptation choice understandable to another learner: use the same target evidence for comparisons, state what was reused and what was changed, and include failures and tradeoffs instead of only headline accuracy.

Lesson actions

Completion is stored locally on this device.

View progress