A neural network is a big bundle of numbers called weights. Show it examples — images, sentences, sounds — and "training" means nudging those weights until its predictions match the answers. Concretely, you define a loss (how wrong the network is) and search for the weights that make it smallest.
That search is optimization, and the universal tool is gradient descent: compute which way each weight should move to lower the loss (via backpropagation), take a small step, repeat millions of times. It's astonishingly effective — it's how every modern AI is built.
But here's the unsettling truth: finding the globally best weights is NP-hard, even for tiny networks. The loss landscape is wildly non-convex, full of valleys. So we don't find the optimum — we find a good-enough one. Modern AI is built on settling, gracefully, for local optima.
Comments
Loading comments...