3.1.13 · D5Neural Network Fundamentals

Question bank — Bias terms and their role

1,523 words7 min readBack to topic

Reminders of the symbols you'll need (all built in the parent Bias terms and their role note):


True or false — justify

TF1. "A bias-free neuron can still fit the line ."
True — passes through the origin, so with works; the bias is only needed when the line must miss the origin (a nonzero intercept).
TF2. "The bias multiplies one of the inputs."
False — the bias is added to the weighted sum, not multiplied by any input; it is the weight on a dummy input that is permanently (see Weighted sum and linear combinations).
TF3. "One bias number is shared across all neurons in a layer."
False — every neuron has its own bias; a layer of neurons carries a bias vector , one scalar per neuron.
TF4. "Because , the bias gradient equals the neuron's error and does not scale with the input."
True — weight gradients are (input-scaled), but the bias gradient is the "pure" error , independent of how big the inputs are.
TF5. "Adding a bias makes a linear neuron nonlinear."
False — is still a straight line; it is an affine map (linear plus a shift). Nonlinearity comes only from the activation .
TF6. "Setting every bias to 0 causes the same symmetry problem that zero weights cause."
False — identical weights across neurons make them compute the same thing and get identical gradients (broken learning); biases don't route the inputs, so zero biases are a perfectly fine, standard starting point.
TF7. "For a ReLU neuron, a large negative bias can make it output zero for almost every input."
True — ReLU outputs ; if is very negative, stays below for most , so the unit is "dead" — which is exactly why ReLU biases are sometimes seeded with a small positive constant.
TF8. "Regularizing the bias with L2 improves generalization just like regularizing weights."
False — a bias is a single scalar per neuron adding negligible capacity; penalizing it just fights the model's ability to shift its mean output, adding error without curbing overfitting (see Regularization (L1, L2)).
TF9. "Making more positive makes a sigmoid/step neuron easier to activate."
True — the neuron fires roughly when , i.e. ; a bigger lowers the threshold , so the neuron is "eager" and fires for smaller inputs.
TF10. "If you use the absorbed-bias trick (append a constant ), you no longer need a special update rule for the bias."
True — once the bias is literally the weight on the constant- input, ordinary gradient descent updates it like any other weight; the trick is why the same rule already applies.

Spot the error

SE1. "The bias lets the neuron rotate its decision line to any angle."
Wrong verb — weights rotate/tilt the line (they set slope and orientation); the bias shifts it parallel to itself. Rotation vs. translation is the whole weight-vs-bias distinction.
SE2. ", same form as a weight gradient."
Wrong — it's with no factor, because whereas . The missing input factor is the key point.
SE3. "Because is the threshold, the neuron activates when the input exceeds ."
Wrong for — the neuron activates when , i.e. . The threshold on the input is , not ; is the threshold on the weighted sum.
SE4. "A minibatch of examples gives separate biases to average."
Wrong — there is still one bias per neuron; what you average are the per-example gradients: . One parameter, many gradient contributions.
SE5. "Since bias is 'the weight on a 1', we should initialize it randomly to break symmetry."
Wrong — symmetry-breaking is a weight concern; biases are typically initialized to (or a small positive constant for ReLU), and this causes no symmetry problem.
SE6. "A perceptron with a step activation and no bias can still put its decision boundary anywhere."
Wrong — a bias-free boundary always passes through the origin; it can only rotate about that point. See Perceptron and the step function.

Why questions

WHY1. Why does a bias-free neuron force its decision boundary through the origin?
Setting gives , and always satisfies it — the origin is always on the boundary, so no offset is possible without .
WHY2. Why is the bias gradient input-independent while the weight gradient is not?
The bias adds a constant, so ; a weight multiplies its input, so . The chain rule then carries that into the weight gradient but leaves the bias gradient as the bare error .
WHY3. Why do we sometimes initialize ReLU biases to a small positive value instead of ?
A slightly positive bias keeps the pre-activation above early on, so more units stay active and pass gradient — this avoids "dead" ReLUs that never learn.
WHY4. Why is the bias trained by the same gradient descent rule as the weights?
Via the absorbed-bias trick it literally is a weight (on the constant- input), so it inherits the identical update .
WHY5. Why do we usually exclude biases from L2 regularization?
L2 shrinks parameters toward to reduce capacity, but shrinking a bias toward merely re-pins outputs near the origin — it removes the neuron's freedom to set its baseline without meaningfully reducing overfitting.
WHY6. Why does shifting the bias slide an entire sigmoid S-curve left or right rather than reshaping it?
Because is the same curve evaluated at a shifted input; changing only relocates the half-activation point , leaving the shape (set by ) untouched.
WHY7. Why is the bias described as controlling the "threshold" while weights control "slope"?
Weights determine how steeply and in which direction responds to inputs (slope/orientation), whereas the bias sets the crossover point where activation flips — the threshold.

Edge cases

EC1. What happens to the threshold if the weight ?
The threshold blows up (to ): with the neuron ignores the input entirely and outputs the constant regardless of — no meaningful threshold exists.
EC2. If all inputs are exactly zero, what is the neuron's output?
, so the output is — the bias alone determines the "resting" activation when nothing drives the neuron.
EC3. Can a purely bias-driven neuron (all weights ) learn anything useful?
Only a constant — it outputs for every input, so it can fit a fixed baseline but cannot respond to the data; useful only as an offset, never as a discriminator.
EC4. Over a minibatch, when is the accumulated bias gradient exactly zero even though individual errors are nonzero?
When the per-example errors cancel (positive and negative errors balance), the bias stops moving — the neuron's baseline is already centered even if individual predictions are off.
EC5. With a symmetric activation like , does the bias still act as a shift?
Yes — is the same S-curve shifted so its zero-crossing sits at ; symmetry of the activation doesn't remove the bias's translating role.
EC6. If two neurons in a layer end up with identical weights but different biases, are they redundant?
No — equal weights give the same orientation, but different biases place their thresholds at different inputs, so they can still respond to distinct regions and are not duplicates.

Connections