Bias

Basic concept

A number added to a unit’s total whatever the inputs are: it moves the point where the unit switches on.

Also called Offset, Intercept

One unit: each input is multiplied by its weight, the products and the bias are added into z, and the activation function turns z into the unit’s output a. Change any number and watch which ones matter. The numbers are made up; the arithmetic is what every unit in every network does.
x₁0.80x₂−0.60x₃0.50b = −0.20z 0.50ReLUa 0.50

z = 1.00×0.8 + 0.50×−1.2 + 0.25×2.0 − 0.2 = 0.500 · a = max(0, z) = 0.500

Every input contributes its weight times its value; the thickest line is not always the largest contribution.

Figure 1. Every number is computed in your browser.

What it is

Each unit adds a bias to its weighted sum. With every input at zero, the bias alone decides the output; with ReLU, a negative bias keeps the unit silent until its inputs are strong enough. In a classifier’s last layer there is one bias per class, which raises or lowers that class for every input at once. That makes biases the simplest knob to edit, and the easiest to overuse.

Easy to misread

Raising a class bias does not teach the model anything new about the input; it shifts that class’s score by the same amount on every input. Lesson 1 shows the side effect: adding 1 to the Pothos bias flips the dark photo, and makes every other photo less certain.

In WeightSpace

Catalog workbenches edit biases: each may move at most ±8 from its shipped value, and the Weight map panel sweeps two of them. The home page’s archived edit is a single bias, Pothos, from −0.003 to 0.720.