liveBook · Manning

Warm start

As explained in Inside Deep Learning: Math, Algorithms, Models

A transfer-learning technique that initializes a model from pretrained weights and then continues training those weights on the new task.

A warm start initializes training with weights believed to be closer to the desired solution than random values. In transfer learning, those weights commonly come from a pretrained model, but warm starting also applies to unrelated optimization problems. section 13.2.3

Use warm starts to:

  • Continue training a pretrained model on new data while updating its weights. section 13.2.3
  • Reuse a nearby solution during hyperparameter optimization, such as initializing a model for regularization λ + ϵ with the solution for λ. section 13.2.3
  • Compare trainable warm weights with frozen pretrained weights when training data is scarce; freezing reduces the number of parameters that can change. section 13.3

Warm-started image classifier

Create a pretrained ResNet-18, replace its final layer for two classes, normalize its inputs, and train it with the existing weights rather than random initialization. Compare its learning curves with regular and frozen variants. section 13.3

warmstart_results = train_network(model_pretrained, loss, train_loader, 
 epochs=10, device=device, test_loader=test_loader, score_funcs={’Accuracy’: 
 accuracy_score})

Inspect the PyTorch training call that passes a pretrained model into train_network and records warm-start results. section 13.2.3

How Inside Deep Learning: Math, Algorithms, Models covers it

How deep it goes
Defines initialization, explains neighboring hyperparameter solutions, and compares warm and frozen weights for small datasets without deriving optimization internals.
Examples
Demonstrates pretrained ResNet-18 training, tiny dataset splits, warm-versus-frozen comparisons, and plotted accuracy curves.
What it assumes
Assumes basic model training and pretrained-model usage while teaching the distinction between initialization, transfer learning, and freezing.
What you can do after
Apply it via PyTorch by training pretrained models and comparing trainable warm weights against frozen or randomly initialized alternatives.
How it connects
Connects warm starts to transfer learning, frozen weights, hyperparameter optimization, linear models, Lasso, and support vector machines.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Inside Deep Learning: Math, Algorithms, Models. The section links point to the parts of the book it draws on.