Datasets:
Add files using upload-large-folder tool
Browse files- md/train/pk4q0SD_r1X/pk4q0SD_r1X.md +311 -0
- vlm/train/1FvkSpWosOl/6.png +3 -0
- vlm/train/4G2dEuRZ7eO/10.png +3 -0
- vlm/train/4G2dEuRZ7eO/6.png +3 -0
- vlm/train/V5V1vGrI2z/12.png +3 -0
- vlm/train/V5V1vGrI2z/4.png +3 -0
- vlm/train/V5V1vGrI2z/5.png +3 -0
- vlm/train/V5V1vGrI2z/7.png +3 -0
- vlm/train/V5V1vGrI2z/8.png +3 -0
- vlm/train/rklFh34Kwr/0.png +3 -0
- vlm/train/rklFh34Kwr/1.png +3 -0
- vlm/train/rklFh34Kwr/10.png +3 -0
- vlm/train/rklFh34Kwr/2.png +3 -0
- vlm/train/rklFh34Kwr/3.png +3 -0
- vlm/train/rklFh34Kwr/4.png +3 -0
- vlm/train/rklFh34Kwr/5.png +3 -0
- vlm/train/rklFh34Kwr/6.png +3 -0
- vlm/train/rklFh34Kwr/7.png +3 -0
- vlm/train/rklFh34Kwr/8.png +3 -0
- vlm/train/rklFh34Kwr/9.png +3 -0
md/train/pk4q0SD_r1X/pk4q0SD_r1X.md
ADDED
|
@@ -0,0 +1,311 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# COCO-LM: Correcting and Contrasting Text Sequences for Language Model Pretraining
|
| 2 |
+
|
| 3 |
+
Yu Meng1∗, Chenyan Xiong2, Payal Bajaj2, Saurabh Tiwary2, Paul Bennett2, Jiawei Han1, Xia Song2
|
| 4 |
+
|
| 5 |
+
1 University of Illinois at Urbana-Champaign 2 Microsoft 1 {yumeng5,hanj}@illinois.edu 2 {chenyan.xiong,payal.bajaj,satiwary, paul.n.bennett,xiaso}@microsoft.com
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
We present a self-supervised learning framework, COCO-LM, that pretrains Language Models by COrrecting and COntrasting corrupted text sequences. Following ELECTRA-style pretraining, COCO-LM employs an auxiliary language model to corrupt text sequences, upon which it constructs two new tasks for pretraining the main model. The first token-level task, Corrective Language Modeling, is to detect and correct tokens replaced by the auxiliary model, in order to better capture token-level semantics. The second sequence-level task, Sequence Contrastive Learning, is to align text sequences originated from the same source input while ensuring uniformity in the representation space. Experiments on GLUE and SQuAD demonstrate that COCO-LM not only outperforms recent state-of-the-art pretrained models in accuracy, but also improves pretraining efficiency. It achieves the MNLI accuracy of ELECTRA with $5 0 \%$ of its pretraining GPU hours. With the same pretraining steps of standard base/large-sized models, COCO-LM outperforms the previous best models by $1 +$ GLUE average points.
|
| 10 |
+
|
| 11 |
+
# 1 Introduction
|
| 12 |
+
|
| 13 |
+
Pretrained language models (PLMs) have reshaped the way AI systems process natural language [11, 36, 39, 40]. Before task-specific training, it is now a common practice to first pretrain the deep neural networks, often Transformers [53], via a self-supervised token-level language modeling task [29, 31, 40]. Whether it is autoregressive [39], permutational [62], or masked language modeling (MLM) [11], the Transformer networks are pretrained to recover some omitted tokens using the rest of input texts. Then the language semantics captured during pretraining are conveyed to downstream tasks via the pretrained Transformer parameters [5, 8, 44].
|
| 14 |
+
|
| 15 |
+
Recent research [14, 16, 25, 43] observed several challenges in this self-supervised learning framework. One challenge is its efficiency. After pretrained for a while with the standard token-level language modeling, the networks have already captured the basic language patterns, making a large fraction of pretraining signals no longer informative. Linear improvement in the model effectiveness often requires exponentially more pretraining compute and parameters [25], which is unsustainable. Another challenge is the anisotropy of text representations from pretrained models. The sequence representations from many pretrained models are quite irregular [30, 43] and require dedicated fine-tuning approaches to be useful in sequence-level applications [32, 60].
|
| 16 |
+
|
| 17 |
+
Clark et al. [7] proposed a new pretraining strategy, ELECTRA, that uses an auxiliary language model (“generator”) to replace tokens in input texts and pretrains the main Transformer (“discriminator”) to detect replaced tokens. This improves the pretraining efficiency and effectiveness, but pretraining via binary classification hinders the model’s usage on applications requiring language modeling capability (e.g., prompt-based learning [15, 28, 46]). It could further distort the representation space as the Transformers are pretrained to output the same “non-replacement” label for all actual tokens.
|
| 18 |
+
|
| 19 |
+
In this paper, we present a new self-supervised learning approach, COCO-LM, that pretrains Language Models by COrrecting and COntrasting corrupted text sequences. Following ELECTRA-style pretraining, COCO-LM employs an auxiliary model to corrupt the input texts, upon which it introduces two new pretraining tasks for the main Transformer, one at token level and one at sequence level. The token-level task, corrective language modeling (CLM), pretrains the main Transformer to detect and correct the tokens in the corrupted sequences. It uses a multi-task setup to combine the benefits of replaced token detection and language modeling. The sequence-level task, sequence contrastive learning (SCL), pretrains the model to align text sequences originated from the same source sequence and enforce uniformity of the representation space.
|
| 20 |
+
|
| 21 |
+
In our experiments on GLUE [54] and $\mathrm { S Q u A D }$ [41] benchmarks, COCO-LM not only outperforms state-of-the-art pretraining approaches in effectiveness, but also significantly improves the pretraining efficiency. Under the same setting, COCO-LM matches the MNLI accuracy of RoBERTa and ELECTRA with $6 0 \%$ and $5 0 \%$ of their GPU hours in pretraining, respectively. When pretrained with the same number of steps, COCO-LM outperforms the previous best models by $1 +$ GLUE average points under the standard base/large-sized model evaluations. With 367 million parameters, COCO$\mathrm { L M _ { L a r g e + + } }$ reaches the MNLI accuracy of Megatron3.9B [49], one of the largest BERT-style model with 3.9 billion parameters. Our analyses provide further insights on the advantage of CLM in learning token representations and its effectiveness in prompted-based fine-tuning, as well as the benefit of SCL in ensuring alignment and uniformity in the representation space for better generalization1.
|
| 22 |
+
|
| 23 |
+
# 2 Related Work
|
| 24 |
+
|
| 25 |
+
Various token-level tasks have been used to pretrain language models. The most classic auto-regressive language modeling is to predict a token given all the previous tokens, or all subsequent ones [36, 39]. BERT uses masked language modeling (MLM) that recovers randomly masked tokens using the rest input. XLNet proposes permutation language modeling that conducts MLM in an autoregressive manner [62]. UniLM uses pseudo MLM which unifies autoregressive and MLM tasks [1, 13].
|
| 26 |
+
|
| 27 |
+
Sequence-level tasks are also explored, which often pretrain the model to predict certain cooccurrences of sequence pairs. For example, next sentence prediction [11], sentence ordering [27] and previous sentence prediction [56] concatenate two sentences (either correlated or random), and train the Transformer to classify the pair.
|
| 28 |
+
|
| 29 |
+
Empirically, MLM is still among the most effective tasks to pretrain encoders [29, 31, 40]. RoBERTa [31] found the sentence-level task in BERT not benefitial and discarded it. BART [29] and T5 [40] both observed that MLM is often the most effective task. The empirical advantages of other pretraining tasks are more task-specific, for example, entity related masks for knowledge intensive applications [20, 24], and sequence-level tasks for long form text modeling [42].
|
| 30 |
+
|
| 31 |
+
Instead of randomly altering texts, ELECTRA [7] uses a smaller auxiliary Transformer pretrained by MLM to replace some tokens in the text sequences using its language modeling probability, and pretrains the main Transformer to detect the replaced tokens. ELECTRA achieves state-of-the-art accuracy in many language tasks [7]. Later, Clark et el. [6] developed ELECTRIC, which pretrains encoders by contrasting original tokens against negatives sampled from a cloze model. ELECTRIC re-enables the language modeling capability but underperforms ELECTRA in downstream tasks.
|
| 32 |
+
|
| 33 |
+
Our work is also related to contrastive learning which has shown great success in visual representation learning [4, 22, 34]. Its effectiveness of in language is more observed in the fine-tuning stage, for example, in sentence representation [16], dense retrieval [60], and GLUE fine-tuning [19].
|
| 34 |
+
|
| 35 |
+
# 3 Method
|
| 36 |
+
|
| 37 |
+
We present the preliminaries of PLMs, their challenges, and the new COCO-LM framework.
|
| 38 |
+
|
| 39 |
+
# 3.1 Preliminary on Language Model Pretraining
|
| 40 |
+
|
| 41 |
+
In this work we focus on pretraining BERT-style bidirectional Transformer encoders [11] that are widely used in language representation tasks. We first recap the masked language modeling (MLM) task introduced by BERT [11] and then discuss the pretraining framework of ELECTRA [7].
|
| 42 |
+
|
| 43 |
+
BERT Pretraining uses the masked language modeling task (MLM) [11], which is to take an input sequence $X ^ { \mathrm { o r i g } } = [ x _ { 1 } ^ { \mathrm { o r i g } } , \dotsc , x _ { i } ^ { \mathrm { o r i g } } , \dotsc , x _ { n } ^ { \mathrm { o r i g } } ]$ , with $1 5 \%$ random tokens replaced by [MASK] symbols (e.g., the $i$ -th token), and train the model to predict the original tokens at the masked positions:
|
| 44 |
+
|
| 45 |
+
$$
|
| 46 |
+
\left[ x _ { 1 } ^ { \mathrm { o r i g } } , \dots , \ [ \mathrm { M \AA S K } ] _ { i } , \dots , x _ { n } ^ { \mathrm { o r i g } } \right] \xrightarrow { \mathrm { T r a n s f o r m e r } } H \xrightarrow { \mathrm { M L M H e a d } } p _ { \mathrm { M L M } } ( x | h _ { i } ) ,
|
| 47 |
+
$$
|
| 48 |
+
|
| 49 |
+
where the Transformer generates contextualized representations ${ \pmb H } = \{ h _ { i } \} _ { i = 1 } ^ { n }$ . The MLM Head predicts the masked token from the vocabulary $V$ using the hidden representation $\boldsymbol { h } _ { i }$ and token embeddings $_ { \textbf { \em x } }$ . The pretraining minimizes the MLM loss on the set of masked positions $\mathcal { M }$ . Specifically,
|
| 50 |
+
|
| 51 |
+
$$
|
| 52 |
+
p _ { \mathrm { M L M } } ( x | h _ { i } ) = \frac { \exp ( x ^ { \top } h _ { i } ) } { \sum _ { x _ { t } \in V } \exp ( x _ { t } ^ { \top } h _ { i } ) } ; \quad \mathcal { L } _ { \mathrm { M L M } } = \mathbb { E } \left( - \sum _ { i \in \mathcal { M } } \log p _ { \mathrm { M L M } } \left( x _ { i } ^ { \mathrm { o r i g } } \middle | h _ { i } \right) \right) .
|
| 53 |
+
$$
|
| 54 |
+
|
| 55 |
+
ELECTRA Pretraining uses two Transformers, a “generator” pretrained by MLM, and a “discriminator” pretrained using the generator’s outputs. We refer them as auxiliary and main Transformers, as the former is discarded after pretraining and the latter may be trained by “generative” tasks too.
|
| 56 |
+
|
| 57 |
+
The auxiliary model outputs a corrupted sequence $X ^ { \mathrm { M L M } }$ by sampling from its predicted probability:
|
| 58 |
+
|
| 59 |
+
$$
|
| 60 |
+
x _ { i } ^ { \mathrm { M L M } } \sim p _ { \mathrm { M L M } } \left( x | h _ { i } \right) , \mathrm { i f } i \in \mathcal { M } ; \quad x _ { i } ^ { \mathrm { M L M } } = x _ { i } ^ { \mathrm { o r i g } } , \mathrm { e l s e } .
|
| 61 |
+
$$
|
| 62 |
+
|
| 63 |
+
The masked positions are replaced by sampled tokens considered plausible in context by the auxiliary Transformer, which are more deceiving than random replacements. ELECTRA uses a skinnier auxiliary network (e.g., hidden dimension is $1 / 3$ of the main model) to control the signal difficulty.
|
| 64 |
+
|
| 65 |
+
The main Transformer takes $X ^ { \mathrm { M L M } }$ and classifies the replaced tokens:
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
\begin{array} { r } { X ^ { \mathrm { M L M } } \xrightarrow { \mathrm { M a i n ~ T r a n s f o r m e r } } \pmb { H } \xrightarrow { \mathrm { R T D ~ H e a d } } p _ { \mathrm { R T D } } \left( \mathbb { 1 } \big ( x _ { i } ^ { \mathrm { M L M } } = x _ { i } ^ { \mathrm { o r i g } } \big ) \big | h _ { i } \right) , } \end{array}
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
where $\mathbb { 1 } ( \cdot )$ is the indicator function. The Replaced Token Detection (RTD) head uses a sigmoid linear layer to output the binary probability, and the main Transformer is trained with binary cross entropy loss. The RTD task is trained on all tokens instead of masked ones and improves efficiency.
|
| 72 |
+
|
| 73 |
+
The two Transformers are pretrained jointly. The auxiliary model gradually generates more realistic replacement tokens and the main model learns to better detect them. This forms a natural learning curriculum and significantly improves ELECTRA’s accuracy in downstream tasks [7].
|
| 74 |
+
|
| 75 |
+
# 3.2 Challenges of ELECTRA-Style Pretraining
|
| 76 |
+
|
| 77 |
+
Missing Language Modeling Benefits. The classification task in ELECTRA is simpler and more stable [61], but raises two challenges. The first is the lack of language modeling capability which is a necessity in some tasks [6]. For example, prompt-based learning requires a language model to generate labels [15, 33, 45, 46]. The second is that the binary classification task may not be sufficient to capture certain word-level semantics that are critical for token-level tasks.
|
| 78 |
+
|
| 79 |
+
Squeezing Representation Space. Another challenge is that the representations from Transformer-based language models often reside in a narrow cone, where two random sentences have high similarity scores (lack of uniformity),
|
| 80 |
+
|
| 81 |
+

