The input gate in long short-term memory controls how much proposed new information is written into the memory state of a long short-term memory recurrent neural network. In a common modern form,Here is the candidate memory update, is the input-gate vector, and means componentwise multiplication. The sigmoid function places each gate component between zero and one. The forget gate in long short-term memory separately controls the existing memory: suppressing a new write does not by itself erase stored information.[ref]
LSTM: A Search Space Odyssey by Klaus Greff and others. Section II, Figure 1: memory update and input-gate role; equations here omit peephole connections.
For a scalar example, let , , and . Then . Increasing only to gives : a larger gate admits more of the negative candidate. The gate is a multiplier, not an instruction that the memory must increase.
The proposed write and its admission are learned separately. An input may suggest a strong candidate while the gate learns that this timestep should be ignored. This selective writing was part of the original memory-cell strategy for protecting information across long delays, together with gated reading through the output gate in long short-term memory.[ref]
Long Short-Term Memory by Sepp Hochreiter and Jürgen Schmidhuber. Memory-cell construction and input/output gates protecting constant error flow.
Articles by others on the same topic
There are currently no matching articles.