What is the difference between a perceptron and a logistic (sigmoid) neuron?
Deep learning, Neurons and activations
Level L1 Beginner. Length Short. Nature Th Theoretical.
What's being asked
Whether you know how a smooth S-shaped activation differs from a hard threshold and why that matters when training neural networks.
Key idea
Both neurons compute a weighted sum of the inputs with weights and offset (bias) . A perceptron outputs a hard or using a step function (jumping abruptly at ), whereas a logistic neuron passes through the smooth S-shaped sigmoid curve to output a number strictly between and .
Steps
- Common starting point: both compute the same linear score (a weighted sum of inputs plus a bias) and separate classes along the flat boundary .
- Perceptron (hard threshold): outputs if and otherwise. Because it jumps all at once from to , small weight tweaks usually produce either no change at all or a sudden flip.
- Logistic (sigmoid) neuron (smooth curve): outputs , which rises smoothly from to as increases (with ). This continuous value can be read as a probability—for example, confidence that the input belongs to class .
- Why smoothness helps training: small tweaks to the weights make small, predictable changes in a sigmoid neuron's output, so multi-layer networks can learn gradually via gradient descent (covered next in backpropagation), whereas a flat step gives no gradual feedback.
Common mistakes
- Saying a single logistic neuron gives a curved decision boundary; its threshold is still the straight line or flat plane .
- Treating a perceptron's or output as a probability; only the smooth sigmoid output lies continuously between and .
How long your answer should be
3–4 sentences comparing the two outputs and noting why smoothness helps training.
Read this
Previous in Deep learning: none
Next in Deep learning: Why can a deep network with no non-linear activation functions represent nothing more than a single linear (affine) layer?