LSTM in 3D
Watch the gates of an LSTM decide what to forget, keep and show.
What this lab shows
The LSTM adds a separate memory and three gates to the RNN: forget, input and output. Each column in the 3D view has five layers: the memory, the three gates and the output. You see how much memory each gate let through at each letter.
A tiny LSTM, really trained with numpy on simple sentences in Portuguese. The numbers in each unit have no fixed meaning.
How to use it
- Type a sentence longer than ten letters.
- Rotate the scene and compare the height of the gates from one letter to the next.
- Read the summary of the gates below the scene.
After “o␣gato”, the network thinks the next letter is:
- ␣99%
- r0.6%
- n0.2%
- s0.1%
- t0%
Example calculated with the trained network (the interactive version needs JavaScript).
The lab could not load. The summary above still applies.
Books that use this lab
No published book uses this lab yet.