liveBook · Manning

Initialization

As explained in Natural Language Processing in Action, Second Edition

Initialization is the process of assigning starting values to a neural network’s states, weights, and biases before training.

Initialization assigns starting values to a neural network’s hidden states, weights, and biases before training. In an RNN, these values can help different neurons begin tracking sequence position or other temporal patterns. section 8.3.1

Practical initialization choices include:

  • Seed a hidden state with zeros, ones, or a gradient of values between zero and one when the task has meaningful state polarity or position. section 8.3.1
  • Keep initialization consistent across training to encourage recognizable weight structure and make some learned roles easier to inspect. section 8.3.1
  • Master random sampling and shuffling before using advanced, highly structured seeding; overly fixed sample ordering can encourage local minima. section 8.3.1

Sequence-position seeding

An RNN might initialize part of its hidden state with a progression between zero and one so particular neurons begin with a positional pattern. Consistent initialization and sample ordering can preserve that structure, but alphabetizing equal-length texts may make performance uneven across the data. section 8.3.1

How Natural Language Processing in Action, Second Edition covers it

How deep it goes
Explains hidden-state value choices, consistency, sample ordering, and risks of structured seeding without detailing initialization algorithms.
Examples
Uses zeros, ones, value gradients, consistent seeds, random shuffling, and alphabetized equal-length text samples.
What it assumes
Assumes familiarity with neural-network training and recommends mastering random sampling and shuffling before advanced seeding.
What you can do after
Apply it by selecting repeatable hidden-state values and preserving effective sample randomization during recurrent-network training.
How it connects
Connects initialization with RNNs, LSTMs, hidden states, weights, biases, training, interpretability, and local minima.

Also explained in

Compare how 5 books explain initialization →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Natural Language Processing in Action, Second Edition. The section links point to the parts of the book it draws on.