AI Hints
Home›Deep Learning Tutorial›Review: Deep Learning
Deep Learning · Lesson 83 of 92

Review: Architectures

From convolutions to transformers.

⏱ 2 min read▶ Video at 2:35:45🎓 Free
Watch this lesson in the Deep Learning courseWatch on YouTube ↗Full Deep Learning course

Each great architecture solved one clear problem. If you remember the problem, you'll remember the design.

Review: Architectures
From the video: Review: Architectures
  • Each solved one problem
  • Remember the problem
  • Remember the design

Recap: architectures

Convolutions share weights over space. ResNet adds shortcuts, so that very deep networks can train. Recurrent nets carry memory, and L S T M protects it with gates. Attention lets each token look at all of the others. Transformers stack attention with positions. Autoencoders compress. Diffusion models learn to remove noise.

ResNetshortcuts
LSTMgated memory
Attentionlook at everything
Diffusionlearn to remove noise

Question 1

Question 1. What problem did ResNet solve? A, Slow disks. B, Very deep networks being hard to train. C, Too much colour. D, Small images. Pause and choose. The answer is B. Shortcut connections fixed it.

Quick check
What problem did ResNet solve?

Question 2

Question 2. Why do RNN gradients vanish? A, One step is repeated many times. B, Too much data. C, Wrong labels. D, Small files. Pause and choose. The answer is A. LSTM gates help.

Quick check
Why do RNN gradients vanish?

Question 3

Question 3. Why do transformers need positional information? A, Attention has no sense of order. B, To save memory. C, To add colour. D, For speed. Pause and choose. The answer is A. Otherwise word order is lost.

Quick check
Why do transformers need positional information?

Question 4

Question 4. On tabular data, what usually wins? A, Transformers. B, Gradient boosted trees. C, GANs. D, Diffusion. Pause and choose. The answer is B. Ours scored 0.84 against 0.76.

Quick check
On tabular data, what usually wins?

Question 5

Question 5. An LSTM forecast scored 0.127. What must you compare with? A, Nothing. B, Repeating the last value. C, A random number. D, Yesterday's news. Pause and choose. The answer is B. Ours scored 0.164.

Quick check
An LSTM forecast scored 0.127. What must you compare with?

Question 6

Question 6. How do recommenders predict a rating? A, Dot product of user and item vectors. B, Sorting by name. C, Word counts. D, Random choice. Pause and choose. The answer is A. People and items become vectors.

Quick check
How do recommenders predict a rating?

Summary

Next, making models practical.

Key takeaways
  • Each design solved a problem
  • Always beat a baseline
  • Trees win on tables
Next up: Review: Practical Deep Learning — training and shrinking