A Shared Optimization Loop
- Define a parameterized model.
- Choose an objective.
- Use an optimizer or solver to fit parameters.
- Use validation for selection and held-out data for final evaluation.
A feed-forward neural network commonly composes affine transformations with nonlinear activations. Without the nonlinear steps, a stack of affine layers collapses to one affine transformation. Other neural architectures also include attention, normalization, convolutions, recurrence, routing, or state updates, so “stacked regressions” is only a first bridge.
Continuity and Difference
| Linear least squares | Deep learning |
|---|---|
| Often convex with an analytic or direct numerical solution | Usually nonconvex and trained iteratively |
| A small, fixed feature map | Learns many intermediate representations |
| MSE under common assumptions | Task-specific objectives such as cross-entropy, contrastive loss, or policy objectives |
| Simple capacity control | Data scale, architecture, augmentation, regularization, optimization, and early stopping all interact |
GPT-style language modeling is usually described as self-supervised next-token prediction: labels are derived from the text itself. It uses the same optimization pattern, but not externally labeled supervised regression.
Track Reward
You now have the reusable chassis: model, objective, optimization, selection, and evaluation. Linear regression makes the chassis visible; calculus and backpropagation explain how large differentiable models update millions or billions of parameters together.