Skip to content

Transformer

The neural network design behind nearly every modern language model.

The transformer, introduced in 2017, replaced recurrence with attention: instead of processing a sequence step by step, every token looks at every other token directly and decides how much to weight each one. That parallelism made training on huge datasets possible, which is what unlocked the scaling that produced today's models.

The cost of that choice shows up later. Attention is quadratic in sequence length, so long contexts get expensive, and because every token attends to every other, distant tokens compete for a finite amount of influence. That competition is the mechanism behind attention degradation, and it is why long conversations get wobbly.

Related terms

Want this working inside your team?

It starts with one conversation about your workflow.

Ask on WhatsApp