The hidden state is not the memory
counterexample▲▲△Two runs of an LSTM coordinate reach and . At step the output gate is . At step the gates are , , with candidate and output gate . How far apart are the two hidden states at , and at ? What does this say about reading the memory from ?
Hint
The cell update at writes nothing, so .
Solution
At , , a gap of . A readout of sees runs that are almost identical.
At the cells are , and , a gap of . The difference was in the cell all along. The output gate hid it for one step and then exposed it.
So is a view of the cell through a gate, not the memory itself. A probe or classifier trained on can miss information the network will use one step later. To ask what an LSTM remembers, look at .