Topic · Machine Learning & AI
← All topicsSequence Models
29 articles · 5 checkpoints · 17 deeper reads · 7 reference notes
Every article, in reading order
plant a flag as you finish eachRead these first
A recurrent network reuses the same weights at every timestep, so training it means adding up how much each timestep's error depends on those shared weights, chained all the way back through the sequence. That chaining is backpropagation through time, and it is also where recurrent networks quietly fail.
An LSTM fixes the vanishing-gradient problem of plain recurrent networks by keeping a separate memory lane, the cell state, that information can travel down almost unchanged. Three learned gates decide what joins that lane, what leaves it, and what gets read from it.
Translating a sentence, or forecasting a multi-day price path from a multi-day history, both need to map one sequence to another sequence of a different, possibly unequal length. Encoder-decoder models solve this by compressing the input sequence into a single summary, then generating the output sequence from that summary one step at a time.
S4's linear state-space layers process every sequence with the same fixed dynamics regardless of content. Mamba makes those dynamics depend on the current input itself, letting the model choose what to remember and what to skip, while keeping the linear-time efficiency that made S4 attractive over attention.
S4 revived a decades-old control-theory idea, the linear state-space model, and showed it can be trained as a neural network layer that processes very long sequences without the quadratic cost of attention or the vanishing gradients of a recurrent network.
Then the rest