Before the rise of Recurrent Neural Networks (RNNs) and the modern deep learning explosion, handling sequential data—like text, speech, or stock prices—was a game of clever feature engineering and statistical modeling.
Since neural networks weren’t yet capable of “remembering” past inputs effectively, researchers relied on methods that either ignored time or treated it as a fixed mathematical constraint.
In Natural Language Processing (NLP), N-grams were the gold standard. Instead of understanding context, these models predicted the next word based purely on the frequency of the $n$ preceding words.
Before RNNs dominated speech recognition, Hidden Markov Models were the kings of the field. An HMM assumes that the system is a Markov process with unobserved (hidden) states.
In the early days of neural nets, we used Multi-Layer Perceptrons (MLPs). However, these have a fixed input size.
In many fields, we didn’t use “learning” at all:
| Feature | Pre-RNN Era (HMMs/N-Grams) | RNN Era |
|---|---|---|
| Memory | Very short (fixed window or Markovian) | Theoretically infinite (hidden state) |
| Input Length | Usually fixed | Variable |
| Feature Engineering | Heavy (hand-crafted by experts) | Learned automatically from raw data |
| Complexity | Mathematically rigid | Computationally intensive |
Essentially, the pre-RNN era was defined by human intuition. We had to tell the machines exactly what patterns to look for. RNNs (and eventually LSTMs and Transformers) shifted that burden, allowing the models to discover the temporal patterns themselves.
/Computer-Science
└── /Machine-Learning
└── /Sequential-Data
├── 01_Pre-Deep-Learning/ <-- (This file goes here)
│ ├── N-Gram_Models.md
│ ├── Hidden_Markov_Models.md
│ └── Feature_Engineering.md
├── 02_Recurrent-Neural-Networks/
│ ├── RNN_Fundamentals.md
│ ├── Vanishing_Gradients.md
│ └── LSTMs_and_GRUs.md
└── 03_Transformers-and-Beyond/
├── Attention_Mechanism.md
└── Transformer_Architecture.md