liveBook · Manning

Freeze

Freezing is the practice of keeping selected model parameters unchanged during training or adaptation, typically while allowing other parameters to be updated.

How 3 Manning books explain it

Deep Learning with R, Third Edition

A frozen parameter is a model parameter excluded from optimization so that its value remains unchanged during further training.

How it is used
Preserves pretrained image features while training a classifier and reduces trainable parameters during large language model fine-tuning.
How deep it goes
Defines freezing, demonstrates trainable-weight changes and recompilation, then explains its memory role in LoRA without detailing optimizer internals.
Examples
Shows an Xception backbone with zero trainable weights and a frozen projection kernel paired with rank-eight LoRA matrices.
What you can do after
Apply it via Keras or KerasHub to freeze pretrained weights, check trainability, and recompile before training.

Read how Deep Learning with R, Third Edition explains freeze →

Inside Deep Learning: Math, Algorithms, Models

A transfer-learning technique that keeps selected model parameters fixed during training while allowing the remaining parameters to be updated.

How it is used
Uses pretrained parameters as fixed features while adapting selected layers to a new task, especially when labeled data is scarce.
How deep it goes
Defines parameter freezing, shows PyTorch implementations, and compares tradeoffs, but does not provide a general rule for choosing layers.
Examples
Uses a frozen ResNet18 with a replacement classifier and a frozen BERT classifier compared with a GRU.
What you can do after
Apply it via PyTorch by freezing pretrained parameters, replacing the final layer, and training the remaining parameters.

Read how Inside Deep Learning: Math, Algorithms, Models explains freeze →

Deep Learning with Python, Third Edition

To keep selected model parameters unchanged during training so they do not receive optimizer updates.

How it is used
Protects pretrained representations while a new classifier learns, then supports controlled adaptation during fine-tuning.
How deep it goes
Defines weight immutability, shows Keras configuration and recompilation, and gives staged and partial fine-tuning procedures.
Examples
Uses a frozen Xception convolutional base, dense classifier, augmented image dataset, trainable-weight counts, and staged fine-tuning.
What you can do after
Operate/configure Keras models by freezing bases, training replacement classifiers, recompiling, and selectively unfreezing layers.

Read how Deep Learning with Python, Third Edition explains freeze →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.