Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 01 · AI · Neurons to a language model · about 24 min to read

Watch: What deep learning actually is: backprop, and why language was hard
▶ VideoPlay it as a journeyTutor comes with a plan

Why the Loss Won’t Go Down

How It Learns
How It Learns · Open board

The How It Learns board draws how a network learns. This lesson is what to do when the learning stalls.

Before you start. From What a Neural Network Is: a neuron is a unit that adds up its inputs, each multiplied by a weight. A weight is one adjustable number inside the network, a dial. Neurons sit in rows called layers. From How It Learns (loss, gradient descent, backprop): the loss is one number for how wrong the network is. Also from How It Learns (loss, gradient descent, backprop): training nudges every weight, over and over, to make the loss smaller, like walking downhill on a landscape whose height is the loss. From One Knob, One Slope: a weight’s slope says which way and how fast the loss changes if you nudge that weight, and the gradient is all the slopes together. The learning rate is how far each nudge goes.

Lesson 6 of 83 in AI

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • 25 April 2019: “Neural net training fails silently”, and the loss curve that shows it
  • The learning rate, read off the loss curve: crawl, converge, spike, diverge
  • A stretched valley, and Adam: a stride for every weight
  • Initialisation: where the walk starts, and why a signal dies in twenty layers
  • Layer normalisation: resetting the volume after every layer
  • Dropout: two lines on the loss curve, and the one that turns up
  • What one step of the walk really is
  • Four strides, one hill
  • The canyon: why one stride is not enough
  • Dropped in the fog: why twenty layers can go silent
  • Why the quiet row comes out almost the same
  • Switching neurons off, and the two lines
  • All of it in code

Terms it explains: How It Learns, loss curve, Adam, initialisation, layer normalisation, dropout, momentum, early stopping, automatic differentiation, backpropagation, batch / mini-batch, convergence, epoch, generalization, gradient, gradient descent, learning rate, loss / cost function, optimizer (SGD/Adam), overfitting, parameters/weights, regularization, step, validation set / early stopping.

Lab

Every step of training walks the dials downhill. How far should each step go?

Drag How far each step goes from 0.001 up to 0.5 and watch Steps to a loss under 0.01 fall, then vanish.

Open The learning rate

Related paper

Review AI