Review

10 questions from across the course. Answer as often as you like.

1 of 10

From Reading loss curves

A run prints a training loss of 2.31 every epoch, the same to the third decimal, and no error. What do you do first?

2 of 10

From The artificial neuron

A neuron reads two inputs, 3 and 2. Their weights are 2 and −1, and its bias is −1. It bends its total with ReLU. What does it say?

3 of 10

From Pretraining and transfer learning

DINOv2 describes a photo as 384 numbers. You put a new last layer on its end for 5 kinds of leaf, and freeze the rest. How many weights learn?

weights

4 of 10

From Vanishing gradients and residual connections

Twenty layers of ReLU neurons, with PyTorch's own starting weights, barely learn: the first layer gets almost no slope. But ReLU's own rate is 1 or 0. So why does the slope still shrink at every layer?

5 of 10

From Self-supervised learning

A sentence is five tokens. One line turns it into questions and answers, as in the lesson. What does this print?

tokens = [5, 9, 2, 7, 1]
x, y = tokens[:-1], tokens[1:]
print(x[2], y[2])

6 of 10

From Softmax and cross-entropy

Before training, F.cross_entropy(model(x), y) prints 2.33 on the digits. After training, the loss stops at about 1.5 and won't go lower. What is the likely bug?

7 of 10

From Training on a GPU

You train a model with 3 billion weights, with Adam, its numbers in four bytes. How many gigabytes of memory does it hold before any data goes in?

GB

8 of 10

From Architecture families

You scramble the pixels of every picture, the same way in every picture. Then you train an MLP and a CNN on them again. Which one now does worse, and why?

9 of 10

From Dropout, weight decay and early stopping

You train with torch.optim.AdamW(model.parameters(), lr=0.01, weight_decay=0.5). Besides its usual step, what does a weight of 2 become at every step?

10 of 10

From Backpropagation

The digits network has 2,410 weights. Nudging each weight in turn takes one more forward pass for every weight. About how much work does loss.backward() take to find every slope, forward and back together?