|
| 82 |
+
Figure 1: Cosine similarity distributions of random/similar sequence pairs using [CLS] embeddings from pretrained models. Histograms/curves are distribution bins/kernel density estimates.
|
| 83 |
+
|
| 84 |
+
and closely related sentences may have more different representations (lack of alignment) [14, 16, 30].
|
| 85 |
+
|
| 86 |
+

|
| 87 |
+
Figure 2: The overview of COCO-LM. The auxiliary Transformer is pretrained by MLM. Its corrupted text sequence is used as the main Transformer’s pretraining input in Corrective Language Modeling and paired with the cropped original sequence for Sequence Contrastive Learning.
|
| 88 |
+
|
| 89 |
+
Figure 1 illustrates such behaviors with random sentence pairs (from pretraining corpus) and semantically similar pairs (those annotated with maximum similarity from STS-B [3]). With RoBERTa, the cosine similarities of most random sentence pairs are near 0.8, bigger than many semantically similar pairs. The representation space from ELECTRA is even more squeezed. Nearly all sentence pairs, both random and similar ones, have around 0.9 cosine similarity. This may not be surprising as ELECTRA is pretrained to predict the same output (“non-replacement”) for all tokens in these sequences. The irregular representation space raises the risk of degeneration [37, 55] and often necessitates sophisticated post-adjustment or fine-tuning to improve the sequence representations [16, 30, 32, 60].
|
| 90 |
+
|
| 91 |
+
# 3.3 COCO-LM Pretraining
|
| 92 |
+
|
| 93 |
+
COCO-LM also employs an auxiliary Transformer to construct the corrupted text sequence, as in Eqn. (1), but it introduces two new pretraining tasks upon the corrupted sequences to address the challenges previously described. In the rest of this section, we present these two tasks and then the detailed configurations of COCO-LM. Its framework is illustrated in Figure 2.
|
| 94 |
+
|
| 95 |
+
Corrective Language Modeling (CLM) trains the main Transformer to recover the original tokens, given the corrupted text sequence XMLM:
|
| 96 |
+
|
| 97 |
+
$$
|
| 98 |
+
\begin{array} { r } { X ^ { \mathrm { M L M } } \xrightarrow { \mathrm { M a i n ~ T r a n s f o r m e r } } H \xrightarrow { \mathrm { C L M H e a d } } p _ { \mathrm { C L M } } ( x | h _ { i } ) . } \end{array}
|
| 99 |
+
$$
|
| 100 |
+
|
| 101 |
+
The CLM Head uses the hidden representations $\pmb { H }$ to output a language modeling probability, instead of a binary classification score. The forward pass of the CLM Head is the same as All-Token MLM, a variation of ELECTRA [7] that consists of a language modeling layer and a binary classification layer for the copy mechanism:
|
| 102 |
+
|
| 103 |
+
$$
|
| 104 |
+
\begin{array} { r l } & { p _ { \mathrm { L M } } ( x _ { i } | h _ { i } ) = \mathbb { 1 } \left( x _ { i } = x _ { i } ^ { \mathrm { M L M } } \right) p _ { \mathrm { c o p y } } ( 1 | h _ { i } ) + p _ { \mathrm { c o p y } } ( 0 | h _ { i } ) \frac { \exp ( x _ { i } ^ { \top } h _ { i } ) } { \sum _ { x _ { t } \in V } \exp ( x _ { t } ^ { \top } h _ { i } ) } , } \\ & { p _ { \mathrm { c o p y } } ( y _ { i } | h _ { i } ) = \exp ( y _ { i } \cdot w _ { \mathrm { c o p y } } ^ { \top } h _ { i } ) / \left( \exp ( w _ { \mathrm { c o p y } } ^ { \top } h _ { i } ) + 1 \right) , } \end{array}
|
| 105 |
+
$$
|
| 106 |
+
|
| 107 |
+
where ${ \pmb w } _ { \mathrm { c o p y } }$ is a learnable weight and $p _ { \mathrm { c o p y } } ( y _ { i } | h _ { i } )$ is the copy mechanism ( $y _ { i } = 1$ when the input token is original and can be directly copied to the output; $y _ { i } = 0$ when the input token needs to be corrected to another token from the vocabulary).
|
| 108 |
+
|
| 109 |
+
In ELECTRA, All-Token MLM performs worse than RTD [7]. Language modeling on the corrupted text sequence $X ^ { \mathrm { M L M } }$ is hard as the replaced tokens from the auxiliary model are more deceiving than [MASK]. To improve the language model learning, different from All-Token MLM, CLM employs a
|
| 110 |
+
|
| 111 |
+
multi-task setup that combines the RTD task to explicitly train the copy mechanism $p _ { \mathrm { c o p y } } ( \cdot )$
|
| 112 |
+
|
| 113 |
+
$$
|
| 114 |
+
\begin{array} { l } { \mathcal { L } _ { \mathrm { c o p y } } = - \mathbb { E } \left( \displaystyle \sum _ { i = 1 } ^ { n } \mathbb { 1 } \left( x _ { i } ^ { \mathrm { M L M } } = x _ { i } ^ { \mathrm { o r i g } } \right) \log p _ { \mathrm { c o p y } } ( 1 | h _ { i } ) + \mathbb { 1 } \left( x _ { i } ^ { \mathrm { M L M } } \neq x _ { i } ^ { \mathrm { o r i g } } \right) \log p _ { \mathrm { c o p y } } ( 0 | h _ { i } ) \right) , \mathrm { ~ } \forall i \mathrm { ~ c o p y ~ } ( \mathbb { E } ) , } \\ { \mathcal { L } _ { \mathrm { L M } } = - \mathbb { E } \left( \displaystyle \sum _ { i \in \mathcal { M } } \log p _ { \mathrm { L M } } \left( x _ { i } ^ { \mathrm { o r i g } } | h _ { i } \right) \right) } \\ { \displaystyle \qquad = - \mathbb { E } \left( \displaystyle \sum _ { i \in \mathcal { M } } \log \left( \mathbb { 1 } \left( x _ { i } ^ { \mathrm { M L M } } = x _ { i } ^ { \mathrm { o r i g } } \right) p _ { \mathrm { c o p y } } ^ { \mathrm { s g } } ( 1 | h _ { i } ) + p _ { \mathrm { c o p y } } ^ { \mathrm { s g } } ( 0 | h _ { i } ) \frac { \exp ( x _ { i } ^ { \top } h _ { i } ) } { \sum _ { x _ { t } \in V } \exp ( x _ { t } ^ { \top } h _ { i } ) } \right) \right) , \mathrm { ~ } } \\ { \mathcal { L } _ { \mathrm { C L M } } = \lambda _ { \mathrm { c o p y } } \mathcal { L } _ { \mathrm { c o p y } } + \mathcal { L } _ { \mathrm { L M } } . } \end{array}
|
| 115 |
+
$$
|
| 116 |
+
|
| 117 |
+
The hyperparameter $\lambda _ { \mathrm { c o p y } }$ balances the weights of the two tasks. The binary cross entropy loss in Eqn. (2) explicitly trains the copy probability. We also use stop gradient (sg) to decouple the gradient backpropagation to $p _ { \mathrm { c o p y } } ( \cdot )$ from the LM task. This way, the main Transformer first learns the easier classification task and then uses it to help learn the harder LM task. The binary classification task is trained on all tokens while the language modeling task is trained only on masked positions.
|
| 118 |
+
|
| 119 |
+
CLM combines the advantages of MLM and ELECTRA: The main Transformer is trained on all tokens with the help of the binary classification task while also being able to predict words, thus enjoying the efficiency benefits of ELECTRA and preserving the language modeling benefits.
|
| 120 |
+
|
| 121 |
+
Sequence Contrastive Learning (SCL) forms a contrastive learning objective upon the sequence embeddings to learn more robust representations. Broadly, contrastive learning is to align a positive pair of instances, often different views of the same information [4, 34], in contrast to unrelated negative instances [22, 60]. The different views are often obtained by applying data augmentations on the same input, for example, rotation, cropping, and blurring on visual representations [4, 34], so that the neural networks can learn representations robust to these data alterations.
|
| 122 |
+
|
| 123 |
+
In COCO-LM, the corrupted sequence $X ^ { \mathrm { M L M } }$ already provides a form of data augmentation. We pair it with another augmentation, $X ^ { \mathrm { c r o p } }$ , a randomly cropped contiguous span of $X ^ { \mathrm { o r i g } }$ (the length of $X ^ { \mathrm { c r o p } }$ is $9 0 \%$ of $X ^ { \mathrm { o r i g } }$ so that the major sequence meaning is preserved), to construct the positive pair and to contrast with random negatives.
|
| 124 |
+
|
| 125 |
+
Specifically, a training batch $B$ in SCL includes a random set of corrupted and cropped sequences: 1contrastive pair $B = \{ ( X _ { 1 } ^ { \mathrm { M L M } } , X _ { 1 } ^ { \mathrm { c r o p } } ) , \dots , ( X _ { N } ^ { \mathrm { M L M } } , X _ { N } ^ { \mathrm { c r o p } } ) \}$ $( X , X ^ { + } )$ N N consists of either $( X _ { k } ^ { \mathrm { M L M } } , X _ { k } ^ { \mathrm { c r o p } } )$ , with $X _ { k } ^ { \mathrm { M L M } }$ and or $X _ { k } ^ { \mathrm { c r o p } }$ $( \ddot { X } _ { k } ^ { \mathrm { c r o p } } , X _ { k } ^ { \mathrm { M L M } } )$ originated from $X _ { k } ^ { \mathrm { o r i g } }$ . A positive trast). The negative instances are all the remaining sequences in the batch $\ddot { B } ^ { - } = B \setminus \{ ( X , X ^ { + } ) \}$ contrastive loss is formulated as:
|
| 126 |
+
|
| 127 |
+
$$
|
| 128 |
+
\begin{array} { r l r } { { \mathcal { L } _ { \mathrm { S C L } } = - \mathbb { E } ( \log \frac { \exp ( \cos ( s , s ^ { + } ) / \tau ) } { \exp ( \cos ( s , s ^ { + } ) / \tau ) + \sum _ { X ^ { - } \in B ^ { - } } \exp ( \cos ( s , s ^ { - } ) / \tau ) } ) , } } \\ & { } & { = - \mathbb { E } ( \cos ( s , s ^ { + } ) / \tau - \log ( \exp ( \cos ( s , s ^ { + } ) / \tau ) + \sum _ { X ^ { - } \in B ^ { - } } \exp ( \cos ( s , s ^ { - } ) / \tau ) ) ) , } \end{array}
|
| 129 |
+
$$
|
| 130 |
+
|
| 131 |
+
where $s , s ^ { + } , s ^ { - }$ are the representations of $X , X ^ { + } , X ^ { - }$ , respectively, from the main Transformer (i.e., $\boldsymbol { h } _ { \mathrm { [ C L S ] } } ,$ ). The similarity metric is cosine similarity (cos) and the temperature $\tau$ is set to $1$ .
|
| 132 |
+
|
| 133 |
+
As shown in Wang et al. [55], the first term in Eqn. (3) $( \cos ( s , s ^ { + } ) )$ improves alignment of the space. It encourages representations to be robust to the corruptions and the alterations on the original text. The second term in Eqn. (3) promotes uniformity. It pushes unrelated sequences apart in the representation space and ensures low cosine similarity between random data points. Several studies have observed improved generalization ability from better alignment and uniformity [16, 37, 55].
|
| 134 |
+
|
| 135 |
+
Aligning $X ^ { \mathrm { M L M } }$ with $X ^ { \mathrm { c r o p } }$ requires the main Transformer to produce sequence representations robust to both token-level (i.e., MLM replacements) and sequence-level (i.e., cropping) alterations. The model is thus encouraged to reason more using partially altered sequences to recover the original information.
|
| 136 |
+
|
| 137 |
+
Overall Training. COCO-LM uses the following loss function:
|
| 138 |
+
|
| 139 |
+
$$
|
| 140 |
+
\mathcal { L } _ { \mathrm { C O C O - L M } } = \mathcal { L } _ { \mathrm { M L M } } ^ { \mathrm { A u x . } } + \mathcal { L } _ { \mathrm { C L M } } ^ { \mathrm { M a i n } } + \mathcal { L } _ { \mathrm { S C L } } ^ { \mathrm { M a i n } } .
|
| 141 |
+
$$
|
| 142 |
+
|
| 143 |
+
The auxiliary Transformer is pretrained by masked language modeling (MLM) and generates corrupted sequences. The main Transformer is pretrained to correct the corruption (CLM) and to contrast the corrupted sequences with the cropped sequences (SCL). The two Transformers are pretrained jointly with the loss in Eqn. (4). The main Transformer is used in downstream applications.
|
| 144 |
+
|
| 145 |
+
Network Configurations. Similar to ELECTRA, the auxiliary Transformer is smaller than the main model, but we use different configurations in the auxiliary model: (1) We reduce the number of layers to $1 / 3$ or $1 / 4$ (under base or large model setup, respectively) but keep its hidden dimension the same with the main model, instead of shrinking its hidden dimensions; (2) We disable dropout in it when sampling replacement tokens. We find such configurations empirically more effective and use them as the backbone of COCO-LM. The main Transformer follows the standard architecture of BERT/ELECTRA and can be easily adopted by downstream application pipelines with almost no changes.
|
| 146 |
+
|
| 147 |
+
# 4 Experimental Setup
|
| 148 |
+
|
| 149 |
+
Pretraining Settings. We employ three standard settings, base, base $^ { + + }$ , and large $^ { + + }$ . Base is the $\mathbf { B E R T _ { B a s e } }$ training configuration [11]: Pretraining on Wikipedia and BookCorpus [63] (16 GB of texts) for 256 million samples on 512 token sequences (125K batches with 2048 batch size). We use the same corpus and 32, 768 uncased BPE vocabulary [47] as with TUPE [26].
|
| 150 |
+
|
| 151 |
+
$B a s e + +$ trains the base size model with larger corpora and/or more training steps. Following recent research [1, 31, 62], we add in OpenWebText [18], CC-News [31], and STORIES [52], to a total of 160 GB texts, and train for 4 billion (with 2048 batch size) samples [31]. We follow the prepossessing of UniLMV2 [1] and use 64, 000 cased BPE vocabulary.
|
| 152 |
+
|
| 153 |
+
$L a r g e { + + }$ uses the same training corpora as $b a s e + +$ and pretrains for 4 billion samples (2048 batch size). Its Transformer configuration is the same with BERTLarge [11].
|
| 154 |
+
|
| 155 |
+
Model Architecture. Our base/base $^ { + + }$ model uses the $\mathbf { B E R T _ { B a s e } }$ architecture [11]: 12 layer Transformer, 768 hidden size, plus T5 relative position encoding [40]. Our large $^ { + + }$ model is the same with $\mathrm { B E R T _ { L a r g e } }$ , 24 layer and 1024 hidden size, plus T5 relative position encoding [40]. Our auxiliary network uses the same hidden size but a shallow 4-layer Transformer in base/base $^ { + + }$ and a 6-layer one in $l a r g e + +$ . When generating $X ^ { \mathrm { M L M } }$ we disable dropout in the auxiliary model.
|
| 156 |
+
|
| 157 |
+
Downstream Tasks. We use the tasks included in GLUE [54] and $\mathrm { S Q u A D } 2 . 0$ reading compression [41]. Please refer to Appendix A for more details about GLUE tasks. Standard hyperparameter search in fine-tuning is performed, and the search space can be found in Appendix B. The fine-tuning protocols use the open-source implementation of TUPE [26]. The reported results are the median of five random seeds on GLUE and SQuAD.
|
| 158 |
+
|
| 159 |
+
Baselines. We compare with various pretrained models in each setting. To reduce the variance in data processing/environments, we also pretrain and fine-tune RoBERTa and ELECTRA under exactly the same setting with COCO-LM, marked with “(Ours)”. All numbers unless marked by “(Ours)” are from reported results in recent research (more details in Appendix C).
|
| 160 |
+
|
| 161 |
+
Implementation Details. Our implementation builds upon the open-source implementation from MC-BERT [61] and fairseq [35]. More implementation details are mentioned in Appendix D.
|
| 162 |
+
|
| 163 |
+
# 5 Evaluation Results
|
| 164 |
+
|
| 165 |
+
Three groups of experiments are conducted to evaluate COCO-LM and its two new pretraining tasks.
|
| 166 |
+
|
| 167 |
+
# 5.1 Overall Results and Ablations
|
| 168 |
+
|
| 169 |
+
Overall Results are listed in Table 1. Under all three settings, COCO-LM outperforms all recent state-of-the-art pretraining models on GLUE average and SQuAD. It improves the state-of-the-art GLUE score by about one point under all three settings. COCO-LM also enjoys better parameter efficiency. Using less than $1 0 \%$ of Megatron’s parameters, $\mathrm { C O C O - L M _ { L a r g e + + } }$ matches the MNLI accuracy of Megatron3.9B, one of the largest pretrained BERT-style encoders.
|
| 170 |
+
|
| 171 |
+
<table><tr><td rowspan="2">Model</td><td rowspan="2">Params</td><td colspan="9">GLUE Single Task</td><td colspan="2">SQuAD 2.0</td></tr><tr><td>MNLI-(m/mm)</td><td>QQP</td><td>QNLI</td><td>SST-2</td><td>CoLA</td><td>RTE</td><td>MRPC</td><td>STS-B</td><td>AVG</td><td>EM</td><td>F1</td></tr><tr><td colspan="10">Base Setting: BERT Base Size,Wikipedia + Book Corpus (16GB)</td><td></td><td></td><td></td></tr><tr><td>BERT[11]</td><td>110M</td><td>84.5/-</td><td>91.3</td><td>91.7</td><td>93.2</td><td>58.9</td><td>68.6</td><td>87.3</td><td>89.5</td><td>83.1</td><td>73.7</td><td>76.3</td></tr><tr><td>RoBERTa [31]</td><td>125M</td><td>84.7/-</td><td>1</td><td>1</td><td>92.7</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td><td></td><td>79.7</td></tr><tr><td>XLNet [62]</td><td>110M</td><td>85.8/85.4</td><td>1</td><td>1</td><td>92.7</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td><td>78.5</td><td>81.3</td></tr><tr><td>ELECTRA [7]</td><td>110M</td><td>86.0/85.3</td><td>90.0</td><td>91.9</td><td>93.4</td><td>64.3</td><td>70.8</td><td>84.9</td><td>89.1</td><td>83.7</td><td>80.5</td><td>83.3</td></tr><tr><td>MC-BERT [61]</td><td>110M</td><td>85.7/85.2</td><td>89.7</td><td>91.3</td><td>92.3</td><td>62.1</td><td>75.0</td><td>86.0</td><td>88.0</td><td>83.7</td><td></td><td></td></tr><tr><td>DeBERTa [23]</td><td>134M</td><td>86.3/86.2</td><td>二</td><td>一</td><td>一</td><td>一</td><td>一</td><td>一</td><td>一</td><td></td><td>79.3</td><td>82.5</td></tr><tr><td>TUPE [26]</td><td>110M</td><td>86.2/86.2</td><td>91.3</td><td>92.2</td><td>93.3</td><td>63.6</td><td>73.6</td><td>89.9</td><td>89.2</td><td>84.9</td><td>1</td><td>1</td></tr><tr><td>RoBERTa (Ours)</td><td>110M</td><td>85.8/85.5</td><td>91.3</td><td>92.0</td><td>93.7</td><td>60.1</td><td>68.2</td><td>87.3</td><td>88.5</td><td>83.3</td><td>77.7</td><td>80.5</td></tr><tr><td>ELECTRA (Ours)</td><td>110M</td><td>86.9/86.7</td><td>91.9</td><td>92.6</td><td>93.6</td><td>66.2</td><td>75.1</td><td>88.2</td><td>89.7</td><td>85.5</td><td>79.7</td><td>82.6</td></tr><tr><td>COCO-LM</td><td>110M</td><td>88.5/88.3</td><td>92.0</td><td>93.1</td><td>93.2</td><td>63.9</td><td>84.8</td><td>91.4</td><td>90.3</td><td>87.2</td><td>82.4</td><td>85.2</td></tr><tr><td colspan="10">Base++ Seting: BERT Base Size,Bigger Training Data,and/or More Training Steps</td><td></td><td></td><td></td></tr><tr><td>XLNet [62]</td><td>110M</td><td>86.8/-</td><td>91.4</td><td>91.7</td><td>94.7</td><td>60.2</td><td>74.0</td><td>88.2</td><td>89.5</td><td>84.6</td><td>80.2</td><td></td></tr><tr><td>RoBERTa [31]</td><td>125M</td><td>87.6/-</td><td>91.9</td><td>92.8</td><td>94.8</td><td>63.6</td><td>78.7</td><td>90.2</td><td>91.2</td><td>86.4</td><td>80.5</td><td>83.7</td></tr><tr><td>UniLMV2[1]</td><td>110M</td><td>88.5/-</td><td>91.7</td><td>93.5</td><td>95.1</td><td>65.2</td><td>81.3</td><td>91.8</td><td>91.0</td><td>87.1</td><td>83.3</td><td>86.1</td></tr><tr><td>DeBERTa [23]</td><td>134M</td><td>88.8/88.5</td><td>一</td><td>一</td><td>一</td><td>1</td><td>一</td><td>一</td><td>一</td><td></td><td>83.1</td><td>86.2</td></tr><tr><td>CLEAR [59]</td><td>110M</td><td>86.7/-</td><td>90.0</td><td>92.9</td><td>94.5</td><td>64.3</td><td>78.3</td><td>89.2</td><td>89.8</td><td>85.7</td><td>一</td><td>1</td></tr><tr><td>COCO-LM</td><td>134M</td><td>90.2/90.0</td><td>92.2</td><td>94.2</td><td>94.6</td><td>67.3</td><td>87.4</td><td>91.2</td><td>91.8</td><td>88.6</td><td>85.4</td><td>88.1</td></tr><tr><td colspan="10">Large++ Setting: BERTLarge Size,Bigger Training Data,and More Training Steps</td><td></td><td></td><td></td></tr><tr><td>XLNet [62]</td><td>360M</td><td>90.8/90.8</td><td>92.3</td><td>94.9</td><td>97.0</td><td>69.0</td><td>85.9</td><td>90.8</td><td>92.5</td><td>89.2</td><td>87.9</td><td>90.6</td></tr><tr><td>RoBERTa [31]</td><td>356M</td><td>90.2/90.2</td><td>92.2</td><td>94.7</td><td>96.4</td><td>68.0</td><td>86.6</td><td>90.9</td><td>92.4</td><td>88.9</td><td>86.5</td><td>89.4</td></tr><tr><td>ELECTRA[7]</td><td>335M</td><td>90.9/-</td><td>92.4</td><td>95.0</td><td>96.9</td><td>69.1</td><td>88.0</td><td>90.8</td><td>92.6</td><td>89.4</td><td>88.0</td><td>90.6</td></tr><tr><td>DeBERTa [23]</td><td>384M</td><td>91.1/91.1</td><td>92.3</td><td>95.3</td><td>96.8</td><td>70.5</td><td>1</td><td>1</td><td>1</td><td>1</td><td>88.0</td><td>90.7</td></tr><tr><td>COCO-LM</td><td>367M</td><td>91.4/91.6</td><td>92.8</td><td>95.7</td><td>96.9</td><td>73.9</td><td>91.0</td><td>92.2</td><td>92.7</td><td>90.8</td><td>88.2</td><td>91.0</td></tr><tr><td>Megatron1.3B [49]</td><td>1.3B</td><td>90.9/91.0</td><td>92.6</td><td>1</td><td>1</td><td></td><td>一</td><td></td><td>1</td><td></td><td>87.1</td><td>90.2</td></tr><tr><td>Megatron3.9B [49]</td><td>3.9B</td><td>91.4/91.4</td><td>92.7</td><td>1</td><td></td><td>1</td><td></td><td></td><td>1</td><td></td><td>88.5</td><td>91.2</td></tr></table>
|
| 172 |
+
|
| 173 |
+
Table 1: Results on GLUE and SQuAD 2.0 development set. All results are single-task, single-model fine-tuning. Results not available in public reports are marked as “–”. DeBERTa reported RTE, MRPC and STS-B results by fine-tuning from MNLI checkpoints which are not single-task results. We use Spearman correlation for STS, Matthews correlation for CoLA, and accuracy for the rest on GLUE. AVG is the average of the eight tasks on GLUE. All baseline results unless marked by (Ours) are reported by previous research.
|
| 174 |
+
|
| 175 |
+
<table><tr><td>Model</td><td>Params</td><td>MNLI-(m/mm)</td><td>QQP</td><td>QNLI</td><td>SST-2</td><td>CoLA</td><td>RTE</td><td>MRPC</td><td>STS-B</td><td>AVG</td></tr><tr><td colspan="9">Base/Base++ Setting: BERT Base Size</td><td></td></tr><tr><td>BERTBase</td><td>110M</td><td>84.6/83.4</td><td>89.2</td><td>90.5</td><td>93.5</td><td>52.1</td><td>66.4</td><td>84.8</td><td>85.8</td><td>80.8</td></tr><tr><td>ELECTRABase++</td><td>110M</td><td>88.5/88.0</td><td>89.5</td><td>93.1</td><td>96.0</td><td>64.6</td><td>75.2</td><td>88.1</td><td>90.2</td><td>85.6</td></tr><tr><td>COCO-LMBase++</td><td>134M</td><td>89.8/89.3</td><td>89.8</td><td>94.2</td><td>95.6</td><td>68.6</td><td>82.3</td><td>88.5</td><td>90.3</td><td>87.4</td></tr><tr><td colspan="9">Large/Large++ Seting: BERT Large Size</td><td></td></tr><tr><td>BERTLarge</td><td>335M</td><td>86.7/85.9</td><td>89.3</td><td>92.7</td><td>94.9</td><td>60.5</td><td>70.1</td><td>85.4</td><td>86.5</td><td>83.2</td></tr><tr><td>ELECTRALarge++</td><td>335M</td><td>90.7/90.2</td><td>90.4</td><td>95.5</td><td>96.7</td><td>68.1</td><td>86.1</td><td>89.2</td><td>91.7</td><td>88.5</td></tr><tr><td>COCO-LMLarge++</td><td>367M</td><td>91.6/91.1</td><td>90.5</td><td>95.8</td><td>96.7</td><td>70.5</td><td>89.2</td><td>88.4</td><td>91.8</td><td>89.3</td></tr></table>
|
| 176 |
+
|
| 177 |
+
Table 2: GLUE test set results obtained from the GLUE leaderboard. We perform hyperparameter search for each task with ten random seeds and use the best development set model for test predictions. All results are from vanilla single-task fine-tuning (no ensemble, task-specific tricks, etc.).
|
| 178 |
+
|
| 179 |
+
Table 2 shows GLUE test set results which further confirm the advantages of COCO-LM over previous methods.
|
| 180 |
+
|
| 181 |
+
Efficiency. In downstream tasks, the efficiency of COCO-LM is the same with BERT. In pretraining, the auxiliary model and SCL introduce extra cost. However, as shown in Figure 3, COCO-LM is more efficient in GPU hours. It outperforms RoBERTa & ELECTRA by $1 +$ points on MNLI with the same GPU hours and reaches their accuracy with around $6 0 \%$ & $5 0 \%$ GPU hours, respectively.
|
| 182 |
+
|
| 183 |
+
Ablation Studies. Table 3 shows the ablations of COCO-LM under the base setting on GLUE DEV.
|
| 184 |
+
|
| 185 |
+
Pretraining Task. With only RTD, our backbone model with the shallow auxiliary Transformer is quite effective. CLM and SCL both provide additional improvements on MNLI and GLUE average. Their advantages are better observed on different tasks, for example, CLM on MNLI-mm and SCL on RTE and MRPC. Combining the two in COCO-LM provides better overall effectiveness. In later experiments, we further analyze the benefits of these two tasks.
|
| 186 |
+
|
| 187 |
+
<table><tr><td>Group</td><td>Method</td><td>MNLI-(m/mm)</td><td>QQP</td><td>QNLI</td><td>SST-2</td><td>CoLA</td><td>RTE</td><td>MRPC</td><td>STS-B</td><td>AVG</td></tr><tr><td></td><td>COCO-LMBase</td><td>88.5/88.3</td><td>92.0</td><td>93.1</td><td>93.2</td><td>63.9</td><td>84.8</td><td>91.4</td><td>90.3</td><td>87.2</td></tr><tr><td rowspan="3">Pretraining Task</td><td>RTDOnly</td><td>88.4/88.2</td><td>92.1</td><td>93.5</td><td>92.7</td><td>67.3</td><td>80.5</td><td>89.0</td><td>90.9</td><td>86.8</td></tr><tr><td>CLMOnly</td><td>88.6/88.4</td><td>92.0</td><td>93.2</td><td>93.7</td><td>67.4</td><td>80.1</td><td>90.0</td><td>90.4</td><td>86.9</td></tr><tr><td>SCL +RTD</td><td>88.6/88.2</td><td>92.1</td><td>93.5</td><td>93.8</td><td>64.3</td><td>82.7</td><td>90.2</td><td>90.6</td><td>86.9</td></tr><tr><td>Network Seting</td><td>w/o. Rel-Pos w. ELECTRA's Auxiliary</td><td>88.2/87.7</td><td>92.2</td><td>93.4</td><td>93.7</td><td>68.8</td><td>82.7</td><td>91.2</td><td>90.6</td><td>87.6</td></tr><tr><td rowspan="2">Training</td><td></td><td>88.0/87.7</td><td>91.9</td><td>92.7</td><td>93.5</td><td>64.3</td><td>81.2</td><td>89.5</td><td>89.7</td><td>86.3</td></tr><tr><td>w.Random Replacements</td><td>84.9/84.7</td><td>91.4</td><td>91.1</td><td>91.4</td><td>41.6</td><td>70.0</td><td>87.3</td><td>87.1</td><td>80.6</td></tr><tr><td>Signal</td><td>w. Converged Auxiliary</td><td>88.3/88.1</td><td>92.0</td><td>92.8</td><td>94.3</td><td>64.2</td><td>78.3</td><td>90.4</td><td>90.2</td><td>86.3</td></tr><tr><td rowspan="3">CLM Setup</td><td>All-Token LM Only</td><td>87.2/87.0</td><td></td><td>92.6</td><td>93.7</td><td></td><td></td><td>88.5</td><td>89.7</td><td>84.7</td></tr><tr><td>CLM w/o. Copy</td><td>88.0/87.9</td><td>91.8 91.8</td><td>93.1</td><td>94.4</td><td>60.6 66.6</td><td>74.0 76.9</td><td>89.5</td><td>90.1</td><td>86.3</td></tr><tr><td>CLM w/o. Stop-grad</td><td>88.5/88.2</td><td>92.0</td><td>92.9</td><td>94.3</td><td>66.5</td><td>80.9</td><td>90.0</td><td>90.6</td><td>86.9</td></tr></table>
|
| 188 |
+
|
| 189 |
+
Table 3: Ablations on GLUE Dev. that eliminate (w/o.), keep (Only) or switch (w.) one component.
|
| 190 |
+
|
| 191 |
+

