liveBook · Manning

Optimizer

As explained in Evolutionary Deep Learning: Genetic algorithms and neural networks

An optimizer is an algorithm that updates model parameters to minimize or otherwise improve an objective during training.

An optimizer is a selectable deep-learning training function that strongly influences whether a model trains effectively. Its choice is tuned alongside activation and loss functions, while network architecture usually follows the data and features being learned. section 5.1.2

Practical optimizer selection involves:

  • Comparing training behavior across stochastic gradient descent (SGD), Adagrad, Adam, and RMSprop. section 5.1.2
  • Treating optimizer and loss choices as major influences on whether a model trains at all. section 5.1.2
  • Inspecting loss curves and generated output after changing an optimizer, especially in GAN training. section 9.2.2

Inducing vanishing gradients by changing the discriminator optimizer

In a GAN notebook, replace the discriminator's RMSprop setting with Adam using an extremely small argument value. The discriminator can become very effective at identifying fakes, while generator loss changes little and discriminator fake loss remains nearly fixed. These patterns indicate vanishing gradients; changing generator activations is then explored as a separate intervention. section 9.2.2

How Evolutionary Deep Learning: Genetic algorithms and neural networks covers it

How deep it goes
Compares optimizer outcomes experimentally and demonstrates a GAN failure mode, but does not explain optimizer internals.
Examples
Compares SGD, Adagrad, Adam, and RMSprop, then swaps a GAN discriminator optimizer to expose vanishing-gradient symptoms.
What it assumes
Assumes familiarity with deep-learning models and hyperparameters while treating optimizer choice as a configurable model option.
What you can do after
Apply optimizer selection by comparing training results and changing optimizer settings in executable notebooks.
How it connects
Connects optimizer choice with activation functions, loss functions, network architecture, and vanishing gradients.

Also explained in

Compare how 2 books explain optimizer →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Evolutionary Deep Learning: Genetic algorithms and neural networks. The section links point to the parts of the book it draws on.