diff --git "a/parse/train/5FRJWsiLRmA/5FRJWsiLRmA_content_list.json" "b/parse/train/5FRJWsiLRmA/5FRJWsiLRmA_content_list.json" new file mode 100644--- /dev/null +++ "b/parse/train/5FRJWsiLRmA/5FRJWsiLRmA_content_list.json" @@ -0,0 +1,2210 @@ +[ + { + "type": "text", + "text": "RESERVOIR TRANSFORMERS ", + "text_level": 1, + "bbox": [ + 174, + 99, + 519, + 121 + ], + "page_idx": 0 + }, + { + "type": "text", + "text": "Anonymous authors Paper under double-blind review ", + "bbox": [ + 183, + 145, + 398, + 172 + ], + "page_idx": 0 + }, + { + "type": "text", + "text": "ABSTRACT ", + "text_level": 1, + "bbox": [ + 454, + 210, + 544, + 224 + ], + "page_idx": 0 + }, + { + "type": "text", + "text": "We demonstrate that transformers obtain impressive performance even when some of the layers are randomly initialized and never updated. Inspired by old and wellestablished ideas in machine learning, we explore a variety of non-linear “reservoir” layers interspersed with regular transformer layers, and show improvements in wall-clock compute time until convergence, as well as overall performance, on various machine translation and (masked) language modelling tasks. ", + "bbox": [ + 233, + 244, + 764, + 327 + ], + "page_idx": 0 + }, + { + "type": "text", + "text": "1 INTRODUCTION ", + "text_level": 1, + "bbox": [ + 176, + 361, + 334, + 377 + ], + "page_idx": 0 + }, + { + "type": "text", + "text": "Transformers (Vaswani et al., 2017) have dominated natural language processing (NLP) in recent years, from large scale machine translation (Ott et al., 2018) to pre-trained (masked) language modeling (Devlin et al., 2018; Radford et al., 2018), and are becoming more popular in other fields as well, from reinforcement learning (Vinyals et al., 2019) to speech recognition (Baevski et al., 2019) and computer vision (Carion et al., 2020). Their success is enabled in part by ever increasing computational demands, which has naturally led to an increased interest in improving their efficiency. Scalability gains in transformers could facilitate bigger, deeper networks with longer contexts (Kitaev et al., 2020; Wang et al., 2020; Beltagy et al., 2020; Kaplan et al., 2020; Tay et al., 2020b). Conversely, improved efficiency could reduce environmental costs (Strubell et al., 2019) and hopefully help democratize the technology. ", + "bbox": [ + 174, + 395, + 825, + 534 + ], + "page_idx": 0 + }, + { + "type": "text", + "text": "In this work, we explore a simple question: if some layers of the transformer are kept frozen—i.e., never updated after random initialization—can we match the performance of fully learned transformers, while being more efficient? Surprisingly, the answer is resoundingly yes; and what is more, we find that freezing layers may actually improve performance. ", + "bbox": [ + 174, + 541, + 825, + 597 + ], + "page_idx": 0 + }, + { + "type": "text", + "text": "Beyond desirable efficiency gains, random layers are interesting for several additional reasons. Fixed randomly initialized networks (Gallicchio & Scardapane, 2020) converge to Gaussian processes in the limit of infinite width (Daniely et al., 2016), have intriguing interpretations in metric learning (Rosenfeld & Tsotsos, 2019; Giryes et al., 2016), and have been shown to provide excellent “priors” either for subsequent learning (Ulyanov et al., 2018) or pruning (Frankle & Carbin, 2018). Fixed layers allow for efficient low-cost hardware implementations (Schrauwen et al., 2007) and can be characterized using only a random number generator and its seed, which might have repercussions in distributed training and enables highly efficient deployment to edge devices. The strong performance of networks with fixed layers also sheds new light on the inner workings of BERT (Devlin et al., 2018), and layer-wise interpretations of such models (Rogers et al., 2020; Tenney et al., 2019). It appears that “not all layers are created equal” (Zhang et al., 2019) is true to such an extent that some layers can simply remain random and fixed. ", + "bbox": [ + 174, + 604, + 825, + 770 + ], + "page_idx": 0 + }, + { + "type": "text", + "text": "These ideas have a long history in machine learning. By Cover’s theorem (Cover, 1965), any highdimensional non-linear transformation is more likely to be linearly separable than its lower-or-equaldimensional input space. By Johnson-Lindenstrauss (Johnson & Lindenstrauss, 1984), random projections distort Euclidean distances very little under mild assumptions, which is useful e.g. for dimensionality reduction and random indexing (Sahlgren, 2005). Fixed random layers in neural networks pre-date deep learning by far (Gamba et al., 1961; Baum, 1988). Indeed, random kernel methods have been an impactful idea in machine learning (Rahimi & Recht, 2008; 2009). ", + "bbox": [ + 174, + 777, + 823, + 875 + ], + "page_idx": 0 + }, + { + "type": "text", + "text": "One way to think of such layers is as “reservoirs” (Lukosevi ˇ cius & Jaeger, 2009), where a highly ˇ non-linear high-dimensional black box representation is provided to a lightweight “readout” network, as in echo state networks (Jaeger, 2003) and liquid state machines (Maass et al., 2002). The benefit of such an approach is that the reservoir has fixed parameters and is computationally efficient, as it can be pre-computed and does not (necessarily) require backpropagation. ", + "bbox": [ + 176, + 882, + 823, + 924 + ], + "page_idx": 0 + }, + { + "type": "text", + "text": "", + "bbox": [ + 173, + 103, + 821, + 132 + ], + "page_idx": 1 + }, + { + "type": "text", + "text": "In NLP, Wieting & Kiela (2019) showed that random sentence encoders present a strong baseline for text classification, with subsequent work showing applications in a variety of NLP tasks (Enguehard et al., 2019; Garg et al., 2020; Pilault et al., 2020). To our knowledge, this work is the first to examine this phenomenon in transformers, and the first to recursively alternate reservoirs with subsequent transformer layers acting as readout functions. We introduce “reservoir transformers”, wherein fixed random reservoir layers are interspersed with regular updateable transformer layers. The goal of this work is not necessarily to set a new state of the art, but to put our understanding of transformer models on a more solid footing by providing empirical evidence of their capabilities even when some of their parameters are fixed. Our contributions are as follows: ", + "bbox": [ + 174, + 138, + 825, + 263 + ], + "page_idx": 1 + }, + { + "type": "text", + "text": "• We introduce a new area under the convergence curve metric for measuring performanceefficiency trade-offs, and show that replacing regular transformer layers with reservoir layers leads to better results on that metric. \n• We show that the addition of reservoir layers in fact leads to improved test set generalization on a variety of tasks in a variety of settings. \nWe show that pre-trained masked language modelling architectures like BERT and RoBERTa (Liu et al., 2019) can benefit from having some of their layers frozen, both during pre-training as well as when fine-tuning on downstream tasks. \n• In addition, we experiment with different types of reservoir layers, including convolutional and recurrent neural network-based ones. We also show empirical evidence that the backward pass can be entirely skipped by approximating top-layer gradients using an approach we call backskipping, with a relatively small sacrifice in performance. ", + "bbox": [ + 215, + 277, + 825, + 460 + ], + "page_idx": 1 + }, + { + "type": "text", + "text": "2 APPROACH", + "text_level": 1, + "bbox": [ + 174, + 479, + 299, + 496 + ], + "page_idx": 1 + }, + { + "type": "text", + "text": "This paper is based on a very simple idea. Neural networks are trained via backpropagation, which involves consecutive steps of matrix addition and multiplication, i.e., ", + "bbox": [ + 173, + 512, + 825, + 540 + ], + "page_idx": 1 + }, + { + "type": "equation", + "img_path": "images/23b84a2a7e961774c2016abd8eaae52ef87ba9ba1fd35110f827aa7126795c23.jpg", + "text": "$$\n\\theta _ { t + 1 } \\theta _ { t } - \\eta \\frac { \\partial J } { \\partial \\theta _ { t } } ; \\frac { \\partial J } { \\partial \\theta _ { t } } = \\frac { \\partial J } { \\partial L _ { n } } \\frac { \\partial L _ { n } } { \\partial L _ { n - 1 } } \\cdot \\cdot \\cdot \\frac { \\partial L _ { 1 } } { \\partial L _ { 0 } } \\frac { \\partial L _ { 0 } } { \\partial x }\n$$", + "text_format": "latex", + "bbox": [ + 320, + 556, + 678, + 590 + ], + "page_idx": 1 + }, + { + "type": "text", + "text": "for some objective $J$ , parameterization $\\theta$ and learning rate $\\eta$ , with the gradient computed via the chain rule, where $L _ { i }$ is the $i$ -th layer of the neural network and $x$ is the input. Let $L \\ =$ Transformer $( X )$ be a single layer in a Transformer network (Vaswani et al., 2017), i.e., ", + "bbox": [ + 174, + 599, + 826, + 643 + ], + "page_idx": 1 + }, + { + "type": "equation", + "img_path": "images/06ee18caa5e9791e3351b33dd81d6b538c4f644c50d2d27558db3d31d1aa49a7.jpg", + "text": "$$\n\\begin{array} { r } { H = \\mathbf { M } \\mathbf { u } ] \\mathrm { t i } \\mathbf { H e a d } \\mathbf { S e l f A t t n } ( \\mathbf { L a y e r N o r m } ( X ) ) + X } \\\\ { L = \\mathbf { F F N } ( \\mathbf { L a y e r N o r m } ( H ) ) + H } \\end{array}\n$$", + "text_format": "latex", + "bbox": [ + 339, + 666, + 658, + 705 + ], + "page_idx": 1 + }, + { + "type": "text", + "text": "Now, during every “backward pass”, we compute the Jacobian for parameters $\\theta ^ { L }$ at layer $L$ , which are used to update the parameters of $L$ , $\\theta _ { t } ^ { L }$ , as well as to compute the next layer’s Jacobian, thus back-propagating the gradients. In this work however, for some of the layers, we still backpropagate through them to compute gradients for earlier layers, but we never update their parameters. As a result, these layers stay fixed at their random initialization, saving computational resources. ", + "bbox": [ + 174, + 719, + 825, + 790 + ], + "page_idx": 1 + }, + { + "type": "text", + "text": "2.1 BACKGROUND ", + "text_level": 1, + "bbox": [ + 174, + 806, + 316, + 820 + ], + "page_idx": 1 + }, + { + "type": "text", + "text": "Naturally, never updating some of the parameters is computationally more efficient, as some matrix addition operations can be skipped in the backward pass, but why is this not detrimental to the performance of the network? ", + "bbox": [ + 174, + 832, + 825, + 875 + ], + "page_idx": 1 + }, + { + "type": "text", + "text": "In the early days of neural networks, the bottom layers were often kept fixed as “associators” (Block, 1962), or what Minsky & Papert (2017) called the Gamba perceptron (Gamba et al., 1961; Borsellino & Gamba, 1961). Fixed random networks (Baum, 1988; Schmidt et al., 1992; Pao et al., 1994) have been explored from many angles, including as “random kitchen sink” kernel machines (Rahimi & Recht, 2008; 2009), “extreme learning machines” (Huang et al., 2006) and reservoir computing (Jaeger, 2003; Maass et al., 2002; Lukosevi ˇ cius & Jaeger, 2009). In reservoir computing, in- ˇ put data are represented through fixed random high-dimensional non-linear representations, called “reservoirs”, which are followed by a regular (often but not necessarily linear) “readout” network to make the final classification decision. ", + "bbox": [ + 176, + 882, + 823, + 924 + ], + "page_idx": 1 + }, + { + "type": "text", + "text": "", + "bbox": [ + 174, + 103, + 823, + 186 + ], + "page_idx": 2 + }, + { + "type": "text", + "text": "The theoretical justification for these approaches lies in two well-known results in machine learning: Cover’s theorem (Cover, 1965) on the separability of patterns states that high-dimensional non-linear transformations are more likely to be linearly separable; and the Johnson-Lindenstrauss lemma (Johnson & Lindenstrauss, 1984) shows that random projections distort Euclidean distances very little under mild assumptions. ", + "bbox": [ + 174, + 194, + 823, + 263 + ], + "page_idx": 2 + }, + { + "type": "text", + "text": "Practically, random layers can be seen as a cheap way to increase network depth. There are interesting advantages to this approach. Fixed layers are known to have particularly low-cost hardware requirements and can be easily implemented on high-bandwidth FPGAs with low power consumption (Hadaeghi et al., 2017; Tanaka et al., 2019), or on optical devices (Hicke et al., 2013). This might yield interesting possibilities for training in a distributed fashion across multiple devices, as well as for neurmorphic hardware (Neftci et al., 2017). This approach also facilitates lower-latency deployment of neural networks to edge devices, since weights can be shared simply by sending the seed number, assuming the random number generator is known on both ends. ", + "bbox": [ + 174, + 271, + 825, + 382 + ], + "page_idx": 2 + }, + { + "type": "text", + "text": "2.2 RESERVOIR TRANSFORMERS ", + "text_level": 1, + "bbox": [ + 176, + 400, + 413, + 414 + ], + "page_idx": 2 + }, + { + "type": "text", + "text": "This work explores inserting random non-linear transformations, or what we call reservoir layers, into transformer networks. Specifically, we experiment with a variety of reservoir layers: ", + "bbox": [ + 176, + 425, + 823, + 454 + ], + "page_idx": 2 + }, + { + "type": "text", + "text": "• Transformer Reservoir: The standard transformer layer as described above, but with all parameters fixed after initialization, including the self-attention module. \n• FFN Reservoir: A transformer-style fixed feed-forward layer without any self-attention, i.e., FFN(LayerNorm(Previous layer)) $^ +$ Previous layer. \n• BiGRU Reservoir: A fixed bidirectional Gated Recurrent Unit (Cho et al., 2014) layer, which is closer in spirit to previous work on reservoir computing, most of which builds on recurrent neural network architectures. CNN Reservoir: A fixed Convolutional Neural Network (LeCun et al., 1998) layer, specifically light dynamical convolution layers (Wu et al., 2019), which are known to be competitive with transformers in sequence-to-sequence tasks. ", + "bbox": [ + 215, + 467, + 825, + 621 + ], + "page_idx": 2 + }, + { + "type": "text", + "text": "We find that all these approaches work well, to a certain extent. For clarity, we focus primarily on the first two reservoir layers, but include a broader comparison in Appendix A. ", + "bbox": [ + 176, + 633, + 821, + 662 + ], + "page_idx": 2 + }, + { + "type": "text", + "text": "In each case, contrary to traditional reservoir computing, our reservoir layers are interspersed throughout a regular transformer network, or what we call a reservoir transformer. A good justification for this approach is that while random projections are not learned and might introduce noise, subsequent normal transformer “readout” layers might allow us to recover from any adverse effects of randomness. For example, previous work has shown that ResNets, with all of their parameters fixed except for the scale and shift parameters of batch normalization, can still achieve high performance, simply by scaling and shifting random features (Frankle et al., 2020). Adding noise to the parameters of neural networks is also known to help convergence and generalization (Jim et al., 1995; 1996; Gulcehre et al., 2016; Noh et al., 2017). ", + "bbox": [ + 174, + 670, + 825, + 795 + ], + "page_idx": 2 + }, + { + "type": "text", + "text": "3 EVALUATION ", + "text_level": 1, + "bbox": [ + 176, + 815, + 315, + 830 + ], + "page_idx": 2 + }, + { + "type": "text", + "text": "We evaluate the proposed approach on a variety of well-known tasks in natural language processing, namely: machine translation, language modelling and masked language model pre-training. ", + "bbox": [ + 174, + 847, + 821, + 875 + ], + "page_idx": 2 + }, + { + "type": "text", + "text": "In this work, we are not necessarily interested in obtaining the state of the art on any task or even in improving overall task performance via this method. The main objective is to examine efficiency, i.e. the relationship between compute time and task performance. This is closely related to efforts in Green AI, which are concerned with the trade-offs between compute, data, and performance (Schwartz et al., 2019). We propose a new metric for our purposes, the area under the convergence curve (AUCC): similarly to how the area under the receiver operating characteristic (Bradley, 1997, AUC-ROC) measures a classifier’s performance independent of the classification threshold, AUCC measures a model’s performance independent of the specific compute budget. Specifically, AUCC is computed as follows: ", + "bbox": [ + 176, + 882, + 823, + 924 + ], + "page_idx": 2 + }, + { + "type": "image", + "img_path": "images/f12829b70f6d779da8d13c4ab6c635efbc557e9a0d0480b52615b7795f025ea3.jpg", + "image_caption": [ + "Figure 1: Validation BLEU AUCC and test BLEU for IWSLT (high is good). Comparison of regular transformer and reservoir transformer with FFN or Transformer reservoir layers added. " + ], + "image_footnote": [], + "bbox": [ + 183, + 122, + 794, + 284 + ], + "page_idx": 3 + }, + { + "type": "text", + "text": "", + "bbox": [ + 174, + 361, + 825, + 445 + ], + "page_idx": 3 + }, + { + "type": "equation", + "img_path": "images/fd35fc393f71279405ce5c08762c208f32673d365da86fffd205a0b917f48f39.jpg", + "text": "$$\n\\int _ { t = 0 } ^ { \\hat { T } } \\sum _ { x , y \\in \\mathcal { D } } g _ { t } ( f ( x ) , y )\n$$", + "text_format": "latex", + "bbox": [ + 423, + 469, + 576, + 515 + ], + "page_idx": 3 + }, + { + "type": "text", + "text": "where $f$ is the network and $g$ is the evaluation metric, measured until convergence time $\\hat { T }$ , which is the maximum convergence time of all models included in the comparison. Note that time here is wall-clock time, not iterations. By convergence, we mean that validation performance has stopped improving, and hence the convergence curve whose area we measure plots the desired metric over time. Runs are averaged over multiple seeds and reported with standard deviation. We normalize raw AUCC scores by their maximum score to ensure a more easily interpretable $[ 0 - 1 ]$ range. ", + "bbox": [ + 174, + 535, + 825, + 619 + ], + "page_idx": 3 + }, + { + "type": "text", + "text": "One potential downside of this approach is that the AUCC metric could lead to higher scores for a model that converges quickly but to ultimately worse performance, if measured in a small window. We account for this by making sure that $\\hat { T }$ is set sufficiently high. We include the raw validation curves in the appendix and also report test set generalization in each experiment. ", + "bbox": [ + 173, + 626, + 825, + 685 + ], + "page_idx": 3 + }, + { + "type": "text", + "text": "3.1 EXPERIMENTAL SETTINGS AND IMPLEMENTATION DETAILS ", + "text_level": 1, + "bbox": [ + 174, + 707, + 629, + 722 + ], + "page_idx": 3 + }, + { + "type": "text", + "text": "We evaluate on IWSLT de-en (Cettolo et al., 2015) and WMT en-de (Bojar et al., 2014) for machine translation; enwiki8 (LLC, 2009) for language modelling; and experiment with RoBERTa (Liu et al., 2019) in our pretraining experiments. For IWSLT, we follow the pre-processing steps in Edunov et al. (2018). The train/val/test split is $\\_$ sentences. For WMT, we follow the pre-processing steps in Ott et al. (2018). The train/val/test split is $4 . 5 \\mathrm { M } / 1 6 . 5 \\mathrm { k } / 3 \\mathrm { k }$ sentences. For enwiki8, we follow the pre-processing steps in Dai et al. (2019). The train/val/test split is 1M/54k/56k sentences. For RoBERTa pretraining, we follow the pre-processing steps in Liu et al. (2019). ", + "bbox": [ + 173, + 734, + 825, + 834 + ], + "page_idx": 3 + }, + { + "type": "text", + "text": "We use 8 Volta V100 GPUs for WMT and enwik8, 32 V100 GPUs for RoBERTa and a single V100 for IWSLT. The hyperparameters for IWSLT14 and WMT16 were set to the best-performing values from Ott et al. (2018) and Kasai et al. (2020) respectively. The enwik8 experiment settings followed Bachlechner et al. (2020) and the RoBERTa experiments followed Liu et al. (2019). All experiments were conducted using fairseq (Ott et al., 2019). Our code and experimental settings will be made open source at [ANONYMIZED-GITHUB-URL]. ", + "bbox": [ + 174, + 839, + 825, + 924 + ], + "page_idx": 3 + }, + { + "type": "table", + "img_path": "images/4dd693f4fd0bc00d5e71df0ea059dae5cfc447650b30fe1d8ce5446d40f80a14.jpg", + "table_caption": [ + "Table 1: Wall-clock time (averaged over multiple runs) saved for IWSLT for different model types and encoder depths. Max BLEU is for validation. Number of layers is for encoder, decoder depth is kept fixed at 2. Ratio is computed compared to comparable number of layers in the normal case. " + ], + "table_footnote": [], + "table_body": "
Model#LayersFrozenMax BLEUTrain time until max (in hours)Ratio# Params Trainable (Total)Train Time each epoch (in seconds)
Transformer6034.52 ± 0.072.548 ± 0.06126.8M122.73 ± 1.16
8034.59 ± 0.112.557 ± 0.05131.1M142.28 ± 1.87
10034.56 ± 0.053.173 ± 0.04135.3M161.66 ± 1.54
12034.29 ± 0.123.521 ± 0.09139.5M172.45 ± 1.98
TReservoir6234.37 ± 0.122.422 ± 0.030.9522.6M (26.8M)120.59 ± 1.32
8234.80 ± 0.072.450 ± 0.060.9626.8M (31.1M)134.49 ± 1.76
10234.70 ± 0.032.831 ± 0.050.8931.1M (35.3M)144.42 ± 1.98
12234.78 ± 0.043.476 ± 0.040.9835.3M (39.5M)159.43 ± 1.67
FFN Reservoir6234.43 ± 0.152.120 ± 0.040.8322.6M (25.8M)107.71 ± 1.73
8234.56 ± 0.162.203 ± 0.060.8626.8M (29.1M)120.07 ± 1.65
10234.66 ± 0.022.493 ± 0.050.7931.1M (33.3M)130.11 ± 1.43
12234.76 ± 0.033.241 ± 0.040.9235.3M (37.5M)156.32 ± 1.87
LayerDrop6234.59 ± 0.152.364 ± 0.080.9222.6M (26.8M)119.30 ± 1.36
8234.58 ± 0.162.554 ± 0.050.9926.8M (31.1M)138.62 ± 1.44
10234.57 ± 0.073.404 ± 0.061.0731.1M (35.3M)140.88 ± 1.62
12233.65 ± 0.243.251 ± 0.040.9235.3M (39.5M)160.85 ± 1.49
", + "bbox": [ + 176, + 101, + 825, + 314 + ], + "page_idx": 4 + }, + { + "type": "text", + "text": "All the experiments in this paper were run with 3 random seeds and the mean and standard deviation are reported. For the relatively small IWSLT, the $\\hat { T }$ value in the AUCC metric was set to 4 hours. For WMT, which is larger, we set it to 20 hours. For enwiki8, it was 30 hours; and for the RoBERTa pre-training experiments, it was set to 60 hours. ", + "bbox": [ + 174, + 395, + 825, + 454 + ], + "page_idx": 4 + }, + { + "type": "text", + "text": "The projection weights in random layers were initialized using orthogonal initialization (Saxe et al., 2013), which makes sense since random orthogonal projections should be most informationpreserving, and which was found to work well empirically for initializing fixed random representations in previous work (Wieting & Kiela, 2019). Biases and layer norm parameters were initialized using their respective PyTorch defaults (based on Xavier init; Glorot & Bengio, 2010). ", + "bbox": [ + 174, + 460, + 825, + 531 + ], + "page_idx": 4 + }, + { + "type": "text", + "text": "We intersperse reservoir layers in alternating fashion starting from the middle. Specifically, we alternate one reservoir layer with one transformer layer, and place the alternating block in the middle. For example: a 7-layer encoder LLLLLLL in which we replace three layers with reservoirs becomes LRLRLRL, and with two becomes LLRLRLL. See Appendix C for a study comparing this strategy to alternative approaches (e.g., freezing in the bottom, middle or top). ", + "bbox": [ + 174, + 537, + 825, + 608 + ], + "page_idx": 4 + }, + { + "type": "text", + "text": "4 EXPERIMENTS ", + "text_level": 1, + "bbox": [ + 174, + 630, + 326, + 645 + ], + "page_idx": 4 + }, + { + "type": "text", + "text": "In what follows, we first show our main result: reservoir transformers often have better AUCC metrics, less training time per epoch, less convergence time until the best validation performance is achieved, and even improved test set generalization metrics, on a variety of tasks. As a strong baseline method, we compare to LayerDrop (Fan et al., 2019). LayerDrop can also be seen as a method that dynamically bypasses parts of the computation during Transformer training in an attempt to improve efficiency, and is a suitable comparison to examine our methods.. We also examine whether we can minimize the expectation over the gradients of upper layers in the transformer network such that we do not have to pass the true gradients through the reservoir for further efficiency. ", + "bbox": [ + 174, + 661, + 825, + 773 + ], + "page_idx": 4 + }, + { + "type": "text", + "text": "4.1 MACHINE TRANSLATION ", + "text_level": 1, + "bbox": [ + 174, + 792, + 388, + 806 + ], + "page_idx": 4 + }, + { + "type": "text", + "text": "Machine translation (MT) is one of the core tasks of NLP. We demonstrate on two well-known MT datasets, IWSLT’14 German-English and WMT’16 English-German, that reservoir transformers obtain a better AUCC. For the raw validation plots over time that were used to calculate the AUCC, please refer to Appendix F. ", + "bbox": [ + 174, + 818, + 825, + 875 + ], + "page_idx": 4 + }, + { + "type": "text", + "text": "Following Kasai et al. (2020), the architecture of the network is an N-layer reservoir transformer encoder, followed by a regular shallow one- or two-layer decoder. This design choice has been shown to lead to very good speed and efficiency trade-offs, and serves as a good baseline for our experiments. Moreover, shallow decoders make it easier to decide where to place reservoir layers (in the encoder) and makes it more straightforward to identify where performance gains come from. ", + "bbox": [ + 176, + 882, + 823, + 924 + ], + "page_idx": 4 + }, + { + "type": "image", + "img_path": "images/90e2f338200568e105b601ef0f6d470de812574f5e1411facb2387a68f64cf2e.jpg", + "image_caption": [ + "Figure 2: Validation BLEU AUCC and test BLEU for WMT (high is good). Comparison of regular transformer and reservoir transformer with FFN or Transformer reservoir layers added. " + ], + "image_footnote": [], + "bbox": [ + 183, + 122, + 794, + 284 + ], + "page_idx": 5 + }, + { + "type": "image", + "img_path": "images/fbf8f8b964d88c1ee463d7c528fdd11742523e63086217892f8a7d6bfafcc93f.jpg", + "image_caption": [ + "Figure 3: Validation BPC AUCC and test BPC on the enwik8 language modelling task (low is good). Comparison of regular and reservoir transformers for varying depths. " + ], + "image_footnote": [], + "bbox": [ + 186, + 378, + 794, + 541 + ], + "page_idx": 5 + }, + { + "type": "text", + "text": "", + "bbox": [ + 174, + 631, + 823, + 660 + ], + "page_idx": 5 + }, + { + "type": "text", + "text": "Figure 1 shows the results for IWSLT. On the y-axis we show validation AUCC for the BLEU metric; on the $\\mathbf { X } ^ { } -$ -axis we show the number of updatable layers in the encoder. The performance of a regular transformer encoder with 6 layers and a reservoir transformer encoder with 6 layers plus N additional reservoir layers are plotted for the same $\\mathbf { X }$ -axis value to show the total number of updated layers. Plots for the total number of layers (updatable plus not-updatable, so essentially shifted versions) are shown in Appendix E. Table 1 shows the time it took to achieve the maximum validation BLEU score and how that relates to the regular transformer, demonstrating that reservoir transformers consistently converge faster in terms of wall-clock time, up to $22 \\%$ as much with the same number of updateable layers. We save as much as $27 \\%$ time until convergence a 24 layer model on WMT, as shown in Table 3. One other noticeable point is that we can see that the T Reservoir achieves similar performance to LayerDrop on IWSLT and WMT in terms of wall-clock per epoch and wall-clock time to the best performance. However, on both tasks, FFN Reservoir performs much better than LayerDrop in terms of efficiency per epoch and achieves better/similar performance in less time in each case. As a point of reference, a half hour gain on IWSLT translates to a gain of several days in the training of bigger transformer models like GPT-3 (Brown et al., 2020). ", + "bbox": [ + 173, + 666, + 825, + 875 + ], + "page_idx": 5 + }, + { + "type": "text", + "text": "We observe that reservoir transformers consistently perform better than, or are competitive to, regular transformers, both in terms of validation BLEU AUCC as well as test time BLEU, for all examined encoder depths. ", + "bbox": [ + 176, + 882, + 823, + 924 + ], + "page_idx": 5 + }, + { + "type": "image", + "img_path": "images/d4ae168b422fd5b5699ef8859159ebcc355c0e8a55b9feb4da847e6f8b55cace.jpg", + "image_caption": [ + "Figure 4: Downstream RoBERTa performance on SST-2 (left) and MultiNLI-matched (right). " + ], + "image_footnote": [], + "bbox": [ + 191, + 122, + 794, + 284 + ], + "page_idx": 6 + }, + { + "type": "text", + "text": "Figure 2 shows a similar trend for WMT. WMT is much larger and requires a much deeper encoder, as illustrated by the fact that a certain minimum depth is required for reservoir transformers to achieve a comparable validation AUCC. At test time, reservoir transformers outperform regular transformers for almost all encoder depths. The FFN reservoir transformer seems to work best in both cases, which is surprising because it does not have any self-attention component at all. This finding shows that self-attention, or the mechanism to summarize context information, should be learned if present. Once the context features have been gathered, a random projection via a fixed FFN module appears to be beneficial, at least for MT. ", + "bbox": [ + 173, + 351, + 825, + 462 + ], + "page_idx": 6 + }, + { + "type": "text", + "text": "4.2 LANGUAGE MODELLING ", + "text_level": 1, + "bbox": [ + 176, + 489, + 387, + 503 + ], + "page_idx": 6 + }, + { + "type": "text", + "text": "To examine whether the same findings hold for other tasks, we evaluate on the enwiki8 (LLC, 2009) language modelling task. We examine the BPC (bits per character) rate for a variety of network depths (since the task is language modelling, these layers are in the decoder). The results show that we obtain consistently better BPC for lower depths, except for the 64-layer regular transformer, which appears to be particularly optimal for this task. We observe similar trends during test time. ", + "bbox": [ + 174, + 518, + 825, + 589 + ], + "page_idx": 6 + }, + { + "type": "text", + "text": "4.3 MASKED LANGUAGE MODEL PRETRAINING ", + "text_level": 1, + "bbox": [ + 178, + 616, + 517, + 630 + ], + "page_idx": 6 + }, + { + "type": "text", + "text": "We train RoBERTa (Liu et al., 2019) models from scratch at a variety of depths, both in the normal and reservoir setting. We find that these networks show minor differences in their best perplexity and similar AUCC perplexity (see Appendix D). We then examine the performance of these models when fine-tuned on downstream tasks, specifically the well known SST-2 (Socher et al., 2013) and MultiNLI1 (Williams et al., 2017) tasks. When fine-tuning the reservoir models, we keep the reservoir layers fixed (including them in fine-tuning did not work very well, see Appendix D). ", + "bbox": [ + 174, + 645, + 825, + 728 + ], + "page_idx": 6 + }, + { + "type": "text", + "text": "Figure 4 shows the results of fine-tuning. We observe that the reservoir transformer outperforms normal RoBERTa at all depths in both tasks. At lower depth, the improvements are substantial. As a sanity check, we also experiment with freezing some of the layers in normal RoBERTa during fine-tuning (Transformer frozen finetuned) and show that this helps a little but is still outperformed by the reservoir transformer. ", + "bbox": [ + 174, + 736, + 825, + 805 + ], + "page_idx": 6 + }, + { + "type": "text", + "text": "These findings suggest that you can train a RoBERTa model without updating all of the layers, achieve similar perplexity at a similar computational cost, but with better downstream performance. The fact that some layers can be kept random and entirely fixed during training, without sacrificing any performance, raises intriguing questions for “BERTology” (Rogers et al., 2020) and for the study of what different layers in transformers learn. ", + "bbox": [ + 174, + 813, + 823, + 882 + ], + "page_idx": 6 + }, + { + "type": "image", + "img_path": "images/8dc191b8c7100f587adeeeb66439469b208ef40391084c7b050f44a7cb3a4cb5.jpg", + "image_caption": [ + "Figure 5: IWSLT comparison of normal v frozen v backskipped " + ], + "image_footnote": [], + "bbox": [ + 333, + 112, + 658, + 250 + ], + "page_idx": 7 + }, + { + "type": "text", + "text": "4.4 BACKSKIPPING ", + "text_level": 1, + "bbox": [ + 174, + 309, + 320, + 323 + ], + "page_idx": 7 + }, + { + "type": "text", + "text": "With the reservoir transformers as described above, we obtain better efficiency by skipping the “gradient application” matrix addition step in some of the layers (i.e., updating the weights). One step further would be to investigate skipping the entire backward pass for reservoirs altogether, which would save us from having to do the much more expensive matrix multiplication for these layers that is required for the propagation of gradients. We report on preliminary experiments where in the backward pass we replace the gradients for the layer $L _ { i }$ going into the reservoir $L _ { i + 1 }$ with a noisy estimate (Jaderberg et al., 2017; Czarnecki et al., 2017). Promisingly, Oktay et al. (2020) recently asked “why spend resources on exact gradients when we’re going to use stochastic optimization?” and show that you can do randomized auto-differentiation quite successfully. ", + "bbox": [ + 174, + 335, + 825, + 462 + ], + "page_idx": 7 + }, + { + "type": "text", + "text": "Here, rather than minimizing the actual gradients $\\frac { \\partial L _ { i } } { \\partial \\theta ^ { L _ { i } } }$ , we minimize their expectation and train via continuous-action REINFORCE (Williams, 1992). That is, $L _ { i }$ becomes a policy $\\pi _ { a }$ : $s \\mu$ whei.e., $\\textstyle { \\frac { 1 } { n } } \\sum _ { i = 0 } ^ { n } ( { \\dot { R } } ^ { i } - V ^ { i } ( a ) ) ^ { 2 }$ $a \\sim \\mathcal { N } ( \\mu , 1 )$ . We train to miniREINFORCE loss $\\mathbb { E } _ { a } \\left[ \\log ( { \\bar { a } } ) \\left( R - { \\bar { V } } ( a ) \\right) \\right]$ ion loss via MSE,, where the value network $V$ acts as the baseline. $R$ is defined as the mean of the gradients of the top layer $L _ { i + 2 }$ , with the sign flipped. Thus, simply put, we train to minimize the expectation of the true gradients at the layer directly following the reservoir. We employ an annealing scheme where we first train the value network and propagate the true gradients during warmup. Afterwards, we anneal the probability of backskipping rather than performing a true backward pass (multiplying the probability by 0.99 every iteration until we only backskip). We experimented with setting $R$ to the negation of the total loss as well but found the current reward to work better. We call this approach backskipping. ", + "bbox": [ + 173, + 468, + 825, + 622 + ], + "page_idx": 7 + }, + { + "type": "text", + "text": "Figure 5 shows the results as validation BLEU over time. We observe that this approach helps especially during the earlier stages of training. Although it does not match the performance of the approach with true gradients quite yet, it actually performs competitively. Backskipping looks promising as an approach to further reduce computational costs, and would be even more efficient from a hardware perspective since the circuitry for such layers (which do not need to propagate gradients) can effectively be hardwired entirely. ", + "bbox": [ + 173, + 628, + 825, + 713 + ], + "page_idx": 7 + }, + { + "type": "text", + "text": "5 RELATED WORK ", + "text_level": 1, + "bbox": [ + 176, + 736, + 343, + 752 + ], + "page_idx": 7 + }, + { + "type": "text", + "text": "Recent work has shown that modern NLP models are able to function with different numbers of layers for different examples (Elbayad et al., 2019; Fan et al., 2019); that different layers specialize for different purposes (Zhang et al., 2019); that layers can be compressed (Li et al., 2020); and, that layers can be reordered (Press et al., 2019). There is a growing body of work in efficient self-attention networks (Tay et al., 2020b), such as linear attention (Wang et al., 2020), on how to process long context information (Beltagy et al., 2020) and on approximations to make transformers more scalable (Kitaev et al., 2020; Katharopoulos et al., 2020). BigBIRD (Zaheer et al., 2020) provides random keys as additional inputs to its attention mechanism. Locality sensitive hashing (LSH) as employed e.g. in Reformer (Kitaev et al., 2020) utilizes a fixed random projection. Performer (Choromanski et al., 2020) computes the transformer’s multi-head attention weights as a fixed orthogonal random projection. Closely related to this work, Tay et al. (2020a) showed that randomized alignment matrices in their “Synthesizer” architecture are sufficient for many NLP tasks. While these works focus on random attention, we show that entire layers can be random and fixed. We also show that entire layers can be replaced by fixed random projections that do not have any attention whatsoever. ", + "bbox": [ + 173, + 770, + 825, + 924 + ], + "page_idx": 7 + }, + { + "type": "text", + "text": "", + "bbox": [ + 174, + 103, + 825, + 159 + ], + "page_idx": 8 + }, + { + "type": "text", + "text": "Beyond transformers, random features have been extensively explored. Examples of this include FreezeOut (Brock et al., 2017), deep reservoir computing networks (Scardapane & Wang, 2017; Gallicchio & Micheli, 2017), as well as applications in domains as varied as text classification (Conneau et al., 2017; Zhang & Bowman, 2018; Wieting & Kiela, 2019) or music classification (Pons & Serra, 2019). It is well known that randomly initialized networks can display impressive performance on their own (Ulyanov et al., 2018; Rosenfeld & Tsotsos, 2019; Ramanujan et al., 2020), which underlies, for example, the recently popularized lottery ticket hypothesis (Frankle & Carbin, 2018; Zhou et al., 2019). We know that learning deep overparameterized networks appears to help in general (Li & Liang, 2018; Du et al., 2019). Our method represents an easy and cheap way to add both depth and parameters to transformer networks. ", + "bbox": [ + 174, + 166, + 825, + 304 + ], + "page_idx": 8 + }, + { + "type": "text", + "text": "6 CONCLUSION ", + "text_level": 1, + "bbox": [ + 176, + 325, + 318, + 342 + ], + "page_idx": 8 + }, + { + "type": "text", + "text": "This work demonstrated that state-of-the-art transformer architectures can be trained without updating all of the layers. This complements a long history in machine learning of harnessing the power of random features. In most cases, “reservoir transformers” achieve better performance-efficiency trade-offs as measured by our newly introduced AUCC metric, and better test set generalization, on a variety of tasks and in a variety of settings. Future work includes further investigating hybrid networks and backskipping architectures, as well as utilizing pruning strategies at inference time, in order to try to obtain even better performance/efficiency trade-offs. ", + "bbox": [ + 174, + 356, + 825, + 454 + ], + "page_idx": 8 + }, + { + "type": "text", + "text": "REFERENCES ", + "text_level": 1, + "bbox": [ + 176, + 474, + 285, + 489 + ], + "page_idx": 8 + }, + { + "type": "text", + "text": "Thomas Bachlechner, Bodhisattwa Prasad Majumder, Huanru Henry Mao, Garrison W Cottrell, and Julian McAuley. Rezero is all you need: Fast convergence at large depth. arXiv preprint arXiv:2003.04887, 2020. \nAlexei Baevski, Steffen Schneider, and Michael Auli. vq-wav2vec: Self-supervised learning of discrete speech representations. arXiv preprint arXiv:1910.05453, 2019. \nEric B Baum. On the capabilities of multilayer perceptrons. Journal of complexity, 4(3):193–215, 1988. \nIz Beltagy, Matthew E Peters, and Arman Cohan. Longformer: The long-document transformer. arXiv preprint arXiv:2004.05150, 2020. \nHans-Dieter Block. The perceptron: A model for brain functioning. i. Reviews of Modern Physics, 34(1):123, 1962. \nOndˇrej Bojar, Christian Buck, Christian Federmann, Barry Haddow, Philipp Koehn, Johannes Leveling, Christof Monz, Pavel Pecina, Matt Post, Herve Saint-Amand, Radu Soricut, Lucia Specia, and Ales Tamchyna. Findings of the 2014 workshop on statistical machine translation. In ˇ Proceedings of the Ninth Workshop on Statistical Machine Translation, Baltimore, Maryland, USA, June 2014. Association for Computational Linguistics. \nA Borsellino and A Gamba. An outline of a mathematical theory of papa. Il Nuovo Cimento (1955- 1965), 20(2):221–231, 1961. \nAndrew P Bradley. The use of the area under the roc curve in the evaluation of machine learning algorithms. Pattern recognition, 30(7):1145–1159, 1997. \nAndrew Brock, Theodore Lim, James M Ritchie, and Nick Weston. Freezeout: Accelerate training by progressively freezing layers. arXiv preprint arXiv:1706.04983, 2017. \nTom 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": [ + 171, + 497, + 826, + 925 + ], + "page_idx": 8 + }, + { + "type": "text", + "text": "Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with transformers. arXiv preprint arXiv:2005.12872, 2020. ", + "bbox": [ + 173, + 103, + 823, + 146 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "M. Cettolo, J. Niehues, S. Stuker, L. Bentivogli, and Marcello Federico. Report on the 11 th iwslt ¨ evaluation campaign , iwslt 2014. In Proceedings of IWSLT, 2015. ", + "bbox": [ + 169, + 156, + 823, + 185 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Kyunghyun Cho, Bart Van Merrienboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Hol- ¨ ger Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. arXiv preprint arXiv:1406.1078, 2014. ", + "bbox": [ + 174, + 194, + 825, + 238 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Krzysztof Choromanski, Valerii Likhosherstov, David Dohan, Xingyou Song, Jared Davis, Tamas Sarlos, David Belanger, Lucy Colwell, and Adrian Weller. Masked language modeling for proteins via linearly scalable long-context transformers. arXiv preprint arXiv:2006.03555, 2020. ", + "bbox": [ + 173, + 247, + 825, + 291 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Alexis Conneau, Douwe Kiela, Holger Schwenk, Loic Barrault, and Antoine Bordes. Supervised learning of universal sentence representations from natural language inference data. arXiv preprint arXiv:1705.02364, 2017. ", + "bbox": [ + 173, + 301, + 821, + 343 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Thomas M Cover. Geometrical and statistical properties of systems of linear inequalities with applications in pattern recognition. IEEE transactions on electronic computers, (3):326–334, 1965. ", + "bbox": [ + 171, + 353, + 823, + 383 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Wojciech Marian Czarnecki, Grzegorz Swirszcz, Max Jaderberg, Simon Osindero, Oriol Vinyals, ´ and Koray Kavukcuoglu. Understanding synthetic gradients and decoupled neural interfaces. arXiv preprint arXiv:1703.00522, 2017. ", + "bbox": [ + 174, + 392, + 825, + 436 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Zihang Dai, Zhilin Yang, Yiming Yang, Jaime 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, Florence, Italy, July 2019. Association for Computational Linguistics. ", + "bbox": [ + 173, + 446, + 825, + 503 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Amit Daniely, Roy Frostig, and Yoram Singer. Toward deeper understanding of neural networks: The power of initialization and a dual view on expressivity. In Advances In Neural Information Processing Systems, pp. 2253–2261, 2016. ", + "bbox": [ + 176, + 513, + 823, + 556 + ], + "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. arXiv preprint arXiv:1810.04805, 2018. ", + "bbox": [ + 169, + 566, + 823, + 597 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Simon Du, Jason Lee, Haochuan Li, Liwei Wang, and Xiyu Zhai. Gradient descent finds global minima of deep neural networks. In International Conference on Machine Learning, pp. 1675– 1685, 2019. ", + "bbox": [ + 174, + 604, + 823, + 648 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Sergey Edunov, Myle Ott, Michael Auli, David Grangier, and Marc’Aurelio Ranzato. Classical structured prediction losses for sequence to sequence learning. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), New Orleans, Louisiana, June 2018. Association for Computational Linguistics. ", + "bbox": [ + 173, + 659, + 825, + 729 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Maha Elbayad, Jiatao Gu, Edouard Grave, and Michael Auli. Depth-adaptive transformer. arXiv preprint arXiv:1910.10073, 2019. ", + "bbox": [ + 169, + 738, + 823, + 768 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Joseph Enguehard, Dan Busbridge, Vitalii Zhelezniak, and Nils Hammerla. Neural language priors. arXiv preprint arXiv:1910.03492, 2019. ", + "bbox": [ + 169, + 777, + 823, + 808 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Angela Fan, Edouard Grave, and Armand Joulin. Reducing transformer depth on demand with structured dropout. arXiv preprint arXiv:1909.11556, 2019. ", + "bbox": [ + 169, + 816, + 823, + 847 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Jonathan Frankle and Michael Carbin. The lottery ticket hypothesis: Finding sparse, trainable neural networks. arXiv preprint arXiv:1803.03635, 2018. ", + "bbox": [ + 171, + 856, + 823, + 886 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Jonathan Frankle, David J Schwab, and Ari S Morcos. Training batchnorm and only batchnorm: On the expressive power of random features in cnns. arXiv preprint arXiv:2003.00152, 2020. ", + "bbox": [ + 174, + 895, + 823, + 924 + ], + "page_idx": 9 + }, + { + "type": "text", + "text": "Claudio Gallicchio and Alessio Micheli. Echo state property of deep reservoir computing networks. Cognitive Computation, 9(3):337–350, 2017. ", + "bbox": [ + 171, + 103, + 823, + 132 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Claudio Gallicchio and Simone Scardapane. Deep randomized neural networks. In Recent Trends in Learning From Data, pp. 43–68. Springer, 2020. ", + "bbox": [ + 171, + 140, + 823, + 170 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "A. Gamba, L. Gamberini, G. Palmieri, and R. Sanna. Further experiments with papa. Il Nuovo Cimento (1955-1965), 20(2):112–115, 1961. ", + "bbox": [ + 171, + 176, + 823, + 207 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Ankush Garg, Yuan Cao, and Qi Ge. Echo state neural machine translation. arXiv preprint arXiv:2002.11847, 2020. ", + "bbox": [ + 171, + 214, + 825, + 244 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Raja Giryes, Guillermo Sapiro, and Alex M Bronstein. Deep neural networks with random gaussian weights: A universal classification strategy? IEEE Transactions on Signal Processing, 64(13): 3444–3457, 2016. ", + "bbox": [ + 174, + 251, + 823, + 295 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In Proceedings of the thirteenth international conference on artificial intelligence and statistics, pp. 249–256, 2010. ", + "bbox": [ + 176, + 301, + 823, + 345 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Caglar Gulcehre, Marcin Moczulski, Misha Denil, and Yoshua Bengio. Noisy activation functions. In International conference on machine learning, pp. 3059–3068, 2016. ", + "bbox": [ + 171, + 353, + 821, + 383 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Fatemeh Hadaeghi, Xu He, and Herbert Jaeger. Unconventional Information Processing Systems, Novel Hardware: A Tour D’Horizon. 2017. ", + "bbox": [ + 171, + 390, + 823, + 420 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Konstantin Hicke, Miguel Escalona-Moran, Daniel Brunner, Miguel Soriano, Ingo Fischer, and Claudio Mirasso. Information processing using transient dynamics of semiconductor lasers subject to delayed feedback. Selected Topics in Quantum Electronics, IEEE Journal of, 19:1501610– 1501610, 07 2013. doi: 10.1109/JSTQE.2013.2241738. ", + "bbox": [ + 173, + 426, + 823, + 484 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Guang-Bin Huang, Qin-Yu Zhu, and Chee-Kheong Siew. Extreme learning machine: theory and applications. Neurocomputing, 70(1-3):489–501, 2006. ", + "bbox": [ + 171, + 492, + 825, + 522 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Max Jaderberg, Wojciech Marian Czarnecki, Simon Osindero, Oriol Vinyals, Alex Graves, David Silver, and Koray Kavukcuoglu. Decoupled neural interfaces using synthetic gradients. In International Conference on Machine Learning, pp. 1627–1635. PMLR, 2017. ", + "bbox": [ + 173, + 529, + 823, + 573 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Herbert Jaeger. Adaptive nonlinear system identification with echo state networks. In Advances in neural information processing systems, 2003. ", + "bbox": [ + 171, + 580, + 823, + 609 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Ganesh Jawahar, Benoˆıt Sagot, and Djame Seddah. What does BERT learn about the structure of ´ language? In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, 2019. ", + "bbox": [ + 173, + 617, + 825, + 660 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Kam Jim, Bill G Horne, and C Lee Giles. Effects of noise on convergence and generalization in recurrent networks. In Advances in neural information processing systems, pp. 649–656, 1995. ", + "bbox": [ + 169, + 667, + 823, + 698 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Kam-Chuen Jim, C Lee Giles, and Bill G Horne. An analysis of noise in recurrent neural networks: convergence and generalization. IEEE Transactions on neural networks, 7(6):1424–1438, 1996. ", + "bbox": [ + 171, + 704, + 821, + 734 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "William B Johnson and Joram Lindenstrauss. Extensions of lipschitz mappings into a hilbert space. Contemporary mathematics, 26(189-206):1, 1984. ", + "bbox": [ + 171, + 742, + 821, + 771 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "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. ", + "bbox": [ + 174, + 779, + 823, + 821 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Jungo Kasai, Nikolaos Pappas, Hao Peng, James Cross, and Noah A Smith. Deep encoder, shallow decoder: Reevaluating the speed-quality tradeoff in machine translation. arXiv preprint arXiv:2006.10369, 2020. ", + "bbox": [ + 173, + 830, + 823, + 873 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Angelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, and Franc¸ois Fleuret. Transformers are rnns: Fast autoregressive transformers with linear attention. arXiv preprint arXiv:2006.16236, 2020. ", + "bbox": [ + 174, + 881, + 825, + 922 + ], + "page_idx": 10 + }, + { + "type": "text", + "text": "Yoon Kim. Convolutional neural networks for sentence classification. arXiv preprint arXiv:1408.5882, 2014. ", + "bbox": [ + 174, + 103, + 825, + 132 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Nikita Kitaev, Łukasz Kaiser, and Anselm Levskaya. Reformer: The efficient transformer. arXiv preprint arXiv:2001.04451, 2020. ", + "bbox": [ + 173, + 141, + 823, + 171 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to ´ document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998. ", + "bbox": [ + 173, + 180, + 823, + 209 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Yuanzhi Li and Yingyu Liang. Learning overparameterized neural networks via stochastic gradient descent on structured data. In Advances in Neural Information Processing Systems, pp. 8157– 8166, 2018. ", + "bbox": [ + 176, + 219, + 823, + 261 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Zhuohan Li, Eric Wallace, Sheng Shen, Kevin Lin, Kurt Keutzer, Dan Klein, and Joseph E Gonzalez. Train large, then compress: Rethinking model size for efficient training and inference of transformers. arXiv preprint arXiv:2002.11794, 2020. ", + "bbox": [ + 173, + 271, + 823, + 314 + ], + "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, 2019. ", + "bbox": [ + 176, + 324, + 823, + 367 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "MultiMedia LLC. Large text compression benchmark. 2009. ", + "bbox": [ + 173, + 376, + 575, + 391 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Mantas Lukosevi ˇ cius and Herbert Jaeger. Reservoir computing approaches to recurrent neural net- ˇ work training. Computer Science Review, 3(3), 2009. ", + "bbox": [ + 171, + 401, + 823, + 431 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Wolfgang Maass, Thomas Natschlager, and Henry Markram. Real-time computing without stable ¨ states: A new framework for neural computation based on perturbations. Neural computation, 14 (11):2531–2560, 2002. ", + "bbox": [ + 173, + 439, + 823, + 483 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Marvin Minsky and Seymour A Papert. Perceptrons: An introduction to computational geometry. MIT press, 2017. ", + "bbox": [ + 171, + 492, + 823, + 521 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Emre O Neftci, Charles Augustine, Somnath Paul, and Georgios Detorakis. Event-driven random back-propagation: Enabling neuromorphic deep learning machines. Frontiers in neuroscience, 11:324, 2017. ", + "bbox": [ + 173, + 530, + 823, + 574 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Hyeonwoo Noh, Tackgeun You, Jonghwan Mun, and Bohyung Han. Regularizing deep neural networks by noise: Its interpretation and optimization. In Advances in Neural Information Processing Systems, pp. 5109–5118, 2017. ", + "bbox": [ + 174, + 583, + 823, + 626 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Deniz Oktay, Nick McGreivy, Joshua Aduol, Alex Beatson, and Ryan P Adams. Randomized automatic differentiation. arXiv preprint arXiv:2007.10412, 2020. ", + "bbox": [ + 173, + 635, + 823, + 665 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Myle Ott, Sergey Edunov, David Grangier, and Michael Auli. Scaling neural machine translation. arXiv preprint arXiv:1806.00187, 2018. ", + "bbox": [ + 173, + 674, + 823, + 704 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Myle Ott, Sergey Edunov, Alexei Baevski, Angela Fan, Sam Gross, Nathan $\\mathrm { N g }$ , David Grangier, and Michael Auli. fairseq: A fast, extensible toolkit for sequence modeling. In Proceedings of NAACL-HLT 2019: Demonstrations, 2019. ", + "bbox": [ + 173, + 712, + 825, + 756 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Yoh-Han Pao, Gwang-Hoon Park, and Dejan J Sobajic. Learning and generalization characteristics of the random vector functional-link net. Neurocomputing, 6(2):163–180, 1994. ", + "bbox": [ + 171, + 765, + 823, + 795 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Jonathan Pilault, Jaehong Park, and Christopher Pal. On the impressive performance of randomly weighted encoders in summarization tasks. arXiv preprint arXiv:2002.09084, 2020. ", + "bbox": [ + 171, + 804, + 821, + 833 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Jordi Pons and Xavier Serra. Randomly weighted cnns for (music) audio classification. In ICASSP 2019-2019 IEEE international conference on acoustics, speech and signal processing (ICASSP), pp. 336–340. IEEE, 2019. ", + "bbox": [ + 173, + 843, + 823, + 886 + ], + "page_idx": 11 + }, + { + "type": "text", + "text": "Ofir Press, Noah A Smith, and Omer Levy. Improving transformer models by reordering their sublayers. arXiv preprint arXiv:1911.03864, 2019. ", + "bbox": [ + 173, + 895, + 820, + 924 + ], + "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. 2018. ", + "bbox": [ + 173, + 103, + 823, + 132 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Ali Rahimi and Benjamin Recht. Random features for large-scale kernel machines. In Advances in neural information processing systems, pp. 1177–1184, 2008. ", + "bbox": [ + 171, + 140, + 823, + 170 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Ali Rahimi and Benjamin Recht. Weighted sums of random kitchen sinks: Replacing minimization with randomization in learning. In Advances in neural information processing systems, pp. 1313– 1320, 2009. ", + "bbox": [ + 176, + 176, + 823, + 219 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Vivek Ramanujan, Mitchell Wortsman, Aniruddha Kembhavi, Ali Farhadi, and Mohammad Rastegari. What’s hidden in a randomly weighted neural network? In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 11893–11902, 2020. ", + "bbox": [ + 176, + 228, + 823, + 272 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Anna Rogers, Olga Kovaleva, and Anna Rumshisky. A primer in bertology: What we know about how bert works. arXiv preprint arXiv:2002.12327, 2020. ", + "bbox": [ + 171, + 279, + 823, + 309 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Amir Rosenfeld and John K Tsotsos. Intriguing properties of randomly weighted networks: Generalizing while learning next to nothing. In 2019 16th Conference on Computer and Robot Vision (CRV), pp. 9–16. IEEE, 2019. ", + "bbox": [ + 174, + 315, + 823, + 359 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Magnus Sahlgren. An introduction to random indexing. In Methods and applications of semantic indexing workshop at the 7th international conference on terminology and knowledge engineering, 2005. ", + "bbox": [ + 174, + 367, + 823, + 410 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Andrew M Saxe, James L McClelland, and Surya Ganguli. Exact solutions to the nonlinear dynamics of learning in deep linear neural networks. arXiv preprint arXiv:1312.6120, 2013. ", + "bbox": [ + 171, + 417, + 823, + 448 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Simone Scardapane and Dianhui Wang. Randomness in neural networks: an overview. Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery, 7(2):e1200, 2017. ", + "bbox": [ + 171, + 454, + 821, + 484 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Wouter F Schmidt, Martin A Kraaijveld, and Robert PW Duin. Feedforward neural networks with random weights. In Proceedings of the 11th International Conference on Pattern Recognition, 1992. Vol. II. Conference B: Pattern Recognition Methodology and Systems, pp. 1–4, 1992. ", + "bbox": [ + 174, + 491, + 823, + 536 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Benjamin Schrauwen, Michiel D’Haene, David Verstraeten, and Jan Campenhout. Compact hardware for real-time speech recognition using a liquid state machine. pp. 1097 – 1102, 09 2007. doi: 10.1109/IJCNN.2007.4371111. ", + "bbox": [ + 171, + 542, + 823, + 585 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Roy Schwartz, Jesse Dodge, Noah A Smith, and Oren Etzioni. Green ai. arXiv preprint arXiv:1907.10597, 2019. ", + "bbox": [ + 171, + 593, + 821, + 623 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D Manning, Andrew Y Ng, 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": [ + 173, + 631, + 825, + 688 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Emma Strubell, Ananya Ganesh, and Andrew McCallum. Energy and policy considerations for deep learning in nlp. arXiv preprint arXiv:1906.02243, 2019. ", + "bbox": [ + 169, + 695, + 823, + 726 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Gouhei Tanaka, Toshiyuki Yamane, Jean Benoit Heroux, Ryosho Nakane, Naoki Kanazawa, Seiji ´ Takeda, Hidetoshi Numata, Daiju Nakano, and Akira Hirose. Recent advances in physical reservoir computing: A review. Neural Networks, 115:100 – 123, 2019. ", + "bbox": [ + 173, + 733, + 825, + 776 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Yi Tay, Dara Bahri, Donald Metzler, Da-Cheng Juan, Zhe Zhao, and Che Zheng. Synthesizer: Rethinking self-attention in transformer models. arXiv preprint arXiv:2005.00743, 2020a. ", + "bbox": [ + 173, + 784, + 821, + 814 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Yi Tay, Mostafa Dehghani, Dara Bahri, and Donald Metzler. Efficient transformers: A survey. arXiv preprint arXiv:2009.06732, 2020b. ", + "bbox": [ + 174, + 820, + 823, + 849 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Ian Tenney, Dipanjan Das, and Ellie Pavlick. Bert rediscovers the classical nlp pipeline. arXiv preprint arXiv:1905.05950, 2019. ", + "bbox": [ + 173, + 858, + 823, + 887 + ], + "page_idx": 12 + }, + { + "type": "text", + "text": "Dmitry Ulyanov, Andrea Vedaldi, and Victor Lempitsky. Deep image prior. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 9446–9454, 2018. ", + "bbox": [ + 173, + 895, + 823, + 924 + ], + "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": [ + 176, + 103, + 823, + 146 + ], + "page_idx": 13 + }, + { + "type": "text", + "text": "Oriol Vinyals, Igor Babuschkin, Wojciech M. Czarnecki, Michael Mathieu, Andrew Dudzik, Juny- ¨ oung Chung, David H. Choi, Richard Powell, Timo Ewalds, Petko Georgiev, Junhyuk Oh, Dan Horgan, Manuel Kroiss, Ivo Danihelka, Aja Huang, Laurent Sifre, Trevor Cai, John P. Agapiou, Max Jaderberg, Alexander S. Vezhnevets, Remi Leblond, Tobias Pohlen, Valentin Dalibard, David ´ Budden, Yury Sulsky, James Molloy, Tom L. Paine, Caglar Gulcehre, Ziyu Wang, Tobias Pfaff, Yuhuai Wu, Roman Ring, Dani Yogatama, Dario Wunsch, Katrina McKinney, Oliver Smith, Tom ¨ Schaul, Timothy Lillicrap, Koray Kavukcuoglu, Demis Hassabis, Chris Apps, and David Silver. Grandmaster level in StarCraft II using multi-agent reinforcement learning. Nature, 575(7782): 350–354, November 2019. ", + "bbox": [ + 174, + 155, + 825, + 280 + ], + "page_idx": 13 + }, + { + "type": "text", + "text": "Sinong Wang, Belinda Li, Madian Khabsa, Han Fang, and Hao Ma. Linformer: Self-attention with linear complexity. arXiv preprint arXiv:2006.04768, 2020. ", + "bbox": [ + 171, + 290, + 823, + 318 + ], + "page_idx": 13 + }, + { + "type": "text", + "text": "John Wieting and Douwe Kiela. No training required: Exploring random encoders for sentence classification. arXiv preprint arXiv:1901.10444, 2019. ", + "bbox": [ + 173, + 327, + 823, + 356 + ], + "page_idx": 13 + }, + { + "type": "text", + "text": "Adina Williams, Nikita Nangia, and Samuel R Bowman. A broad-coverage challenge corpus for sentence understanding through inference. arXiv preprint arXiv:1704.05426, 2017. ", + "bbox": [ + 173, + 364, + 821, + 393 + ], + "page_idx": 13 + }, + { + "type": "text", + "text": "Ronald J Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine learning, 8(3-4):229–256, 1992. ", + "bbox": [ + 171, + 402, + 823, + 431 + ], + "page_idx": 13 + }, + { + "type": "text", + "text": "Felix Wu, Angela Fan, Alexei Baevski, Yann N Dauphin, and Michael Auli. Pay less attention with lightweight and dynamic convolutions. arXiv preprint arXiv:1901.10430, 2019. ", + "bbox": [ + 171, + 440, + 823, + 469 + ], + "page_idx": 13 + }, + { + "type": "text", + "text": "Manzil Zaheer, Guru Guruganesh, Avinava Dubey, Joshua Ainslie, Chris Alberti, Santiago Ontanon, Philip Pham, Anirudh Ravula, Qifan Wang, Li Yang, et al. Big bird: Transformers for longer sequences. arXiv preprint arXiv:2007.14062, 2020. ", + "bbox": [ + 174, + 478, + 823, + 521 + ], + "page_idx": 13 + }, + { + "type": "text", + "text": "Chiyuan Zhang, Samy Bengio, and Yoram Singer. Are all layers created equal? arXiv preprint arXiv:1902.01996, 2019. ", + "bbox": [ + 171, + 530, + 823, + 558 + ], + "page_idx": 13 + }, + { + "type": "text", + "text": "Kelly Zhang and Samuel Bowman. Language modeling teaches you more than translation does: Lessons learned through auxiliary syntactic task analysis. In Proceedings of the 2018 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP, 2018. ", + "bbox": [ + 174, + 568, + 823, + 611 + ], + "page_idx": 13 + }, + { + "type": "text", + "text": "Hattie Zhou, Janice Lan, Rosanne Liu, and Jason Yosinski. Deconstructing lottery tickets: Zeros, signs, and the supermask. In Advances in Neural Information Processing Systems, pp. 3597–3607, 2019. ", + "bbox": [ + 173, + 619, + 826, + 661 + ], + "page_idx": 13 + }, + { + "type": "image", + "img_path": "images/b02380450760b4c0b3afd0aed260a881b2948fde2eb7140d57dab6c452cac15a.jpg", + "image_caption": [ + "Figure 6: IWSLT comparison of different hybrid architectures with different reservoir layers. " + ], + "image_footnote": [], + "bbox": [ + 183, + 122, + 794, + 284 + ], + "page_idx": 14 + }, + { + "type": "image", + "img_path": "images/91e3cdb50285f6e0d0f5645a8f28b599dc264c710e34a17c857f20ebe2df2ca1.jpg", + "image_caption": [ + "Figure 7: IWSLT validation AUCC and test BLEU with 6-layer decoder. " + ], + "image_footnote": [], + "bbox": [ + 184, + 354, + 794, + 518 + ], + "page_idx": 14 + }, + { + "type": "text", + "text": "A HYBRID NETWORKS AND NON-TRANSFORMER RESERVOIRS ", + "bbox": [ + 174, + 580, + 714, + 597 + ], + "page_idx": 14 + }, + { + "type": "text", + "text": "We investigate whether reservoir layers need to be transformer-based (or transformers-withoutattention, i.e., FFN). We examine two different alternatives: bidirectional Gated Recurrent Units (Cho et al., 2014) and Convolutional Neural Networks (LeCun et al., 1998; Kim, 2014), specifically light dynamical convolutions (Wu et al., 2019). Figure 6 shows the results for these hybrids: depending on the setting, they may obtain a better AUCC than the regular transformer, but this is less consistent than with the other reservoir layers, most likely because these layers have different computational properties. It’s possible that these hybrids simply require further tuning, as we found e.g. up-projecting to help for BiGRUs, but studying this is outside of the scope of the current work. ", + "bbox": [ + 173, + 617, + 825, + 728 + ], + "page_idx": 14 + }, + { + "type": "text", + "text": "B DEEP DECODERS ", + "text_level": 1, + "bbox": [ + 176, + 756, + 349, + 771 + ], + "page_idx": 14 + }, + { + "type": "text", + "text": "We show that the same results hold for a 6-layer decoder on IWSLT (although less pronounced for AUCC, probably because the decoder is computationally heavier). See Figure 7 and Table 2. ", + "bbox": [ + 173, + 790, + 823, + 819 + ], + "page_idx": 14 + }, + { + "type": "text", + "text": "C FREEZING STRATEGY ", + "text_level": 1, + "bbox": [ + 176, + 845, + 388, + 862 + ], + "page_idx": 14 + }, + { + "type": "text", + "text": "We explored different strategies for the placement of reservoir layers and found the “alternating” strategy reported in the main body of the paper to work best. Generally, we found repetitive application of reservoirs to yield diminishing returns, as might be expected. See Figure 8. ", + "bbox": [ + 176, + 882, + 823, + 924 + ], + "page_idx": 14 + }, + { + "type": "table", + "img_path": "images/096f963793969ec1e760d733f7cd6004b153a4f7197889afc9ad33f53fb344ac.jpg", + "table_caption": [ + "Table 2: Wall-clock time (averaged over multiple runs) saved for IWSLT for different model types and encoder depths. Max BLEU is for validation. Number of layers is for encoder, decoder depth is kept fixed at 6. Ratio is computed compared to comparable number of layers in the normal case. " + ], + "table_footnote": [], + "table_body": "
Model#LayersFrozenMax BLEUTrain time until max (in hours)Ratio# Params Trainable (Total)Train Time each epoch (in seconds)
Transformer6034.97 ± 0.051.984 ± 0.02139.5M177.84 ± 2.98
8034.99 ± 0.082.161 ± 0.03143.7M206.59 ± 3.47
10034.98 ± 0.042.345± 0.02147.9M236.72 ± 3.52
12034.78 ± 0.112.535 ± 0.05152.0M265.90 ± 4.97
TReservoir6234.73 ± 0.111.838 ± 0.010.9235.3M (39.5M)166.11 ± 2.21
8235.07 ± 0.051.912 ± 0.030.8839.5M (43.7M)190.08 ± 3.73
10235.02 ± 0.011.970 ± 0.040.8443.7M (47.9M)204.42 ± 2.89
12235.06 ± 0.022.429 ± 0.020.9547.8M (52.0M)236.41 ± 4.35
FFN Reservoir6234.85 ± 0.101.729 ± 0.030.8735.3M (37.4M)161.72 ± 2.32
8234.99 ± 0.111.751 ± 0.020.8139.5M (41.6M)180.21 ± 2.68
10234.92 ± 0.031.907 ± 0.020.8143.7M (45.8M)191.40 ± 2.49
12235.16 ± 0.042.395 ± 0.010.9447.8M (49.9M)216.08 ± 2.57
LayerDrop62234.51 ± 0.121.908 ± 0.040.9635.3M (39.5M)169.62 ± 3.16
834.77 ± 0.112.023 ± 0.020.9439.5M (43.7M)186.71 ± 2.17
10234.06 ± 0.051.912 ± 0.020.9743.7M (47.9M)205.52 ± 3.31
12234.08 ± 0.132.524 ± 0.010.9947.8M (52.0M)222.45 ± 2.21
", + "bbox": [ + 176, + 101, + 825, + 314 + ], + "page_idx": 15 + }, + { + "type": "table", + "img_path": "images/d1cac1c7bd6e33cd4703a3ee16df8151c3579d2fb6cc9b58629b215468cd37aa.jpg", + "table_caption": [], + "table_footnote": [ + "Table 3: Wall-clock time (averaged over multiple runs) saved for WMT for different model types and encoder depths. Max BLEU is for validation. Number of layers is for encoder, decoder depth is kept fixed at 1. Ratio is computed compared to comparable number of layers in the normal case. " + ], + "table_body": "
Model # LayersFrozenMax BLEUTrain time until max (in hours)Ratio# Params Trainable (Total)Train Time each epoch (in hours)
Transformer12024.46 ± 0.0415.15 ± 0.15175.6M0.505 ± 0.005
16024.52 ± 0.0316.05 ± 0.1888.2M0.643 ± 0.006
24024.69 ± 0.0517.61 ± 0.851113.4M0.877 ± 0.029
32024.83 ± 0.0418.42 ± 0.281138.6M1.036 ± 0.010
TReservoir12424.26 ± 0.0814.11 ± 0.210.9372.4M (75.6M)0.472 ± 0.007
16424.50 ± 0.0515.25 ± 0.280.9575.6M (88.2M)0.596 ± 0.009
24425.11 ± 0.0715.89 ± 0.740.90100.8M (113.4M)0.776 ± 0.024
32424.66 ± 0.0416.38 ± 0.240.88126.0M (138.6M)0.998 ± 0.009
FFN Reservoir12424.42 ± 0.0514.01 ± 0.090.9272.4M (71.4M)0.441 ± 0.003
16424.65 ± 0.0714.53 ± 0.170.9175.6M (83.9M)0.524 ± 0.006
24424.93 ± 0.0412.62 ± 1.530.71100.8M (109.2M)0.743 ± 0.018
32424.98 ± 0.0313.96 ± 0.190.73126.0M (134.4M)0.964 ± 0.007
LayerDrop12424.27 ± 0.0314.61 ± 0.140.9672.4M (75.6M)0.489 ± 0.006
16424.15 ± 0.0615.55 ± 0.540.9775.6M (88.2M)0.597 ± 0.017
24424.37 ± 0.0516.25 ± 0.360.92100.8M (113.4M)0.823 ± 0.013
32423.84 ± 0.0315.27 ± 0.380.83126.0M (138.6M)1.028 ± 0.012
", + "bbox": [ + 176, + 387, + 825, + 602 + ], + "page_idx": 15 + }, + { + "type": "text", + "text": "D ROBERTA RESULTS ", + "text_level": 1, + "bbox": [ + 176, + 686, + 379, + 703 + ], + "page_idx": 15 + }, + { + "type": "text", + "text": "Here we present the additional RoBERTa results for convergence plot and AUCC in various decoder depth setting in Figure 10. As stated in the main paper, the difference of AUCC / Convergence Plot between RoBERTa model with or without Reservoir layers are limited. Moreover, we plot the downstream task performance for SST-2 and MNLI compared to the pretraining wall-clock time in Figure 9. It can be seen that the FFN Reservoir can achieve up to $\\cdot$ and $10 \\%$ pretraining time savings while matching the best performance of vanilla transformers for MNLI-m and SST2, respectively. ", + "bbox": [ + 173, + 722, + 825, + 820 + ], + "page_idx": 15 + }, + { + "type": "text", + "text": "E RESERVOIR RESULTS FOR TOTAL LAYERS ", + "text_level": 1, + "bbox": [ + 174, + 847, + 552, + 863 + ], + "page_idx": 15 + }, + { + "type": "text", + "text": "Here we present the shifted Reservoir Results for IWSLT14, WMT16, Enwik8 and RoBERTa finetuning in Figure 11, 12, 13, 14, respectively. We show the same results also hold when it comes to replace normal transformer blocks with Reservoir blocks at least for MT. ", + "bbox": [ + 176, + 881, + 823, + 922 + ], + "page_idx": 15 + }, + { + "type": "table", + "img_path": "images/4d3fb4527e6f03bb61941ed5effff97c8cabc76bd21ddb711c93f44c7bf76a44.jpg", + "table_caption": [ + "Table 4: Wall-clock time (averaged over multiple runs) saved for IWSLT/WMT for different model types and encoder depths. $\\cdot$ Max BLEU is for validation. " + ], + "table_footnote": [], + "table_body": "
Mode1#LayersIWSLT-Dec2 Train time until 95% max (in hours)Max BLEU (95%)#LayersIWSLT-Dec6 Train time until 95% max (in hours)Max BLEU (95%)#LayersWMT-Dec1 Train time until 95% max (in hours)Max BLEU (95%)
Transformer60.647 ± 0.0332.89 ± 0.0460.642 ± 0.0233.36 ± 0.03163.788 ± 0.05323.36 ± 0.06
0.711 ± 0.0533.04 ± 0.0380.765 ± 0.0333.41 ± 0.083.820 ± 0.07223.41 ± 0.05
0.808 ± 0.0233.96 ± 0.08100.898 ± 0.0433.32 ± 0.075.262 ± 0.60723.50 ± 0.03
121.037 ± 0.0333.07 ± 0.09121.037 ± 0.0333.07 ± 0.116.212 ± 0.23223.81 ±0.04
0.569 ± 0.0232.78 ±0.0360.599 ± 0.0133.09 ± 0.053.563 ± 0.06123.21 ± 0.04
80.619 ± 0.0433.12 ± 0.0580.726 ± 0.0233.38 ± 0.0913.603 ± 0.05623.80 ± 0.06
T Reservoir0.729 ± 0.0433.13 ± 0.07100.738 ± 0.0333.37 ± 0.04244.923 ± 0.77123.75 ± 0.02
120.982 ± 0.0233.03 ± 0.11120.958 ± 0.0133.46± 0.09325.780 ± 0.21423.71 ±0.03
60.521 ± 0.0532.85 ± 0.0260.594 ± 0.0333.13 ± 0.04123.417 ± 0.04623.22 ± 0.07
80.533 ± 0.0333.84 ± 0.0480.651 ± 0.0433.36 ± 0.06163.527 ± 0.06323.54 ± 0.05
100.614 ± 0.0133.05 ± 0.08100.627 ± 0.0533.26 ± 0.03244.197 ± 0.69723.74 ± 0.06
LayerDrop120.811 ± 0.0233.26 ± 0.10120.780 ± 0.0233.46 ± 0.08324.984 ± 0.32123.82 ± 0.02
0.837 ±0.0832.87 ± 0.0560.706 ±0.0133.08 ± 0.03123.912 ± 0.06823.33 ± 0.08
60.934 ± 0.0733.12 ± 0.0380.753 ± 0.0433.14 ± 0.05163.581 ± 0.07623.17 ± 0.04
100.901 ± 0.0633.18 ±0.02100.691 ± 0.0332.39 ± 0.0534.875 ± 0.72823.43 ± 0.07
120.914 ± 0.0132.33 ± 0.06120.803 ± 0.0232.94 ± 0.105.980 ± 0.21922.97 ± 0.08
", + "bbox": [ + 176, + 101, + 825, + 255 + ], + "page_idx": 16 + }, + { + "type": "table", + "img_path": "images/cc2eb78eb0712912677703c3e20189a9030afe6a087941113b4d0f72dac4402a.jpg", + "table_caption": [], + "table_footnote": [ + "Table 5: Wall-clock time (averaged over multiple runs) saved for IWSLT/WMT for different model types and encoder depths. $9 9 \\%$ Max BLEU is for validation. " + ], + "table_body": "
Model#LayersIWSLT-Dec2 Train timeIWSLT-Dec6WMT-Dec1
until 99 % max (in hours)Max BLEU (99%)#LayersTrain time until 99 % max (in hours)Max BLEU (99%)#LayersTrain time until 99 % max (in hours)Max BLEU (99%)
Transformer1.454 ± 0.0634.24 ± 0.0561.297 ± 0.0334.69 ± 0.0519.961 ± 0.05324.27 ± 0.04
1.475 ± 0.0934.32 ± 0.0981.390 ± 0.0212.623 ± 0.07224.35 ± 0.06
101.526 ± 0.0434.25 ± 0.041.622 ± 0.0534.75 ± 0.09 34.64 ± 0.03313.412 ± 0.83724.49 ± 0.07
122.259 ± 0.0734.24 ± 0.1110 121.748 ± 0.0134.66 ± 0.0815.117 ± 0.23224.56 ± 0.02
TReservoir1.257 ± 0.0434.05 ± 0.0961.291 ± 0.0334.51 ± 0.1018.314 ± 0.06224.15 ± 0.06
101.472 ± 0.0634.47 ± 0.051.339 ± 0.0334.80 ± 0.049.221 ± 0.07324.41 ± 0.05
121.530 ± 0.0334.36 ± 0.02101.419 ± 0.0434.72 ± 0.0310.413 ± 0.58024.56 ± 0.03
2.043 ± 0.0534.53 ± 0.07121.642 ± 0.0234.87 ± 0.02311.465 ± 0.22724.49 ±0.01
6801.138 ± 0.0334.10 ± 0.1361.169 ± 0.0234.71 ± 0.097.407 ± 0.08724.33 ± 0.08
FFN Reservoir1.101 ± 0.0734.32 ± 0.11 34.36 ± 0.038 101.201 ± 0.03 1.276 ± 0.0334.79 ±0.08 34.63 ± 0.039.336 ± 0.03624.42 ± 0.05
121.281 ± 0.019.978 ± 0.54624.91 ± 0.07
1.785 ± 0.0334.42 ± 0.06121.440 ± 0.0134.87 ± 0.0210.524 ± 0.34124.96 ± 0.01
81.363 ± 0.0534.58 ± 0.1461.253 ± 0.0134.42 ± 0.108.372 ± 0.05924.17 ± 0.04
1.468 ± 0.0334.50 ± 0.1281.244 ± 0.0434.44 ± 0.099.741 ± 0.04323.93 ± 0.08
LayerDrop101.678 ± 0.0434.52 ± 0.071033.83 ±0.0616 310.145 ± 0.62824.07 ± 0.09
122.071 ± 0.0233.45 ± 0.23121.343 ± 0.04 1.423 ± 0.0233.97 ± 0.1210.168 ± 0.32923.81 ± 0.03
", + "bbox": [ + 174, + 308, + 825, + 462 + ], + "page_idx": 16 + }, + { + "type": "text", + "text": "F VALIDATION PLOTS ", + "text_level": 1, + "bbox": [ + 176, + 525, + 370, + 541 + ], + "page_idx": 16 + }, + { + "type": "text", + "text": "Here we present the validation plots for training a 8-layer encoder, 2-layer decoder model for IWSLT14, a 24-layer encoder, 1-layer decoder model for WMT14, a 48-layer decoder model for enwik8 and a 12-layer decoder model for RoBERTa for detailed steps to calculate the AUCC. It can be clearly observed that given the configurations from Section 3.1, all the models have converged. So when we compute the area under the convergence curve, this depicts the training efficiency of the model (basically time x performance) until convergence. Specifically, we set T sufficiently high for computing the AUCC, which is 4h for IWSLT, 20h for WMT, 30h for enwik8 and 60h for RoBERTa pretraning. From the training plot in the appendix, we can see that each model has converged at that point. The Reservoir model in Figure 15 has 2 layers frozen for IWSLT14, 8 layers frozen for enwik8, and 4 layers frozen for WMT14 and RoBERTa. ", + "bbox": [ + 173, + 556, + 825, + 696 + ], + "page_idx": 16 + }, + { + "type": "text", + "text": "G ROBERTA PROBING ", + "text_level": 1, + "bbox": [ + 174, + 715, + 382, + 733 + ], + "page_idx": 16 + }, + { + "type": "text", + "text": "We follow Jawahar et al. (2019) and investigate what the frozen layers in the Reservoir Transformer have actually “learned” (while being forzen) as measured by probing tasks, reported in Table 6. The results are gathered over 3 random seeds for reporting the mean and standard deviation. From the table, we can see that generally probing performance is quite similar between Transformer and the T Reservoir model. We also noticed that the representations collected after the frozen layer (3, 5, 7, 9) in the T Reservoir actually have significantly better performance over the regular Transformer representations across all the probing tasks. This has interesting repercussions for the study of “BERTology”, as it clearly shows, somewhat confusingly, that even completely random and frozen layers represent linguistic phenomena. ", + "bbox": [ + 173, + 747, + 825, + 875 + ], + "page_idx": 16 + }, + { + "type": "image", + "img_path": "images/bdd1e0f5437432a0076b1c35076cc1e6057826414f43599a327bf57236d29faf.jpg", + "image_caption": [ + "Figure 8: IWSLT with 2-layer decoder using different freezing strategy. " + ], + "image_footnote": [], + "bbox": [ + 313, + 148, + 656, + 340 + ], + "page_idx": 17 + }, + { + "type": "image", + "img_path": "images/8efb8273099ff74135796331759c0532b0ccf7448a7b83e8c437cb3b5dc2a6fb.jpg", + "image_caption": [ + "Figure 9: RoBERTa Reservoir Results, Pre-training versus downstream task plot for 12 layer RoBERTa. MNLI-m (left). SST-2 (right). " + ], + "image_footnote": [], + "bbox": [ + 191, + 446, + 794, + 609 + ], + "page_idx": 17 + }, + { + "type": "image", + "img_path": "images/16c67d74e5743eb685c5b29836cc09d4540ceae3fe880d614d534330288bb088.jpg", + "image_caption": [ + "Figure 10: RoBERTa Reservoir Results, Training plot for 12 layer RoBERTa (left). AUCC result (right). " + ], + "image_footnote": [], + "bbox": [ + 202, + 723, + 800, + 856 + ], + "page_idx": 17 + }, + { + "type": "image", + "img_path": "images/e38bef769826f1e91e25614fc341e46647bcb6ea7bc3f2a9aafc23ea160c51d5.jpg", + "image_caption": [ + "Figure 11: Validation BLEU AUCC and test BLEU for IWSLT (high is good). Comparison of regular transformer and reservoir transformer with FFN or Transformer reservoir layers added. " + ], + "image_footnote": [], + "bbox": [ + 183, + 140, + 794, + 303 + ], + "page_idx": 18 + }, + { + "type": "image", + "img_path": "images/a79c4059de5d7c1e244e50c3037c5c3ba9d32882a35b29d942cc4721a4bbab54.jpg", + "image_caption": [ + "Figure 12: Validation BLEU AUCC and test BLEU for WMT (high is good). Comparison of regular transformer and reservoir transformer with FFN or Transformer reservoir layers added. " + ], + "image_footnote": [], + "bbox": [ + 181, + 416, + 795, + 579 + ], + "page_idx": 18 + }, + { + "type": "image", + "img_path": "images/341111a25bde86caccbfa885e06e66acf9b016afdcaeecdf8630ea4dc0291102.jpg", + "image_caption": [ + "Figure 13: Validation BPC AUCC and test BPC on the enwik8 language modelling task (low is good). Comparison of regular and reservoir transformers for varying depths. " + ], + "image_footnote": [], + "bbox": [ + 186, + 690, + 794, + 854 + ], + "page_idx": 18 + }, + { + "type": "image", + "img_path": "images/dbab4e8809ef2a132617f00c1dc1acd380a0973768e0196c29742da904ec4002.jpg", + "image_caption": [ + "Figure 14: Downstream RoBERTa performance on SST-2 (left) and MultiNLI-matched (right). " + ], + "image_footnote": [], + "bbox": [ + 191, + 127, + 794, + 287 + ], + "page_idx": 19 + }, + { + "type": "image", + "img_path": "images/41ebdc6849103e9713e0791384d38890f3c671a95f174869f62c2c94346167cf.jpg", + "image_caption": [ + "Figure 15: IWSLT with 2-layer decoder validation plot (upper left). WMT with 24-layer decoder validation plot (upper right). Enwik8 with 48-layer decoder validation plot (lower left). RoBERTa with 12-layer decoder validation plot (lower right). " + ], + "image_footnote": [], + "bbox": [ + 199, + 353, + 795, + 592 + ], + "page_idx": 19 + }, + { + "type": "table", + "img_path": "images/1a0ada09fc6e820280ef99ea702bea624120a34c1aa4e724a8efcb050a9688cd.jpg", + "table_caption": [], + "table_footnote": [ + "Table 6: RoBERTa Probing Results. The line in bold text are the the frozen layers in the T Reservoir. " + ], + "table_body": "
ModelLayerSentLen (Surface)TreeDepth (Syntactic)TopConst (Syntactic)BShift (Syntactic)Tense (Semantic)SubjNum (Semantic)ObjNum (Semantic)SOMO (Semantic)CoordInv (Semantic)
Transformer84.56 ± 0.5432.30 ± 0.4154.40 ± 0.3349.99 ± 0.0180.98 ± 0.3276.26 ± 0.0950.01 ± 0.1976.38 ± 0.6154.33 ± 0.47
87.22 ± 0.0733.63 ± 0.5758.38 ± 0.2050.12 ± 0.1782.84 ± 0.6878.65 ± 0.1951.47 ± 0.5378.00 ± 1.1254.66 ± 0.55
84.25 ± 0.1632.60 ± 0.1754.41 ± 0.1050.02 ± 0.0181.72 ± 0.5977.00 ± 0.1351.32 ± 0.6476.57 ± 1.1354.13 ± 0.51
87.37 ± 0.2032.59 ± 0.2950.06 ± 0.2169.76 ± 0.2681.63 ± 1.1776.47 ± 0.0952.41 ± 1.4976.15 ± 0.8452.62 ± 1.34
584.61 ± 0.2431.14 ± 0.4844.76 ± 0.3874.82 ± 0.1180.16 ± 0.1973.66 ± 0.1652.95 ± 1.7772.90 ± 0.2151.26 ± 1.14
682.56 ± 0.2530.31 ± 0.4039.30 ± 0.4078.80 ±0.3881.88 ± 0.4775.30 ± 0.0756.21 ± 1.2674.37 ± 0.1651.44 ± 1.04
70.85 ± 0.1326.65 ± 0.7240.70 ± 0.1378.98 ± 0.3285.11 ± 0.3172.03 ± 0.4658.15 ± 0.4668.71 ± 0.9155.39 ± 0.27
866.23 ± 1.3323.46 ± 0.4425.19 ± 1.0277.42 ± 0.2780.35 ± 0.4567.55 ± 0.9954.94 ± 2.0463.69 ± 2.3250.58 ± 0.83
971.17 ± 0.2931.21 ± 0.3158.42 ± 0.2985.55 ± 0.4486.77 ± 0.1980.30 ± 0.0864.36 ± 1.2081.68 ± 0.4566.90 ± 0.49
1073.19 ± 0.5027.74 ± 0.5341.01 ± 0.2283.56 ± 0.9686.13 ± 0.3583.04 ± 0.0462.01 ± 0.5979.73 ± 0.2162.60 ± 1.04
1171.37 ± 0.4230.22 ± 0.2848.58 ± 0.3584.40 ± 0.4487.28 ± 0.5982.34 ± 0.1561.10 ± 0.1480.00 ± 0.4064.44 ± 0.38
1271.66 ± 0.1233.43 ± 0.1864.38 ± 0.2087.38 ± 0.0288.41 ± 0.0984.46 ± 0.2563.01 ± 0.0581.80 ± 0.2765.72 ± 0.16
87.75 ± 0.1031.60 ± 0.2150.38 ± 0.2350.00 ± 0.0080.40 ± 0.1876.47 ± 0.2050.53 ± 0.1473.48 ± 0.15
TReservoir281.28 ± 0.2334.20 ± 0.4160.64 ± 0.6553.55 ± 0.70
61.41 ± 0.4281.50 ± 0.7776.33 ± 0.0850.73 ± 0.3474.28 ± 0.6756.82 ± 0.10
389.28 ± 0.0936.42 ± 0.1167.36 ± 0.4575.64 ± 0.5285.42 ± 0.1880.53 ± 0.0252.50 ± 1.8078.47 ± 1.8157.16 ± 0.27
74.31 ± 0.3232.42 ± 0.8355.19 ± 0.3373.41 ± 0.0079.56 ± 0.0075.15 ± 0.0853.68 ± 0.6675.02 ± 0.1956.89 ± 0.08
88.03 ± 0.22 74.55 ± 0.3738.34 ± 0.64 33.13 ± 0.2968.65 ± 0.2982.25 ± 0.1286.80 ± 0.0282.27 ± 0.3357.95 ± 0.2480.82 ± 0.9158.05 ± 0.10
52.70 ± 0.8179.21 ± 0.1385.70 ± 0.3677.43 ± 0.0357.26 ± 0.1975.38 ± 0.6651.95 ± 1.30
85.82 ± 0.37 71.69 ± 0.7137.63 ± 0.13 30.32 ± 0.0170.43 ± 0.05 48.44 ± 0.3084.12 ± 0.35 79.12 ± 0.1286.88 ± 0.0782.86 ± 0.3061.17 ± 0.2180.79 ± 0.1761.83 ± 0.95
8 985.86 ± 0.1237.89 ± 0.0369.53 ± 0.3785.55 ± 0.1284.75 ± 0.09 87.98 ± 0.2279.23 ± 0.11 84.13 ± 0.0159.53 ± 0.1676.80 ± 0.4157.34 ± 0.14
69.22 ± 0.2325.58 ± 0.3529.20 ± 0.5878.57 ± 0.0963.06± 0.0182.55 ± 0.3166.07 ± 0.05
1047.56 ± 0.0285.02 ± 0.0375.68 ± 0.1657.55 ± 1.5774.70 ± 0.0255.02 ± 0.64
1165.70 ± 0.0530.57 ± 0.0381.20 ± 0.0086.78 ± 0.0283.73 ± 0.0560.38 ± 0.1780.59 ± 0.1562.50 ± 0.11
1270.61 ± 0.1834.45± 0.2064.19 ± 0.1084.53 ± 0.0387.48 ± 0.1684.86 ± 0.1462.75 ± 0.1482.08 ± 0.0364.73 ± 0.06
", + "bbox": [ + 176, + 666, + 825, + 888 + ], + "page_idx": 19 + } +] \ No newline at end of file