How does it work?
Each layer takes numbers in, multiplies them by its weights, adds a bias, applies a simple non-linear function and passes the result on. One layer alone can only draw straight lines. Stack many, and the network can represent extraordinarily complicated relationships without anyone specifying what those relationships are. Networks in use today span roughly six orders of magnitude in size, from a few million weights for a small classifier to well over a trillion for the largest language models.
Training runs an example through, measures how wrong the output was, and works backwards through the layers calculating how much each weight contributed to the error. Every weight moves a little in the direction that would have reduced it. Repeat across billions of examples and the network gradually stops being wrong.
