3.1.13 · D1Neural Network Fundamentals

Foundations — Bias terms and their role

2,179 words10 min readBack to topic

This page assumes you have seen nothing. Every symbol the parent note throws at you — , , , , , , , — is built here from the ground up, in the order that lets each one lean on the one before it.


0. A number line and a point on it

Before symbols, a picture. Everything a neuron does happens to numbers, and numbers live on a line.

Figure — Bias terms and their role
  • A number is just a position on a line. Right of the middle mark () is positive, left is negative.
  • The special point is the origin. "Passing through the origin" will become the villain of this whole topic — keep it in view.

1. Input — the thing the neuron sees

Why the topic needs it: a neuron exists to react to inputs. No , nothing to react to.

When there are several inputs we label them — the little number below (the subscript) is just a name tag, "input number 1", "input number 2". It is not a power or a multiplication.


2. Weight — how much an input counts

Figure — Bias terms and their role

Picture (look at the red line): plot for inputs along the bottom. It is a straight line through the origin. Changing tilts the line like a see-saw pinned at the centre. Notice what it can never do: the line always passes through . This is exactly the trap the bias will later fix.

Why the topic needs it: weights set the slope/orientation of the neuron's response. But slope alone is not enough — see §7.

Recall If

is negative, what happens to the red line? It tilts the other way (goes down as increases) but still pivots through the origin.


3. The sum symbol — add up many terms

Real neurons have many inputs, so we must add many products . Writing that out is tedious, so mathematicians invented a shorthand.

Why this tool and not just "…": with possibly being thousands, is the only compact, exact way to say "add all of them" without knowing in advance.

Recall Expand

. .


4. Vectors and — bundling the sum

The parent writes . That funny ("transpose") plus side-by-side vectors is a compact name for the exact same sum from §3:

Why this tool: once you have thousands of inputs, is one clean symbol for the whole weighted sum. It is the backbone of an affine transformation once we add the bias.


5. The pre-activation — the number before the switch

Why the topic needs it: is the single number that decides how strongly the neuron will react. The bias's whole job is to nudge .


6. Activation and the sigmoid — turning into an output

The parent uses one specific a lot: the sigmoid, written (lowercase Greek "sigma", different job from the capital ).

Figure — Bias terms and their role

Why this switch: a hard step (Perceptron and the step function) is on/off with no in-between, which is impossible to nudge smoothly during learning. The sigmoid is the smooth cousin — and the point where it reads is the threshold the bias will slide. That's the whole reason the bias matters for a neuron.

Recall Where does the sigmoid read

? Exactly at . Moving that crossing point left/right is precisely what the bias does.


7. Bias — the star of the show

Now every prerequisite is in place, so the parent's headline symbol finally earns its entrance.

Figure — Bias terms and their role
  • Slope vs offset: the weight tilts the line (§2); the bias slides it up/down. Two independent controls.
  • Why we need it: in §2 the line was chained to the origin. Adding snaps that chain — now the neuron can output a nonzero value even when every input is . That is the entire reason bias exists.
  • All cases: lifts the line up / slides the sigmoid's switch left (fires more easily). pushes it down / slides the switch right (harder to fire). recovers the origin-locked line — the special starting case, not a general one.

Why "" is the threshold (used in the parent): the sigmoid flips at , i.e. , i.e. . So is the input value where the neuron is half-on.


8. Calculus symbols and — how the bias gets learned

The parent's learning section uses two more symbols. Built from zero:

Why the bias is special here: because is added (§7), nudging by a tiny amount moves by exactly the same amount, so . That makes — the pure error, no input factor attached. (A weight instead gets , scaled by its input.)

Recall Why does the bias gradient have no

in it? Because (bias is added, not multiplied), so the input never enters the bias's gradient.


Prerequisite map

number line and origin

input x

weight w tilts a line

sum sigma adds terms

vector and dot product wTx

pre-activation z

activation phi and sigmoid

bias b shifts the line

partial derivative and error delta

BIAS TERMS AND THEIR ROLE

Each box is built in a section above; every arrow means "you need the source to understand the target". Notice how origin feeds everything — it's the trap; and bias is what escapes it.


Equipment checklist

Test yourself — say the answer out loud before revealing.

The origin, and what "stuck at the origin" means
The point ; the output is forced to whenever the inputs are .
What a subscript like means
A name tag — "the second input" — not a power or a multiplication.
What a weight does to the line
Tilts it (changes slope) about the origin; it can never lift it off the origin.
Expand
.
What equals in plain terms
The dot product = the same weighted sum .
What the pre-activation is
The running total , the number before the activation.
What the sigmoid outputs at
Exactly — the half-on threshold.
What the bias does geometrically
Slides the whole line up/down (offset) without changing its tilt.
Why
Because is added, so nudging moves by the same amount.
What is
The neuron's error signal ; it equals the bias gradient.

Connections


What does "passing through the origin" mean for a neuron?
When all inputs are , the output is forced to .
What is a subscript such as ?
A label naming a specific input, not a power or multiplication.
What does the weight control in ?
The slope/tilt of the line about the origin.
What is ?
Add up every product from to .
What is ?
The dot product = the weighted sum .
What does the sigmoid output at ?
.
What does the bias do to the line ?
Slides the whole line up (if ) or down (if ) without tilting it.
Why is ?
The bias is added, not multiplied, so a nudge in shifts equally.