{"notes":[{"id":"transformers/bigbird","category":"transformers","legacyPath":"transformers/2007-bigbird","legacySlug":"2007-bigbird","legacyPaths":[],"title":"BigBird","subtitle":"BigBird Attention Mechanism","author":"Z. Yuan","paperDate":"2020-07-28","publishedOn":"2024-06-14","paperTitle":"Big Bird: Transformers for Longer Sequences","paperUrl":"https://arxiv.org/abs/2007.14062","bibliography":{"title":"Big Bird: Transformers for Longer Sequences","authors":["Manzil Zaheer","Guru Guruganesh","Avinava Dubey","Joshua Ainslie","Chris Alberti","Santiago Ontanon","Philip Pham","Anirudh Ravula","Qifan Wang","Li Yang","Amr Ahmed"],"url":"https://arxiv.org/abs/2007.14062","pdfUrl":"https://arxiv.org/pdf/2007.14062","codeUrl":null,"preprint":{"id":"2007.14062","submittedOn":"2020-07-28","url":"https://arxiv.org/abs/2007.14062"},"publication":{"venue":"NeurIPS","year":2020,"kind":"conference","url":"https://arxiv.org/abs/2007.14062"},"citation":"@misc{transformersbigbird2020,\n  title = {{Big Bird: Transformers for Longer Sequences}},\n  author = {Manzil Zaheer and Guru Guruganesh and Avinava Dubey and Joshua Ainslie and Chris Alberti and Santiago Ontanon and Philip Pham and Anirudh Ravula and Qifan Wang and Li Yang and Amr Ahmed},\n  year = {2020},\n  eprint = {2007.14062},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2007.14062}\n}\n","citationPath":"/content/papers/citations/transformers/bigbird.ce813f0f87e9.bib"},"thumbnail":{"src":"/content/papers/assets/754a9cb923f6b343d84fb5dd07cf267216fdaf2d7fc8533525701ecf106c6f72.jpg","width":1584,"height":434},"locale":"en","path":"/content/papers/en/transformers/bigbird.cf9d96a854ff.md","headings":[{"id":"defining-the-problem","text":"Defining the Problem","depth":2},{"id":"lack-of-fundamental-theory","text":"Lack of Fundamental Theory","depth":3},{"id":"solving-the-problem","text":"Solving the Problem","depth":2},{"id":"model-architecture","text":"Model Architecture","depth":3},{"id":"architecture-design","text":"Architecture Design","depth":3},{"id":"proof-beforehand","text":"Proof Beforehand","depth":3},{"id":"start-proof","text":"Start Proof","depth":3},{"id":"turing-completeness","text":"Turing Completeness","depth":3},{"id":"limitations-of-sparse-attention","text":"Limitations of Sparse Attention","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"qa-dev","text":"QA-dev","depth":3},{"id":"qa-test-finetune","text":"QA Test finetune","depth":3},{"id":"long-document-summarization-ability","text":"Long Document Summarization Ability","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"transformers/sparse-transformer","relation":"comparison","topic":"Reducing attention cost on long sequences"},{"id":"transformers/longformer","relation":"comparison","topic":"Reducing attention cost on long sequences"}]},{"id":"transformers/sparse-transformer","category":"transformers","legacyPath":"transformers/1904-sparse-transformer","legacySlug":"1904-sparse-transformer","legacyPaths":[],"title":"Sparse Transformer","subtitle":"Sparse Attention Mechanism","author":"Z. Yuan","paperDate":"2019-04-23","publishedOn":"2024-06-09","paperTitle":"Generating Long Sequences with Sparse Transformers","paperUrl":"https://arxiv.org/abs/1904.10509","bibliography":{"title":"Generating Long Sequences with Sparse Transformers","authors":["Rewon Child","Scott Gray","Alec Radford","Ilya Sutskever"],"url":"https://arxiv.org/abs/1904.10509","pdfUrl":"https://arxiv.org/pdf/1904.10509","codeUrl":null,"preprint":{"id":"1904.10509","submittedOn":"2019-04-23","url":"https://arxiv.org/abs/1904.10509"},"publication":null,"citation":"@misc{transformerssparsetransformer2019,\n  title = {{Generating Long Sequences with Sparse Transformers}},\n  author = {Rewon Child and Scott Gray and Alec Radford and Ilya Sutskever},\n  year = {2019},\n  eprint = {1904.10509},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/1904.10509}\n}\n","citationPath":"/content/papers/citations/transformers/sparse-transformer.961330a17a72.bib"},"thumbnail":{"src":"/content/papers/assets/847fd8e03beeb4395ae629700c5daaf1fa75dd302949008b9c248f7d77a8f9bc.jpg","width":1392,"height":694},"locale":"en","path":"/content/papers/en/transformers/sparse-transformer.0a8593e9aca3.md","headings":[{"id":"defining-the-problem","text":"Defining the Problem","depth":2},{"id":"the-initial-layers","text":"The Initial Layers","depth":3},{"id":"layers-19-20","text":"Layers 19-20","depth":3},{"id":"various-layers","text":"Various Layers","depth":3},{"id":"layers-64-128","text":"Layers 64-128","depth":3},{"id":"solving-the-problem","text":"Solving the Problem","depth":2},{"id":"solution-1-fixed-stride","text":"Solution 1: Fixed Stride","depth":3},{"id":"solution-2-fixed-specific-index-tokens","text":"Solution 2: Fixed Specific Index Tokens","depth":3},{"id":"modified-attention-mechanism","text":"Modified Attention Mechanism","depth":3},{"id":"other-optimizations","text":"Other Optimizations","depth":3},{"id":"training-setup","text":"Training Setup","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"cifar-10","text":"CIFAR-10","depth":3},{"id":"enwik8","text":"EnWik8","depth":3},{"id":"imagenet-64x64","text":"ImageNet 64x64","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"transformers/longformer","relation":"comparison","topic":"Reducing attention cost on long sequences"},{"id":"transformers/bigbird","relation":"comparison","topic":"Reducing attention cost on long sequences"}]},{"id":"transformers/longformer","category":"transformers","legacyPath":"transformers/2004-longformer","legacySlug":"2004-longformer","legacyPaths":[],"title":"Longformer","subtitle":"Long Attention Mechanism","author":"Z. Yuan","paperDate":"2020-04-10","publishedOn":"2024-06-13","paperTitle":"Longformer: The Long-Document Transformer","paperUrl":"https://arxiv.org/abs/2004.05150","bibliography":{"title":"Longformer: The Long-Document Transformer","authors":["Iz Beltagy","Matthew E. Peters","Arman Cohan"],"url":"https://arxiv.org/abs/2004.05150","pdfUrl":"https://arxiv.org/pdf/2004.05150","codeUrl":null,"preprint":{"id":"2004.05150","submittedOn":"2020-04-10","url":"https://arxiv.org/abs/2004.05150"},"publication":null,"citation":"@misc{transformerslongformer2020,\n  title = {{Longformer: The Long-Document Transformer}},\n  author = {Iz Beltagy and Matthew E. Peters and Arman Cohan},\n  year = {2020},\n  eprint = {2004.05150},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2004.05150}\n}\n","citationPath":"/content/papers/citations/transformers/longformer.6161015ad149.bib"},"thumbnail":{"src":"/content/papers/assets/220e8ffad580b18d52b08e147bb2f25d6c8de5d7ec8ea111c8d841b0860bc1f5.jpg","width":1584,"height":338},"locale":"en","path":"/content/papers/en/transformers/longformer.5c4d7bd4c148.md","headings":[{"id":"problem-definition","text":"Problem Definition","depth":2},{"id":"solution","text":"Solution","depth":2},{"id":"model-architecture","text":"Model Architecture","depth":3},{"id":"autoregressive-modeling","text":"Autoregressive Modeling","depth":3},{"id":"autoencoding-modeling","text":"Autoencoding Modeling","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"autoregressive-experiment-results","text":"Autoregressive Experiment Results","depth":3},{"id":"autoencoding-experiment-results","text":"Autoencoding Experiment Results","depth":3},{"id":"autoregressive-ablation-experiments","text":"Autoregressive Ablation Experiments","depth":3},{"id":"autoencoding-ablation-experiments","text":"Autoencoding Ablation Experiments","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"transformers/sparse-transformer","relation":"comparison","topic":"Reducing attention cost on long sequences"},{"id":"transformers/bigbird","relation":"comparison","topic":"Reducing attention cost on long sequences"}]}],"text":"The computational complexity of the Transformer's self-attention mechanism is $O(n^2)$.\n\nWhen an algorithm has this kind of complexity, you might expect plenty of room for optimization.\n\nHmm? This introduction again?\n\n## Defining the Problem\n\nTransformer models, such as BERT, have shown outstanding performance in various NLP tasks, primarily due to the parallel computing capability of the self-attention mechanism and modern hardware support. However, the computational and memory requirements brought by this mechanism are quadratic concerning the sequence length, limiting its direct application in tasks requiring longer contexts.\n\nShortly after the **Longformer** was proposed, the Google Brain team introduced BigBird, a Transformer variant designed specifically to handle long sequences.\n\n- [**Longformer: The Long Attention Mechanism**](/blog/papers/transformers/longformer)\n\n### Lack of Fundamental Theory\n\nTheoretical work on full attention, and contemporary work on sparse approximation, already existed. The question here is which sparse structures preserve universal approximation and Turing completeness while using fewer connections.\n\nMotivated by the above, the authors propose the BigBird model, which achieves excellent performance on long-sequence tasks through a sparse attention mechanism while maintaining theoretical expressive power.\n\n\n> [!TIP]\n> \n> Turing completeness refers to a system's capability equivalent to that of a Turing machine, able to simulate any computable task. This means a Turing complete system can execute any algorithm or computer program theoretically with infinite computing potential, given sufficient time and resources.\n\n\n## Solving the Problem\n\n### Model Architecture\n\n![BigBird Architecture](/content/papers/assets/754a9cb923f6b343d84fb5dd07cf267216fdaf2d7fc8533525701ecf106c6f72.jpg)\n\nThe concept of this paper is quite simple. You can almost understand it by looking at this picture.\n\nIn the BigBird architecture, the authors designed three components that ultimately form a sparse structure:\n\n- Diagram (a) is the random attention mechanism that establishes connections between tokens randomly within each layer of the model.\n- Diagram (b) is the Sliding Window Attention, where each token only attends to tokens within a fixed range before and after it.\n- Diagram (c) is the Global Attention, where specific tokens attend to all other tokens, and other tokens attend to these specific tokens.\n- Diagram (d) combines the above three mechanisms to form the BigBird attention mechanism.\n\n### Architecture Design\n\nWith random degree $r$, window width $w$ and global-token count $g$ fixed as $n$ grows, each layer has $O(n(r+w+g))=O(n)$ connections.\n\nThe authors designed two different methods for selecting global tokens, compared in subsequent experiments:\n\n- **BIGBIRD-ITC (Internal Transformer Construction)**\n\n  - **Global Token Selection**: In this design, certain existing tokens are designated as \"global\" tokens, meaning they will attend to all other tokens in the sequence.\n  - **Matrix Representation**: For the selected global token index set $G$, the corresponding adjacency matrix $A$ is adjusted so that all elements of rows and columns for each global token $i$ in $A$ are set to 1 (i.e., $A(i, :) = 1$ and $A(:, i) = 1$), indicating these tokens can interact with all other tokens in the sequence.\n\n- **BIGBIRD-ETC (Extended Transformer Construction)**\n\n  - **Additional Global Tokens**: Unlike ITC, the ETC design introduces additional global tokens (e.g., CLS tokens) specifically designed to attend to all existing tokens.\n  - **Matrix Expansion**: Add both $g$ rows and $g$ columns, producing $B$ of shape $(n+g)\\times(n+g)$. The new global rows and columns are all ones, while the original connections remain in the other block.\n\n### Proof Beforehand\n\nThe following section is the most challenging part of the paper, where the authors prove the theoretical properties of BigBird and explain why the \"random attention mechanism\" is adopted.\n\nAlthough we can directly use the conclusions, since we're here, let's take a brief look.\n\nBefore proving, the authors describe the theoretical framework of the self-attention mechanism:\n\n1. **Generalized Attention Mechanism**\n\n   - The BigBird model uses a generalized attention mechanism that processes the sequence $X = (x_1, \\ldots, x_n)$ within each layer of the Transformer.\n   - The attention mechanism is described through a directed graph $D$, where the node set is $[n] = \\{1, \\ldots, n\\}$, and directed edges represent the set of dot products considered.\n\n2. **Attention Output Vector**\n\n   - For each node $i$ in the graph, the generated output vector $\\text{ATTND}(X)_i$ is calculated from node $i$ and its outer neighbors $N(i)$.\n   - Specifically, $\\text{ATTN}_{D}(X)_i = x_i + \\sum_{h=1}^H \\sigma \\left(Q_h(x_i) K_h(X_{N(i)})^T\\right) \\cdot V_h(X_{N(i)})$.\n   - $Q_h$ and $K_h$ map $\\mathbb{R}^d$ to $\\mathbb{R}^m$; the value function $V_h$ maps $\\mathbb{R}^d$ to $\\mathbb{R}^d$.\n   - $\\sigma$ is a scoring function, such as softmax or hardmax.\n   - $H$ is the number of heads.\n\n3. **Fully Connected Graph and Sparsification**:\n\n   - If $D$ is a fully connected directed graph, it reverts to the quadratic attention mechanism described by Vaswani et al.\n   - The sparsification of graph $D$ is achieved by selecting a certain number of random edges between nodes, reducing computational complexity.\n\n4. **Sparse Random Graphs**:\n\n   - Random graphs are used to approximate full graphs, with spectral properties similar to full graphs, acting as expanders.\n   - Erdős–Rényi graphs motivate the design. BigBird actually selects $r$ random keys per query and uses block sparsity for efficient hardware execution, rather than keeping every possible edge with a length-independent probability.\n\n5. **Locality and Sliding Window**:\n\n   - In most NLP and computational biology contexts, much of the reference information exhibits locality, extracting information from neighboring tokens.\n   - The BigBird model uses a sliding window attention mechanism to address this locality.\n\n6. **Use of Global Tokens**:\n\n   - Global tokens are introduced to simulate cases involving all tokens in the sequence, playing a key role in attention computation, participating in processing the entire sequence.\n\n---\n\nThe above section doesn't introduce new concepts but describes how the original attention mechanism is a \"special case\" of the generalized attention mechanism.\n\nThis \"special case\" is the fully connected directed graph, so adjusting the attention graph to a \"tailored\" directed graph means stepping into the domain of sparse attention mechanisms.\n\nAdditionally, it explains why the authors consider random attention:\n\n- Random links can shorten paths between distant tokens, allowing information to travel across a long sequence.\n\nThe Erdős–Rényi graph motivates that intuition; BigBird actually has each query attend to $r$ random keys alongside local windows and global tokens. The global connections are also central to the universal-approximation proof. None of this establishes that a fixed sparse graph reproduces every full-attention layer numerically for every input.\n\n\n> [!TIP]\n> \n> If you have worked on Graph Convolutional Networks (GCNs) or other graph neural networks, you can compare here. In graph convolution, \"nodes\" refer to tokens here; \"edges\" refer to attention connections; \"adjacency matrix\" refers to the attention graph here.\n> \n> Both can be viewed as message passing on graphs, but attention has not made GCNs obsolete. Fixed graph structure, edge features and different aggregation operators serve distinct purposes; training behavior depends on the specific model.\n\n\n### Start Proof\n\nThe encoder stack of a Transformer is essentially a series of repeated single-layer encoders, each with its own set of parameters.\n\nThis structure allows input data to be processed through multiple stages, with each layer further transforming the data based on the previous layer's output.\n\n- **Parameterization**:\n\n  - **H**: The number of attention heads in each encoder layer.\n  - **m**: The size of each attention head.\n  - **q**: The size of the hidden layer in the output network.\n\n- **Attention Mechanism**:\n\n  - Defined by a directed graph $D$. Unlike traditional attention mechanisms (e.g., Vaswani et al.), this configuration adds a special token at the start of each sequence, denoted as $x_0$. This token can be used for various purposes, such as representing aggregated information of the sequence or handling specific context requirements. The vertex set of graph $D$ includes this special token, i.e., $\\{0\\} \\cup [n] = \\{0, 1, 2, \\ldots, n\\}$.\n\n- **Input and Output Processing**:\n\n  - Despite adding an extra node $x_0$ at the beginning, the Transformer is conceptualized as mapping sequences from $\\mathbb{R}^{n \\times d}$ to $\\mathbb{R}^{n \\times d}$.\n  - In the final output layer, it is assumed that the extra node and its vector are discarded, ensuring the output dimensions match the input.\n  - Positional information aligns with the token axis. Using $X\\in\\mathbb{R}^{n\\times d}$ consistently here gives a matching position matrix $E\\in\\mathbb{R}^{n\\times d}$, avoiding the paper’s mixed transpose convention.\n\n- **Universal Approximation**:\n\n  - The function class $\\text{FCD}$ is defined as the set of continuous functions $f: [0, 1]^{n \\times d} \\to \\mathbb{R}^{n \\times d}$, with continuity defined by a specific $p$-norm topology.\n\n  - The distance metric used to measure the quality of function approximation is the $p$-norm distance $d_p(f_1, f_2) = \\left(\\int \\|f_1(X) - f_2(X)\\|^p \\, dX\\right)^{1/p}$.\n\n\n> [!TIP]\n> \n> $[0,1]^{n\\times d}$ is an $nd$-dimensional space. One point is an entire $n\\times d$ input matrix, not one cell of a table. The function maps that matrix to another of the same shape. Continuity controls output changes under small input changes; it does not require differentiability everywhere.\n> \n\n\n- **Definition: Star Graph Centered at 0 $S$**\n\n  - Here, the star graph $S$ is a specific graph structure where one central node (node 0) is directly connected to all other nodes (nodes 1 to n) in the graph.\n  - This structure is crucial as it allows the central node to directly influence all other nodes, which is an important feature used in the subsequent proof.\n\n- **Theorem: Universal Approximation Capacity of Sparse Attention Mechanisms**\n\n  - Within the defined model class, a graph containing star $S$ (ordinary nodes attend to themselves and the global node, which attends to all ordinary nodes) admits, for every $1<p<\\infty$, $\\epsilon>0$ and target continuous function, some sparse Transformer with $d_p(f,g)\\leq\\epsilon$.\n  - This means that such a Transformer model can approximate any continuous function in the function class $FCD$.\n\n- **Proof Step 1: Approximating $FCD$ with Piecewise Constant Functions**\n\n  First, the function $f$ we need to handle is a continuous function defined on the bounded region $[0,1)^{n\\times d}$. To approximate such a function, we choose to use piecewise constant functions. Specifically, we partition the [0, 1) interval into small grids (with granularity $\\delta$), thus turning the entire region into a discrete point set $G_{\\delta}$. Within each small grid, we assume the function value is constant. This way, we can approximate the original function $f$ with a new piecewise constant function $\\bar{f}$.\n\n- **Proof Step 2: Approximating Piecewise Constant Functions with Modified Transformers**\n\n  This is the most critical step of the proof. Here, we use the self-attention mechanism to produce a context mapping of the input. Each matrix $X$ and its column $x_i$ are mapped into a unique code, which is then used to generate a unique output column. Since we only use a sparse attention mechanism, the challenge lies in ensuring that each query can obtain sufficient information to complete this mapping. The solution is to develop a sparse shift operator that adjusts according to the range of data in the input matrix, ensuring that each column of data forms a complete and unique mapping.\n\n- **Proof Step 3: Approximating Modified Transformers with Original Transformers**\n\n  The final step is to approximate the modified Transformer model with the original Transformer model (using ReLU and softmax functions). This completes an existence argument, not a fixed-depth efficiency or training-convergence guarantee.\n\n### Turing Completeness\n\nIn fact, research by Pérez et al. shows that Transformer models based on the complete attention mechanism are Turing complete, meaning they can simulate the computation process of any Turing machine.\n\nHowever, this result is based on a theoretical assumption that the model can \"process data with arbitrary precision.\"\n\nIn practical applications, this assumption often does not hold, as Transformers are finite-state machines and cannot achieve true Turing completeness.\n\n- **Is Sparse Attention Also Sufficient to Simulate Any Turing Machine?**\n\n  The paper mentions that with appropriate adjustments, Transformers using sparse encoders and decoders can also achieve Turing completeness.\n\n  The Turing-machine simulation constructs a decoder with causal sparse connections. It is a specific encoder–decoder proof construction, not a claim that the bidirectional BigBird encoders in the experiments must decode token by token.\n\n  Moreover, in the method by Pérez et al., each token also serves as a representation of the tape history, with full attention used to move and retrieve the correct symbol on the tape.\n\n  For the implementation of the sparse attention mechanism, besides modifying the addressing scheme pointing to the history, most of the architecture can be directly applied.\n\n  This shows that even under sparse configurations, Transformers have the potential to simulate any computation process, providing a theoretical foundation for understanding and extending Transformer applications in various complex computational tasks.\n\n\n> [!TIP]\n> \n> Turing completeness refers to the computational power of a system. If a system can simulate the computation process of any Turing machine, it is considered Turing complete. A Turing machine, proposed by mathematician Alan Turing, is an abstract machine that uses a simple set of rules to read and write symbols on an infinitely long tape. A Turing complete system can achieve any computable function, meaning it can perform any computational task that any other Turing complete system can execute. This is a crucial standard for evaluating the computational capabilities of systems, such as programming languages and processor architectures.\n\n\n### Limitations of Sparse Attention\n\nThis task requires finding, for each given unit vector $u_j$ among $n$ unit vectors $\\{u_1, ..., u_n\\}$, a corresponding farthest vector $u_j^*$. Here, \"farthest\" refers to the Euclidean distance in the vector space, often translating to minimizing the inner product.\n\nIn a complete attention mechanism, this task is relatively easy to solve because it allows calculating inner products for all vector pairs simultaneously. In other words, the complete self-attention mechanism can evaluate relationships among all vector pairs simultaneously, thus finding the farthest vector for each in $O(1)$ layers.\n\nUnder OVC, for the paper’s model class with the number of heads, head size and output-network width each bounded by $O(d)$, a graph with only $\\tilde O(n)$ edges per layer requires $\\tilde\\Omega(n^{1-o(1)})$ layers for this task. Tildes hide polylogarithmic factors. Full attention’s constant depth still entails quadratically many pairwise operations. This is a conditional lower bound for the specified model class, not arbitrary-width models with arbitrary external computation.\n\nThis indicates that while sparse attention mechanisms can reduce computational resource consumption, solving certain types of problems may require significantly more layers, potentially becoming a limitation in practical applications.\n\n\n> [!TIP]\n> \n> OVC is a widely used hypothesis in fine-grained computational complexity theory, stating that it is impossible to determine whether the minimum inner product of $n$ Boolean vectors is zero in sub-quadratic time.\n\n\n## Discussion\n\nThis section looks at the benefits of handling longer input sequences in NLP tasks. We first examine question answering (QA), then long-document summarization. These experiments help us see whether longer context improves performance on the tasks discussed below.\n\n### QA-dev\n\n![QA-dev Performance](/content/papers/assets/7fde44eb3b2605e25e975bf2785e2b1cf1dd02c0494f5471c0295d5c1b00df6f.jpg)\n\n- **Datasets**: Including HotpotQA, Natural Questions, TriviaQA, and WikiHop.\n- **Metrics**: Using base-sized models, reporting accuracy for WikiHop and F1 scores for HotpotQA, Natural Questions, and TriviaQA.\n\nBigBird performs strongly, but ETC does not win every column. Table 2 gives ITC/ETC scores of 75.7/75.5 for HotpotQA Answer, 79.5/78.7 for TriviaQA, and a tie at 75.9 for WikiHop. ETC leads on several other metrics.\n\n### QA Test finetune\n\n![QA Test finetune Performance](/content/papers/assets/35bdf314b87899722142101c69896eb2edb363c0ee955b357eb939866b879449.jpg)\n\n- **Tasks and Datasets**: Including HotpotQA, Natural Questions, TriviaQA, and WikiHop.\n- **Comparison Benchmark**: Comparing the BIGBIRD-ETC model with the top three entries on the leaderboard excluding BIGBIRD.\n\nIn this experiment, BIGBIRD-ETC set new best results in several columns, notably Natural Questions long answer, TriviaQA and WikiHop. It did **not** lead on Natural Questions short answer or HotpotQA answer and joint F1. BIGBIRD is a single model; the authors note that several leading Natural Questions entries use ensembles, which may help explain its lower short-answer score there.\n\n### Long Document Summarization Ability\n\n![Long Document Summarization](/content/papers/assets/f24fe87ad00e0f57fd2680da8ef33393554c605ac7f966869e5797f3b4cff125.jpg)\n\nThe authors test abstractive summaries of long documents in arXiv, PubMed and BigPatent. Their encoder uses BIGBIRD sparse attention, while decoder self-attention remains full. The base model starts from RoBERTa-derived weights; the large model starts from PEGASUS. In Table 4, large BIGBIRD-PEGASUS exceeds the listed PEGASUS comparison rows on ROUGE-1/2/L for all three datasets, although these comparisons do not isolate sparse attention as the sole cause. ROUGE measures overlap with reference summaries, not factual accuracy itself.\n\nThe authors suggest that a longer input lets the model gather information spread throughout a document. The table supports the usefulness of this setup on these datasets, but does not by itself measure how much of the gain comes from input length rather than the other model and training differences. That is the practical promise of BIGBIRD for tasks that need to read further into a document.\n\n\n> [!TIP]\n> \n> Pegasus (Pre-training with Extracted Gap-sentences for Abstractive Summarization Sequence-to-sequence models) is a pre-training method specifically designed for text summarization tasks, developed by Google Research. Pegasus's core innovation lies in its pre-training strategy tailored to the needs of summarization tasks.\n> \n> PEGASUS uses Gap Sentence Generation (GSG): remove whole sentences and generate them from the remaining document. It compares random and importance-based sentence selection, among other strategies; describing it only as random masking misses the salience-based setup.\n\n\n## Conclusion\n\nCompared to past models like Sparse Transformer and Longformer, we believe the main contribution of this paper is providing a detailed mathematical theory proof for sparse attention mechanisms.\n\nTo approximate the reach of full attention in a practical sparse design, the authors combine random links, sliding windows and a few global tokens. The universal-approximation theorem gives the defined global star structure as a sufficient condition.\n\nThe theory establishes existence and expressive capacity; experiments demonstrate practical benefits on the evaluated tasks. Neither guarantees that a fixed-depth model is easy to train or superior on every long-sequence problem.\n\nRegarding the detailed proof methods, the appendix of the paper contains about 20 pages of material, which can be overwhelming. Interested readers are welcome to review the original paper for more information.\n","imageSizes":{"/content/papers/assets/754a9cb923f6b343d84fb5dd07cf267216fdaf2d7fc8533525701ecf106c6f72.jpg":{"width":1584,"height":434},"/content/papers/assets/7fde44eb3b2605e25e975bf2785e2b1cf1dd02c0494f5471c0295d5c1b00df6f.jpg":{"width":1512,"height":376},"/content/papers/assets/35bdf314b87899722142101c69896eb2edb363c0ee955b357eb939866b879449.jpg":{"width":1224,"height":472},"/content/papers/assets/f24fe87ad00e0f57fd2680da8ef33393554c605ac7f966869e5797f3b4cff125.jpg":{"width":1224,"height":668}}}
