An output gate is the LSTM component that controls how much of the processed cell state becomes the hidden state. After the cell state is updated, tanh produces a candidate short-term memory; a sigmoid layer scales each element before exposing it at the current time step. section 4.2
Selective exposure
An LSTM can preserve information in its long-term cell state while suppressing it from the current hidden state. The output gate therefore separates retaining memory from exposing memory, supporting different long- and short-term responses. section 4.2
Figure 4.2 A single LSTM cell. The inputs are the current vector Xt, the previous hidden state ht–1, and the previous cell state Ct–1. There are three learned gates: the forget ft, input it, and output Ot. They are all produced by sigmoid layers (“σ” blocks). A tanh layer forms a candidate update \(\tilde{C}\)t. Pointwise multiplications (“×”) and an addition (“+”) update the cell state on the top “conveyor” pathway. Arrows indicate vector flow; the legend marks pointwise operations, concatenation, and copies. This is the standard LSTM, emphasizing how gating enables selective memory retention and exposure. Used with permission granted by the author (Chris Olah), though it is slightly modified from its original form.
Use the standard LSTM cell diagram to trace the sigmoid output gate, tanh-processed cell state, and pointwise multiplication that forms the hidden output. section 4.2
