liveBook · Manning

Optimization

As explained in Data Without Labels

Optimization is the systematic selection of values, actions, or configurations to maximize or minimize a defined objective.

Optimization systematically adjusts model parameters to reduce a loss function, decrease prediction error, or improve accuracy. In deep learning, those parameters are weights and biases. section 8.2.6

Gradient-based approaches differ in how much training data they use for each update:

  • Batch gradient descent updates in the direction of the negative gradient using the full training dataset, seeking a function's global minimum but potentially running slowly on large or high-dimensional data. section 8.2.6
  • Stochastic gradient descent updates coefficients after each training instance, reducing the time required for an update. section 8.2.6
  • Mini-batch gradient descent uses small data subsets to balance speed and accuracy, while adding batch size as a hyperparameter commonly set to powers of two such as 32, 64, or 128. section 8.2.6

Backpropagation supplies the mechanism for optimizing a network. Continuous optimizer feedback improves weights and biases until the network is trained, after which it can predict on unseen data. section 8.4.2

Figure 8.8 The concept of gradient descent. It is the mechanism to minimize the loss function.
figure

Visualize gradient descent as repeated movement downward toward a global minimum while minimizing the loss function. section 8.2.6

How Data Without Labels covers it

How deep it goes
Explains loss minimization, gradient direction, update frequency, and batch-size tradeoffs, but does not detail adaptive algorithms.
Examples
Compares batch, stochastic, and mini-batch gradient descent and illustrates descent toward a global minimum.
What it assumes
Assumes prediction, error, loss, model parameters, weights, biases, and gradients as the working vocabulary.
What you can do after
Evaluate optimization choices by comparing update speed, dataset usage, accuracy tradeoffs, and batch-size settings.
How it connects
Connects loss functions, gradients, backpropagation, weights, biases, accuracy, and predictions.

Also explained in

Compare how 30 books explain optimization →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Data Without Labels. The section links point to the parts of the book it draws on.