SplasheryPlayground
Recurrent Network, a still.

AI and Computing11.7° S, 20.3° E

Recurrent Network

A recurrent network, or RNN, reads a sequence, like the words of a sentence, one piece at a time.

PlaygroundHow to play

Kind
Built from a recipe
Sound
Yes
Licenses
Own work (made in the page)

How to play

Tap it to read a sentence one word at a time. Try the LSTM style in the Splash tab.

Its controls

ControlKindRangeStart
Read a sentenceTap
ReadButton
StyleList2 choicesSimple
ViewList2 choicesPoster (2D)

About it

A recurrent network, or RNN, reads a sequence, like the words of a sentence, one piece at a time. It keeps a memory called the hidden state: after each word, the state loops back in with the next word, so what it knows builds up as it reads. An LSTM (long short-term memory) adds gates that decide what to forget, what to take in and what to pass on.

Tap it: THE, CAT and SAT rise into the cell one at a time. The cell flashes, and the glowing orb, the hidden state, takes on the word's color mixed with what it carried and runs around the loop. In the Splash tab, pick the LSTM style to see its three gates open and shut like shutters, or a 3D model. This is a scripted sequence, not a trained sentence reader.

Details

Splats
Opens at 200,000 at Mid Detail, 59,999 at Low, and up to 780,000 at Max

Is it right?

The diagram shows the idea of passing a hidden state through a sequence. Its colors and LSTM shutters are scripted, and it has no learned recurrent weights or numerical cell state.

  1. Simplified

    An RNN carries a hidden state from one sequence item to the next.1

    The diagram loops an orb between THE, CAT, and SAT, matching the flow of a recurrent state.

  2. Correct

    An LSTM uses forget, input, and output gates.2

    The three shutter labels are F, I, and O, matching those gate roles.

  3. Simplified

    The splash illustrates gate operation without reading a sentence.12

    The colors and shutters are stored animation values. The About text explicitly calls this a scripted sequence.

  1. 1Recurrent neural networks, Dive into Deep Learning authors
  2. 2Long short-term memory, Dive into Deep Learning authors
Simplified
THE CAT SAT, the orb colors, and the gate openings repeat a stored sequence. The LSTM view has no numerical cell-state update or sigmoid gate values.

Sources and credits

Made in Splashery. Its code is MIT.

Share it

This link opens it in the Playground. To put it on your own page, add the element and one script tag. Every option.

https://splashery.app/play/?toy=rnn<script type="module" src="https://splashery.app/play/src/element.js"></script> <splashery-toy toy="rnn"></splashery-toy>

Straight down

Through the middle of the world, the far side is Earthquakes, on Earth and Maps.

Fall throughIt stands 7.9° from the exact far side, the closest of any Splash.