|
| 192 |
+
Figure 3: $\mathrm { C O C O - L M _ { B a s e } }$ on MNLI Dev. ( $y$ -axes) at different pretraining hours on four DGX-2 nodes (64 V100 GPUs). The final training hours and accuracy of RoBERTa (Ours) and ELECTRA (Ours) measured in the same settings are marked.
|
| 193 |
+
|
| 194 |
+

|
| 195 |
+
Figure 4: The performance of COCO- $\mathbf { \cdot L M _ { B a s e } }$ when pretrained with different crop fractions. The $x$ -axis is the fraction of $X ^ { \mathrm { o r i g } }$ being kept (no cropping is $1 0 0 \%$ ).
|
| 196 |
+
|
| 197 |
+
Architecture. Removing relative position encoding (Rel-Pos) leads to better numbers on some tasks but significantly hurts MNLI. Using a shallow auxiliary network and keeping the same hidden dimension (768) is more effective than ELECTRA’s 12-layer but 256-hidden dimension generator.
|
| 198 |
+
|
| 199 |
+
Pretraining Signal Construction. Using randomly replaced tokens to corrupt text sequence hurts significantly. Using a converged auxiliary network to pretrain the main model also hurts. It is better to pretrain the two Transformers together, as the auxiliary model gradually increases the difficulty of the corrupted sequences and provides a natural learning curriculum for the main Transformer.
|
| 200 |
+
|
| 201 |
+
CLM Setup. Disabling the multi-task learning and using All-Token MLM [7] reduces model accuracy. The copy mechanism is effective. The benefits of the stop gradient operation are more on stability (preventing training divergence).
|
| 202 |
+
|
| 203 |
+
# 5.2 Analyses of Contrastive Learning with SCL
|
| 204 |
+
|
| 205 |
+
This group of experiments analyzes the behavior of SCL. All experiments use the base setting.
|
| 206 |
+
|
| 207 |
+
Ablation on Data Augmentation. Figure 4 shows the effects of the cropping operation when forming positive SCL pairs with the corrupted sequence. Using the original sequence results in worse GLUE accuracy. It is less informative as the model no longer needs to learn representations robust to sequence-level alteration. Cropping too much (e.g., only keeping $7 0 \%$ of the original sequence), may hurt as it can alter the semantics too much. Empirically a simple alteration works the best, similar to the observations in recent research [4, 16, 22].
|
| 208 |
+
|
| 209 |
+
Alignment and Uniformity. Figure 5 plots the distribution of cosine similarities between random sequence pairs and similar ones using representations pretrained by COCO-LM. The representation space from COCO-LM is drastically different from those in Figure 1. With COCO-LM, similar pairs are more aligned and random pairs are distributed more uniformly. Many similar pairs have near 1 cosine similarity and are clearly separated from random pairs which center around 0. The t-SNE [9] plot in Figure 6 further demonstrates the benefits of SCL. The similar sentence pairs (marked by same shapes) are aligned closer when pretrained with SCL. Their average cosine similarity is 0.925 when pretrained with SCL, while is 0.863 without SCL. This better alignment and uniformity is achieved by COCO-LM with SCL via pretraining, without using task-specific data nor supervised labels.
|
| 210 |
+
|
| 211 |
+

