Zoom in on the final gate. The Output Gate ($o_t$) decides how much of the cell's private memory becomes the visible hidden state $H_t$ — the only thing the rest of the network ever sees.
The cell state is private. The hidden state is public. The Output Gate is the filter between them — and that separation is one of the most under-appreciated ideas in the LSTM.
A third sigmoid layer, computed from the same merged input as the others:
$$o_t = \sigma(W_o \cdot [H_{t-1}, X_t] + b_o)$$
It is applied only at the very end, to the already updated cell state, after that state has been squashed by $\tanh$:
$$H_t = o_t \odot \tanh(C_t)$$
Note the ordering carefully: the memory is updated first, then filtered. The Output Gate never changes what is stored — it only changes what is shown.
This gate is the reason an LSTM carries two state vectors instead of one:
Because of this split, the cell can remember something without acting on it. Suppose the LSTM reads a plural subject: it stores that fact in $C_t$ and keeps the output gate closed on that slot for many steps. Only when the verb finally arrives does the gate open, releasing "the subject was plural" exactly when it is needed to choose are over is. A single-state RNN cannot do this — anything it remembers, it must also expose.
The cell state is a running sum, so it can drift well outside $[-1, 1]$ after many additions. Feeding that raw value to the next layer would produce unstable activations. Squashing with $\tanh$ rescales it into a bounded, zero-centred range before the gate scales it further.
There is a side effect worth seeing in the lab: once $|C_t|$ is large, $\tanh$ flattens out. Piling more into memory stops changing the output. Use the $C_t$ slider beyond $\pm 2.5$ and watch the revealed bar barely move.
$H_t$ is not just the cell's answer — it is also half of the input to the next time step, where it will help compute all four layers again. So the Output Gate does double duty: it decides what the outside world sees, and it decides what the cell tells its own future self. A closed output gate leaves the next step reasoning almost entirely from the incoming token.
The Output Gate separates having information from using it. Together with the Forget Gate (what to erase), the Input Gate (what to write), and the Candidate (what the content is), it completes the four-layer machine that makes an LSTM cell work — and explains why it costs four times a simple RNN's parameters.
Zoom in on the final gate. The Output Gate ($o_t$) decides how much of the cell's private memory becomes the visible hidden state $H_t$ — the only thing the rest of the network ever sees.