the.ai

Foundations / Architecture

verified

Long Short-Term Memory

A recurrent cell with a deliberate path for information to travel a long way unchanged. Rather than rewriting its state at every step, it keeps a running cell state and uses learned gates to decide what to forget, what to add, and what to expose — so remembering something for a thousand steps is the default rather than an accident that survives.

Viz primitive · budget-splitgated-path = 6

gated-path holds 23% of the budget; rest holds the remaining 77%.

Steps over which the carried state passes near-unchanged, against the steps where it is rewritten, in steps. Drag the gated path up to watch memory survive the sequence — a forget gate near one is a near-identity route the gradient can travel.

6

Reviewed by opendroid · 2026-08-18

  • arXiv:1406.1078 — Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translation
  • arXiv:1211.5063 — On the difficulty of training Recurrent Neural Networks

Origin · not linkable

  • Hochreiter & Schmidhuber 1997 — Long Short-Term Memory · Neural Computation 9(8) · doi:10.1162/neco.1997.9.8.1735