WhoBuilt

Transformers Explained: The Discovery That Changed AI Forever

Oct 23, 2025· 9 min· 111K views·Watch on YouTube

An unnamed presenter at Y Combinator explains how LSTMs and attention-based sequence models led to the Transformer architecture.

LSTMs brought memory to sequence models

Feedforward networks struggled to retain context across a sentence, while RNNs processed words one at a time and could lose learning signals over long sequences. In the 1990s, Sepp Hochreiter and Jürgen Schmidhuber proposed LSTMs, whose gates control what information to keep, update, or forget. GPU acceleration and larger datasets made LSTMs practical for NLP in the early 2010s.

Attention eased the fixed-length bottleneck

Early sequence-to-sequence translation models compressed an input sentence into one fixed-size vector, which made long or complex sentences difficult to represent. In 2014, Bahdanau, Cho, and Bengio showed how a decoder could attend to an encoder’s hidden states and learn alignments between input and output words. Neural translation then competed with leading statistical systems, and Google Translate adopted a neural sequence-to-sequence architecture around this period.

Transformers removed recurrence

Attention improved alignment, but RNNs still processed tokens sequentially, limiting parallel computation and slowing training as sequences grew. In 2017, Google researchers introduced the Transformer, which uses self-attention to update separate token embeddings and process a sequence in parallel. The presenter says it was faster than RNNs and more accurate on machine translation benchmarks.

Transformer variants scaled to broader tasks

Researchers explored encoder-only models such as BERT and decoder-only autoregressive models such as OpenAI’s GPT series. GPT models trained on larger datasets became the basis for today’s large language models, including those used in ChatGPT and Claude. Earlier NLP models were generally tailored to individual tasks, before large-scale autoregressive training made models more general-purpose.

Takeaways

  • When a model compresses a long input into one summary vector, check whether keeping access to intermediate representations could help.
  • Attention can learn which parts of an input matter for each output step, as demonstrated in neural translation.
  • Parallel computation can remove a major training bottleneck when sequence models grow.
  • Architecture advances often build on earlier ideas that become practical as hardware, optimization, and datasets improve.

Mentioned in this talk

Search inside this talk

What was claimed 12

Related talks