What does saturation of the sigmoid mean, and what practical issues can it cause during fitting?

Quick Overview

Asks what it means for the sigmoid to saturate and what problems that causes when fitting logistic regression or neural networks. Tests your understanding of gradients under different losses, perfect separation, numerical stability and practical fixes.

What does saturation of the sigmoid mean, and what practical issues can it cause during fitting?

Role: Data Scientist

Category: Machine Learning

Difficulty: medium

Interview Round: Other

What does saturation of the sigmoid $\sigma(z) = 1 / (1 + e^{-z})$ mean, and what practical issues can it cause when fitting a model such as logistic regression? ```hint The derivative Write the derivative of $\sigma(z)$ in terms of $\sigma(z)$ itself, then evaluate it at $z = 0$ and at $z = 10$. ``` ```hint Which loss Check whether that derivative survives in the gradient of the log loss with respect to $z$, and compare with a squared-error loss on the same output. ``` ### What a Strong Answer Covers - A definition of saturation in terms of $|z|$ and the shape of the sigmoid's derivative - How saturation affects gradients, and how that depends on the loss and on where the sigmoid sits in the model - What perfectly separable data does to the weights, the predicted probabilities and the standard errors - Numerical problems in computing the sigmoid and the log loss, and stable ways to compute them - Practical mitigations ### Follow-up Questions - Why does logistic regression trained with log loss still get a strong gradient on a confidently wrong example? - How would you detect perfect separation in a fitted model, and what would you do about it? - Why do deep networks with sigmoid hidden units train slowly, and what replaced them? - How does saturation affect Newton's method (IRLS) compared with gradient descent?

Overview: Asks what it means for the sigmoid to saturate and what problems that causes when fitting logistic regression or neural networks. Tests your understanding of gradients under different losses, perfect separation, numerical stability and practical fixes.

Nov 24, 2026
mediumData ScientistOtherMachine Learning
0
0

What does saturation of the sigmoid σ(z)=1/(1+e−z)\sigma(z) = 1 / (1 + e^{-z}) mean, and what practical issues can it cause when fitting a model such as logistic regression?

What a Strong Answer Covers Guidance

  • A definition of saturation in terms of ∣z∣|z| and the shape of the sigmoid's derivative
  • How saturation affects gradients, and how that depends on the loss and on where the sigmoid sits in the model
  • What perfectly separable data does to the weights, the predicted probabilities and the standard errors
  • Numerical problems in computing the sigmoid and the log loss, and stable ways to compute them
  • Practical mitigations

Follow-up Questions Guidance

  • Why does logistic regression trained with log loss still get a strong gradient on a confidently wrong example?
  • How would you detect perfect separation in a fitted model, and what would you do about it?
  • Why do deep networks with sigmoid hidden units train slowly, and what replaced them?
  • How does saturation affect Newton's method (IRLS) compared with gradient descent?