Why Transformers Are Costly on Long Sequences
What a Hugging Face post says about why applying transformer-based models to long sequences is computationally very expensive.
For: Learners who know what a transformer model is.
What transformers have shown
Transformer-based models have shown to be very useful for many NLP tasks.[1]
Why long sequences are expensive
Hence, it's computationally very expensive to apply transformer-based models on long sequences .[1]
What other models try
Longformer, Performer, Reformer, Clustered attention try to remedy this problem by approximating the full attention matrix.[1]
Sources
- Understanding BigBird's Block Sparse Attention (huggingface.co · checked )
More articles
- LearningHow a Model Can Be Wrong Without Any Error: The UMT5 DecoderWhat changed in Transformers, what the UMT5 decoder could then do during training and why the post says nothing crashed.
- LearningWhat an Expert Is in a Mixture-of-Experts ModelWhat a Hugging Face post says a Mixture of Experts model replaces, what an expert is not and what the router does for each token.
- LearningWhy Long Sequences Are Hard to Train OnWhat a Hugging Face post says about why long-sequence training has become essential, which tasks need it and how attention scales.