Before Transformers, Recurrent Neural Networks (RNNs) like LSTMs processed data sequentially, maintaining a hidden state that allowed them to build a more hierarchical understanding of context over time, contrasting with self-attention's simultaneous global view.