Support the missionKeep the lab open and growing

The Physics of Deep Learning

What it is. Tools from statistical physics explain how deep networks learn. They learn structure in order of strength, broad distinctions before fine ones, as children do. Wiring chosen at the edge of chaos lets very deep networks train fast, and most traps in learning are saddles, not dead ends.

What it gives you. It shows why learning often stalls and then suddenly jumps, why children learn categories from general to specific and how theory turned into faster training methods.

Understanding what we built

We know everything about an artificial network: its wiring, its learning rule and all its training data. Yet how it learns was poorly understood. If we cannot explain these systems, explaining the brain will be harder still. Physics offers tools for both.

Children and early network models learn coarse distinctions first, animals versus plants, then finer ones. Theory for simple deep networks shows why: they learn the strongest patterns in the data first, each after a plateau and then a sudden drop in error.

Properties passed down a branching tree, as in evolution, make broad splits stronger than fine ones. So learning must move from general to specific. A network with at least one hidden layer shows these stages; one without does not.

Three advances

Six findings

Learning by theory

An idea from thermodynamics

  1. Take real data, such as images, and blur them step by step into pure noise.
  2. Keep a record of every step.
  3. Train a deep network to run the film backwards, one step at a time.
  4. Each step has its own target, so even a thousand layers train without the usual difficulty.
  5. Feed the network fresh noise and new images emerge. This is the root of today's image generators.

Learning to undo disorder is a way to learn the world.

Children briefly come to believe pine trees have leaves before learning they do not. A network learning from the same kind of data shows the same detour.

Steps

  1. Recall how a child learns animals: first "animal", then "bird" and "fish", then "robin".
  2. Think of a skill you learned that stalled for weeks, then improved suddenly.
  3. Learning in deep networks shows the same plateaus and jumps. The strongest structure in the data is learned first.
  4. Write down something you once believed in the middle of learning a subject that you later corrected.
  5. Children briefly believe pine trees have leaves. Networks show the same temporary wrong beliefs, predicted by the theory.

Time. 5 minutes

Words to know

Learning dynamics
How what a network has learned changes over training time, including plateaus and jumps.
Saddle point
A flat spot in the error landscape that slopes up in some directions and down in others.
Edge of chaos
A tuning between order and chaos at which signals pass through many layers without fading or exploding.
Diffusion model
A generative model trained to reverse the gradual blurring of data into noise.

Summarized by Irina Medelye · IRA X LAB.

More in Brains, Minds and Machines