Input gate in long short-term memory 2026-11-05
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.
Jürgen Schmidhuber 2026-11-05
Jürgen Schmidhuber is a computer scientist whose research includes learning architectures for recurrent neural networks. He coauthored the1997long short-term memory paper with Sepp Hochreiter and the2000adaptive-forgetting paper with Felix A. Gers and Fred Cummins. These are team contributions documented by the original bylines.[ref] [ref] [ref]
The1997architecture separates a persistent internal state from learned control of access to that state. A LSTM input gate controls new input, while a LSTM output gate controls how stored information influences output. This arrangement was designed to reduce the vanishing gradient problem that makes distant events difficult to associate during learning.[ref]
Long Short-Term Memory by Sepp Hochreiter and Jürgen Schmidhuber. Abstract; Sections3–4: constant error flow and multiplicative gates
An illustrative task presents a marked value early in a long stream, then asks for it after many irrelevant inputs. A network needs both a way to retain the relevant information and a way to protect it from later interference. The paper tested artificial long-delay tasks; success on those experiments is evidence about the architecture and learning procedure under specified conditions, not a guarantee of unlimited or error-free memory.
Jürgen Schmidhuber, photograph linked from his author homepage
. External photograph identified in the Photos list of Jürgen Schmidhuber homepage. Long short-term memory 2026-11-05
Long short-term memory, usually abbreviated LSTM, is a recurrent neural network architecture that carries an explicit memory state through a sequence and learns when to write, retain and expose its contents. It addresses the vanishing gradient problem: in ordinary recurrence, repeated multiplication by small derivatives can make a distant input have almost no effect on the gradient used for learning. Sepp Hochreiter and Jürgen Schmidhuber's 1997 architecture provided a memory-cell path designed to preserve error flow, with gates controlling access.[ref]
Long Short-Term Memory by Sepp Hochreiter and Jürgen Schmidhuber. Abstract and memory-cell construction: constant error flow and input/output gates.
A common simplified modern form, omitting peephole connections, isHere is the input, the memory, the exposed state, the logistic sigmoid function, the hyperbolic tangent, and componentwise multiplication. The learned matrices and biases determine an input gate in long short-term memory , a forget gate in long short-term memory , and an output gate in long short-term memory . LSTM: A Search Space Odyssey by Klaus Greff and others gives a more general baseline with peephole connections; the equations above deliberately show the simpler variant.[ref]
LSTM: A Search Space Odyssey by Klaus Greff and others. Section II and Figure 1: gate roles and baseline update equations.
For a scalar memory with writing switched off in the idealized limit and constant retention , . Over 100 steps, retains about , while retains about . This illustrates how a learned gate can select a retention timescale. Exactly zero or one are limiting idealizations for a finite-input logistic sigmoid function. The product of forget gates describes the direct memory path; it is not the entire recurrent derivative, because gates also depend on earlier states.
The forget gate in long short-term memory was introduced after the original architecture, in Learning to Forget: Continual Prediction with LSTM by Felix A. Gers, Jürgen Schmidhuber and Fred Cummins, to allow old contents to be reset during continuing input streams. Training still uses methods such as backpropagation through time. Artificial delayed-dependency tasks in the original paper demonstrated learning across more than 1,000 time steps in particular experiments; this does not imply unlimited memory or guaranteed success on every long sequence.[ref]
Learning to Forget: Continual Prediction with LSTM by Felix A. Gers, Jürgen Schmidhuber and Fred Cummins. Abstract and adaptive forget-gate motivation.
[ref]Long Short-Term Memory by Sepp Hochreiter and Jürgen Schmidhuber. Abstract and long-delay task experiments.
LSTM memory cell 2026-11-05
An LSTM memory cell is the state-carrying unit of a long short-term memory recurrent neural network. It maintains an internal memory whose update is controlled by gates, while an exposed state communicates selected information to the rest of the network. The memory and exposed output are different quantities.[ref]
Long Short-Term Memory by Sepp Hochreiter and Jürgen Schmidhuber. Memory-cell construction and gated access to persistent state.
In a simplified modern form, omitting peepholes,The LSTM forget gate regulates retention, the LSTM input gate regulates the candidate write , and the LSTM output gate regulates exposure. The componentwise product allows different memory coordinates to make different decisions.[ref]
LSTM: A Search Space Odyssey by Klaus Greff and others. Section II and Figure 1; the displayed simplified variant omits the baseline's peephole connections.
For a scalar example, , , and give . If , the output is only . A small output can coexist with substantial stored state; it does not demonstrate memory erasure.
The additive state path was designed to help learning across long delays. The original 1997 architecture had input/output gating; adaptive forgetting was introduced later for continuing streams. Preserving a direct gradient path addresses an important learning difficulty but does not guarantee unlimited or perfectly reliable memory for every task.[ref]
Long Short-Term Memory by Sepp Hochreiter and Jürgen Schmidhuber. Constant error flow and delayed-dependency experiments.
[ref]Learning to Forget: Continual Prediction with LSTM by Felix A. Gers, Jürgen Schmidhuber and Fred Cummins. Adaptive forget gate and continual prediction.
Output gate in long short-term memory 2026-11-05
The output gate in long short-term memory controls how much stored memory is exposed as the recurrent output of a long short-term memory network. In a common form,The memory is , the exposed state is , is a logistic sigmoid function, and is the hyperbolic tangent. The output gate in long short-term memory modulates the exposed state rather than directly multiplying the stored memory itself.[ref]
LSTM: A Search Space Odyssey by Klaus Greff and others. Section II, Figure 1: output activation and gate; simplified no-peephole equations.
For example, if , then . An output gate yields , whereas yields . Both cases can have the same current memory. A small exposed value therefore does not establish that the internal memory has been erased.
Selective exposure lets a network retain information until it becomes useful for a later prediction. The original architecture combined output gating with an input gate in long short-term memory to regulate access to persistent memory. Changing the exposed state may affect later gate decisions, so “does not directly erase” does not mean the output gate has no influence on future memory evolution.[ref]
Long Short-Term Memory by Sepp Hochreiter and Jürgen Schmidhuber. Memory-cell input/output gates and long-delay learning motivation.
Sepp Hochreiter 2026-11-05
Sepp Hochreiter is a computer scientist working on machine learning and neural networks. His institutional profile identifies long short-term memory among his research topics. The1997paper with Jürgen Schmidhuber connects his earlier analysis of decaying learning signals to a recurrent architecture designed to preserve useful error flow.[ref]
Sepp Hochreiter profile by JKU. Institutional identification and research topics
[ref]Long Short-Term Memory by Sepp Hochreiter and Jürgen Schmidhuber. Abstract; Section3 and its account of the1991analysis
A toy chain rule calculation explains the motivation. If a learning signal is multiplied by at each of twenty successive steps, its contribution is scaled byThat small contribution can make an early input difficult to associate with a much later training signal. The example illustrates the vanishing gradient problem; it is not a measurement of every recurrent neural network.
The long short-term memory design introduced a controlled internal path with constant error flow, while multiplicative gates regulate access. Its artificial-data experiments included successful learning across delays exceeding1000discrete steps. The reported capability belongs to those experiments and their architecture-specific learning rules, rather than implying that any trained instance will remember every input indefinitely.[ref]
Long Short-Term Memory by Sepp Hochreiter and Jürgen Schmidhuber. Abstract; Sections3–5: error-flow construction and artificial tasks
Sepp Hochreiter, identified on his JKU institutional profile
. External institutional portrait from Sepp Hochreiter profile by JKU.
