Multilayer Perceptrons and Backpropagation › Summary

Michael BrenndoerferOctober 29, 20261 min read
Machine Learning from ScratchAll chapters
Part 7 of 15Supervised Learning Beyond Linear Models
Chapter 57Multilayer Perceptrons and Backpropagation › Summary
Reading section 9 of 10 · Summary · 1 minSection 9 of 10 · 1 min

Section 9 of 10 · 1 min read

Multilayer Perceptrons and Backpropagation › SummarySection view · Sections in this chapter9 / 10 ↓
Reading tools Definitions, links & notes

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

Notes & comments

A multilayer perceptron composes affine transformations with nonlinear activations. The hidden layer creates a learned representation, and the output layer maps that representation to a prediction. For binary classification, a sigmoid output with binary cross-entropy gives a stable loss when written in terms of the logit as logaddexp⁡(0,s)−ys\operatorname{logaddexp}(0,s)-ys.

Backpropagation is the chain rule applied backward through the network. The gradient at the output logit is predicted probability minus label. The output weights receive the hidden activations multiplied by that gradient, and the hidden preactivations receive the output gradient multiplied by the output weights and the activation derivative. Matrix notation makes the implementation compact: matrix products express weighted sums, while outer and elementwise products combine local gradient factors.

We verified the gradients with finite differences, trained a one-hidden-layer network with mini-batches and L2 regularization, and compared its decision boundary with logistic regression. The MLP can represent curved boundaries that a linear model cannot, while introducing nonconvex optimization and additional architectural and training choices. Input scaling and initialization require care. The held-out comparison evaluates this fitted model on new examples, while the gradient check tests its derivative implementation.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy