Skip to content
Generative AI

Why did transformers replace RNNs for most NLP tasks?

Self-attention lets every token weigh every other token in one parallel step, instead of pushing information down a recurrent chain, so long-range dependencies survive and training parallelises. The cost is attention quadratic in sequence length.

datasciencetrivia.com

Card 1 of 213. Answer: Self-attention lets every token weigh every other token in one parallel step, instead of pushing information down a recurrent chain, so long-range dependencies survive and training parallelises. The cost is attention quadratic in sequence length.

Created by santiviquez

About · To suggest new questions or report an error send me a dm.

All questions