|
| 212 |
+
Figure 5: Cosine similarity of sequence pairs randomly sampled from pretraining corpus and most similar pairs from STS-B using [CLS] from COCO- $\mathrm { L M } _ { \mathrm { B a s e } }$ .
|
| 213 |
+
|
| 214 |
+

|
| 215 |
+
Figure 6: The t-SNE of sequence representations learned with or without SCL. The points are sampled from the most semantically similar sentences pairs from STS-B (with 5-score labels). The [CLS] embeddings are not fine-tuned. Some randomly selected similar pairs are marked by same shapes.
|
| 216 |
+
|
| 217 |
+

|
| 218 |
+
Figure 7: Analyses of SCL. Figs. (a) and (b) show the average cosine similarity between the [CLS] embeddings of positive and negative contrastive pairs during pretraining. Figs. (c) and (d) show the few-shot accuracy on MNLI with different fractions of MNLI training set used ( $\scriptstyle { \dot { x } }$ -axes). The error bars mark the max/min and the solid lines are the average of five fine-tuning runs.
|
| 219 |
+
|
| 220 |
+
Regularizing the Representation Learning for Better Few-Shot Ability. One would expect any pretrained Transformers to easily align a pair of corrupted sequence and cropped sequence as the two share about $8 0 \%$ tokens. However, as shown in Figure 7a, that is not the case: Without SCL, the cosine similarity of the positive pairs is even lower than random negatives. SCL is necessary to regularize the representation space and to reduce the risk of degeneration (Figure 7b).
|
| 221 |
+
|
| 222 |
+
Similar to empirical observations and theoretical analyses in recent research [14, 16, 55], a more regularized representation space results in better generalization ability in scenarios with limited labels. Figure $\mathrm { 7 c }$ and 7d show the results when COCO-LM are trained (via standard fine-tuning) with only a fraction of MNLI labels. The improvements brought by SCL are more significant when fewer fine-tuning labels are available. With $1 \%$ MNLI labels, pretraining with SCL improves MNLI- $. \mathrm { m } / \mathrm { m m }$ accuracy by $0 . 8 / 0 . 5$ compared to that without SCL. Using only $1 0 \% / 2 0 \%$ labels, COCO-LM with SCL reaches similar MNLI accuracy with RoBERTa (Ours)/ELECTRA (Ours) fine-tuned with all labels, respectively.
|
| 223 |
+
|
| 224 |
+
# 5.3 Analyses of Language Modeling with CLM
|
| 225 |
+
|
| 226 |
+
The last group of experiments studies the effectiveness and benefits of CLM.
|
| 227 |
+
|
| 228 |
+
Ablations on Training Configurations. Figure 8 illustrates pretraining process with CLM and All-Token MLM. The plots demonstrate the difficulty of language modeling upon corrupted text sequences. It is quite an unbalanced task. For the majority of the tokens (Original) the task is simply to copy its input at the same position. For the replaced tokens $( 7 - 8 \%$ total), however, the model needs to detect the abnormality brought by the auxiliary model and recover the original token. Implicitly training the copy mechanism as part of the hard LM task is not effective: The copy accuracy of All-Token MLM is much lower, and thus the LM head may confuse original tokens with replaced ones. As shown in Table 3 and ELECTRA [7], pretraining with All-Token MLM performs worse than using the RTD task, though the latter is equivalent to only training the copy mechanism. The multi-task learning of CLM is necessary for the main Transformer to stably learn the language modeling task upon the corrupted text sequence.
|
| 229 |
+
|
| 230 |
+

