Simple RNN

Recurrent · node type · RNN

The plain recurrent layer: the new state is a squashed mix of the input and the previous state.

Also called Elman RNN, Vanilla RNN, Recurrent layer

Figure 1. The typed ports of Simple RNN, in the same format as every model drawing. Letters such as N or C stand for any size.

What it does

A simple RNN applies the same dense layer at every time step, fed with the current input and its own previous output. This lets it carry information along a sequence, but every step multiplies the state by the same matrix and squashes it, so the influence of early inputs fades or blows up after a few dozen steps. Gated layers (LSTM, GRU) were designed to fix exactly that. It remains a useful mental model, and the game NPCs that remember a last sighting do so with a hand-built memory signal rather than a learned recurrence.

Formula

ht = tanh(W xt + R ht−1 + bW + bR)

Shapes and parameters

Shapes
Input [T, N, I]; hidden state [D, N, H]; output of every step [T, D, N, H].
Parameters
H × I + H × H weights plus 2H biases per direction. With I = 3 and H = 4: 12 + 16 + 8 = 36.
Used for
Teaching, very small sequence models, and as the conceptual base of gated recurrent layers.

In WeightSpace

Read-only in WeightSpace today; no catalog model uses a plain RNN.

Where it appears

No model in WeightSpace uses Simple RNN yet; it is here as a reference for how the others work.