Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
Glossary › Bias

What is bias?

A learned number added to a neuron's weighted sum. It shifts the point at which the neuron responds.

Where it is taught

Layers and non-linearity. One layer of a network is a matrix multiplication plus a shift. Stack layers with a bend in between and the network can shape space in ways no single matrix can.

What the lesson leaves you with

  • A layer computes Wx+bW\mathbf{x} + \mathbf{b}Wx+b. Each row of WWW is a neuron.
  • Stacked linear layers collapse into one. Depth alone adds nothing.
  • An activation function between layers, such as ReLU, is what gives depth its power.
Open the lesson

Questions

What is bias?
A learned number added to a neuron's weighted sum. It shifts the point at which the neuron responds.
Where is bias used in AI?
One layer of a network is a matrix multiplication plus a shift. Stack layers with a bend in between and the network can shape space in ways no single matrix can.
What is the key idea to remember about bias?
A layer computes <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>W</mi><mi mathvariant="bold">x</mi><mo>+</mo><mi mathvariant="bold">b</mi></mrow><annotation encoding="application/x-tex">Wmathbf{x} + mathbf{b}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="katex-base"><span class="katex-strut" style="height:0.7667em;vertical-align:-0.0833em;"></span><span class="mord mathnormal" style="margin-right:0.1389em;">W</span><span class="mord mathbf">x</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">+</span><span class="mspace" style="margin-right:0.2222em;"></span></span><span class="katex-base"><span class="katex-strut" style="height:0.6944em;"></span><span class="mord mathbf">b</span></span></span></span>. Each row of <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>W</mi></mrow><annotation encoding="application/x-tex">W</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="katex-base"><span class="katex-strut" style="height:0.6833em;"></span><span class="mord mathnormal" style="margin-right:0.1389em;">W</span></span></span></span> is a neuron.
Where can I learn bias step by step?
In the lesson “Layers and non-linearity” in Gradient’s course on the maths behind AI, with interactive diagrams and questions.

Related terms

  • Activation function
  • Determinant
  • Layer
  • Matrix
  • Tensor
  • Transpose