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 z=w1x1+⋯+wdxd+b of the inputs xi with weights wi and offset (bias) b. A perceptron outputs a hard 0 or 1 using a step function (jumping abruptly at z=0), whereas a logistic neuron passes z through the smooth S-shaped sigmoid curve σ(z)=11+e−z to output a number strictly between 0 and 1.

Steps

  1. Common starting point: both compute the same linear score z=w1x1+⋯+wdxd+b (a weighted sum of inputs plus a bias) and separate classes along the flat boundary z=0.
  2. Perceptron (hard threshold): outputs 1 if z>0 and 0 otherwise. Because it jumps all at once from 0 to 1, small weight tweaks usually produce either no change at all or a sudden flip.
  3. Logistic (sigmoid) neuron (smooth curve): outputs σ(z)=11+e−z, which rises smoothly from 0 to 1 as z increases (with σ(0)=0.5). This continuous value can be read as a probability—for example, confidence that the input belongs to class 1.
  4. 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

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?