|
| 231 |
+
Figure 8: The copying accuracy and the language modeling accuracy $y$ -axes) of CLM and All-Token MLM at different pretraining steps ( $x$ -axes, in 10K scale). The accuracy is averaged on tokens that are replaced by the auxiliary Transformer (Replaced) or those from the original input text (Original).
|
| 232 |
+
|
| 233 |
+
Prompt-Based Fine-Tuning with CLM. Table 4 includes the prompt-based fine-tuning experiments on MNLI for RoBERTa and COCO-LM under $b a s e + +$ and large $^ { + + }$ sizes, following the same few-shot manual prompt fine-tuning with demonstration setup in LM-BFF [15]. We use $\{ 3 e - 6 , 4 e - 6 , 5 e - 6 \}$ for the learning rate search of COCO-LM base++/large++ model, with everything else kept same as described in LM-BFF. With exactly the same pipeline, COCOLM outperforms RoBERTa under both $b a s e + +$ and $l a r g e + +$ sizes by significant margins on MNLI$\mathrm { m } / \mathrm { m m }$ . Such observations are interesting as COCOLM’s main Transformer does not even see any
|
| 234 |
+
|
| 235 |
+
<table><tr><td>Model</td><td>MNLI-m</td><td>MNLI-mm</td></tr><tr><td>RoBERTaBase++</td><td>60.1 (1.5)</td><td>61.8 (1.2)</td></tr><tr><td>COCO-LMBase++</td><td>66.5 (2.1)</td><td>68.0 (2.3)</td></tr><tr><td>RoBERTaLarge++</td><td>70.7 (1.3)</td><td>72.0 (1.2)</td></tr><tr><td>COCO-LMLarge++</td><td>72.0 (1.5)</td><td>73.3 (1.1)</td></tr></table>
|
| 236 |
+
|
| 237 |
+
Table 4: Few-shot prompt-based fine-tuning using RoBERTa and COCO-LM trained on 16 samples per class. Mean (and standard deviation) accuracy results over 5 different splits on MNLI- $. \mathrm { m } / \mathrm { m m }$ are shown.
|
| 238 |
+
|
| 239 |
+
[MASK] tokens during pretraining but still performs well on predicting masked tokens for promptbased learning. Note that ELECTRA and COCO-LM variants without the CLM task are not applicable: Their main Transformers are not pretrained by language modeling tasks (thus no language modeling capability is learned to generate prompt label words). This points out the importance, if not necessity, of COCO-LM in the family of ELECTRA-style pretraining models. With the benefits and rapid developments of prompt-based approaches, the lack of language modeling capability is going to limit the potential of ELECTRA’s self-supervised learning framework in many real-world scenarios. COCO-LM not only addresses this limitation but also provides better prompt-based learning results.
|
| 240 |
+
|
| 241 |
+
# 6 Conclusions and Future Work
|
| 242 |
+
|
| 243 |
+
In this paper, we present COCO-LM, which pretrains language models using Corrective Language Modeling and Sequence Contrastive Learning upon corrupted text sequences. With standard pretraining data and Transformer architectures, COCO-LM improves the accuracy on the GLUE and SQuAD benchmarks, while also being more efficient in utilizing pretraining computing resources and network parameters.
|
| 244 |
+
|
| 245 |
+
One limitation of this work is that the contrastive pairs are constructed by simple cropping and MLM replacements. Recent studies have shown the effectiveness of advanced data augmentation techniques in fine-tuning language models [16, 38, 51]. A future research direction is to explore better ways to construct contrastive pairs in language model pretraining.
|
| 246 |
+
|
| 247 |
+
Despite the empirical advantage of this auxiliary-main dual model framework, the auxiliary Transformer training is not influenced by the main Transformer nor learns to generate the optimal pretraining signals for the main model. To better understand and tailor the training of the auxiliary model to the main model is another important future research direction.
|
| 248 |
+
|
| 249 |
+
# Acknowledgments
|
| 250 |
+
|
| 251 |
+
We sincerely thank Guolin Ke for discussions and advice on model implementation. We also thank anonymous reviewers for valuable and insightful feedback, especially the suggestion of adding prompt-based fine-tuning experiments.
|
| 252 |
+
|
| 253 |
+
# References
|
| 254 |
+
|
| 255 |
+
[1] Hangbo Bao, Li Dong, Furu Wei, Wenhui Wang, Nan Yang, Xiaodong Liu, Yu Wang, Songhao Piao, Jianfeng Gao, Ming Zhou, and Hsiao-Wuen Hon. UniLMv2: Pseudo-masked language models for unified language model pre-training. In ICML, 2020. [2] Luisa Bentivogli, Peter Clark, Ido Dagan, and Danilo Giampiccolo. The fifth pascal recognizing textual entailment challenge. In TAC, 2009. [3] Daniel Cer, Mona Diab, Eneko Agirre, Iñigo Lopez-Gazpio, and Lucia Specia. Semeval-2017 task 1: Semantic textual similarity multilingual and crosslingual focused evaluation. In International Workshop on Semantic Evaluation (SemEval), 2017.
|
| 256 |
+
[4] Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In ICML, 2020. [5] Kevin Clark, Urvashi Khandelwal, Omer Levy, and Christopher D. Manning. What does BERT look at? an analysis of BERT’s attention. In ACL Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP, 2019. [6] Kevin Clark, Minh-Thang Luong, Quoc Le, and Christopher D Manning. Pre-training transformers as energy-based cloze models. In EMNLP, 2020. [7] 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. [8] Peter Clark, Oyvind Tafjord, and Kyle Richardson. Transformers as soft reasoners over language. In IJCAI, 2020.
|
| 257 |
+
[9] Andy Coenen, Emily Reif, Ann Yuan, Been Kim, Adam Pearce, Fernanda Viégas, and Martin Wattenberg. Visualizing and measuring the geometry of BERT. In NeurIPS, 2019.
|
| 258 |
+
[10] Ido Dagan, Oren Glickman, and Bernardo Magnini. The pascal recognising textual entailment challenge. In Machine Learning Challenges Workshop, 2005.
|
| 259 |
+
[11] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. In NAACL-HLT, 2019.
|
| 260 |
+
[12] William B Dolan and Chris Brockett. Automatically constructing a corpus of sentential paraphrases. In International Workshop on Paraphrasing (IWP), 2005.
|
| 261 |
+
[13] 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 NeurIPS, 2019.
|
| 262 |
+
[14] Jun Gao, Di He, Xu Tan, Tao Qin, Liwei Wang, and Tie-Yan Liu. Representation degeneration problem in training natural language generation models. In ICLR, 2019.
|
| 263 |
+
[15] Tianyu Gao, Adam Fisch, and Danqi Chen. Making pre-trained language models better few-shot learners. In ACL, 2021.
|
| 264 |
+
[16] Tianyu Gao, Xingcheng Yao, and Danqi Chen. SimCSE: Simple contrastive learning of sentence embeddings. In EMNLP, 2021.
|
| 265 |
+
[17] Danilo Giampiccolo, Bernardo Magnini, Ido Dagan, and Bill Dolan. The third pascal recognizing textual entailment challenge. In ACL-PASCAL workshop on textual entailment and paraphrasing, 2007.
|
| 266 |
+
[18] Aaron Gokaslan and Vanya Cohen. Openwebtext corpus. http://Skylion007.github.io/ OpenWebTextCorpus, 2019.
|
| 267 |
+
[19] Beliz Gunel, Jingfei Du, Alexis Conneau, and Ves Stoyanov. Supervised contrastive learning for pre-trained language model fine-tuning. In ICLR, 2021.
|
| 268 |
+
[20] Kelvin Guu, Kenton Lee, Zora Tung, Panupong Pasupat, and Ming-Wei Chang. REALM: Retrievalaugmented language model pre-training. In ICML, 2020.
|
| 269 |
+
[21] R Bar Haim, Ido Dagan, Bill Dolan, Lisa Ferro, Danilo Giampiccolo, Bernardo Magnini, and Idan Szpektor. The second pascal recognising textual entailment challenge. In PASCAL Challenges Workshop on Recognising Textual Entailment, 2006.
|
| 270 |
+
[22] Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. In CVPR, 2020.
|
| 271 |
+
[23] Pengcheng He, Xiaodong Liu, Jianfeng Gao, and Weizhu Chen. DeBERTa: Decoding-enhanced bert with disentangled attention. In ICLR, 2021.
|
| 272 |
+
[24] Mandar Joshi, Danqi Chen, Yinhan Liu, Daniel S Weld, Luke Zettlemoyer, and Omer Levy. SpanBERT: Improving pre-training by representing and predicting spans. In TACL, 2019.
|
| 273 |
+
[25] Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. Scaling laws for neural language models. arXiv preprint arXiv:2001.08361, 2020.
|
| 274 |
+
[26] Guolin Ke, Di He, and Tie-Yan Liu. Rethinking the positional encoding in language pre-training. In ICLR, 2021.
|
| 275 |
+
[27] 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 ICLR, 2020.
|
| 276 |
+
[28] Teven Le Scao and Alexander M Rush. How many data points is a prompt worth? In NAACL-HLT, 2021.
|
| 277 |
+
[29] Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Ves Stoyanov, and Luke Zettlemoyer. BART: Denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension. In ACL, 2019.
|
| 278 |
+
[30] Bohan Li, Hao Zhou, Junxian He, Mingxuan Wang, Yiming Yang, and Lei Li. On the sentence embeddings from pre-trained language models. In EMNLP, 2020.
|
| 279 |
+
[31] 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, 2019.
|
| 280 |
+
[32] Yi Luan, Jacob Eisenstein, Kristina Toutanove, and Michael Collins. Sparse, dense, and attentional representations for text retrieval. In TACL, 2021.
|
| 281 |
+
[33] Yu Meng, Yunyi Zhang, Jiaxin Huang, Chenyan Xiong, Heng Ji, Chao Zhang, and Jiawei Han. Text classification using label names only: A language model self-training approach. In EMNLP, 2020.
|
| 282 |
+
[34] Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018.
|
| 283 |
+
[35] Myle Ott, Sergey Edunov, Alexei Baevski, Angela Fan, Sam Gross, Nathan Ng, David Grangier, and Michael Auli. FAIRSEQ: A fast, extensible toolkit for sequence modeling. In NAACL-HLT Demonstrations, 2019.
|
| 284 |
+
[36] Matthew Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. Deep contextualized word representations. In NAACL-HLT, 2018.
|
| 285 |
+
[37] Senthil Purushwalkam and Abhinav Gupta. Demystifying contrastive self-supervised learning: Invariances, augmentations and dataset biases. In NeurIPS, 2020.
|
| 286 |
+
[38] Yanru Qu, Dinghan Shen, Yelong Shen, Sandra Sajeev, Jiawei Han, and Weizhu Chen. CoDA: Contrastenhanced and diversity-promoting data augmentation for natural language understanding. In ICLR, 2021.
|
| 287 |
+
[39] Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019.
|
| 288 |
+
[40] 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, 2019.
|
| 289 |
+
[41] Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. SQuAD: $^ { 1 0 0 , 0 0 0 + }$ questions for machine comprehension of text. In EMNLP, 2016.
|
| 290 |
+
[42] Anirudh Ravula, Chris Alberti, Joshua Ainslie, Li Yang, Philip Minh Pham, Qifan Wang, Santiago Ontanon, Sumit Kumar Sanghai, Vaclav Cvicek, and Zach Fisher. ETC: Encoding long and structured inputs in transformers. In EMNLP, 2020.
|
| 291 |
+
[43] Nils Reimers and Iryna Gurevych. Sentence-BERT: Sentence embeddings using siamese BERT-networks. In EMNLP, 2019.
|
| 292 |
+
[44] Adam Roberts, Colin Raffel, and Noam Shazeer. How much knowledge can you pack into the parameters of a language model? In EMNLP, 2020.
|
| 293 |
+
[45] Timo Schick and Hinrich Schütze. Exploiting cloze questions for few-shot text classification and natural language inference. In EACL, 2021.
|
| 294 |
+
[46] Timo Schick and Hinrich Schütze. It’s not just size that matters: Small language models are also few-shot learners. In NAACL-HLT, 2021.
|
| 295 |
+
[47] Rico Sennrich, Barry Haddow, and Alexandra Birch. Neural machine translation of rare words with subword units. In ACL, 2015.
|
| 296 |
+
[48] Iyer Shankar, Dandekar Nikhil, and Csernai Kornél. First Quora dataset release: Question pairs, 2017.
|
| 297 |
+
[49] 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.
|
| 298 |
+
[50] Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D Manning, Andrew $\mathrm { ~ Y ~ N ~ g ~ }$ , and Christopher Potts. Recursive deep models for semantic compositionality over a sentiment treebank. In EMNLP, 2013.
|
| 299 |
+
[51] Nandan Thakur, Nils Reimers, Johannes Daxenberger, and Iryna Gurevych. Augmented SBERT: Data augmentation method for improving bi-encoders for pairwise sentence scoring tasks. In NAACL-HLT, 2021.
|
| 300 |
+
[52] Trieu H Trinh and Quoc V Le. A simple method for commonsense reasoning. arXiv preprint arXiv:1806.02847, 2018.
|
| 301 |
+
[53] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NeurIPS, 2017.
|
| 302 |
+
[54] Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R Bowman. GLUE: A multi-task benchmark and analysis platform for natural language understanding. In EMNLP Workshop BlackboxNLP, 2018.
|
| 303 |
+
[55] Tongzhou Wang and Phillip Isola. Understanding contrastive representation learning through alignment and uniformity on the hypersphere. In ICML, 2020.
|
| 304 |
+
[56] Wei Wang, Bin Bi, Ming Yan, Chen Wu, Zuyi Bao, Jiangnan Xia, Liwei Peng, and Luo Si. StructBERT: Incorporating language structures into pre-training for deep language understanding. In ICLR, 2020.
|
| 305 |
+
[57] Alex Warstadt, Amanpreet Singh, and Samuel R Bowman. Neural network acceptability judgments. In TACL, 2019.
|
| 306 |
+
[58] Adina Williams, Nikita Nangia, and Samuel Bowman. A broad-coverage challenge corpus for sentence understanding through inference. In NAACL-HLT, 2018.
|
| 307 |
+
[59] Zhuofeng Wu, Sinong Wang, Jiatao Gu, Madian Khabsa, Fei Sun, and Hao Ma. CLEAR: Contrastive learning for sentence representation. arXiv preprint arXiv:2012.15466, 2020.
|
| 308 |
+
[60] Lee Xiong, Chenyan Xiong, Ye Li, Kwok-Fung Tang, Jialin Liu, Paul Bennett, Junaid Ahmed, and Arnold Overwijk. Approximate nearest neighbor negative contrastive learning for dense text retrieval. In ICLR, 2021.
|
| 309 |
+
[61] Zhenhui Xu, Linyuan Gong, Guolin Ke, Di He, Shuxin Zheng, Liwei Wang, Jiang Bian, and Tie-Yan Liu. MC-BERT: Efficient language pre-training via a meta controller. arXiv preprint arXiv:2006.05744, 2020.
|
| 310 |
+
[62] Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Russ R Salakhutdinov, and Quoc V Le. XLNet: Generalized autoregressive pretraining for language understanding. In NeurIPS, 2019.
|
| 311 |
+
[63] 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 ICCV, 2015.
|
vlm/train/1FvkSpWosOl/6.png
ADDED
|
Git LFS Details
|
vlm/train/4G2dEuRZ7eO/10.png
ADDED
|
Git LFS Details
|
vlm/train/4G2dEuRZ7eO/6.png
ADDED
|
Git LFS Details
|
vlm/train/V5V1vGrI2z/12.png
ADDED
|
Git LFS Details
|
vlm/train/V5V1vGrI2z/4.png
ADDED
|
Git LFS Details
|
vlm/train/V5V1vGrI2z/5.png
ADDED
|
Git LFS Details
|
vlm/train/V5V1vGrI2z/7.png
ADDED
|
Git LFS Details
|
vlm/train/V5V1vGrI2z/8.png
ADDED
|
Git LFS Details
|
vlm/train/rklFh34Kwr/0.png
ADDED
|
Git LFS Details
|
vlm/train/rklFh34Kwr/1.png
ADDED
|
Git LFS Details
|
vlm/train/rklFh34Kwr/10.png
ADDED
|
Git LFS Details
|
vlm/train/rklFh34Kwr/2.png
ADDED
|
Git LFS Details
|
vlm/train/rklFh34Kwr/3.png
ADDED
|
Git LFS Details
|
vlm/train/rklFh34Kwr/4.png
ADDED
|
Git LFS Details
|
vlm/train/rklFh34Kwr/5.png
ADDED
|
Git LFS Details
|
vlm/train/rklFh34Kwr/6.png
ADDED
|
Git LFS Details
|
vlm/train/rklFh34Kwr/7.png
ADDED
|
Git LFS Details
|
vlm/train/rklFh34Kwr/8.png
ADDED
|
Git LFS Details
|
vlm/train/rklFh34Kwr/9.png
ADDED
|
Git LFS Details
|