diff --git "a/parse/train/XPZIaotutsD/XPZIaotutsD_content_list.json" "b/parse/train/XPZIaotutsD/XPZIaotutsD_content_list.json" new file mode 100644--- /dev/null +++ "b/parse/train/XPZIaotutsD/XPZIaotutsD_content_list.json" @@ -0,0 +1,2291 @@ +[ + { + "type": "text", + "text": "DEBERTA: DECODING-ENHANCED BERT WITH DISENTANGLED ATTENTION ", + "text_level": 1, + "bbox": [ + 174, + 98, + 825, + 146 + ], + "page_idx": 0 + }, + { + "type": "text", + "text": "Pengcheng $\\mathbf { H e } ^ { 1 }$ , Xiaodong $\\mathbf { L i u ^ { 2 } }$ , Jianfeng $\\mathbf { G a o ^ { 2 } }$ , Weizhu Chen1 1 Microsoft Dynamics 365 AI 2 Microsoft Research {penhe,xiaodl,jfgao,wzchen}@microsoft.com ", + "bbox": [ + 183, + 169, + 617, + 212 + ], + "page_idx": 0 + }, + { + "type": "text", + "text": "ABSTRACT ", + "text_level": 1, + "bbox": [ + 454, + 250, + 544, + 265 + ], + "page_idx": 0 + }, + { + "type": "text", + "text": "Recent progress in pre-trained neural language models has significantly improved the performance of many natural language processing (NLP) tasks. In this paper we propose a new model architecture DeBERTa (Decoding-enhanced BERT with disentangled attention) that improves the BERT and RoBERTa models using two novel techniques. The first is the disentangled attention mechanism, where each word is represented using two vectors that encode its content and position, respectively, and the attention weights among words are computed using disentangled matrices on their contents and relative positions, respectively. Second, an enhanced mask decoder is used to incorporate absolute positions in the decoding layer to predict the masked tokens in model pre-training. In addition, a new virtual adversarial training method is used for fine-tuning to improve models’ generalization. We show that these techniques significantly improve the efficiency of model pre-training and the performance of both natural language understand (NLU) and natural langauge generation (NLG) downstream tasks. Compared to RoBERTa-Large, a DeBERTa model trained on half of the training data performs consistently better on a wide range of NLP tasks, achieving improvements on MNLI by $+ 0 . 9 \\%$ $9 0 . 2 \\%$ vs. $9 1 . 1 \\%$ , on SQuAD $\\mathrm { v } 2 . 0$ by $+ 2 . 3 \\%$ $8 8 . 4 \\%$ vs. $9 0 . 7 \\% )$ and RACE by $+ 3 . 6 \\%$ ( $8 3 . 2 \\%$ vs. $8 6 . 8 \\%$ ). Notably, we scale up DeBERTa by training a larger version that consists of 48 Transform layers with 1.5 billion parameters. The significant performance boost makes the single DeBERTa model surpass the human performance on the SuperGLUE benchmark (Wang et al., 2019a) for the first time in terms of macro-average score (89.9 versus 89.8), and the ensemble DeBERTa model sits atop the SuperGLUE leaderboard as of January 6, 2021, outperforming the human baseline by a decent margin (90.3 versus 89.8). The pre-trained DeBERTa models and the source code were released at: https://github.com/microsoft/DeBERTa1. ", + "bbox": [ + 232, + 285, + 766, + 643 + ], + "page_idx": 0 + }, + { + "type": "text", + "text": "1 INTRODUCTION ", + "text_level": 1, + "bbox": [ + 176, + 679, + 336, + 694 + ], + "page_idx": 0 + }, + { + "type": "text", + "text": "The Transformer has become the most effective neural network architecture for neural language modeling. Unlike recurrent neural networks (RNNs) that process text in sequence, Transformers apply self-attention to compute in parallel every word from the input text an attention weight that gauges the influence each word has on another, thus allowing for much more parallelization than RNNs for large-scale model training (Vaswani et al., 2017). Since 2018, we have seen the rise of a set of large-scale Transformer-based Pre-trained Language Models (PLMs), such as GPT (Radford et al., 2019; Brown et al., 2020), BERT (Devlin et al., 2019), RoBERTa (Liu et al., 2019c), XLNet (Yang et al., 2019), UniLM (Dong et al., 2019), ELECTRA (Clark et al., 2020), T5 (Raffel et al., 2020), ALUM (Liu et al., 2020), StructBERT (Wang et al., 2019c) and ERINE (Sun et al., 2019) . These PLMs have been fine-tuned using task-specific labels and created new state of the art in many downstream natural language processing (NLP) tasks (Liu et al., 2019b; Minaee et al., 2020; Jiang et al., 2020; He et al., 2019a;b; Shen et al., 2020). ", + "bbox": [ + 174, + 713, + 825, + 878 + ], + "page_idx": 0 + }, + { + "type": "text", + "text": "In this paper, we propose a new Transformer-based neural language model DeBERTa (Decodingenhanced BERT with disentangled attention), which improves previous state-of-the-art PLMs using two novel techniques: a disentangled attention mechanism, and an enhanced mask decoder. ", + "bbox": [ + 174, + 103, + 823, + 146 + ], + "page_idx": 1 + }, + { + "type": "text", + "text": "Disentangled attention. Unlike BERT where each word in the input layer is represented using a vector which is the sum of its word (content) embedding and position embedding, each word in DeBERTa is represented using two vectors that encode its content and position, respectively, and the attention weights among words are computed using disentangled matrices based on their contents and relative positions, respectively. This is motivated by the observation that the attention weight of a word pair depends on not only their contents but their relative positions. For example, the dependency between the words “deep” and “learning” is much stronger when they occur next to each other than when they occur in different sentences. ", + "bbox": [ + 174, + 165, + 825, + 276 + ], + "page_idx": 1 + }, + { + "type": "text", + "text": "Enhanced mask decoder. Like BERT, DeBERTa is pre-trained using masked language modeling (MLM). MLM is a fill-in-the-blank task, where a model is taught to use the words surrounding a mask token to predict what the masked word should be. DeBERTa uses the content and position information of the context words for MLM. The disentangled attention mechanism already considers the contents and relative positions of the context words, but not the absolute positions of these words, which in many cases are crucial for the prediction. Consider the sentence “a new store opened beside the new mall” with the italicized words “store” and “mall” masked for prediction. Although the local contexts of the two words are similar, they play different syntactic roles in the sentence. (Here, the subject of the sentence is “store” not “mall,” for example.) These syntactical nuances depend, to a large degree, upon the words’ absolute positions in the sentence, and so it is important to account for a word’s absolute position in the language modeling process. DeBERTa incorporates absolute word position embeddings right before the softmax layer where the model decodes the masked words based on the aggregated contextual embeddings of word contents and positions. ", + "bbox": [ + 174, + 295, + 825, + 476 + ], + "page_idx": 1 + }, + { + "type": "text", + "text": "In addition, we propose a new virtual adversarial training method for fine-tuning PLMs to downstream NLP tasks. The method is effective in improving models’ generalization. ", + "bbox": [ + 176, + 483, + 820, + 512 + ], + "page_idx": 1 + }, + { + "type": "text", + "text": "We show through a comprehensive empirical study that these techniques substantially improve the efficiency of pre-training and the performance of downstream tasks. In the NLU tasks, compared to RoBERTa-Large, a DeBERTa model trained on half the training data performs consistently better on a wide range of NLP tasks, achieving improvements on MNLI by $+ 0 . 9 \\%$ $9 0 . 2 \\%$ vs. $9 1 . 1 \\%$ ), on SQuAD v2.0 by $+ 2 . 3 \\% ( 8 8 . 4 \\%$ vs. $9 0 . 7 \\%$ ), and RACE by $+ 3 . 6 \\%$ ( $8 3 . 2 \\%$ vs. $8 6 . 8 \\%$ ). In the NLG tasks, DeBERTa reduces the perplexity from 21.6 to 19.5 on the Wikitext-103 dataset. We further scale up DeBERTa by pre-training a larger model that consists of 48 Transformer layers with 1.5 billion parameters. The single 1.5B-parameter DeBERTa model substantially outperforms T5 with 11 billion parameters on the SuperGLUE benchmark (Wang et al., 2019a) by $0 . 6 \\% ( 8 9 . 3 \\%$ vs. $8 9 . 9 \\%$ ), and surpasses the human baseline (89.9 vs. 89.8) for the first time. The ensemble DeBERTa model sits atop the SuperGLUE leaderboard as of January 6, 2021, outperforming the human baseline by a decent margin (90.3 versus 89.8). ", + "bbox": [ + 174, + 518, + 825, + 685 + ], + "page_idx": 1 + }, + { + "type": "text", + "text": "2 BACKGROUND ", + "text_level": 1, + "bbox": [ + 176, + 709, + 326, + 726 + ], + "page_idx": 1 + }, + { + "type": "text", + "text": "2.1 TRANSFORMER ", + "text_level": 1, + "bbox": [ + 176, + 742, + 321, + 757 + ], + "page_idx": 1 + }, + { + "type": "text", + "text": "A Transformer-based language model is composed of stacked Transformer blocks (Vaswani et al., 2017). Each block contains a multi-head self-attention layer followed by a fully connected positional feed-forward network. The standard self-attention mechanism lacks a natural way to encode word position information. Thus, existing approaches add a positional bias to each input word embedding so that each input word is represented by a vector whose value depends on its content and position. The positional bias can be implemented using absolute position embedding (Vaswani et al., 2017; Radford et al., 2019; Devlin et al., 2019) or relative position embedding (Huang et al., 2018; Yang et al., 2019). It has been shown that relative position representations are more effective for natural language understanding and generation tasks (Dai et al., 2019; Shaw et al., 2018). The proposed disentangled attention mechanism differs from all existing approaches in that we represent each input word using two separate vectors that encode a word’s content and position, respectively, and attention weights among words are computed using disentangled matrices on their contents and relative positions, respectively. ", + "bbox": [ + 174, + 770, + 825, + 924 + ], + "page_idx": 1 + }, + { + "type": "text", + "text": "", + "bbox": [ + 171, + 103, + 825, + 132 + ], + "page_idx": 2 + }, + { + "type": "text", + "text": "2.2 MASKED LANGUAGE MODEL ", + "text_level": 1, + "bbox": [ + 176, + 147, + 418, + 162 + ], + "page_idx": 2 + }, + { + "type": "text", + "text": "Large-scale Transformer-based PLMs are typically pre-trained on large amounts of text to learn contextual word representations using a self-supervision objective, known as Masked Language Model (MLM) (Devlin et al., 2019). Specifically, given a sequence $X \\mathrm { ~ = ~ } \\{ x _ { i } \\}$ , we corrupt it into $\\tilde { X }$ by masking $15 \\%$ of its tokens at random and then train a language model parameterized by $\\theta$ to reconstruct $\\boldsymbol { X }$ by predicting the masked tokens $\\tilde { x }$ conditioned on $\\tilde { X }$ : ", + "bbox": [ + 173, + 172, + 825, + 248 + ], + "page_idx": 2 + }, + { + "type": "equation", + "img_path": "images/c75783567dea8d28c4341b4d75a15451e33b5cc71af1d4ae92db7c13675aba4d.jpg", + "text": "$$\n\\operatorname* { m a x } _ { \\theta } \\log p _ { \\theta } ( X | \\tilde { X } ) = \\operatorname* { m a x } _ { \\theta } \\sum _ { i \\in \\mathcal { C } } \\log p _ { \\theta } \\big ( \\tilde { x } _ { i } = x _ { i } | \\tilde { X } \\big )\n$$", + "text_format": "latex", + "bbox": [ + 331, + 250, + 665, + 282 + ], + "page_idx": 2 + }, + { + "type": "text", + "text": "where $\\mathcal { C }$ is the index set of the masked tokens in the sequence. The authors of BERT propose to keep $10 \\%$ of the masked tokens unchanged, another $10 \\%$ replaced with randomly picked tokens and the rest replaced with the [MASK] token. ", + "bbox": [ + 174, + 284, + 825, + 327 + ], + "page_idx": 2 + }, + { + "type": "text", + "text": "3 THE DEBERTA ARCHITECTURE ", + "text_level": 1, + "bbox": [ + 176, + 344, + 473, + 361 + ], + "page_idx": 2 + }, + { + "type": "text", + "text": "3.1 DISENTANGLED ATTENTION: A TWO-VECTOR APPROACH TO CONTENT AND POSITIONEMBEDDING", + "bbox": [ + 173, + 375, + 821, + 404 + ], + "page_idx": 2 + }, + { + "type": "text", + "text": "For a token at position $i$ in a sequence, we represent it using two vectors, $\\left\\{ H _ { i } \\right\\}$ and $\\{ P _ { i \\mid j } \\}$ , which represent its content and relative position with the token at position $j$ , respectively. The calculation of the cross attention score between tokens $i$ and $j$ can be decomposed into four components as ", + "bbox": [ + 174, + 415, + 825, + 458 + ], + "page_idx": 2 + }, + { + "type": "equation", + "img_path": "images/dd2f5d25084710d650cd272c64c7c6df5f14709f93f04842d9c63eef20986390.jpg", + "text": "$$\n\\begin{array} { r l } & { A _ { i , j } = \\{ H _ { i } , P _ { i | j } \\} \\times \\{ H _ { j } , P _ { j | i } \\} ^ { \\intercal } } \\\\ & { \\qquad = H _ { i } H _ { j } ^ { \\intercal } + H _ { i } P _ { j | i } ^ { \\intercal } + P _ { i | j } H _ { j } ^ { \\intercal } + P _ { i | j } P _ { j | i } ^ { \\intercal } } \\end{array}\n$$", + "text_format": "latex", + "bbox": [ + 338, + 459, + 658, + 501 + ], + "page_idx": 2 + }, + { + "type": "text", + "text": "That is, the attention weight of a word pair can be computed as a sum of four attention scores using disentangled matrices on their contents and positions as content-to-content, content-to-position, position-to-content, and position-to-position 2. ", + "bbox": [ + 176, + 501, + 820, + 542 + ], + "page_idx": 2 + }, + { + "type": "text", + "text": "Existing approaches to relative position encoding use a separate embedding matrix to compute the relative position bias in computing attention weights (Shaw et al., 2018; Huang et al., 2018). This is equivalent to computing the attention weights using only the content-to-content and content-toposition terms in equation 2. We argue that the position-to-content term is also important since the attention weight of a word pair depends not only on their contents but on their relative positions, which can only be fully modeled using both the content-to-position and position-to-content terms. Since we use relative position embedding, the position-to-position term does not provide much additional information and is removed from equation 2 in our implementation. ", + "bbox": [ + 173, + 549, + 826, + 662 + ], + "page_idx": 2 + }, + { + "type": "text", + "text": "Taking single-head attention as an example, the standard self-attention operation (Vaswani et al., 2017) can be formulated as: ", + "bbox": [ + 176, + 667, + 823, + 695 + ], + "page_idx": 2 + }, + { + "type": "equation", + "img_path": "images/2c218bb3bf3bd90c6d025221c1aa2ebcfcea7e30ca352257bdfd26535ac9e3c1.jpg", + "text": "$$\n\\begin{array} { c } { { Q = H W _ { q } , K = H W _ { k } , V = H W _ { v } , A = \\frac { Q K ^ { \\intercal } } { \\sqrt { d } } } } \\\\ { { H _ { o } = \\mathrm { s o f t m a x } ( A ) V } } \\end{array}\n$$", + "text_format": "latex", + "bbox": [ + 325, + 696, + 673, + 748 + ], + "page_idx": 2 + }, + { + "type": "text", + "text": "where ${ \\cal H } \\in { \\cal R } ^ { N \\times d }$ represents the input hidden vectors, $H _ { o } \\in R ^ { N \\times d }$ the output of self-attention, $W _ { q } , W _ { k } , W _ { v } \\in R ^ { d \\times \\hat { d } }$ the projection matrices, $\\pmb { A } \\in R ^ { N \\times N }$ the attention matrix, $N$ the length of the input sequence, and $d$ the dimension of hidden states. ", + "bbox": [ + 174, + 752, + 823, + 795 + ], + "page_idx": 2 + }, + { + "type": "text", + "text": "Denote $k$ as the maximum relative distance, $\\delta ( i , j ) \\in [ 0 , 2 k )$ as the relative distance from token $i$ to token $j$ , which is defined as: ", + "bbox": [ + 171, + 801, + 823, + 829 + ], + "page_idx": 2 + }, + { + "type": "equation", + "img_path": "images/11153877a602b115449e9fc549ce130ddc2b3ec3e12c985141a952a72277c6ca.jpg", + "text": "$$\n\\delta ( i , j ) = \\left\\{ \\begin{array} { r l l } { { 0 } } & { { \\mathrm { f o r } } } & { { i - j \\leqslant - k } } \\\\ { { 2 k - 1 } } & { { \\mathrm { f o r } } } & { { i - j \\geqslant k } } \\\\ { { i - j + k } } & { { \\mathrm { o t h e r s . } } } & { { } } \\end{array} \\right.\n$$", + "text_format": "latex", + "bbox": [ + 341, + 832, + 647, + 876 + ], + "page_idx": 2 + }, + { + "type": "text", + "text": "We can represent the disentangled self-attention with relative position bias as equation 4, where $Q _ { c } , K _ { c }$ and $V _ { c }$ are the projected content vectors generated using projection matrices $W _ { q , c } , W _ { k , c } , W _ { v , c } \\in R ^ { d \\times d }$ respectively, $P \\in { \\cal R } ^ { 2 k \\times d }$ represents the relative position embedding vectors shared across all layers (i.e., staying fixed during forward propagation), and $Q _ { r }$ and $K _ { r }$ are projected relative position vectors generated using projection matrices $W _ { q , r } , W _ { k , r } \\in R ^ { d \\times d }$ , respectively. ", + "bbox": [ + 173, + 103, + 826, + 188 + ], + "page_idx": 3 + }, + { + "type": "equation", + "img_path": "images/1fe700ac832ddde91c4872b71b79ace00ff441fe0e86d9c781a70dbb14e0f374.jpg", + "text": "$$\n\\begin{array} { l } { { Q _ { c } = H W _ { q , c } , K _ { c } = H W _ { k , c } , V _ { c } = H W _ { v , c } , Q _ { r } = P W _ { q , r } , K _ { r } = P W _ { k , r } } } \\\\ { { \\tilde { A } _ { i , j } = \\underbrace { Q _ { i } ^ { c } K _ { j } ^ { c \\top } } _ { \\mathrm { ( a ) c o n t e n t - t o - c o n t e n t } } + \\underbrace { Q _ { i } ^ { c } K _ { \\delta ( i , j ) } ^ { r } } _ { \\mathrm { ( b ) c o n t e n t - t o - p o s i i t i o n } } + \\underbrace { K _ { j } ^ { c } Q _ { \\delta ( j , i ) } ^ { r } } _ { \\mathrm { ( c ) p o s i i t i o n - t o r t e n t } } } } \\\\ { { \\tilde { H } _ { o } = \\mathrm { s o f t m a x } ( \\frac { \\tilde { A } } { \\sqrt { 3 d } } ) V _ { c } } } \\end{array}\n$$", + "text_format": "latex", + "bbox": [ + 238, + 207, + 758, + 308 + ], + "page_idx": 3 + }, + { + "type": "text", + "text": "$\\tilde { A } _ { i , j }$ is the element of attention matrix $\\tilde { A }$ , representing the attention score from token $i$ to token $j$ . $Q _ { i } ^ { c }$ is the $i$ -th row of $Q _ { c } . \\ K _ { j } ^ { c }$ is the $j$ -th row of $K _ { c }$ . $K _ { \\delta ( i , j ) } ^ { r }$ is the $\\delta ( i , j )$ -th row of $K _ { r }$ with regarding to relative distance $\\delta ( i , j )$ . $Q _ { \\delta ( j , i ) } ^ { r }$ is the $\\delta ( j , i )$ -th row of $Q _ { r }$ with regarding to relative distance $\\delta ( j , i )$ . Note that we use $\\delta ( j , i )$ rather than $\\delta ( i , j )$ here. This is because for a given position $i$ , position-to-content computes the attention weight of the key content at $j$ with respect to the query position at $i$ , thus the relative distance is $\\delta ( j , i )$ . The position-to-content term is calculated as $K _ { j } ^ { c } Q _ { \\delta ( j , i ) } ^ { r } { } ^ { \\intercal }$ . The content-to-position term is calculated in a similar way. ", + "bbox": [ + 173, + 311, + 825, + 419 + ], + "page_idx": 3 + }, + { + "type": "text", + "text": "Finally, we apply a scaling factor of $\\frac { 1 } { \\sqrt { 3 d } }$ on $\\tilde { A }$ . The factor is important for stabilizing model training (Vaswani et al., 2017), especially for large-scale PLMs. ", + "bbox": [ + 174, + 428, + 820, + 462 + ], + "page_idx": 3 + }, + { + "type": "text", + "text": "Algorithm 1 Disentangled Attention ", + "text_level": 1, + "bbox": [ + 174, + 477, + 415, + 491 + ], + "page_idx": 3 + }, + { + "type": "text", + "text": "Input: Hidden state $\\pmb { H }$ , relative distance embedding $_ { P }$ , relative distance matrix $\\delta$ . Content projec \ntion matrix $W _ { k , c }$ , $W _ { q , c }$ , $W _ { v , c }$ , position projection matrix $W _ { k , r }$ , $W _ { q , r }$ . \n1: $K _ { c } = H W _ { k , c }$ , $Q _ { c } = H W _ { q , c }$ , $V _ { c } = H W _ { v , c }$ , $K _ { r } = P W _ { k , r }$ , $Q _ { r } \\overset { = } { = } P W _ { q , r }$ \n2: $A _ { c c } = Q _ { c } K _ { c } ^ { \\intercal }$ \n3: for $i = 0 , . . . , N - 1$ do \n4: $\\tilde { A } _ { c p } [ i , : ] = Q _ { c } [ i , : ] { \\cal K } _ { r } ^ { \\intercal }$ \n5: end for \n6: for $i = 0 , . . . , N - 1$ do \n7: for $j = 0 , . . . , N - 1$ do \n8: $A _ { c p } [ i , j ] = \\tilde { A } _ { c p } [ i , \\delta [ i , j ] ]$ \n9: end for \n10: end for \n11: for $j = 0 , . . . , N - 1$ do \n12: $\\tilde { A } _ { p c } [ : , j ] = K _ { c } [ j , : ] Q _ { r } ^ { \\intercal }$ \n13: end for \n14: for $j = 0 , . . . , N - 1$ do \n15: for $i = 0 , . . . , N - 1$ do \n16: $A _ { p c } [ i , j ] = \\tilde { A } _ { p c } [ \\delta [ j , i ] , j ]$ \n17: end for \n18: end for \n19: $\\tilde { A } = A _ { c c } + A _ { c p } + A _ { p c }$ \n20: $H _ { o } = \\operatorname { s o f t m a x } ( \\frac { \\tilde { A } } { \\sqrt { 3 d } } ) V _ { c }$ \nOutput: Ho ", + "bbox": [ + 174, + 494, + 826, + 832 + ], + "page_idx": 3 + }, + { + "type": "text", + "text": "3.1.1 EFFICIENT IMPLEMENTATION ", + "text_level": 1, + "bbox": [ + 176, + 857, + 431, + 871 + ], + "page_idx": 3 + }, + { + "type": "text", + "text": "For an input sequence of length $N$ , it requires a space complexity of $O ( N ^ { 2 } d )$ (Shaw et al., 2018; Huang et al., 2018; Dai et al., 2019) to store the relative position embedding for each token. However, taking content-to-position as an example, we note that since $\\delta ( i , j ) \\in [ 0 , 2 k )$ and the embeddings of all possible relative positions are always a subset of $K _ { r } \\in R ^ { 2 k \\times d }$ , then we can reuse $K _ { r }$ in the attention calculation for all the queries. ", + "bbox": [ + 174, + 881, + 825, + 924 + ], + "page_idx": 3 + }, + { + "type": "text", + "text": "", + "bbox": [ + 173, + 102, + 823, + 132 + ], + "page_idx": 4 + }, + { + "type": "text", + "text": "In our experiments, we set the maximum relative distance $k$ to 512 for pre-training. The disentangled attention weights can be computed efficiently using Algorithm 1. Let $\\delta$ be the relative position matrix according to equation 3, i.e., $\\delta [ i , j ] = \\delta ( \\overset { . } { i } , j )$ . Instead of allocating a different relative position embedding matrix for each query, we multiply each query vector $Q _ { c } [ i , : ]$ by ${ K } _ { r } ^ { \\tau } \\in { R } ^ { d \\times 2 k }$ , as in line $3 - 5$ . Then, we extract the attention weight using the relative position matrix $\\delta$ as the index, as in line $6 - 1 0$ . To compute the position-to-content attention score, we calculate $\\tilde { A } _ { p c } [ : , j ]$ , i.e., the column vector of the attention matrix $\\tilde { A } _ { p c }$ , by multiplying each key vector $K _ { c } [ j , : ]$ by $Q _ { r } ^ { \\intercal }$ , as in line $1 1 - 1 3$ . Finally, we extract the corresponding attention score via the relative position matrix $\\pmb { \\delta }$ as the index, as in line $1 4 - 1 8$ . In this way, we do not need to allocate memory to store a relative position embedding for each query and thus reduce the space complexity to $O ( k d )$ (for storing $K _ { r }$ and $Q _ { r }$ ). ", + "bbox": [ + 174, + 138, + 825, + 296 + ], + "page_idx": 4 + }, + { + "type": "text", + "text": "3.2 ENHANCED MASK DECODER ACCOUNTS FOR ABSOLUTE WORD POSITIONS ", + "text_level": 1, + "bbox": [ + 176, + 323, + 740, + 338 + ], + "page_idx": 4 + }, + { + "type": "text", + "text": "DeBERTa is pretrained using MLM, where a model is trained to use the words surrounding a mask token to predict what the masked word should be. DeBERTa uses the content and position information of the context words for MLM. The disentangled attention mechanism already considers the contents and relative positions of the context words, but not the absolute positions of these words, which in many cases are crucial for the prediction. ", + "bbox": [ + 174, + 353, + 825, + 422 + ], + "page_idx": 4 + }, + { + "type": "text", + "text": "Given a sentence “a new store opened beside the new mall” with the words “store” and “mall” masked for prediction. Using only the local context (e.g., relative positions and surrounding words) is insufficient for the model to distinguish store and mall in this sentence, since both follow the word new with the same relative positions. To address this limitation, the model needs to take into account absolute positions, as complement information to the relative positions. For example, the subject of the sentence is “store” not “mall”. These syntactical nuances depend, to a large degree, upon the words’ absolute positions in the sentence. ", + "bbox": [ + 174, + 430, + 825, + 527 + ], + "page_idx": 4 + }, + { + "type": "text", + "text": "There are two methods of incorporating absolute positions. The BERT model incorporates absolute positions in the input layer. In DeBERTa, we incorporate them right after all the Transformer layers but before the softmax layer for masked token prediction, as shown in Figure 2. In this way, DeBERTa captures the relative positions in all the Transformer layers and only uses absolute positions as complementary information when decoding the masked words. Thus, we call DeBERTa’s decoding component an Enhanced Mask Decoder (EMD). In the empirical study, we compare these two methods of incorporating absolute positions and observe that EMD works much better. We conjecture that the early incorporation of absolute positions used by BERT might undesirably hamper the model from learning sufficient information of relative positions. In addition, EMD also enables us to introduce other useful information, in addition to positions, for pre-training. We leave it to future work. ", + "bbox": [ + 174, + 535, + 825, + 688 + ], + "page_idx": 4 + }, + { + "type": "text", + "text": "4 SCALE INVARIANT FINE-TUNING ", + "text_level": 1, + "bbox": [ + 176, + 718, + 482, + 734 + ], + "page_idx": 4 + }, + { + "type": "text", + "text": "This section presents a new virtual adversarial training algorithm, Scale-invariant-Fine-Tuning (SiFT), a variant to the algorithm described in Miyato et al. (2018); Jiang et al. (2020), for fine-tuning. ", + "bbox": [ + 173, + 756, + 825, + 784 + ], + "page_idx": 4 + }, + { + "type": "text", + "text": "Virtual adversarial training is a regularization method for improving models’ generalization. It does so by improving a model’s robustness to adversarial examples, which are created by making small perturbations to the input. The model is regularized so that when given a task-specific example, the model produces the same output distribution as it produces on an adversarial perturbation of that example. ", + "bbox": [ + 174, + 791, + 825, + 861 + ], + "page_idx": 4 + }, + { + "type": "text", + "text": "For NLP tasks, the perturbation is applied to the word embedding instead of the original word sequence. However, the value ranges (norms) of the embedding vectors vary among different words and models. The variance gets larger for bigger models with billions of parameters, leading to some instability of adversarial training. ", + "bbox": [ + 174, + 867, + 823, + 924 + ], + "page_idx": 4 + }, + { + "type": "text", + "text": "Inspired by layer normalization (Ba et al., 2016), we propose the SiFT algorithm that improves the training stability by applying the perturbations to the normalized word embeddings. Specifically, when fine-tuning DeBERTa to a downstream NLP task in our experiments, SiFT first normalizes the word embedding vectors into stochastic vectors, and then applies the perturbation to the normalized embedding vectors. We find that the normalization substantially improves the performance of the fine-tuned models. The improvement is more prominent for larger DeBERTa models. Note that we only apply SiFT to $\\mathrm { D e B E R T a } _ { 1 . 5 B }$ on SuperGLUE tasks in our experiments and we will provide a more comprehensive study of SiFT in our future work. ", + "bbox": [ + 173, + 103, + 825, + 215 + ], + "page_idx": 5 + }, + { + "type": "text", + "text": "5 EXPERIMENT ", + "text_level": 1, + "bbox": [ + 176, + 237, + 316, + 252 + ], + "page_idx": 5 + }, + { + "type": "text", + "text": "This section reports DeBERTa results on various NLU tasks. ", + "bbox": [ + 174, + 268, + 570, + 284 + ], + "page_idx": 5 + }, + { + "type": "text", + "text": "5.1 MAIN RESULTS ON NLU TASKS ", + "text_level": 1, + "bbox": [ + 176, + 303, + 436, + 316 + ], + "page_idx": 5 + }, + { + "type": "text", + "text": "Following previous studies of PLMs, we report results using large and base models. ", + "bbox": [ + 176, + 329, + 720, + 344 + ], + "page_idx": 5 + }, + { + "type": "table", + "img_path": "images/162fbf5d04563eb804ba5992027194b06424801edc8ce19891d8cd8f4a7debb3.jpg", + "table_caption": [ + "5.1.1 PERFORMANCE ON LARGE MODELS ", + "Table 1: Comparison results on the GLUE development set. " + ], + "table_footnote": [], + "table_body": "
ModelCoLAMcc|QQPAccMNLI-m/mmAccSST-2|AccSTS-BCorrQNLI|AccRTEAccMRPCAccAvg.
BERTlarge60.691.386.6/-93.290.092.370.488.084.05
RoBERTalarge68.092.290.2/90.296.492.493.986.690.988.82
XLNetlarge69.092.390.8/90.897.092.594.985.990.889.15
ELECTRAlarge69.192.490.9/-96.992.695.088.090.889.46
DeBERTalarge70.592.391.1/91.196.892.895.388.391.990.00
", + "bbox": [ + 189, + 391, + 807, + 506 + ], + "page_idx": 5 + }, + { + "type": "text", + "text": "We pre-train our large models following the setting of BERT (Devlin et al., 2019), except that we use the BPE vocabulary of Radford et al. (2019); Liu et al. (2019c). For training data, we use Wikipedia (English Wikipedia dump3; 12GB), BookCorpus (Zhu et al., 2015) (6GB), OPENWEBTEXT (public Reddit content (Gokaslan & Cohen, 2019); 38GB), and STORIES (a subset of CommonCrawl (Trinh & Le, 2018); 31GB). The total data size after data deduplication (Shoeybi et al., 2019) is about 78G. Refer to Appendix A.2 for a detailed description of the pre-training dataset. ", + "bbox": [ + 173, + 544, + 825, + 627 + ], + "page_idx": 5 + }, + { + "type": "text", + "text": "We use 6 DGX-2 machines (96 V100 GPUs) to train the models. A single model trained with 2K batch size and 1M steps takes about 20 days. Refer to Appendix A for the detailed hyperparamters. ", + "bbox": [ + 176, + 633, + 821, + 662 + ], + "page_idx": 5 + }, + { + "type": "text", + "text": "We summarize the results on eight NLU tasks of GLUE (Wang et al., 2019b) in Table 1, where DeBERTa is compared DeBERTa with previous Transform-based PLMs of similar structures (i.e. 24 layers with hidden size of 1024) including BERT, RoBERTa, XLNet, ALBERT and ELECTRA. Note that RoBERTa, XLNet and ELECTRA are pre-trained on 160G training data while DeBERTa is pretrained on 78G training data. RoBERTa and XLNet are pre-trained for 500K steps with 8K samples in a step, which amounts to four billion training samples. DeBERTa is pre-trained for one million steps with 2K samples in each step. This amounts to two billion training samples, approximately half of either RoBERTa or XLNet. Table 1 shows that compared to BERT and RoBERTa, DeBERTa performs consistently better across all the tasks. Meanwhile, DeBERTa outperforms XLNet in six out of eight tasks. Particularly, the improvements on MRPC ( $1 . 1 \\%$ over XLNet and $1 . 0 \\%$ over RoBERTa), RTE $2 . 4 \\%$ over XLNet and $1 . 7 \\%$ over RoBERTa) and CoLA ( $1 . 5 \\%$ over XLNet and $2 . 5 \\%$ over RoBERTa) are significant. DeBERTa also outperforms other SOTA PLMs, i.e., ELECTRAlarge and $\\mathbf { X L N e t } _ { \\mathrm { l a r g e } }$ , in terms of average GLUE score. ", + "bbox": [ + 174, + 669, + 825, + 849 + ], + "page_idx": 5 + }, + { + "type": "text", + "text": "Among all GLUE tasks, MNLI is most often used as an indicative task to monitor the research progress of PLMs. DeBERTa significantly outperforms all existing PLMs of similar size on MNLI and creates a new state of the art. ", + "bbox": [ + 176, + 857, + 823, + 898 + ], + "page_idx": 5 + }, + { + "type": "table", + "img_path": "images/1d2ecd7dc1b3b86dd304fab22afda258c1bbd0f17e788f90aade6c4d31e4a92b.jpg", + "table_caption": [ + "Table 2: Results on MNLI in/out-domain, SQuAD v1.1, SQuAD v2.0, RACE, ReCoRD, SWAG, CoNLL 2003 NER development set. Note that missing results in literature are signified by “-”. " + ], + "table_footnote": [], + "table_body": "
ModelMNLI-m/mm|SQuAD v1.1 SQuAD v2.0|RACE|Acc F1/EM F1/EMAccReCoRDF1/EM|SWAGNERAcc F1
BERTlarge86.6/-90.9/84.1 81.8/79.072.0186.692.8
ALBERTtarge86.5/-91.8/85.2 84.9/81.875.211-
RoBERTalarge90.2/90.294.6/88.9 89.4/86.583.290.6/90.089.993.4
XLNetlarge90.8/90.895.1/89.7 90.6/87.985.4---
Megatron336M89.7/90.094.2/88.0 88.1/84.883.0111
DeBERTalarge91.1/91.195.5/90.1 90.7/88.086.891.4/91.090.893.8
ALBERTxxlarge90.8/-94.8/89.3 90.2/87.486.51-
Megatron1.3B90.9/91.094.9/89.1 90.2/87.187.3-1-
Megatron3.9B91.4/91.495.5/90.0 91.2/88.589.5111
", + "bbox": [ + 186, + 102, + 812, + 276 + ], + "page_idx": 6 + }, + { + "type": "text", + "text": "In addition to GLUE, DeBERTa is evaluated on three categories of NLU benchmarks: (1) Question Answering: SQuAD v1.1 (Rajpurkar et al., 2016), SQuAD v2.0 (Rajpurkar et al., 2018), RACE (Lai et al., 2017), ReCoRD (Zhang et al., 2018) and SWAG (Zellers et al., 2018); (2) Natural Language Inference: MNLI (Williams et al., 2018); and (3) NER: CoNLL-2003. For comparison, we include ALBERTxxlarge (Lan et al., 2019) 4 and Megatron (Shoeybi et al., 2019) with three different model sizes, denoted as Megatron336M, Megatron $\\cdot 1 . 3 \\mathrm { B }$ and Megatron3.9B, respectively, which are trained using the same dataset as RoBERTa. Note that Megatron336M has a similar model size as other models mentioned above5. ", + "bbox": [ + 173, + 334, + 825, + 445 + ], + "page_idx": 6 + }, + { + "type": "text", + "text": "We summarize the results in Table 2. Compared to the previous SOTA PLMs with a similar model size (i.e., BERT, RoBERTa, XLNet, ALBERTlarge, and Megatron336M), DeBERTa shows superior performance in all seven tasks. Taking the RACE benchmark as an example, DeBERTa significantly outperforms XLNet by $+ 1 . 4 \\%$ $8 6 . 8 \\%$ vs. $8 5 . 4 \\%$ ). Although Megatron $1 . 3 \\mathrm { B }$ is three times larger than DeBERTa, DeBERTa outperforms it in three of the four benchmarks. We further report DeBERTa on text generation tasks in Appendix A.4. ", + "bbox": [ + 174, + 452, + 825, + 536 + ], + "page_idx": 6 + }, + { + "type": "text", + "text": "5.1.2 PERFORMANCE ON BASE MODELS ", + "text_level": 1, + "bbox": [ + 176, + 559, + 467, + 573 + ], + "page_idx": 6 + }, + { + "type": "text", + "text": "Our setting for base model pre-training is similar to that for large models. The base model structure follows that of the BERT base model, i.e., $L = 1 2 , H = 7 6 8 , A = 1 2$ . We use 4 DGX-2 with 64 V100 GPUs to train the base model. It takes 10 days to finish a single pre-training of 1M training steps with batch size 2048. We train DeBERTa using the same 78G dataset, and compare it to RoBERTa and XLNet trained on 160G text data. ", + "bbox": [ + 174, + 585, + 825, + 656 + ], + "page_idx": 6 + }, + { + "type": "text", + "text": "We summarize the base model results in Table 3. Across all three tasks, DeBERTa consistently outperforms RoBERTa and XLNet by a larger margin than that in large models. For example, on MNLI-m, $\\mathrm { D e B E R T a _ { b a s e } }$ obtains $+ 1 . 2 \\%$ $8 8 . 8 \\%$ vs. $8 7 . 6 \\%$ ) over $\\mathrm { R o B E R T a _ { b a s e } }$ , and $+ 2 \\%$ $8 8 . 8 \\%$ vs. $8 6 . 8 \\%$ ) over $\\mathbf { X L N e t } _ { \\mathrm { b a s e } }$ . ", + "bbox": [ + 174, + 662, + 825, + 719 + ], + "page_idx": 6 + }, + { + "type": "table", + "img_path": "images/bb6aaa7758904bc09aff2a8befb3cbcb78be3fb6d2c2f8bd68f7a3ccd234a652.jpg", + "table_caption": [ + "Table 3: Results on MNLI in/out-domain $\\left( \\mathrm { m } / \\mathrm { m m } \\right)$ ), SQuAD v1.1 and $\\mathrm { v } 2 . 0$ development set. " + ], + "table_footnote": [], + "table_body": "
ModelMNLI-m/mm (Acc)SQuAD v1.1 (F1/EM)SQuAD v2.0 (F1/EM)
RoBERTabase87.6/-91.5/84.683.7/80.5
XLNetbase86.8/---/80.2
DeBERTabase88.8/88.593.1/87.286.2/83.1
", + "bbox": [ + 205, + 738, + 792, + 810 + ], + "page_idx": 6 + }, + { + "type": "text", + "text": "5.2 MODEL ANALYSIS ", + "text_level": 1, + "bbox": [ + 176, + 103, + 343, + 117 + ], + "page_idx": 7 + }, + { + "type": "text", + "text": "In this section, we first present an ablation study to quantify the relative contributions of different components introduced in DeBERTa. Then, we study the convergence property to characterize the model training efficiency. We run experiments for analysis using the base model setting: a model is pre-trained using the Wikipedia $^ +$ Bookcorpus dataset for 1M steps with batch size 256 in 7 days on a DGX-2 machine with 16 V-100 GPUs. Due to space limit, we visualize the different attention patterns of DeBERTa and RoBERTa in Appendix A.7. ", + "bbox": [ + 174, + 128, + 825, + 213 + ], + "page_idx": 7 + }, + { + "type": "text", + "text": "5.2.1 ABLATION STUDY ", + "text_level": 1, + "bbox": [ + 176, + 228, + 352, + 242 + ], + "page_idx": 7 + }, + { + "type": "text", + "text": "To verify our experimental setting, we pre-train the RoBERTa base model from scratch. The re-pretrained RoBERTa model is denoted as RoBERTa-ReImpbase. To investigate the relative contributions of different components in DeBERTa, we develop three variations: ", + "bbox": [ + 176, + 252, + 823, + 295 + ], + "page_idx": 7 + }, + { + "type": "text", + "text": "• -EMD is the DeBERTa base model without EMD. • -C2P is the DeBERTa base model without the content-to-position term ((c) in Eq. 4). • -P2C is the DeBERTa base model without the position-to-content term ((b) in Eq. 4). As XLNet also uses the relative position bias, this model is close to XLNet plus EMD. ", + "bbox": [ + 215, + 306, + 825, + 372 + ], + "page_idx": 7 + }, + { + "type": "table", + "img_path": "images/6a63e6083c2b3488ae04801108159c0f0416bdbaa5ad76734580966028276a02.jpg", + "table_caption": [ + "Table 4: Ablation study of the DeBERTa base model. " + ], + "table_footnote": [], + "table_body": "
ModelMNLI-m/mm AccSQuAD v1.1 F1/EMSQuAD v2.0 F1/EMRACE Acc
BERTbase Devlin et al. (2019) RoBERTabase Liu et al. (2019c)84.3/84.7 84.7/-88.5/81.0 90.6/-76.3/73.7 79.7/-65.0 65.6
XLNetbase Yang et al. (2019) RoBERTa-ReImpbase85.8/85.4 84.9/85.1-/- 91.1/84.881.3/78.5 79.5/76.066.7 66.8
DeBERTabase86.3/86.2 86.1/86.192.1/86.182.5/79.371.7
-EMD -C2P85.9/85.791.8/85.8 91.6/85.881.3/78.0 81.3/78.370.3 69.3
-P2C86.0/85.891.7/85.780.8/77.669.6
-(EMD+C2P)85.8/85.991.5/85.380.3/77.268.1
-(EMD+P2C)85.8/85.891.3/85.180.2/77.168.5
", + "bbox": [ + 199, + 390, + 799, + 573 + ], + "page_idx": 7 + }, + { + "type": "text", + "text": "Table 4 summarizes the results on four benchmark datasets. First, RoBERTa-ReImp performs similarly to RoBERTa across all benchmark datasets, verfiying that our setting is reasonable. Second, we see that removing any one component in DeBERTa results in a sheer performance drop. For instance, removing EMD (-EMD) results in a loss of $1 . 4 \\%$ $7 1 . 7 \\%$ vs. $7 0 . 3 \\%$ ) on RACE, $0 . 3 \\%$ $( 9 2 . 1 \\%$ vs. $9 1 . 8 \\%$ ) on SQuAD v1.1, $1 . 2 \\%$ $8 2 . 5 \\%$ vs. $8 1 . 3 \\%$ ) on $\\mathrm { S Q u A D ~ v } 2 . 0$ , $0 . 2 \\%$ ( $8 6 . 3 \\%$ vs. $8 6 . 1 \\% )$ and $0 . 1 \\%$ $8 6 . 2 \\%$ vs. $8 6 . 1 \\%$ ) on MNLI- $\\cdot \\mathrm { m } / \\mathrm { m m }$ , respectively. Similarly, removing either content-to-position or position-to-content leads to inferior performance in all the benchmarks. As expected, removing two components results in even more substantial loss in performance. ", + "bbox": [ + 173, + 613, + 826, + 724 + ], + "page_idx": 7 + }, + { + "type": "text", + "text": "5.3 SCALE UP TO 1.5 BILLION PARAMETERS ", + "text_level": 1, + "bbox": [ + 176, + 741, + 493, + 756 + ], + "page_idx": 7 + }, + { + "type": "text", + "text": "Larger pre-trained models have shown better generalization results (Raffel et al., 2020; Brown et al., 2020; Shoeybi et al., 2019). Thus, we have built a larger version of DeBERTa with 1.5 billion parameters, denoted as $\\mathrm { D e B E R T a } _ { 1 . 5 B }$ . The model consists of 48 layers with a hidden size of 1,536 and 24 attention heads 6. DeBERTa $_ { 1 . 5 B }$ is trained on a pre-training dataset amounting to 160G, similar to that in Liu et al. (2019c), with a new vocabulary of size 128K constructed using the dataset. ", + "bbox": [ + 174, + 767, + 825, + 837 + ], + "page_idx": 7 + }, + { + "type": "text", + "text": "To train $\\mathrm { D e B E R T a } _ { 1 . 5 B }$ , we optimize the model architecture as follows. First, we share the projection matrices of relative position embedding $W _ { k , r } , W _ { q , r }$ with $W _ { k , c } , W _ { q , c }$ , respectively, in all attention layers to reduce the number of model parameters. Our ablation study in Table 13 on base models shows that the projection matrix sharing reduces the model size while retaining the model performance. ", + "bbox": [ + 174, + 844, + 825, + 900 + ], + "page_idx": 7 + }, + { + "type": "text", + "text": "Second, a convolution layer is added aside the first Transformer layer to induce n-gram knowledge of sub-word encodings and their outputs are summed up before feeding to the next Transformer layer 7. ", + "bbox": [ + 174, + 103, + 825, + 132 + ], + "page_idx": 8 + }, + { + "type": "text", + "text": "Table 5 reports the test results of SuperGLUE (Wang et al., 2019a) which is one of the most popular NLU benchmarks. SuperGLUE consists of a wide of NLU tasks, including Question Answering (Clark et al., 2019; Khashabi et al., 2018; Zhang et al., 2018), Natural Language Inference (Dagan et al., 2006; Bar-Haim et al., 2006; Giampiccolo et al., 2007; Bentivogli et al., 2009), Word Sense Disambiguation (Pilehvar & Camacho-Collados, 2019), and Reasoning (Levesque et al., 2011; Roemmele et al., 2011). Since its release in 2019, top research teams around the world have been developing large-scale PLMs that have driven striking performance improvement on SuperGLUE. ", + "bbox": [ + 174, + 138, + 825, + 236 + ], + "page_idx": 8 + }, + { + "type": "text", + "text": "The significant performance boost due to scaling DeBERTa to a larger model makes the single DeBERTa1.5B surpass the human performance on SuperGLUE for the first time in terms of macroaverage score (89.9 versus 89.8) as of December 29, 2020, and the ensemble DeBERTa model $( \\mathrm { D e B E R T a } _ { E n s e m b l e } )$ sits atop the SuperGLUE benchmark rankings as of January 6, 2021, outperforming the human baseline by a decent margin (90.3 versus 89.8). Compared to T5, which consists of 11 billion parameters, the 1.5-billion-parameter DeBERTa is much more energy efficient to train and maintain, and it is easier to compress and deploy to apps of various settings. ", + "bbox": [ + 173, + 242, + 825, + 342 + ], + "page_idx": 8 + }, + { + "type": "table", + "img_path": "images/4d73de04653c441ab9831ab76d3e27f2b8f4a6818f3d2eb13e49db34f1051d39.jpg", + "table_caption": [ + "Table 5: SuperGLUE test set results scored using the SuperGLUE evaluation server. All the results are obtained from https://super.gluebenchmark.com on January 6, 2021. " + ], + "table_footnote": [], + "table_body": "
ModelBoolQAccCBF1/Acc|COPA|AccMultiRCF1a/EMReCoRDF1/EMRTEAccWiCAccAccWSC|AverageScore
RoBERTalarge87.1[90.5/95.290.684.4/52.590.6/90.088.269.989.084.6
NEXHA-Plus87.894.4/96.093.684.6/55.190.1/89.689.174.693.286.7
T511B91.293.9/96.894.888.1/63.394.1/93.492.576.993.889.3
T511B+Meena91.395.8/97.697.488.3/63.094.2/93.592.777.995.990.2
Human89.095.8/98.9100.081.8/51.991.7/91.393.680.0100.089.8
DeBERTa1.5B+SiFTDeBERTaEnsemble90.490.494.9/97.295.7/97.696.898.488.2/63.788.2/63.794.5/94.194.5/94.193.293.276.495.995.989.990.3
77.5
", + "bbox": [ + 173, + 352, + 825, + 501 + ], + "page_idx": 8 + }, + { + "type": "text", + "text": "6 CONCLUSIONS ", + "text_level": 1, + "bbox": [ + 176, + 565, + 328, + 582 + ], + "page_idx": 8 + }, + { + "type": "text", + "text": "This paper presents a new model architecture DeBERTa (Decoding-enhanced BERT with disentangled attention) that improves the BERT and RoBERTa models using two novel techniques. The first is the disentangled attention mechanism, where each word is represented using two vectors that encode its content and position, respectively, and the attention weights among words are computed using disentangled matrices on their contents and relative positions, respectively. The second is an enhanced mask decoder which incorporates absolute positions in the decoding layer to predict the masked tokens in model pre-training. In addition, a new virtual adversarial training method is used for fine-tuning to improve model’s generalization on downstream tasks. ", + "bbox": [ + 174, + 597, + 825, + 708 + ], + "page_idx": 8 + }, + { + "type": "text", + "text": "We show through a comprehensive empirical study that these techniques significantly improve the efficiency of model pre-training and the performance of downstream tasks. The DeBERTa model with 1.5 billion parameters surpasses the human performance on the SuperGLUE benchmark for the first time in terms of macro-average score. ", + "bbox": [ + 174, + 715, + 825, + 771 + ], + "page_idx": 8 + }, + { + "type": "text", + "text": "DeBERTa surpassing human performance on SuperGLUE marks an important milestone toward general AI. Despite its promising results on SuperGLUE, the model is by no means reaching the human-level intelligence of NLU. Humans are extremely good at leveraging the knowledge learned from different tasks to solve a new task with no or little task-specific demonstration. This is referred to as compositional generalization, the ability to generalize to novel compositions (new tasks) of familiar constituents (subtasks or basic problem-solving skills). Moving forward, it is worth exploring how to make DeBERTa incorporate compositional structures in a more explicit manner, which could allow combining neural and symbolic computation of natural language similar to what humans do. ", + "bbox": [ + 173, + 777, + 825, + 890 + ], + "page_idx": 8 + }, + { + "type": "text", + "text": "7 ACKNOWLEDGMENTS ", + "text_level": 1, + "bbox": [ + 176, + 102, + 387, + 117 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "We thank Jade Huang and Nikos Karampatziakis for proofreading the paper and providing insightful comments. We thank Yoyo Liang, Saksham Singhal, Xia Song, and Saurabh Tiwary for their help with large-scale model training. We also thank the anonymous reviewers for valuable discussions. ", + "bbox": [ + 174, + 133, + 825, + 176 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "REFERENCES ", + "text_level": 1, + "bbox": [ + 174, + 198, + 287, + 213 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016. ", + "bbox": [ + 173, + 222, + 823, + 250 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Roy Bar-Haim, Ido Dagan, Bill Dolan, Lisa Ferro, and Danilo Giampiccolo. The second PASCAL recognising textual entailment challenge. In Proceedings of the Second PASCAL Challenges Workshop on Recognising Textual Entailment, 01 2006. ", + "bbox": [ + 173, + 260, + 826, + 303 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Iz Beltagy, Matthew E Peters, and Arman Cohan. Longformer: The long-document transformer. arXiv preprint arXiv:2004.05150, 2020. ", + "bbox": [ + 174, + 313, + 823, + 342 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Luisa Bentivogli, Ido Dagan, Hoa Trang Dang, Danilo Giampiccolo, and Bernardo Magnini. The fifth pascal recognizing textual entailment challenge. In In Proc Text Analysis Conference (TAC’09, 2009. ", + "bbox": [ + 176, + 352, + 823, + 395 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Tom B Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. arXiv preprint arXiv:2005.14165, 2020. ", + "bbox": [ + 174, + 405, + 823, + 448 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Daniel Cer, Mona Diab, Eneko Agirre, Inigo Lopez-Gazpio, and Lucia Specia. Semeval-2017 task 1: Semantic textual similarity-multilingual and cross-lingual focused evaluation. arXiv preprint arXiv:1708.00055, 2017. ", + "bbox": [ + 173, + 458, + 826, + 501 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Kezhen Chen, Qiuyuan Huang, Hamid Palangi, Paul Smolensky, Kenneth D Forbus, and Jianfeng Gao. Natural-to formal-language generation using tensor product representations. arXiv preprint arXiv:1910.02339, 2019. ", + "bbox": [ + 174, + 511, + 826, + 554 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Rewon Child, Scott Gray, Alec Radford, and Ilya Sutskever. Generating long sequences with sparse transformers. arXiv preprint arXiv:1904.10509, 2019. ", + "bbox": [ + 169, + 563, + 825, + 593 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Christopher Clark, Kenton Lee, Ming-Wei Chang, Tom Kwiatkowski, Michael Collins, and Kristina Toutanova. BoolQ: Exploring the surprising difficulty of natural yes/no questions. In Proceedings of NAACL-HLT 2019, 2019. ", + "bbox": [ + 174, + 602, + 825, + 645 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Kevin Clark, Minh-Thang Luong, Quoc V. Le, and Christopher D. Manning. ELECTRA: Pre-training text encoders as discriminators rather than generators. In ICLR, 2020. ", + "bbox": [ + 169, + 655, + 823, + 685 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Ido Dagan, Oren Glickman, and Bernardo Magnini. The pascal recognising textual entailment challenge. In Proceedings of the First International Conference on Machine Learning Challenges: Evaluating Predictive Uncertainty Visual Object Classification, and Recognizing Textual Entailment, MLCW’05, Berlin, Heidelberg, 2006. ", + "bbox": [ + 173, + 694, + 825, + 752 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Zihang Dai, Zhilin Yang, Yiming Yang, Jaime G Carbonell, Quoc Le, and Ruslan Salakhutdinov. Transformer-xl: Attentive language models beyond a fixed-length context. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 2978–2988, 2019. ", + "bbox": [ + 173, + 761, + 826, + 804 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Marie-Catherine De Marneffe, Mandy Simons, and Judith Tonhauser. The commitmentbank: Investigating projection in naturally occurring discourse. In proceedings of Sinn und Bedeutung, volume 23, pp. 107–124, 2019. ", + "bbox": [ + 173, + 814, + 825, + 857 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pp. 4171–4186, 2019. ", + "bbox": [ + 174, + 867, + 826, + 924 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "William B Dolan and Chris Brockett. Automatically constructing a corpus of sentential paraphrases. In Proceedings of the Third International Workshop on Paraphrasing (IWP2005), 2005. ", + "bbox": [ + 171, + 103, + 825, + 132 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Li Dong, Nan Yang, Wenhui Wang, Furu Wei, Xiaodong Liu, Yu Wang, Jianfeng Gao, Ming Zhou, and Hsiao-Wuen Hon. Unified language model pre-training for natural language understanding and generation. In Advances in Neural Information Processing Systems, pp. 13042–13054, 2019. ", + "bbox": [ + 176, + 142, + 825, + 185 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Danilo Giampiccolo, Bernardo Magnini, Ido Dagan, and Bill Dolan. The third PASCAL recognizing textual entailment challenge. In Proceedings of the ACL-PASCAL Workshop on Textual Entailment and Paraphrasing, pp. 1–9, Prague, June 2007. Association for Computational Linguistics. URL https://www.aclweb.org/anthology/W07-1401. ", + "bbox": [ + 173, + 195, + 825, + 252 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Aaron Gokaslan and Vanya Cohen. Openwebtext corpus. http://Skylion007.github.io, 2019. ", + "bbox": [ + 173, + 262, + 776, + 277 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Pengcheng He, Xiaodong Liu, Weizhu Chen, and Jianfeng Gao. A hybrid neural network model for commonsense reasoning. arXiv preprint arXiv:1907.11983, 2019a. ", + "bbox": [ + 174, + 286, + 825, + 316 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Pengcheng He, Yi Mao, Kaushik Chakrabarti, and Weizhu Chen. X-sql: reinforce schema representation with context. arXiv preprint arXiv:1908.08113, 2019b. ", + "bbox": [ + 171, + 325, + 825, + 356 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Cheng-Zhi Anna Huang, Ashish Vaswani, Jakob Uszkoreit, Ian Simon, Curtis Hawthorne, Noam Shazeer, Andrew M Dai, Matthew D Hoffman, Monica Dinculescu, and Douglas Eck. Music transformer: Generating music with long-term structure. 2018. ", + "bbox": [ + 176, + 364, + 823, + 409 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Haoming Jiang, Pengcheng He, Weizhu Chen, Xiaodong Liu, Jianfeng Gao, and Tuo Zhao. SMART: Robust and efficient fine-tuning for pre-trained natural language models through principled regularized optimization. In ACL, July 2020. doi: 10.18653/v1/2020.acl-main.197. ", + "bbox": [ + 174, + 417, + 826, + 462 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Mandar Joshi, Danqi Chen, Yinhan Liu, Daniel S Weld, Luke Zettlemoyer, and Omer Levy. Spanbert: Improving pre-training by representing and predicting spans. Transactions of the Association for Computational Linguistics, 8:64–77, 2020. ", + "bbox": [ + 174, + 470, + 825, + 513 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Daniel Khashabi, Snigdha Chaturvedi, Michael Roth, Shyam Upadhyay, and Dan Roth. Looking beyond the surface: A challenge set for reading comprehension over multiple sentences. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), pp. 252–262, 2018. ", + "bbox": [ + 173, + 523, + 825, + 594 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ", + "bbox": [ + 173, + 604, + 823, + 633 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Nikita Kitaev, Lukasz Kaiser, and Anselm Levskaya. Reformer: The efficient transformer. In International Conference on Learning Representations, 2019. ", + "bbox": [ + 173, + 643, + 823, + 672 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Guokun Lai, Qizhe Xie, Hanxiao Liu, Yiming Yang, and Eduard Hovy. Race: Large-scale reading comprehension dataset from examinations. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pp. 785–794, 2017. ", + "bbox": [ + 173, + 683, + 825, + 727 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Soricut. Albert: A lite bert for self-supervised learning of language representations. In International Conference on Learning Representations, 2019. ", + "bbox": [ + 173, + 736, + 826, + 779 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Hector Levesque, Ernest Davis, and Leora Morgenstern. The winograd schema challenge. In Thirteenth International Conference on the Principles of Knowledge Representation and Reasoning, 2012. ", + "bbox": [ + 174, + 789, + 825, + 832 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Hector J Levesque, Ernest Davis, and Leora Morgenstern. The Winograd schema challenge. In AAAI Spring Symposium: Logical Formalizations of Commonsense Reasoning, volume 46, pp. 47, 2011. ", + "bbox": [ + 171, + 842, + 826, + 871 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Liyuan Liu, Haoming Jiang, Pengcheng He, Weizhu Chen, Xiaodong Liu, Jianfeng Gao, and Jiawei Han. On the variance of the adaptive learning rate and beyond. In International Conference on Learning Representations, 2019a. ", + "bbox": [ + 174, + 881, + 825, + 924 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Xiaodong Liu, Pengcheng He, Weizhu Chen, and Jianfeng Gao. Multi-task deep neural networks for natural language understanding. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 4487–4496, Florence, Italy, July 2019b. Association for Computational Linguistics. URL https://www.aclweb.org/anthology/P19-1441. ", + "bbox": [ + 174, + 103, + 825, + 160 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Xiaodong Liu, Hao Cheng, Pengcheng He, Weizhu Chen, Yu Wang, Hoifung Poon, and Jianfeng Gao. Adversarial training for large neural language models. arXiv preprint arXiv:2004.08994, 2020. ", + "bbox": [ + 176, + 171, + 823, + 200 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692, 2019c. ", + "bbox": [ + 174, + 210, + 826, + 253 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Ilya Loshchilov and Frank Hutter. Fixing weight decay regularization in adam. 2018. ", + "bbox": [ + 174, + 265, + 732, + 280 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. arXiv, pp. arXiv–1609, 2016. ", + "bbox": [ + 171, + 290, + 823, + 319 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Shervin Minaee, Nal Kalchbrenner, Erik Cambria, Narjes Nikzad, Meysam Chenaghlu, and Jianfeng Gao. Deep learning based text classification: A comprehensive review. arXiv preprint arXiv:2004.03705, 2020. ", + "bbox": [ + 174, + 330, + 825, + 372 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Takeru Miyato, Shin-ichi Maeda, Masanori Koyama, and Shin Ishii. Virtual adversarial training: a regularization method for supervised and semi-supervised learning. IEEE transactions on pattern analysis and machine intelligence, 41(8):1979–1993, 2018. ", + "bbox": [ + 174, + 383, + 825, + 426 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Mohammad Taher Pilehvar and Jose Camacho-Collados. Wic: the word-in-context dataset for evaluating context-sensitive meaning representations. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pp. 1267–1273, 2019. ", + "bbox": [ + 174, + 438, + 826, + 494 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. OpenAI Blog, 1(8), 2019. ", + "bbox": [ + 171, + 505, + 823, + 535 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of Machine Learning Research, 21(140):1–67, 2020. URL http://jmlr.org/papers/v21/20-074.html. ", + "bbox": [ + 174, + 545, + 826, + 602 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. SQuAD: $^ { 1 0 0 , 0 0 0 + }$ questions for machine comprehension of text. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, November 2016. ", + "bbox": [ + 173, + 613, + 825, + 656 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Pranav Rajpurkar, Robin Jia, and Percy Liang. Know what you don’t know: Unanswerable questions for squad. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pp. 784–789, 2018. ", + "bbox": [ + 174, + 666, + 825, + 710 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Melissa Roemmele, Cosmin Adrian Bejan, and Andrew S. Gordon. Choice of plausible alternatives: An evaluation of commonsense causal reasoning. In 2011 AAAI Spring Symposium Series, 2011. ", + "bbox": [ + 173, + 719, + 825, + 750 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Imanol Schlag, Paul Smolensky, Roland Fernandez, Nebojsa Jojic, Jürgen Schmidhuber, and Jianfeng Gao. Enhancing the transformer with explicit relational encoding for math problem solving. arXiv preprint arXiv:1910.06611, 2019. ", + "bbox": [ + 174, + 760, + 825, + 803 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Peter Shaw, Jakob Uszkoreit, and Ashish Vaswani. Self-attention with relative position representations. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2 (Short Papers), pp. 464–468, 2018. ", + "bbox": [ + 174, + 814, + 826, + 869 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Tao Shen, Yi Mao, Pengcheng He, Guodong Long, Adam Trischler, and Weizhu Chen. Exploiting structured knowledge in text via graph-guided representation learning. arXiv preprint arXiv:2004.14224, 2020. ", + "bbox": [ + 176, + 882, + 825, + 924 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Mohammad Shoeybi, Mostofa Patwary, Raul Puri, Patrick LeGresley, Jared Casper, and Bryan Catanzaro. Megatron-lm: Training multi-billion parameter language models using gpu model parallelism. arXiv preprint arXiv:1909.08053, 2019. ", + "bbox": [ + 178, + 103, + 823, + 146 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Paul Smolensky. Tensor product variable binding and the representation of symbolic structures in connectionist systems. Artificial intelligence, 46(1-2):159–216, 1990. ", + "bbox": [ + 173, + 155, + 825, + 184 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D Manning, Andrew $\\mathrm { N g }$ , and Christopher Potts. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the 2013 conference on empirical methods in natural language processing, pp. 1631–1642, 2013. ", + "bbox": [ + 174, + 193, + 826, + 248 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Yu Sun, Shuohuan Wang, Yukun Li, Shikun Feng, Xuyi Chen, Han Zhang, Xin Tian, Danxiang Zhu, Hao Tian, and Hua Wu. Ernie: Enhanced representation through knowledge integration. arXiv preprint arXiv:1904.09223, 2019. ", + "bbox": [ + 174, + 257, + 826, + 301 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Trieu H Trinh and Quoc V Le. A simple method for commonsense reasoning. arXiv preprint arXiv:1806.02847, 2018. ", + "bbox": [ + 173, + 309, + 823, + 338 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in neural information processing systems, pp. 5998–6008, 2017. ", + "bbox": [ + 174, + 347, + 825, + 390 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Alex Wang, Yada Pruksachatkun, Nikita Nangia, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel Bowman. Superglue: A stickier benchmark for general-purpose language understanding systems. In Advances in neural information processing systems, pp. 3266–3280, 2019a. ", + "bbox": [ + 173, + 398, + 826, + 455 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel Bowman. Glue: A multi-task benchmark and analysis platform for natural language understanding. In 7th International Conference on Learning Representations, ICLR 2019, 2019b. ", + "bbox": [ + 176, + 463, + 825, + 507 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Wei Wang, Bin Bi, Ming Yan, Chen Wu, Zuyi Bao, Liwei Peng, and Luo Si. Structbert: Incorporating language structures into pre-training for deep language understanding. arXiv preprint arXiv:1908.04577, 2019c. ", + "bbox": [ + 173, + 515, + 823, + 558 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Alex Warstadt, Amanpreet Singh, and Samuel R Bowman. Neural network acceptability judgments. arXiv preprint arXiv:1805.12471, 2018. ", + "bbox": [ + 169, + 566, + 825, + 597 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Adina Williams, Nikita Nangia, and Samuel Bowman. A broad-coverage challenge corpus for sentence understanding through inference. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), pp. 1112–1122. Association for Computational Linguistics, 2018. URL http://aclweb.org/anthology/N18-1101. ", + "bbox": [ + 174, + 604, + 826, + 676 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Russ R Salakhutdinov, and Quoc V Le. Xlnet: Generalized autoregressive pretraining for language understanding. In Advances in neural information processing systems, pp. 5754–5764, 2019. ", + "bbox": [ + 174, + 684, + 826, + 728 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Rowan Zellers, Yonatan Bisk, Roy Schwartz, and Yejin Choi. Swag: A large-scale adversarial dataset for grounded commonsense inference. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 93–104, 2018. ", + "bbox": [ + 173, + 736, + 826, + 780 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Sheng Zhang, Xiaodong Liu, Jingjing Liu, Jianfeng Gao, Kevin Duh, and Benjamin Van Durme. ReCoRD: Bridging the gap between human and machine commonsense reading comprehension. arXiv preprint 1810.12885, 2018. ", + "bbox": [ + 176, + 787, + 825, + 830 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Yukun Zhu, Ryan Kiros, Rich Zemel, Ruslan Salakhutdinov, Raquel Urtasun, Antonio Torralba, and Sanja Fidler. Aligning books and movies: Towards story-like visual explanations by watching movies and reading books. In Proceedings of the IEEE international conference on computer vision, pp. 19–27, 2015. ", + "bbox": [ + 176, + 839, + 825, + 895 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "A APPENDIX ", + "text_level": 1, + "bbox": [ + 176, + 102, + 299, + 117 + ], + "page_idx": 13 + }, + { + "type": "table", + "img_path": "images/49dd89986597a438a7965c1e4de95f9b6a6c0d1c23192ad3b8b90aceb716076d.jpg", + "table_caption": [ + "A.1 DATASET ", + "Table 6: Summary information of the NLP application benchmarks. " + ], + "table_footnote": [], + "table_body": "
CorpusTask#Train #Dev#Test #Label Metrics
General Language Understanding Evaluation (GLUE)
CoLAAcceptability8.5k1k1k2Matthews corr
SSTSentiment67k8721.8k2Accuracy
MNLINLI393k20k20k3Accuracy
RTENLI2.5k2763k2Accuracy
WNLINLI634711462Accuracy
QQPParaphrase364k40k391k2Accuracy/F1
MRPCParaphrase3.7k4081.7k2Accuracy/F1
QNLIQA/NLI108k5.7k5.7k2Accuracy
STS-BSimilarity7k1.5k1.4k1Pearson/Spearman corr
SuperGLUE
WSCCoreference554k1041462Accuracy
BoolQQA9,4273,2703,2452Accuracy
COPAQA400k1005002Accuracy
CBNLI250572503Accuracy/F1
RTENLI2.5k2763k2Accuracy
WiCWSD2.5k2763k2Accuracy
ReCoRDMRC101k10k10k-Exact Match (EM)/F1
MultiRCMultiple choice5,1009531,800Exact Match (EM)/F1
Question Answering
SQuAD v1.1MRC87.6k10.5k9.5kExact Match (EM)/F1
SQuAD v2.0MRC130.3k11.9k8.9k-ExactMatch (EM)/F1
RACEMRC87,8664,8874,9344Accuracy
SWAGMultiple choice73.5k20k20k4Accuracy
Token Classification
CoNLL 2003NER14,9873,4663,6848F1
", + "bbox": [ + 173, + 174, + 825, + 583 + ], + "page_idx": 13 + }, + { + "type": "text", + "text": "‚ GLUE. The General Language Understanding Evaluation (GLUE) benchmark is a collection of nine natural language understanding (NLU) tasks. As shown in Table 6, it includes question answering (Rajpurkar et al., 2016), linguistic acceptability (Warstadt et al., 2018), sentiment analysis (Socher et al., 2013), text similarity (Cer et al., 2017), paraphrase detection (Dolan & Brockett, 2005), and natural language inference (NLI) (Dagan et al., 2006; Bar-Haim et al., 2006; Giampiccolo et al., 2007; Bentivogli et al., 2009; Levesque et al., 2012; Williams et al., 2018). The diversity of the tasks makes GLUE very suitable for evaluating the generalization and robustness of NLU models. ", + "bbox": [ + 173, + 637, + 826, + 734 + ], + "page_idx": 13 + }, + { + "type": "text", + "text": "‚ SuperGLUE. SuperGLUE is an extension of the GLUE benchmark, but more difficult, which is a collection of eight NLU tasks. It covers a various of tasks including question answering (Zhang et al., 2018; Clark et al., 2019; Khashabi et al., 2018), natural language inference (Dagan et al., 2006; Bar-Haim et al., 2006; Giampiccolo et al., 2007; Bentivogli et al., 2009; De Marneffe et al., 2019), coreference resolution (Levesque et al., 2012) and word sense disambiguation (Pilehvar & Camacho-Collados, 2019). ", + "bbox": [ + 173, + 741, + 825, + 825 + ], + "page_idx": 13 + }, + { + "type": "text", + "text": "‚ RACE is a large-scale machine reading comprehension dataset, collected from English examinations in China, which are designed for middle school and high school students (Lai et al., 2017). ", + "bbox": [ + 173, + 833, + 820, + 861 + ], + "page_idx": 13 + }, + { + "type": "text", + "text": "‚ SQuAD v1.1/v2.0 is the Stanford Question Answering Dataset (SQuAD) v1.1 and v2.0 (Rajpurkar et al., 2016; 2018) are popular machine reading comprehension benchmarks. Their passages come from approximately 500 Wikipedia articles and the questions and answers are obtained by crowdsourcing. The SQuAD $\\mathrm { v } 2 . 0$ dataset includes unanswerable questions about the same paragraphs. ", + "bbox": [ + 174, + 867, + 825, + 924 + ], + "page_idx": 13 + }, + { + "type": "text", + "text": "‚ SWAG is a large-scale adversarial dataset for the task of grounded commonsense inference, which unifies natural language inference and physically grounded reasoning (Zellers et al., 2018). SWAG consists of $1 1 3 \\mathrm { k }$ multiple choice questions about grounded situations. ", + "bbox": [ + 173, + 103, + 823, + 146 + ], + "page_idx": 14 + }, + { + "type": "text", + "text": "‚ CoNLL 2003 is an English dataset consisting of text from a wide variety of sources. It has 4 types of named entity. ", + "bbox": [ + 173, + 152, + 823, + 181 + ], + "page_idx": 14 + }, + { + "type": "text", + "text": "A.2 PRE-TRAINING DATASET ", + "text_level": 1, + "bbox": [ + 176, + 199, + 390, + 214 + ], + "page_idx": 14 + }, + { + "type": "text", + "text": "For DeBERTa pre-training, we use Wikipedia (English Wikipedia dump8; 12GB), BookCorpus (Zhu et al., 2015) 9 (6GB), OPENWEBTEXT (public Reddit content (Gokaslan & Cohen, 2019); 38GB) and STORIES10 (a subset of CommonCrawl (Trinh & Le, 2018); 31GB). The total data size after data deduplication(Shoeybi et al., 2019) is about 78GB. For pre-training, we also sample $5 \\%$ training data as the validation set to monitor the training process. Table 7 compares datasets used in different pre-trained models. ", + "bbox": [ + 173, + 226, + 826, + 310 + ], + "page_idx": 14 + }, + { + "type": "table", + "img_path": "images/82d65ddb5bef045b250a155352d885f78422f0b70c2040a4e92b41c803606f34.jpg", + "table_caption": [ + "Table 7: Comparison of the pre-training data. " + ], + "table_footnote": [], + "table_body": "
ModelWiki+Book16GBOpenWebText38GBStories31GBCC-News76GBGiga516GBClueWeb19GBCommon Crawl110GB
BERT
XLNet(24号
RoBERTa
DeBERTaDeBERTa1.5B√√广
", + "bbox": [ + 173, + 324, + 831, + 434 + ], + "page_idx": 14 + }, + { + "type": "text", + "text": "A.3 IMPLEMENTATION DETAILS ", + "text_level": 1, + "bbox": [ + 176, + 487, + 410, + 502 + ], + "page_idx": 14 + }, + { + "type": "text", + "text": "Following RoBERTa (Liu et al., 2019c), we adopt dynamic data batching. We also include span masking (Joshi et al., 2020) as an additional masking strategy with the span size up to three. We list the detailed hyperparameters of pre-training in Table 8. For pre-training, we use Adam (Kingma & Ba, 2014) as the optimizer with weight decay (Loshchilov & Hutter, 2018). For fine-tuning, even though we can get better and robust results with RAdam(Liu et al., 2019a) on some tasks, e.g. CoLA, RTE and RACE, we use Adam(Kingma & Ba, 2014) as the optimizer for a fair comparison. For fine-tuning, we train each task with a hyper-parameter search procedure, each run takes about 1-2 hours on a DGX-2 node. All the hyper-parameters are presented in Table 9. The model selection is based on the performance on the task-specific development sets. ", + "bbox": [ + 173, + 513, + 826, + 640 + ], + "page_idx": 14 + }, + { + "type": "text", + "text": "Our code is implemented based on Huggingface Transformers11, FairSeq12 and Megatron (Shoeybi et al., 2019)13. ", + "bbox": [ + 176, + 645, + 821, + 674 + ], + "page_idx": 14 + }, + { + "type": "text", + "text": "A.3.1 PRE-TRAINING EFFICIENCY ", + "text_level": 1, + "bbox": [ + 176, + 690, + 423, + 705 + ], + "page_idx": 14 + }, + { + "type": "text", + "text": "To investigate the efficiency of model pre-training, we plot the performance of the fine-tuned model on downstream tasks as a function of the number of pre-training steps. As shown in Figure 1, for RoBERTa-ReImpbase and $\\mathrm { D e B E R T a } _ { b a s e }$ , we dump a checkpoint every 150K pre-training steps, and then fine-tune the checkpoint on two representative downstream tasks, MNLI and SQuAD v2.0, and then report the accuracy and F1 score, respectively. As a reference, we also report the final model performance of both the original $\\mathrm { R o B E R T a } _ { b a s e }$ (Liu et al., 2019c) and $\\mathtt { X L N e t } _ { b a s e }$ (Yang et al., 2019). The results show that $\\mathrm { D e B E R T a } _ { b a s e }$ consistently outperforms RoBERTa-ReImpbase during the course of pre-training. ", + "bbox": [ + 173, + 717, + 826, + 829 + ], + "page_idx": 14 + }, + { + "type": "table", + "img_path": "images/bb786f1d889e31a5a9d67f5e7ffae840a8e2dbe9a15dc43ed1e37b3109530052.jpg", + "table_caption": [ + "Table 8: Hyper-parameters for pre-training DeBERTa. " + ], + "table_footnote": [], + "table_body": "
Hyper-parameter|DeBERTa1.5BDeBERTalargeDeBERTabaseDeBERTabase-ablation
Number of Layers48241212
Hidden size15361024768768
FNN inner hidden size6144409630723072
Attention Heads24161212
Attention Head size64646464
Dropout0.10.10.10.1
Warmup Steps10k10k10k10k
Learning Rates1.5e-42e-42e-41e-4
Batch Size2k2k2k256
Weight Decay0.010.010.010.01
Max Steps1M1M1M1M
Learning Rate DecayLinearLinearLinearLinear
Adam ∈1e-61e-61e-61e-6
Adam β10.90.90.90.9
Adam β20.9990.9990.9990.999
Gradient Clipping1.01.01.0
Number ofDGX-2 nodes1661.0
Training Time30 days20 days4 10 days1 7 days
", + "bbox": [ + 179, + 101, + 816, + 381 + ], + "page_idx": 15 + }, + { + "type": "table", + "img_path": "images/2d79d791848d405350189071ede4f1911d4f2a40ecc12fc5494caa9f1897d748.jpg", + "table_caption": [ + "Table 9: Hyper-parameters for fine-tuning DeBERTa on down-streaming tasks. " + ], + "table_footnote": [], + "table_body": "
Hyper-parameterDeBERTa1.5BDeBERTalargeDeBERTabase
Dropout of task layer Warmup Steps Learning Rates Batch Size Weight Decay Maximun Training Epochs Learning Rate Decay Adam ∈ Adam β1{0,0.15,0.3} {50,100,500,1000] {1e-6,3e-6, 5e-6} {16,32,64} 0.01 10 Linear 1e-6 0.9{0,0.1,0.15} {50,100,500,1000} {5e-6,8e-6, 9e-6, 1e-5} {16,32,48,64} 0.01 10 Linear 1e-6{0,0.1,0.15} {50,100,500,1000] {1.5e-5,2e-5, 3e-5,4e-5} {16,32,48,64} 10 Linear
", + "bbox": [ + 174, + 429, + 826, + 611 + ], + "page_idx": 15 + }, + { + "type": "image", + "img_path": "images/652fd2471aba260e4c3ad959ea124f7fa7de8dae5e26aa624be3a8a5b2263b86.jpg", + "image_caption": [ + "Figure 1: Pre-training performance curve between DeBERTa and its counterparts on the MNLI and SQuAD v2.0 development set. " + ], + "image_footnote": [], + "bbox": [ + 181, + 672, + 820, + 847 + ], + "page_idx": 15 + }, + { + "type": "text", + "text": "A.4 MAIN RESULTS ON GENERATION TASKS ", + "text_level": 1, + "bbox": [ + 176, + 103, + 496, + 118 + ], + "page_idx": 16 + }, + { + "type": "text", + "text": "In addition to NLU tasks, DeBERTa can also be extended to handle NLG tasks. To allow DeBERTa operating like an auto-regressive model for text generation, we use a triangular matrix for selfattention and set the upper triangular part of the self-attention mask to $- \\infty$ , following Dong et al. (2019). ", + "bbox": [ + 174, + 132, + 826, + 188 + ], + "page_idx": 16 + }, + { + "type": "text", + "text": "We evaluate DeBERTa on the task of auto-regressive language model (ARLM) using Wikitext103 (Merity et al., 2016). To do so, we train a new version of DeBERTa, denoted as DeBERTa-MT. It is jointly pre-trained using the MLM and ARLM tasks as in UniLM (Dong et al., 2019). The pre-training hyper-parameters follows that of $\\mathrm { D e B E R T a } _ { b a s e }$ except that we use fewer training steps (200k). For comparison, we use RoBERTa as baseline, and include GPT-2 and Transformer-XL as additional references. DeBERTa-AP is a variant of DeBERTa where absolute position embeddings are incorporated in the input layer as RoBERTa. For a fair comparison, all these models are base models pre-trained in a similar setting. ", + "bbox": [ + 173, + 194, + 826, + 306 + ], + "page_idx": 16 + }, + { + "type": "table", + "img_path": "images/6031fdb09fda409092948313be8fe1ad4b53433dd305e85cf4c60ef53cdcc419.jpg", + "table_caption": [ + "Table 10: Language model results in perplexity (lower is better) on Wikitext-103 . " + ], + "table_footnote": [], + "table_body": "
Model |RoBERTa|DeBERTa-AP|DeBERTa|DeBERTa-MT|GPT-2|Transformer-XL
Dev PPL21.620.720.519.5123.1
Test PPL21.620.019.919.537.5024
", + "bbox": [ + 200, + 325, + 795, + 383 + ], + "page_idx": 16 + }, + { + "type": "text", + "text": "Table 10 summarizes the results on Wikitext-103. We see that $\\mathrm { D e B E R T a _ { b a s e } }$ obtains lower perplexities on both dev and test data, and joint training using MLM and ARLM reduces perplexity further. That DeBERTa-AP is inferior to DeBERTa indicates that it is more effective to incorporate absolute position embeddings of words in the decoding layer as the EMD in DeBERTa than in the input layer as RoBERTa. ", + "bbox": [ + 173, + 430, + 825, + 500 + ], + "page_idx": 16 + }, + { + "type": "text", + "text": "A.5 HANDLING LONG SEQUENCE INPUT ", + "text_level": 1, + "bbox": [ + 176, + 523, + 464, + 539 + ], + "page_idx": 16 + }, + { + "type": "text", + "text": "With relative position bias, we choose to truncate the maximum relative distance to $k$ as in equation 3. Thus in each layer, each token can attend directly to at most $2 ( k - 1 )$ tokens and itself. By stacking Transformer layers, each token in the l´th layer can attend to at most $( 2 k - 1 ) l$ tokens implicitly. Taking $\\mathrm { D e B E R T a } _ { l a r g e }$ as an example, where $k = 5 1 2 , L = 2 4$ , in theory, the maximum sequence length that can be handled is 24,528. This is a byproduct benefit of our design choice and we find it beneficial for the RACE task. A comparison of long sequence effect on the RACE task is shown in Table 11. ", + "bbox": [ + 173, + 551, + 826, + 650 + ], + "page_idx": 16 + }, + { + "type": "table", + "img_path": "images/fd0fe1cffbdf5810d6b7f6baeffa94fe153d07735f16e597b0fc012fc5fd59e7.jpg", + "table_caption": [ + "Table 11: The effect of handling long sequence input for RACE task with DeBERTa " + ], + "table_footnote": [], + "table_body": "
Sequence length |Middle|High| AMiddleHigh|Accuracy
51276888.885.086.3
88.786.386.8
", + "bbox": [ + 357, + 666, + 640, + 724 + ], + "page_idx": 16 + }, + { + "type": "text", + "text": "Long sequence handling is an active research area. There have been a lot of studies where the Transformer architecture is extended for long sequence handling(Beltagy et al., 2020; Kitaev et al., 2019; Child et al., 2019; Dai et al., 2019). One of our future research directions is to extend DeBERTa to deal with extremely long sequences. ", + "bbox": [ + 173, + 772, + 826, + 830 + ], + "page_idx": 16 + }, + { + "type": "text", + "text": "A.6 PERFORMANCE IMPROVEMENTS OF DIFFERENT MODEL SCALES ", + "text_level": 1, + "bbox": [ + 174, + 853, + 656, + 867 + ], + "page_idx": 16 + }, + { + "type": "text", + "text": "In this subsection, we study the effect of different model sizes applied to large models on GLUE. Table 12 summarizes the results, showing that larger models can obtain a better result and SiFT also improves the model performance consistently. ", + "bbox": [ + 176, + 881, + 825, + 924 + ], + "page_idx": 16 + }, + { + "type": "table", + "img_path": "images/c843123153d1308665dbbd02a17f298ad9c068ccca227b57a9e71c6b8b2dab44.jpg", + "table_caption": [ + "Table 12: Comparison results of DeBERTa models with different sizes on the GLUE development set. " + ], + "table_footnote": [], + "table_body": "
ModelCoLA| Mcc|QQP AccMNLI-m/mml AccSST-2| AccSTS-B CorrQNLI AccRTE AccMRPC| AccAvg.
DeBERTalarge70.592.391.1/91.196.892.895.388.391.990.00
DeBERTa900M71.192.391.7/91.697.592.095.893.593.190.86
DeBERTa1.5B72.092.791.7/91.997.292.996.093.992.091.17
DeBERTa1.5B+SiFT73.593.092.0/92.197.593.296.596.593.291.93
", + "bbox": [ + 174, + 102, + 826, + 200 + ], + "page_idx": 17 + }, + { + "type": "table", + "img_path": "images/c779afcba8f6c44b25d6735a945f329c3402a8aae15b049f855c33918933d296.jpg", + "table_caption": [], + "table_footnote": [ + "Table 13: Ablation study of the additional modifications in $\\mathrm { D e B E R T a } _ { 1 . 5 B }$ and $\\mathrm { D e B E R T a _ { 9 0 0 M } }$ models. Note that we progressively add each component on the top of DeBE $\\mathrm { R T a } _ { \\mathrm { b a s e } }$ . " + ], + "table_body": "
ModelParametersMNLI-m/mm AccSQuAD v1.1 F1/EMSQuAD v2.0 F1/EM
RoBERTa-ReImpbase120M84.9/85.191.1/84.879.5/76.0
DeBERTabase134M86.3/86.292.1/86.182.5/79.3
+ ShareProjection120M86.3/86.392.2/86.282.3/79.5
+ Conv122M86.3/86.592.5/86.482.5/79.7
+ 128k Vocab190M86.7/86.993.1/86.883.0/80.1
", + "bbox": [ + 214, + 239, + 784, + 348 + ], + "page_idx": 17 + }, + { + "type": "text", + "text": "A.7 MODEL COMPLEXITY ", + "text_level": 1, + "bbox": [ + 176, + 414, + 367, + 428 + ], + "page_idx": 17 + }, + { + "type": "text", + "text": "With the disentangled attention mechanism, we introduce three additional sets of parameters $W _ { q , r } , W _ { k , r } \\in R ^ { d \\times d }$ and $P \\in R ^ { 2 k \\times d }$ . The total increase in model parameters is $2 L \\times d ^ { \\bar { 2 } } + 2 k \\times d$ For the large model $( d = 1 0 2 4 , L = 2 4 , k = 5 1 2 )$ q, this amounts to about $4 9 M$ additional parameters, an increase of $1 3 \\%$ . For the base model $( d = 7 6 8 , L = 1 2 , k = 5 1 2 )$ , this amounts to $1 4 M$ additional parameters, an increase of $1 2 \\%$ . However, by sharing the projection matrix between content and position embedding, i.e. $W _ { q , r } = W _ { q , c } , W _ { k , r } = W _ { k , c }$ , the number of parameters of DeBERTa is the same as RoBERTa. Our experiment on base model shows that the results are almost the same, as in Table 13. ", + "bbox": [ + 174, + 440, + 825, + 551 + ], + "page_idx": 17 + }, + { + "type": "text", + "text": "The additional computational complexity is $O ( N k d )$ due to the calculation of the additional positionto-content and content-to-position attention scores. Compared with BERT or RoBERTa, this increases the computational cost by $3 0 \\%$ . Compared with XLNet which also uses relative position embedding, the increase of computational cost is about $1 5 \\%$ . A further optimization by fusing the attention computation kernel can significantly reduce this additional cost. For $E M D$ , since the decoder in pre-training only reconstructs the masked tokens, it does not introduce additional computational cost for unmasked tokens. In the situation where $1 5 \\%$ tokens are masked and we use only two decoder layers, the additional cost is $0 . 1 5 \\times 2 / L$ which results in an additional computational cost of only $3 \\%$ for base model( $L = 1 2$ ) and $2 \\%$ for large model( $L = 2 4$ ) in EMD. ", + "bbox": [ + 174, + 558, + 825, + 683 + ], + "page_idx": 17 + }, + { + "type": "text", + "text": "A.8 ADDITIONAL DETAILS OF ENHANCED MASK DECODER ", + "text_level": 1, + "bbox": [ + 174, + 700, + 602, + 715 + ], + "page_idx": 17 + }, + { + "type": "text", + "text": "The structure of EMD is shown in Figure 2b. There are two inputs for EMD, (i.e., $I , H )$ . $H$ denotes the hidden states from the previous Transformer layer, and $I$ can be any necessary information for decoding, e.g., $H$ , absolute position embedding or output from previous EMD layer. $n$ denotes $n$ stacked layers of EMD where the output of each EMD layer will be the input $I$ for next EMD layer and the output of last EMD layer will be fed to the language model head directly. The $n$ layers can share the same weight. In our experiment we share the same weight for $n = 2$ layers to reduce the number of parameters and use absolute position embedding as $I$ of the first EMD layer. When $I = H$ and $n = 1$ , EMD is the same as the BERT decoder layer. However, EMD is more general and flexible as it can take various types of input information for decoding. ", + "bbox": [ + 174, + 727, + 825, + 852 + ], + "page_idx": 17 + }, + { + "type": "text", + "text": "A.9 ATTENTION PATTERNS ", + "text_level": 1, + "bbox": [ + 176, + 869, + 375, + 883 + ], + "page_idx": 17 + }, + { + "type": "text", + "text": "To visualize how DeBERTa operates differently from RoBERTa, we present in Figure 3 the attention patterns (taken in the last self-attention layers) of RoBERTa, DeBERTa and three DeBERTa variants. ", + "bbox": [ + 174, + 895, + 825, + 924 + ], + "page_idx": 17 + }, + { + "type": "image", + "img_path": "images/e717fa563f752c2273db2b0c80b1badbd8f6ac907edf9ffd947fbda30948455a.jpg", + "image_caption": [ + "Figure 2: Comparison of the decoding layer. " + ], + "image_footnote": [], + "bbox": [ + 176, + 109, + 825, + 400 + ], + "page_idx": 18 + }, + { + "type": "image", + "img_path": "images/8ae0415bd238e46819832892f3f63332c3206c7e1eda47022b508832813f8d77.jpg", + "image_caption": [ + "Figure 3: Comparison of attention patterns of the last layer among DeBERTa, RoBERTa and DeBERTa variants (i.e., DeBERTa without EMD, C2P and P2C respectively). " + ], + "image_footnote": [], + "bbox": [ + 174, + 439, + 826, + 547 + ], + "page_idx": 18 + }, + { + "type": "text", + "text": "We observe two differences. First, RoBERTa has a clear diagonal line effect for a token attending to itself. But this effect is not very visible in DeBERTa. This can be attributed to the use of EMD, in which the absolute position embedding is added to the hidden state of content as the query vector, as verified by the attention pattern of DeBERTa-EMD where the diagonal line effect is more visible than that of the original DeBERTa. Second, we observe vertical strips in the attention patterns of RoBERTa, which are mainly caused by high-frequent functional words or tokens (e.g., “a”, “the”, and punctuation). For DeBERTa, the strip only appears in the first column, which represents the [CLS] token. We conjecture that a dominant emphasis on [CLS] is desirable since the feature vector of [CLS] is often used as a contextual representation of the entire input sequence in downstream tasks. We also observe that the vertical strip effect is quite obvious in the patterns of the three DeBERTa variants. ", + "bbox": [ + 173, + 614, + 826, + 767 + ], + "page_idx": 18 + }, + { + "type": "text", + "text": "We present three additional examples to illustrate the different attention patterns of DeBERTa and RoBERTa in Figures 4 and 5. ", + "bbox": [ + 174, + 775, + 823, + 804 + ], + "page_idx": 18 + }, + { + "type": "image", + "img_path": "images/4ded61fc2789380f8e48a344e2832f08e141cde3be4b1e729272294ee12539bd.jpg", + "image_caption": [ + "Figure 4: Comparison on attention patterns of the last layer between DeBERTa and RoBERTa. " + ], + "image_footnote": [], + "bbox": [ + 287, + 252, + 714, + 737 + ], + "page_idx": 19 + }, + { + "type": "image", + "img_path": "images/797e974d1df596acf89f11dd99e90820f599208dca3b930e0dc2054ac2ea74aa.jpg", + "image_caption": [ + "Figure 5: Comparison on attention patterns of last layer between DeBERTa and its variants (i.e. DeBERTa without EMD, C2P and P2C respectively). " + ], + "image_footnote": [], + "bbox": [ + 178, + 93, + 821, + 563 + ], + "page_idx": 20 + }, + { + "type": "text", + "text": "A.10 ACCOUNT FOR THE VARIANCE IN FINE-TUNING ", + "text_level": 1, + "bbox": [ + 174, + 631, + 562, + 645 + ], + "page_idx": 20 + }, + { + "type": "text", + "text": "Accounting for the variance of different runs of fine-tuning, in our experiments, we always follow Liu et al. (2019c) to report the results on downstream tasks by averaging over five runs with different random initialization seeds, and perform significance test when comparing results. As the examples shown in Table 14, $\\mathrm { D e B E R T a } _ { b a s e }$ significantly outperforms $\\mathrm { R o B E R T a } _ { b a s e }$ $\\dot { p }$ -value $< 0 . 0 5$ ). ", + "bbox": [ + 174, + 656, + 825, + 713 + ], + "page_idx": 20 + }, + { + "type": "table", + "img_path": "images/7eb07f93a7a34246d91924c9c9593cc42c94ae69031c65b08e9ebabf5b5a4aa3.jpg", + "table_caption": [ + "Table 14: Comparison of DeBERTa and RoBERTa on MNLI-matched and SQuAD v1.1. " + ], + "table_footnote": [], + "table_body": "
Model MNLI-matched (Min/Max/Avg)SQuAD v1.1 (Min/Max/Avg)p-value
RoBERTabase84.7/85.0/84.990.8/91.3/91.10.02
DeBERTabase86.1/86.5/86.391.8/92.2/92.10.01
", + "bbox": [ + 186, + 727, + 813, + 779 + ], + "page_idx": 20 + } +] \ No newline at end of file