Module quiz
Deep learning and transformers quiz
61 questions across 4 lessons. Choose an answer, check it, and read why each option is right or wrong.
Checking answers needs JavaScript. You can still read every question and option below.
Keyboard: arrow keys move between options. Space or Enter selects the focused option.
Neural networks and backpropagation: gradients, checks and initialisation12 questions
ObjectiveExplain why a network needs non-linear activations, choose between ReLU, GELU, sigmoid and tanh by how they saturate, and give the shape of every tensor and the parameter count of a 2-layer network.
ObjectiveWork backpropagation by hand through a 2-layer ReLU network with softmax cross-entropy using the chain rule, and verify the result with a central-difference gradient check.
ObjectiveExplain vanishing and exploding gradients as products of per-layer factors, and say how the choice of activation and of Xavier or He initialisation changes those factors.
Training deep networks: normalisation, regularisation, AdamW and debugging14 questions
ObjectiveCompare batch norm and layer norm by what their statistics are computed over, and explain how train and eval mode change batch norm and dropout.
ObjectiveExplain what dropout, weight decay and early stopping each do, how AdamW differs from Adam with an L2 penalty, and read a small regularisation experiment without over-claiming.
ObjectiveSet up AdamW with a warmup-plus-cosine schedule and gradient clipping by global norm, and work through a debugging checklist for a NaN or flat loss.
CNNs, ResNets, transfer learning and recurrent networks, with RMSNorm and label smoothing15 questions
ObjectiveCompute the output size, parameter count and receptive field of a stack of convolution and pooling layers with padding and stride, and explain what weight sharing buys compared with a dense layer.
ObjectiveExplain why a skip connection y = x + F(x) keeps a gradient path through a deep stack, and describe how transfer learning and data augmentation reuse a pretrained model or enlarge the effective training set.
ObjectiveExplain vanishing and exploding gradients through time as a product of per-step factors, write the LSTM and GRU updates, say why the additive cell path helps, and count their parameters.
ObjectiveCompare RMSNorm with layer norm, and write the label-smoothed target and loss, including the loss floor and the logit gap it asks for.
Transformers, large language models, sampling and fine-tuning20 questions
ObjectiveExplain how text becomes tokens and embeddings, why self-attention alone cannot see word order, and how sinusoidal or rotary positions fix that.
ObjectiveCompute scaled dot-product attention with tensor shapes, explain the square-root-of-d_k scale through the variance of a dot product, build multi-head attention and the causal mask, and state why the cost grows with the square of the sequence length.
ObjectiveDescribe a pre-norm transformer block (normalisation, attention, MLP, residual paths, GELU or SiLU), say why pre-norm trains more easily than post-norm, and estimate parameters with 12 L d squared.
ObjectiveExplain next-token training with teacher forcing, why a KV cache removes repeated work and what it costs in memory, and how temperature, top-k and top-p change the next-token distribution.
ObjectiveCompare pre-training, supervised fine-tuning, LoRA and preference tuning, count the parameters LoRA trains, choose between prompting, RAG and fine-tuning, and explain why a language model can hallucinate.
Boss challenge: Deep learning from backprop to transformers
A longer check of the whole module. It is optional, and nothing else on the site depends on it.
- 10 questions, taken from the lesson quizzes above.
- Pass mark: 7 correct of 10.
- You can try it as many times as you like.
- A correct answer is kept, so a pass can build up across several tries.
- If you miss some, you get links to the lesson sections to read again.
Checking answers needs JavaScript. You can still read every question and option below.
Keyboard: arrow keys move between options. Space or Enter selects the focused option.