Loading slide

Why Shallow Networks Failed

  1. 01Why Shallow Networks Failed
  2. 02Memory card
  3. 03What "deep" actually means
  4. 04The vanishing gradient
  5. 05A small step inside each neuron
  6. 06Why bother bending the number?
  7. 07The bend they chose
  8. 08How the flat ends starve the signal
  9. 09The absurdly simple fix
  10. 10Take a breath
  11. 11Other fixes
  12. 12Depth vs. width
  13. 13Memory card
  14. 14The research gap
  15. 15Reinforce your understanding
  16. 16Question: The vanishing gradient
  17. 17Question: Why does a simple fix work?
  18. 18Question: Why does depth matter?
  19. 19Quiz: answer
  20. 20The one idea to keep
  21. 21The gradient problem was solved. What was still missing was scale.
  22. 22Want to go deeper?
6 / 21
BackNext

Why bother bending the number?

It seems pointless. The neuron does its work, then hands the result to a function that changes it. Why not skip that and pass the number straight on?

Here is the surprising answer. Without that step, stacking layers would buy you nothing at all.

Remember what a layer really does to a number: it multiplies and adds. Nothing more. So watch a single number travel through three layers. It starts as 10. The first layer multiplies by 2, giving 20. The next multiplies by 3, giving 60. The next by 5, giving 300.

Now here is the catch. Multiplying by 2, then 3, then 5 is the exact same thing as multiplying by 30 once. Ten goes in, three hundred comes out, either way. You could delete the two middle layers, set the survivor to "times 30," and get an identical answer. The middle layers added nothing.

That is the iron rule: a multiply followed by a multiply is still just one multiply. Stack a hundred such layers and the whole tower folds into a single "times something." A hundred layers, no smarter than one.

And a chain of multiplies can only ever do one kind of thing: scale a number smoothly up or down. It can never make a turn. Think of a rule like "a little salt improves the food, but a lot ruins it." Small is good, then it reverses and large is bad. Pure multiplying can never capture that reversal, that bend in the relationship. It only knows "more in, proportionally more out."

So how do you get a bend? Only one way. You need a step that is not another multiply, something that does a genuinely different kind of thing to the number. And because it is not a multiply, it cannot be folded into the multiplies around it.

That different step is the activation function. Drop one between the layers and they stop collapsing, because you cannot absorb a bend into a multiply. Now each layer truly adds something new, and the network can finally shape those turning, reversing, real-world relationships instead of one smooth slope.

So the function is not busywork. It is the only reason depth is worth building at all. Which makes the choice of which bend to use enormously important.

And here is the twist. The early networks all reached for one particular bend. It worked beautifully going forwards, but it was the very thing strangling the training signal on the way back. Let us look at it.

Citations(2)↓
  1. 1. deeplearningbook.org
  2. 2. proceedings.mlr.press
Citations(2)↓
  1. 1. deeplearningbook.org
  2. 2. proceedings.mlr.press