Recurrent Layers

A measurement in a sequence may only make sense in light of what came before it. Recurrent layers carry a state between steps, and gates give us more control over what information is kept.

10 sections · 10 questions · 3 coding challenges

1 / 10

Could the Previous Step Leave a Useful Memory?

BOTIE

A sound or word often means something different depending on what preceded it. If we process each observation independently, we throw away that context before making the next prediction. We need a representation that can carry something forward.

Elman's 1990 Finding Structure in Time explored recurrent connections as a way to give a network a changing internal memory. Instead of representing time only by placing a fixed window of observations side by side, the network's state could reflect the sequence it had processed.

At each step, a recurrent layer combines the new input with its previous hidden state and produces an updated state. The same parameters are reused along the sequence. This lets history influence the present computation without storing the entire past explicitly, but information can be weakened or overwritten. Longer-range memory requires careful architecture and training rather than following automatically from recurrence.

Sources for this history