Machine Learning, FoundationsLesson 75 of 92

Module 8 · Neural networks, built from what you already know

The bends: ReLU, and why sigmoid stopped being used inside networks

In this lesson

  • 8 min read
  • 5 reading sections
  • Knowledge check
  • Lesson 3 of 10 in this chapter

This chapter’s goalExplain why a multi-layer network with no non-linearity collapses to a single linear model, trace one backpropagation step through a two-layer network by hand, diagnose a training failure from the loss curve and the gradients, and fine-tune a pretrained model on a few hundred labelled examples using free compute.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmWatch1:55Not available
Full audiobookNot availableNot available
Why a hinge replaced a smooth curveSigmoid in a hidden layerDerivative peaks at 0.25 and falls towardszero on either sideTen layers: 0.25 to the tenth, about amillionth of the gradient reaches the bottomEarly layers stop learning; deep networks didnot work before about 2010An exponential per unitReLU, max(0, x)Derivative is exactly 1 wherever the input ispositiveFifty layers of multiplying by 1: nothingshrinksHalf the units output zero for any input, sothe representation is sparseA comparison; costs almost nothingThe price: a unit whose input is alwaysnegative is dead for goodBackpropagation multiplies one local derivative per layer. A factor of at most 0.25 per layer starvesthe early layers; a factor of exactly 1 leaves the gradient intact. The sigmoid did not disappear: itmoved to the output layer, where one of it is applied and saturation is the point.
Backpropagation multiplies one local derivative per layer. A factor of at most 0.25 per layer starves the early layers; a factor of exactly 1 leaves the gradient intact. The sigmoid did not disappear: it moved to the output layer, where one of it is applied and saturation is the point.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 7Free · no account needed
Lesson steps

Sigmoid, and the problem it caused

Early networks used the sigmoid, 1 / (1 + exp(-x)), inside hidden layers. It squashes any input into (0, 1) and it is smooth, which felt right.

Its derivative is s(x) * (1 - s(x)), which peaks at 0.25 when x is 0 and approaches zero as x moves away in either direction. That maximum of 0.25 is the whole problem.

Backpropagation multiplies derivatives layer by layer. With sigmoids, each layer multiplies the gradient by at most 0.25:

Text
1 layer:   0.25
5 layers:  0.25^5  = 0.00098
10 layers: 0.25^10 = 0.00000095

By ten layers the gradient reaching the first layer is a millionth of what arrived at the last. The early layers effectively stop learning. This is the vanishing gradient problem, and it is the main reason deep networks did not work before about 2010. It was not a shortage of ideas; it was that the signal did not reach the bottom.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the How a Language Model Actually Works exam.

Stuck on something?Ask Funke, your AI tutor

How to cite: Addaly (2026) ‘The bends: ReLU, and why sigmoid stopped being used inside networks’, in Machine Learning, Foundations. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/machine-learning-foundations/activations (Accessed: 29 November 2026).