Big Bird: Transformers for Longer Sequences
Manzil Zaheer, Guru Guruganesh, Avinava Dubey, Joshua Ainslie, Chris, Alberti, Santiago Ontanon, Philip Pham, Anirudh Ravula, Qifan Wang, Li Yang,, Amr Ahmed

TL;DR
BigBird introduces a sparse attention mechanism for transformers that reduces memory complexity from quadratic to linear, enabling processing of much longer sequences while maintaining theoretical properties and improving NLP and genomics task performance.
Contribution
It proposes a novel sparse attention mechanism for transformers that allows handling longer sequences with linear complexity, preserving universality and Turing completeness.
Findings
Handles sequences up to 8x longer than previous models.
Improves performance on question answering and summarization tasks.
Enables new applications in genomics data analysis.
Abstract
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 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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
- 🤗SajjadAyoubi/distil-bigbird-fa-zwnjmodel· 7 dl7 dl
- 🤗flax-community/bigbandmodel· 5 dl5 dl
- 🤗flax-community/pino-bigbird-roberta-basemodel· 12 dl· ♡ 212 dl♡ 2
- 🤗google/bigbird-base-trivia-itcmodel· 444 dl· ♡ 8444 dl♡ 8
- 🤗google/bigbird-pegasus-large-arxivmodel· 7.5k dl· ♡ 647.5k dl♡ 64
- 🤗google/bigbird-pegasus-large-bigpatentmodel· 187 dl· ♡ 41187 dl♡ 41
- 🤗google/bigbird-pegasus-large-pubmedmodel· 672 dl· ♡ 47672 dl♡ 47
- 🤗google/bigbird-roberta-basemodel· 238k dl· ♡ 61238k dl♡ 61
- 🤗google/bigbird-roberta-largemodel· 561 dl· ♡ 29561 dl♡ 29
- 🤗ydshieh/clip-vit-base-patch32model· ♡ 1♡ 1
Videos
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Machine Learning in Bioinformatics
MethodsBigBird
