Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Big Bird: Transformers for Longer Sequences

About

Transformers-based models, such as BERT, have been one of the most successful deep learning models for NLP. Unfortunately, one of their core limitations is the quadratic dependency (mainly in terms of memory) on the sequence length due to their full attention mechanism. To remedy this, we propose, BigBird, a sparse attention mechanism that reduces this quadratic dependency to linear. We show that BigBird is a universal approximator of sequence functions and is Turing complete, thereby preserving these properties of the quadratic, full attention model. Along the way, our theoretical analysis reveals some of the benefits of having $O(1)$ global tokens (such as CLS), that attend to the entire sequence as part of the sparse attention mechanism. The proposed sparse attention can handle sequences of length up to 8x of what was previously possible using similar hardware. As a consequence of the capability to handle longer context, BigBird drastically improves performance on various NLP tasks such as question answering and summarization. We also propose novel applications to genomics data.

Manzil Zaheer, Guru Guruganesh, Avinava Dubey, Joshua Ainslie, Chris Alberti, Santiago Ontanon, Philip Pham, Anirudh Ravula, Qifan Wang, Li Yang, Amr Ahmed• 2020

Related benchmarks

TaskDatasetResultRank
Image ClassificationCIFAR-10--
564
Natural Language UnderstandingGLUE (dev)
SST-2 (Acc)94.6
529
SummarizationXSum (test)
ROUGE-224.05
276
Language ModelingWikiText-103
PPL19.8
216
Language ModelingPG-19
Perplexity13.9
206
Long-range sequence modelingLong Range Arena (LRA)
Text Accuracy64.02
177
Long-range sequence modelingLong Range Arena (LRA) (test)
Accuracy (Avg)55
163
Question AnsweringSQuAD
F187.9
162
SummarizationarXiv (test)
ROUGE-146.63
161
SummarizationPubMed (test)
ROUGE-146.32
114
Showing 10 of 128 rows
...

Other info

Code

Follow for update