liveBook · Manning

Memorization

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

Model memorization is the phenomenon in which a model fits particular training examples without learning patterns that transfer to new data.

Model memorization occurs when a network fits particular training examples instead of learning patterns that transfer to new data. It becomes more likely when a large model encounters a small or reduced training set. section 1.3.1 section 7.1.1

A memorizing model can approach perfect training accuracy while validation or test performance declines. This reveals specialization rather than generalization, although specialization can be useful when identifying a specific dataset is the goal. section 7.1.1

Inspect memorization through these practical signals and interventions:

  • Compare training and validation accuracy and loss rather than relying on training accuracy alone. section 7.1.1
  • Use dropout to deactivate a percentage of nodes during each training pass, encouraging a more general network at added computational and size cost. section 1.3.1
  • Use pooling and batch normalization to reduce model size and improve generalization, while checking whether memorization remains. section 7.1.1

Single-layer CNN

A CNN with 64 filters, a 3×3 kernel, flattening, and dense layers contains over six million parameters. On a reduced dataset, it reaches almost 100% training accuracy while validation or test accuracy falls. Adding pooling and batch normalization reduces the model to about 1.6 million parameters and produces improving validation accuracy with decreasing loss, though some memorization remains. section 7.1.1

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

How deep it goes
Explains causes, training signals, and interventions through a CNN experiment, but stops short of formal theory.
Examples
Uses a reduced-dataset CNN whose training accuracy nears 100% while validation performance declines, then tests pooling and batch normalization.
What it assumes
Assumes familiarity with neural-network layers, training and validation data, accuracy, loss, and CNN parameter counts.
What you can do after
Diagnose memorization by comparing training and validation curves, then apply dropout, pooling, or batch normalization.
How it connects
Connects memorization with generalization, dropout, normalization, batch normalization, pooling, and convolutional neural networks.

Also explained in

Compare how 4 books explain memorization →

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.