Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

L3-09 · Optimization and learning

Perform a gradient descent step and explain why a lower training loss is an incomplete success test.

Level 3 icon Level 3 · High-school bridge
Objective. Perform a gradient descent step and explain why a lower training loss is an incomplete success test.
Before this lesson. L3-06
Hands-on lab. Variational circuits and gradients

Learn

Optimization chooses parameters to reduce a stated loss function. A loss measures error under a chosen rule. In gradient descent, subtract a learning rate times the gradient from the current parameters. A small step follows a local direction of decreasing loss when regularity conditions hold.

The learning rate controls the step size. A large value can overshoot a minimum or make the procedure diverge. A very small value can require many steps. Some loss functions contain several local minima or nearly flat regions, so a small gradient need not certify a useful solution.

Learning requires more than minimizing training loss. Evaluate predictions on data that the fitting procedure did not use. For causal learning, also test whether the target intervention is identifiable. For quantum learning, include data encoding, measurement, and classical computation costs when comparing methods.

Practice

Solution

The derivative at one is 2(1-3) = -4. The new parameter is 1.4. The new loss is (1.4-3)² = 2.56, below the initial loss of four.

Check your understanding

What does a smaller training loss establish by itself?

Show the answer

B. Better fit under that training objective

Training loss measures the chosen fit criterion. It does not establish causal validity, performance on new data, or computational advantage.

Sources

This lesson draws on Illowsky & Dean, 2023Schölkopf et al., 2021.

Next: L3-10 · Estimation, intervals, and repeated tests

References
  1. Illowsky, B., & Dean, S. (2023). Introductory Statistics 2e. https://openstax.org/books/introductory-statistics-2e/pages/1-introduction
  2. Schölkopf, B., Locatello, F., Bauer, S., Ke, N. R., Kalchbrenner, N., Goyal, A., & Bengio, Y. (2021). Towards Causal Representation Learning. https://arxiv.org/abs/2102.11107