Datasets:
Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- parse/train/B1l6qiR5F7/B1l6qiR5F7_content_list.json +1556 -0
- parse/train/B1l6qiR5F7/B1l6qiR5F7_model.json +0 -0
- parse/train/BkrSv0lA-/BkrSv0lA-.md +507 -0
- parse/train/BkrSv0lA-/BkrSv0lA-_content_list.json +0 -0
- parse/train/BkrSv0lA-/BkrSv0lA-_middle.json +0 -0
- parse/train/BkrSv0lA-/BkrSv0lA-_model.json +0 -0
- parse/train/BydjJte0-/BydjJte0-.md +385 -0
- parse/train/BydjJte0-/BydjJte0-_content_list.json +2104 -0
- parse/train/BydjJte0-/BydjJte0-_middle.json +0 -0
- parse/train/BydjJte0-/BydjJte0-_model.json +0 -0
- parse/train/GWRkOYr4jxQ/GWRkOYr4jxQ.md +301 -0
- parse/train/GWRkOYr4jxQ/GWRkOYr4jxQ_content_list.json +1503 -0
- parse/train/GWRkOYr4jxQ/GWRkOYr4jxQ_middle.json +0 -0
- parse/train/GWRkOYr4jxQ/GWRkOYr4jxQ_model.json +0 -0
- parse/train/rkecl1rtwB/rkecl1rtwB.md +320 -0
- parse/train/rkecl1rtwB/rkecl1rtwB_content_list.json +1669 -0
- parse/train/rkecl1rtwB/rkecl1rtwB_middle.json +0 -0
- parse/train/rkecl1rtwB/rkecl1rtwB_model.json +0 -0
- parse/train/rkl03ySYDH/rkl03ySYDH_middle.json +0 -0
- parse/train/rkl03ySYDH/rkl03ySYDH_model.json +0 -0
- vlm/test/1ikK0kHjvj/0.png +3 -0
- vlm/test/1ikK0kHjvj/1.png +3 -0
- vlm/test/1ikK0kHjvj/10.png +3 -0
- vlm/test/1ikK0kHjvj/11.png +3 -0
- vlm/test/1ikK0kHjvj/12.png +3 -0
- vlm/test/1ikK0kHjvj/13.png +3 -0
- vlm/test/1ikK0kHjvj/14.png +3 -0
- vlm/test/1ikK0kHjvj/15.png +3 -0
- vlm/test/1ikK0kHjvj/16.png +3 -0
- vlm/test/1ikK0kHjvj/17.png +3 -0
- vlm/test/1ikK0kHjvj/18.png +3 -0
- vlm/test/1ikK0kHjvj/19.png +3 -0
- vlm/test/1ikK0kHjvj/2.png +3 -0
- vlm/test/1ikK0kHjvj/20.png +3 -0
- vlm/test/1ikK0kHjvj/21.png +3 -0
- vlm/test/1ikK0kHjvj/22.png +3 -0
- vlm/test/1ikK0kHjvj/23.png +3 -0
- vlm/test/1ikK0kHjvj/24.png +3 -0
- vlm/test/1ikK0kHjvj/25.png +3 -0
- vlm/test/1ikK0kHjvj/26.png +3 -0
- vlm/test/1ikK0kHjvj/27.png +3 -0
- vlm/test/1ikK0kHjvj/28.png +3 -0
- vlm/test/1ikK0kHjvj/29.png +3 -0
- vlm/test/1ikK0kHjvj/3.png +3 -0
- vlm/test/1ikK0kHjvj/30.png +3 -0
- vlm/test/1ikK0kHjvj/31.png +3 -0
- vlm/test/1ikK0kHjvj/32.png +3 -0
- vlm/test/1ikK0kHjvj/33.png +3 -0
- vlm/test/1ikK0kHjvj/34.png +3 -0
- vlm/test/1ikK0kHjvj/35.png +3 -0
parse/train/B1l6qiR5F7/B1l6qiR5F7_content_list.json
ADDED
|
@@ -0,0 +1,1556 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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ikang Shen∗ \nMila/Universite de Montr´ eal and Microsoft Research´ \nMontreal, Canada´ ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
195,
|
| 20 |
+
532,
|
| 21 |
+
237
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Shawn Tan∗ Mila/Universite de Montr´ eal´ Montreal, Canada´ ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
625,
|
| 30 |
+
195,
|
| 31 |
+
813,
|
| 32 |
+
237
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Alessandro Sordoni Microsoft Research Montreal, Canada´ ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
184,
|
| 41 |
+
258,
|
| 42 |
+
323,
|
| 43 |
+
300
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Aaron Courville \nMila/Universite de Montr´ eal´ \nMontreal, Canada´ ",
|
| 50 |
+
"bbox": [
|
| 51 |
+
482,
|
| 52 |
+
258,
|
| 53 |
+
671,
|
| 54 |
+
300
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "ABSTRACT ",
|
| 61 |
+
"text_level": 1,
|
| 62 |
+
"bbox": [
|
| 63 |
+
454,
|
| 64 |
+
338,
|
| 65 |
+
544,
|
| 66 |
+
353
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "Natural language is hierarchically structured: smaller units (e.g., phrases) are nested within larger units (e.g., clauses). When a larger constituent ends, all of the smaller constituents that are nested within it must also be closed. While the standard LSTM architecture allows different neurons to track information at different time scales, it does not have an explicit bias towards modeling a hierarchy of constituents. This paper proposes to add such an inductive bias by ordering the neurons; a vector of master input and forget gates ensures that when a given neuron is updated, all the neurons that follow it in the ordering are also updated. Our novel recurrent architecture, ordered neurons LSTM (ON-LSTM), achieves good performance on four different tasks: language modeling, unsupervised parsing, targeted syntactic evaluation, and logical inference1. ",
|
| 73 |
+
"bbox": [
|
| 74 |
+
233,
|
| 75 |
+
369,
|
| 76 |
+
764,
|
| 77 |
+
522
|
| 78 |
+
],
|
| 79 |
+
"page_idx": 0
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"type": "text",
|
| 83 |
+
"text": "1 INTRODUCTION ",
|
| 84 |
+
"text_level": 1,
|
| 85 |
+
"bbox": [
|
| 86 |
+
176,
|
| 87 |
+
551,
|
| 88 |
+
336,
|
| 89 |
+
566
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Natural language has a sequential overt form as spoken and written, but the underlying structure of language is not strictly sequential. This structure is usually tree-like. Linguists agree on a set of rules, or syntax, that determine this structure (Chomsky, 1956; 1965; Sandra & Taft, 2014) and dictate how single words compose to form meaningful larger units, also called “constituents” (Koopman et al., 2013). The human brain can also implicitly acquire the latent structure of language (Dehaene et al., 2015): during language acquisition, children are not given annotated parse trees. This observation brings more interest in latent structure induction with artificial neural network approaches, which are inspired by information processing and communication patterns in biological nervous systems. From a practical point of view, integrating a tree structure into a neural network language model may be important for multiple reasons: ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
583,
|
| 99 |
+
825,
|
| 100 |
+
723
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "(i) to obtain a hierarchical representation with increasing levels of abstraction, a key feature of deep neural networks (Bengio et al., 2009; LeCun et al., 2015; Schmidhuber, 2015); \n(ii) to model the compositional effects of language (Koopman et al., 2013; Socher et al., 2013) and help with the long-term dependency problem (Bengio et al., 2009; Tai et al., 2015) by providing shortcuts for gradient backpropagation (Chung et al., 2016); \n(iii) to improve generalization via a better inductive bias and at the same time potentially reducing the need of a large amount of training data. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
202,
|
| 109 |
+
734,
|
| 110 |
+
825,
|
| 111 |
+
844
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "The study of deep neural network techniques that can infer and use tree structures to form better representations of natural language sentences has received a great deal of attention in recent years (Bowman et al., 2016; Yogatama et al., 2016; Shen et al., 2017; Jacob et al., 2018; Choi et al., 2018; Williams et al., 2018; Shi et al., 2018). ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
178,
|
| 120 |
+
857,
|
| 121 |
+
823,
|
| 122 |
+
886
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "image",
|
| 128 |
+
"img_path": "images/64f48480a31dc86ae48435f4c1df297a0a782560caa7f4f3f3948c909339a4bc.jpg",
|
| 129 |
+
"image_caption": [
|
| 130 |
+
"Interest expense in the 1988 third quarter was 75.3 million Interest expense in the 1988 third quarter was 75.3 million ",
|
| 131 |
+
"Figure 1: Binary parse tree inferred by our model (left) and its corresponding ground-truth (right). "
|
| 132 |
+
],
|
| 133 |
+
"image_footnote": [],
|
| 134 |
+
"bbox": [
|
| 135 |
+
204,
|
| 136 |
+
102,
|
| 137 |
+
795,
|
| 138 |
+
133
|
| 139 |
+
],
|
| 140 |
+
"page_idx": 1
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"type": "text",
|
| 144 |
+
"text": "",
|
| 145 |
+
"bbox": [
|
| 146 |
+
173,
|
| 147 |
+
204,
|
| 148 |
+
823,
|
| 149 |
+
232
|
| 150 |
+
],
|
| 151 |
+
"page_idx": 1
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"type": "text",
|
| 155 |
+
"text": "Given a sentence, one straightforward way of predicting the corresponding latent tree structure is through a supervised syntactic parser. Trees produced by these parsers have been used to guide the composition of word semantics into sentence semantics (Socher et al., 2013; Bowman et al., 2015), or even to help next word prediction given previous words (Wu et al., 2017). However, supervised parsers are limiting for several reasons: i) few languages have comprehensive annotated data for supervised parser training; ii) in some domains, syntax rules tend to be broken (e.g. in tweets); and iii) languages change over time with use, so syntax rules may evolve. ",
|
| 156 |
+
"bbox": [
|
| 157 |
+
174,
|
| 158 |
+
239,
|
| 159 |
+
825,
|
| 160 |
+
337
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "On the other hand, grammar induction, defined as the task of learning the syntactic structure from raw corpora without access to expert-labeled data, remains an open problem. Many such recent attempts suffer from inducing a trivial structure (e.g., a left-branching or right-branching tree (Williams et al., 2018)), or encounter difficulties in training caused by learning branching policies with Reinforcement Learning (RL) (Yogatama et al., 2016). Furthermore, some methods are relatively complex to implement and train, like the PRPN model proposed in Shen et al. (2017). ",
|
| 167 |
+
"bbox": [
|
| 168 |
+
174,
|
| 169 |
+
343,
|
| 170 |
+
825,
|
| 171 |
+
428
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "Recurrent neural networks (RNNs) have proven highly effective at the task of language modeling (Merity et al., 2017; Melis et al., 2017). RNNs explicitly impose a chain structure on the data. This assumption may seem at odds with the latent non-sequential structure of language and may pose several difficulties for the processing of natural language data with deep learning methods, giving rise to problems such as capturing long-term dependencies (Bengio et al., 2009), achieving good generalization (Bowman et al., 2015), handling negation (Socher et al., 2013), etc. Meanwhile, some evidence exists that LSTMs with sufficient capacity potentially implement syntactic processing mechanisms by encoding the tree structure implicitly, as shown by Gulordava et al. (2018); Kuncoro et al. (2018) and very recently by Lakretz et al. (2019). We believe that the following question remains: Can better models of language be obtained by architectures equipped with an inductive bias towards learning such latent tree structures? ",
|
| 178 |
+
"bbox": [
|
| 179 |
+
174,
|
| 180 |
+
434,
|
| 181 |
+
825,
|
| 182 |
+
587
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 1
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "In this work, we introduce ordered neurons, a new inductive bias for recurrent neural networks. This inductive bias promotes differentiation of the life cycle of information stored inside each neuron: high-ranking neurons will store long-term information which is kept for a large number of steps, while low-ranking neurons will store short-term information that can be rapidly forgotten. To avoid a strict division between high-ranking and low-ranking neurons, we propose a new activation function, the cumulative softmax, or cumax(), to actively allocate neurons to store long/short-term information. We use the cumax() function to produce a vector of master input and forget gates ensuring that when a given neuron is updated (erased), all of the neurons that follow it in the ordering are also updated (erased). Based on the cumax() and the LSTM architecture, we have designed a new model, ON-LSTM, that is biased towards performing tree-like composition operations. Our model achieves good performance on four tasks: language modeling, unsupervised constituency parsing, targeted syntactic evaluation (Marvin & Linzen, 2018) and logical inference (Bowman et al., 2015). The result on unsupervised constituency parsing suggests that the proposed inductive bias aligns with the syntax principles proposed by human experts better than previously proposed models. The experiments also show that ON-LSTM performs better than standard LSTM models in tasks requiring capturing long-term dependencies and achieves better generalization to longer sequences. ",
|
| 189 |
+
"bbox": [
|
| 190 |
+
174,
|
| 191 |
+
594,
|
| 192 |
+
825,
|
| 193 |
+
816
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 1
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "text",
|
| 199 |
+
"text": "2 RELATED WORK ",
|
| 200 |
+
"text_level": 1,
|
| 201 |
+
"bbox": [
|
| 202 |
+
176,
|
| 203 |
+
837,
|
| 204 |
+
344,
|
| 205 |
+
852
|
| 206 |
+
],
|
| 207 |
+
"page_idx": 1
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "text",
|
| 211 |
+
"text": "There has been prior work leveraging tree structures for natural language tasks in the literature. Socher et al. (2010); Alvarez-Melis & Jaakkola (2016); Zhou et al. (2017); Zhang et al. (2015) use supervised learning on expert-labeled treebanks for predicting parse trees. Socher et al. (2013) and Tai et al. (2015) explicitly model the tree-structure using parsing information from an external parser. Later, Bowman et al. (2016) exploited guidance from a supervised parser (Klein & Manning, 2003) in order to train a stack-augmented neural network. ",
|
| 212 |
+
"bbox": [
|
| 213 |
+
176,
|
| 214 |
+
868,
|
| 215 |
+
823,
|
| 216 |
+
924
|
| 217 |
+
],
|
| 218 |
+
"page_idx": 1
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"type": "text",
|
| 222 |
+
"text": "",
|
| 223 |
+
"bbox": [
|
| 224 |
+
173,
|
| 225 |
+
103,
|
| 226 |
+
821,
|
| 227 |
+
132
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 2
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "Theoretically, RNNs and LSTMs can model data produced by context-free grammars and contextsensitive grammars (Gers & Schmidhuber, 2001). However, recent results suggest that introducing structure information into LSTMs is beneficial. Kuncoro et al. (2018) showed that RNNGs (Dyer et al., 2016), which have an explicit bias to model the syntactic structures, outperform LSTMs on the subject-verb agreement task (Linzen et al., 2016). In our paper, we run a more extensive suite of grammatical tests recently provided by Marvin & Linzen (2018). Bowman et al. (2014; 2015) also demonstrate that tree-structured models are more effective for downstream tasks whose data was generated by recursive programs. Interestingly, Shi et al. (2018) suggests that while the prescribed grammar tree may not be ideal, some sort of hierarchical structure, perhaps task dependent, might help. However, the problem of efficiently inferring such structures from observed data remains an open question. ",
|
| 234 |
+
"bbox": [
|
| 235 |
+
174,
|
| 236 |
+
138,
|
| 237 |
+
825,
|
| 238 |
+
291
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 2
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "The task of learning the underlying grammar from data is known as grammar induction (Chen, 1995; Cohen et al., 2011). Early work incorporated syntactic structure in the context of language modeling (Roark, 2001; Charniak, 2001; Chelba & Jelinek, 2000). More recently, there have been attempts at incorporating some structure for downstream tasks using neural models (Grefenstette et al., 2015; Sun et al., 2017; Joulin & Mikolov, 2015). Generally, these works augment a main recurrent model with a stack and focus on solving algorithmic tasks. Yogatama et al. (2018) focus on language modeling and syntactic evaluation tasks (Linzen et al., 2016) but they do not show the extent to which the structure learnt by the model align with gold-standard parse trees. Shen et al. (2017) introduced the Parsing-Reading-Predict Networks (PRPN) model, which attempts to perform parsing by solving a language modeling task. The model uses self-attention to compose previous states, where the range of attention is controlled by a learnt “syntactic distance”. The authors show that this value corresponds to the depth of the parse tree. However, the added complexity in using the PRPN model makes it unwieldy in practice. ",
|
| 245 |
+
"bbox": [
|
| 246 |
+
174,
|
| 247 |
+
299,
|
| 248 |
+
825,
|
| 249 |
+
478
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 2
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "text",
|
| 255 |
+
"text": "Another possible solution is to develop models with varying time-scales of recurrence as a way of capturing this hierarchy. El Hihi & Bengio (1996); Schmidhuber (1991); Lin et al. (1998) describe models that capture hierarchies at pre-determined time-scales. More recently, Koutnik et al. (2014) proposed Clockwork RNN, which segments the hidden state of a RNN by updating at different time-scales. These approaches typically make a strong assumption about the regularity of the hierarchy involved in modelling the data. Chung et al. (2016) proposed a method that, unlike the Clockwork RNN, would learn a multi-scale hierarchical recurrence. However, the model still has a pre-determined depth to the hierarchy, depending on the number of layers. Our work is more closely related to Rippel et al. (2014), which propose to induce a hierarchy in the representation units by applying “nested” dropout masks: units are not dropped independently at random but whenever a unit is dropped, all the units that follow in the ordering are also dropped. Our work can be seen as a soft relaxation of the dropout by means of the proposed cumax() activation. Moreover, we propose to condition the update masks on the particular input and apply our overall model to sequential data. Therefore, our model can adapt the structure to the observed data, while both Clockwork RNN and nested dropout impose a predefined hierarchy to hidden representations. ",
|
| 256 |
+
"bbox": [
|
| 257 |
+
173,
|
| 258 |
+
486,
|
| 259 |
+
825,
|
| 260 |
+
694
|
| 261 |
+
],
|
| 262 |
+
"page_idx": 2
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"type": "text",
|
| 266 |
+
"text": "3 ORDERED NEURONS ",
|
| 267 |
+
"text_level": 1,
|
| 268 |
+
"bbox": [
|
| 269 |
+
176,
|
| 270 |
+
715,
|
| 271 |
+
377,
|
| 272 |
+
732
|
| 273 |
+
],
|
| 274 |
+
"page_idx": 2
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"type": "text",
|
| 278 |
+
"text": "Given a sequence of tokens $S = ( x _ { 1 } , \\dots , x _ { T } )$ and its corresponding constituency tree (Figure 2(a)), our goal is to infer the unobserved tree structure while processing the observed sequence, i.e. while computing the hidden state $h _ { t }$ for each time step $t$ . At each time step, $h _ { t }$ would ideally contain a information about all the nodes on the path between the current leaf node $x _ { t }$ and the root S. In Figure 2(c), we illustrate how $h _ { t }$ would contain information about all the constituents that include the current token $x _ { t }$ even if those are only partially observed. This intuition suggests that each node in the tree can be represented by a set of neurons in the hidden states. However, while the dimensionality of the hidden state is fixed in advance, the length of the path connecting the leaf to the root of the tree may be different across different time steps and sentences. Therefore, a desiderata for the model is to dynamically reallocate the dimensions of the hidden state to each node. ",
|
| 279 |
+
"bbox": [
|
| 280 |
+
174,
|
| 281 |
+
750,
|
| 282 |
+
825,
|
| 283 |
+
888
|
| 284 |
+
],
|
| 285 |
+
"page_idx": 2
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"type": "text",
|
| 289 |
+
"text": "Given these requirements, we introduce ordered neurons, an inductive bias that forces neurons to represent information at different time-scales. In our model, high-ranking neurons contain long-term or global information that will last anywhere from several time steps to the entire sentence, representing nodes near the root of the tree. Low-ranking neurons encode short-term or local information that only last one or a few time steps, representing smaller constituents, as shown in Figure 2(b). The differentiation between high-ranking and low-ranking neurons is learnt in a completely data-driven fashion by controlling the update frequency of single neurons: to erase (or update) high-ranking neurons, the model should first erase (or update) all lower-ranking neurons. In other words, some neurons always update more (or less) frequently than the others, and that order is pre-determined as part of the model architecture. ",
|
| 290 |
+
"bbox": [
|
| 291 |
+
174,
|
| 292 |
+
895,
|
| 293 |
+
821,
|
| 294 |
+
924
|
| 295 |
+
],
|
| 296 |
+
"page_idx": 2
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"type": "image",
|
| 300 |
+
"img_path": "images/30a600b32cff4337192a9cce82dbad979d4481382ed0dfe4a930e1bf09913154.jpg",
|
| 301 |
+
"image_caption": [
|
| 302 |
+
"Figure 2: Correspondences between a constituency parse tree and the hidden states of the proposed ON-LSTM. A sequence of tokens $S = ( x _ { 1 } , x _ { 2 } , x _ { 3 } )$ and its corresponding constituency tree are illustrated in (a). We provide a block view of the tree structure in (b), where both S and VP nodes span more than one time step. The representation for high-ranking nodes should be relatively consistent across multiple time steps. (c) Visualization of the update frequency of groups of hidden state neurons. At each time step, given the input word, dark grey blocks are completely updated while light grey blocks are partially updated. The three groups of neurons have different update frequencies. Topmost groups update less frequently while lower groups are more frequently updated. "
|
| 303 |
+
],
|
| 304 |
+
"image_footnote": [],
|
| 305 |
+
"bbox": [
|
| 306 |
+
171,
|
| 307 |
+
99,
|
| 308 |
+
826,
|
| 309 |
+
244
|
| 310 |
+
],
|
| 311 |
+
"page_idx": 3
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"type": "text",
|
| 315 |
+
"text": "",
|
| 316 |
+
"bbox": [
|
| 317 |
+
173,
|
| 318 |
+
398,
|
| 319 |
+
825,
|
| 320 |
+
511
|
| 321 |
+
],
|
| 322 |
+
"page_idx": 3
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"type": "text",
|
| 326 |
+
"text": "4 ON-LSTM ",
|
| 327 |
+
"text_level": 1,
|
| 328 |
+
"bbox": [
|
| 329 |
+
174,
|
| 330 |
+
530,
|
| 331 |
+
299,
|
| 332 |
+
546
|
| 333 |
+
],
|
| 334 |
+
"page_idx": 3
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"type": "text",
|
| 338 |
+
"text": "In this section, we present a new RNN unit, ON-LSTM (“ordered neurons LSTM”). The new model uses an architecture similar to the standard LSTM, reported below: ",
|
| 339 |
+
"bbox": [
|
| 340 |
+
173,
|
| 341 |
+
563,
|
| 342 |
+
821,
|
| 343 |
+
592
|
| 344 |
+
],
|
| 345 |
+
"page_idx": 3
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"type": "equation",
|
| 349 |
+
"img_path": "images/a87777f6bc3ea58f03946d45200096a8a019405f0c2ea0037796ddbb2f7a38cf.jpg",
|
| 350 |
+
"text": "$$\n\\begin{array} { r l } & { f _ { t } = \\sigma ( W _ { f } x _ { t } + U _ { f } h _ { t - 1 } + b _ { f } ) } \\\\ & { i _ { t } = \\sigma ( W _ { i } x _ { t } + U _ { i } h _ { t - 1 } + b _ { i } ) } \\\\ & { o _ { t } = \\sigma ( W _ { o } x _ { t } + U _ { o } h _ { t - 1 } + b _ { o } ) } \\\\ & { \\hat { c } _ { t } = \\operatorname { t a n h } ( W _ { c } x _ { t } + U _ { c } h _ { t - 1 } + b _ { c } ) } \\\\ & { h _ { t } = o _ { t } \\circ \\operatorname { t a n h } ( c _ { t } ) } \\end{array}\n$$",
|
| 351 |
+
"text_format": "latex",
|
| 352 |
+
"bbox": [
|
| 353 |
+
385,
|
| 354 |
+
597,
|
| 355 |
+
612,
|
| 356 |
+
689
|
| 357 |
+
],
|
| 358 |
+
"page_idx": 3
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"type": "text",
|
| 362 |
+
"text": "The difference with the LSTM is that we replace the update function for the cell state $c _ { t }$ with a new function that will be explained in the following sections. The forget gates $f _ { t }$ and input gates $i _ { t }$ are used to control the erasing and writing operation on cell states $c _ { t }$ , as before. Since the gates in the LSTM act independently on each neuron, it may be difficult in general to discern a hierarchy of information between the neurons. To this end, we propose to make the gate for each neuron dependent on the others by enforcing the order in which neurons should be updated. ",
|
| 363 |
+
"bbox": [
|
| 364 |
+
173,
|
| 365 |
+
693,
|
| 366 |
+
825,
|
| 367 |
+
779
|
| 368 |
+
],
|
| 369 |
+
"page_idx": 3
|
| 370 |
+
},
|
| 371 |
+
{
|
| 372 |
+
"type": "text",
|
| 373 |
+
"text": "4.1 ACTIVATION FUNCTION: cumax()",
|
| 374 |
+
"text_level": 1,
|
| 375 |
+
"bbox": [
|
| 376 |
+
176,
|
| 377 |
+
795,
|
| 378 |
+
450,
|
| 379 |
+
809
|
| 380 |
+
],
|
| 381 |
+
"page_idx": 3
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"type": "text",
|
| 385 |
+
"text": "To enforce an order to the update frequency, we introduce a new activation function: ",
|
| 386 |
+
"bbox": [
|
| 387 |
+
174,
|
| 388 |
+
820,
|
| 389 |
+
725,
|
| 390 |
+
837
|
| 391 |
+
],
|
| 392 |
+
"page_idx": 3
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"type": "equation",
|
| 396 |
+
"img_path": "images/cc6baff3e16c5473bc668788b107bb91f75adbfb6bb3b882bbaa97a0ce057745.jpg",
|
| 397 |
+
"text": "$$\n\\hat { g } = \\mathrm { c u m a x } ( \\ldots ) = \\mathrm { c u m s u m } ( \\mathrm { s o f t m a x } ( \\ldots ) ) ,\n$$",
|
| 398 |
+
"text_format": "latex",
|
| 399 |
+
"bbox": [
|
| 400 |
+
349,
|
| 401 |
+
843,
|
| 402 |
+
647,
|
| 403 |
+
861
|
| 404 |
+
],
|
| 405 |
+
"page_idx": 3
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"type": "text",
|
| 409 |
+
"text": "where cumsum denotes the cumulative sum. We will show that the vector $\\hat { g }$ can be seen as the expectation of a binary gate $g = ( 0 , . . . , 0 , 1 , . . . , 1 )$ . This binary gate splits the cell state into two segments: the 0-segment and the 1-segment. Thus, the model can apply different update rules on the two segments to differentiate long/short-term information. Denote by $d$ a categorical random ",
|
| 410 |
+
"bbox": [
|
| 411 |
+
174,
|
| 412 |
+
867,
|
| 413 |
+
825,
|
| 414 |
+
924
|
| 415 |
+
],
|
| 416 |
+
"page_idx": 3
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"type": "text",
|
| 420 |
+
"text": "variable representing the index for the first 1 in $g$ : ",
|
| 421 |
+
"bbox": [
|
| 422 |
+
176,
|
| 423 |
+
103,
|
| 424 |
+
500,
|
| 425 |
+
118
|
| 426 |
+
],
|
| 427 |
+
"page_idx": 4
|
| 428 |
+
},
|
| 429 |
+
{
|
| 430 |
+
"type": "equation",
|
| 431 |
+
"img_path": "images/ac315000b9dbda50dd580d1a8161eb8530241b617c9a71a77e8c187665caa860.jpg",
|
| 432 |
+
"text": "$$\np ( d ) = \\operatorname { s o f t m a x } ( . . . )\n$$",
|
| 433 |
+
"text_format": "latex",
|
| 434 |
+
"bbox": [
|
| 435 |
+
426,
|
| 436 |
+
125,
|
| 437 |
+
570,
|
| 438 |
+
142
|
| 439 |
+
],
|
| 440 |
+
"page_idx": 4
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"type": "text",
|
| 444 |
+
"text": "The variable $d$ represents the split point between the two segments. We can compute the probability of the $k$ -th value in $g$ being 1 by evaluating the probability of the disjunction of any of the values before the $k$ -th being the split point, that is $\\mathbf { \\bar { \\Sigma } } d \\leq \\bar { k } = ( d = 0 ) \\lor ( d = \\bar { 1 } ) \\lor \\cdots \\lor ( d = k ) .$ . Since the categories are mutually exclusive, we can do this by computing the cumulative distribution function: ",
|
| 445 |
+
"bbox": [
|
| 446 |
+
173,
|
| 447 |
+
147,
|
| 448 |
+
825,
|
| 449 |
+
204
|
| 450 |
+
],
|
| 451 |
+
"page_idx": 4
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"type": "equation",
|
| 455 |
+
"img_path": "images/0843cd0309118ff94d8f8273a7cc5e27545896e7e3e2a473b6bf4053989ab780.jpg",
|
| 456 |
+
"text": "$$\np ( g _ { k } = 1 ) = p ( d \\leq k ) = \\sum _ { i \\leq k } p ( d = i )\n$$",
|
| 457 |
+
"text_format": "latex",
|
| 458 |
+
"bbox": [
|
| 459 |
+
369,
|
| 460 |
+
210,
|
| 461 |
+
627,
|
| 462 |
+
246
|
| 463 |
+
],
|
| 464 |
+
"page_idx": 4
|
| 465 |
+
},
|
| 466 |
+
{
|
| 467 |
+
"type": "text",
|
| 468 |
+
"text": "Ideally, $g$ should take the form of a discrete variable. Unfortunately, computing gradients when a discrete variable is included in the computation graph is not trivial (Schulman et al., 2015), so in practice we use a continuous relaxation by computing the quantity $p ( d \\leq k )$ , obtained by taking a cumulative sum of the softmax. As $g _ { k }$ is binary, this is equivalent to computing $\\mathbb { E } [ g _ { k } ]$ . Hence, $\\hat { \\boldsymbol g } = \\mathbb { E } [ \\boldsymbol { g } ]$ . ",
|
| 469 |
+
"bbox": [
|
| 470 |
+
173,
|
| 471 |
+
251,
|
| 472 |
+
825,
|
| 473 |
+
323
|
| 474 |
+
],
|
| 475 |
+
"page_idx": 4
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"type": "text",
|
| 479 |
+
"text": "4.2 STRUCTURED GATING MECHANISM ",
|
| 480 |
+
"text_level": 1,
|
| 481 |
+
"bbox": [
|
| 482 |
+
178,
|
| 483 |
+
338,
|
| 484 |
+
464,
|
| 485 |
+
353
|
| 486 |
+
],
|
| 487 |
+
"page_idx": 4
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"type": "text",
|
| 491 |
+
"text": "Based on the cumax() function, we introduce a master forget gate $\\tilde { f } _ { t }$ and a master input gate $\\tilde { i } _ { t }$ ",
|
| 492 |
+
"bbox": [
|
| 493 |
+
171,
|
| 494 |
+
362,
|
| 495 |
+
800,
|
| 496 |
+
380
|
| 497 |
+
],
|
| 498 |
+
"page_idx": 4
|
| 499 |
+
},
|
| 500 |
+
{
|
| 501 |
+
"type": "equation",
|
| 502 |
+
"img_path": "images/62ddf31ce1498eb59b906cb059aa4d72aebb84f2d7c0f94e8aee323de71ccbee.jpg",
|
| 503 |
+
"text": "$$\n\\begin{array} { r l } & { \\tilde { f } _ { t } = \\operatorname { c u m a x } ( W _ { \\tilde { f } } x _ { t } + U _ { \\tilde { f } } h _ { t - 1 } + b _ { \\tilde { f } } ) } \\\\ & { \\tilde { i } _ { t } = 1 - \\operatorname { c u m a x } ( W _ { \\tilde { i } } x _ { t } + U _ { \\tilde { i } } h _ { t - 1 } + b _ { \\tilde { i } } ) } \\end{array}\n$$",
|
| 504 |
+
"text_format": "latex",
|
| 505 |
+
"bbox": [
|
| 506 |
+
367,
|
| 507 |
+
385,
|
| 508 |
+
630,
|
| 509 |
+
429
|
| 510 |
+
],
|
| 511 |
+
"page_idx": 4
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"type": "text",
|
| 515 |
+
"text": "Following the properties of the cumax() activation, the values in the master forget gate are monotonically increasing from 0 to 1, and those in the master input gate are monotonically decreasing from 1 to 0. These gates serve as high-level control for the update operations of cell states. Using the master gates, we define a new update rule: ",
|
| 516 |
+
"bbox": [
|
| 517 |
+
174,
|
| 518 |
+
433,
|
| 519 |
+
823,
|
| 520 |
+
489
|
| 521 |
+
],
|
| 522 |
+
"page_idx": 4
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"type": "equation",
|
| 526 |
+
"img_path": "images/5ab6f64d67679b826edbb45d5f92ad3f03dbf458fa4d96c9a2f0794789d6850c.jpg",
|
| 527 |
+
"text": "$$\n\\begin{array} { r l } & { \\omega _ { t } = \\tilde { f } _ { t } \\circ \\tilde { i } _ { t } } \\\\ & { \\hat { f } _ { t } = f _ { t } \\circ \\omega _ { t } + ( \\tilde { f } _ { t } - \\omega _ { t } ) = \\tilde { f } _ { t } \\circ ( f _ { t } \\circ \\tilde { i } _ { t } + 1 - \\tilde { i } _ { t } ) } \\\\ & { \\hat { i } _ { t } = i _ { t } \\circ \\omega _ { t } + ( \\tilde { i } _ { t } - \\omega _ { t } ) = \\tilde { i } _ { t } \\circ ( i _ { t } \\circ \\tilde { f } _ { t } + 1 - \\tilde { f } _ { t } ) } \\\\ & { c _ { t } = \\hat { f } _ { t } \\circ c _ { t - 1 } + \\hat { i } _ { t } \\circ \\hat { c } _ { t } } \\end{array}\n$$",
|
| 528 |
+
"text_format": "latex",
|
| 529 |
+
"bbox": [
|
| 530 |
+
333,
|
| 531 |
+
494,
|
| 532 |
+
665,
|
| 533 |
+
580
|
| 534 |
+
],
|
| 535 |
+
"page_idx": 4
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"type": "text",
|
| 539 |
+
"text": "In order to explain the intuition behind the new update rule, we assume that the master gates are binary: ",
|
| 540 |
+
"bbox": [
|
| 541 |
+
173,
|
| 542 |
+
592,
|
| 543 |
+
823,
|
| 544 |
+
621
|
| 545 |
+
],
|
| 546 |
+
"page_idx": 4
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"type": "text",
|
| 550 |
+
"text": "• The master forget gate $\\tilde { f } _ { t }$ controls the erasing behavior of the model. Suppose $\\tilde { f } _ { t } ~ =$ $( 0 , \\ldots , 0 , 1 , \\ldots , 1 )$ and the split point is $d _ { t } ^ { f }$ . Given the Eq. (12) and (14), the information stored in the first $d _ { t } ^ { f }$ neurons of the previous cell state $c _ { t - 1 }$ will be completely erased. In a parse tree (e.g. Figure 2(a)), this operation is akin to closing previous constituents. A large number of zeroed neurons, i.e. a large $d _ { t } ^ { f }$ , represents the end of a high-level constituent in the parse tree, as most of the information in the state will be discarded. Conversely, a small $d _ { t } ^ { f }$ represents the end of a low-level constituent as high-level information is kept for further processing. • The master input gate $\\tilde { i } _ { t }$ is meant to control the writing mechanism of the model. Assume that $\\tilde { i } _ { t } = ( 1 , \\cdot \\cdot \\cdot , \\bar { 1 } , 0 , \\cdot \\cdot \\cdot , 0 )$ and the split point is $d _ { t } ^ { i }$ . Given Eq. (13) and (14), a large $d _ { t } ^ { i }$ means that the current input $x _ { t }$ contains long-term information that needs to be preserved for several time steps. Conversely, a small $d _ { t } ^ { \\bar { i } }$ means that the current input $x _ { t }$ just provides local information that could be erased by $\\tilde { f } _ { t }$ in the next few time steps. The product of the two master gates $\\omega _ { t }$ represents the overlap of $\\tilde { f } _ { t }$ and $\\tilde { i } _ { t }$ . Whenever an overlap exists $( \\exists k , \\omega _ { t k } > 0 )$ , the corresponding segment of neurons encodes the incomplete constituents that contain some previous words and the current input word $x _ { t }$ . Since these constituents are incomplete, we want to update the information inside the respective blocks. The segment is further controlled by the $f _ { t }$ and $i _ { t }$ in the standard LSTM model to enable more fine-grained operations within blocks. For example, in Figure 2, the word $x _ { 3 }$ is nested into the constituents S and VP. At this time step, the overlap gray blocks would represent these constituents, such that $\\tilde { f } _ { t }$ and $\\tilde { i } _ { t }$ can decide whether to reset or update each individual neurons in these blocks. ",
|
| 551 |
+
"bbox": [
|
| 552 |
+
214,
|
| 553 |
+
631,
|
| 554 |
+
825,
|
| 555 |
+
924
|
| 556 |
+
],
|
| 557 |
+
"page_idx": 4
|
| 558 |
+
},
|
| 559 |
+
{
|
| 560 |
+
"type": "table",
|
| 561 |
+
"img_path": "images/a9612cd27d0355d136dc43e69d158c2878a3fb592888a9236291ea3a3d1b0dea.jpg",
|
| 562 |
+
"table_caption": [
|
| 563 |
+
"Table 1: Single model perplexity on validation and test sets for the Penn Treebank language modeling task. Models labelled tied use weight tying on the embedding and softmax weights (Inan et al., 2016; Press & Wolf, 2017). Models labelled \\* focus on improving the softmax component of RNN language model. Their contribution is orthogonal to ours. "
|
| 564 |
+
],
|
| 565 |
+
"table_footnote": [],
|
| 566 |
+
"table_body": "<table><tr><td>Model</td><td>Parameters</td><td>Validation</td><td>Test</td></tr><tr><td>Zaremba et al. (2014) - LSTM (large)</td><td>66M</td><td>82.2</td><td>78.4</td></tr><tr><td>Gal & Ghahramani (2016) - Variational LSTM (large, MC)</td><td>66M</td><td>1</td><td>73.4</td></tr><tr><td>Kim et al. (2016) - CharCNN</td><td>19M</td><td>一</td><td>78.9</td></tr><tr><td>Merity etal.(2016)- Pointer Sentinel-LSTM</td><td>21M</td><td>72.4</td><td>70.9</td></tr><tr><td>Grave et al.(2016) - LSTM</td><td>1</td><td>1</td><td>82.3</td></tr><tr><td>Grave et al.(2016) -LSTM+ continuous cache pointer</td><td>一</td><td>一</td><td>72.1</td></tr><tr><td>Inan et al.(2016) - Variational LSTM(tied) +augmented loss</td><td>51M</td><td>71.1</td><td>68.5</td></tr><tr><td>Zilly et al. (2016) - Variational RHN (tied)</td><td>23M</td><td>67.9</td><td>65.4</td></tr><tr><td>Zoph & Le (2016)- NAS Cell (tied)</td><td>54M</td><td>1</td><td>62.4</td></tr><tr><td>Shen et al.(2017) - PRPN-LM</td><td></td><td></td><td>62.0</td></tr><tr><td>Melis et al. (2017) - 4-layer skip connection LSTM (tied)</td><td>24M</td><td>60.9</td><td>58.3</td></tr><tr><td>Merity et al. (2017)-AWD-LSTM- 3-layer LSTM (tied)</td><td>24M</td><td>60.0</td><td>57.3</td></tr><tr><td>ON-LSTM- 3-layer (tied)</td><td>25M</td><td>58.29±0.10</td><td>56.17 ±0.12</td></tr><tr><td>Yang et al. (2017) - AWD-LSTM-MoS *</td><td>22M</td><td>56.5</td><td>54.4</td></tr></table>",
|
| 567 |
+
"bbox": [
|
| 568 |
+
176,
|
| 569 |
+
101,
|
| 570 |
+
820,
|
| 571 |
+
303
|
| 572 |
+
],
|
| 573 |
+
"page_idx": 5
|
| 574 |
+
},
|
| 575 |
+
{
|
| 576 |
+
"type": "text",
|
| 577 |
+
"text": "",
|
| 578 |
+
"bbox": [
|
| 579 |
+
232,
|
| 580 |
+
397,
|
| 581 |
+
823,
|
| 582 |
+
441
|
| 583 |
+
],
|
| 584 |
+
"page_idx": 5
|
| 585 |
+
},
|
| 586 |
+
{
|
| 587 |
+
"type": "text",
|
| 588 |
+
"text": "As the master gates only focus on coarse-grained control, modeling them with the same dimensions as the hidden states is computationally expensive and unnecessary. In practice, we set $\\tilde { f } _ { t }$ and $\\tilde { i } _ { t }$ to be $\\begin{array} { r } { D _ { m } = \\frac { D } { C } } \\end{array}$ dimensional vectors, where $D$ is the dimension of hidden state, and $C$ is a chunk size factor. We repeat each dimension times, before the element-wise multiplication with $f _ { t }$ and $i _ { t }$ . The downsizing significantly reduces the number of extra parameters that we need to add to the LSTM. Therefore, every neuron within each $C$ -sized chunk shares the same master gates. ",
|
| 589 |
+
"bbox": [
|
| 590 |
+
174,
|
| 591 |
+
455,
|
| 592 |
+
825,
|
| 593 |
+
541
|
| 594 |
+
],
|
| 595 |
+
"page_idx": 5
|
| 596 |
+
},
|
| 597 |
+
{
|
| 598 |
+
"type": "text",
|
| 599 |
+
"text": "5 EXPERIMENTS ",
|
| 600 |
+
"text_level": 1,
|
| 601 |
+
"bbox": [
|
| 602 |
+
176,
|
| 603 |
+
564,
|
| 604 |
+
326,
|
| 605 |
+
580
|
| 606 |
+
],
|
| 607 |
+
"page_idx": 5
|
| 608 |
+
},
|
| 609 |
+
{
|
| 610 |
+
"type": "text",
|
| 611 |
+
"text": "We evaluate the proposed model on four tasks: language modeling, unsupervised constituency parsing, targeted syntactic evaluation (Marvin & Linzen, 2018), and logical inference (Bowman et al., 2015). ",
|
| 612 |
+
"bbox": [
|
| 613 |
+
174,
|
| 614 |
+
597,
|
| 615 |
+
823,
|
| 616 |
+
638
|
| 617 |
+
],
|
| 618 |
+
"page_idx": 5
|
| 619 |
+
},
|
| 620 |
+
{
|
| 621 |
+
"type": "text",
|
| 622 |
+
"text": "5.1 LANGUAGE MODELING ",
|
| 623 |
+
"text_level": 1,
|
| 624 |
+
"bbox": [
|
| 625 |
+
176,
|
| 626 |
+
659,
|
| 627 |
+
377,
|
| 628 |
+
674
|
| 629 |
+
],
|
| 630 |
+
"page_idx": 5
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"type": "text",
|
| 634 |
+
"text": "Word-level language modeling is a macroscopic evaluation of the model’s ability to deal with various linguistic phenomena (e.g. co-occurence, syntactic structure, verb-subject agreement, etc). We evaluate our model by measuring perplexity on the Penn TreeBank (PTB) (Marcus et al., 1993; Mikolov, 2012) task. ",
|
| 635 |
+
"bbox": [
|
| 636 |
+
174,
|
| 637 |
+
686,
|
| 638 |
+
825,
|
| 639 |
+
742
|
| 640 |
+
],
|
| 641 |
+
"page_idx": 5
|
| 642 |
+
},
|
| 643 |
+
{
|
| 644 |
+
"type": "text",
|
| 645 |
+
"text": "For fair comparison, we closely follow the model hyper-parameters, regularization and optimization techniques introduced in AWD-LSTM (Merity et al., 2017). Our model uses a three-layer ONLSTM model with 1150 units in the hidden layer and an embedding of size 400. For master gates, the downsize factor $C = 1 0$ . The total number of parameters was slightly increased from 24 millions to 25 millions with additional matrices for computing master gates. We manually searched some of the dropout values for ON-LSTM based on the validation performance. The values used for dropout on the word vectors, the output between LSTM layers, the output of the final LSTM layer, and embedding dropout where (0.5, 0.3, 0.45, 0.1) respectively. A weight-dropout of 0.45 was applied to the recurrent weight matrices. ",
|
| 646 |
+
"bbox": [
|
| 647 |
+
173,
|
| 648 |
+
750,
|
| 649 |
+
825,
|
| 650 |
+
875
|
| 651 |
+
],
|
| 652 |
+
"page_idx": 5
|
| 653 |
+
},
|
| 654 |
+
{
|
| 655 |
+
"type": "text",
|
| 656 |
+
"text": "As shown in Table 1, our model performs better than the standard LSTM while sharing the same number of layers, embedding dimensions, and hidden states units. Recall that the master gates only control how information is stored in different neurons. It is interesting to note that we can improve the performance of a strong LSTM model without adding skip connections or a significant increase in the number of parameters. ",
|
| 657 |
+
"bbox": [
|
| 658 |
+
176,
|
| 659 |
+
882,
|
| 660 |
+
823,
|
| 661 |
+
924
|
| 662 |
+
],
|
| 663 |
+
"page_idx": 5
|
| 664 |
+
},
|
| 665 |
+
{
|
| 666 |
+
"type": "text",
|
| 667 |
+
"text": "",
|
| 668 |
+
"bbox": [
|
| 669 |
+
174,
|
| 670 |
+
103,
|
| 671 |
+
823,
|
| 672 |
+
132
|
| 673 |
+
],
|
| 674 |
+
"page_idx": 6
|
| 675 |
+
},
|
| 676 |
+
{
|
| 677 |
+
"type": "text",
|
| 678 |
+
"text": "5.2 UNSUPERVISED CONSTITUENCY PARSING",
|
| 679 |
+
"text_level": 1,
|
| 680 |
+
"bbox": [
|
| 681 |
+
174,
|
| 682 |
+
147,
|
| 683 |
+
504,
|
| 684 |
+
162
|
| 685 |
+
],
|
| 686 |
+
"page_idx": 6
|
| 687 |
+
},
|
| 688 |
+
{
|
| 689 |
+
"type": "text",
|
| 690 |
+
"text": "The unsupervised constituency parsing task compares the latent stree structure induced by the model with those annotated by human experts. Following the experiment settings proposed in Htut et al. (2018), we take our best model for the language modeling task, and test it on WSJ10 dataset and WSJ test set. WSJ10 has 7422 sentences, filtered from the WSJ dataset with the constraint of 10 words or less, after the removal of punctuation and null elements (Klein & Manning, 2002). The WSJ test set contains 2416 sentences with various lengths. It is worth noting that the WSJ10 test set contains sentences from the training, validation, and test set of the PTB dataset, while WSJ test uses the same set of sentences as the PTB test set. ",
|
| 691 |
+
"bbox": [
|
| 692 |
+
173,
|
| 693 |
+
174,
|
| 694 |
+
825,
|
| 695 |
+
286
|
| 696 |
+
],
|
| 697 |
+
"page_idx": 6
|
| 698 |
+
},
|
| 699 |
+
{
|
| 700 |
+
"type": "text",
|
| 701 |
+
"text": "To infer the tree structure of a sentence from a pre-trained model, we initialize the hidden states with the zero vector, then feed the sentence into the model as done in the language modeling task. At each time step, we compute an estimate of $d _ { t } ^ { f }$ : ",
|
| 702 |
+
"bbox": [
|
| 703 |
+
174,
|
| 704 |
+
292,
|
| 705 |
+
825,
|
| 706 |
+
337
|
| 707 |
+
],
|
| 708 |
+
"page_idx": 6
|
| 709 |
+
},
|
| 710 |
+
{
|
| 711 |
+
"type": "equation",
|
| 712 |
+
"img_path": "images/0f6688139af842c204df0cb2b41a7d11fc102750eb36021c32100ec29f6f1f77.jpg",
|
| 713 |
+
"text": "$$\n\\hat { d } _ { t } ^ { f } = \\mathbb { E } \\left[ d _ { t } ^ { f } \\right] = \\sum _ { k = 1 } ^ { D _ { m } } k p _ { f } ( d _ { t } = k ) = \\sum _ { k = 1 } ^ { D _ { m } } \\sum _ { i = 1 } ^ { k } p _ { f } ( d _ { t } = k ) = D _ { m } - \\sum _ { k = 1 } ^ { D _ { m } } \\tilde { f } _ { t k }\n$$",
|
| 714 |
+
"text_format": "latex",
|
| 715 |
+
"bbox": [
|
| 716 |
+
256,
|
| 717 |
+
340,
|
| 718 |
+
741,
|
| 719 |
+
383
|
| 720 |
+
],
|
| 721 |
+
"page_idx": 6
|
| 722 |
+
},
|
| 723 |
+
{
|
| 724 |
+
"type": "text",
|
| 725 |
+
"text": "where $p _ { f }$ is the probability distribution over split points associated to the master forget gate and $D _ { m }$ is the size of the hidden state. Given $\\hat { d } _ { t } ^ { f }$ , we can use the top-down greedy parsing algorithm proposed in Shen et al. (2017) for unsupervised constituency parsing. We first sort the $\\{ \\hat { d } _ { t } ^ { f } \\}$ in decreasing order. For the first $\\hat { d } _ { i } ^ { f }$ in the sorted sequence, we split the sentence into constituents $( ( x _ { < i } ) , ( \\bar { x _ { i } } , ( x _ { > i } ) ) )$ . Then, we recursively repeat this operation for constituents $( x _ { < i } )$ and $( x _ { > i } )$ , until each constituent contains only one word. ",
|
| 726 |
+
"bbox": [
|
| 727 |
+
173,
|
| 728 |
+
386,
|
| 729 |
+
825,
|
| 730 |
+
478
|
| 731 |
+
],
|
| 732 |
+
"page_idx": 6
|
| 733 |
+
},
|
| 734 |
+
{
|
| 735 |
+
"type": "text",
|
| 736 |
+
"text": "The performance is shown in Table 2. The second layer of ON-LSTM achieves state-of-the-art unsupervised constituency parsing results on the WSJ test set, while the first and third layers do not perform as well. One possible interpretation is that the first and last layers may be too focused on capturing local information useful for the language modeling task as they are directly exposed to input tokens and output predictions respectively, thus may not be encouraged to learn the more abstract tree structure. Since the WSJ test set contains sentences of various lengths which are unobserved during training, we find that ON-LSTM provides better generalization and robustness toward longer sentences than previous models. We also see that ON-LSTM model can provide strong results for phrase detection, including ADJP (adjective phrases), PP (prepositional phrases), and NP (noun phrases). This feature could benefit many downstream tasks, like question answering, named entity recognition, co-reference resolution, etc. ",
|
| 737 |
+
"bbox": [
|
| 738 |
+
173,
|
| 739 |
+
484,
|
| 740 |
+
825,
|
| 741 |
+
637
|
| 742 |
+
],
|
| 743 |
+
"page_idx": 6
|
| 744 |
+
},
|
| 745 |
+
{
|
| 746 |
+
"type": "text",
|
| 747 |
+
"text": "5.3 TARGETED SYNTACTIC EVALUATION ",
|
| 748 |
+
"text_level": 1,
|
| 749 |
+
"bbox": [
|
| 750 |
+
176,
|
| 751 |
+
654,
|
| 752 |
+
470,
|
| 753 |
+
669
|
| 754 |
+
],
|
| 755 |
+
"page_idx": 6
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"type": "text",
|
| 759 |
+
"text": "Targeted syntactic evaluation tasks have been proposed in Marvin & Linzen (2018). It is a collection of tasks that evaluate language models along three different structure-sensitive linguistic phenomena: subject-verb agreement, reflexive anaphora and negative polarity items. Given a large number of minimally different pairs of English sentences, each consisting of a grammatical and an ungrammatical sentence, a language model should assign a higher probability to a grammatical sentence than an ungrammatical one. ",
|
| 760 |
+
"bbox": [
|
| 761 |
+
174,
|
| 762 |
+
680,
|
| 763 |
+
825,
|
| 764 |
+
763
|
| 765 |
+
],
|
| 766 |
+
"page_idx": 6
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"type": "text",
|
| 770 |
+
"text": "Using the released codebase2 and the same settings proposed in Marvin & Linzen (2018), we train both our ON-LSTM model and a baseline LSTM language model on a 90 million word subset of Wikipedia. Both language models have two layers of 650 units, a batch size of 128, a dropout rate of 0.2, a learning rate of 20.0, and were trained for 40 epochs. The input embeddings have 200 dimensions and the output embeddings have 650 dimesions. ",
|
| 771 |
+
"bbox": [
|
| 772 |
+
174,
|
| 773 |
+
770,
|
| 774 |
+
825,
|
| 775 |
+
840
|
| 776 |
+
],
|
| 777 |
+
"page_idx": 6
|
| 778 |
+
},
|
| 779 |
+
{
|
| 780 |
+
"type": "text",
|
| 781 |
+
"text": "Table 3 shows that the ON-LSTM performs better on the long-term dependency cases, while the baseline LSTM fares better on the short-term ones. This is possibly due to the relatively small num",
|
| 782 |
+
"bbox": [
|
| 783 |
+
176,
|
| 784 |
+
848,
|
| 785 |
+
821,
|
| 786 |
+
876
|
| 787 |
+
],
|
| 788 |
+
"page_idx": 6
|
| 789 |
+
},
|
| 790 |
+
{
|
| 791 |
+
"type": "table",
|
| 792 |
+
"img_path": "images/60927e50e75e90f98684d21f9ba0ace7dc1d49301e3481b855a0682555b8ccd4.jpg",
|
| 793 |
+
"table_caption": [],
|
| 794 |
+
"table_footnote": [],
|
| 795 |
+
"table_body": "<table><tr><td rowspan=\"3\">Model</td><td rowspan=\"3\">Training Data</td><td rowspan=\"3\">Training Object</td><td rowspan=\"3\">Vocab Size</td><td colspan=\"4\">Parsing F1</td><td colspan=\"6\"> Depth Accuracy on WSJ by Tag</td></tr><tr><td colspan=\"2\">WSJ10</td><td colspan=\"2\">WSJ</td><td rowspan=\"2\">WSJ max</td><td rowspan=\"2\"></td><td rowspan=\"2\">ADJP</td><td rowspan=\"2\">NP</td><td rowspan=\"2\">PP</td><td rowspan=\"2\">INTJ</td></tr><tr><td>μ(σ)</td><td>max</td><td>μ(σ)</td><td></td></tr><tr><td>PRPN-UP</td><td>AlINLI Train</td><td>LM</td><td>76k</td><td>66.3 (0.8)</td><td>68.5</td><td>38.3 (0.5)</td><td>39.8</td><td>5.8</td><td>28.7</td><td></td><td>65.5 32.7</td><td></td><td>0.0</td></tr><tr><td>PRPN-LM</td><td>AlINLI Train</td><td>LM</td><td>76k</td><td>52.4 (4.9)</td><td>58.1</td><td>35.0 (5.4)</td><td>42.8</td><td>6.1</td><td></td><td>37.8</td><td>59.7</td><td>61.5</td><td>100.0</td></tr><tr><td>PRPN-UP</td><td>WSJ Train</td><td>LM</td><td>15.8k</td><td>62.2 (3.9)</td><td>70.3</td><td>26.0 (2.3)</td><td>32.8</td><td>5.8</td><td></td><td>24.8</td><td>54.4</td><td>17.8</td><td>0.0</td></tr><tr><td>PRPN-LM</td><td>WSJ Train</td><td>LM</td><td>10k</td><td>70.5 (0.4)</td><td>71.3</td><td>37.4 (0.3)</td><td>38.1</td><td>5.9</td><td></td><td>26.2</td><td>63.9</td><td>24.4</td><td>0.0</td></tr><tr><td>ON-LSTM1st-layer</td><td>WSJ Train</td><td>LM</td><td>10k</td><td>35.2 (4.1)</td><td>42.8</td><td>20.0 (2.8)</td><td>24.0</td><td>5.6</td><td></td><td>38.1</td><td>23.8</td><td>18.3</td><td>100.0</td></tr><tr><td>ON-LSTM 2nd-layer</td><td>WSJ Train</td><td>LM</td><td>10k</td><td>65.1 (1.7)</td><td>66.8</td><td>47.7 (1.5)</td><td>49.4</td><td>5.6</td><td></td><td>46.2</td><td>61.4 55.4</td><td></td><td>0.0</td></tr><tr><td>ON-LSTM3rd-layer</td><td>WSJ Train</td><td>LM</td><td>10k</td><td>54.0 (3.9)</td><td>57.6</td><td>36.6 (3.3)</td><td>40.4</td><td>5.3</td><td></td><td>44.8</td><td>57.5 47.2</td><td></td><td>0.0</td></tr><tr><td>300D ST-Gumbel</td><td>AlINLI Train</td><td>NLI</td><td>1</td><td></td><td></td><td>19.0 (1.0)</td><td>20.1</td><td>1</td><td></td><td>15.6</td><td>18.8</td><td>9.9</td><td>59.4</td></tr><tr><td>w/o Leaf GRU</td><td>AlINLI Train</td><td>NLI</td><td></td><td></td><td></td><td>22.8 (1.6)</td><td>25.0</td><td></td><td></td><td>18.9</td><td>24.1</td><td>14.2</td><td>51.8</td></tr><tr><td>300D RL-SPINN</td><td>AlINLI Train</td><td>NLI</td><td></td><td></td><td></td><td>13.2 (0.0)</td><td>13.2</td><td></td><td></td><td>1.7</td><td>10.8</td><td>4.6</td><td>50.6</td></tr><tr><td>w/o Leaf GRU</td><td>AlINLI Train NLI</td><td></td><td></td><td></td><td></td><td>13.1 (0.1)</td><td>13.2</td><td>1</td><td></td><td>1.6</td><td>10.9</td><td>4.6</td><td>50.0</td></tr><tr><td>CCM</td><td>WSJ10 Full</td><td></td><td></td><td></td><td>71.9</td><td></td><td></td><td>1</td><td></td><td>1</td><td>1</td><td>1</td><td>1</td></tr><tr><td>DMV+CCM</td><td>WSJ10 Full</td><td></td><td></td><td></td><td>77.6</td><td></td><td></td><td></td><td></td><td>二</td><td></td><td>1</td><td>1</td></tr><tr><td>UML-DOP</td><td>WSJ10 Full</td><td></td><td></td><td></td><td>82.9</td><td></td><td></td><td></td><td></td><td>1</td><td>一</td><td>一</td><td>1</td></tr><tr><td>Random Trees</td><td></td><td></td><td></td><td>31.7 (0.3)</td><td>32.2</td><td>18.4 (0.1)</td><td>18.6</td><td>5.3</td><td></td><td>17.4</td><td>22.3</td><td>16.0</td><td>40.4</td></tr><tr><td>Balanced Trees</td><td></td><td></td><td></td><td>43.4 (0.0)</td><td></td><td>43.4 24.5 (0.0)</td><td>24.5</td><td>4.6</td><td></td><td>22.1</td><td>20.2</td><td>9.3</td><td>55.9</td></tr><tr><td>Left Branching</td><td></td><td></td><td></td><td>19.6 (0.0)</td><td>19.6</td><td>9.0 (0.0)</td><td>9.0</td><td>12.4</td><td></td><td>1</td><td>一</td><td></td><td>1</td></tr><tr><td>Right Branching</td><td></td><td></td><td></td><td>56.6 (0.0)</td><td>56.6</td><td>39.8 (0.0)</td><td>39.8</td><td>12.4</td><td></td><td>二</td><td></td><td></td><td>1</td></tr></table>",
|
| 796 |
+
"bbox": [
|
| 797 |
+
179,
|
| 798 |
+
101,
|
| 799 |
+
825,
|
| 800 |
+
366
|
| 801 |
+
],
|
| 802 |
+
"page_idx": 7
|
| 803 |
+
},
|
| 804 |
+
{
|
| 805 |
+
"type": "text",
|
| 806 |
+
"text": "Table 2: Unlabeled parsing F1 results evaluated on the full WSJ10 and WSJ test set. Our language model has three layers, each of them provides a sequence of $\\hat { d } _ { t } ^ { f }$ . We provide the parsing performance for all layers. Results with RL-SPINN and ST-Gumbel are evaluated on the full WSJ (Williams et al., 2017). PRPN models are evaluated on the WSJ test set (Htut et al., 2018). We run the model with 5 different random seeds to calculate the average F1. The Accuracy columns represent the fraction of ground truth constituents of a given type that correspond to constituents in the model parses. We use the model with the best F1 score to report ADJP, NP, PP, and INTJ. WSJ10 baselines are from Klein & Manning (2002, CCM), Klein & Manning (2005, $\\mathrm { D M V + C C M }$ , and Bod (2006, UML-DOP). As the WSJ10 baselines are trained using POS tags, they are not strictly comparable with the latent tree learning results. Italics mark results that are worse than the random baseline. ",
|
| 807 |
+
"bbox": [
|
| 808 |
+
173,
|
| 809 |
+
376,
|
| 810 |
+
825,
|
| 811 |
+
517
|
| 812 |
+
],
|
| 813 |
+
"page_idx": 7
|
| 814 |
+
},
|
| 815 |
+
{
|
| 816 |
+
"type": "text",
|
| 817 |
+
"text": "ber of units in the hidden states, which is insufficient to take into account both long and short-term information. We also notice that the results for NPI test cases have unusually high variance across different hyper-parameters. This result maybe due to the non-syntactic cues discussed in Marvin & Linzen (2018). Despite this, ON-LSTM actually achieves better perplexity on the validation set. ",
|
| 818 |
+
"bbox": [
|
| 819 |
+
174,
|
| 820 |
+
546,
|
| 821 |
+
825,
|
| 822 |
+
602
|
| 823 |
+
],
|
| 824 |
+
"page_idx": 7
|
| 825 |
+
},
|
| 826 |
+
{
|
| 827 |
+
"type": "text",
|
| 828 |
+
"text": "5.4 LOGICAL INFERENCE ",
|
| 829 |
+
"text_level": 1,
|
| 830 |
+
"bbox": [
|
| 831 |
+
176,
|
| 832 |
+
621,
|
| 833 |
+
362,
|
| 834 |
+
635
|
| 835 |
+
],
|
| 836 |
+
"page_idx": 7
|
| 837 |
+
},
|
| 838 |
+
{
|
| 839 |
+
"type": "text",
|
| 840 |
+
"text": "We also analyze the model’s performance on the logical inference task described in Bowman et al. (2015). This task is based on a language that has a vocabulary of six words and three logical operations, or, and, not. There are seven mutually exclusive logical relations that describe the relationship between two sentences: two types of entailment, equivalence, exhaustive and non-exhaustive contradiction, and two types of semantic independence. Similar to the natural language inference task, this logical inference task requires the model to predict the correct label given a pair of sentences. The train/test split is as described in the original codebase3, and $10 \\%$ of training set is set aside as the validation set. ",
|
| 841 |
+
"bbox": [
|
| 842 |
+
174,
|
| 843 |
+
646,
|
| 844 |
+
825,
|
| 845 |
+
757
|
| 846 |
+
],
|
| 847 |
+
"page_idx": 7
|
| 848 |
+
},
|
| 849 |
+
{
|
| 850 |
+
"type": "text",
|
| 851 |
+
"text": "We evaluate the ON-LSTM and the standard LSTM on this dataset. Given a pair of sentences $( s _ { 1 } , s _ { 2 } )$ , we feed both sentences into an RNN encoder, taking the last hidden state $( h _ { 1 } , h _ { 2 } )$ as the sentence embedding. The concatenation of $( h _ { 1 } , h _ { 2 } , h _ { 1 } \\circ h _ { 2 }$ , $\\mathrm { a b s } ( h _ { 1 } - h _ { 2 } ) )$ is used as input to a multi-layer classifier, which gives a probability distribution over seven labels. In our experiment, the RNN models were parameterised with 400 units in one hidden layer, and the input embedding size was 128. A dropout of 0.2 was applied between different layers. Both models are trained on sequences with 6 or less logical operations and tested on sequences with at most 12 operations. ",
|
| 852 |
+
"bbox": [
|
| 853 |
+
174,
|
| 854 |
+
765,
|
| 855 |
+
825,
|
| 856 |
+
863
|
| 857 |
+
],
|
| 858 |
+
"page_idx": 7
|
| 859 |
+
},
|
| 860 |
+
{
|
| 861 |
+
"type": "text",
|
| 862 |
+
"text": "Figure 3 shows the performance of ON-LSTM and standard LSTM on the logical inference task. While both models achieve nearly $100 \\%$ accuracy on short sequences $\\left( \\le ~ 3 \\right)$ , ON-LSTM attains better performance on sequences longer then 3. The performance gap continues to increase on longer sequences $( \\geq 7 )$ that were not present during training. Hence, the ON-LSTM model shows better generalization while facing structured data with various lengths and comparing to the standard LSTM. A tree-structured model can achieve strong performance on this dataset (Bowman et al., 2015), since it is provided with the ground truth structure as input. The recursive application of the same composition function is well suited for this task. We also include the result of RRNet (Jacob et al., 2018), which can induce the latent tree structure from downstream tasks. Note that the results may not be comparable, because the hyper-parameters for training were not provided. ",
|
| 863 |
+
"bbox": [
|
| 864 |
+
176,
|
| 865 |
+
869,
|
| 866 |
+
823,
|
| 867 |
+
897
|
| 868 |
+
],
|
| 869 |
+
"page_idx": 7
|
| 870 |
+
},
|
| 871 |
+
{
|
| 872 |
+
"type": "table",
|
| 873 |
+
"img_path": "images/ffbd055a21503e60f5bc385da5b86a698e0404db1b642e50e0aba0899ff0bb8f.jpg",
|
| 874 |
+
"table_caption": [],
|
| 875 |
+
"table_footnote": [],
|
| 876 |
+
"table_body": "<table><tr><td>ON-LSTM LSTM</td></tr><tr><td>Short-Term Dependency</td></tr><tr><td>SUBJECT-VERB AGREEMENT:</td></tr><tr><td>Simple 0.99 1.00 0.98</td></tr><tr><td>In a sentential complement 0.95 0.92</td></tr><tr><td>Short VP coordination 0.89</td></tr><tr><td>In an object relative clause 0.84</td></tr><tr><td>In an object relative (no that) 0.78 0.81</td></tr><tr><td>REFLEXIVE ANAPHORA:</td></tr><tr><td>Simple 0.89 0.82</td></tr><tr><td>In a sentential complement 0.86 0.80</td></tr><tr><td>NEGATIVE POLARITY ITEMS:</td></tr><tr><td>Simple (grammatical vs.intrusive) 0.18 1.00</td></tr><tr><td>Simple (intrusive vs.ungrammatical) 0.50 0.01</td></tr><tr><td>Simple (grammatical vs.ungrammatical) 0.07 0.63</td></tr><tr><td>Long-Term Dependency</td></tr><tr><td>SUBJECT-VERB AGREEMENT: 0.74</td></tr><tr><td>Long VP coordination 0.74 0.67 0.68</td></tr><tr><td>Across a prepositional phrase Across a subject relative clause 0.66 0.60</td></tr><tr><td>Across an object relative clause 0.57 0.52</td></tr><tr><td>Across an object relative (no that) 0.54 0.51</td></tr><tr><td>REFLEXIVE ANAPHORA:</td></tr><tr><td>Across a relative clause 0.57 0.58</td></tr><tr><td>NEGATIVE POLARITY ITEMS:</td></tr><tr><td>0.59 0.95</td></tr><tr><td>Across a relative clause (grammatical vs.intrusive) 0.00</td></tr><tr><td>Across a relative clause (intrusive vs.ungrammatical) 0.20</td></tr><tr><td>Across a relative clause (grammatical vs.ungrammatical) 0.11 0.04</td></tr></table>",
|
| 877 |
+
"bbox": [
|
| 878 |
+
276,
|
| 879 |
+
102,
|
| 880 |
+
722,
|
| 881 |
+
473
|
| 882 |
+
],
|
| 883 |
+
"page_idx": 8
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"type": "image",
|
| 887 |
+
"img_path": "images/ed91d64cc37d6f0ca4506df1082e890ed2a4735029ba68080a4ceb7ae3aa00a6.jpg",
|
| 888 |
+
"image_caption": [
|
| 889 |
+
"Table 3: Overall accuracy for the ON-LSTM and LSTM on each test case. “Long-term dependency” means that an unrelated phrase (or a clause) exist between the targeted pair of words, while “shortterm dependency” means there is no such distraction. ",
|
| 890 |
+
"Figure 3: Test accuracy of the models, trained on short sequences $( \\leq 6 )$ in logic data. The horizontal axis indicates the length of the sequence, and the vertical axis indicates the accuracy of models performance on the corresponding test set. "
|
| 891 |
+
],
|
| 892 |
+
"image_footnote": [],
|
| 893 |
+
"bbox": [
|
| 894 |
+
343,
|
| 895 |
+
558,
|
| 896 |
+
650,
|
| 897 |
+
713
|
| 898 |
+
],
|
| 899 |
+
"page_idx": 8
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"type": "text",
|
| 903 |
+
"text": "",
|
| 904 |
+
"bbox": [
|
| 905 |
+
173,
|
| 906 |
+
811,
|
| 907 |
+
825,
|
| 908 |
+
924
|
| 909 |
+
],
|
| 910 |
+
"page_idx": 8
|
| 911 |
+
},
|
| 912 |
+
{
|
| 913 |
+
"type": "text",
|
| 914 |
+
"text": "6 CONCLUSION ",
|
| 915 |
+
"text_level": 1,
|
| 916 |
+
"bbox": [
|
| 917 |
+
174,
|
| 918 |
+
102,
|
| 919 |
+
318,
|
| 920 |
+
117
|
| 921 |
+
],
|
| 922 |
+
"page_idx": 9
|
| 923 |
+
},
|
| 924 |
+
{
|
| 925 |
+
"type": "text",
|
| 926 |
+
"text": "In this paper, we propose ordered neurons, a novel inductive bias for recurrent neural networks. Based on this idea, we propose a novel recurrent unit, the ON-LSTM, which includes a new gating mechanism and a new activation function cumax(·). This brings recurrent neural networks closer to performing tree-like composition operations, by separately allocating hidden state neurons with long and short-term information. The model performance on unsupervised constituency parsing shows that the ON-LSTM induces the latent structure of natural language in a way that is coherent with human expert annotation. The inductive bias also enables ON-LSTM to achieve good performance on language modeling, long-term dependency, and logical inference tasks. ",
|
| 927 |
+
"bbox": [
|
| 928 |
+
174,
|
| 929 |
+
133,
|
| 930 |
+
825,
|
| 931 |
+
246
|
| 932 |
+
],
|
| 933 |
+
"page_idx": 9
|
| 934 |
+
},
|
| 935 |
+
{
|
| 936 |
+
"type": "text",
|
| 937 |
+
"text": "REFERENCES ",
|
| 938 |
+
"text_level": 1,
|
| 939 |
+
"bbox": [
|
| 940 |
+
174,
|
| 941 |
+
268,
|
| 942 |
+
285,
|
| 943 |
+
284
|
| 944 |
+
],
|
| 945 |
+
"page_idx": 9
|
| 946 |
+
},
|
| 947 |
+
{
|
| 948 |
+
"type": "text",
|
| 949 |
+
"text": "David Alvarez-Melis and Tommi S Jaakkola. Tree-structured decoding with doubly-recurrent neural networks. 2016. \nYoshua Bengio et al. Learning deep architectures for ai. Foundations and trends $\\textsuperscript { \\textregistered }$ in Machine Learning, 2(1):1–127, 2009. \nRens Bod. An all-subtrees approach to unsupervised parsing. In Proceedings of the 21st International Conference on Computational Linguistics and the 44th annual meeting of the Association for Computational Linguistics, pp. 865–872. Association for Computational Linguistics, 2006. \nSamuel R Bowman, Christopher Potts, and Christopher D Manning. Recursive neural networks can learn logical semantics. arXiv preprint arXiv:1406.1827, 2014. \nSamuel R Bowman, Christopher D Manning, and Christopher Potts. Tree-structured composition in neural networks without tree-structured architectures. arXiv preprint arXiv:1506.04834, 2015. \nSamuel R Bowman, Jon Gauthier, Abhinav Rastogi, Raghav Gupta, Christopher D Manning, and Christopher Potts. A fast unified model for parsing and sentence understanding. arXiv preprint arXiv:1603.06021, 2016. \nEugene Charniak. Immediate-head parsing for language models. In Proceedings of the 39th Annual Meeting on Association for Computational Linguistics, pp. 124–131. Association for Computational Linguistics, 2001. \nCiprian Chelba and Frederick Jelinek. Structured language modeling. Computer Speech & Language, 14(4):283–332, 2000. \nStanley F Chen. Bayesian grammar induction for language modeling. In Proceedings of the 33rd annual meeting on Association for Computational Linguistics, pp. 228–235. Association for Computational Linguistics, 1995. \nJihun Choi, Kang Min Yoo, and Sang-goo Lee. Learning to compose task-specific tree structures. In Proceedings of the 2018 Association for the Advancement of Artificial Intelligence (AAAI). and the 7th International Joint Conference on Natural Language Processing (ACL-IJCNLP), 2018. \nNoam Chomsky. Three models for the description of language. IRE Transactions on information theory, 2(3):113–124, 1956. \nNoam Chomsky. Aspects of the Theory of Syntax. The MIT Press, Cambridge, 1965. URL http:// www.amazon.com/Aspects-Theory-Syntax-Noam-Chomsky/dp/0262530074. \nJunyoung Chung, Sungjin Ahn, and Yoshua Bengio. Hierarchical multiscale recurrent neural networks. arXiv preprint arXiv:1609.01704, 2016. \nShay B Cohen, Dipanjan Das, and Noah A Smith. Unsupervised structure prediction with nonparallel multilingual guidance. In Proceedings of the Conference on Empirical Methods in Natural Language Processing, pp. 50–61. Association for Computational Linguistics, 2011. ",
|
| 950 |
+
"bbox": [
|
| 951 |
+
169,
|
| 952 |
+
289,
|
| 953 |
+
826,
|
| 954 |
+
928
|
| 955 |
+
],
|
| 956 |
+
"page_idx": 9
|
| 957 |
+
},
|
| 958 |
+
{
|
| 959 |
+
"type": "text",
|
| 960 |
+
"text": "Stanislas Dehaene, Florent Meyniel, Catherine Wacongne, Liping Wang, and Christophe Pallier. The neural representation of sequences: from transition probabilities to algebraic patterns and linguistic trees. Neuron, 88(1):2–19, 2015. ",
|
| 961 |
+
"bbox": [
|
| 962 |
+
178,
|
| 963 |
+
103,
|
| 964 |
+
821,
|
| 965 |
+
146
|
| 966 |
+
],
|
| 967 |
+
"page_idx": 10
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"type": "text",
|
| 971 |
+
"text": "Chris Dyer, Adhiguna Kuncoro, Miguel Ballesteros, and Noah A Smith. Recurrent neural network grammars. In Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 199–209, 2016. ",
|
| 972 |
+
"bbox": [
|
| 973 |
+
178,
|
| 974 |
+
155,
|
| 975 |
+
821,
|
| 976 |
+
199
|
| 977 |
+
],
|
| 978 |
+
"page_idx": 10
|
| 979 |
+
},
|
| 980 |
+
{
|
| 981 |
+
"type": "text",
|
| 982 |
+
"text": "Salah El Hihi and Yoshua Bengio. Hierarchical recurrent neural networks for long-term dependen cies. In Advances in neural information processing systems, pp. 493–499, 1996. ",
|
| 983 |
+
"bbox": [
|
| 984 |
+
176,
|
| 985 |
+
205,
|
| 986 |
+
818,
|
| 987 |
+
236
|
| 988 |
+
],
|
| 989 |
+
"page_idx": 10
|
| 990 |
+
},
|
| 991 |
+
{
|
| 992 |
+
"type": "text",
|
| 993 |
+
"text": "Yarin Gal and Zoubin Ghahramani. A theoretically grounded application of dropout in recurrent neural networks. In Advances in neural information processing systems, pp. 1019–1027, 2016. ",
|
| 994 |
+
"bbox": [
|
| 995 |
+
174,
|
| 996 |
+
244,
|
| 997 |
+
820,
|
| 998 |
+
273
|
| 999 |
+
],
|
| 1000 |
+
"page_idx": 10
|
| 1001 |
+
},
|
| 1002 |
+
{
|
| 1003 |
+
"type": "text",
|
| 1004 |
+
"text": "Felix A Gers and E Schmidhuber. Lstm recurrent networks learn simple context-free and contextsensitive languages. IEEE Transactions on Neural Networks, 12(6):1333–1340, 2001. ",
|
| 1005 |
+
"bbox": [
|
| 1006 |
+
173,
|
| 1007 |
+
281,
|
| 1008 |
+
820,
|
| 1009 |
+
311
|
| 1010 |
+
],
|
| 1011 |
+
"page_idx": 10
|
| 1012 |
+
},
|
| 1013 |
+
{
|
| 1014 |
+
"type": "text",
|
| 1015 |
+
"text": "Edouard Grave, Armand Joulin, and Nicolas Usunier. Improving neural language models with a continuous cache. arXiv preprint arXiv:1612.04426, 2016. ",
|
| 1016 |
+
"bbox": [
|
| 1017 |
+
173,
|
| 1018 |
+
319,
|
| 1019 |
+
821,
|
| 1020 |
+
349
|
| 1021 |
+
],
|
| 1022 |
+
"page_idx": 10
|
| 1023 |
+
},
|
| 1024 |
+
{
|
| 1025 |
+
"type": "text",
|
| 1026 |
+
"text": "Edward Grefenstette, Karl Moritz Hermann, Mustafa Suleyman, and Phil Blunsom. Learning to transduce with unbounded memory. In Advances in Neural Information Processing Systems, pp. 1828–1836, 2015. ",
|
| 1027 |
+
"bbox": [
|
| 1028 |
+
173,
|
| 1029 |
+
357,
|
| 1030 |
+
823,
|
| 1031 |
+
401
|
| 1032 |
+
],
|
| 1033 |
+
"page_idx": 10
|
| 1034 |
+
},
|
| 1035 |
+
{
|
| 1036 |
+
"type": "text",
|
| 1037 |
+
"text": "Kristina Gulordava, Piotr Bojanowski, Edouard Grave, Tal Linzen, and Marco Baroni. Colorless green recurrent networks dream hierarchically. In Proc. of NAACL, pp. 1195–1205, 2018. ",
|
| 1038 |
+
"bbox": [
|
| 1039 |
+
174,
|
| 1040 |
+
409,
|
| 1041 |
+
823,
|
| 1042 |
+
439
|
| 1043 |
+
],
|
| 1044 |
+
"page_idx": 10
|
| 1045 |
+
},
|
| 1046 |
+
{
|
| 1047 |
+
"type": "text",
|
| 1048 |
+
"text": "Phu Mon Htut, Kyunghyun Cho, and Samuel R Bowman. Grammar induction with neural language models: An unusual replication. arXiv preprint arXiv:1808.10000, 2018. ",
|
| 1049 |
+
"bbox": [
|
| 1050 |
+
174,
|
| 1051 |
+
446,
|
| 1052 |
+
823,
|
| 1053 |
+
477
|
| 1054 |
+
],
|
| 1055 |
+
"page_idx": 10
|
| 1056 |
+
},
|
| 1057 |
+
{
|
| 1058 |
+
"type": "text",
|
| 1059 |
+
"text": "Hakan Inan, Khashayar Khosravi, and Richard Socher. Tying word vectors and word classifiers: A loss framework for language modeling. arXiv preprint arXiv:1611.01462, 2016. ",
|
| 1060 |
+
"bbox": [
|
| 1061 |
+
173,
|
| 1062 |
+
484,
|
| 1063 |
+
823,
|
| 1064 |
+
515
|
| 1065 |
+
],
|
| 1066 |
+
"page_idx": 10
|
| 1067 |
+
},
|
| 1068 |
+
{
|
| 1069 |
+
"type": "text",
|
| 1070 |
+
"text": "Athul Paul Jacob, Zhouhan Lin, Alessandro Sordoni, and Yoshua Bengio. Learning hierarchical structures on-the-fly with a recurrent-recursive model for sequences. In Proceedings of The Third Workshop on Representation Learning for NLP, pp. 154–158, 2018. ",
|
| 1071 |
+
"bbox": [
|
| 1072 |
+
173,
|
| 1073 |
+
522,
|
| 1074 |
+
823,
|
| 1075 |
+
566
|
| 1076 |
+
],
|
| 1077 |
+
"page_idx": 10
|
| 1078 |
+
},
|
| 1079 |
+
{
|
| 1080 |
+
"type": "text",
|
| 1081 |
+
"text": "Armand Joulin and Tomas Mikolov. Inferring algorithmic patterns with stack-augmented recurrent nets. In Advances in neural information processing systems, pp. 190–198, 2015. ",
|
| 1082 |
+
"bbox": [
|
| 1083 |
+
173,
|
| 1084 |
+
574,
|
| 1085 |
+
821,
|
| 1086 |
+
604
|
| 1087 |
+
],
|
| 1088 |
+
"page_idx": 10
|
| 1089 |
+
},
|
| 1090 |
+
{
|
| 1091 |
+
"type": "text",
|
| 1092 |
+
"text": "Yoon Kim, Yacine Jernite, David Sontag, and Alexander M Rush. Character-aware neural language models. In AAAI, pp. 2741–2749, 2016. ",
|
| 1093 |
+
"bbox": [
|
| 1094 |
+
174,
|
| 1095 |
+
612,
|
| 1096 |
+
823,
|
| 1097 |
+
642
|
| 1098 |
+
],
|
| 1099 |
+
"page_idx": 10
|
| 1100 |
+
},
|
| 1101 |
+
{
|
| 1102 |
+
"type": "text",
|
| 1103 |
+
"text": "Dan Klein and Christopher D Manning. A generative constituent-context model for improved grammar induction. In Proceedings of the 40th Annual Meeting on Association for Computational Linguistics, pp. 128–135. Association for Computational Linguistics, 2002. ",
|
| 1104 |
+
"bbox": [
|
| 1105 |
+
174,
|
| 1106 |
+
650,
|
| 1107 |
+
823,
|
| 1108 |
+
694
|
| 1109 |
+
],
|
| 1110 |
+
"page_idx": 10
|
| 1111 |
+
},
|
| 1112 |
+
{
|
| 1113 |
+
"type": "text",
|
| 1114 |
+
"text": "Dan Klein and Christopher D Manning. Accurate unlexicalized parsing. In Proceedings of the 41st Annual Meeting on Association for Computational Linguistics-Volume 1, pp. 423–430. Association for Computational Linguistics, 2003. ",
|
| 1115 |
+
"bbox": [
|
| 1116 |
+
176,
|
| 1117 |
+
702,
|
| 1118 |
+
821,
|
| 1119 |
+
746
|
| 1120 |
+
],
|
| 1121 |
+
"page_idx": 10
|
| 1122 |
+
},
|
| 1123 |
+
{
|
| 1124 |
+
"type": "text",
|
| 1125 |
+
"text": "Dan Klein and Christopher D Manning. Natural language grammar induction with a generative constituent-context model. Pattern recognition, 38(9):1407–1419, 2005. ",
|
| 1126 |
+
"bbox": [
|
| 1127 |
+
171,
|
| 1128 |
+
753,
|
| 1129 |
+
823,
|
| 1130 |
+
784
|
| 1131 |
+
],
|
| 1132 |
+
"page_idx": 10
|
| 1133 |
+
},
|
| 1134 |
+
{
|
| 1135 |
+
"type": "text",
|
| 1136 |
+
"text": "Hilda Koopman, Dominique Sportiche, and Edward Stabler. An introduction to syntactic analysis and theory, 2013. ",
|
| 1137 |
+
"bbox": [
|
| 1138 |
+
171,
|
| 1139 |
+
791,
|
| 1140 |
+
823,
|
| 1141 |
+
820
|
| 1142 |
+
],
|
| 1143 |
+
"page_idx": 10
|
| 1144 |
+
},
|
| 1145 |
+
{
|
| 1146 |
+
"type": "text",
|
| 1147 |
+
"text": "Jan Koutnik, Klaus Greff, Faustino Gomez, and Juergen Schmidhuber. A clockwork rnn. arXiv preprint arXiv:1402.3511, 2014. ",
|
| 1148 |
+
"bbox": [
|
| 1149 |
+
171,
|
| 1150 |
+
829,
|
| 1151 |
+
825,
|
| 1152 |
+
858
|
| 1153 |
+
],
|
| 1154 |
+
"page_idx": 10
|
| 1155 |
+
},
|
| 1156 |
+
{
|
| 1157 |
+
"type": "text",
|
| 1158 |
+
"text": "Adhiguna Kuncoro, Chris Dyer, John Hale, Dani Yogatama, Stephen Clark, and Phil Blunsom. Lstms can learn syntax-sensitive dependencies well, but modeling structure makes them better. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), volume 1, pp. 1426–1436, 2018. ",
|
| 1159 |
+
"bbox": [
|
| 1160 |
+
174,
|
| 1161 |
+
867,
|
| 1162 |
+
825,
|
| 1163 |
+
924
|
| 1164 |
+
],
|
| 1165 |
+
"page_idx": 10
|
| 1166 |
+
},
|
| 1167 |
+
{
|
| 1168 |
+
"type": "text",
|
| 1169 |
+
"text": "Yair Lakretz, German Kruszewski, Theo Desbordes, Dieuwke Hupkes, Stanislas Dehaene, and Marco Baroni. The emergence of number and syntax units in lstm language models. In Proc. of NAACL, 2019. ",
|
| 1170 |
+
"bbox": [
|
| 1171 |
+
174,
|
| 1172 |
+
103,
|
| 1173 |
+
823,
|
| 1174 |
+
146
|
| 1175 |
+
],
|
| 1176 |
+
"page_idx": 11
|
| 1177 |
+
},
|
| 1178 |
+
{
|
| 1179 |
+
"type": "text",
|
| 1180 |
+
"text": "Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. Nature, 521(7553):436–444, 2015. ",
|
| 1181 |
+
"bbox": [
|
| 1182 |
+
174,
|
| 1183 |
+
155,
|
| 1184 |
+
821,
|
| 1185 |
+
185
|
| 1186 |
+
],
|
| 1187 |
+
"page_idx": 11
|
| 1188 |
+
},
|
| 1189 |
+
{
|
| 1190 |
+
"type": "text",
|
| 1191 |
+
"text": "Tsungnan Lin, Bill G Horne, Peter Tino, and C Lee Giles. Learning long-term dependencies is not as difficult with narx recurrent neural networks. Technical report, 1998. ",
|
| 1192 |
+
"bbox": [
|
| 1193 |
+
173,
|
| 1194 |
+
194,
|
| 1195 |
+
821,
|
| 1196 |
+
223
|
| 1197 |
+
],
|
| 1198 |
+
"page_idx": 11
|
| 1199 |
+
},
|
| 1200 |
+
{
|
| 1201 |
+
"type": "text",
|
| 1202 |
+
"text": "Tal Linzen, Emmanuel Dupoux, and Yoav Goldberg. Assessing the ability of lstms to learn syntaxsensitive dependencies. arXiv preprint arXiv:1611.01368, 2016. ",
|
| 1203 |
+
"bbox": [
|
| 1204 |
+
174,
|
| 1205 |
+
233,
|
| 1206 |
+
820,
|
| 1207 |
+
263
|
| 1208 |
+
],
|
| 1209 |
+
"page_idx": 11
|
| 1210 |
+
},
|
| 1211 |
+
{
|
| 1212 |
+
"type": "text",
|
| 1213 |
+
"text": "Mitchell P Marcus, Mary Ann Marcinkiewicz, and Beatrice Santorini. Building a large annotated corpus of english: The penn treebank. Computational linguistics, 19(2):313–330, 1993. ",
|
| 1214 |
+
"bbox": [
|
| 1215 |
+
173,
|
| 1216 |
+
272,
|
| 1217 |
+
823,
|
| 1218 |
+
301
|
| 1219 |
+
],
|
| 1220 |
+
"page_idx": 11
|
| 1221 |
+
},
|
| 1222 |
+
{
|
| 1223 |
+
"type": "text",
|
| 1224 |
+
"text": "Rebecca Marvin and Tal Linzen. Targeted syntactic evaluation of language models. arXiv preprint arXiv:1808.09031, 2018. ",
|
| 1225 |
+
"bbox": [
|
| 1226 |
+
173,
|
| 1227 |
+
310,
|
| 1228 |
+
823,
|
| 1229 |
+
340
|
| 1230 |
+
],
|
| 1231 |
+
"page_idx": 11
|
| 1232 |
+
},
|
| 1233 |
+
{
|
| 1234 |
+
"type": "text",
|
| 1235 |
+
"text": "Gabor Melis, Chris Dyer, and Phil Blunsom. On the state of the art of evaluation in neural language ´ models. arXiv preprint arXiv:1707.05589, 2017. ",
|
| 1236 |
+
"bbox": [
|
| 1237 |
+
173,
|
| 1238 |
+
349,
|
| 1239 |
+
823,
|
| 1240 |
+
380
|
| 1241 |
+
],
|
| 1242 |
+
"page_idx": 11
|
| 1243 |
+
},
|
| 1244 |
+
{
|
| 1245 |
+
"type": "text",
|
| 1246 |
+
"text": "Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. arXiv preprint arXiv:1609.07843, 2016. ",
|
| 1247 |
+
"bbox": [
|
| 1248 |
+
174,
|
| 1249 |
+
387,
|
| 1250 |
+
825,
|
| 1251 |
+
417
|
| 1252 |
+
],
|
| 1253 |
+
"page_idx": 11
|
| 1254 |
+
},
|
| 1255 |
+
{
|
| 1256 |
+
"type": "text",
|
| 1257 |
+
"text": "Stephen Merity, Nitish Shirish Keskar, and Richard Socher. Regularizing and Optimizing LSTM Language Models. arXiv preprint arXiv:1708.02182, 2017. ",
|
| 1258 |
+
"bbox": [
|
| 1259 |
+
171,
|
| 1260 |
+
426,
|
| 1261 |
+
823,
|
| 1262 |
+
457
|
| 1263 |
+
],
|
| 1264 |
+
"page_idx": 11
|
| 1265 |
+
},
|
| 1266 |
+
{
|
| 1267 |
+
"type": "text",
|
| 1268 |
+
"text": "Toma´s Mikolov. Statistical language models based on neural networks. ˇ Presentation at Google, Mountain View, 2nd April, 2012. ",
|
| 1269 |
+
"bbox": [
|
| 1270 |
+
169,
|
| 1271 |
+
465,
|
| 1272 |
+
823,
|
| 1273 |
+
494
|
| 1274 |
+
],
|
| 1275 |
+
"page_idx": 11
|
| 1276 |
+
},
|
| 1277 |
+
{
|
| 1278 |
+
"type": "text",
|
| 1279 |
+
"text": "Ofir Press and Lior Wolf. Using the output embedding to improve language models. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 2, Short Papers, volume 2, pp. 157–163, 2017. ",
|
| 1280 |
+
"bbox": [
|
| 1281 |
+
178,
|
| 1282 |
+
503,
|
| 1283 |
+
823,
|
| 1284 |
+
547
|
| 1285 |
+
],
|
| 1286 |
+
"page_idx": 11
|
| 1287 |
+
},
|
| 1288 |
+
{
|
| 1289 |
+
"type": "text",
|
| 1290 |
+
"text": "Oren Rippel, Michael Gelbart, and Ryan Adams. Learning ordered representations with nested dropout. In International Conference on Machine Learning, pp. 1746–1754, 2014. ",
|
| 1291 |
+
"bbox": [
|
| 1292 |
+
174,
|
| 1293 |
+
558,
|
| 1294 |
+
821,
|
| 1295 |
+
587
|
| 1296 |
+
],
|
| 1297 |
+
"page_idx": 11
|
| 1298 |
+
},
|
| 1299 |
+
{
|
| 1300 |
+
"type": "text",
|
| 1301 |
+
"text": "Brian Roark. Probabilistic top-down parsing and language modeling. Computational linguistics, 27 (2):249–276, 2001. ",
|
| 1302 |
+
"bbox": [
|
| 1303 |
+
173,
|
| 1304 |
+
595,
|
| 1305 |
+
823,
|
| 1306 |
+
626
|
| 1307 |
+
],
|
| 1308 |
+
"page_idx": 11
|
| 1309 |
+
},
|
| 1310 |
+
{
|
| 1311 |
+
"type": "text",
|
| 1312 |
+
"text": "Dominiek Sandra and Marcus Taft. Morphological Structure, Lexical Representation and Lexical Access (RLE Linguistics C: Applied Linguistics): A Special Issue of Language and Cognitive Processes. Routledge, 2014. ",
|
| 1313 |
+
"bbox": [
|
| 1314 |
+
174,
|
| 1315 |
+
633,
|
| 1316 |
+
825,
|
| 1317 |
+
678
|
| 1318 |
+
],
|
| 1319 |
+
"page_idx": 11
|
| 1320 |
+
},
|
| 1321 |
+
{
|
| 1322 |
+
"type": "text",
|
| 1323 |
+
"text": "Jurgen Schmidhuber. Neural sequence chunkers. 1991. ¨ ",
|
| 1324 |
+
"bbox": [
|
| 1325 |
+
173,
|
| 1326 |
+
686,
|
| 1327 |
+
535,
|
| 1328 |
+
703
|
| 1329 |
+
],
|
| 1330 |
+
"page_idx": 11
|
| 1331 |
+
},
|
| 1332 |
+
{
|
| 1333 |
+
"type": "text",
|
| 1334 |
+
"text": "Jurgen Schmidhuber. Deep learning in neural networks: An overview.¨ Neural networks, 61:85–117, 2015. ",
|
| 1335 |
+
"bbox": [
|
| 1336 |
+
171,
|
| 1337 |
+
712,
|
| 1338 |
+
823,
|
| 1339 |
+
741
|
| 1340 |
+
],
|
| 1341 |
+
"page_idx": 11
|
| 1342 |
+
},
|
| 1343 |
+
{
|
| 1344 |
+
"type": "text",
|
| 1345 |
+
"text": "John Schulman, Nicolas Heess, Theophane Weber, and Pieter Abbeel. Gradient estimation using stochastic computation graphs. In Advances in Neural Information Processing Systems, pp. 3528– 3536, 2015. ",
|
| 1346 |
+
"bbox": [
|
| 1347 |
+
173,
|
| 1348 |
+
751,
|
| 1349 |
+
823,
|
| 1350 |
+
794
|
| 1351 |
+
],
|
| 1352 |
+
"page_idx": 11
|
| 1353 |
+
},
|
| 1354 |
+
{
|
| 1355 |
+
"type": "text",
|
| 1356 |
+
"text": "Yikang Shen, Zhouhan Lin, Chin-Wei Huang, and Aaron Courville. Neural language modeling by jointly learning syntax and lexicon. arXiv preprint arXiv:1711.02013, 2017. ",
|
| 1357 |
+
"bbox": [
|
| 1358 |
+
171,
|
| 1359 |
+
803,
|
| 1360 |
+
823,
|
| 1361 |
+
833
|
| 1362 |
+
],
|
| 1363 |
+
"page_idx": 11
|
| 1364 |
+
},
|
| 1365 |
+
{
|
| 1366 |
+
"type": "text",
|
| 1367 |
+
"text": "Haoyue Shi, Hao Zhou, Jiaze Chen, and Lei Li. On tree-based neural sentence modeling. arXiv preprint arXiv:1808.09644, 2018. ",
|
| 1368 |
+
"bbox": [
|
| 1369 |
+
171,
|
| 1370 |
+
842,
|
| 1371 |
+
823,
|
| 1372 |
+
872
|
| 1373 |
+
],
|
| 1374 |
+
"page_idx": 11
|
| 1375 |
+
},
|
| 1376 |
+
{
|
| 1377 |
+
"type": "text",
|
| 1378 |
+
"text": "Richard Socher, Christopher D Manning, and Andrew Y Ng. Learning continuous phrase representations and syntactic parsing with recursive neural networks. In Proceedings of the NIPS-2010 Deep Learning and Unsupervised Feature Learning Workshop, volume 2010, pp. 1–9, 2010. ",
|
| 1379 |
+
"bbox": [
|
| 1380 |
+
174,
|
| 1381 |
+
881,
|
| 1382 |
+
825,
|
| 1383 |
+
924
|
| 1384 |
+
],
|
| 1385 |
+
"page_idx": 11
|
| 1386 |
+
},
|
| 1387 |
+
{
|
| 1388 |
+
"type": "text",
|
| 1389 |
+
"text": "Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D Manning, Andrew $\\mathrm { N g }$ , and Christopher Potts. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the 2013 conference on empirical methods in natural language processing, pp. 1631–1642, 2013. ",
|
| 1390 |
+
"bbox": [
|
| 1391 |
+
174,
|
| 1392 |
+
103,
|
| 1393 |
+
825,
|
| 1394 |
+
160
|
| 1395 |
+
],
|
| 1396 |
+
"page_idx": 12
|
| 1397 |
+
},
|
| 1398 |
+
{
|
| 1399 |
+
"type": "text",
|
| 1400 |
+
"text": "Guo-Zheng Sun, C Lee Giles, Hsing-Hen Chen, and Yee-Chun Lee. The neural network pushdown automaton: Model, stack and learning simulations. arXiv preprint arXiv:1711.05738, 2017. ",
|
| 1401 |
+
"bbox": [
|
| 1402 |
+
171,
|
| 1403 |
+
167,
|
| 1404 |
+
823,
|
| 1405 |
+
198
|
| 1406 |
+
],
|
| 1407 |
+
"page_idx": 12
|
| 1408 |
+
},
|
| 1409 |
+
{
|
| 1410 |
+
"type": "text",
|
| 1411 |
+
"text": "Kai Sheng Tai, Richard Socher, and Christopher D Manning. Improved semantic representations from tree-structured long short-term memory networks. arXiv preprint arXiv:1503.00075, 2015. ",
|
| 1412 |
+
"bbox": [
|
| 1413 |
+
174,
|
| 1414 |
+
207,
|
| 1415 |
+
821,
|
| 1416 |
+
236
|
| 1417 |
+
],
|
| 1418 |
+
"page_idx": 12
|
| 1419 |
+
},
|
| 1420 |
+
{
|
| 1421 |
+
"type": "text",
|
| 1422 |
+
"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. ",
|
| 1423 |
+
"bbox": [
|
| 1424 |
+
173,
|
| 1425 |
+
243,
|
| 1426 |
+
821,
|
| 1427 |
+
273
|
| 1428 |
+
],
|
| 1429 |
+
"page_idx": 12
|
| 1430 |
+
},
|
| 1431 |
+
{
|
| 1432 |
+
"type": "text",
|
| 1433 |
+
"text": "Adina Williams, Andrew Drozdov\\*, and Samuel R Bowman. Do latent tree learning models identify meaningful structure in sentences? Transactions of the Association of Computational Linguistics, 6:253–267, 2018. ",
|
| 1434 |
+
"bbox": [
|
| 1435 |
+
173,
|
| 1436 |
+
281,
|
| 1437 |
+
825,
|
| 1438 |
+
324
|
| 1439 |
+
],
|
| 1440 |
+
"page_idx": 12
|
| 1441 |
+
},
|
| 1442 |
+
{
|
| 1443 |
+
"type": "text",
|
| 1444 |
+
"text": "Shuangzhi Wu, Dongdong Zhang, Nan Yang, Mu Li, and Ming Zhou. Sequence-to-dependency neural machine translation. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), volume 1, pp. 698–707, 2017. ",
|
| 1445 |
+
"bbox": [
|
| 1446 |
+
174,
|
| 1447 |
+
333,
|
| 1448 |
+
825,
|
| 1449 |
+
376
|
| 1450 |
+
],
|
| 1451 |
+
"page_idx": 12
|
| 1452 |
+
},
|
| 1453 |
+
{
|
| 1454 |
+
"type": "text",
|
| 1455 |
+
"text": "Zhilin Yang, Zihang Dai, Ruslan Salakhutdinov, and William W Cohen. Breaking the softmax bottleneck: A high-rank rnn language model. arXiv preprint arXiv:1711.03953, 2017. ",
|
| 1456 |
+
"bbox": [
|
| 1457 |
+
173,
|
| 1458 |
+
385,
|
| 1459 |
+
823,
|
| 1460 |
+
414
|
| 1461 |
+
],
|
| 1462 |
+
"page_idx": 12
|
| 1463 |
+
},
|
| 1464 |
+
{
|
| 1465 |
+
"type": "text",
|
| 1466 |
+
"text": "Dani Yogatama, Phil Blunsom, Chris Dyer, Edward Grefenstette, and Wang Ling. Learning to compose words into sentences with reinforcement learning. arXiv preprint arXiv:1611.09100, 2016. ",
|
| 1467 |
+
"bbox": [
|
| 1468 |
+
173,
|
| 1469 |
+
422,
|
| 1470 |
+
826,
|
| 1471 |
+
464
|
| 1472 |
+
],
|
| 1473 |
+
"page_idx": 12
|
| 1474 |
+
},
|
| 1475 |
+
{
|
| 1476 |
+
"type": "text",
|
| 1477 |
+
"text": "Dani Yogatama, Yishu Miao, Gabor Melis, Wang Ling, Adhiguna Kuncoro, Chris Dyer, and Phil Blunsom. Memory architectures in recurrent neural network language models. 2018. ",
|
| 1478 |
+
"bbox": [
|
| 1479 |
+
174,
|
| 1480 |
+
473,
|
| 1481 |
+
823,
|
| 1482 |
+
503
|
| 1483 |
+
],
|
| 1484 |
+
"page_idx": 12
|
| 1485 |
+
},
|
| 1486 |
+
{
|
| 1487 |
+
"type": "text",
|
| 1488 |
+
"text": "Wojciech Zaremba, Ilya Sutskever, and Oriol Vinyals. Recurrent neural network regularization. arXiv preprint arXiv:1409.2329, 2014. ",
|
| 1489 |
+
"bbox": [
|
| 1490 |
+
174,
|
| 1491 |
+
512,
|
| 1492 |
+
821,
|
| 1493 |
+
541
|
| 1494 |
+
],
|
| 1495 |
+
"page_idx": 12
|
| 1496 |
+
},
|
| 1497 |
+
{
|
| 1498 |
+
"type": "text",
|
| 1499 |
+
"text": "Xingxing Zhang, Liang Lu, and Mirella Lapata. Top-down tree long short-term memory networks. arXiv preprint arXiv:1511.00060, 2015. ",
|
| 1500 |
+
"bbox": [
|
| 1501 |
+
174,
|
| 1502 |
+
549,
|
| 1503 |
+
821,
|
| 1504 |
+
579
|
| 1505 |
+
],
|
| 1506 |
+
"page_idx": 12
|
| 1507 |
+
},
|
| 1508 |
+
{
|
| 1509 |
+
"type": "text",
|
| 1510 |
+
"text": "Ganbin Zhou, Ping Luo, Rongyu Cao, Yijun Xiao, Fen Lin, Bo Chen, and Qing He. Generative neural machine for tree structures. CoRR, 2017. ",
|
| 1511 |
+
"bbox": [
|
| 1512 |
+
173,
|
| 1513 |
+
587,
|
| 1514 |
+
825,
|
| 1515 |
+
616
|
| 1516 |
+
],
|
| 1517 |
+
"page_idx": 12
|
| 1518 |
+
},
|
| 1519 |
+
{
|
| 1520 |
+
"type": "text",
|
| 1521 |
+
"text": "Julian Georg Zilly, Rupesh Kumar Srivastava, Jan Koutn´ık, and Jurgen Schmidhuber. Recurrent ¨ highway networks. arXiv preprint arXiv:1607.03474, 2016. ",
|
| 1522 |
+
"bbox": [
|
| 1523 |
+
171,
|
| 1524 |
+
626,
|
| 1525 |
+
825,
|
| 1526 |
+
655
|
| 1527 |
+
],
|
| 1528 |
+
"page_idx": 12
|
| 1529 |
+
},
|
| 1530 |
+
{
|
| 1531 |
+
"type": "text",
|
| 1532 |
+
"text": "Barret Zoph and Quoc V Le. Neural architecture search with reinforcement learning. arXiv preprint arXiv:1611.01578, 2016. ",
|
| 1533 |
+
"bbox": [
|
| 1534 |
+
169,
|
| 1535 |
+
664,
|
| 1536 |
+
825,
|
| 1537 |
+
693
|
| 1538 |
+
],
|
| 1539 |
+
"page_idx": 12
|
| 1540 |
+
},
|
| 1541 |
+
{
|
| 1542 |
+
"type": "image",
|
| 1543 |
+
"img_path": "images/dd6ff95e6ebe12f679c1c788e6d3f95aa5a1789f2e436a7f298d4852966b410e.jpg",
|
| 1544 |
+
"image_caption": [
|
| 1545 |
+
"Figure A.1: Left parses are from the 2nd layer of the ON-LSTM model, Right parses are converted from human expert annotations (removing all punctuations). "
|
| 1546 |
+
],
|
| 1547 |
+
"image_footnote": [],
|
| 1548 |
+
"bbox": [
|
| 1549 |
+
194,
|
| 1550 |
+
137,
|
| 1551 |
+
823,
|
| 1552 |
+
522
|
| 1553 |
+
],
|
| 1554 |
+
"page_idx": 13
|
| 1555 |
+
}
|
| 1556 |
+
]
|
parse/train/B1l6qiR5F7/B1l6qiR5F7_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BkrSv0lA-/BkrSv0lA-.md
ADDED
|
@@ -0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SS-AWARE WEIGHT QUANTIZATION OF DEEP NET-WORKS
|
| 2 |
+
|
| 3 |
+
Lu Hou, James T. Kwok
|
| 4 |
+
Department of Computer Science and Engineering
|
| 5 |
+
Hong Kong University of Science and Technology
|
| 6 |
+
Hong Kong
|
| 7 |
+
{lhouab, jamesk}@cse.ust.hk
|
| 8 |
+
|
| 9 |
+
# ABSTRACT
|
| 10 |
+
|
| 11 |
+
The huge size of deep networks hinders their use in small computing devices. In this paper, we consider compressing the network by weight quantization. We extend a recently proposed loss-aware weight binarization scheme to ternarization, with possibly different scaling parameters for the positive and negative weights, and $m$ -bit (where $m > 2$ ) quantization. Experiments on feedforward and recurrent neural networks show that the proposed scheme outperforms state-of-the-art weight quantization algorithms, and is as accurate (or even more accurate) than the full-precision network.
|
| 12 |
+
|
| 13 |
+
# 1 INTRODUCTION
|
| 14 |
+
|
| 15 |
+
The last decade has witnessed huge success of deep neural networks in various domains. Examples include computer vision, speech recognition, and natural language processing (LeCun et al., 2015). However, their huge size often hinders deployment to small computing devices such as cell phones and the internet of things. Many attempts have been recently made to reduce the model size. One common approach is to prune a trained dense network (Han et al., 2015; 2016). However, most of the pruned weights may come from the fully-connected layers where computations are cheap, and the resultant time reduction is insignificant. Li et al. (2017b) and Molchanov et al. (2017) proposed to prune filters in the convolutional neural networks based on their magnitudes or significance to the loss. However, the pruned network has to be retrained, which is again expensive.
|
| 16 |
+
|
| 17 |
+
Another direction is to use more compact models. GoogleNet (Szegedy et al., 2015) and ResNet (He et al., 2016) replace the fully-connected layers with simpler global average pooling. However, they are also deeper. SqueezeNet (Iandola et al., 2016) reduces the model size by replacing most of the $3 \times 3$ filters with $1 \times 1$ filters. This is less efficient on smaller networks because the dense $1 \times 1$ convolutions are costly. MobileNet (Howard et al., 2017) compresses the model using separable depth-wise convolution. ShuffleNet (Zhang et al., 2017) utilizes pointwise group convolution and channel shuffle to reduce the computation cost while maintaining accuracy. However, highly optimized group convolution and depth-wise convolution implementations are required. Alternatively, Novikov et al. (2015) compressed the model by using a compact multilinear format to represent the dense weight matrix. The CP and Tucker decompositions have also been used on the kernel tensor in CNNs (Lebedev et al., 2014; Kim et al., 2016). However, they often need expensive fine-tuning.
|
| 18 |
+
|
| 19 |
+
Another effective approach to compress the network and accelerate training is by quantizing each full-precision weight to a small number of bits. This can be further divided to two sub-categories, depending on whether pre-trained models are used (Lin et al., 2016a; Mellempudi et al., 2017) or the quantized model is trained from scratch (Courbariaux et al., 2015; Li et al., 2017a). Some of these also directly learn with low-precision weights, but they usually suffer from severe accuracy deterioration (Li et al., 2017a; Miyashita et al., 2016). By keeping the full-precision weights during learning, Courbariaux et al. (2015) pioneered the BinaryConnect algorithm, which uses only one bit for each weight while still achieving state-of-the-art classification results. Rastegari et al. (2016) further incorporated weight scaling, and obtained better results. Instead of simply finding the closest binary approximation of the full-precision weights, a loss-aware scheme is proposed in (Hou et al., 2017). Beyond binarization, TernaryConnect (Lin et al., 2016b) quantizes each weight to $\{ - 1 , 0 , 1 \}$ . Li & Liu (2016) and Zhu et al. (2017) added scaling to the ternarized weights, and DoReFa-Net (Zhou et al., 2016) further extended quantization to more than three levels. However, these methods do not consider the effect of quantization on the loss, and rely on heuristics in their procedures (Zhou et al., 2016; Zhu et al., 2017). Recently, a loss-aware low-bit quantized neural network is proposed in (Leng et al., 2017). However, it uses full-precision weights in the forward pass and the extra-gradient method (Vasilyev et al., 2010) for update, both of which are expensive.
|
| 20 |
+
|
| 21 |
+
In this paper, we propose an efficient and disciplined ternarization scheme for network compression. Inspired by (Hou et al., 2017), we explicitly consider the effect of ternarization on the loss. This is formulated as an optimization problem which is then solved efficiently by the proximal Newton algorithm. When the loss surface’s curvature is ignored, the proposed method reduces to that of (Li & Liu, 2016), and is also related to the projection step of (Leng et al., 2017). Next, we extend it to (i) allow the use of different scaling parameters for the positive and negative weights; and (ii) the use of $m$ bits (where $m > 2$ ) for weight quantization. Experiments on both feedforward and recurrent neural networks show that the proposed quantization scheme outperforms state-of-the-art algorithms.
|
| 22 |
+
|
| 23 |
+
Notations: For a vector $\mathbf { x }$ , $\sqrt { \mathbf { x } }$ denotes the element-wise square root (i.e., $[ { \sqrt { \mathbf { x } } } ] _ { i } = { \sqrt { x _ { i } } } )$ , $| \mathbf { x } |$ is the element-wise absolute value, $\begin{array} { r } { \| \mathbf { x } \| _ { p } = ( \sum _ { i } | x _ { i } | ^ { p } ) ^ { \frac { 1 } { p } } } \end{array}$ is its $p$ -norm, and $\mathrm { D i a g ( x ) }$ returns a diagonal matrix with $\mathbf { x }$ on the diagonal. For two vectors $\mathbf { x }$ and $\mathbf { y }$ , $\mathfrak { c } \odot$ y denotes the element-wise multiplication and $\mathbf { x } \oslash \mathbf { y }$ the element-wise division. Given a threshold $\Delta$ , $\mathbf { I } _ { \Delta } ( \mathbf { x } )$ returns a vector such that $[ { \bf I } _ { \Delta } ( { \bf x } ) ] _ { i } = 1$ if $x _ { i } > \Delta$ , $- 1$ if $x _ { i } < - \Delta$ , and 0 otherwise. $\mathbf { I } _ { \Delta } ^ { + } ( \mathbf { x } )$ considers only the positive threshold, i.e., $[ \mathbf { I } _ { \Delta } ^ { + } ( \mathbf { x } ) ] _ { i } = 1$ if $x _ { i } > \Delta$ , and 0 otherwise. Similarly, $[ \mathbf { I } _ { \Delta } ^ { - } ( \mathbf { x } ) ] _ { i } = - 1$ if $x _ { i } < - \Delta$ , and 0 otherwise. For a matrix $\mathbf { X }$ , vec $( \mathbf { X } )$ returns a vector by stacking all the columns of $\mathbf { X }$ , and diag $( \mathbf { X } )$ returns a vector whose entries are from the diagonal of $\mathbf { X }$ .
|
| 24 |
+
|
| 25 |
+
# 2 RELATED WORK
|
| 26 |
+
|
| 27 |
+
Let the full-precision weights from all $L$ layers be $\mathbf { w } ~ = ~ [ \mathbf { w } _ { 1 } ^ { \top } , \mathbf { w } _ { 2 } ^ { \top } , \dots , \mathbf { w } _ { L } ^ { \top } ] ^ { \top }$ , where $\begin{array} { r l } { \mathbf { w } _ { l } } & { { } = } \end{array}$ $\mathrm { v e c } ( \mathbf { W } _ { l } )$ , and $\mathbf { W } _ { l }$ is the weight matrix at layer $l$ . The corresponding quantized weights will be denoted $\hat { \mathbf { w } } = [ \hat { \mathbf { w } } _ { 1 } ^ { \top } , \hat { \mathbf { w } } _ { 2 } ^ { \top } , \ldots , \tilde { \mathbf { w } } _ { L } ^ { \top } ] ^ { \top }$ .
|
| 28 |
+
|
| 29 |
+
# 2.1 WEIGHT BINARIZED NETWORKS
|
| 30 |
+
|
| 31 |
+
In BinaryConnect (Courbariaux et al., 2015), each element of $\mathbf { w } _ { l }$ is binarized to $- 1$ or $+ 1$ by using the sign function: Binarize $( \mathbf { w } _ { l } ) = \mathrm { s i g n } ( \mathbf { w } _ { l } )$ . In the Binary-Weight-Network (BWN) (Rastegari et al., 2016), a scaling parameter is also included, i.e., Binarize $\left( \mathbf { w } _ { l } \right) = \alpha _ { l } \mathbf { b } _ { l }$ , where $\alpha _ { l } > 0$ , $\mathbf { b } _ { l } \in$ $\{ - 1 , + 1 \} ^ { n _ { l } }$ and $n _ { l }$ is the number of weights in $\mathbf { w } _ { l }$ . By minimizing the difference between $\mathbf { w } _ { l }$ and $\alpha _ { l } \mathbf { b } _ { l }$ , the optimal $\alpha _ { l } , \mathbf { b } _ { l }$ have the simple form: $\alpha _ { l } = \| \dot { \mathbf { w } } _ { l } \| _ { 1 } / n _ { l }$ , and ${ \bf b } _ { l } = \mathrm { s i g n } ( { \bf w } _ { l } )$ .
|
| 32 |
+
|
| 33 |
+
Instead of simply finding the best binary approximation for the full-precision weight $\mathbf { w } _ { l } ^ { t }$ at iteration $t$ , the loss-aware binarized network (LAB) directly minimizes the loss w.r.t. the binarized weight $\alpha _ { l } ^ { t } \mathbf { b } _ { l } ^ { t }$ (Hou et al., 2017). Let $\mathbf { d } _ { l } ^ { t - 1 }$ be a vector containing the diagonal of an approximate Hessian of the loss. It can be shown that $\begin{array} { r } { \dot { \alpha } _ { l } ^ { t } = \lVert \mathbf { d } _ { l } ^ { t - 1 } \odot \mathbf { w } _ { l } ^ { t } \rVert _ { 1 } / \lVert \mathbf { d } _ { l } ^ { t - 1 } \rVert _ { 1 } } \end{array}$ and $\mathbf { b } _ { l } ^ { t } = \mathrm { s i g n } ( \mathbf { w } _ { l } ^ { t } )$ .
|
| 34 |
+
|
| 35 |
+
# 2.2 WEIGHT TERNARIZED NETWORKS
|
| 36 |
+
|
| 37 |
+
In a weight ternarized network, zero is used as an additional quantized value. In TernaryConnect (Lin et al., 2016b), each weight value is clipped to $[ - 1 , 1 ]$ before quantization, and then a non-negative weight $[ \mathbf { w } _ { l } ^ { t } ] _ { i }$ is stochastically quantized to 1 with probability $\left[ \mathbf { w } _ { l } ^ { t } \right] _ { i }$ (and 0 otherwise). When $\left[ \mathbf { w } _ { l } ^ { t } \right] _ { i }$ is negative, it is quantized to $- 1$ with probability $- [ \mathbf { w } _ { l } ^ { t } ] _ { i }$ , and 0 otherwise.
|
| 38 |
+
|
| 39 |
+
In the ternary weight network (TWN) (Li & Liu, 2016), $\mathbf { w } _ { l } ^ { t }$ is quantized to $\hat { \mathbf { w } } _ { l } ^ { t } = \alpha _ { l } ^ { t } \mathbf { I } _ { \Delta _ { l } ^ { t } } ( \mathbf { w } _ { l } ^ { t } )$ , where $\Delta _ { l } ^ { t }$ is a threshold (i.e., $[ \hat { \mathbf { w } } _ { l } ^ { t } ] _ { i } = \alpha _ { l } ^ { t }$ if $[ \mathbf { w } _ { l } ^ { t } ] _ { i } > \Delta _ { l } ^ { t }$ , $- \alpha _ { l } ^ { t }$ if $[ { \bf w } _ { l } ^ { t } ] _ { i } < - \Delta _ { l } ^ { t }$ and 0 otherwise). To obtain $\Delta _ { l } ^ { t }$ and $\alpha _ { l } ^ { t }$ , TWN minimizes the $\ell _ { 2 }$ -distance between the full-precision and ternarized
|
| 40 |
+
|
| 41 |
+
weights, leading to
|
| 42 |
+
|
| 43 |
+
$$
|
| 44 |
+
\Delta _ { l } ^ { t } = \arg \operatorname* { m a x } _ { \Delta > 0 } \frac { 1 } { \| \mathbf { I } _ { \Delta } ( \mathbf { w } _ { l } ^ { t } ) \| _ { 1 } } \left( \sum _ { i : [ \mathbf { w } _ { l } ^ { t } ] _ { i } ] > \Delta _ { l } ^ { t } } \vert [ \mathbf { w } _ { l } ^ { t } ] _ { i } \vert \right) ^ { 2 } , \alpha _ { l } ^ { t } = \frac { 1 } { \| \mathbf { I } _ { \Delta _ { l } ^ { t } } ( \mathbf { w } _ { l } ^ { t } ) \| _ { 1 } } \sum _ { i : [ \mathbf { w } _ { l } ^ { t } ] _ { i } ] > \Delta _ { l } ^ { t } } \vert [ \mathbf { w } _ { l } ^ { t } ] _ { i } \vert .
|
| 45 |
+
$$
|
| 46 |
+
|
| 47 |
+
However, $\Delta _ { l } ^ { t }$ in (1) is difficult to solve. Instead, TWN simply sets $\Delta _ { l } ^ { t } = 0 . 7 \cdot \mathbf { E } ( | \mathbf { w } _ { l } ^ { t } | )$ in practice.
|
| 48 |
+
|
| 49 |
+
In TWN, one scaling parameter $( \alpha _ { l } ^ { t } )$ is used for both the positive and negative weights at layer $l$ . In the trained ternary quantization (TTQ) network (Zhu et al., 2017), different scaling parameters $( \alpha _ { l } ^ { t }$ and $\beta _ { l } ^ { t } .$ ) are used. The weight $\mathbf { w } _ { l } ^ { t }$ is thus quantized to $\hat { \mathbf { w } } _ { l } ^ { t } = \alpha _ { l } ^ { t } \mathbf { I } _ { \Delta _ { l } ^ { t } } ^ { + } ( \mathbf { w } _ { l } ^ { t } ) + \beta _ { l } ^ { t } \mathbf { I } _ { \Delta _ { l } ^ { t } } ^ { - } ( \mathbf { w } _ { l } ^ { t } )$ . The scaling parameters are learned by gradient descent. As for $\Delta _ { l } ^ { t }$ , two heuristics are used. The first sets $\Delta _ { l } ^ { t }$ to a constant fraction of $\operatorname* { m a x } ( | \mathbf { w } _ { l } ^ { t } | )$ , while the second sets $\Delta _ { l } ^ { t }$ such that at all layers are equally sparse.
|
| 50 |
+
|
| 51 |
+
# 2.3 WEIGHT QUANTIZED NETWORKS
|
| 52 |
+
|
| 53 |
+
In a weight quantized network, $m$ bits (where $\begin{array} { r l r } { m } & { { } \geq } & { 2 ) } \end{array}$ are used to represent each weight. Let $\mathcal { Q }$ be a set of $( 2 k + 1 )$ quantized values, where $\textit { k } ~ = ~ 2 ^ { m - 1 ^ { * } } - 1$ . The two popular choices of $\mathcal { Q }$ are $\{ - 1 , - \frac { k - 1 } { k } , \ldots , - \frac { 1 } { k } , 0 , \frac { 1 } { k } , \ldots , \frac { k - 1 } { k } , 1 \}$ (linear quantization), and $\left\{ - 1 , - { \frac { 1 } { 2 } } , \ldots , - { \frac { 1 } { 2 ^ { k - 1 } } } , 0 , { \frac { 1 } { 2 ^ { k - 1 } } } , \ldots , { \frac { 1 } { 2 } } , 1 \right\}$ (logarithmic quantization). By limiting the quantized values to powers of two, logarithmic quantization is advantageous in that expensive floating-point operations can be replaced by cheaper bit-shift operations. When $m = 2$ , both schemes reduce to $\mathcal { Q } = \{ - 1 , 0 , 1 \}$ .
|
| 54 |
+
|
| 55 |
+
In the DoReFa-Net (Zhou et al., 2016), weight $\mathbf { w } _ { l } ^ { t }$ is heuristically quantized to $m$ -bit, with:1
|
| 56 |
+
|
| 57 |
+
$$
|
| 58 |
+
[ \hat { \mathbf { w } } _ { l } ^ { t } ] _ { i } = 2 \cdot \mathrm { q u a n t i z e } _ { m } \left( \frac { \operatorname { t a n h } ( [ \mathbf { w } _ { l } ^ { t } ] _ { i } ) } { 2 \operatorname* { m a x } ( | \operatorname { t a n h } ( [ \mathbf { w } _ { l } ^ { t } ] _ { i } ) | ) } + \frac { 1 } { 2 } \right) - 1
|
| 59 |
+
$$
|
| 60 |
+
|
| 61 |
+
in $\{ - 1 , - \frac { 2 ^ { m } - 2 } { 2 ^ { m } - 1 } , \ldots , - \frac { 1 } { 2 ^ { m } - 1 } , \frac { 1 } { 2 ^ { m } - 1 } , \ldots , \frac { 2 ^ { m } - 2 } { 2 ^ { m } - 1 } , 1 \}$ − 12m−1 , 12m−1 , . . . , 2m−22m−1 , 1}, where quantizem(x) = 2 $\ l _ { m } ( x ) \ = \ { \frac { 1 } { 2 ^ { m } - 1 } } \mathrm { r o u n d } ( ( 2 ^ { m } \ -$ $1 ) x$ ). Similar to loss-aware binarization (Hou et al., 2017), Leng et al. (2017) proposed a loss-aware quantized network called low-bit neural network (LBNN). The alternating direction method of multipliers (ADMM) (Boyd et al., 2011) is used for optimization. At the tth iteration, the full-precision weight $\mathbf { w } _ { l } ^ { t }$ is first updated by the method of extra-gradient (Vasilyev et al., 2010):
|
| 62 |
+
|
| 63 |
+
$$
|
| 64 |
+
\begin{array} { r } { \tilde { \mathbf { w } } _ { l } ^ { t } = \mathbf { w } _ { l } ^ { t - 1 } - \eta ^ { t } \nabla _ { l } \mathcal { L } ( \mathbf { w } _ { l } ^ { t - 1 } ) , \mathbf { w } _ { l } ^ { t } = \mathbf { w } _ { l } ^ { t - 1 } - \eta ^ { t } \nabla _ { l } \mathcal { L } ( \tilde { \mathbf { w } } _ { l } ^ { t } ) , } \end{array}
|
| 65 |
+
$$
|
| 66 |
+
|
| 67 |
+
where $\mathcal { L }$ is the augmented Lagrangian in the ADMM formulation, and $\eta ^ { t }$ is the stepsize. Next, $\mathbf { w } _ { l } ^ { t }$ is projected to the space of $m$ -bit quantized weights so that $\hat { \mathbf { w } } _ { l } ^ { t }$ is of the form $\alpha _ { l } \mathbf { b } _ { l }$ , where $\alpha _ { l } > 0$ , and $\mathbf { b } _ { l } \in \left\{ - 1 , - { \frac { 1 } { 2 } } , \ldots , - { \frac { 1 } { 2 ^ { k - 1 } } } , 0 , { \frac { 1 } { 2 ^ { k - 1 } } } , \ldots , { \frac { 1 } { 2 } } , 1 \right\}$ .
|
| 68 |
+
|
| 69 |
+
# 3 LOSS-AWARE QUANTIZATION
|
| 70 |
+
|
| 71 |
+
# 3.1 TERNARIZATION USING PROXIMAL NEWTON ALGORITHM
|
| 72 |
+
|
| 73 |
+
In weight ternarization, TWN simply finds the closest ternary approximation of the full precision weight at each iteration, while TTQ sets the ternarization threshold heuristically. Inspired by LAB (for binarization), we consider the loss explicitly during quantization and obtain the quantization thresholds and scaling parameter by solving an optimization problem.
|
| 74 |
+
|
| 75 |
+
As in TWN, the weight $\mathbf { w } _ { l }$ is ternarized as $\hat { \mathbf { w } } _ { l } = \alpha _ { l } \mathbf { b } _ { l }$ , where $\alpha _ { l } > 0$ and ${ \bf b } _ { l } \in \{ - 1 , 0 , 1 \} ^ { n _ { l } }$ . Given a loss function $\ell$ , we formulate weight ternarization as the following optimization problem:
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
\operatorname* { m i n } _ { \hat { \mathbf { w } } } \ \ell ( \hat { \mathbf { w } } ) : \ \hat { \mathbf { w } } _ { l } = \alpha _ { l } \mathbf { b } _ { l } , \ \alpha _ { l } > 0 , \ \mathbf { b } _ { l } \in \mathcal { Q } ^ { n _ { l } } , \ l = 1 , \ldots , L ,
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
where $\mathcal { Q }$ is the set of desired quantized values. As in LAB, we will solve this using the proximal Newton method (Lee et al., 2014; Rakotomamonjy et al., 2016). At iteration $t$ , the objective is replaced by the second-order expansion
|
| 82 |
+
|
| 83 |
+
$$
|
| 84 |
+
\ell ( \hat { \mathbf { w } } ^ { t - 1 } ) + \nabla \ell ( \hat { \mathbf { w } } ^ { t - 1 } ) ^ { \top } ( \hat { \mathbf { w } } - \hat { \mathbf { w } } ^ { t - 1 } ) + \frac { 1 } { 2 } ( \hat { \mathbf { w } } - \hat { \mathbf { w } } ^ { t - 1 } ) ^ { \top } \mathbf { H } ^ { t - 1 } ( \hat { \mathbf { w } } - \hat { \mathbf { w } } ^ { t - 1 } ) ,
|
| 85 |
+
$$
|
| 86 |
+
|
| 87 |
+
where $\mathbf { H } ^ { t - 1 }$ is an estimate of the Hessian of $\ell$ at $\hat { \mathbf { w } } ^ { t - 1 }$ . We use the diagonal equilibration preconditioner (Dauphin et al., 2015), which is robust in the presence of saddle points and also readily available in popular stochastic deep network optimizers such as Adam (Kingma & Ba, 2015). Let $\mathbf { D } _ { l }$ be the approximate diagonal Hessian at layer $l$ . We use $\mathbf { D } = \mathrm { D i a g } ( [ \mathrm { d i a g } ( \mathbf { \tilde { D _ { 1 } } } ) ^ { \top } , \dots , \mathrm { d i a g } ( \mathbf { \tilde { D } } _ { L } ) ^ { \top } ] ^ { \top } )$ as an estimate of $\mathbf { H }$ . Substituting (4) into (3), we solve the following subproblem at the tth iteration:
|
| 88 |
+
|
| 89 |
+
$$
|
| 90 |
+
\begin{array} { r l } { \operatorname* { m i n } _ { \hat { \mathbf { w } } ^ { t } } } & { \nabla \ell ( \hat { \mathbf { w } } ^ { t - 1 } ) ^ { \top } ( \hat { \mathbf { w } } ^ { t } - \hat { \mathbf { w } } ^ { t - 1 } ) + \displaystyle \frac { 1 } { 2 } ( \hat { \mathbf { w } } ^ { t } - \hat { \mathbf { w } } ^ { t - 1 } ) ^ { \top } \mathbf { D } ^ { t - 1 } ( \hat { \mathbf { w } } ^ { t } - \hat { \mathbf { w } } ^ { t - 1 } ) } \\ { \mathrm { s . t . } } & { \quad \hat { \mathbf { w } } _ { l } ^ { t } = \alpha _ { l } ^ { t } \mathbf { b } _ { l } ^ { t } , \ \alpha _ { l } ^ { t } > 0 , \ \mathbf { b } _ { l } ^ { t } \in \mathcal { Q } ^ { n _ { l } } , \ l = 1 , \dots , L . } \end{array}
|
| 91 |
+
$$
|
| 92 |
+
|
| 93 |
+
Proposition 3.1 The objective in (5) can be rewritten as
|
| 94 |
+
|
| 95 |
+
$$
|
| 96 |
+
\operatorname* { m i n } _ { \hat { \mathbf { w } } ^ { t } } \frac { 1 } { 2 } \sum _ { l = 1 } ^ { L } \left( \sqrt { \mathbf { d } _ { l } ^ { t - 1 } } ^ { \top } ( \hat { \mathbf { w } } _ { l } ^ { t } - \mathbf { w } _ { l } ^ { t } ) \right) ^ { 2 } ,
|
| 97 |
+
$$
|
| 98 |
+
|
| 99 |
+
where $\mathbf { d } _ { l } ^ { t - 1 } \equiv d i a g ( \mathbf { D } _ { l } ^ { t - 1 } )$ , and
|
| 100 |
+
|
| 101 |
+
$$
|
| 102 |
+
\mathbf { w } _ { l } ^ { t } \equiv \hat { \mathbf { w } } _ { l } ^ { t - 1 } - \nabla _ { l } \ell \big ( \hat { \mathbf { w } } ^ { t - 1 } \big ) \oslash \mathbf { d } _ { l } ^ { t - 1 } .
|
| 103 |
+
$$
|
| 104 |
+
|
| 105 |
+
Obviously, this objective can be minimized layer by layer. Each proximal Newton iteration thus consists of two steps: (i) Obtain $\mathbf { w } _ { l } ^ { t }$ in (7) by gradient descent along $\nabla _ { l } \ell \big ( \hat { \mathbf { w } } ^ { t - 1 } \big )$ , which is preconditioned by the adaptive learning rate $1 \bigcirc \mathbf { d } _ { l } ^ { t - 1 }$ so that the rescaled dimensions have similar curvatures; (ii) Quantize $\mathbf { w } _ { l } ^ { t }$ to $\hat { \mathbf { w } } _ { l } ^ { t }$ by minimizing the scaled difference between $\hat { \mathbf { w } } _ { l } ^ { t }$ and $\mathbf { w } _ { l } ^ { t }$ in (6). Intuitively, when the curvature is low $\big [ \mathbf { d } _ { l } ^ { t - 1 } \big ] _ { i }$ is small), the loss is not sensitive to the weight and ternarization error can be less penalized. When the loss surface is steep, ternarization has to be more accurate.
|
| 106 |
+
|
| 107 |
+
Though the constraint in (6) is more complicated than that in LAB, interestingly the following simple relationship can still be obtained for weight ternarization.
|
| 108 |
+
|
| 109 |
+
Proposition 3.2 With $\mathcal { Q } = \{ - 1 , 0 , 1 \}$ , and the optimal $\hat { \mathbf { w } } _ { l } ^ { t }$ in (6) of the form αb. For a fixed b, α = kbdt−1l wtl k1t−1 ; whereas when α is fixed, b = Iα/2(wtl ).
|
| 110 |
+
|
| 111 |
+
Equivalently, b can be written as $\Pi _ { \mathcal { Q } } ( \mathbf { w } _ { l } ^ { t } / \alpha )$ , where $\Pi _ { \mathcal { Q } } ( \cdot )$ projects each entry of the input argument to the nearest element in $\mathcal { Q }$ . Further discussions on how to solve for $\alpha _ { l } ^ { t }$ will be presented in Sections 3.1.1 and 3.1.2. When the curvature is the same for all dimensions at layer $l$ , the following Corollary shows that the solution above reduces that of TWN.
|
| 112 |
+
|
| 113 |
+
Corollary 3.1 When $\mathbf { D } _ { l } ^ { t - 1 } = \lambda \mathbf { I }$ , $\alpha _ { l } ^ { t }$ reduces to the TWN solution in $( l )$ with $\Delta _ { l } ^ { t } = \alpha _ { l } ^ { t } / 2$ .
|
| 114 |
+
|
| 115 |
+
In other words, TWN corresponds to using the proximal gradient algorithm, while the proposed method corresponds to using the proximal Newton algorithm with diagonal Hessian. In composite optimization, it is known that the proximal Newton algorithm is more efficient than the proximal gradient algorithm (Lee et al., 2014; Rakotomamonjy et al., 2016). Moreover, note that the interesting relationship $\Delta _ { l } ^ { t } = \alpha _ { l } ^ { t } / 2$ is not observed in TWN, while TTQ completely neglects this relationship.
|
| 116 |
+
|
| 117 |
+
In LBNN (Leng et al., 2017), its projection step uses an objective which is similar to (6), but without using the curvature information. Besides, their $\mathbf { w } _ { l } ^ { t }$ is updated with the extra-gradient in (2), which doubles the number of forward, backward and update steps, and can be costly. Moreover, LBNN uses full-precision weights in the forward pass, while all other quantization methods including ours use quantized weights (which eliminates most of the multiplications and thus faster training).
|
| 118 |
+
|
| 119 |
+
When (i) $\ell$ is continuously differentiable with Lipschitz-continuous gradient (i.e., there exists $\beta > 0$ such that $\left\| \nabla \ell ( \mathbf { u } ) - \nabla \ell ( \mathbf { v } ) \right\| _ { 2 } \leq \beta \left\| \mathbf { u } - \mathbf { v } \right\| _ { 2 }$ for any $\mathbf { u } , \mathbf { v } ,$ ); (ii) $\ell$ is bounded from below; and (iii) $[ \mathbf { d } _ { l } ^ { t } ] _ { k } > \ddot { \beta \ } \forall l , \dot { k } , \dot { t } .$ , it can be shown that the objective of (3) produced by the proximal Newton algorithm (with solution in Proposition 3.2) converges (Hou et al., 2017). In practice, it is important to keep the full-precision weights during update (Courbariaux et al., 2015). Hence, we replace (7) by $\mathbf { w } _ { l } ^ { t } \dot { } - \mathbf { w } _ { l } ^ { t - 1 } \dot { } - \nabla _ { l } \ell ( \hat { \mathbf { w } } ^ { t - 1 } ) \bigcirc \mathbf { d } _ { l } ^ { t - 1 }$ . The whole procedure, which is called Loss-Aware Ternarization (LAT), is shown in Algorithm 3 of Appendix B. It is similar to Algorithm 1 of LAB (Hou et al., 2017), except that $\alpha _ { l } ^ { t }$ and $\mathbf { b } _ { l } ^ { t }$ are computed differently. In step 4, following (Li & Liu, 2016), we first rescale input $\mathbf { x } _ { l } ^ { t - 1 }$ with $\alpha _ { l }$ , so that multiplications in dot products and convolutions become additions. Algorithm 3 can also be easily extended to ternarize weights in recurrent networks. Interested readers are referred to (Hou et al., 2017) for details.
|
| 120 |
+
|
| 121 |
+
# 3.1.1 EXACT SOLUTION OF $\alpha _ { l } ^ { t }$
|
| 122 |
+
|
| 123 |
+
To simplify notations, we drop the superscripts and subscripts. From Proposition 3.2,
|
| 124 |
+
|
| 125 |
+
$$
|
| 126 |
+
\alpha = \frac { \| \mathbf { b } \odot \mathbf { d } \odot \mathbf { w } \| _ { 1 } } { \| \mathbf { b } \odot \mathbf { d } \| _ { 1 } } , \ \mathbf { b } = \mathbf { I } _ { \alpha / 2 } ( \mathbf { w } ) .
|
| 127 |
+
$$
|
| 128 |
+
|
| 129 |
+
We now consider how to solve for $\alpha$ . First, we introduce some notations. Given a vector $\mathbf { x } = [ x _ { 1 } , x _ { 2 } , \ldots , x _ { n } ]$ , and an indexing vector $\mathbf { s } \in \mathbb { R } ^ { n }$ whose entries are a permutation of $\{ 1 , \ldots , n \}$ , $\mathrm { p e r m } _ { \mathbf { s } } ( \mathbf { x } )$ returns the vector $[ x _ { s _ { 1 } } , x _ { s _ { 2 } } , \ldots x _ { s _ { n } } ]$ , and $\begin{array} { r } { \mathsf { c u m } ( \mathbf { x } ) = [ x _ { 1 } , \sum _ { i = 1 } ^ { 2 } x _ { i } , \hdots , \sum _ { i = 1 } ^ { n } x _ { i } ] } \end{array}$ returns partial sums for elements in $\mathbf { x }$ . For example, let $\mathbf { a } ~ = ~ \left[ 1 , - 1 , - 2 \right]$ , and $\mathbf { b } ~ = ~ [ 3 , 1 , 2 ]$ . Then, $\mathrm { \bar { p e r m } _ { b } ( a ) = [ - 2 , 1 , - 1 ] }$ and $\mathtt { c u m } ( \mathbf { a } ) = [ 1 , 0 ^ { \overline { { \prime } } } , - 2 ]$ .
|
| 130 |
+
|
| 131 |
+
We sort elements of $| \mathbf { w } |$ in descending order, and let the vector containing the sorted indices be s. For example, if $\mathbf { w } = [ 1 , 0 , - 2 ]$ , then $\mathbf { s } = [ 3 , 1 , 2 ]$ . From (8),
|
| 132 |
+
|
| 133 |
+
$$
|
| 134 |
+
\alpha = \frac { \| \mathbf { I } _ { \alpha / 2 } ( \mathbf { w } ) \odot \mathbf { d } \odot \mathbf { w } \| _ { 1 } } { \| \mathbf { I } _ { \alpha / 2 } ( \mathbf { w } ) \odot \mathbf { d } \| _ { 1 } } = \frac { [ \mathrm { c u m } ( \mathrm { p e r m } _ { \mathbf { s } } ( | \mathbf { d } \odot \mathbf { w } | ) ) ] _ { j } } { [ \mathrm { c u m } ( \mathrm { p e r m } _ { \mathbf { s } } ( | \mathbf { d } | ) ) ] _ { j } } = 2 c _ { j } ,
|
| 135 |
+
$$
|
| 136 |
+
|
| 137 |
+
where $\mathbf { c } = \mathbf { c u m } ( \mathrm { p e r m } _ { \mathbf { s } } ( | \mathbf { d } \odot \mathbf { w } | ) ) \oslash \mathbf { c u m } ( \mathrm { p e r m } _ { \mathbf { s } } ( \mathbf { d } ) ) \oslash 2$ , and $j$ is the index such that
|
| 138 |
+
|
| 139 |
+
$$
|
| 140 |
+
[ \mathrm { p e r m } _ { \mathbf { s } } ( | \mathbf { w } | ) ] _ { j } > c _ { j } > [ \mathrm { p e r m } _ { \mathbf { s } } ( | \mathbf { w } | ) ] _ { j + 1 } .
|
| 141 |
+
$$
|
| 142 |
+
|
| 143 |
+
For simplicity of notations, let the dimensionality of w (and thus also of $\mathbf { c }$ ) be $n$ , and the operation find(condition $\mathbf { \tau } ( \mathbf { x } )$ ) returns all indices in $\mathbf { x }$ that satisfies the condition. It is easy to see that any $j$ satisfying (10) is in $S \equiv \mathrm { f i n d } ( [ \mathrm { p e r m } _ { \mathbf { s } } ( | { \mathbf { w } } | ) ] _ { [ 1 : ( n - 1 ) ] } - \mathbf { c } _ { [ 1 : ( n - 1 ) ] } ) \odot ( [ \mathrm { p e r m } _ { \mathbf { s } } ( | { \mathbf { w } } | ) ] _ { [ 2 : n ] } - \mathbf { c } _ { [ 1 : n - 1 ] } ) < \delta$ 0), where $\mathbf { c } _ { [ 1 : ( n - 1 ) ] }$ is the subvector of c with elements in the index range 1 to $n - 1$ . The optimal $\alpha \ : ( = \ : 2 c _ { j } )$ ) is then the one which yields the smallest objective in (6), which can be simplified by Proposition 3.3 below. The procedure is shown in Algorithm 1.
|
| 144 |
+
|
| 145 |
+
Propositio $\begin{array} { r l r } & { } & { \textbf { n 3 3 } T h e o p t i m a l \alpha _ { l } ^ { t } \ o f ( 6 ) e q u a l s \ 2 \arg \operatorname* { m a x } _ { c _ { j } : j \in S } c _ { j } ^ { 2 } \cdot \big [ c u m ( p e r m _ { \mathrm { s } } ( \mathbf { d } _ { l } ^ { t - 1 } ) ) \big ] _ { j } . } \end{array}$
|
| 146 |
+
|
| 147 |
+
# Algorithm 1 Exact solver of (6)
|
| 148 |
+
|
| 149 |
+
1: Input: full-precision weight $\mathbf { w } _ { l } ^ { t }$ , diagonal entries of the approximate Hessian $\mathbf { d } _ { l } ^ { t - 1 }$ .
|
| 150 |
+
2: $\mathbf { s } = \arg \operatorname { s o r t } ( | \mathbf { w } _ { l } ^ { t } | )$ ;
|
| 151 |
+
3: $\mathbf { c } = \mathrm { c u m } ( \mathrm { p e r m } _ { \mathbf { s } } ( | \mathbf { d } _ { l } ^ { t - 1 } \odot \mathbf { w } _ { l } ^ { t } | ) ) \oslash \mathrm { c u m ( p e r m } _ { \mathbf { s } } ( \mathbf { d } _ { l } ^ { t - 1 } ) ) \oslash 2 ;$
|
| 152 |
+
4: $\begin{array} { r } { S = \mathrm { { f i n d } } ( ( \left[ { \mathrm { p e r m } } _ { \mathrm { s } } ( | \mathbf { w } _ { l } ^ { t } | ) \right] _ { [ 1 : ( n - 1 ) ] } - \mathbf { c } _ { [ 1 : ( n - 1 ) ] } ) ( } \end{array}$ $\odot$ ([perms(|wtl |)][2:n] − c[1:n−1]) < 0);
|
| 153 |
+
5: $\begin{array} { r } { \alpha _ { l } ^ { t } = 2 \arg \operatorname* { m a x } _ { c _ { j } : j \in \mathcal { S } } c _ { j } ^ { 2 } \cdot [ \mathsf { c u m } ( \mathsf { p e r m } _ { \mathsf { s } } ( \mathbf { d } _ { l } ^ { t - 1 } ) ) ] _ { j } } \end{array}$ ;
|
| 154 |
+
6: $\mathbf { b } _ { l } ^ { t } = \mathbf { I } _ { \alpha _ { l } ^ { t } / 2 } ( \mathbf { w } _ { l } ^ { t } )$ ;
|
| 155 |
+
7: Output: $\hat { \mathbf { w } } _ { l } ^ { t } = \alpha _ { l } ^ { t } \mathbf { b } _ { l } ^ { t }$ .
|
| 156 |
+
|
| 157 |
+
# 3.1.2 APPROXIMATE SOLUTION OF $\alpha _ { l } ^ { t }$
|
| 158 |
+
|
| 159 |
+
In case the sorting operation in step 2 is expensive, $\alpha _ { l } ^ { t }$ and $\mathbf { b } _ { l } ^ { t }$ can be obtained by alternating the iteration in Proposition 3.2 (Algorithm 2). Empirically, it converges very fast, usually in 5 iterations.
|
| 160 |
+
|
| 161 |
+
# Algorithm 2 Approximate solver for (6).
|
| 162 |
+
|
| 163 |
+
1: Input: $\mathbf { b } _ { l } ^ { t - 1 }$ , full-precision weight $\mathbf { w } _ { l } ^ { t }$ , diagonal entries of the approximate Hessian $\mathbf { d } _ { l } ^ { t - 1 }$ .
|
| 164 |
+
2: Initialize: $\alpha = 1 . 0$ , $\alpha _ { \mathrm { o l d } } = 0 . 0 , \mathbf { b } = \mathbf { b } _ { l } ^ { t - 1 }$ , $\epsilon = 1 0 ^ { - 6 }$ ;
|
| 165 |
+
3: while $| \alpha - \alpha _ { \mathrm { o l d } } | > \epsilon$ do
|
| 166 |
+
4: $\alpha _ { 0 } { } _ { \mathrm { l d } } = \alpha$ ;
|
| 167 |
+
5: $\begin{array} { r } { \alpha = \frac { \| \mathbf { b } \odot \mathbf { d } _ { l } ^ { t - 1 } \odot \mathbf { w } _ { l } ^ { t } \| _ { 1 } } { \| \mathbf { b } \odot \mathbf { d } _ { l } ^ { t - 1 } \| _ { 1 } } } \end{array}$ ;
|
| 168 |
+
6: $\mathbf { b } = \mathbf { I } _ { \alpha / 2 } ( \mathbf { w } _ { l } ^ { t } )$ ;
|
| 169 |
+
7: end while
|
| 170 |
+
8: Output: $\hat { \mathbf { w } } _ { l } ^ { t } = \alpha \mathbf { b }$ .
|
| 171 |
+
|
| 172 |
+
# 3.2 EXTENSION TO TERNARIZATION WITH TWO SCALING PARAMETERS
|
| 173 |
+
|
| 174 |
+
As in TTQ (Zhu et al., 2017), we can use different scaling parameters for the positive and negative weights in each layer. The optimization subproblem at the tth iteration then becomes:
|
| 175 |
+
|
| 176 |
+
$$
|
| 177 |
+
\begin{array} { r l } { \operatorname* { m i n } _ { \hat { \mathbf { w } } ^ { t } } } & { \nabla \ell ( \hat { \mathbf { w } } ^ { t - 1 } ) ^ { \top } ( \hat { \mathbf { w } } ^ { t } - \hat { \mathbf { w } } ^ { t - 1 } ) + \displaystyle \frac { 1 } { 2 } ( \hat { \mathbf { w } } ^ { t } - \hat { \mathbf { w } } ^ { t - 1 } ) ^ { \top } \mathbf { D } ^ { t - 1 } ( \hat { \mathbf { w } } ^ { t } - \hat { \mathbf { w } } ^ { t - 1 } ) } \\ { \mathrm { s . t . } } & { \quad \hat { \mathbf { w } } _ { l } ^ { t } \in \{ - \beta _ { l } ^ { t } , 0 , \alpha _ { l } ^ { t } \} ^ { n _ { l } } , \alpha _ { l } ^ { t } > 0 , \beta _ { l } ^ { t } > 0 , l = 1 , \ldots , L . } \end{array}
|
| 178 |
+
$$
|
| 179 |
+
|
| 180 |
+
Proposition 3.4 The optimal $\begin{array} { r l } & { \frac { \| \mathbf { p } _ { l } ^ { t } \odot \mathbf { d } _ { l } ^ { t - 1 } \odot \mathbf { w } _ { l } ^ { t } \| _ { 1 } } { \| \mathbf { p } _ { l } ^ { t } \odot \mathbf { d } _ { l } ^ { t - 1 } \| _ { 1 } } , \mathbf { p } _ { l } ^ { t } = \mathbf { I } _ { \alpha _ { l } ^ { t } / 2 } ^ { + } ( \mathbf { w } _ { l } ^ { t } ) , \beta _ { l } ^ { t } = \frac { \| \mathbf { q } _ { l } ^ { t } \odot \mathbf { d } _ { l } ^ { t - 1 } \odot \mathbf { w } _ { l } ^ { t } \| _ { 1 } } { \| \mathbf { q } _ { l } ^ { t } \odot \mathbf { d } _ { l } ^ { t - 1 } \| _ { 1 } } } \end{array}$ $\hat { \mathbf { w } } _ { l } ^ { t }$ in (5) is of the form , and $\begin{array} { r c l } { \hat { \mathbf { w } } _ { l } ^ { t } } & { = } & { \alpha _ { l } ^ { t } \mathbf { p } _ { l } ^ { t } + \beta _ { l } ^ { t } \mathbf { q } _ { l } ^ { t } } \end{array}$ $\mathbf { q } _ { l } ^ { t } = \mathbf { I } _ { \beta _ { l } ^ { t } / 2 } ^ { - } ( \mathbf { w } _ { l } ^ { t } )$ . , where $\begin{array} { r l } { \alpha _ { l } ^ { t } } & { { } = } \end{array}$
|
| 181 |
+
|
| 182 |
+
The exact and approximate solutions for $\alpha _ { l } ^ { t }$ and $\beta _ { l } ^ { t }$ can be obtained in a similar way as in Sections 3.1.1 and 3.1.2. Details are in Appendix C.
|
| 183 |
+
|
| 184 |
+
# 3.3 EXTENSION TO LOW-BIT QUANTIZATION
|
| 185 |
+
|
| 186 |
+
For $m$ -bit quantization, we simply change the set $\mathcal { Q }$ of desired quantized values in (3) to one with $k = 2 ^ { m - 1 } - 1$ quantized values. The optimization still contains a gradient descent step with adaptive learning rates like LAT, and a quantization step which can be solved efficiently by alternating minimization of $( \alpha , \mathbf { b } )$ (similar to the procedure in Algorithm 2) using the following Proposition.
|
| 187 |
+
|
| 188 |
+
Proposition 3.5 Let the optimal $\hat { \mathbf { w } } _ { l } ^ { t }$ in (6) be of the form αb. For a fixed b, $\begin{array} { r } { \alpha = \frac { \| \mathbf b \odot \mathbf d _ { l } ^ { t - 1 } \odot \mathbf w _ { l } ^ { t } \| _ { 1 } } { \| \mathbf b \odot \mathbf d _ { l } ^ { t - 1 } \| _ { 1 } } } \end{array}$ ; whereas when linear quantiza $\alpha$ is fixeon and $\mathbf { b } = \Pi _ { \mathcal { Q } } ( \frac { \mathbf { w } _ { l } ^ { t } } { \alpha } )$ $\begin{array} { r } { \mathcal { Q } = \left\{ - 1 , - \frac { k - 1 } { k } , \dots , - \frac { 1 } { k } , 0 , \frac { 1 } { k } , \dots , \frac { k - 1 } { k } , 1 \right\} } \end{array}$ forion. $\begin{array} { r } { \mathcal { Q } = \left\{ - 1 , - \frac { 1 } { 2 } , \ldots , - \frac { 1 } { 2 ^ { k - 1 } } , 0 , \frac { 1 } { 2 ^ { k - 1 } } , \ldots , \frac { 1 } { 2 } , 1 \right\} } \end{array}$
|
| 189 |
+
|
| 190 |
+
# 4 EXPERIMENTS
|
| 191 |
+
|
| 192 |
+
In this section, we perform experiments on both feedforward and recurrent neural networks. The following methods are compared: (i) the original full-precision network; (ii) weight-binarized networks, including BinaryConnect (Courbariaux et al., 2015), Binary-Weight-Network (BWN) (Rastegari et al., 2016), and Loss-Aware Binarized network (LAB) (Hou et al., 2017); (iii) weightternarized networks, including Ternary Weight Networks (TWN) (Li & Liu, 2016), Trained Ternary Quantization $( \mathrm { T T Q } ) ^ { 2 }$ (Zhu et al., 2017), the proposed Loss-Aware Ternarized network with exact solution (LATe), approximate solution (LATa), and with two scaling parameters (LAT2e and LAT2a); (iv) $m$ -bit-quantized networks (where $m > 2$ ), including DoReFa-Netm (Zhou et al., 2016), the proposed loss-aware quantized network with linear quantization (LAQm(linear)), and logarithmic quantization $\left( \mathrm { L A Q m } ( \log ) \right)$ . Since weight quantization can be viewed as a form of regularization (Courbariaux et al., 2015), we do not use other regularizers such as dropout and weight decay.
|
| 193 |
+
|
| 194 |
+
# 4.1 FEEDFORWARD NETWORKS
|
| 195 |
+
|
| 196 |
+
In this section, we perform experiments with the multilayer perceptron (on the MNIST data set) and convolutional neural networks (on CIFAR-10, CIFAR-100 and SVHN). For MNIST, CIFAR-10, and SVHN, the setup is similar to that in (Courbariaux et al., 2015; Hou et al., 2017). Details can be found in Appendix D. For CIFAR-100, we use 45, 000 images for training, another 5, 000 for validation, and the remaining 10, 000 for testing. The testing errors are shown in Table 1.
|
| 197 |
+
|
| 198 |
+
Ternarization: On MNIST, CIFAR100 and SVHN, the weight-ternarized networks perform better than weight-binarized networks, and are comparable to the full-precision networks. Among the weight-ternarized networks, the proposed LAT and its variants have the lowest errors. On CIFAR-10, LATa has similar performance as the full-precision network, but is outperformed by BinaryConnect.
|
| 199 |
+
|
| 200 |
+
Figure 1(a) shows convergence of the training loss for LATa on CIFAR-10, and Figure 1(b) shows the scaling parameter obtained at each CNN layer. As can be seen, the scaling parameters for the first and last layers (conv1 and linear3, respectively) are larger than the others. This agrees with the finding that, to maintain the activation variance and back-propagated gradients variance during the forward and backward propagations, the variance of the weights between the lth and $( l + 1 )$ th layers should roughly follow $2 / ( n _ { l } + n _ { l + 1 } )$ (Glorot & Bengio, 2010). Hence, as the input and output layers are small, larger scaling parameters are needed for their high-variance weights.
|
| 201 |
+
|
| 202 |
+
Table 1: Testing errors $( \% )$ on the feedforward networks. Algorithm with the lowest error in each group is highlighted.
|
| 203 |
+
|
| 204 |
+
<table><tr><td rowspan=1 colspan=2></td><td rowspan=1 colspan=1>MNIST</td><td rowspan=1 colspan=1>CIFAR-10</td><td rowspan=1 colspan=1>CIFAR-100</td><td rowspan=1 colspan=1>SVHN</td></tr><tr><td rowspan=1 colspan=2>no binarization full-precision</td><td rowspan=1 colspan=1>1.11</td><td rowspan=1 colspan=1>10.38</td><td rowspan=1 colspan=1>39.06</td><td rowspan=1 colspan=1>2.28</td></tr><tr><td rowspan=3 colspan=2>BinaryConnectbinarization BWNLAB</td><td rowspan=1 colspan=1>1.28</td><td rowspan=1 colspan=1>9.86</td><td rowspan=1 colspan=1>46.42</td><td rowspan=1 colspan=1>2.45</td></tr><tr><td rowspan=1 colspan=1>1.31</td><td rowspan=1 colspan=1>10.51</td><td rowspan=1 colspan=1>43.62</td><td rowspan=1 colspan=1>2.54</td></tr><tr><td rowspan=1 colspan=1>1.18</td><td rowspan=1 colspan=1>10.50</td><td rowspan=1 colspan=1>43.06</td><td rowspan=1 colspan=1>2.35</td></tr><tr><td rowspan=9 colspan=2>TWN1 scaling LATeternarization LATaTTQ2 scaling LAT2eLAT2aDoReFa-Net33-bit quantization LAQ3(linear)LAQ3(log)</td><td rowspan=1 colspan=1>1.23</td><td rowspan=1 colspan=1>10.64</td><td rowspan=1 colspan=1>43.49</td><td rowspan=1 colspan=1>2.37</td></tr><tr><td rowspan=1 colspan=1>1.15</td><td rowspan=1 colspan=1>10.47</td><td rowspan=1 colspan=1>39.10</td><td rowspan=1 colspan=1>2.30</td></tr><tr><td rowspan=1 colspan=1>1.14</td><td rowspan=1 colspan=1>10.38</td><td rowspan=1 colspan=1>39.19</td><td rowspan=1 colspan=1>2.30</td></tr><tr><td rowspan=1 colspan=1>1.20</td><td rowspan=1 colspan=1>10.59</td><td rowspan=1 colspan=1>42.09</td><td rowspan=1 colspan=1>2.38</td></tr><tr><td rowspan=1 colspan=1>1.20</td><td rowspan=1 colspan=1>10.45</td><td rowspan=1 colspan=1>39.01</td><td rowspan=1 colspan=1>2.34</td></tr><tr><td rowspan=1 colspan=1>1.19</td><td rowspan=1 colspan=1>10.48</td><td rowspan=1 colspan=1>38.84</td><td rowspan=1 colspan=1>2.35</td></tr><tr><td rowspan=1 colspan=1>1.31</td><td rowspan=1 colspan=1>10.54</td><td rowspan=1 colspan=1>45.05</td><td rowspan=1 colspan=1>2.39</td></tr><tr><td rowspan=1 colspan=1>LAQ3(linear)</td><td rowspan=1 colspan=1>1.20</td><td rowspan=1 colspan=1>10.67</td><td rowspan=1 colspan=1>38.70</td><td rowspan=1 colspan=1>2.34</td></tr><tr><td rowspan=1 colspan=1>1.16</td><td rowspan=1 colspan=1>10.52</td><td rowspan=1 colspan=1>38.50</td><td rowspan=1 colspan=1>2.29</td></tr></table>
|
| 205 |
+
|
| 206 |
+

|
| 207 |
+
Figure 1: Convergence of the training loss and scaling parameter by LATa on CIFAR-10.
|
| 208 |
+
|
| 209 |
+
Using Two Scaling Parameters: Compared to TTQ, the proposed LAT2 always has better performance. However, the extra flexibility of using two scaling parameters does not always translate to lower testing error. As can be seen, it outperforms algorithms with one scaling parameter only on CIFAR-100. We speculate this is because the capacities of deep networks are often larger than needed, and so the limited expressiveness of quantized weights may not significantly deteriorate performance. Indeed, as pointed out in (Courbariaux et al., 2015), weight quantization is a form of regularization, and can contribute positively to the performance.
|
| 210 |
+
|
| 211 |
+
Using More Bits: Among the 3-bit quantization algorithms, the proposed scheme with logarithmic quantization has the best performance. It also outperforms the other quantization algorithms on CIFAR-100 and SVHN. However, as discussed above, more quantization flexibility is useful only when the weight-quantized network does not have enough capacity.
|
| 212 |
+
|
| 213 |
+
# 4.2 RECURRENT NETWORKS
|
| 214 |
+
|
| 215 |
+
In this section, we follow (Hou et al., 2017) and perform character-level language modeling experiments on the long short-term memory (LSTM) (Hochreiter & Schmidhuber, 1997). The training objective is the cross-entropy loss over all target sequences. Experiments are performed on three data sets: (i) Leo Tolstoy’s War and Peace; (ii) source code of the Linux Kernel; and (iii) Penn Treebank Corpus (Taylor et al., 2003). For the first two, we follow the setting in (Karpathy et al., 2016; Hou et al., 2017). For Penn Treebank, we follow the setting in (Mikolov & Zweig, 2012). In the experiment, we tried different initializations for TTQ and then report the best. Cross-entropy values on the test set are shown in Table 2.
|
| 216 |
+
|
| 217 |
+
Table 2: Testing cross-entropy values on the LSTM. Algorithm with the lowest cross-entropy value in each group is highlighted.
|
| 218 |
+
|
| 219 |
+
<table><tr><td></td><td></td><td></td><td></td><td rowspan=1 colspan=1>War and Peace</td><td rowspan=1 colspan=1>Linux Kernel</td><td rowspan=1 colspan=1>PennTreebank</td></tr><tr><td rowspan=1 colspan=4>no binarization full-precision</td><td rowspan=1 colspan=1>1.268</td><td rowspan=1 colspan=1>1.326</td><td rowspan=1 colspan=1>1.083</td></tr><tr><td rowspan=3 colspan=4>BinaryConnectbinarization BWNLAB</td><td rowspan=1 colspan=1>2.942</td><td rowspan=1 colspan=1>3.532</td><td rowspan=1 colspan=1>1.737</td></tr><tr><td rowspan=1 colspan=3>BWN</td><td rowspan=1 colspan=1>1.313</td><td rowspan=1 colspan=1>1.307</td><td rowspan=1 colspan=1>1.078</td></tr><tr><td rowspan=1 colspan=1>1.291</td><td rowspan=1 colspan=1>1.305</td><td rowspan=1 colspan=1>1.081</td></tr><tr><td rowspan=6 colspan=4>TWN1 scaling LATeternarization LATaTTQ2 scaling LAT2eLAT2a</td><td rowspan=1 colspan=1>1.290</td><td rowspan=1 colspan=1>1.280</td><td rowspan=1 colspan=1>1.045</td></tr><tr><td rowspan=1 colspan=1>1.248</td><td rowspan=1 colspan=1>1.256</td><td rowspan=1 colspan=1>1.022</td></tr><tr><td rowspan=1 colspan=2></td><td rowspan=1 colspan=2>LATa</td><td rowspan=1 colspan=1>1.253</td><td rowspan=1 colspan=1>1.264</td><td rowspan=1 colspan=1>1.024</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>TTQ</td><td rowspan=1 colspan=1>1.272</td><td rowspan=1 colspan=1>1.302</td><td rowspan=1 colspan=1>1.031</td></tr><tr><td rowspan=1 colspan=1>ng</td><td rowspan=1 colspan=1>LAT2e</td><td rowspan=1 colspan=1>1.239</td><td rowspan=1 colspan=1>1.258</td><td rowspan=1 colspan=1>1.018</td></tr><tr><td rowspan=1 colspan=1>1.245</td><td rowspan=1 colspan=1>1.258</td><td rowspan=1 colspan=1>1.015</td></tr><tr><td rowspan=3 colspan=4>DoReFa-Net33-bit quantization LAQ3(linear)LAQ3(log)</td><td rowspan=1 colspan=1>1.349</td><td rowspan=1 colspan=1>1.276</td><td rowspan=1 colspan=1>1.017</td></tr><tr><td rowspan=1 colspan=1>1.282</td><td rowspan=1 colspan=1>1.327</td><td rowspan=1 colspan=1>1.017</td></tr><tr><td rowspan=1 colspan=1>1.268</td><td rowspan=1 colspan=1>1.273</td><td rowspan=1 colspan=1>1.009</td></tr><tr><td rowspan=3 colspan=4>DoReFa-Net44-bit quantization LAQ4 (linear)LAQ4 (log)</td><td rowspan=1 colspan=1>1.328</td><td rowspan=1 colspan=1>1.320</td><td rowspan=1 colspan=1>1.019</td></tr><tr><td rowspan=1 colspan=3>LAQ4 (linear)</td><td rowspan=1 colspan=1>1.294</td><td rowspan=1 colspan=1>1.337</td><td rowspan=1 colspan=1>1.046</td></tr><tr><td rowspan=1 colspan=1>1.272</td><td rowspan=1 colspan=1>1.319</td><td rowspan=1 colspan=1>1.016</td></tr></table>
|
| 220 |
+
|
| 221 |
+
Ternarization: As in Section 4.1, the proposed LATe and LATa outperform the other weight ternarization schemes, and are even better than the full-precision network on all three data sets. Figure 2 shows convergence of the training and validation losses on War and Peace. Among the ternarization methods, LAT and its variants converge faster than both TWN and TTQ.
|
| 222 |
+
|
| 223 |
+

|
| 224 |
+
Figure 2: Convergence of the training and validation losses on War and Peace.
|
| 225 |
+
|
| 226 |
+
Using Two Scaling Parameters: LAT2e and LAT2a outperform TTQ on all three data sets. They also perform better than using one scaling parameter on War and Peace and Penn Treebank.
|
| 227 |
+
|
| 228 |
+
Using More Bits: The proposed LAQ always outperforms DoReFa-Net when 3 or 4 bits are used. As noted in Section 4.1, using more bits does not necessarily yield better generalization performance, and ternarization (using 2 bits) yields the lowest validation loss on War and Peace and Linux Kernel. Moreover, logarithmic quantization is better than linear quantization. Figure 3 shows distributions of the input-to-hidden (full-precision and quantized) weights of the input gate trained after 20 epochs using LAQ3(linear) and LAQ3(log) (results on the other weights are similar). As can be seen, distributions of the full-precision weights are bell-shaped. Hence, logarithmic quantization can give finer resolutions to many of the weights which have small magnitudes.
|
| 229 |
+
|
| 230 |
+

|
| 231 |
+
Figure 3: Distributions of the full-precision and LAQ3-quantized weights on War and Peace. Left ((a) and (b)): Linear quantization; Right ((c) and (d)): Logarithmic quantization.
|
| 232 |
+
|
| 233 |
+
Quantized vs Full-precision Networks: The quantized networks often perform better than the fullprecision networks. We speculate that this is because deep networks often have larger-than-needed capacities, and so are less affected by the limited expressiveness of quantized weights. Moreover, low-bit quantization acts as regularization, and so contributes positively to the performance.
|
| 234 |
+
|
| 235 |
+
# 5 CONCLUSION
|
| 236 |
+
|
| 237 |
+
In this paper, we proposed a loss-aware weight quantization algorithm that directly considers the effect of quantization on the loss. The problem is solved using the proximal Newton algorithm. Each iteration consists of a preconditioned gradient descent step and a quantization step that projects fullprecision weights onto a set of quantized values. For ternarization, an exact solution and an efficient approximate solution are provided. The procedure is also extended to the use of different scaling parameters for the positive and negative weights, and to $m$ -bit (where $m > 2$ ) quantization. Experiments on both feedforward and recurrent networks show that the proposed quantization scheme outperforms the current state-of-the-art.
|
| 238 |
+
|
| 239 |
+
# ACKNOWLEDGMENTS
|
| 240 |
+
|
| 241 |
+
This research was supported in part by the Research Grants Council of the Hong Kong Special Administrative Region (Grant 614513). We thank the developers of Theano (Theano Development Team, 2016), Pylearn2 (Goodfellow et al., 2013) and Lasagne. We also thank NVIDIA for the gift of GPU card.
|
| 242 |
+
|
| 243 |
+
# REFERENCES
|
| 244 |
+
|
| 245 |
+
S. Boyd, N. Parikh, E. Chu, B. Peleato, and J. Eckstein. Distributed optimization and statistical learning via the alternating direction method of multipliers. Foundations and Trends in Machine Learning, 3(1):1–122, 2011.
|
| 246 |
+
M. Courbariaux, Y. Bengio, and J. P. David. BinaryConnect: Training deep neural networks with binary weights during propagations. In Advances in Neural Information Processing Systems, pp. 3105–3113, 2015.
|
| 247 |
+
Y. Dauphin, H. de Vries, and Y. Bengio. Equilibrated adaptive learning rates for non-convex optimization. In Advances in Neural Information Processing Systems, pp. 1504–1512, 2015.
|
| 248 |
+
X. Glorot and Y. Bengio. Understanding the difficulty of training deep feedforward neural networks. In International Conference on Artificial Intelligence and Statistics, pp. 249–256, 2010.
|
| 249 |
+
I. J. Goodfellow, D. Warde-Farley, P. Lamblin, V. Dumoulin, M. Mirza, R. Pascanu, J. Bergstra, F. Bastien, and Y. Bengio. Pylearn2: a machine learning research library. Preprint, 2013.
|
| 250 |
+
S. Han, J. Pool, J. Tran, and W. J. Dally. Learning both weights and connections for efficient neural network. In Advances in Neural Information Processing Systems, pp. 1135–1143, 2015.
|
| 251 |
+
S. Han, H. Mao, and W. J. Dally. Deep compression: Compressing deep neural network with pruning, trained quantization and Huffman coding. In International Conference on Learning Representations, 2016.
|
| 252 |
+
K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In International Conference on Computer Vision and Pattern Recognition, pp. 770–778, 2016.
|
| 253 |
+
S. Hochreiter and J. Schmidhuber. Long short-term memory. Neural Computation, pp. 1735–1780, 1997.
|
| 254 |
+
L. Hou, Q. Yao, and J. T. Kwok. Loss-aware binarization of deep networks. In International Conference on Learning Representations, 2017.
|
| 255 |
+
A. G. Howard, M. Zhu, B. Chen, D. Kalenichenko, W. Wang, T. Weyand, M. Andreetto, and H. Adam. MobileNets: Efficient convolutional neural networks for mobile vision applications. Preprint arXiv:1704.04861, 2017.
|
| 256 |
+
F. N. Iandola, S. Han, M. W. Moskewicz, K. Ashraf, W. J. Dally, and K. Keutzer. Squeezenet: Alexnet-level accuracy with 50x fewer parameters and ${ < } 0 . 5 \mathrm { M B }$ model size. Preprint arXiv:1602.07360, 2016.
|
| 257 |
+
A. Karpathy, J. Johnson, and F. F. Li. Visualizing and understanding recurrent networks. In International Conference on Learning Representations, 2016.
|
| 258 |
+
Y. D. Kim, E. Park, S. Yoo, T. Choi, L. Yang, and D. Shin. Compression of deep convolutional neural networks for fast and low power mobile applications. In International Conference on Learning Representations, 2016.
|
| 259 |
+
D. Kingma and J. Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2015.
|
| 260 |
+
V. Lebedev, Y. Ganin, M. Rakhuba, I. Oseledets, and V. Lempitsky. Speeding-up convolutional neural networks using fine-tuned cp-decomposition. Preprint arXiv:1412.6553, 2014.
|
| 261 |
+
Y. LeCun, Y. Bengio, and G. Hinton. Deep learning. Nature, 521(7553):436–444, 2015.
|
| 262 |
+
J. D. Lee, Y. Sun, and M. A. Saunders. Proximal Newton-type methods for minimizing composite functions. SIAM Journal on Optimization, 24(3):1420–1443, 2014.
|
| 263 |
+
C. Leng, H. Li, S. Zhu, and R. Jin. Extremely low bit neural network: Squeeze the last bit out with admm. Preprint arXiv:1707.09870, 2017.
|
| 264 |
+
F. Li and B. Liu. Ternary weight networks. Preprint arXiv:1605.04711, 2016.
|
| 265 |
+
H. Li, S. De, Z. Xu, C. Studer, H. Samet, and Goldstein T. Training quantized nets: A deeper understanding. In Advances in Neural Information Processing Systems, 2017a.
|
| 266 |
+
H. Li, A. Kadav, I. Durdanovic, H. Samet, and H. P. Graf. Pruning filters for efficient convnets. In International Conference on Learning Representations, 2017b.
|
| 267 |
+
D. Lin, S. Talathi, and S. Annapureddy. Fixed point quantization of deep convolutional networks. In International Conference on Machine Learning, pp. 2849–2858, 2016a.
|
| 268 |
+
Z. Lin, M. Courbariaux, R. Memisevic, and Y. Bengio. Neural networks with few multiplications. In International Conference on Learning Representations, 2016b.
|
| 269 |
+
N. Mellempudi, A. Kundu, D. Mudigere, D. Das, B. Kaul, and P. Dubey. Ternary neural networks with fine-grained quantization. Preprint arXiv:1705.01462, 2017.
|
| 270 |
+
T. Mikolov and G. Zweig. Context dependent recurrent neural network language model. IEEE Spoken Language Technology Workshop, 12:234–239, 2012.
|
| 271 |
+
D. Miyashita, E. H. Lee, and B. Murmann. Convolutional neural networks using logarithmic data representation. Preprint arXiv:1603.01025, 2016.
|
| 272 |
+
P. Molchanov, S. Tyree, T. Karras, T. Aila, and J. Kautz. Pruning convolutional neural networks for resource efficient transfer learning. In International Conference on Learning Representations, 2017.
|
| 273 |
+
A. Novikov, D. Podoprikhin, A. Osokin, and D. P. Vetrov. Tensorizing neural networks. In Advances in Neural Information Processing Systems, pp. 442–450, 2015.
|
| 274 |
+
A. Rakotomamonjy, R. Flamary, and G. Gasso. DC proximal Newton for nonconvex optimization problems. IEEE Transactions on Neural Networks and Learning Systems, 27(3):636–647, 2016.
|
| 275 |
+
M. Rastegari, V. Ordonez, J. Redmon, and A. Farhadi. XNOR-Net: ImageNet classification using binary convolutional neural networks. In European Conference on Computer Vision, 2016.
|
| 276 |
+
C. Szegedy, W. Liu, Y. Jia, P. Sermanet, S. Reed, D. Anguelov, D. Erhan, V. Vanhoucke, and A. Rabinovich. Going deeper with convolutions. In International Conference on Computer Vision and Pattern Recognition, pp. 1–9, 2015.
|
| 277 |
+
A. Taylor, M. Marcus, and B. Santorini. The Penn treebank: An overview. In Treebanks, pp. 5–22. Springer, 2003.
|
| 278 |
+
Theano Development Team. Theano: A Python framework for fast computation of mathematical expressions. Preprint arXiv:1605.02688, 2016.
|
| 279 |
+
F. P. Vasilyev, E. V. Khoroshilova, and A. S. Antipin. An extragradient method for finding the saddle point in an optimal control problem. Moscow University Computational Mathematics and Cybernetics, 34(3):113–118, 2010.
|
| 280 |
+
X. Zhang, X. Zhou, M. Lin, and J. Sun. ShuffleNet: An extremely efficient convolutional neural network for mobile devices. Preprint arXiv:1707.01083, 2017.
|
| 281 |
+
S. Zhou, Z. Ni, X. Zhou, H. Wen, Y. Wu, and Y. Zou. DoReFa-Net: Training low bitwidth convolutional neural networks with low bitwidth gradients. Preprint arXiv:1606.06160, 2016.
|
| 282 |
+
C. Zhu, S. Han, H. Mao, and W. J. Dally. Trained ternary quantization. In International Conference on Learning Representations, 2017.
|
| 283 |
+
|
| 284 |
+
# A PROOFS
|
| 285 |
+
|
| 286 |
+
A.1 PROOF OF PROPOSITION 3.1
|
| 287 |
+
|
| 288 |
+
With $\mathbf { w } _ { l } ^ { t }$ in (7), the objective in (5) can be rewritten as
|
| 289 |
+
|
| 290 |
+
$$
|
| 291 |
+
\begin{array} { r l } { { \nabla \ell ( \widetilde { \mathbf { w } } ^ { t - 1 } ) ^ { \top } ( \widetilde { \mathbf { w } } ^ { t } - \widetilde { \mathbf { w } } ^ { t - 1 } ) + \frac { 1 } { 2 } ( \widetilde { \mathbf { w } } ^ { t } - \widetilde { \mathbf { w } } ^ { t - 1 } ) ^ { \top } \mathbf { D } ^ { t - 1 } ( \widetilde { \mathbf { w } } ^ { t } - \widetilde { \mathbf { w } } ^ { t - 1 } ) } } \\ { = } & { \frac { 1 } { 2 } \sum _ { t = 1 } ^ { L } ( \sqrt { \mathbf { d } _ { t } ^ { t - 1 } } ^ { \top } ( \widetilde { \mathbf { w } } _ { t } ^ { t } - ( \widetilde { \mathbf { w } } _ { t } ^ { t - 1 } - \nabla _ { t } \ell ( \widetilde { \mathbf { w } } ^ { t - 1 } ) \mathcal { O } \mathbf { d } _ { t } ^ { t - 1 } ) ) ) ^ { 2 } + c _ { 1 } } \\ & { = } & { \frac { 1 } { 2 } \sum _ { t = 1 } ^ { L } ( \sqrt { \mathbf { d } _ { t } ^ { t - 1 } } ^ { \top } ( \widetilde { \mathbf { w } } _ { t } ^ { t } - \mathbf { w } _ { t } ^ { t } ) ) ^ { 2 } + c _ { 1 } } \\ { = } & { \frac { 1 } { 2 } \sum _ { t = 1 } ^ { L } ( \sqrt { \mathbf { d } _ { t } ^ { t - 1 } } ^ { \top } ( \alpha _ { t } ^ { t } \mathbf { b } _ { t } ^ { t } - \mathbf { w } _ { t } ^ { t } ) ) ^ { 2 } + c _ { 1 } } \\ & { = } & { \frac { 1 } { 2 } \sum _ { t = 1 } ^ { L } ( \sqrt { \mathbf { d } _ { t } ^ { t - 1 } } ^ { \top } ( \alpha _ { t } ^ { t } \mathbf { b } _ { t } ^ { t } - \mathbf { w } _ { t } ^ { t } ) ) ^ { 2 } + c _ { 1 } } \\ { = } & { \frac { 1 } { 2 } \sum _ { t = 1 } ^ { L } \frac { m } { \mathbf { d } _ { t } ^ { t } - \mathbf { \Phi } } \mathbf { d } _ { t } ^ { t } - \mathbf { w } _ { t } ^ { t } _ { t } - \mathbf { w } _ { t } ^ { t } _ { t } ^ { 2 } + c _ { 1 } , } \end{array}
|
| 292 |
+
$$
|
| 293 |
+
|
| 294 |
+
where $\begin{array} { r } { c _ { 1 } = - \frac { 1 } { 2 } \big ( \sqrt { \mathbf { d } _ { l } ^ { t - 1 } } ^ { \top } ( \nabla _ { l } \ell ( \hat { \mathbf { w } } ^ { t - 1 } ) \oslash \mathbf { d } _ { l } ^ { t - 1 } ) \big ) ^ { 2 } } \end{array}$ is independent of $\alpha _ { l } ^ { t }$ and $\mathbf { b } _ { l } ^ { t }$
|
| 295 |
+
|
| 296 |
+
# A.2 PROOF OF PROPOSITION 3.2
|
| 297 |
+
|
| 298 |
+
To simplify notations, we drop the subscript and superscript. Considering one particular layer, problem (6) is of the form:
|
| 299 |
+
|
| 300 |
+
$$
|
| 301 |
+
\begin{array} { r l } { \operatorname* { m i n } _ { \alpha , \mathbf { b } } } & { \displaystyle \frac { 1 } { 2 } \sum _ { i = 1 } ^ { n } d _ { i } ( \alpha b _ { i } - w _ { i } ) ^ { 2 } } \\ { \mathrm { s . t . } \quad } & { \displaystyle \alpha > 0 , b _ { i } \in \{ - 1 , 0 , 1 \} . } \end{array}
|
| 302 |
+
$$
|
| 303 |
+
|
| 304 |
+
When $\alpha$ is fixed,
|
| 305 |
+
|
| 306 |
+
$$
|
| 307 |
+
b _ { i } = \arg \operatorname* { m i n } _ { b _ { i } } \frac { 1 } { 2 } d _ { i } ( \alpha b _ { i } - w _ { i } ) ^ { 2 } = \frac { 1 } { 2 } d _ { i } \alpha ^ { 2 } ( b _ { i } - w _ { i } / \alpha ) ^ { 2 } = { \bf I } _ { \alpha / 2 } ( w _ { i } ) .
|
| 308 |
+
$$
|
| 309 |
+
|
| 310 |
+
When $\mathbf { b }$ is fixed,
|
| 311 |
+
|
| 312 |
+
$$
|
| 313 |
+
\begin{array} { r l } { \alpha ~ = } & { \arg \operatorname* { m i n } _ { \alpha } \frac { 1 } { 2 } \displaystyle \sum _ { i = 1 } ^ { n } d _ { i } ( \alpha b _ { i } - w _ { i } ) ^ { 2 } } \\ { = } & { \arg \operatorname* { m i n } _ { \alpha } \frac { 1 } { 2 } \| { \mathbf b } \odot { \mathbf b } \odot { \mathbf d } \| _ { 1 } \alpha ^ { 2 } - \| { \mathbf b } \odot { \mathbf d } \odot { \mathbf w } \| _ { 1 } \alpha + c _ { 2 } , } \\ { = } & { \arg \operatorname* { m i n } _ { \alpha } \frac { 1 } { 2 } \| { \mathbf b } \odot { \mathbf b } \odot { \mathbf d } \| _ { 1 } \left( \alpha - \frac { \| { \mathbf b } \odot { \mathbf d } \odot { \mathbf w } \| _ { 1 } } { \| { \mathbf b } \odot { \mathbf b } \odot { \mathbf d } \| _ { 1 } } \right) ^ { 2 } - \frac { 1 } { 2 } \| { \mathbf b } \odot { \mathbf d } \odot { \mathbf w } \| _ { 1 } ^ { 2 } + c _ { 2 } } \\ { = } & { \frac { \| { \mathbf b } \odot { \mathbf d } \odot { \mathbf w } \| _ { 1 } } { \| { \mathbf b } \odot { \mathbf c } \odot { \mathbf d } \| _ { 1 } } } \\ { = } & { \frac { \| { \mathbf b } \odot { \mathbf d } \odot { \mathbf w } \| _ { 1 } } { \| { \mathbf b } \odot { \mathbf d } \| _ { 1 } } . } \end{array}
|
| 314 |
+
$$
|
| 315 |
+
|
| 316 |
+
# A.3 PROOF OF COROLLARY 3.1
|
| 317 |
+
|
| 318 |
+
When $\mathbf { D } _ { l } ^ { t - 1 } = \lambda \mathbf { I }$ , i.e., the curvature is the same for all dimensions in the lth layer, From Proposition 3.2,
|
| 319 |
+
|
| 320 |
+
$$
|
| 321 |
+
\alpha _ { l } ^ { t } = \frac { \| \mathbf { b } \odot \mathbf { d } _ { l } ^ { t - 1 } \odot \mathbf { w } _ { l } ^ { t } \| _ { 1 } } { \| \mathbf { b } \odot \mathbf { d } _ { l } ^ { t - 1 } \| _ { 1 } } = \frac { \| \mathbf { I } _ { \alpha _ { l } ^ { t } / 2 } ( \mathbf { w } _ { l } ^ { t } ) \odot \mathbf { w } _ { l } ^ { t } \| _ { 1 } } { \| \mathbf { I } _ { \alpha _ { l } ^ { t } / 2 } ( \mathbf { w } _ { l } ^ { t } ) \| _ { 1 } } = \frac { 1 } { \| \mathbf { I } _ { \Delta _ { l } ^ { t } } ( \mathbf { w } _ { l } ^ { t } ) \| _ { 1 } } \sum _ { i : [ \mathbf { w } _ { l } ^ { t } ] _ { i } > \Delta _ { l } ^ { t } } | [ \mathbf { w } _ { l } ^ { t } ] _ { i } | ,
|
| 322 |
+
$$
|
| 323 |
+
|
| 324 |
+
$$
|
| 325 |
+
\Delta _ { l } ^ { t } = \frac { 1 } { 2 } \frac { \| \mathbf { I } _ { \alpha _ { l } ^ { t } / 2 } \odot \mathbf { w } _ { l } ^ { t } \| _ { 1 } } { \| \mathbf { I } _ { \alpha _ { l } ^ { t } / 2 } \| _ { 1 } } = \arg \operatorname* { m a x } _ { \Delta > 0 } \frac { 1 } { \| \mathbf { I } _ { \Delta } ( \mathbf { w } _ { l } ^ { t } ) \| _ { 1 } } \left( \sum _ { i : [ \mathbf { w } _ { l } ^ { t } ] _ { i } > \Delta } | [ \mathbf { w } _ { l } ^ { t } ] _ { i } | \right) ^ { 2 } .
|
| 326 |
+
$$
|
| 327 |
+
|
| 328 |
+
This is the same as the TWN solution in (1).
|
| 329 |
+
|
| 330 |
+
# A.4 PROOF OF PROPOSITION 3.3
|
| 331 |
+
|
| 332 |
+
For simplicity of notations, we drop the subscript and superscript. For each layer, we have an optimization problem of the form
|
| 333 |
+
|
| 334 |
+
$$
|
| 335 |
+
\begin{array} { r l } { { \operatorname* { m i n } ( \sqrt { \mathbf { d } } ^ { \top } ( { \boldsymbol { \alpha } } { \mathbf { b } } - { \mathbf { w } } ) ) ^ { 2 } } } \\ { = } & { \ \arg \operatorname* { m i n } _ { \boldsymbol { \alpha } } \| { \mathbf { b } } \odot { \mathbf { b } } \odot { \mathbf { d } } \| _ { 1 } ( { \boldsymbol { \alpha } } - \frac { \| { \mathbf { b } } \odot { \mathbf { d } } \odot { \mathbf { w } } \| _ { 1 } } { \| { \mathbf { b } } \odot { \mathbf { b } } \odot { \mathbf { d } } \| _ { 1 } } ) ^ { 2 } - \frac { \| { \mathbf { b } } \odot { \mathbf { d } } \odot { \mathbf { w } } \| _ { 1 } ^ { 2 } } { \| { \mathbf { b } } \odot { \mathbf { b } } \odot { \mathbf { d } } \| _ { 1 } } } \\ { = } & { \ \arg \operatorname* { m i n } _ { \boldsymbol { \alpha } } \| { \mathbf { I } } _ { \alpha / 2 } ( { \mathbf { w } } ) \odot { \mathbf { I } } _ { \alpha / 2 } ( { \mathbf { w } } ) \odot { \mathbf { d } } \| _ { 1 } ( { \boldsymbol { \alpha } } - \frac { \| { \mathbf { I } } _ { \alpha / 2 } ( { \mathbf { w } } ) \odot { \mathbf { d } } \odot { \mathbf { w } } \| _ { 1 } } { \| { \mathbf { I } } _ { \alpha / 2 } ( { \mathbf { w } } ) \odot { \mathbf { I } } _ { \alpha / 2 } ( { \mathbf { w } } ) \odot { \mathbf { d } } \| _ { 1 } } ) ^ { 2 } - \frac { \| { \mathbf { I } } _ { \alpha / 2 } ( { \mathbf { w } } ) \odot { \mathbf { I } } _ { \alpha / 2 } ( { \mathbf { w } } ) \odot { \mathbf { I } } _ { \alpha / 2 } ( { \mathbf { w } } ) \| _ { 1 } } { \| { \mathbf { I } } _ { \alpha / 2 } ( { \mathbf { w } } ) \odot { \mathbf { I } } _ { \alpha / 2 } ( { \mathbf { w } } ) \odot { \mathbf { I } } _ { \alpha / 2 } ( { \mathbf { w } } ) \| _ { 1 } } } \\ { = } & \ \arg \operatorname* { m i n } _ { \boldsymbol { \alpha } } - \frac \| { \mathbf { I } } _ { \alpha / 2 } ( { \mathbf { w } } ) \odot { \mathbf { d } } \odot { \mathbf { w } } \| _ { 1 } \end{array}
|
| 336 |
+
$$
|
| 337 |
+
|
| 338 |
+
where the second equality holds as $\mathbf { b } = \mathbf { I } _ { \alpha / 2 } ( \mathbf { w } )$ . From (9), we have
|
| 339 |
+
|
| 340 |
+
$$
|
| 341 |
+
\begin{array} { r l } & { - \frac { \| \mathbf { I } _ { \alpha / 2 } ( \mathbf { w } ) \odot \mathbf { d } \odot \mathbf { w } \| _ { 1 } ^ { 2 } } { \| \mathbf { I } _ { \alpha / 2 } ( \mathbf { w } ) \odot \mathbf { d } \| _ { 1 } } } \\ & { \quad = \begin{array} { r l } { \displaystyle - \frac { \| \mathbf { I } _ { \alpha / 2 } ( \mathbf { w } ) \odot \mathbf { d } \odot \mathbf { w } \| _ { 1 } } { \| \mathbf { I } _ { \alpha / 2 } ( \mathbf { w } ) \odot \mathbf { d } \| _ { 1 } } . \frac { \| \mathbf { I } _ { \alpha / 2 } ( \mathbf { w } ) \odot \mathbf { d } \odot \mathbf { w } \| _ { 1 } } { \| \mathbf { I } _ { \alpha / 2 } ( \mathbf { w } ) \odot \mathbf { d } \| _ { 1 } } . \frac { \| \mathbf { I } _ { \alpha / 2 } ( \mathbf { w } ) \odot \mathbf { d } \| _ { 1 } } { \| \mathbf { I } _ { \alpha / 2 } ( \mathbf { w } ) \odot \mathbf { d } \| _ { 1 } } . } \end{array} } \\ & { \quad \quad = \begin{array} { r l } { \displaystyle - 2 c _ { j } \cdot [ \mathrm { c u m } ( \mathrm { p e r m } _ { \mathbf { s } } ( \mathbf { d } ) ) ] _ { j } } & { } \\ { \quad = } & { \displaystyle - 2 c _ { j } ^ { 2 } \cdot [ \mathrm { c u m } ( \mathrm { p e r m } _ { \mathbf { s } } ( \mathbf { d } ) ) ] _ { j } . } \end{array} } \end{array}
|
| 342 |
+
$$
|
| 343 |
+
|
| 344 |
+
# A.5 PROOF FOR PROPOSITION 3.4
|
| 345 |
+
|
| 346 |
+
For simplicity of notations, we drop the subscript and superscript, and consider the optimization problem:
|
| 347 |
+
|
| 348 |
+
$$
|
| 349 |
+
\operatorname* { m i n } _ { \alpha , \mathbf { b } } \quad \frac { 1 } { 2 } \sum _ { i = 1 } ^ { n } d _ { i } ( \hat { w } _ { i } - w _ { i } ) ^ { 2 }
|
| 350 |
+
$$
|
| 351 |
+
|
| 352 |
+
Let $f ( \hat { w } _ { i } ) = ( \hat { w } _ { i } - w _ { i } ) ^ { 2 }$ . Then, $f ( \alpha ) = ( \alpha - w _ { i } ) ^ { 2 } , f ( 0 ) = w _ { i } ^ { 2 }$ , and $f ( - \beta ) = ( \beta + w _ { i } ) ^ { 2 }$ . It is easy to see that (i) if $w _ { i } > \alpha / 2 , f ( \alpha )$ is the smallest; (ii) if $w _ { i } < - \beta / 2 , f ( - 1 )$ is the smallest; (iii) if $- \beta / 2 \le w _ { i } \le \alpha / 2 , f ( 0 )$ is the smallest. In other words, the optimal $\hat { w } _ { i }$ satisfies
|
| 353 |
+
|
| 354 |
+
$$
|
| 355 |
+
\hat { w } _ { i } = \alpha \mathbf { I } _ { \alpha / 2 } ^ { + } ( w _ { i } ) + \beta \mathbf { I } _ { \beta / 2 } ^ { - } ( w _ { i } ) ,
|
| 356 |
+
$$
|
| 357 |
+
|
| 358 |
+
or equivalently, $\hat { \mathbf { w } } = \alpha \mathbf { p } + \beta \mathbf { q }$ , where $\mathbf { p } = \mathbf { I } _ { \alpha / 2 } ^ { + } ( \mathbf { w } )$ , and $\mathbf { q } = \mathbf { I } _ { \beta } ^ { - } ( \mathbf { w } )$
|
| 359 |
+
|
| 360 |
+
Define $\mathbf { w } ^ { + }$ and $\mathbf { w } ^ { - }$ such that $[ \mathbf { w } ^ { + } ] _ { i } = \left\{ \begin{array} { l l } { w _ { i } } & { w _ { i } > 0 } \\ { 0 } & { \mathrm { o t h e r w i s e } , } \end{array} \right. \mathrm { a n d } \ [ \mathbf { w } ^ { - } ] _ { i } = \left\{ \begin{array} { l l } { w _ { i } } & { w _ { i } < 0 } \\ { 0 } & { \mathrm { o t h e r w i s e } . } \end{array} \right.$ Then,
|
| 361 |
+
|
| 362 |
+
$$
|
| 363 |
+
\frac { 1 } { 2 } \sum _ { i = 1 } ^ { n } d _ { i } ( \hat { w } _ { i } - w _ { i } ) ^ { 2 } = \frac { 1 } { 2 } \sum _ { i = 1 } ^ { n } d _ { i } ( \alpha p _ { i } - w _ { i } ^ { + } ) ^ { 2 } + \frac { 1 } { 2 } \sum _ { i = 1 } ^ { n } d _ { i } ( \beta q _ { i } - w _ { i } ^ { - } ) ^ { 2 } .
|
| 364 |
+
$$
|
| 365 |
+
|
| 366 |
+
The objective in (12) has two parts, and each part can be viewed as a special case of the ternarization step in Proposition 3.1 (considering only with positive or negative weights). Similar to the proof for Proposition 3.2, we can obtain that the optimal $\hat { \mathbf { w } } = \alpha \mathbf { p } + \beta \mathbf { q }$ satisfies
|
| 367 |
+
|
| 368 |
+
$$
|
| 369 |
+
\begin{array} { r } { \alpha = \frac { \| \mathbf { p } \odot \mathbf { d } \odot \mathbf { w } \| _ { 1 } } { \| \mathbf { p } \odot \mathbf { d } \| _ { 1 } } , \quad \mathbf { p } = \mathbf { I } _ { \alpha / 2 } ^ { + } ( \mathbf { w } ) , } \\ { \beta = \frac { \| \mathbf { q } \odot \mathbf { d } \odot \mathbf { w } \| _ { 1 } } { \| \mathbf { q } \odot \mathbf { d } \| _ { 1 } } , \quad \mathbf { q } = \mathbf { I } _ { \beta / 2 } ^ { - } ( \mathbf { w } ) . } \end{array}
|
| 370 |
+
$$
|
| 371 |
+
|
| 372 |
+
# A.6 PROOF OF PROPOSITION 3.5
|
| 373 |
+
|
| 374 |
+
For simplicity of notations, we drop the subscript and superscript. Since $\begin{array} { r } { \frac { 1 } { 2 } ( \sqrt { \mathbf { d } } ^ { \top } ( \alpha \mathbf { b } - \mathbf { w } ) ) ^ { 2 } = } \end{array}$ $\textstyle { \frac { 1 } { 2 } } \sum _ { i = 1 } ^ { n } d _ { i } ( \alpha b _ { i } - w _ { i } ) ^ { 2 }$ for each layer, we simply consider the optimization problem:
|
| 375 |
+
|
| 376 |
+
$$
|
| 377 |
+
\begin{array} { r l } { \operatorname* { m i n } _ { \boldsymbol { \alpha } , \mathbf { b } } } & { \displaystyle \frac { 1 } { 2 } \sum _ { i = 1 } ^ { n } d _ { i } ( { \boldsymbol { \alpha } } b _ { i } - w _ { i } ) ^ { 2 } } \\ { \mathrm { s . t . } } & { \boldsymbol { \alpha } > 0 , b _ { i } \in \mathcal { Q } . } \end{array}
|
| 378 |
+
$$
|
| 379 |
+
|
| 380 |
+
When $\alpha$ is fixed,
|
| 381 |
+
|
| 382 |
+
$$
|
| 383 |
+
b _ { i } = \arg \operatorname* { m i n } _ { b _ { i } } \frac { 1 } { 2 } d _ { i } ( \alpha b _ { i } - w _ { i } ) ^ { 2 } = \frac { 1 } { 2 } d _ { i } \alpha ^ { 2 } ( b _ { i } - w _ { i } / \alpha ) ^ { 2 } = \Pi _ { \mathcal { Q } } \left( \frac { w _ { i } } { \alpha } \right) .
|
| 384 |
+
$$
|
| 385 |
+
|
| 386 |
+
When $\mathbf { b }$ is fixed,
|
| 387 |
+
|
| 388 |
+
$$
|
| 389 |
+
{ \begin{array} { r c l } { \alpha } & { = } & { \displaystyle \operatorname { a r g m i n } _ { \alpha } { \frac { 1 } { 2 } } \sum _ { i = 1 } ^ { n } d _ { i } ( \alpha b _ { i } - w _ { i } ) ^ { 2 } } \\ & { = } & { \displaystyle \operatorname { a r g m i n } _ { \alpha } { \frac { 1 } { 2 } } \| \mathbf { b \odot b \odot d } \| _ { 1 } \alpha ^ { 2 } - \| \mathbf { b \odot d \odot w } \| _ { 1 } \alpha + c _ { 2 } } \\ & { = } & { \displaystyle \operatorname { a r g m i n } _ { \alpha } { \frac { 1 } { 2 } } \| \mathbf { b \odot b \odot d } \| _ { 1 } \left( \alpha - { \frac { \| \mathbf { b \odot d \odot w } \| _ { 1 } } { \| \mathbf { b \odot b \odot d } \| _ { 1 } } } \right) ^ { 2 } - { \frac { 1 } { 2 } } { \frac { \| \mathbf { b \odot d \odot w } \| _ { 1 } ^ { 2 } } { \| \mathbf { b \odot b \odot d } \| _ { 1 } } } } \\ & { = } & { \displaystyle { \frac { \| \mathbf { b \odot d \odot w } \| _ { 1 } } { \| \mathbf { b \odot b \odot d } \| _ { 1 } } } } \\ & { = } & { \displaystyle { \frac { \| \mathbf { b \odot d \odot d } \| _ { 1 } } { \| \mathbf { b \odot d } \| _ { 1 } } } . } \end{array} }
|
| 390 |
+
$$
|
| 391 |
+
|
| 392 |
+
# B LOSS-AWARE TERNARIZATION ALGORITHM (LAT)
|
| 393 |
+
|
| 394 |
+
The whole procedure of LAT is shown in Algorithm 3.
|
| 395 |
+
|
| 396 |
+
# C EXACT AND APPROXIMATE SOLUTIONS FOR TERNARIZATION WITH TWO SCALING PARAMETERS
|
| 397 |
+
|
| 398 |
+
Let there be $n _ { 1 }$ positive elements and $n _ { 2 }$ negative elements in $\mathbf { w } _ { l }$ . For a $n$ -dimensional vector $\mathbf { x } = [ x _ { 1 } , x _ { 2 } , \ldots , x _ { n } ]$ , define inverse $\mathbf { \Phi } : ( \mathbf { x } ) = [ x _ { n } , x _ { n - 1 } , \ldots , x _ { 1 } ]$ . As is shown in (12), the objective can be separated into two parts, and each part can be viewed as a special case of ternarization step in Proposition 3.1, dealing only with positive or negative weights. Thus the exact and approximate solutions for $\alpha _ { l } ^ { t }$ and $\beta _ { l } ^ { t }$ can separately be derived in a similar way as that of using one scaling parameter. The exact and approximate solutions for $\alpha _ { l } ^ { t }$ and $\beta _ { l } ^ { t }$ for layer-l at the tth time step are shown in Algorithms 4 and 5.
|
| 399 |
+
|
| 400 |
+
# D EXPERIMENTAL DETAILS
|
| 401 |
+
|
| 402 |
+
# D.1 SETUP FOR FEEDFORWARD NETWORKS
|
| 403 |
+
|
| 404 |
+
The setup for the four data sets are as follows:
|
| 405 |
+
|
| 406 |
+
1. MNIST: This contains $2 8 \times 2 8$ gray images from 10 digit classes. We use 50, 000 images for training, another 10, 000 for validation, and the remaining 10, 000 for testing. We use the 4-layer model:
|
| 407 |
+
|
| 408 |
+
$$
|
| 409 |
+
7 8 4 F C - 2 0 4 8 F C - 2 0 4 8 F C - 2 0 4 8 F C - 1 0 S V M ,
|
| 410 |
+
$$
|
| 411 |
+
|
| 412 |
+
where $F C$ is a fully-connected layer, and $S V M$ is a $\ell _ { 2 }$ -SVM output layer using the square hinge loss. Batch normalization with a minibatch size 100, is used to accelerate learning. The maximum number of epochs is 50. The learning rate starts at 0.01, and decays by a factor of 0.1 at epochs 15 and 25.
|
| 413 |
+
|
| 414 |
+
Algorithm 3 Loss-Aware Ternarization (LAT) for training a feedforward neural network.
|
| 415 |
+
|
| 416 |
+
Input: Minibatch $\{ ( \mathbf { x } _ { 0 } ^ { t } , \mathbf { y } ^ { t } ) \}$ , current full-precision weights $\left\{ \mathbf { w } _ { l } ^ { t } \right\}$ , first moment $\{ \mathbf { m } _ { l } ^ { t - 1 } \}$ , second moment $\{ \mathbf { v } _ { l } ^ { t - 1 } \}$ , and learning rate $\eta ^ { t }$ .
|
| 417 |
+
|
| 418 |
+
1: Forward Propagation
|
| 419 |
+
2: for $l = 1$ to $L$ do
|
| 420 |
+
3: compute $\alpha _ { l } ^ { t }$ and $\mathbf { b } _ { l } ^ { t }$ using Algorithm 1 or 2;
|
| 421 |
+
4: rescale the layer- $\mathbf { \nabla } \cdot \mathbf { \vec { \tau } }$ input: $\tilde { \mathbf { x } } _ { l - 1 } ^ { t } = \alpha _ { l } ^ { t } \mathbf { x } _ { l - 1 } ^ { t }$ ;
|
| 422 |
+
5: compute $\mathbf { z } _ { l } ^ { t }$ with input $\tilde { \mathbf { x } } _ { l - 1 } ^ { t }$ and binary weight $\mathbf { b } _ { l } ^ { t }$ ;
|
| 423 |
+
6: apply batch-normalization and nonlinear activation to $\mathbf { z } _ { l } ^ { t }$ to obtain $\mathbf { x } _ { l } ^ { t }$ ;
|
| 424 |
+
7: end for
|
| 425 |
+
8: compute the loss $\ell$ using $\mathbf { x } _ { L } ^ { t }$ and $\mathbf { y } ^ { t }$ ;
|
| 426 |
+
9: Backward Propagation
|
| 427 |
+
10: initialize output layer’s activation’s gradient $\frac { \partial \ell } { \partial \mathbf { x } _ { L } ^ { t } }$ ;
|
| 428 |
+
11: for $l = L$ to 2 do
|
| 429 |
+
12: compute $\frac { \partial \ell } { \partial \mathbf { x } _ { l - 1 } ^ { t } }$ usin g ∂ \`∂ x t , α tl an d b tl ;
|
| 430 |
+
13: end for
|
| 431 |
+
14: Update parameters using Adam
|
| 432 |
+
15: for $l = 1$ to $L$ do
|
| 433 |
+
16: compute gradients $\nabla _ { l } \ell ( \hat { \mathbf { w } } ^ { t } )$ using $\frac { \partial \ell } { \partial \mathbf { x } _ { l } ^ { t } }$ and $\mathbf { x } _ { l - 1 } ^ { t }$ ;
|
| 434 |
+
17: update first moment $\mathbf { m } _ { l } ^ { t } = \beta _ { 1 } \mathbf { m } _ { l } ^ { t - 1 } + ( 1 - \beta _ { 1 } ) \nabla _ { l } \ell ( \hat { \mathbf { w } } ^ { t } )$ ;
|
| 435 |
+
18: update second moment $\mathbf { v } _ { l } ^ { t } = \beta _ { 2 } \mathbf { v } _ { l } ^ { t - 1 } + ( 1 - \beta _ { 2 } ) ( \nabla _ { l } \ell ( \hat { \mathbf { w } } ^ { t } ) \odot \nabla _ { l } \ell ( \hat { \mathbf { w } } ^ { t } ) ) ;$ ;
|
| 436 |
+
19: compute unbiased first moment $\hat { \mathbf { m } } _ { l } ^ { t } = \mathbf { m } _ { l } ^ { t } / ( 1 - \beta _ { 1 } ^ { t } )$ ;
|
| 437 |
+
20: compute unbiased second moment $\hat { \mathbf { v } } _ { l } ^ { t } = \mathbf { v } _ { l } ^ { t } / ( 1 - \beta _ { 2 } ^ { t } )$ ;
|
| 438 |
+
21: compute current curvature matrix $\begin{array} { r } { \mathbf { d } _ { l } ^ { t } = \frac { 1 } { \eta ^ { t } } \left( \epsilon \mathbf { 1 } + \sqrt { \hat { \mathbf { v } } _ { l } ^ { t } } \right) } \end{array}$ ;
|
| 439 |
+
22: update full-precision weights $\mathbf { w } _ { l } ^ { t + 1 } = \mathbf { w } _ { l } ^ { t } - \hat { \mathbf { m } } _ { l } ^ { t } \oslash \mathbf { d } _ { l } ^ { t }$ ;
|
| 440 |
+
23: update learning rate $\eta ^ { t + 1 } =$ UpdateLearningrate $( \eta ^ { t } , t + 1 )$ ;
|
| 441 |
+
|
| 442 |
+
24: end for
|
| 443 |
+
|
| 444 |
+
Algorithm 4 Exact solver for $\hat { \mathbf { w } } _ { l } ^ { t }$ with two scaling parameters.
|
| 445 |
+
|
| 446 |
+
1: Input: full-precision weight $\mathbf { w } _ { l } ^ { t }$ , diagonal entries of the approximate Hessian $\mathbf { d } _ { l } ^ { t - 1 }$ .
|
| 447 |
+
2: $\mathbf { s } _ { 1 } = \arg \operatorname { s o r t } ( \mathbf { w } _ { l } ^ { t } )$ ;
|
| 448 |
+
3: $\mathbf { c } _ { 1 } = \mathrm { c u m } ( \mathrm { p e r m } _ { \mathbf { s } _ { 1 } } ( | \mathbf { d } _ { l } ^ { t - 1 } \odot \mathbf { w } _ { l } ^ { t } | ) ) \oslash \mathrm { c u m } ( \mathrm { p e r m } _ { \mathbf { s } _ { 1 } } ( | \mathbf { d } _ { l } ^ { t - 1 } | ) ) \oslash 2 ;$
|
| 449 |
+
4: $\mathfrak { I } _ { 1 } = \mathrm { H n d } [ ( [ \mathrm { p e r m } _ { \mathbf { s } _ { 1 } } ( \mathbf { w } _ { l } ^ { t } ) ] _ { [ 1 : ( n _ { 1 } - 1 ) ] } - [ \mathbf { c } _ { 1 } ] _ { [ 1 : ( n _ { 1 } - 1 ) ] } )$ [perms1 (wtl )][2:n1] − [c1][1:n1−1]) < 0);
|
| 450 |
+
5: $\begin{array} { r } { \alpha _ { l } ^ { t } = 2 \arg \operatorname* { m a x } _ { c _ { i } , i \in \cal S _ { 1 } } [ { \bf c } _ { 1 } ] _ { i } ^ { 2 } \cdot [ { \bf c u m ( p e r m _ { s _ { 1 } } ( | { \bf d } } _ { l } ^ { t - 1 } | ) ) ] _ { i } . } \end{array}$ ;
|
| 451 |
+
6: $\mathbf { p } _ { l } ^ { t } = \mathbf { I } _ { \alpha / 2 } ^ { + } ( \mathbf { w } _ { l } ^ { t } )$ ;
|
| 452 |
+
7: $\mathbf { s } _ { 2 } = \operatorname { i n v e r s e } ( \mathbf { s } _ { 1 } )$ ;
|
| 453 |
+
8: $\begin{array} { r l } & { \mathbf { c } _ { 2 } = \mathrm { c u m } ( \mathrm { p e r m } _ { \mathbf { s } _ { 2 } } ( | \mathbf { d } _ { l } ^ { t - 1 } \odot \mathbf { w } _ { l } ^ { t } | ) ) \oslash \mathrm { c u m } ( \mathrm { p e r m } _ { \mathbf { s } _ { 2 } } ( | \mathbf { d } _ { l } ^ { t - 1 } | ) ) \oslash 2 ; } \\ & { S _ { 2 } = \mathrm { f u n d } ( ( [ - \mathrm { p e r m } _ { \mathbf { s } _ { 2 } } ( \mathbf { w } _ { l } ^ { t } ) ] [ \mathbf { 1 } _ { : ( n _ { 2 } - 1 ) ] } - [ \mathbf { c } _ { 2 } ] [ \mathbf { 1 } _ { : ( n _ { 2 } - 1 ) ] } ) \odot ( [ - \mathrm { p e r m } _ { \mathbf { s } _ { 2 } } ( \mathbf { w } _ { l } ^ { t } ) ] _ { [ 2 : n _ { 2 } ] } - [ \mathbf { c } _ { 2 } ] _ { [ 1 : n _ { 2 } - 1 ] } ) < } \\ & { 0 ; } \\ & { \beta _ { l } ^ { t } = 2 \mathrm { a r g } \operatorname* { m a x } _ { c _ { i } , i \in S _ { 2 } } [ \mathbf { c } _ { 2 } ] _ { i } ^ { 2 } \odot [ \mathrm { c u m } ( \mathrm { p e r m } _ { \mathbf { s } _ { 2 } } ( | \mathbf { d } _ { l } ^ { t - 1 } | ) ) ] _ { i } ; } \end{array}$
|
| 454 |
+
9:
|
| 455 |
+
10:
|
| 456 |
+
11: $\mathbf { q } _ { l } ^ { t } = \mathbf { I } _ { \beta / 2 } ^ { - } ( \mathbf { w } _ { l } ^ { t } )$ ;
|
| 457 |
+
12: Output: $\hat { \mathbf { w } } _ { l } ^ { t } = \alpha _ { l } ^ { t } \mathbf { p } _ { l } ^ { t } + \beta _ { l } ^ { t } \mathbf { q } _ { l } ^ { t }$ .
|
| 458 |
+
|
| 459 |
+
2. CIFAR-10: This contains $3 2 \times 3 2$ color images from 10 object classes. We use 45, 000 images for training, another $5 , 0 0 0$ for validation, and the remaining $1 0 , 0 0 0$ for testing. The images are preprocessed with global contrast normalization and ZCA whitening. We use the VGG-like architecture:
|
| 460 |
+
|
| 461 |
+
$$
|
| 462 |
+
( 2 \times 1 2 8 C 3 ) - M P 2 - ( 2 \times 2 5 6 C 3 ) - M P 2 - ( 2 \times 5 1 2 C 3 ) - M P 2 - ( 2 \times 1 0 2 4 F C ) - 1 0 S V M ,
|
| 463 |
+
$$
|
| 464 |
+
|
| 465 |
+
where $C 3$ is a $3 \times 3$ ReLU convolution layer, and $M P 2$ is a $2 \times 2$ max-pooling layer. Batch normalization with a minibatch size of 50, is used. The maximum number of epochs
|
| 466 |
+
|
| 467 |
+
Algorithm 5 Approximate solver for $\hat { \mathbf { w } } _ { l } ^ { t }$ with two scaling parameters
|
| 468 |
+
|
| 469 |
+
1: Input: $\mathbf { b } _ { l } ^ { t - 1 }$ , full-precision weight $\mathbf { w } _ { l } ^ { t }$ , and diagonal entries of approximate Hessian $\mathbf { d } _ { l } ^ { t - 1 }$ .
|
| 470 |
+
2: Initialize: $\alpha = 1 . 0 , \alpha _ { \mathrm { o l d } } = 0 . 0 , \beta = 1 . 0 , \beta _ { o } = 0 . 0 , \mathbf { b } = \mathbf { b } _ { l } ^ { t - 1 } , \mathbf { p } = \mathbf { I } _ { 0 } ^ { + } ( \mathbf { b } ) , \mathbf { q } = \mathbf { I } _ { 0 } ^ { - } ( \mathbf { b } ) , \epsilon = 0 .$
|
| 471 |
+
$1 0 ^ { - 6 }$ .
|
| 472 |
+
3: while $| \alpha - \alpha _ { \mathrm { o l d } } | > \epsilon$ and $| \beta - \beta _ { \mathrm { o l d } } | > \epsilon$ do
|
| 473 |
+
4: $\alpha _ { \mathrm { o l d } } = \alpha$ , $\beta _ { \mathrm { o l d } } = \beta$ ;
|
| 474 |
+
5: $\begin{array} { r } { \alpha = \frac { \| \mathbf { p } \odot \mathbf { d } _ { l } ^ { t - 1 } \odot \mathbf { w } _ { l } ^ { t } \| _ { 1 } } { \| \mathbf { p } \odot \mathbf { d } _ { l } ^ { t - 1 } \| _ { 1 } } } \end{array}$ ;
|
| 475 |
+
6: $\mathbf { p } = \mathbf { I } _ { \alpha / 2 } ^ { + } ( \mathbf { w } _ { l } ^ { t } )$ ;
|
| 476 |
+
7: $\begin{array} { r } { \beta = \frac { \| \mathbf { q } \odot \mathbf { d } _ { l } ^ { t - 1 } \odot \mathbf { w } _ { l } ^ { t } \| _ { 1 } } { \| \mathbf { q } \odot \mathbf { d } _ { l } ^ { t - 1 } \| _ { 1 } } } \end{array}$ ;
|
| 477 |
+
8: $\mathbf { q } = \mathbf { I } _ { \beta / 2 } ^ { - } \big ( \mathbf { w } _ { l } ^ { t } \big )$ ;
|
| 478 |
+
9: end while
|
| 479 |
+
10: Output: $\hat { \mathbf { w } } _ { l } ^ { t } = \alpha \mathbf { p } + \beta \mathbf { q }$ .
|
| 480 |
+
|
| 481 |
+
is 200. The learning rate for the weight-binarized network starts at 0.03 while for all the other networks starts at 0.002, and decays by a factor of 0.5 after every 15 epochs.
|
| 482 |
+
|
| 483 |
+
3. CIFAR-100: This contains $3 2 \times 3 2$ color images from 100 object classes. We use 45, 000 images for training, another $5 , 0 0 0$ for validation, and the remaining $1 0 , 0 0 0$ for testing. The images are preprocessed with global contrast normalization and ZCA whitening. We use the VGG-like architecture:
|
| 484 |
+
|
| 485 |
+
$$
|
| 486 |
+
( 2 \times 1 2 8 C 3 ) - M P 2 - ( 2 \times 2 5 6 C 3 ) - M P 2 - ( 2 \times 5 1 2 C 3 ) - M P 2 - ( 2 \times 1 0 2 4 F C ) - 1 0 0 S V M .
|
| 487 |
+
$$
|
| 488 |
+
|
| 489 |
+
Batch normalization with a minibatch size of 100, is used. The maximum number of epochs is 200. The learning rate starts at 0.0005, and decays by a factor of 0.5 after every 15 epochs.
|
| 490 |
+
|
| 491 |
+
4. SVHN: This contains $3 2 \times 3 2$ color images from 10 digit classes. We use 598, 388 images for training, another 6, 000 for validation, and the remaining 26, 032 for testing. The images are preprocessed with global and local contrast normalization. The model used is:
|
| 492 |
+
|
| 493 |
+
$$
|
| 494 |
+
( 2 \times 6 4 C 3 ) - M P 2 - ( 2 \times 1 2 8 C 3 ) - M P 2 - ( 2 \times 2 5 6 C 3 ) - M P 2 - ( 2 \times 1 0 2 4 F C ) - 1 0 S V M .
|
| 495 |
+
$$
|
| 496 |
+
|
| 497 |
+
Batch normalization with a minibatch size of 50, is used. The maximum number of epochs is 50. The learning rate starts at 0.001 for the weight-binarized network, and 0.0005 for the other networks. It then decays by a factor of 0.1 at epochs 15 and 25.
|
| 498 |
+
|
| 499 |
+
# D.2 SETUP FOR RECURRENT NETWORKS
|
| 500 |
+
|
| 501 |
+
The setup for the three data sets are as follows:
|
| 502 |
+
|
| 503 |
+
1. Leo Tolstoy’s War and Peace: It consists of 3258K characters of almost entirely English text with minimal markup and a vocabulary size of 87. We use the same training/validation/test set split as in (Karpathy et al., 2016; Hou et al., 2017).
|
| 504 |
+
2. The source code of the Linux Kernel: This consists of 621K characters and a vocabulary size of 101. We use the same training/validation/test set split as in (Karpathy et al., 2016; Hou et al., 2017).
|
| 505 |
+
3. The Penn Treebank data set (Taylor et al., 2003): This has been frequently used for language modeling. It contains 50 different characters, including English characters, numbers, and punctuations. We follow the setting in (Mikolov & Zweig, 2012), with 5,017K characters for training, 393K for validation, and 442K characters for testing.
|
| 506 |
+
|
| 507 |
+
We use a one-layer LSTM with 512 cells. The maximum number of epochs is 200, and the number of time steps is 100. The initial learning rate is 0.002. After 10 epochs, it is decayed by a factor of 0.98 after each epoch. The weights are initialized uniformly in [0.08, 0.08]. After each iteration, the gradients are clipped to the range $[ - 5 , 5 ]$ . All the updated weights are clipped to $[ - 1 , 1 ]$ for binarization and ternarization methods, but not for $m$ -bit (where $m > 2$ ) quantization methods.
|
parse/train/BkrSv0lA-/BkrSv0lA-_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BkrSv0lA-/BkrSv0lA-_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BkrSv0lA-/BkrSv0lA-_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BydjJte0-/BydjJte0-.md
ADDED
|
@@ -0,0 +1,385 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# TOWARDS REVERSE-ENGINEERING BLACK-BOX NEURAL NETWORKS
|
| 2 |
+
|
| 3 |
+
Seong Joon Oh, Max Augustin, Bernt Schiele, Mario Fritz
|
| 4 |
+
Max-Planck Institute for Informatics, Saarland Informatics Campus, Saarbrucken, Germany ¨
|
| 5 |
+
{joon,maxaug,schiele,mfritz}@mpi-inf.mpg.de
|
| 6 |
+
|
| 7 |
+
# ABSTRACT
|
| 8 |
+
|
| 9 |
+
Many deployed learned models are black boxes: given input, returns output. Internal information about the model, such as the architecture, optimisation procedure, or training data, is not disclosed explicitly as it might contain proprietary information or make the system more vulnerable. This work shows that such attributes of neural networks can be exposed from a sequence of queries. This has multiple implications. On the one hand, our work exposes the vulnerability of black-box neural networks to different types of attacks – we show that the revealed internal information helps generate more effective adversarial examples against the black box model. On the other hand, this technique can be used for better protection of private content from automatic recognition models using adversarial examples. Our paper suggests that it is actually hard to draw a line between white box and black box models. The code is available at goo.gl/MbYfsv.
|
| 10 |
+
|
| 11 |
+
# 1 INTRODUCTION
|
| 12 |
+
|
| 13 |
+
Black-box models take a sequence of query inputs, and return corresponding outputs, while keeping internal states such as model architecture hidden. They are deployed as black boxes usually on purpose – for protecting intellectual properties or privacy-sensitive training data. Our work aims at inferring information about the internals of black box models – ultimately turning them into white box models. Such a reverse-engineering of a black box model has many implications. On the one hand, it has legal implications to intellectual properties (IP) involving neural networks – internal information about the model can be proprietary and a key IP, and the training data may be privacy sensitive. Disclosing hidden details may also render the model more susceptible to attacks from adversaries. On the other hand, gaining information about a black-box model can be useful in other scenarios. E.g. there has been work on utilising adversarial examples for protecting private regions (e.g. faces) in photographs from automatic recognisers (Oh et al., 2017). In such scenarios, gaining more knowledge on the recognisers will increase the chance of protecting one’s privacy. Either way, it is a crucial research topic to investigate the type and amount of information that can be gained from a black-box access to a model. We make a first step towards understanding the connection between white box and black box approaches – which were previously thought of as distinct classes.
|
| 14 |
+
|
| 15 |
+
We introduce the term “model attributes” to refer to various types of information about a trained neural network model. We group them into three types: (1) architecture (e.g. type of non-linear activation), (2) optimisation process (e.g. SGD or ADAM?), and (3) training data (e.g. which dataset?). We approach the problem as a standard supervised learning task applied over models. First, collect a diverse set of white-box models (“meta-training set”) that are expected to be similar to the target black box at least to a certain extent. Then, over the collected meta-training set, train another model (“metamodel”) that takes a model as input and returns the corresponding model attributes as output. Importantly, since we want to predict attributes at test time for black-box models, the only information available for attribute prediction is the query input-output pairs. As we will see in the experiments, such input-output pairs allow to predict model attributes surprisingly well.
|
| 16 |
+
|
| 17 |
+
In summary, we contribute: (1) Investigation of the type and amount of internal information about the black-box model that can be extracted from querying; (2) Novel metamodel methods that not only reason over outputs from static query inputs, but also actively optimise query inputs that can extract more information; (3) Study of factors like size of the meta-training set, quantity and quality of queries, and the dissimilarity between the meta-training models and the test black box (generalisability); (4) Empirical verification that revealed information leads to greater susceptibility of a black-box model to an adversarial example based attack.
|
| 18 |
+
|
| 19 |
+
# 2 RELATED WORK
|
| 20 |
+
|
| 21 |
+
There has been a line of work on extracting and exploiting information from black-box learned models. We first describe papers on extracting information (model extraction and membership inference attacks), and then discuss ones on attacking the network using the extracted information (adversarial image perturbations $( A I P )$ ).
|
| 22 |
+
|
| 23 |
+
Model extraction attacks either reconstruct the exact model parameters or build an avatar model that maximises the likelihood of the query input-output pairs from the target model (Tramer et al., 2016; Papernot et al., 2017). Tramer et al. (2016) have shown the efficacy of equation solving attacks and the avatar method in retrieving internal parameters of non-neural network models. Papernot et al. (2017) have also used the avatar approach with the end goal of generating adversarial examples. While the avatar approach first assumes model hyperparameters like model family (architecture) and training data, we discriminatively train a metamodel to predict those hyperparameters themselves. As such, our approach is complementary to the avatar approach.
|
| 24 |
+
|
| 25 |
+
Membership inference attacks determine if a given data sample has been included in the training data (Ateniese et al., 2015; Shokri et al., 2017). In particular, Ateniese et al. (2015) also trains a decision tree metamodel over a set of classifiers trained on different datasets. This work goes far beyond only inferring the training data by showing that even the model architecture and optimisation process can be inferred.
|
| 26 |
+
|
| 27 |
+
Using the obtained cues, one can launch more effective, focused attacks on the black box. We use adversarial image perturbations (AIPs) as an example of such attack. AIPs are small perturbations over the input such that the network is mislead. Research on this topic has flourished recently after it was shown that the needed amount of perturbation to completely mislead an image classifier is nearly invisible (Szegedy et al., 2014; Goodfellow et al., 2015; Moosavi-Dezfooli et al., 2017).
|
| 28 |
+
|
| 29 |
+
Most effective AIPs require gradients of the target network. Some papers proposed different ways to attack black boxes. They can be grouped into three approaches. (1) Approximate gradients by numerical gradients (Narodytska & Kasiviswanathan, 2017; Chen et al., 2017). The caveat is that thousands and millions of queries are needed to compute a single AIP, depending on the image size. (2) Use the avatar approach to train a white box network that is supposedly similar to the target (Papernot et al., 2016b;a; Hayes & Danezis, 2017). We note again that our metamodel is complementary to the avatar approach – the avatar network hyperparemters can be determined by the metamodel. (3) Exploit transferability of adversarial examples; it has been shown that AIPs generated against one network can also fool other networks (Moosavi-Dezfooli et al., 2017; Liu et al., 2017). Liu et al. (2017) in particular have shown that generating AIPs against an ensemble of networks make it more transferable. We show in this work that the AIPs transfer better within an architecture family (e.g. ResNet or DenseNet) than across, and that such a property can be exploited by our metamodel for generating more targetted AIPs.
|
| 30 |
+
|
| 31 |
+
# 3 METAMODELS
|
| 32 |
+
|
| 33 |
+
We want to find out the type and amount of internal information about a black-box model that can be revealed from a sequence of queries. We approach this by first building metamodels for predicting model attributes, and then evaluating their performance on black-box models. Our
|
| 34 |
+
|
| 35 |
+

|
| 36 |
+
Figure 1: Overview of our approach.
|
| 37 |
+
|
| 38 |
+
main approach, metamodel, is described in figure 1. In a nutshell, the metamodel is a classifier of classifiers. Specifically, The metamodel submits $n$ query inputs $\left[ x ^ { i } \right] _ { i = 1 } ^ { n }$ to a black box model $f$ ; the metamodel takes corresponding model outputs $\left[ f ( x ^ { i } ) \right] _ { i = 1 } ^ { n }$ as an input, and returns predicted model attributes as output. As we will describe in detail, the metamodel not only learns to infer model attributes from query outputs from a static set of inputs, but also searches for query inputs that are designed to extract greater amount of information from the target models.
|
| 39 |
+
|
| 40 |
+
In this section, our main methods are introduced in the context of MNIST digit classifiers. While MNIST classifiers are not fully representative of generic learned models, they have a computational edge: it takes only five minutes to train each of them with reasonable performance. We could thus prepare a diverse set of 11k MNIST classifiers within 40 GPU days for the meta-training and evaluation of our metamodels. We stress, however, that the proposed approach is generic with respect to the task, data, and the type of models. We also focus on 12 model attributes (table 1) that cover hyperparameters for common neural network MNIST classifiers, but again the range of predictable attributes are not confined to this list.
|
| 41 |
+
|
| 42 |
+
# 3.1 COLLECTING A DATASET OF CLASSIFIERS
|
| 43 |
+
|
| 44 |
+
We need a dataset of classifiers to train and evaluate metamodels. We explain how MNIST-NETS has been constructed, a dataset of 11k MNIST digit classifiers; the procedure is task and data generic.
|
| 45 |
+
|
| 46 |
+
# BASE NETWORK SKELETON
|
| 47 |
+
|
| 48 |
+
Every model in MNIST-NETS shares the same convnet skeleton architecture: “ $N$ conv blocks $M$ fc blocks $ ~ 1$ linear classifier”. Each conv block has the following structure: “ks $\times$ ks convolution optional $2 \times 2$ max-pooling non-linear activation”, where ks (kernel size) and the activation type are to be chosen. Each fc block has the structure: “00linear mapping non-linear activation optional dropout” This convnet structure already covers many LeNet (LeCun et al., 1998) variants, one of the best performing architectures on MNIST1.
|
| 49 |
+
|
| 50 |
+
# INCREASING DIVERSITY
|
| 51 |
+
|
| 52 |
+
In order to learn generalisable features, the metamodel needs to be trained over a diverse set of models. The base architecture described above already has several free parameters like the number of layers ( $N$ and $M ,$ ), the existence of dropout or maxpooling layers, or the type of nonlinear activation.
|
| 53 |
+
|
| 54 |
+
Table 1: MNIST classifier attributes. Italicised attributes are derived from other attributes.
|
| 55 |
+
|
| 56 |
+
<table><tr><td></td><td>Code</td><td>Attribute</td><td>Values</td></tr><tr><td>AAieeiteee</td><td>act drop pool ks #conv #fc</td><td>Activation Dropout Max pooling Conv ker. size #Conv layers #FC layers</td><td>ReLU,PReLU,ELU,Tanh Yes,No Yes,No 3,5 2,3,4 2,3,4</td></tr><tr><td>0</td><td>#par ens alg</td><td>#Parameters Ensemble Algorithm</td><td>214, : 221 Yes,No SGD,ADAM,RMSprop</td></tr><tr><td>0</td><td>bs split size</td><td>Batch size Data split Data size</td><td>64,128,256 Allo,Halfo/1, Quarter0/1/2/3 All, Half, Quarter</td></tr></table>
|
| 57 |
+
|
| 58 |
+
Apart from the architectural hyperparameters, we increase diversity along two more axes – optimisation process and the training data. Along the optimisation axis, we vary optimisation algorithm (SGD, ADAM, or
|
| 59 |
+
|
| 60 |
+
RMSprop) and the training batch size (64, 128, 256). We also consider training MNIST classifiers on either on the entire MNIST training set $( \mathrm { A l l } _ { 0 }$ , 60k), one of the two disjoint halves $\mathrm { ( H a l f _ { 0 / 1 } }$ , 30k), or one of the four disjoint quarters (Quarte $\Gamma _ { 0 / 1 / 2 / 3 }$ , $1 5 \mathrm { k } )$ ).
|
| 61 |
+
|
| 62 |
+
See table 1 for the comprehensive list of 12 model attributes altered in MNIST-NETS. The number of trainable parameters (#par) and the training data size (size) are not directly controlled but derived from the other attributes. We also augment MNIST-NETS with ensembles of classifiers (ens), whose procedure will be described later.
|
| 63 |
+
|
| 64 |
+
# SAMPLING AND TRAINING
|
| 65 |
+
|
| 66 |
+
The number of all possible combinations of controllable options in table 1 is 18, 144. We also select random seeds that control the initialisation and training data shuffling from $\{ 0 , \cdots , 9 9 9 \}$ , resulting in 18, 144, 000 unique models. Training such a large number of models is intractable; we have sampled (without replacement) and trained 10, 000 of them. All the models have been trained with learning rate 0.1 and momentum 0.5 for 100 epochs. It takes around 5 minutes to train each model on a GPU machine (GeForce GTX TITAN); training of 10k classifiers has taken 40 GPU days.
|
| 67 |
+
|
| 68 |
+
# PRUNING AND AUGMENTING
|
| 69 |
+
|
| 70 |
+
In order to make sure that MNIST-NETS realistically represents commonly used MNIST classifiers, we have pruned low-performance classifiers (validation accuracy $< 9 8 \%$ ), resulting in 8, 582 classifiers. Ensembles of trained classifiers have been constructed by grouping the identical classifiers (modulo random seed). Given $t$ identical ones, we have augmented MNIST-NETS with 2, · · · , $t$ combinations. The ensemble augmentation has resulted in 11, 282 final models. See appendix table 6 for statistics of attributes – due to large sample size all the attributes are evenly covered.
|
| 71 |
+
|
| 72 |
+
# TRAIN-EVAL SPLITS
|
| 73 |
+
|
| 74 |
+
Attribute prediction can get arbitrarily easy by including the black-box model (or similar ones) in the meta-training set. We introduce multiple splits of MNIST-NETS with varying requirements on generalization. Unless stated otherwise, every split has 5, 000 training (meta-training), 1, 000 testing (black box), and 5, 282 leftover models.
|
| 75 |
+
|
| 76 |
+
The Random (R) split randomly (uniform weights) assigns training and test splits, respectively. Under the R split, the training and test models come from the same distribution. We introduce harder Extrapolation (E) splits. We separate a few attributes between the training and test splits. They are designed to simulate more difficult domain gaps when the meta-training models are significantly different from the black box. Specific examples of E splits will be shown in $\ S 4$ .
|
| 77 |
+
|
| 78 |
+
# 3.2 METAMODEL METHODS
|
| 79 |
+
|
| 80 |
+
The metamodel predicts the attribute of a black-box model $g$ in the test split by submitting $n$ query inputs and observing the outputs. It is trained over meta-training models $f$ in the training split $( f \sim \mathcal { F } )$ . We propose three approaches for the metamodels – we collectively name them kennen2. See figure 2 for an overview.
|
| 81 |
+
|
| 82 |
+
# K E N N E N-O: REASON OVER OUTPUT
|
| 83 |
+
|
| 84 |
+
kennen-o first selects a fixed set of queries $[ x ^ { i } ] _ { i = 1 \cdots n }$ from a dataset. Both during training and testing, always these queries are submitted. kennen $\scriptscriptstyle - \bigcirc$ learns a classifier $m _ { \theta }$ to map from the order-sensitively concatenated $n$ query outputs, $[ f ( x ^ { i } ) ] _ { i = 1 \cdots n }$ $( n \times 1 0$ dim for MNIST), to the simultaneous prediction of 12 attributes in $f$ . The training objective is:
|
| 85 |
+
|
| 86 |
+
$$
|
| 87 |
+
\operatorname* { m i n } _ { \theta } { } _ { f \sim \mathcal { F } } \left[ \sum _ { a = 1 } ^ { 1 2 } \mathcal { L } \left( m _ { \theta } ^ { a } \left( [ f ( x ^ { i } ) ] _ { i = 1 } ^ { n } \right) , y ^ { a } \right) \right]
|
| 88 |
+
$$
|
| 89 |
+
|
| 90 |
+

|
| 91 |
+
Figure 2: Training procedure for metamodels kennen-o (top) and kennen-i (bottom).
|
| 92 |
+
|
| 93 |
+
where $\mathcal { F }$ is the distribution of meta-training models, $y ^ { a }$ is the ground truth label of attribute $a$ , and $\mathcal { L }$ is the cross-entropy loss. With the learned parameter $\tilde { \theta }$ $m _ { \tilde { \theta } } ^ { a } \left( [ g ( x ^ { i } ) ] _ { i = 1 } ^ { n } \right)$ gives the prediction of attribute $a$ for the black box $g$ .
|
| 94 |
+
|
| 95 |
+
In our experiments, we model the classifier $m _ { \theta }$ via multilayer perceptron (MLP) with two hidden layers with 1000 hidden units. The last layer consists of 12 parallel linear layers for a simultaneous prediction of the attributes. In our preliminary experiments, MLP has performed better than the linear classifiers. The optimisation problem in equation 1 is solved via SGD by approximating the expectation over $f \sim \mathbb { F }$ by an empirical sum over the training split classifiers for 200 epochs.
|
| 96 |
+
|
| 97 |
+
For query inputs, we have used a random subset of $n$ images from the validation set (both for MNIST and ImageNet experiments). The performance is not sensitive to the choice of queries (see appendix $\ S C _ { \iota }$ ). Next methods $( \mathrm { k e n n e n - i } / \mathrm { i } \circ )$ describe how to actively craft query inputs, potentially outside the natural image distribution.
|
| 98 |
+
|
| 99 |
+
Note that kennen $- \bigcirc$ can be applied to any type of model (e.g. non-neural networks) with any output structure, as long as the output can be embedded in an Euclidean space. We will show that this method can effectively extract information from $f$ even if the output is a top-k ranking.
|
| 100 |
+
|
| 101 |
+
# K E N N E N-I: CRAFT INPUT
|
| 102 |
+
|
| 103 |
+
kennen $- \dot { \beth }$ crafts a single query input $\tilde { x }$ over the meta-training models that is trained to repurpose a digit classifier $f$ into a model attribute classifier for a single attribute $a$ . The crafted input drives the classifier to leak internal information via digit prediction. The learned input is submitted to the test black-box model $g$ , and the attribute is predicted by reading off its digit prediction $g ( \tilde { x } )$ . For example, kennen $- \dot { \mathtt { 1 } }$ for max-pooling layer prediction crafts an input $x$ that is predicted as “1” for generic MNIST digit classifiers with max-pooling layers and $ { { } ^ { 6 } } { 0 ^ { 9 } }$ for ones without. See figure 3 for visual examples.
|
| 104 |
+
|
| 105 |
+
We describe in detail how kennen-i learns this input. The training objective is:
|
| 106 |
+
|
| 107 |
+
$$
|
| 108 |
+
\operatorname* { m i n } _ { x : { \mathrm { i m a g e } } } \ { \underset { f \sim { \mathcal F } } { \mathbb E } } \left[ { \mathcal { L } } \left( f ( x ) , y ^ { a } \right) \right]
|
| 109 |
+
$$
|
| 110 |
+
|
| 111 |
+
where $f ( x )$ is the 10-dimensional output of the digit classifier $f$ . The condition $x :$ image ensures the input stays a valid image $x \in [ \breve { 0 } , 1 ] ^ { D }$ with image dimension $D$ . The loss $\mathcal { L }$ , together with the attribute label $y ^ { a }$ of $f$ , guides the digit prediction $f ( x )$ to reveal the attribute $a$ instead. Note that the optimisation problem is identical
|
| 112 |
+
|
| 113 |
+

|
| 114 |
+
Figure 3: Inputs designed to extract internal details from MNIST digit classifiers. E.g. feeding the middle image reveals the existence of a maxpooling layer with $9 4 . 8 \%$ chance.
|
| 115 |
+
|
| 116 |
+
to the training of digit classifiers except that the ground truth is the attribute label rather than the digit label, that the loss is averaged over the models instead of the images, and that the input $x$ instead of the model $f$ is optimised. With the learned query input $\tilde { x }$ , the attribute for the black box $g$ is predicted by $g ( \tilde { x } )$ . In particular, we do not use gradient information from $g$ .
|
| 117 |
+
|
| 118 |
+
We initialise $x$ with a random sample from the MNIST validation set (random noise or uniform gray initialisation gives similar performances), and run SGD for 200 epochs. For each iteration $x$ is truncated back to $[ \bar { 0 } , 1 ] ^ { D }$ to enforce the constraint.
|
| 119 |
+
|
| 120 |
+
While being simple and effective, kennen-i can only predict a single attribute at a time, and cannot predict attributes with more than 10 classes (for digit classifiers). kennen-io introduced below overcomes these limitations. kennen $- \dot { \beth }$ may also be unrealistic when the exploration needs to be stealthy: it submits unnatural images to the system. Also unlike kennen-o, kennen $^ { - \dot { 1 } }$ requires end-to-end differentiability of the training models $f \sim \mathcal { F }$ , although it still requires only black-box access to test models $g$ .
|
| 121 |
+
|
| 122 |
+
# K E N N E N-I O: COMBINED APPROACH
|
| 123 |
+
|
| 124 |
+
We overcome the drawbacks of kennen-i that it can only predict one attribute at a time and that the number of predictable classes by attaching an additional interpretation module on top of the output. Our final method kennen-io combines kennen-i and kennen-o approaches: both input generator and output interpreters are used. Being able to reason over multiple query outputs via MLP layers, kennen-io supports the optimisation of multiple query inputs as well.
|
| 125 |
+
|
| 126 |
+
Specifically, the kennen-io training objective is given by:
|
| 127 |
+
|
| 128 |
+
$$
|
| 129 |
+
\operatorname* { m i n } _ { [ x ^ { i } ] _ { i = 1 } ^ { n } : \mathrm { i m a g e s } } \operatorname* { m i n } _ { \theta } \underset { f \sim \mathcal { F } } { \mathbb { E } } \left[ \sum _ { a = 1 } ^ { 1 2 } \mathcal { L } \left( m _ { \theta } ^ { a } \left( [ f ( x ^ { i } ) ] _ { i = 1 } ^ { n } \right) , y ^ { a } \right) \right] .
|
| 130 |
+
$$
|
| 131 |
+
|
| 132 |
+
Note that the formulation is identical to that for kennen $- \bigcirc$ (equation 1), except that the second minimisation problem regarding the query inputs is added. With learned parameters $\tilde { \theta }$ and $[ \tilde { x } ^ { i } ] _ { i = 1 } ^ { n }$ ,
|
| 133 |
+
|
| 134 |
+
Table 2: Comparison of metamodel methods. See table 1 for the full names of attributes. 100 queries are used for every method below, except for kennen-i which uses a single query. The “Output” column shows the output representation: “prob” (vector of probabilities for each digit class), “ranking” (a sorted list of digits according to their likelihood), “top-1” (most likely digit), or “bottom-1” (least likely digit).
|
| 135 |
+
|
| 136 |
+
<table><tr><td rowspan="2">Method</td><td rowspan="2"> Output</td><td colspan="8">architecture</td><td colspan="2">optim</td><td colspan="2">data</td></tr><tr><td>act</td><td>drop</td><td>pool</td><td>ks</td><td>#conv</td><td></td><td></td><td>#fc #par ens</td><td>algbs</td><td></td><td>size split</td><td>avg</td></tr><tr><td>Chance</td><td>-</td><td>25.0</td><td>50.0</td><td>50.0</td><td>50.0</td><td>33.3</td><td>33.3</td><td>12.5 50.0</td><td></td><td>33.3 33.3</td><td></td><td>33.3 14.3</td><td>34.9</td></tr><tr><td>kennen-o</td><td>prob</td><td>80.6</td><td>94.6</td><td>94.9</td><td>84.6</td><td>67.1</td><td>77.3</td><td>41.7 54.0</td><td></td><td>71.8 50.4</td><td></td><td>73.8 90.0</td><td>73.4</td></tr><tr><td>kennen-o</td><td>ranking</td><td>63.7</td><td>93.8</td><td>90.8</td><td>80.0</td><td>63.0</td><td>73.7</td><td>44.1</td><td>62.4</td><td>65.3 47.0</td><td>66.2</td><td>86.6</td><td>69.7</td></tr><tr><td>kennen-o</td><td>bottom-1</td><td>48.6</td><td>80.0</td><td>73.6</td><td>64.0</td><td>48.9</td><td>63.1</td><td></td><td>28.7 52.8</td><td>53.6 41.9</td><td></td><td>45.9 51.4</td><td>54.4</td></tr><tr><td>kennen-o</td><td>top-1</td><td>31.2</td><td>56.9</td><td>58.8</td><td>49.9</td><td>38.9</td><td>33.7</td><td>19.6</td><td>50.0</td><td>36.1 35.3</td><td>33.3</td><td>30.7</td><td>39.5</td></tr><tr><td>kennen-i</td><td>top-1</td><td>43.5</td><td>77.0</td><td>94.8</td><td>88.5</td><td>54.5</td><td>41.0</td><td>32.3</td><td>46.5</td><td>45.7 37.0</td><td></td><td>42.6 29.3</td><td>52.7</td></tr><tr><td>kennen-io</td><td>score</td><td>88.4 95.8</td><td></td><td></td><td>99.5 97.7</td><td>80.3</td><td>80.2</td><td>45.2</td><td>60.2</td><td>79.3 54.3</td><td></td><td>84.8 95.6</td><td>80.1</td></tr></table>
|
| 137 |
+
|
| 138 |
+
the attribute $a$ for the black box $g$ is predicted by $m _ { \tilde { \theta } } ^ { a } \ : \left( [ g ( \tilde { x } ^ { i } ) ] _ { i = 1 } ^ { n } \right)$ . Again, we require end-to-end differentiability of meta-training models $f$ , but only the black-box access for the test model $g$ .
|
| 139 |
+
|
| 140 |
+
To improve stability against covariate shift, we initialise $m _ { \theta }$ with kennen-o for 200 epochs. Afterwards, gradient updates of $[ x ^ { i } ] _ { i = 1 } ^ { n }$ and $\theta$ alternate every 50 epochs, for 200 additional epochs.
|
| 141 |
+
|
| 142 |
+
# 4 REVERSE-ENGINEERING BLACK-BOX MNIST DIGIT CLASSIFIERS
|
| 143 |
+
|
| 144 |
+
We have introduced a procedure for constructing a dataset of classifiers (MNIST-NETS) as well as novel metamodels (kennen variants) that learn to extract information from black-box classifiers. In this section, we evaluate the ability of kennen to extract information from black-box MNIST digit classifiers. We measure the class-balanced attribute prediction accuracy for each attribute $a$ in the list of 12 attributes in table 1.
|
| 145 |
+
|
| 146 |
+
# ATTRIBUTE PREDICTION
|
| 147 |
+
|
| 148 |
+
See table 2 for the main results of our metamodels, kennen-o/i/io, on the Random split. Unless stated otherwise, metamodels are trained with 5, 000 training split classifiers.
|
| 149 |
+
|
| 150 |
+
Given $n = 1 0 0$ queries with probability output, kennen-o already performs far above the random chance in predicting 12 diverse attributes ( $7 3 . 4 \%$ versus $3 4 . 9 \%$ on average); neural network output indeed contains rich information about the black box. In particular, the presence of dropout $( 9 4 . 6 \% )$ or max-pooling $( 9 4 . 9 \% )$ has been predicted with high precision. As we will see in $\ S 4 . 3$ , outputs of networks trained with dropout layers form clusters, explaining the good prediction performance.
|
| 151 |
+
|
| 152 |
+
It is surprising that optimisation details like algorithm $( 7 1 . 8 \% )$ and batch size $( 5 0 . 4 \% )$ can also be predicted well above the random chance $3 3 . 3 \%$ for both). We observe that the training data attributes are also predicted with high accuracy $( 7 1 . 8 \%$ and $9 0 . 0 \%$ for size and split).
|
| 153 |
+
|
| 154 |
+
# COMPARING METHODS K E N N E N-O/I/I O
|
| 155 |
+
|
| 156 |
+
Table 2 shows the comparison of kennen-o/i/io. kennen $- \dot { \mathtt { 1 } }$ has a relatively low performance (average $5 2 . 7 \% )$ ), but kennen-i relies on a cheap resource: 1 query with single-label output. kennen-i is also performant at predicting the kernel size $( 8 8 . 5 \% )$ and pooling $( 9 4 . 8 \% )$ , attributes that are closely linked to spatial structure of the input. We conjecture kennen-i is relatively effective for such attributes. kennen-io is superior to kennen $- \phantom { } _ { \mathsf { O } } / \mathrm { i }$ for all the attributes with average accuracy $8 0 . 1 \%$ .
|
| 157 |
+
|
| 158 |
+
# 4.1 FACTOR ANALYSIS
|
| 159 |
+
|
| 160 |
+
We examine potential factors that contribute to the successful prediction of black box internal attributes. We measure the prediction accuracy of our metamodels as we vary (1) the number of meta-training models, (2) the number of queries, and (3) the quality of query output.
|
| 161 |
+
|
| 162 |
+

|
| 163 |
+
Figure 4: kennen $- \bigcirc$ performance of against the size of meta-training set (left), number of queries (middle), and quality of queries (right). Unless stated otherwise, we use 100 probability outputs and 5k models to train kennen-o. Each curve is linearly scaled such that random chance (0 training data, 0 query, or top-0) performs $0 \%$ , and the perfect predictor performs $100 \%$ .
|
| 164 |
+
|
| 165 |
+
# NUMBER OF TRAINING MODELS
|
| 166 |
+
|
| 167 |
+
We have trained kennen $- \bigcirc$ with different number of the meta-training classifiers, ranging from 100 to 5, 000. See figure 4 (left) for the trend. We observe a diminishing return, but also that the performance has not saturated – collecting larger meta-training set will improve the performance.
|
| 168 |
+
|
| 169 |
+
# NUMBER OF QUERIES
|
| 170 |
+
|
| 171 |
+
See figure 4 (middle) for the kennen-o performance against the number of queries with probability output. The average performance saturates after $\sim 5 0 0$ queries. On the other hand, with only $\sim 1 0 0$ queries, we already retrieve ample information about the neural network.
|
| 172 |
+
|
| 173 |
+
# QUALITY OF OUTPUT
|
| 174 |
+
|
| 175 |
+
Many black-box models return top- $\mathbf { \nabla } \cdot \mathbf { k }$ ranking (e.g. Facebook face recogniser), or single-label output. We represent top- $\mathbf { \nabla } \cdot \mathbf { k }$ ranking outputs by assigning exponentially decaying probabilities up to $k$ digits and a small probability $\epsilon$ to the remaining.
|
| 176 |
+
|
| 177 |
+
See table 2 for the kennen $- \bigcirc$ performance comparison among 100 probability, top-10 ranking, bottom-1, and top-1 outputs, with average accuracies $7 3 . 4 \%$ , $6 9 . 7 \%$ , $5 4 . 4 \%$ , and $3 9 . 5 \%$ , respectively. While performance drops with coarser outputs, when compared to random chance $( 3 4 . 9 \% )$ , 100 single-label bottom-1 outputs already leak a great amount of information about the black box $( 5 4 . 4 \% )$ . It is also notable that bottom-1 outputs contain much more information than do the top1 outputs; note that for high-performance classifiers top-1 predictions are rather uniform across models and thus have much less freedom to leak auxiliary information. Figure 4 (right) shows the interpolation from top-1 to top-10 (i.e. top-9) ranking. We observe from the jump at $k = 2$ that the second likely predictions (top-2) contain far more information than the most likely ones (top-1). For $k \geq 3$ , each additional output label exhibits a diminishing return.
|
| 178 |
+
|
| 179 |
+
# 4.2 WHAT IF THE BLACK-BOX IS QUITE DIFFERENT FROM META-TRAINING MODELS?
|
| 180 |
+
|
| 181 |
+
So far we have seen results on the Random (R) split. In realistic scenarios, the meta-training model distribution may not be fully covering possible black box models. We show how damaging such a scenario is through Extrapolation (E) split experiments.
|
| 182 |
+
|
| 183 |
+
# EVALUATION
|
| 184 |
+
|
| 185 |
+
E-splits split the training and testing models based on one or more attributes (§3.1). For example, we may assign shallower models (#layers $\leq 1 0$ ) to the training split and deeper ones (#layers $\it { i } ^ { \scriptsize { 1 0 } \mathrm { ) } }$ to the testing split. In this example, we refer to #layers as the splitting attribute. Since for an E-split, some classes of the splitting attributes have zero training examples, we only evaluate the prediction accuracies over the non-splitting attributes. When the set of splitting attributes is $\tilde { A }$ , a subset of the entire attribute set $A$ , we define $E$ -split accuracy or $\operatorname { E . A c c } ( { \tilde { A } } )$ to be the mean prediction accuracy over the non-splitting attributes $A \setminus { \tilde { A } }$ . For easier comparison, we report the normalised accuracy (N.Acc) that shows the how much percentage of the R-split accuracy is achieved in the E-split setup on the non-splitting attributes $A \setminus { \tilde { A } }$ . Specifically:
|
| 186 |
+
|
| 187 |
+
$$
|
| 188 |
+
\mathrm { N . A c c } ( \tilde { A } ) = \frac { \mathrm { E . A c c } ( \tilde { A } ) - \mathrm { C h a n c e } ( \tilde { A } ) } { \mathrm { R . A c c } ( \tilde { A } ) - \mathrm { C h a n c e } ( \tilde { A } ) } \times 1 0 0 \%
|
| 189 |
+
$$
|
| 190 |
+
|
| 191 |
+
where ${ \mathrm { R . A c c } } ( { \tilde { A } } )$ and Chance $( { \tilde { A } } )$ are the means of the R-split and Chance-level accuracies over $A \setminus { \tilde { A } }$ . Note that N.Acc is $100 \%$ if the E-split performance is at the level of R-split and $0 \%$ if it is at chance level.
|
| 192 |
+
|
| 193 |
+
# RESULTS
|
| 194 |
+
|
| 195 |
+
The normalised accuracies for R-split and multiple E-splits are presented in table 3. We consider three axes of choices of splitting attributes for the E-split: architecture (#conv and #fc), optimisation (alg and bs), and data (size). For example, “E-#conv-#fc” row presents results when metamodel is trained on shallower nets (2 or 3 conv/fc layers each) compared to the test black box model (4 conv and fc layers each).
|
| 196 |
+
|
| 197 |
+
Not surprisingly, E-split performances are lower than R-split ones $( \mathrm { N . A c c } < 1 0 0 \% )$ ; it is advisable to cover all the expected black-box attributes during meta-training. Nonetheless, E-split performances of kennen-io are still far above the chance level $( \mathrm { N . A c c } \ge 7 0 \% \gg$ $0 \%$ ); failing to cover a few attributes during meta-training is not too damaging.
|
| 198 |
+
|
| 199 |
+
Table 3: Normalised accuracies (see text) of kennen-o and kennen-io on R and E splits. We denote E-split with splitting attributes attr1 and attr2 as “E-attr1-attr2”. Splitting criteria are also shown. When there are two splitting attributes, the first attribute inherits the previous row criteria.
|
| 200 |
+
|
| 201 |
+
<table><tr><td rowspan=2 colspan=9>kennen-Split Train Test 。 ioR = 100 100</td></tr><tr><td rowspan=1 colspan=1>100</td><td rowspan=1 colspan=1>100</td></tr><tr><td rowspan=1 colspan=1>E-#conv</td><td></td><td rowspan=1 colspan=1>2.3</td><td></td><td rowspan=1 colspan=1>4</td><td></td><td rowspan=1 colspan=1>87.5</td><td></td><td rowspan=1 colspan=1>92.0</td></tr><tr><td rowspan=1 colspan=1>E-#conv-#fc</td><td></td><td rowspan=1 colspan=1>2.3</td><td></td><td rowspan=1 colspan=1>4</td><td></td><td rowspan=1 colspan=1>77.1</td><td></td><td rowspan=1 colspan=1>80.7</td></tr><tr><td rowspan=1 colspan=1>E-alg</td><td></td><td rowspan=1 colspan=1>SGD,ADAM</td><td></td><td rowspan=1 colspan=1>RMSprop</td><td></td><td rowspan=1 colspan=1>83.0</td><td></td><td rowspan=1 colspan=1>88.5</td></tr><tr><td rowspan=1 colspan=1>E-alg-bs</td><td></td><td rowspan=1 colspan=1>64,128</td><td></td><td rowspan=1 colspan=1>256</td><td></td><td rowspan=1 colspan=1>64.2</td><td></td><td rowspan=1 colspan=1>70.0</td></tr><tr><td rowspan=1 colspan=1>E-split</td><td></td><td rowspan=1 colspan=1>Quartero/1</td><td></td><td rowspan=1 colspan=1>Quarter2/3</td><td></td><td rowspan=1 colspan=1>83.5</td><td></td><td rowspan=1 colspan=1>89.3</td></tr><tr><td rowspan=1 colspan=1>E-size</td><td></td><td rowspan=1 colspan=1>Quarter</td><td></td><td rowspan=1 colspan=1>Half,All</td><td></td><td rowspan=1 colspan=1>81.7</td><td></td><td rowspan=1 colspan=1>86.8</td></tr><tr><td rowspan=1 colspan=1>Chance</td><td></td><td rowspan=1 colspan=1></td><td></td><td rowspan=1 colspan=1></td><td></td><td rowspan=1 colspan=1>0.0</td><td></td><td rowspan=1 colspan=1>0.0</td></tr></table>
|
| 202 |
+
|
| 203 |
+
Comparing kennen-o and kennen-io for their generalisability, we observe that kennen-io consistently outperforms kennen-o under severe extrapolation (around $5 ~ { \mathsf { p p } }$ better N.Acc). It is left as a future work to investigate the intriguing fact that utilising out-of-domain query inputs improves the generalisation of metamodel.
|
| 204 |
+
|
| 205 |
+
# 4.3 WHY AND HOW DOES METAMODEL WORK?
|
| 206 |
+
|
| 207 |
+
It is surprising that metamodels can extract inner details with great precision and generalisability. This section provides a glimpse of why and how this is possible via metamodel input and output analyses. Full answers to those questions is beyond the scope of the paper.
|
| 208 |
+
|
| 209 |
+
# METAMODEL INPUT (T-SNE)
|
| 210 |
+
|
| 211 |
+
We analyse the inputs to our metamodels (i.e. query outputs from black-box models) to convince ourselves that the inputs do contain discriminative features for model attributes. As the input is high dimensional (1000 when the number of queries is $n = 1 0 0 ,$ ), we use the t-SNE (van der Maaten & Hinton, Nov 2008) visualisation method. Roughly speaking, t-SNE embeds high dimensional data points onto the 2-dimensional plane such that the pairwise distances are best respected. We then colour-code the embedded data points according to the model attributes. Clusters of same-coloured points indicate highly discriminative features.
|
| 212 |
+
|
| 213 |
+
The visualisation of input data points are shown in Appendix figures 9 and 10 for kennen-o and kennen-io, respectively. For experimental details, see Appendix $\ S _ { \mathrm { D } }$ . In the case of kennen-o, we observe that some attributes form clear clusters in the input space – e.g. Tanh in act, binary dropout attribute, and RMSprop in alg. For the other attributes, however, it seems that the clusters are too complicated to be represented in a 2-dimensional space. For kennen-io (figure 10), we observe improved clusters for pool and ks. By submitting crafted query inputs, kennen-io induces query outputs to be better clustered, increasing the chance of successful prediction.
|
| 214 |
+
|
| 215 |
+
METAMODEL OUTPUT (CONFUSION MATRIX)
|
| 216 |
+
|
| 217 |
+
We show confusion matrices of kennen-o/io to analyse the failure modes. See Appendix figures 11 and 12. For kennen-o and kennen-io alike, we observe that the confusion occurs more frequently with similar classes. For attributes #conv and #fc, more confusion occurs between $( 2 , 3 )$ or $( 3 , 4 )$ than between $( 2 , 4 )$ . A similar trend is observed for #par and bs. This is a strong indication that (1) there exists semantic attribute information in the neural network outputs (e.g. number of layers, parameters, or size of training batch) and (2) the metamodels learn semantic information that can generalise, as opposed to merely relying on artifacts. This observation agrees with a conclusion of the extrapolation experiments in $\ S 4 . 2$ : the metamodels generalise.
|
| 218 |
+
|
| 219 |
+
Compared to those of kennen $- \bigcirc$ , kennen $- \dot { \beth } \bigcirc$ confusion matrices exhibit greater concentration of masses both on the correct class (diagonals) and among similar attribute classes (1-off diagonals for #conv, #fc, #par, bs, and size). The former re-confirms the greater accuracy, while the latter indicates the improved ability to extract more semantic and generalisable features from the query outputs. This, again, agrees with $\ S 4 . 2$ : kennen-io generalises better than kennen $- \bigcirc$ .
|
| 220 |
+
|
| 221 |
+
# 4.4 DISCUSSION
|
| 222 |
+
|
| 223 |
+
We have verified through our novel kennen metamodels that black-box access to a neural network exposes much internal information. We have shown that only 100 single-label outputs already reveals a great deal about a black box. When the black-box classifier is quite different from the metatraining classifiers, the performance of our best metamodel – kennen-io– decreases; however, the prediction accuracy for black box internal information is still surprisingly high.
|
| 224 |
+
|
| 225 |
+
# 5 REVERSE-ENGINEERING AND ATTACKING IMAGENET CLASSIFIERS
|
| 226 |
+
|
| 227 |
+
While MNIST experiments are computationally cheap and a massive number of controlled experiments is possible, we provide additional ImageNet experiments for practical implications on realistic image classifiers. In this section, we use kennen $- \circ$ introduced in $\ S 3$ to predict a single attribute of black-box ImageNet classifiers – the architecture family (e.g. ResNet or VGG?). In this section, we go a step further to use the extracted information to attack black boxes with adversarial examples.
|
| 228 |
+
|
| 229 |
+
# 5.1 DATASET OF IMAGENET CLASSIFIERS
|
| 230 |
+
|
| 231 |
+
It is computationally prohibitive to train $O ( 1 0 k )$ ImageNet classifiers from scratch as in the previous section. We have resorted to 19 PyTorch3 pretrained ImageNet classifiers. The 19 classifiers come from five families: Squeezenet, VGG, VGG-BatchNorm, ResNet, and DenseNet, each with 2, 4, 4, 5, and 4 variants, respectively (Iandola et al., 2016; Simonyan & Zisserman, 2015; Ioffe & Szegedy, 2015; He et al., 2016; Huang et al., 2017). See Appendix table 7 for the the summary of the 19 classifiers. We observe both large intra-family diversity and small inter-family separability in terms of #layers, #parameters, and performances. The family prediction task is not as trivial as e.g. simply inferring the performance.
|
| 232 |
+
|
| 233 |
+
# 5.2 CLASSIFIER FAMILY PREDICTION
|
| 234 |
+
|
| 235 |
+
We predict the classifier family (S, V, B, R, D) from the black-box query output, using the method kennen-o, with the same MLP architecture (§3). kennen-i and kennen-io have not been used for computational reasons, but can also be used in principle. We conduct 10 cross validations (random sampling of single test network from each family) for evaluation. We also perform 10 random sampling of the queries from ImageNet validation set. In total 100 random tries are averaged.
|
| 236 |
+
|
| 237 |
+
Results: compared to the random chance $( 2 0 . 0 \% )$ , 100 queries result in high kennen $- \bigcirc$ performance $( 9 0 . 4 \% )$ . With 1, 000 queries, the prediction performance is even $9 4 . 8 \%$ .
|
| 238 |
+
|
| 239 |
+
# 5.3 ATTACKING IMAGENET CLASSIFIERS
|
| 240 |
+
|
| 241 |
+
In this section we attack ImageNet classifiers with adversarial image perturbations (AIPs). We show that the knowledge about the black box architecture family makes the attack more effective.
|
| 242 |
+
|
| 243 |
+
# ADVERSARIAL IMAGE PERTURBATION (AIP)
|
| 244 |
+
|
| 245 |
+
AIPs are carefully crafted additive perturbations on the input image for the purpose of misleading the target model to predict wrong labels (Goodfellow et al., 2015). Among variants of AIPs, we use efficient and robust GAMAN (Oh et al., 2017). See appendix figure 7 for examples of AIPs; the perturbation is nearly invisible.
|
| 246 |
+
|
| 247 |
+
# TRANSFERABILITY OF AIPS
|
| 248 |
+
|
| 249 |
+
Typical AIP algorithms require gradients from the target network, which is not available for a black box. Mainly three approaches for generating AIPs against black boxes have been proposed: (1) numerical gradient, (2) avatar network, or (3) transferability. We show that our metamodel strengthens the transferability based attack.
|
| 250 |
+
|
| 251 |
+
Table 4: Transferability of adversarial examples within and across families. We report misclassification rates.
|
| 252 |
+
|
| 253 |
+
<table><tr><td rowspan=2 colspan=7>Target familyGen S V B R DClean 3832283029</td></tr><tr><td rowspan=1 colspan=1>38</td><td rowspan=1 colspan=1>32</td><td rowspan=1 colspan=1>28</td><td rowspan=1 colspan=1>30</td><td rowspan=1 colspan=1>29</td></tr><tr><td rowspan=1 colspan=1>S</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>49</td><td rowspan=1 colspan=1>45</td><td rowspan=1 colspan=1>39</td><td rowspan=1 colspan=1>35</td></tr><tr><td rowspan=1 colspan=1>V</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>62</td><td rowspan=1 colspan=1>96</td><td rowspan=1 colspan=1>9</td><td rowspan=1 colspan=1>57</td><td rowspan=1 colspan=1>52</td></tr><tr><td rowspan=1 colspan=1>B</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>50</td><td rowspan=1 colspan=1>85</td><td rowspan=1 colspan=1>95</td><td rowspan=1 colspan=1>47</td><td rowspan=1 colspan=1>44</td></tr><tr><td rowspan=1 colspan=1>R</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>72</td><td rowspan=1 colspan=1>78</td><td rowspan=1 colspan=1>87</td><td rowspan=1 colspan=1>77</td></tr><tr><td rowspan=1 colspan=1>D</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>58</td><td rowspan=1 colspan=1>63</td><td rowspan=1 colspan=1>70</td><td rowspan=1 colspan=1>76</td><td rowspan=1 colspan=1>90</td></tr><tr><td rowspan=1 colspan=1>Ens</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>70</td><td rowspan=1 colspan=1>93</td><td rowspan=1 colspan=1>93</td><td rowspan=1 colspan=1>75</td><td rowspan=1 colspan=1>80</td></tr></table>
|
| 254 |
+
|
| 255 |
+
We hypothesize and empirically show that AIPs transfer better within the architecture family than across. Using this property, we first predict the family of the black box (e.g. ResNet), and then generate AIPs against a few instances in the family (e.g. ResNet101, ResNet152). The generation of AIPs against multiple targets has been proposed by Liu et al. (2017), but we are the first to systemically show that AIPs generalise better within a family when they are generated against multiple instances from the same family.
|
| 256 |
+
|
| 257 |
+
We first verify our hypothesis that AIPs transfer better within a family. Within-family: we do a leave-one-out cross validation – generate AIPs using all but one instances of the family and test on the holdout. Not using the exact test black box, this gives a lower bound on the within-family performance. Across-family: still leave out one random instance from the generating family to match the generating set size with the within-family cases. We also include the use-all case (Ens): generate AIPs with one network from each family.
|
| 258 |
+
|
| 259 |
+
See table 4 for the results. We report the misclassification rate, defined as 100−top-1 accuracy, on 100 random ImageNet validation images. We observe that the within-family performances dominate the across-family ones (diagonal entries versus the others in each row); if the target black box family is identified, one can generate more effective AIPs. Finally, trying to target all network (“Ens”) is not as effective as focusing resources (diagonal entries).
|
| 260 |
+
|
| 261 |
+
# METAMODEL ENABLES MORE EFFECTIVE ATTACKS
|
| 262 |
+
|
| 263 |
+
We empirically show that the reverse-engineering enables more effective attacks. We consider multiple scenarios. “White box” means the target model is fully known, and the AIP is generated specifically for this model. “Black box” means the exact target is unknown, but we make a distinction when the family is known (“Family black box”).
|
| 264 |
+
|
| 265 |
+
See table 5 for the misclassification rates (MC) in different scenarios. When the target is fully specified (white box), MC is $100 \%$ . When neither the exact target nor the family is known, AIPs are generated against multiple families $( 8 2 . 2 \% )$ . When the reverse-engineering takes place, and AIPs are generated over the predicted family, attacks become more effective $( 8 5 . 7 \% )$ . We almost reach the family-oracle case $( 8 6 . 2 \% )$ .
|
| 266 |
+
|
| 267 |
+
Table 5: Black-box ImageNet classifier misclassification rates (MC) for different approaches.
|
| 268 |
+
|
| 269 |
+
<table><tr><td>Scenario</td><td>Generating nets</td><td>MC(%)</td></tr><tr><td>White box</td><td>Single white box</td><td>100.0</td></tr><tr><td>Family black box</td><td>GT family</td><td>86.2</td></tr><tr><td>Black box whitened</td><td>Predicted family</td><td>85.7</td></tr><tr><td>Black box</td><td>Multiple families</td><td>82.2</td></tr></table>
|
| 270 |
+
|
| 271 |
+
# 5.4 DISCUSSION
|
| 272 |
+
|
| 273 |
+
Our metamodel can predict architecture families for ImageNet classifiers with high accuracy. We additionally show that this reverse-engineering enables more focused attack on black-boxes.
|
| 274 |
+
|
| 275 |
+
# 6 CONCLUSION
|
| 276 |
+
|
| 277 |
+
We have presented first results on the inference of diverse neural network attributes from a sequence of input-output queries. Our novel metamodel methods, kennen, can successfully predict attributes related not only to the architecture but also to training hyperparameters (optimisation algorithm and dataset) even in difficult scenarios (e.g. single-label output, or a distribution gap between the metatraining models and the target black box). We have additionally shown in ImageNet experiments that reverse-engineering a black box makes it more vulnerable to adversarial examples.
|
| 278 |
+
|
| 279 |
+
# ACKNOWLEDGMENTS
|
| 280 |
+
|
| 281 |
+
This research was supported by the German Research Foundation (DFG CRC 1223). We thank Seong Ah Choi for her help with the method names, graphics, and colour palettes.
|
| 282 |
+
|
| 283 |
+
# REFERENCES
|
| 284 |
+
|
| 285 |
+
Giuseppe Ateniese, Giovanni Felici, Liugi V. Mancini, Angelo Spognardi, Antonio Villani, and Domenico Vitali. Hacking smart machines with smarter ones: How to extract meaningful data from machine learning classifiers. In IJSN, 2015.
|
| 286 |
+
|
| 287 |
+
Pin-Yu Chen, Huan Zhang, Yash Sharma, Jinfeng Yi, and Cho-Jui Hsieh. Zoo: Zeroth order optimization based black-box attacks to deep neural networks without training substitute models. In ACMCCS-W, 2017.
|
| 288 |
+
|
| 289 |
+
Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In ICLR, 2015.
|
| 290 |
+
|
| 291 |
+
Jamie Hayes and George Danezis. Machine learning as an adversarial service: Learning black-box adversarial examples. 2017.
|
| 292 |
+
|
| 293 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016.
|
| 294 |
+
|
| 295 |
+
Gao Huang, Zhuang Liu, Laurens van der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2017.
|
| 296 |
+
|
| 297 |
+
Forrest N. Iandola, Song Han, Matthew W. Moskewicz, Khalid Ashraf, William J. Dally, and Kurt Keutzer. Squeezenet: Alexnet-level accuracy with $5 0 \mathrm { x }$ fewer parameters and ${ < } 0 . 5 \mathrm { m b }$ model size. arXiv, 2016.
|
| 298 |
+
|
| 299 |
+
Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, 2015.
|
| 300 |
+
|
| 301 |
+
Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to ´ document recognition. Proceedings of the IEEE, 1998.
|
| 302 |
+
|
| 303 |
+
Yanpei Liu, Xinyun Chen, Chang Liu, and Dawn Song. Delving into transferable adversarial examples and black-box attacks. In ICLR, 2017.
|
| 304 |
+
|
| 305 |
+
Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, Omar Fawzi, and Pascal Frossard. Universal adversarial perturbations. In CVPR, 2017.
|
| 306 |
+
|
| 307 |
+
Nina Narodytska and Shiva Prasad Kasiviswanathan. Simple black-box adversarial perturbations for deep networks. In CVPRW, 2017.
|
| 308 |
+
|
| 309 |
+
S. J. Oh, Mario Fritz, and Bernt Schiele. Adversarial image perturbation for privacy protection a game theory perspective. In ICCV, 2017.
|
| 310 |
+
|
| 311 |
+
Nicolas Papernot, Patrick McDaniel, and Ian Goodfellow. Transferability in machine learning: from phenomena to black-box attacks using adversarial samples. arXiv, 2016a.
|
| 312 |
+
|
| 313 |
+
Nicolas Papernot, Patrick McDaniel, Ian Goodfellow, Somesh Jha, Z. Berkay Celik, and Anathram Swami. Practical black-box attacks against deep learning systems using adversarial examples. 2016b.
|
| 314 |
+
|
| 315 |
+
Nicolas Papernot, Patrick McDaniel, Ian Goodfellow, Somesh Jha, Z Berkay Celik, and Ananthram Swami. Practical black-box attacks against deep learning systems using adversarial examples. In ASIACCS, 2017.
|
| 316 |
+
|
| 317 |
+
Reza Shokri, Marco Stronati, Congzheng Song, and Vitaly Shmatikov. Membership inference attacks against machine learning models. In SP, 2017.
|
| 318 |
+
|
| 319 |
+
K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015.
|
| 320 |
+
|
| 321 |
+
Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In ICLR, 2014.
|
| 322 |
+
|
| 323 |
+
Florian Tramer, Fan Zhang, Ari Juels, Michael K. Reiter, and Thomas Ristenpart. Stealing machine learning models via prediction apis. In USENIX, 2016.
|
| 324 |
+
|
| 325 |
+
L.J.P van der Maaten and G.E. Hinton. Visualizing high-dimensional data using t-sne. Journal of Machine Learning Research, 9: 25792605, Nov 2008.
|
| 326 |
+
|
| 327 |
+
APPENDIX
|
| 328 |
+
|
| 329 |
+
A MNIST-NETS STATISTICS
|
| 330 |
+
|
| 331 |
+
We show the statistics of MNIST-NETS, our dataset of MNIST classifiers, in table 6.
|
| 332 |
+
|
| 333 |
+
B MORE K E N N E N-I O RESULTS
|
| 334 |
+
|
| 335 |
+
We complement the kennen-o results in the main paper (figure 4) with kennen-io results. See figure 5. Similarly for kennen-o, kennen-io shows a diminishing return as the number of training models and the number of queries increase. While the performance saturates with $1 , 0 0 0$ queries, it does not fully saturate with 5, 000 training samples.
|
| 336 |
+
|
| 337 |
+
# C ON FINDING THE OPTIMAL SET OF QUERIES
|
| 338 |
+
|
| 339 |
+
kennen-o selects a random set of queries from MNIST validation set (§3.2). We measure the sensitivity of kennen-o performance with respect to the choice of queries, and discuss the possibility to optimise the set of queries.
|
| 340 |
+
|
| 341 |
+
With 1, 10, or 100 queries, we have trained kennen-o with 100 independent samples of query sets. The mean and standard deviations are shown in figure 6. The sensitivity is greater for smaller number of queries, but still minute ${ \mathrm { ( 1 . 2 p p } }$ standard deviation).
|
| 342 |
+
|
| 343 |
+
Instead of solving the combinatorial problem of finding the optimal set of query inputs from a dataset, we have proposed kennen-io that efficiently solves a continuous optimisation problem to find a set of query inputs from the entire input space. We have compared kennen-io against kennen-o with multiple query samples in figure 6. We observe that kennen-io is better than kennen-o with all 100 query set samples at each level.
|
| 344 |
+
|
| 345 |
+
We remark that there exists a trade-off between detectability and effectiveness of exploration. While kennen-io extracts information from target model more effectively, it increases the detectability of attack by submitting out-of-domain inputs. If it is possible to optimise or sample the set of natural queries from a dataset or distribution of natural inputs, it will be a strong attack; developing such a method would be an interesting future work.
|
| 346 |
+
|
| 347 |
+
# D T-SNE VISUALISATION OF METAMODEL INPUTS
|
| 348 |
+
|
| 349 |
+
We describe the detailed procedure for the metamodel input visualisation experiment (discussed in $\ S 4 . 3 )$ . First, 1000 test-split (Random split) black-box models are collected. For each model, 100 query images are passed (sampled at random from MNIST validation set), resulting in $1 0 0 \times 1 0$ dimensional input data points. We have used t-SNE(van der Maaten & Hinton, Nov 2008) to embed the data points onto the 2-dimensional plane. Each data point is coloured according to each attribute class. The results for kennen-o and kennen-io are shown in figures 9 and 10. Since t-SNE is sensitive to initialisation, we have run the embedding ten times with different random initialisations; the qualitative observations are largely identical.
|
| 350 |
+
|
| 351 |
+
# E VISUAL EXAMPLES OF AIPS
|
| 352 |
+
|
| 353 |
+
In this section, we show examples of AIPs. See figure 7 for the examples of AIPs and the perturbed images. The perturbation is nearly invisible to human eyes. We have also generated AIPs with respect to a diverse set of architecture families (S, V, B, R, D, SVBRD) at multiple $L _ { 2 }$ norm levels. See figure 8; the same image results in a diverse set of patterns depending on the architecture family.
|
| 354 |
+
|
| 355 |
+
Table 6: Distribution of attributes in MNIST-NETS, and attribute-wise classification performance (on MNIST validation set). Observe that the attributes are evenly distributed and the corresponding classification accuracies also do not correlate much with the attributes. We thus make sure that the classification accuracy alone cannot be a strong cue for predicting attributes.
|
| 356 |
+
|
| 357 |
+
<table><tr><td rowspan="2"></td><td colspan="4">arch/act</td><td colspan="2">arch/drop</td><td colspan="2">arch/pool</td><td colspan="2">arch/ks</td><td colspan="3">arch/#conv</td><td colspan="3">arch/#fc</td></tr><tr><td>Tanh PReLU</td><td></td><td>ReLU</td><td>ELU</td><td>YesNo</td><td></td><td>YesNo</td><td></td><td>5</td><td>3</td><td>2</td><td>3</td><td>4</td><td>2</td><td>3</td><td>4</td></tr><tr><td>Ratio</td><td>24.8</td><td>24.9</td><td>25.3</td><td>25.1</td><td>49.8 50.3</td><td></td><td>49.9 50.2</td><td></td><td>50.3 49.7</td><td></td><td></td><td></td><td>34.0 33.4 32.7</td><td></td><td>33.1 33.5 33.4</td><td></td></tr><tr><td>max</td><td>99.4</td><td>99.4</td><td>99.5</td><td>99.4</td><td>99.5 99.4</td><td></td><td>99.4 99.5</td><td></td><td>99.5 99.4</td><td></td><td>99.4 99.4 99.5</td><td></td><td></td><td></td><td>99.4 99.4 99.5</td><td></td></tr><tr><td>median</td><td>98.6</td><td>98.7</td><td>98.7</td><td>98.7</td><td>98.7 98.6</td><td></td><td>98.7 98.5</td><td></td><td>98.7 98.6</td><td></td><td>98.6 98.7 98.7</td><td></td><td></td><td></td><td>98.7 98.6 98.6</td><td></td></tr><tr><td>mean</td><td>98.6</td><td>98.7</td><td>98.7</td><td>98.7</td><td>98.7 98.6</td><td></td><td>98.7 98.6</td><td></td><td>98.7 98.6</td><td></td><td>98.6 98.7 98.7</td><td></td><td></td><td></td><td>98.7 98.6 98.6</td><td></td></tr><tr><td>min</td><td>98.0</td><td>98.0</td><td>98.0</td><td>98.0</td><td>98.0 98.0</td><td></td><td>98.0 98.0</td><td></td><td>98.0 98.0</td><td></td><td>98.098.0 98.0</td><td></td><td></td><td></td><td>98.0 98.0 98.0</td><td></td></tr><tr><td colspan="3" rowspan="8"></td><td rowspan="8"></td><td colspan="3">opt/alg</td><td colspan="3"></td><td colspan="2"></td><td colspan="3"></td><td colspan="3"></td></tr><tr><td colspan="3"></td><td colspan="3">ADAM SGD</td><td colspan="3">opt/bs 64 128 256</td><td colspan="3">data/size all half</td><td colspan="3"></td></tr><tr><td colspan="3"></td><td colspan="3">RMSprop</td><td colspan="3"></td><td colspan="3"></td><td colspan="3">quarter</td></tr><tr><td colspan="3">Ratio</td><td colspan="3">33.8 32.5</td><td colspan="3">33.7 32.9 33.6</td><td colspan="3">533.7 14.8 28.5</td><td colspan="3">56.8</td></tr><tr><td colspan="3">max</td><td colspan="3">99.2 99.4</td><td colspan="3">99.5 99.399.4 99.5</td><td colspan="3">99.5 99.3</td><td colspan="3">99.1</td></tr><tr><td colspan="3">median</td><td colspan="3">98.6 98.7</td><td colspan="3">98.7 98.6 98.7</td><td colspan="3">98.7 99.0 98.8</td><td colspan="3">98.5</td></tr><tr><td colspan="3">mean</td><td colspan="3">98.6 98.7 98.0</td><td colspan="3">98.6 98.7 98.6</td><td colspan="3">98.9 98.8</td><td colspan="3">98.5</td></tr><tr><td colspan="3">min</td><td colspan="3">98.0</td><td colspan="3">98.7 98.0</td><td colspan="2">98.0 98.0 98.0</td><td colspan="3">98.098.0 98.0</td><td colspan="3"></td></tr></table>
|
| 358 |
+
|
| 359 |
+

|
| 360 |
+
Figure 5: Performance of kennen $- \dot { \textrm { \scriptsize 1 0 } }$ with different number of queries (Left) and size of training set (Right). The curves are linearly scaled per attribute such that random chance performs $0 \%$ , and perfect predictor performs $100 \%$ .
|
| 361 |
+
|
| 362 |
+

|
| 363 |
+
Figure 6: kennen $- \mathrm { { O } / \ i \mathrm { { O } } }$ performance at different number of queries. kennen $- \bigcirc$ is shown with 100 independent query samples per level (black dots) – the dots are spread horizontally for visualisation purpose. Their mean (curve) and $\pm 2$ standard deviations (error bars) are also shown.
|
| 364 |
+
|
| 365 |
+
Table 7: Details of ImageNet classifiers. We describe each family Squeezenet, VGG, VGGBatchNorm, ResNet, and DenseNet verbally, and show key model statistics for each member in the family. We observe intra-family diversity (e.g. R) and inter-family similarity (e.g. between V and B) in terms of the top-5 validation error and the number of trainable parameters.
|
| 366 |
+
|
| 367 |
+
<table><tr><td></td><td colspan="2">S (2016)</td><td colspan="4">V (2014)</td><td colspan="4">B (2015)</td><td colspan="4">R (2015)</td><td colspan="4">D (2016)</td></tr><tr><td>Description</td><td colspan="2">Lightweight convnet</td><td colspan="4">Conv layers followed by fc layers</td><td colspan="4">VGG with batch normalisation</td><td colspan="4">Very deep convnet with residual connections</td><td colspan="4">ResNet with dense residual connections</td></tr><tr><td>Members</td><td>v1.0</td><td>v1.1</td><td>11</td><td>13</td><td>16</td><td>19</td><td>11</td><td>13</td><td>16 19</td><td>18</td><td>34</td><td>50</td><td>101</td><td>152</td><td>121</td><td>161</td><td>169</td><td>201</td></tr><tr><td>#layers</td><td>26</td><td>26</td><td>11</td><td>13</td><td>16</td><td>19</td><td>11</td><td>13</td><td>19</td><td>21</td><td>37</td><td>54</td><td>105</td><td>156</td><td>121</td><td>161</td><td>169</td><td>201</td></tr><tr><td>log10 #params</td><td>6.1</td><td>6.1</td><td>8.1</td><td>8.1</td><td>8.1</td><td>8.2</td><td>8.1 8.1</td><td>16 8.1</td><td>8.2</td><td>7.1</td><td>7.3</td><td>7.4</td><td>7.6</td><td>7.8</td><td>6.9</td><td>7.3</td><td>7.5</td><td>7.2</td></tr><tr><td>Top-1 error</td><td>41.9</td><td>41.8</td><td>31.0</td><td>30.1</td><td>28.4</td><td>27.6</td><td>29.6 28.5</td><td>26.6</td><td>25.8</td><td>30.2</td><td>26.7</td><td>23.9</td><td>22.6</td><td>21.7</td><td>25.4</td><td>24.0</td><td>22.8</td><td>22.4</td></tr><tr><td>Top-5 error</td><td>19.6</td><td>19.4</td><td>11.4</td><td>10.8</td><td>9.6</td><td>9.1</td><td>10.2</td><td>9.6 8.5</td><td>8.2</td><td>10.9</td><td>8.6</td><td>7.1</td><td>6.4</td><td>5.9</td><td>7.8</td><td>6.2</td><td>7.0</td><td>6.4</td></tr></table>
|
| 368 |
+
|
| 369 |
+

|
| 370 |
+
Figure 7: AIP for an ImageNet classifier. The perturbations are generated at $L _ { 2 } = 1 \times 1 0 ^ { - 4 }$ .
|
| 371 |
+
|
| 372 |
+

|
| 373 |
+
Figure 8: Adversarial perturbations for the same input image (top) generated with diverse ImageNet classifier families (S, V, B, R, D, SVBRD) at different norm constraints. The perturbation images are normalised at the maximal perturbation for visualisation. We observe diverse patterns across classifier families within the same $L _ { 2 }$ ball.
|
| 374 |
+
|
| 375 |
+

|
| 376 |
+
Figure 9: Probability query output embedded into 2-D plane via t-SNE. The same embedding is shown with different colour-coding for each attribute. These are the inputs to the kennen-o metamodel.
|
| 377 |
+
|
| 378 |
+

|
| 379 |
+
Figure 10: Probability query output embedded into 2-D plane via t-SNE. The same embedding is shown with different colour-coding for each attribute. These are the inputs to the kennen-io metamodel.
|
| 380 |
+
|
| 381 |
+

|
| 382 |
+
Figure 11: Confusion matrices for kennen-o.
|
| 383 |
+
|
| 384 |
+

|
| 385 |
+
Figure 12: Confusion matrices for kennen-io.
|
parse/train/BydjJte0-/BydjJte0-_content_list.json
ADDED
|
@@ -0,0 +1,2104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "TOWARDS REVERSE-ENGINEERING BLACK-BOX NEURAL NETWORKS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
98,
|
| 9 |
+
598,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Seong Joon Oh, Max Augustin, Bernt Schiele, Mario Fritz \nMax-Planck Institute for Informatics, Saarland Informatics Campus, Saarbrucken, Germany ¨ \n{joon,maxaug,schiele,mfritz}@mpi-inf.mpg.de ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
169,
|
| 20 |
+
784,
|
| 21 |
+
212
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
248,
|
| 32 |
+
544,
|
| 33 |
+
263
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Many deployed learned models are black boxes: given input, returns output. Internal information about the model, such as the architecture, optimisation procedure, or training data, is not disclosed explicitly as it might contain proprietary information or make the system more vulnerable. This work shows that such attributes of neural networks can be exposed from a sequence of queries. This has multiple implications. On the one hand, our work exposes the vulnerability of black-box neural networks to different types of attacks – we show that the revealed internal information helps generate more effective adversarial examples against the black box model. On the other hand, this technique can be used for better protection of private content from automatic recognition models using adversarial examples. Our paper suggests that it is actually hard to draw a line between white box and black box models. The code is available at goo.gl/MbYfsv. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
280,
|
| 43 |
+
764,
|
| 44 |
+
446
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
474,
|
| 55 |
+
336,
|
| 56 |
+
491
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Black-box models take a sequence of query inputs, and return corresponding outputs, while keeping internal states such as model architecture hidden. They are deployed as black boxes usually on purpose – for protecting intellectual properties or privacy-sensitive training data. Our work aims at inferring information about the internals of black box models – ultimately turning them into white box models. Such a reverse-engineering of a black box model has many implications. On the one hand, it has legal implications to intellectual properties (IP) involving neural networks – internal information about the model can be proprietary and a key IP, and the training data may be privacy sensitive. Disclosing hidden details may also render the model more susceptible to attacks from adversaries. On the other hand, gaining information about a black-box model can be useful in other scenarios. E.g. there has been work on utilising adversarial examples for protecting private regions (e.g. faces) in photographs from automatic recognisers (Oh et al., 2017). In such scenarios, gaining more knowledge on the recognisers will increase the chance of protecting one’s privacy. Either way, it is a crucial research topic to investigate the type and amount of information that can be gained from a black-box access to a model. We make a first step towards understanding the connection between white box and black box approaches – which were previously thought of as distinct classes. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
173,
|
| 65 |
+
507,
|
| 66 |
+
825,
|
| 67 |
+
715
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "We introduce the term “model attributes” to refer to various types of information about a trained neural network model. We group them into three types: (1) architecture (e.g. type of non-linear activation), (2) optimisation process (e.g. SGD or ADAM?), and (3) training data (e.g. which dataset?). We approach the problem as a standard supervised learning task applied over models. First, collect a diverse set of white-box models (“meta-training set”) that are expected to be similar to the target black box at least to a certain extent. Then, over the collected meta-training set, train another model (“metamodel”) that takes a model as input and returns the corresponding model attributes as output. Importantly, since we want to predict attributes at test time for black-box models, the only information available for attribute prediction is the query input-output pairs. As we will see in the experiments, such input-output pairs allow to predict model attributes surprisingly well. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
722,
|
| 77 |
+
823,
|
| 78 |
+
861
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "In summary, we contribute: (1) Investigation of the type and amount of internal information about the black-box model that can be extracted from querying; (2) Novel metamodel methods that not only reason over outputs from static query inputs, but also actively optimise query inputs that can extract more information; (3) Study of factors like size of the meta-training set, quantity and quality of queries, and the dissimilarity between the meta-training models and the test black box (generalisability); (4) Empirical verification that revealed information leads to greater susceptibility of a black-box model to an adversarial example based attack. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
868,
|
| 88 |
+
823,
|
| 89 |
+
924
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "",
|
| 96 |
+
"bbox": [
|
| 97 |
+
173,
|
| 98 |
+
103,
|
| 99 |
+
823,
|
| 100 |
+
146
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "2 RELATED WORK ",
|
| 107 |
+
"text_level": 1,
|
| 108 |
+
"bbox": [
|
| 109 |
+
176,
|
| 110 |
+
170,
|
| 111 |
+
344,
|
| 112 |
+
186
|
| 113 |
+
],
|
| 114 |
+
"page_idx": 1
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"type": "text",
|
| 118 |
+
"text": "There has been a line of work on extracting and exploiting information from black-box learned models. We first describe papers on extracting information (model extraction and membership inference attacks), and then discuss ones on attacking the network using the extracted information (adversarial image perturbations $( A I P )$ ). ",
|
| 119 |
+
"bbox": [
|
| 120 |
+
174,
|
| 121 |
+
204,
|
| 122 |
+
825,
|
| 123 |
+
261
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 1
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "text",
|
| 129 |
+
"text": "Model extraction attacks either reconstruct the exact model parameters or build an avatar model that maximises the likelihood of the query input-output pairs from the target model (Tramer et al., 2016; Papernot et al., 2017). Tramer et al. (2016) have shown the efficacy of equation solving attacks and the avatar method in retrieving internal parameters of non-neural network models. Papernot et al. (2017) have also used the avatar approach with the end goal of generating adversarial examples. While the avatar approach first assumes model hyperparameters like model family (architecture) and training data, we discriminatively train a metamodel to predict those hyperparameters themselves. As such, our approach is complementary to the avatar approach. ",
|
| 130 |
+
"bbox": [
|
| 131 |
+
174,
|
| 132 |
+
267,
|
| 133 |
+
825,
|
| 134 |
+
380
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "Membership inference attacks determine if a given data sample has been included in the training data (Ateniese et al., 2015; Shokri et al., 2017). In particular, Ateniese et al. (2015) also trains a decision tree metamodel over a set of classifiers trained on different datasets. This work goes far beyond only inferring the training data by showing that even the model architecture and optimisation process can be inferred. ",
|
| 141 |
+
"bbox": [
|
| 142 |
+
174,
|
| 143 |
+
386,
|
| 144 |
+
825,
|
| 145 |
+
455
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "Using the obtained cues, one can launch more effective, focused attacks on the black box. We use adversarial image perturbations (AIPs) as an example of such attack. AIPs are small perturbations over the input such that the network is mislead. Research on this topic has flourished recently after it was shown that the needed amount of perturbation to completely mislead an image classifier is nearly invisible (Szegedy et al., 2014; Goodfellow et al., 2015; Moosavi-Dezfooli et al., 2017). ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
174,
|
| 154 |
+
462,
|
| 155 |
+
825,
|
| 156 |
+
532
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "Most effective AIPs require gradients of the target network. Some papers proposed different ways to attack black boxes. They can be grouped into three approaches. (1) Approximate gradients by numerical gradients (Narodytska & Kasiviswanathan, 2017; Chen et al., 2017). The caveat is that thousands and millions of queries are needed to compute a single AIP, depending on the image size. (2) Use the avatar approach to train a white box network that is supposedly similar to the target (Papernot et al., 2016b;a; Hayes & Danezis, 2017). We note again that our metamodel is complementary to the avatar approach – the avatar network hyperparemters can be determined by the metamodel. (3) Exploit transferability of adversarial examples; it has been shown that AIPs generated against one network can also fool other networks (Moosavi-Dezfooli et al., 2017; Liu et al., 2017). Liu et al. (2017) in particular have shown that generating AIPs against an ensemble of networks make it more transferable. We show in this work that the AIPs transfer better within an architecture family (e.g. ResNet or DenseNet) than across, and that such a property can be exploited by our metamodel for generating more targetted AIPs. ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
173,
|
| 165 |
+
540,
|
| 166 |
+
825,
|
| 167 |
+
719
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "3 METAMODELS ",
|
| 174 |
+
"text_level": 1,
|
| 175 |
+
"bbox": [
|
| 176 |
+
176,
|
| 177 |
+
744,
|
| 178 |
+
326,
|
| 179 |
+
761
|
| 180 |
+
],
|
| 181 |
+
"page_idx": 1
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"type": "text",
|
| 185 |
+
"text": "We want to find out the type and amount of internal information about a black-box model that can be revealed from a sequence of queries. We approach this by first building metamodels for predicting model attributes, and then evaluating their performance on black-box models. Our ",
|
| 186 |
+
"bbox": [
|
| 187 |
+
174,
|
| 188 |
+
780,
|
| 189 |
+
485,
|
| 190 |
+
862
|
| 191 |
+
],
|
| 192 |
+
"page_idx": 1
|
| 193 |
+
},
|
| 194 |
+
{
|
| 195 |
+
"type": "image",
|
| 196 |
+
"img_path": "images/40c4de6dd36b1ba4ed9b256dedf985e4afdfa323aff9d4b892a0bd2ae01de12d.jpg",
|
| 197 |
+
"image_caption": [
|
| 198 |
+
"Figure 1: Overview of our approach. "
|
| 199 |
+
],
|
| 200 |
+
"image_footnote": [],
|
| 201 |
+
"bbox": [
|
| 202 |
+
504,
|
| 203 |
+
744,
|
| 204 |
+
834,
|
| 205 |
+
824
|
| 206 |
+
],
|
| 207 |
+
"page_idx": 1
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "text",
|
| 211 |
+
"text": "main approach, metamodel, is described in figure 1. In a nutshell, the metamodel is a classifier of classifiers. Specifically, The metamodel submits $n$ query inputs $\\left[ x ^ { i } \\right] _ { i = 1 } ^ { n }$ to a black box model $f$ ; the metamodel takes corresponding model outputs $\\left[ f ( x ^ { i } ) \\right] _ { i = 1 } ^ { n }$ as an input, and returns predicted model attributes as output. As we will describe in detail, the metamodel not only learns to infer model attributes from query outputs from a static set of inputs, but also searches for query inputs that are designed to extract greater amount of information from the target models. ",
|
| 212 |
+
"bbox": [
|
| 213 |
+
174,
|
| 214 |
+
863,
|
| 215 |
+
825,
|
| 216 |
+
924
|
| 217 |
+
],
|
| 218 |
+
"page_idx": 1
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"type": "text",
|
| 222 |
+
"text": "",
|
| 223 |
+
"bbox": [
|
| 224 |
+
171,
|
| 225 |
+
103,
|
| 226 |
+
821,
|
| 227 |
+
132
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 2
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "In this section, our main methods are introduced in the context of MNIST digit classifiers. While MNIST classifiers are not fully representative of generic learned models, they have a computational edge: it takes only five minutes to train each of them with reasonable performance. We could thus prepare a diverse set of 11k MNIST classifiers within 40 GPU days for the meta-training and evaluation of our metamodels. We stress, however, that the proposed approach is generic with respect to the task, data, and the type of models. We also focus on 12 model attributes (table 1) that cover hyperparameters for common neural network MNIST classifiers, but again the range of predictable attributes are not confined to this list. ",
|
| 234 |
+
"bbox": [
|
| 235 |
+
174,
|
| 236 |
+
138,
|
| 237 |
+
825,
|
| 238 |
+
250
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 2
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "3.1 COLLECTING A DATASET OF CLASSIFIERS ",
|
| 245 |
+
"text_level": 1,
|
| 246 |
+
"bbox": [
|
| 247 |
+
176,
|
| 248 |
+
268,
|
| 249 |
+
498,
|
| 250 |
+
281
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 2
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "text",
|
| 256 |
+
"text": "We need a dataset of classifiers to train and evaluate metamodels. We explain how MNIST-NETS has been constructed, a dataset of 11k MNIST digit classifiers; the procedure is task and data generic. ",
|
| 257 |
+
"bbox": [
|
| 258 |
+
173,
|
| 259 |
+
292,
|
| 260 |
+
823,
|
| 261 |
+
321
|
| 262 |
+
],
|
| 263 |
+
"page_idx": 2
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"type": "text",
|
| 267 |
+
"text": "BASE NETWORK SKELETON ",
|
| 268 |
+
"text_level": 1,
|
| 269 |
+
"bbox": [
|
| 270 |
+
174,
|
| 271 |
+
338,
|
| 272 |
+
364,
|
| 273 |
+
351
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 2
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "text",
|
| 279 |
+
"text": "Every model in MNIST-NETS shares the same convnet skeleton architecture: “ $N$ conv blocks $M$ fc blocks $ ~ 1$ linear classifier”. Each conv block has the following structure: “ks $\\times$ ks convolution optional $2 \\times 2$ max-pooling non-linear activation”, where ks (kernel size) and the activation type are to be chosen. Each fc block has the structure: “00linear mapping non-linear activation optional dropout” This convnet structure already covers many LeNet (LeCun et al., 1998) variants, one of the best performing architectures on MNIST1. ",
|
| 280 |
+
"bbox": [
|
| 281 |
+
174,
|
| 282 |
+
361,
|
| 283 |
+
823,
|
| 284 |
+
444
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 2
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "text",
|
| 290 |
+
"text": "INCREASING DIVERSITY ",
|
| 291 |
+
"text_level": 1,
|
| 292 |
+
"bbox": [
|
| 293 |
+
174,
|
| 294 |
+
462,
|
| 295 |
+
341,
|
| 296 |
+
473
|
| 297 |
+
],
|
| 298 |
+
"page_idx": 2
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"type": "text",
|
| 302 |
+
"text": "In order to learn generalisable features, the metamodel needs to be trained over a diverse set of models. The base architecture described above already has several free parameters like the number of layers ( $N$ and $M ,$ ), the existence of dropout or maxpooling layers, or the type of nonlinear activation. ",
|
| 303 |
+
"bbox": [
|
| 304 |
+
174,
|
| 305 |
+
484,
|
| 306 |
+
419,
|
| 307 |
+
608
|
| 308 |
+
],
|
| 309 |
+
"page_idx": 2
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"type": "table",
|
| 313 |
+
"img_path": "images/73d0bce289d6dd93dfeb09a33beee54fe8244f080c86358e07de71352c4dd938.jpg",
|
| 314 |
+
"table_caption": [
|
| 315 |
+
"Table 1: MNIST classifier attributes. Italicised attributes are derived from other attributes. "
|
| 316 |
+
],
|
| 317 |
+
"table_footnote": [],
|
| 318 |
+
"table_body": "<table><tr><td></td><td>Code</td><td>Attribute</td><td>Values</td></tr><tr><td>AAieeiteee</td><td>act drop pool ks #conv #fc</td><td>Activation Dropout Max pooling Conv ker. size #Conv layers #FC layers</td><td>ReLU,PReLU,ELU,Tanh Yes,No Yes,No 3,5 2,3,4 2,3,4</td></tr><tr><td>0</td><td>#par ens alg</td><td>#Parameters Ensemble Algorithm</td><td>214, : 221 Yes,No SGD,ADAM,RMSprop</td></tr><tr><td>0</td><td>bs split size</td><td>Batch size Data split Data size</td><td>64,128,256 Allo,Halfo/1, Quarter0/1/2/3 All, Half, Quarter</td></tr></table>",
|
| 319 |
+
"bbox": [
|
| 320 |
+
431,
|
| 321 |
+
496,
|
| 322 |
+
823,
|
| 323 |
+
693
|
| 324 |
+
],
|
| 325 |
+
"page_idx": 2
|
| 326 |
+
},
|
| 327 |
+
{
|
| 328 |
+
"type": "text",
|
| 329 |
+
"text": "Apart from the architectural hyperparameters, we increase diversity along two more axes – optimisation process and the training data. Along the optimisation axis, we vary optimisation algorithm (SGD, ADAM, or ",
|
| 330 |
+
"bbox": [
|
| 331 |
+
174,
|
| 332 |
+
617,
|
| 333 |
+
419,
|
| 334 |
+
699
|
| 335 |
+
],
|
| 336 |
+
"page_idx": 2
|
| 337 |
+
},
|
| 338 |
+
{
|
| 339 |
+
"type": "text",
|
| 340 |
+
"text": "RMSprop) and the training batch size (64, 128, 256). We also consider training MNIST classifiers on either on the entire MNIST training set $( \\mathrm { A l l } _ { 0 }$ , 60k), one of the two disjoint halves $\\mathrm { ( H a l f _ { 0 / 1 } }$ , 30k), or one of the four disjoint quarters (Quarte $\\Gamma _ { 0 / 1 / 2 / 3 }$ , $1 5 \\mathrm { k } )$ ). ",
|
| 341 |
+
"bbox": [
|
| 342 |
+
174,
|
| 343 |
+
700,
|
| 344 |
+
825,
|
| 345 |
+
743
|
| 346 |
+
],
|
| 347 |
+
"page_idx": 2
|
| 348 |
+
},
|
| 349 |
+
{
|
| 350 |
+
"type": "text",
|
| 351 |
+
"text": "See table 1 for the comprehensive list of 12 model attributes altered in MNIST-NETS. The number of trainable parameters (#par) and the training data size (size) are not directly controlled but derived from the other attributes. We also augment MNIST-NETS with ensembles of classifiers (ens), whose procedure will be described later. ",
|
| 352 |
+
"bbox": [
|
| 353 |
+
174,
|
| 354 |
+
748,
|
| 355 |
+
825,
|
| 356 |
+
804
|
| 357 |
+
],
|
| 358 |
+
"page_idx": 2
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"type": "text",
|
| 362 |
+
"text": "SAMPLING AND TRAINING ",
|
| 363 |
+
"text_level": 1,
|
| 364 |
+
"bbox": [
|
| 365 |
+
176,
|
| 366 |
+
821,
|
| 367 |
+
356,
|
| 368 |
+
833
|
| 369 |
+
],
|
| 370 |
+
"page_idx": 2
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"type": "text",
|
| 374 |
+
"text": "The number of all possible combinations of controllable options in table 1 is 18, 144. We also select random seeds that control the initialisation and training data shuffling from $\\{ 0 , \\cdots , 9 9 9 \\}$ , resulting in 18, 144, 000 unique models. Training such a large number of models is intractable; we have sampled (without replacement) and trained 10, 000 of them. All the models have been trained with learning rate 0.1 and momentum 0.5 for 100 epochs. It takes around 5 minutes to train each model on a GPU machine (GeForce GTX TITAN); training of 10k classifiers has taken 40 GPU days. ",
|
| 375 |
+
"bbox": [
|
| 376 |
+
174,
|
| 377 |
+
844,
|
| 378 |
+
825,
|
| 379 |
+
900
|
| 380 |
+
],
|
| 381 |
+
"page_idx": 2
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"type": "text",
|
| 385 |
+
"text": "",
|
| 386 |
+
"bbox": [
|
| 387 |
+
171,
|
| 388 |
+
103,
|
| 389 |
+
823,
|
| 390 |
+
132
|
| 391 |
+
],
|
| 392 |
+
"page_idx": 3
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"type": "text",
|
| 396 |
+
"text": "PRUNING AND AUGMENTING ",
|
| 397 |
+
"text_level": 1,
|
| 398 |
+
"bbox": [
|
| 399 |
+
174,
|
| 400 |
+
148,
|
| 401 |
+
374,
|
| 402 |
+
161
|
| 403 |
+
],
|
| 404 |
+
"page_idx": 3
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"type": "text",
|
| 408 |
+
"text": "In order to make sure that MNIST-NETS realistically represents commonly used MNIST classifiers, we have pruned low-performance classifiers (validation accuracy $< 9 8 \\%$ ), resulting in 8, 582 classifiers. Ensembles of trained classifiers have been constructed by grouping the identical classifiers (modulo random seed). Given $t$ identical ones, we have augmented MNIST-NETS with 2, · · · , $t$ combinations. The ensemble augmentation has resulted in 11, 282 final models. See appendix table 6 for statistics of attributes – due to large sample size all the attributes are evenly covered. ",
|
| 409 |
+
"bbox": [
|
| 410 |
+
174,
|
| 411 |
+
171,
|
| 412 |
+
825,
|
| 413 |
+
255
|
| 414 |
+
],
|
| 415 |
+
"page_idx": 3
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"type": "text",
|
| 419 |
+
"text": "TRAIN-EVAL SPLITS ",
|
| 420 |
+
"text_level": 1,
|
| 421 |
+
"bbox": [
|
| 422 |
+
174,
|
| 423 |
+
272,
|
| 424 |
+
313,
|
| 425 |
+
285
|
| 426 |
+
],
|
| 427 |
+
"page_idx": 3
|
| 428 |
+
},
|
| 429 |
+
{
|
| 430 |
+
"type": "text",
|
| 431 |
+
"text": "Attribute prediction can get arbitrarily easy by including the black-box model (or similar ones) in the meta-training set. We introduce multiple splits of MNIST-NETS with varying requirements on generalization. Unless stated otherwise, every split has 5, 000 training (meta-training), 1, 000 testing (black box), and 5, 282 leftover models. ",
|
| 432 |
+
"bbox": [
|
| 433 |
+
174,
|
| 434 |
+
295,
|
| 435 |
+
825,
|
| 436 |
+
351
|
| 437 |
+
],
|
| 438 |
+
"page_idx": 3
|
| 439 |
+
},
|
| 440 |
+
{
|
| 441 |
+
"type": "text",
|
| 442 |
+
"text": "The Random (R) split randomly (uniform weights) assigns training and test splits, respectively. Under the R split, the training and test models come from the same distribution. We introduce harder Extrapolation (E) splits. We separate a few attributes between the training and test splits. They are designed to simulate more difficult domain gaps when the meta-training models are significantly different from the black box. Specific examples of E splits will be shown in $\\ S 4$ . ",
|
| 443 |
+
"bbox": [
|
| 444 |
+
174,
|
| 445 |
+
358,
|
| 446 |
+
825,
|
| 447 |
+
428
|
| 448 |
+
],
|
| 449 |
+
"page_idx": 3
|
| 450 |
+
},
|
| 451 |
+
{
|
| 452 |
+
"type": "text",
|
| 453 |
+
"text": "3.2 METAMODEL METHODS ",
|
| 454 |
+
"text_level": 1,
|
| 455 |
+
"bbox": [
|
| 456 |
+
176,
|
| 457 |
+
445,
|
| 458 |
+
377,
|
| 459 |
+
459
|
| 460 |
+
],
|
| 461 |
+
"page_idx": 3
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"type": "text",
|
| 465 |
+
"text": "The metamodel predicts the attribute of a black-box model $g$ in the test split by submitting $n$ query inputs and observing the outputs. It is trained over meta-training models $f$ in the training split $( f \\sim \\mathcal { F } )$ . We propose three approaches for the metamodels – we collectively name them kennen2. See figure 2 for an overview. ",
|
| 466 |
+
"bbox": [
|
| 467 |
+
174,
|
| 468 |
+
472,
|
| 469 |
+
825,
|
| 470 |
+
526
|
| 471 |
+
],
|
| 472 |
+
"page_idx": 3
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"type": "text",
|
| 476 |
+
"text": "K E N N E N-O: REASON OVER OUTPUT ",
|
| 477 |
+
"text_level": 1,
|
| 478 |
+
"bbox": [
|
| 479 |
+
176,
|
| 480 |
+
544,
|
| 481 |
+
423,
|
| 482 |
+
556
|
| 483 |
+
],
|
| 484 |
+
"page_idx": 3
|
| 485 |
+
},
|
| 486 |
+
{
|
| 487 |
+
"type": "text",
|
| 488 |
+
"text": "kennen-o first selects a fixed set of queries $[ x ^ { i } ] _ { i = 1 \\cdots n }$ from a dataset. Both during training and testing, always these queries are submitted. kennen $\\scriptscriptstyle - \\bigcirc$ learns a classifier $m _ { \\theta }$ to map from the order-sensitively concatenated $n$ query outputs, $[ f ( x ^ { i } ) ] _ { i = 1 \\cdots n }$ $( n \\times 1 0$ dim for MNIST), to the simultaneous prediction of 12 attributes in $f$ . The training objective is: ",
|
| 489 |
+
"bbox": [
|
| 490 |
+
174,
|
| 491 |
+
568,
|
| 492 |
+
485,
|
| 493 |
+
679
|
| 494 |
+
],
|
| 495 |
+
"page_idx": 3
|
| 496 |
+
},
|
| 497 |
+
{
|
| 498 |
+
"type": "equation",
|
| 499 |
+
"img_path": "images/caf86415c86c9f6743b787463445d5b42fddae8a2306eb423ab8056d0bdb1ce1.jpg",
|
| 500 |
+
"text": "$$\n\\operatorname* { m i n } _ { \\theta } { } _ { f \\sim \\mathcal { F } } \\left[ \\sum _ { a = 1 } ^ { 1 2 } \\mathcal { L } \\left( m _ { \\theta } ^ { a } \\left( [ f ( x ^ { i } ) ] _ { i = 1 } ^ { n } \\right) , y ^ { a } \\right) \\right]\n$$",
|
| 501 |
+
"text_format": "latex",
|
| 502 |
+
"bbox": [
|
| 503 |
+
187,
|
| 504 |
+
684,
|
| 505 |
+
467,
|
| 506 |
+
729
|
| 507 |
+
],
|
| 508 |
+
"page_idx": 3
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"type": "image",
|
| 512 |
+
"img_path": "images/356980c8e1f698f631961d53b145ff3b64f47856bd5bb5f38b04ed21d2117b22.jpg",
|
| 513 |
+
"image_caption": [
|
| 514 |
+
"Figure 2: Training procedure for metamodels kennen-o (top) and kennen-i (bottom). "
|
| 515 |
+
],
|
| 516 |
+
"image_footnote": [],
|
| 517 |
+
"bbox": [
|
| 518 |
+
500,
|
| 519 |
+
569,
|
| 520 |
+
825,
|
| 521 |
+
771
|
| 522 |
+
],
|
| 523 |
+
"page_idx": 3
|
| 524 |
+
},
|
| 525 |
+
{
|
| 526 |
+
"type": "text",
|
| 527 |
+
"text": "where $\\mathcal { F }$ is the distribution of meta-training models, $y ^ { a }$ is the ground truth label of attribute $a$ , and $\\mathcal { L }$ is the cross-entropy loss. With the learned parameter $\\tilde { \\theta }$ $m _ { \\tilde { \\theta } } ^ { a } \\left( [ g ( x ^ { i } ) ] _ { i = 1 } ^ { n } \\right)$ gives the prediction of attribute $a$ for the black box $g$ . ",
|
| 528 |
+
"bbox": [
|
| 529 |
+
174,
|
| 530 |
+
750,
|
| 531 |
+
485,
|
| 532 |
+
823
|
| 533 |
+
],
|
| 534 |
+
"page_idx": 3
|
| 535 |
+
},
|
| 536 |
+
{
|
| 537 |
+
"type": "text",
|
| 538 |
+
"text": "In our experiments, we model the classifier $m _ { \\theta }$ via multilayer perceptron (MLP) with two hidden layers with 1000 hidden units. The last layer consists of 12 parallel linear layers for a simultaneous prediction of the attributes. In our preliminary experiments, MLP has performed better than the linear classifiers. The optimisation problem in equation 1 is solved via SGD by approximating the expectation over $f \\sim \\mathbb { F }$ by an empirical sum over the training split classifiers for 200 epochs. ",
|
| 539 |
+
"bbox": [
|
| 540 |
+
174,
|
| 541 |
+
829,
|
| 542 |
+
825,
|
| 543 |
+
900
|
| 544 |
+
],
|
| 545 |
+
"page_idx": 3
|
| 546 |
+
},
|
| 547 |
+
{
|
| 548 |
+
"type": "text",
|
| 549 |
+
"text": "For query inputs, we have used a random subset of $n$ images from the validation set (both for MNIST and ImageNet experiments). The performance is not sensitive to the choice of queries (see appendix $\\ S C _ { \\iota }$ ). Next methods $( \\mathrm { k e n n e n - i } / \\mathrm { i } \\circ )$ describe how to actively craft query inputs, potentially outside the natural image distribution. ",
|
| 550 |
+
"bbox": [
|
| 551 |
+
174,
|
| 552 |
+
103,
|
| 553 |
+
823,
|
| 554 |
+
160
|
| 555 |
+
],
|
| 556 |
+
"page_idx": 4
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"type": "text",
|
| 560 |
+
"text": "Note that kennen $- \\bigcirc$ can be applied to any type of model (e.g. non-neural networks) with any output structure, as long as the output can be embedded in an Euclidean space. We will show that this method can effectively extract information from $f$ even if the output is a top-k ranking. ",
|
| 561 |
+
"bbox": [
|
| 562 |
+
174,
|
| 563 |
+
166,
|
| 564 |
+
823,
|
| 565 |
+
209
|
| 566 |
+
],
|
| 567 |
+
"page_idx": 4
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"type": "text",
|
| 571 |
+
"text": "K E N N E N-I: CRAFT INPUT ",
|
| 572 |
+
"text_level": 1,
|
| 573 |
+
"bbox": [
|
| 574 |
+
176,
|
| 575 |
+
226,
|
| 576 |
+
356,
|
| 577 |
+
238
|
| 578 |
+
],
|
| 579 |
+
"page_idx": 4
|
| 580 |
+
},
|
| 581 |
+
{
|
| 582 |
+
"type": "text",
|
| 583 |
+
"text": "kennen $- \\dot { \\beth }$ crafts a single query input $\\tilde { x }$ over the meta-training models that is trained to repurpose a digit classifier $f$ into a model attribute classifier for a single attribute $a$ . The crafted input drives the classifier to leak internal information via digit prediction. The learned input is submitted to the test black-box model $g$ , and the attribute is predicted by reading off its digit prediction $g ( \\tilde { x } )$ . For example, kennen $- \\dot { \\mathtt { 1 } }$ for max-pooling layer prediction crafts an input $x$ that is predicted as “1” for generic MNIST digit classifiers with max-pooling layers and $ { { } ^ { 6 } } { 0 ^ { 9 } }$ for ones without. See figure 3 for visual examples. ",
|
| 584 |
+
"bbox": [
|
| 585 |
+
173,
|
| 586 |
+
247,
|
| 587 |
+
825,
|
| 588 |
+
344
|
| 589 |
+
],
|
| 590 |
+
"page_idx": 4
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"type": "text",
|
| 594 |
+
"text": "We describe in detail how kennen-i learns this input. The training objective is: ",
|
| 595 |
+
"bbox": [
|
| 596 |
+
173,
|
| 597 |
+
353,
|
| 598 |
+
485,
|
| 599 |
+
381
|
| 600 |
+
],
|
| 601 |
+
"page_idx": 4
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"type": "equation",
|
| 605 |
+
"img_path": "images/9bc57c9350ae6f2312cb334927550de6b2e1b1b80faac21f4c521ceba622009e.jpg",
|
| 606 |
+
"text": "$$\n\\operatorname* { m i n } _ { x : { \\mathrm { i m a g e } } } \\ { \\underset { f \\sim { \\mathcal F } } { \\mathbb E } } \\left[ { \\mathcal { L } } \\left( f ( x ) , y ^ { a } \\right) \\right]\n$$",
|
| 607 |
+
"text_format": "latex",
|
| 608 |
+
"bbox": [
|
| 609 |
+
243,
|
| 610 |
+
386,
|
| 611 |
+
416,
|
| 612 |
+
411
|
| 613 |
+
],
|
| 614 |
+
"page_idx": 4
|
| 615 |
+
},
|
| 616 |
+
{
|
| 617 |
+
"type": "text",
|
| 618 |
+
"text": "where $f ( x )$ is the 10-dimensional output of the digit classifier $f$ . The condition $x :$ image ensures the input stays a valid image $x \\in [ \\breve { 0 } , 1 ] ^ { D }$ with image dimension $D$ . The loss $\\mathcal { L }$ , together with the attribute label $y ^ { a }$ of $f$ , guides the digit prediction $f ( x )$ to reveal the attribute $a$ instead. Note that the optimisation problem is identical ",
|
| 619 |
+
"bbox": [
|
| 620 |
+
174,
|
| 621 |
+
416,
|
| 622 |
+
485,
|
| 623 |
+
515
|
| 624 |
+
],
|
| 625 |
+
"page_idx": 4
|
| 626 |
+
},
|
| 627 |
+
{
|
| 628 |
+
"type": "image",
|
| 629 |
+
"img_path": "images/70b3c4a49d589b795fa6ec8c81ba3073bfac876f45b0d3e297f1b9cf56732ef2.jpg",
|
| 630 |
+
"image_caption": [
|
| 631 |
+
"Figure 3: Inputs designed to extract internal details from MNIST digit classifiers. E.g. feeding the middle image reveals the existence of a maxpooling layer with $9 4 . 8 \\%$ chance. "
|
| 632 |
+
],
|
| 633 |
+
"image_footnote": [],
|
| 634 |
+
"bbox": [
|
| 635 |
+
506,
|
| 636 |
+
344,
|
| 637 |
+
813,
|
| 638 |
+
449
|
| 639 |
+
],
|
| 640 |
+
"page_idx": 4
|
| 641 |
+
},
|
| 642 |
+
{
|
| 643 |
+
"type": "text",
|
| 644 |
+
"text": "to the training of digit classifiers except that the ground truth is the attribute label rather than the digit label, that the loss is averaged over the models instead of the images, and that the input $x$ instead of the model $f$ is optimised. With the learned query input $\\tilde { x }$ , the attribute for the black box $g$ is predicted by $g ( \\tilde { x } )$ . In particular, we do not use gradient information from $g$ . ",
|
| 645 |
+
"bbox": [
|
| 646 |
+
174,
|
| 647 |
+
515,
|
| 648 |
+
825,
|
| 649 |
+
570
|
| 650 |
+
],
|
| 651 |
+
"page_idx": 4
|
| 652 |
+
},
|
| 653 |
+
{
|
| 654 |
+
"type": "text",
|
| 655 |
+
"text": "We initialise $x$ with a random sample from the MNIST validation set (random noise or uniform gray initialisation gives similar performances), and run SGD for 200 epochs. For each iteration $x$ is truncated back to $[ \\bar { 0 } , 1 ] ^ { D }$ to enforce the constraint. ",
|
| 656 |
+
"bbox": [
|
| 657 |
+
176,
|
| 658 |
+
577,
|
| 659 |
+
823,
|
| 660 |
+
619
|
| 661 |
+
],
|
| 662 |
+
"page_idx": 4
|
| 663 |
+
},
|
| 664 |
+
{
|
| 665 |
+
"type": "text",
|
| 666 |
+
"text": "While being simple and effective, kennen-i can only predict a single attribute at a time, and cannot predict attributes with more than 10 classes (for digit classifiers). kennen-io introduced below overcomes these limitations. kennen $- \\dot { \\beth }$ may also be unrealistic when the exploration needs to be stealthy: it submits unnatural images to the system. Also unlike kennen-o, kennen $^ { - \\dot { 1 } }$ requires end-to-end differentiability of the training models $f \\sim \\mathcal { F }$ , although it still requires only black-box access to test models $g$ . ",
|
| 667 |
+
"bbox": [
|
| 668 |
+
174,
|
| 669 |
+
626,
|
| 670 |
+
825,
|
| 671 |
+
710
|
| 672 |
+
],
|
| 673 |
+
"page_idx": 4
|
| 674 |
+
},
|
| 675 |
+
{
|
| 676 |
+
"type": "text",
|
| 677 |
+
"text": "K E N N E N-I O: COMBINED APPROACH ",
|
| 678 |
+
"text_level": 1,
|
| 679 |
+
"bbox": [
|
| 680 |
+
176,
|
| 681 |
+
727,
|
| 682 |
+
429,
|
| 683 |
+
739
|
| 684 |
+
],
|
| 685 |
+
"page_idx": 4
|
| 686 |
+
},
|
| 687 |
+
{
|
| 688 |
+
"type": "text",
|
| 689 |
+
"text": "We overcome the drawbacks of kennen-i that it can only predict one attribute at a time and that the number of predictable classes by attaching an additional interpretation module on top of the output. Our final method kennen-io combines kennen-i and kennen-o approaches: both input generator and output interpreters are used. Being able to reason over multiple query outputs via MLP layers, kennen-io supports the optimisation of multiple query inputs as well. ",
|
| 690 |
+
"bbox": [
|
| 691 |
+
174,
|
| 692 |
+
748,
|
| 693 |
+
825,
|
| 694 |
+
819
|
| 695 |
+
],
|
| 696 |
+
"page_idx": 4
|
| 697 |
+
},
|
| 698 |
+
{
|
| 699 |
+
"type": "text",
|
| 700 |
+
"text": "Specifically, the kennen-io training objective is given by: ",
|
| 701 |
+
"bbox": [
|
| 702 |
+
173,
|
| 703 |
+
825,
|
| 704 |
+
570,
|
| 705 |
+
840
|
| 706 |
+
],
|
| 707 |
+
"page_idx": 4
|
| 708 |
+
},
|
| 709 |
+
{
|
| 710 |
+
"type": "equation",
|
| 711 |
+
"img_path": "images/3e530c3a866ad689f9dbaa83c08e3ed515a3324068bc80b6213faae36bf44826.jpg",
|
| 712 |
+
"text": "$$\n\\operatorname* { m i n } _ { [ x ^ { i } ] _ { i = 1 } ^ { n } : \\mathrm { i m a g e s } } \\operatorname* { m i n } _ { \\theta } \\underset { f \\sim \\mathcal { F } } { \\mathbb { E } } \\left[ \\sum _ { a = 1 } ^ { 1 2 } \\mathcal { L } \\left( m _ { \\theta } ^ { a } \\left( [ f ( x ^ { i } ) ] _ { i = 1 } ^ { n } \\right) , y ^ { a } \\right) \\right] .\n$$",
|
| 713 |
+
"text_format": "latex",
|
| 714 |
+
"bbox": [
|
| 715 |
+
313,
|
| 716 |
+
845,
|
| 717 |
+
683,
|
| 718 |
+
888
|
| 719 |
+
],
|
| 720 |
+
"page_idx": 4
|
| 721 |
+
},
|
| 722 |
+
{
|
| 723 |
+
"type": "text",
|
| 724 |
+
"text": "Note that the formulation is identical to that for kennen $- \\bigcirc$ (equation 1), except that the second minimisation problem regarding the query inputs is added. With learned parameters $\\tilde { \\theta }$ and $[ \\tilde { x } ^ { i } ] _ { i = 1 } ^ { n }$ , ",
|
| 725 |
+
"bbox": [
|
| 726 |
+
174,
|
| 727 |
+
893,
|
| 728 |
+
825,
|
| 729 |
+
924
|
| 730 |
+
],
|
| 731 |
+
"page_idx": 4
|
| 732 |
+
},
|
| 733 |
+
{
|
| 734 |
+
"type": "table",
|
| 735 |
+
"img_path": "images/cdbc4c5fd6a47d5ef9756b879b73126b373c53e5fdfa1d3cdf84158f03c907fb.jpg",
|
| 736 |
+
"table_caption": [
|
| 737 |
+
"Table 2: Comparison of metamodel methods. See table 1 for the full names of attributes. 100 queries are used for every method below, except for kennen-i which uses a single query. The “Output” column shows the output representation: “prob” (vector of probabilities for each digit class), “ranking” (a sorted list of digits according to their likelihood), “top-1” (most likely digit), or “bottom-1” (least likely digit). "
|
| 738 |
+
],
|
| 739 |
+
"table_footnote": [],
|
| 740 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td rowspan=\"2\"> Output</td><td colspan=\"8\">architecture</td><td colspan=\"2\">optim</td><td colspan=\"2\">data</td></tr><tr><td>act</td><td>drop</td><td>pool</td><td>ks</td><td>#conv</td><td></td><td></td><td>#fc #par ens</td><td>algbs</td><td></td><td>size split</td><td>avg</td></tr><tr><td>Chance</td><td>-</td><td>25.0</td><td>50.0</td><td>50.0</td><td>50.0</td><td>33.3</td><td>33.3</td><td>12.5 50.0</td><td></td><td>33.3 33.3</td><td></td><td>33.3 14.3</td><td>34.9</td></tr><tr><td>kennen-o</td><td>prob</td><td>80.6</td><td>94.6</td><td>94.9</td><td>84.6</td><td>67.1</td><td>77.3</td><td>41.7 54.0</td><td></td><td>71.8 50.4</td><td></td><td>73.8 90.0</td><td>73.4</td></tr><tr><td>kennen-o</td><td>ranking</td><td>63.7</td><td>93.8</td><td>90.8</td><td>80.0</td><td>63.0</td><td>73.7</td><td>44.1</td><td>62.4</td><td>65.3 47.0</td><td>66.2</td><td>86.6</td><td>69.7</td></tr><tr><td>kennen-o</td><td>bottom-1</td><td>48.6</td><td>80.0</td><td>73.6</td><td>64.0</td><td>48.9</td><td>63.1</td><td></td><td>28.7 52.8</td><td>53.6 41.9</td><td></td><td>45.9 51.4</td><td>54.4</td></tr><tr><td>kennen-o</td><td>top-1</td><td>31.2</td><td>56.9</td><td>58.8</td><td>49.9</td><td>38.9</td><td>33.7</td><td>19.6</td><td>50.0</td><td>36.1 35.3</td><td>33.3</td><td>30.7</td><td>39.5</td></tr><tr><td>kennen-i</td><td>top-1</td><td>43.5</td><td>77.0</td><td>94.8</td><td>88.5</td><td>54.5</td><td>41.0</td><td>32.3</td><td>46.5</td><td>45.7 37.0</td><td></td><td>42.6 29.3</td><td>52.7</td></tr><tr><td>kennen-io</td><td>score</td><td>88.4 95.8</td><td></td><td></td><td>99.5 97.7</td><td>80.3</td><td>80.2</td><td>45.2</td><td>60.2</td><td>79.3 54.3</td><td></td><td>84.8 95.6</td><td>80.1</td></tr></table>",
|
| 741 |
+
"bbox": [
|
| 742 |
+
173,
|
| 743 |
+
172,
|
| 744 |
+
826,
|
| 745 |
+
308
|
| 746 |
+
],
|
| 747 |
+
"page_idx": 5
|
| 748 |
+
},
|
| 749 |
+
{
|
| 750 |
+
"type": "text",
|
| 751 |
+
"text": "the attribute $a$ for the black box $g$ is predicted by $m _ { \\tilde { \\theta } } ^ { a } \\ : \\left( [ g ( \\tilde { x } ^ { i } ) ] _ { i = 1 } ^ { n } \\right)$ . Again, we require end-to-end differentiability of meta-training models $f$ , but only the black-box access for the test model $g$ . ",
|
| 752 |
+
"bbox": [
|
| 753 |
+
174,
|
| 754 |
+
330,
|
| 755 |
+
823,
|
| 756 |
+
363
|
| 757 |
+
],
|
| 758 |
+
"page_idx": 5
|
| 759 |
+
},
|
| 760 |
+
{
|
| 761 |
+
"type": "text",
|
| 762 |
+
"text": "To improve stability against covariate shift, we initialise $m _ { \\theta }$ with kennen-o for 200 epochs. Afterwards, gradient updates of $[ x ^ { i } ] _ { i = 1 } ^ { n }$ and $\\theta$ alternate every 50 epochs, for 200 additional epochs. ",
|
| 763 |
+
"bbox": [
|
| 764 |
+
174,
|
| 765 |
+
368,
|
| 766 |
+
823,
|
| 767 |
+
398
|
| 768 |
+
],
|
| 769 |
+
"page_idx": 5
|
| 770 |
+
},
|
| 771 |
+
{
|
| 772 |
+
"type": "text",
|
| 773 |
+
"text": "4 REVERSE-ENGINEERING BLACK-BOX MNIST DIGIT CLASSIFIERS ",
|
| 774 |
+
"text_level": 1,
|
| 775 |
+
"bbox": [
|
| 776 |
+
171,
|
| 777 |
+
417,
|
| 778 |
+
758,
|
| 779 |
+
434
|
| 780 |
+
],
|
| 781 |
+
"page_idx": 5
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"type": "text",
|
| 785 |
+
"text": "We have introduced a procedure for constructing a dataset of classifiers (MNIST-NETS) as well as novel metamodels (kennen variants) that learn to extract information from black-box classifiers. In this section, we evaluate the ability of kennen to extract information from black-box MNIST digit classifiers. We measure the class-balanced attribute prediction accuracy for each attribute $a$ in the list of 12 attributes in table 1. ",
|
| 786 |
+
"bbox": [
|
| 787 |
+
174,
|
| 788 |
+
449,
|
| 789 |
+
825,
|
| 790 |
+
520
|
| 791 |
+
],
|
| 792 |
+
"page_idx": 5
|
| 793 |
+
},
|
| 794 |
+
{
|
| 795 |
+
"type": "text",
|
| 796 |
+
"text": "ATTRIBUTE PREDICTION ",
|
| 797 |
+
"text_level": 1,
|
| 798 |
+
"bbox": [
|
| 799 |
+
176,
|
| 800 |
+
536,
|
| 801 |
+
343,
|
| 802 |
+
549
|
| 803 |
+
],
|
| 804 |
+
"page_idx": 5
|
| 805 |
+
},
|
| 806 |
+
{
|
| 807 |
+
"type": "text",
|
| 808 |
+
"text": "See table 2 for the main results of our metamodels, kennen-o/i/io, on the Random split. Unless stated otherwise, metamodels are trained with 5, 000 training split classifiers. ",
|
| 809 |
+
"bbox": [
|
| 810 |
+
174,
|
| 811 |
+
560,
|
| 812 |
+
823,
|
| 813 |
+
588
|
| 814 |
+
],
|
| 815 |
+
"page_idx": 5
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"type": "text",
|
| 819 |
+
"text": "Given $n = 1 0 0$ queries with probability output, kennen-o already performs far above the random chance in predicting 12 diverse attributes ( $7 3 . 4 \\%$ versus $3 4 . 9 \\%$ on average); neural network output indeed contains rich information about the black box. In particular, the presence of dropout $( 9 4 . 6 \\% )$ or max-pooling $( 9 4 . 9 \\% )$ has been predicted with high precision. As we will see in $\\ S 4 . 3$ , outputs of networks trained with dropout layers form clusters, explaining the good prediction performance. ",
|
| 820 |
+
"bbox": [
|
| 821 |
+
174,
|
| 822 |
+
594,
|
| 823 |
+
825,
|
| 824 |
+
665
|
| 825 |
+
],
|
| 826 |
+
"page_idx": 5
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"type": "text",
|
| 830 |
+
"text": "It is surprising that optimisation details like algorithm $( 7 1 . 8 \\% )$ and batch size $( 5 0 . 4 \\% )$ can also be predicted well above the random chance $3 3 . 3 \\%$ for both). We observe that the training data attributes are also predicted with high accuracy $( 7 1 . 8 \\%$ and $9 0 . 0 \\%$ for size and split). ",
|
| 831 |
+
"bbox": [
|
| 832 |
+
174,
|
| 833 |
+
671,
|
| 834 |
+
825,
|
| 835 |
+
714
|
| 836 |
+
],
|
| 837 |
+
"page_idx": 5
|
| 838 |
+
},
|
| 839 |
+
{
|
| 840 |
+
"type": "text",
|
| 841 |
+
"text": "COMPARING METHODS K E N N E N-O/I/I O ",
|
| 842 |
+
"text_level": 1,
|
| 843 |
+
"bbox": [
|
| 844 |
+
176,
|
| 845 |
+
731,
|
| 846 |
+
464,
|
| 847 |
+
743
|
| 848 |
+
],
|
| 849 |
+
"page_idx": 5
|
| 850 |
+
},
|
| 851 |
+
{
|
| 852 |
+
"type": "text",
|
| 853 |
+
"text": "Table 2 shows the comparison of kennen-o/i/io. kennen $- \\dot { \\mathtt { 1 } }$ has a relatively low performance (average $5 2 . 7 \\% )$ ), but kennen-i relies on a cheap resource: 1 query with single-label output. kennen-i is also performant at predicting the kernel size $( 8 8 . 5 \\% )$ and pooling $( 9 4 . 8 \\% )$ , attributes that are closely linked to spatial structure of the input. We conjecture kennen-i is relatively effective for such attributes. kennen-io is superior to kennen $- \\phantom { } _ { \\mathsf { O } } / \\mathrm { i }$ for all the attributes with average accuracy $8 0 . 1 \\%$ . ",
|
| 854 |
+
"bbox": [
|
| 855 |
+
174,
|
| 856 |
+
753,
|
| 857 |
+
825,
|
| 858 |
+
838
|
| 859 |
+
],
|
| 860 |
+
"page_idx": 5
|
| 861 |
+
},
|
| 862 |
+
{
|
| 863 |
+
"type": "text",
|
| 864 |
+
"text": "4.1 FACTOR ANALYSIS ",
|
| 865 |
+
"text_level": 1,
|
| 866 |
+
"bbox": [
|
| 867 |
+
174,
|
| 868 |
+
856,
|
| 869 |
+
343,
|
| 870 |
+
869
|
| 871 |
+
],
|
| 872 |
+
"page_idx": 5
|
| 873 |
+
},
|
| 874 |
+
{
|
| 875 |
+
"type": "text",
|
| 876 |
+
"text": "We examine potential factors that contribute to the successful prediction of black box internal attributes. We measure the prediction accuracy of our metamodels as we vary (1) the number of meta-training models, (2) the number of queries, and (3) the quality of query output. ",
|
| 877 |
+
"bbox": [
|
| 878 |
+
176,
|
| 879 |
+
882,
|
| 880 |
+
823,
|
| 881 |
+
924
|
| 882 |
+
],
|
| 883 |
+
"page_idx": 5
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"type": "image",
|
| 887 |
+
"img_path": "images/2b1ecd72ed511fabda0412e1a7ed42739ad7148745224f27bedbfd0d155955ed.jpg",
|
| 888 |
+
"image_caption": [
|
| 889 |
+
"Figure 4: kennen $- \\bigcirc$ performance of against the size of meta-training set (left), number of queries (middle), and quality of queries (right). Unless stated otherwise, we use 100 probability outputs and 5k models to train kennen-o. Each curve is linearly scaled such that random chance (0 training data, 0 query, or top-0) performs $0 \\%$ , and the perfect predictor performs $100 \\%$ . "
|
| 890 |
+
],
|
| 891 |
+
"image_footnote": [],
|
| 892 |
+
"bbox": [
|
| 893 |
+
205,
|
| 894 |
+
101,
|
| 895 |
+
821,
|
| 896 |
+
234
|
| 897 |
+
],
|
| 898 |
+
"page_idx": 6
|
| 899 |
+
},
|
| 900 |
+
{
|
| 901 |
+
"type": "text",
|
| 902 |
+
"text": "NUMBER OF TRAINING MODELS ",
|
| 903 |
+
"text_level": 1,
|
| 904 |
+
"bbox": [
|
| 905 |
+
174,
|
| 906 |
+
323,
|
| 907 |
+
393,
|
| 908 |
+
335
|
| 909 |
+
],
|
| 910 |
+
"page_idx": 6
|
| 911 |
+
},
|
| 912 |
+
{
|
| 913 |
+
"type": "text",
|
| 914 |
+
"text": "We have trained kennen $- \\bigcirc$ with different number of the meta-training classifiers, ranging from 100 to 5, 000. See figure 4 (left) for the trend. We observe a diminishing return, but also that the performance has not saturated – collecting larger meta-training set will improve the performance. ",
|
| 915 |
+
"bbox": [
|
| 916 |
+
176,
|
| 917 |
+
345,
|
| 918 |
+
825,
|
| 919 |
+
388
|
| 920 |
+
],
|
| 921 |
+
"page_idx": 6
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"type": "text",
|
| 925 |
+
"text": "NUMBER OF QUERIES ",
|
| 926 |
+
"text_level": 1,
|
| 927 |
+
"bbox": [
|
| 928 |
+
174,
|
| 929 |
+
404,
|
| 930 |
+
323,
|
| 931 |
+
416
|
| 932 |
+
],
|
| 933 |
+
"page_idx": 6
|
| 934 |
+
},
|
| 935 |
+
{
|
| 936 |
+
"type": "text",
|
| 937 |
+
"text": "See figure 4 (middle) for the kennen-o performance against the number of queries with probability output. The average performance saturates after $\\sim 5 0 0$ queries. On the other hand, with only $\\sim 1 0 0$ queries, we already retrieve ample information about the neural network. ",
|
| 938 |
+
"bbox": [
|
| 939 |
+
176,
|
| 940 |
+
428,
|
| 941 |
+
823,
|
| 942 |
+
469
|
| 943 |
+
],
|
| 944 |
+
"page_idx": 6
|
| 945 |
+
},
|
| 946 |
+
{
|
| 947 |
+
"type": "text",
|
| 948 |
+
"text": "QUALITY OF OUTPUT ",
|
| 949 |
+
"text_level": 1,
|
| 950 |
+
"bbox": [
|
| 951 |
+
174,
|
| 952 |
+
486,
|
| 953 |
+
321,
|
| 954 |
+
498
|
| 955 |
+
],
|
| 956 |
+
"page_idx": 6
|
| 957 |
+
},
|
| 958 |
+
{
|
| 959 |
+
"type": "text",
|
| 960 |
+
"text": "Many black-box models return top- $\\mathbf { \\nabla } \\cdot \\mathbf { k }$ ranking (e.g. Facebook face recogniser), or single-label output. We represent top- $\\mathbf { \\nabla } \\cdot \\mathbf { k }$ ranking outputs by assigning exponentially decaying probabilities up to $k$ digits and a small probability $\\epsilon$ to the remaining. ",
|
| 961 |
+
"bbox": [
|
| 962 |
+
176,
|
| 963 |
+
508,
|
| 964 |
+
823,
|
| 965 |
+
551
|
| 966 |
+
],
|
| 967 |
+
"page_idx": 6
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"type": "text",
|
| 971 |
+
"text": "See table 2 for the kennen $- \\bigcirc$ performance comparison among 100 probability, top-10 ranking, bottom-1, and top-1 outputs, with average accuracies $7 3 . 4 \\%$ , $6 9 . 7 \\%$ , $5 4 . 4 \\%$ , and $3 9 . 5 \\%$ , respectively. While performance drops with coarser outputs, when compared to random chance $( 3 4 . 9 \\% )$ , 100 single-label bottom-1 outputs already leak a great amount of information about the black box $( 5 4 . 4 \\% )$ . It is also notable that bottom-1 outputs contain much more information than do the top1 outputs; note that for high-performance classifiers top-1 predictions are rather uniform across models and thus have much less freedom to leak auxiliary information. Figure 4 (right) shows the interpolation from top-1 to top-10 (i.e. top-9) ranking. We observe from the jump at $k = 2$ that the second likely predictions (top-2) contain far more information than the most likely ones (top-1). For $k \\geq 3$ , each additional output label exhibits a diminishing return. ",
|
| 972 |
+
"bbox": [
|
| 973 |
+
174,
|
| 974 |
+
558,
|
| 975 |
+
825,
|
| 976 |
+
696
|
| 977 |
+
],
|
| 978 |
+
"page_idx": 6
|
| 979 |
+
},
|
| 980 |
+
{
|
| 981 |
+
"type": "text",
|
| 982 |
+
"text": "4.2 WHAT IF THE BLACK-BOX IS QUITE DIFFERENT FROM META-TRAINING MODELS? ",
|
| 983 |
+
"text_level": 1,
|
| 984 |
+
"bbox": [
|
| 985 |
+
173,
|
| 986 |
+
714,
|
| 987 |
+
769,
|
| 988 |
+
727
|
| 989 |
+
],
|
| 990 |
+
"page_idx": 6
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"type": "text",
|
| 994 |
+
"text": "So far we have seen results on the Random (R) split. In realistic scenarios, the meta-training model distribution may not be fully covering possible black box models. We show how damaging such a scenario is through Extrapolation (E) split experiments. ",
|
| 995 |
+
"bbox": [
|
| 996 |
+
176,
|
| 997 |
+
739,
|
| 998 |
+
823,
|
| 999 |
+
781
|
| 1000 |
+
],
|
| 1001 |
+
"page_idx": 6
|
| 1002 |
+
},
|
| 1003 |
+
{
|
| 1004 |
+
"type": "text",
|
| 1005 |
+
"text": "EVALUATION ",
|
| 1006 |
+
"text_level": 1,
|
| 1007 |
+
"bbox": [
|
| 1008 |
+
174,
|
| 1009 |
+
797,
|
| 1010 |
+
264,
|
| 1011 |
+
810
|
| 1012 |
+
],
|
| 1013 |
+
"page_idx": 6
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"type": "text",
|
| 1017 |
+
"text": "E-splits split the training and testing models based on one or more attributes (§3.1). For example, we may assign shallower models (#layers $\\leq 1 0$ ) to the training split and deeper ones (#layers $\\it { i } ^ { \\scriptsize { 1 0 } \\mathrm { ) } }$ to the testing split. In this example, we refer to #layers as the splitting attribute. Since for an E-split, some classes of the splitting attributes have zero training examples, we only evaluate the prediction accuracies over the non-splitting attributes. When the set of splitting attributes is $\\tilde { A }$ , a subset of the entire attribute set $A$ , we define $E$ -split accuracy or $\\operatorname { E . A c c } ( { \\tilde { A } } )$ to be the mean prediction accuracy over the non-splitting attributes $A \\setminus { \\tilde { A } }$ . For easier comparison, we report the normalised accuracy (N.Acc) that shows the how much percentage of the R-split accuracy is achieved in the E-split setup on the non-splitting attributes $A \\setminus { \\tilde { A } }$ . Specifically: ",
|
| 1018 |
+
"bbox": [
|
| 1019 |
+
174,
|
| 1020 |
+
820,
|
| 1021 |
+
825,
|
| 1022 |
+
924
|
| 1023 |
+
],
|
| 1024 |
+
"page_idx": 6
|
| 1025 |
+
},
|
| 1026 |
+
{
|
| 1027 |
+
"type": "text",
|
| 1028 |
+
"text": "",
|
| 1029 |
+
"bbox": [
|
| 1030 |
+
171,
|
| 1031 |
+
103,
|
| 1032 |
+
823,
|
| 1033 |
+
133
|
| 1034 |
+
],
|
| 1035 |
+
"page_idx": 7
|
| 1036 |
+
},
|
| 1037 |
+
{
|
| 1038 |
+
"type": "equation",
|
| 1039 |
+
"img_path": "images/d7c43ff2df226128d195212f6348ee63d74d868a577a4fb9c74fee98f20f7f23.jpg",
|
| 1040 |
+
"text": "$$\n\\mathrm { N . A c c } ( \\tilde { A } ) = \\frac { \\mathrm { E . A c c } ( \\tilde { A } ) - \\mathrm { C h a n c e } ( \\tilde { A } ) } { \\mathrm { R . A c c } ( \\tilde { A } ) - \\mathrm { C h a n c e } ( \\tilde { A } ) } \\times 1 0 0 \\%\n$$",
|
| 1041 |
+
"text_format": "latex",
|
| 1042 |
+
"bbox": [
|
| 1043 |
+
339,
|
| 1044 |
+
142,
|
| 1045 |
+
656,
|
| 1046 |
+
181
|
| 1047 |
+
],
|
| 1048 |
+
"page_idx": 7
|
| 1049 |
+
},
|
| 1050 |
+
{
|
| 1051 |
+
"type": "text",
|
| 1052 |
+
"text": "where ${ \\mathrm { R . A c c } } ( { \\tilde { A } } )$ and Chance $( { \\tilde { A } } )$ are the means of the R-split and Chance-level accuracies over $A \\setminus { \\tilde { A } }$ . Note that N.Acc is $100 \\%$ if the E-split performance is at the level of R-split and $0 \\%$ if it is at chance level. ",
|
| 1053 |
+
"bbox": [
|
| 1054 |
+
174,
|
| 1055 |
+
191,
|
| 1056 |
+
825,
|
| 1057 |
+
237
|
| 1058 |
+
],
|
| 1059 |
+
"page_idx": 7
|
| 1060 |
+
},
|
| 1061 |
+
{
|
| 1062 |
+
"type": "text",
|
| 1063 |
+
"text": "RESULTS ",
|
| 1064 |
+
"text_level": 1,
|
| 1065 |
+
"bbox": [
|
| 1066 |
+
174,
|
| 1067 |
+
257,
|
| 1068 |
+
236,
|
| 1069 |
+
270
|
| 1070 |
+
],
|
| 1071 |
+
"page_idx": 7
|
| 1072 |
+
},
|
| 1073 |
+
{
|
| 1074 |
+
"type": "text",
|
| 1075 |
+
"text": "The normalised accuracies for R-split and multiple E-splits are presented in table 3. We consider three axes of choices of splitting attributes for the E-split: architecture (#conv and #fc), optimisation (alg and bs), and data (size). For example, “E-#conv-#fc” row presents results when metamodel is trained on shallower nets (2 or 3 conv/fc layers each) compared to the test black box model (4 conv and fc layers each). ",
|
| 1076 |
+
"bbox": [
|
| 1077 |
+
174,
|
| 1078 |
+
281,
|
| 1079 |
+
483,
|
| 1080 |
+
406
|
| 1081 |
+
],
|
| 1082 |
+
"page_idx": 7
|
| 1083 |
+
},
|
| 1084 |
+
{
|
| 1085 |
+
"type": "text",
|
| 1086 |
+
"text": "Not surprisingly, E-split performances are lower than R-split ones $( \\mathrm { N . A c c } < 1 0 0 \\% )$ ; it is advisable to cover all the expected black-box attributes during meta-training. Nonetheless, E-split performances of kennen-io are still far above the chance level $( \\mathrm { N . A c c } \\ge 7 0 \\% \\gg$ $0 \\%$ ); failing to cover a few attributes during meta-training is not too damaging. ",
|
| 1087 |
+
"bbox": [
|
| 1088 |
+
174,
|
| 1089 |
+
414,
|
| 1090 |
+
483,
|
| 1091 |
+
525
|
| 1092 |
+
],
|
| 1093 |
+
"page_idx": 7
|
| 1094 |
+
},
|
| 1095 |
+
{
|
| 1096 |
+
"type": "table",
|
| 1097 |
+
"img_path": "images/318b4465a40382c81bea8c238cab94914699dbe415050aad0a3985769df98912.jpg",
|
| 1098 |
+
"table_caption": [
|
| 1099 |
+
"Table 3: Normalised accuracies (see text) of kennen-o and kennen-io on R and E splits. We denote E-split with splitting attributes attr1 and attr2 as “E-attr1-attr2”. Splitting criteria are also shown. When there are two splitting attributes, the first attribute inherits the previous row criteria. "
|
| 1100 |
+
],
|
| 1101 |
+
"table_footnote": [],
|
| 1102 |
+
"table_body": "<table><tr><td rowspan=2 colspan=9>kennen-Split Train Test 。 ioR = 100 100</td></tr><tr><td rowspan=1 colspan=1>100</td><td rowspan=1 colspan=1>100</td></tr><tr><td rowspan=1 colspan=1>E-#conv</td><td></td><td rowspan=1 colspan=1>2.3</td><td></td><td rowspan=1 colspan=1>4</td><td></td><td rowspan=1 colspan=1>87.5</td><td></td><td rowspan=1 colspan=1>92.0</td></tr><tr><td rowspan=1 colspan=1>E-#conv-#fc</td><td></td><td rowspan=1 colspan=1>2.3</td><td></td><td rowspan=1 colspan=1>4</td><td></td><td rowspan=1 colspan=1>77.1</td><td></td><td rowspan=1 colspan=1>80.7</td></tr><tr><td rowspan=1 colspan=1>E-alg</td><td></td><td rowspan=1 colspan=1>SGD,ADAM</td><td></td><td rowspan=1 colspan=1>RMSprop</td><td></td><td rowspan=1 colspan=1>83.0</td><td></td><td rowspan=1 colspan=1>88.5</td></tr><tr><td rowspan=1 colspan=1>E-alg-bs</td><td></td><td rowspan=1 colspan=1>64,128</td><td></td><td rowspan=1 colspan=1>256</td><td></td><td rowspan=1 colspan=1>64.2</td><td></td><td rowspan=1 colspan=1>70.0</td></tr><tr><td rowspan=1 colspan=1>E-split</td><td></td><td rowspan=1 colspan=1>Quartero/1</td><td></td><td rowspan=1 colspan=1>Quarter2/3</td><td></td><td rowspan=1 colspan=1>83.5</td><td></td><td rowspan=1 colspan=1>89.3</td></tr><tr><td rowspan=1 colspan=1>E-size</td><td></td><td rowspan=1 colspan=1>Quarter</td><td></td><td rowspan=1 colspan=1>Half,All</td><td></td><td rowspan=1 colspan=1>81.7</td><td></td><td rowspan=1 colspan=1>86.8</td></tr><tr><td rowspan=1 colspan=1>Chance</td><td></td><td rowspan=1 colspan=1></td><td></td><td rowspan=1 colspan=1></td><td></td><td rowspan=1 colspan=1>0.0</td><td></td><td rowspan=1 colspan=1>0.0</td></tr></table>",
|
| 1103 |
+
"bbox": [
|
| 1104 |
+
500,
|
| 1105 |
+
375,
|
| 1106 |
+
820,
|
| 1107 |
+
523
|
| 1108 |
+
],
|
| 1109 |
+
"page_idx": 7
|
| 1110 |
+
},
|
| 1111 |
+
{
|
| 1112 |
+
"type": "text",
|
| 1113 |
+
"text": "Comparing kennen-o and kennen-io for their generalisability, we observe that kennen-io consistently outperforms kennen-o under severe extrapolation (around $5 ~ { \\mathsf { p p } }$ better N.Acc). It is left as a future work to investigate the intriguing fact that utilising out-of-domain query inputs improves the generalisation of metamodel. ",
|
| 1114 |
+
"bbox": [
|
| 1115 |
+
174,
|
| 1116 |
+
531,
|
| 1117 |
+
826,
|
| 1118 |
+
588
|
| 1119 |
+
],
|
| 1120 |
+
"page_idx": 7
|
| 1121 |
+
},
|
| 1122 |
+
{
|
| 1123 |
+
"type": "text",
|
| 1124 |
+
"text": "4.3 WHY AND HOW DOES METAMODEL WORK? ",
|
| 1125 |
+
"text_level": 1,
|
| 1126 |
+
"bbox": [
|
| 1127 |
+
174,
|
| 1128 |
+
608,
|
| 1129 |
+
511,
|
| 1130 |
+
622
|
| 1131 |
+
],
|
| 1132 |
+
"page_idx": 7
|
| 1133 |
+
},
|
| 1134 |
+
{
|
| 1135 |
+
"type": "text",
|
| 1136 |
+
"text": "It is surprising that metamodels can extract inner details with great precision and generalisability. This section provides a glimpse of why and how this is possible via metamodel input and output analyses. Full answers to those questions is beyond the scope of the paper. ",
|
| 1137 |
+
"bbox": [
|
| 1138 |
+
174,
|
| 1139 |
+
635,
|
| 1140 |
+
825,
|
| 1141 |
+
678
|
| 1142 |
+
],
|
| 1143 |
+
"page_idx": 7
|
| 1144 |
+
},
|
| 1145 |
+
{
|
| 1146 |
+
"type": "text",
|
| 1147 |
+
"text": "METAMODEL INPUT (T-SNE) ",
|
| 1148 |
+
"text_level": 1,
|
| 1149 |
+
"bbox": [
|
| 1150 |
+
174,
|
| 1151 |
+
696,
|
| 1152 |
+
369,
|
| 1153 |
+
710
|
| 1154 |
+
],
|
| 1155 |
+
"page_idx": 7
|
| 1156 |
+
},
|
| 1157 |
+
{
|
| 1158 |
+
"type": "text",
|
| 1159 |
+
"text": "We analyse the inputs to our metamodels (i.e. query outputs from black-box models) to convince ourselves that the inputs do contain discriminative features for model attributes. As the input is high dimensional (1000 when the number of queries is $n = 1 0 0 ,$ ), we use the t-SNE (van der Maaten & Hinton, Nov 2008) visualisation method. Roughly speaking, t-SNE embeds high dimensional data points onto the 2-dimensional plane such that the pairwise distances are best respected. We then colour-code the embedded data points according to the model attributes. Clusters of same-coloured points indicate highly discriminative features. ",
|
| 1160 |
+
"bbox": [
|
| 1161 |
+
174,
|
| 1162 |
+
722,
|
| 1163 |
+
825,
|
| 1164 |
+
819
|
| 1165 |
+
],
|
| 1166 |
+
"page_idx": 7
|
| 1167 |
+
},
|
| 1168 |
+
{
|
| 1169 |
+
"type": "text",
|
| 1170 |
+
"text": "The visualisation of input data points are shown in Appendix figures 9 and 10 for kennen-o and kennen-io, respectively. For experimental details, see Appendix $\\ S _ { \\mathrm { D } }$ . In the case of kennen-o, we observe that some attributes form clear clusters in the input space – e.g. Tanh in act, binary dropout attribute, and RMSprop in alg. For the other attributes, however, it seems that the clusters are too complicated to be represented in a 2-dimensional space. For kennen-io (figure 10), we observe improved clusters for pool and ks. By submitting crafted query inputs, kennen-io induces query outputs to be better clustered, increasing the chance of successful prediction. ",
|
| 1171 |
+
"bbox": [
|
| 1172 |
+
174,
|
| 1173 |
+
825,
|
| 1174 |
+
825,
|
| 1175 |
+
924
|
| 1176 |
+
],
|
| 1177 |
+
"page_idx": 7
|
| 1178 |
+
},
|
| 1179 |
+
{
|
| 1180 |
+
"type": "text",
|
| 1181 |
+
"text": "METAMODEL OUTPUT (CONFUSION MATRIX) ",
|
| 1182 |
+
"bbox": [
|
| 1183 |
+
176,
|
| 1184 |
+
104,
|
| 1185 |
+
482,
|
| 1186 |
+
117
|
| 1187 |
+
],
|
| 1188 |
+
"page_idx": 8
|
| 1189 |
+
},
|
| 1190 |
+
{
|
| 1191 |
+
"type": "text",
|
| 1192 |
+
"text": "We show confusion matrices of kennen-o/io to analyse the failure modes. See Appendix figures 11 and 12. For kennen-o and kennen-io alike, we observe that the confusion occurs more frequently with similar classes. For attributes #conv and #fc, more confusion occurs between $( 2 , 3 )$ or $( 3 , 4 )$ than between $( 2 , 4 )$ . A similar trend is observed for #par and bs. This is a strong indication that (1) there exists semantic attribute information in the neural network outputs (e.g. number of layers, parameters, or size of training batch) and (2) the metamodels learn semantic information that can generalise, as opposed to merely relying on artifacts. This observation agrees with a conclusion of the extrapolation experiments in $\\ S 4 . 2$ : the metamodels generalise. ",
|
| 1193 |
+
"bbox": [
|
| 1194 |
+
174,
|
| 1195 |
+
131,
|
| 1196 |
+
825,
|
| 1197 |
+
242
|
| 1198 |
+
],
|
| 1199 |
+
"page_idx": 8
|
| 1200 |
+
},
|
| 1201 |
+
{
|
| 1202 |
+
"type": "text",
|
| 1203 |
+
"text": "Compared to those of kennen $- \\bigcirc$ , kennen $- \\dot { \\beth } \\bigcirc$ confusion matrices exhibit greater concentration of masses both on the correct class (diagonals) and among similar attribute classes (1-off diagonals for #conv, #fc, #par, bs, and size). The former re-confirms the greater accuracy, while the latter indicates the improved ability to extract more semantic and generalisable features from the query outputs. This, again, agrees with $\\ S 4 . 2$ : kennen-io generalises better than kennen $- \\bigcirc$ . ",
|
| 1204 |
+
"bbox": [
|
| 1205 |
+
174,
|
| 1206 |
+
250,
|
| 1207 |
+
825,
|
| 1208 |
+
318
|
| 1209 |
+
],
|
| 1210 |
+
"page_idx": 8
|
| 1211 |
+
},
|
| 1212 |
+
{
|
| 1213 |
+
"type": "text",
|
| 1214 |
+
"text": "4.4 DISCUSSION ",
|
| 1215 |
+
"text_level": 1,
|
| 1216 |
+
"bbox": [
|
| 1217 |
+
174,
|
| 1218 |
+
340,
|
| 1219 |
+
302,
|
| 1220 |
+
356
|
| 1221 |
+
],
|
| 1222 |
+
"page_idx": 8
|
| 1223 |
+
},
|
| 1224 |
+
{
|
| 1225 |
+
"type": "text",
|
| 1226 |
+
"text": "We have verified through our novel kennen metamodels that black-box access to a neural network exposes much internal information. We have shown that only 100 single-label outputs already reveals a great deal about a black box. When the black-box classifier is quite different from the metatraining classifiers, the performance of our best metamodel – kennen-io– decreases; however, the prediction accuracy for black box internal information is still surprisingly high. ",
|
| 1227 |
+
"bbox": [
|
| 1228 |
+
174,
|
| 1229 |
+
369,
|
| 1230 |
+
825,
|
| 1231 |
+
439
|
| 1232 |
+
],
|
| 1233 |
+
"page_idx": 8
|
| 1234 |
+
},
|
| 1235 |
+
{
|
| 1236 |
+
"type": "text",
|
| 1237 |
+
"text": "5 REVERSE-ENGINEERING AND ATTACKING IMAGENET CLASSIFIERS ",
|
| 1238 |
+
"text_level": 1,
|
| 1239 |
+
"bbox": [
|
| 1240 |
+
174,
|
| 1241 |
+
465,
|
| 1242 |
+
767,
|
| 1243 |
+
482
|
| 1244 |
+
],
|
| 1245 |
+
"page_idx": 8
|
| 1246 |
+
},
|
| 1247 |
+
{
|
| 1248 |
+
"type": "text",
|
| 1249 |
+
"text": "While MNIST experiments are computationally cheap and a massive number of controlled experiments is possible, we provide additional ImageNet experiments for practical implications on realistic image classifiers. In this section, we use kennen $- \\circ$ introduced in $\\ S 3$ to predict a single attribute of black-box ImageNet classifiers – the architecture family (e.g. ResNet or VGG?). In this section, we go a step further to use the extracted information to attack black boxes with adversarial examples. ",
|
| 1250 |
+
"bbox": [
|
| 1251 |
+
174,
|
| 1252 |
+
500,
|
| 1253 |
+
825,
|
| 1254 |
+
570
|
| 1255 |
+
],
|
| 1256 |
+
"page_idx": 8
|
| 1257 |
+
},
|
| 1258 |
+
{
|
| 1259 |
+
"type": "text",
|
| 1260 |
+
"text": "5.1 DATASET OF IMAGENET CLASSIFIERS ",
|
| 1261 |
+
"text_level": 1,
|
| 1262 |
+
"bbox": [
|
| 1263 |
+
174,
|
| 1264 |
+
593,
|
| 1265 |
+
472,
|
| 1266 |
+
608
|
| 1267 |
+
],
|
| 1268 |
+
"page_idx": 8
|
| 1269 |
+
},
|
| 1270 |
+
{
|
| 1271 |
+
"type": "text",
|
| 1272 |
+
"text": "It is computationally prohibitive to train $O ( 1 0 k )$ ImageNet classifiers from scratch as in the previous section. We have resorted to 19 PyTorch3 pretrained ImageNet classifiers. The 19 classifiers come from five families: Squeezenet, VGG, VGG-BatchNorm, ResNet, and DenseNet, each with 2, 4, 4, 5, and 4 variants, respectively (Iandola et al., 2016; Simonyan & Zisserman, 2015; Ioffe & Szegedy, 2015; He et al., 2016; Huang et al., 2017). See Appendix table 7 for the the summary of the 19 classifiers. We observe both large intra-family diversity and small inter-family separability in terms of #layers, #parameters, and performances. The family prediction task is not as trivial as e.g. simply inferring the performance. ",
|
| 1273 |
+
"bbox": [
|
| 1274 |
+
174,
|
| 1275 |
+
621,
|
| 1276 |
+
825,
|
| 1277 |
+
733
|
| 1278 |
+
],
|
| 1279 |
+
"page_idx": 8
|
| 1280 |
+
},
|
| 1281 |
+
{
|
| 1282 |
+
"type": "text",
|
| 1283 |
+
"text": "5.2 CLASSIFIER FAMILY PREDICTION ",
|
| 1284 |
+
"text_level": 1,
|
| 1285 |
+
"bbox": [
|
| 1286 |
+
178,
|
| 1287 |
+
756,
|
| 1288 |
+
441,
|
| 1289 |
+
770
|
| 1290 |
+
],
|
| 1291 |
+
"page_idx": 8
|
| 1292 |
+
},
|
| 1293 |
+
{
|
| 1294 |
+
"type": "text",
|
| 1295 |
+
"text": "We predict the classifier family (S, V, B, R, D) from the black-box query output, using the method kennen-o, with the same MLP architecture (§3). kennen-i and kennen-io have not been used for computational reasons, but can also be used in principle. We conduct 10 cross validations (random sampling of single test network from each family) for evaluation. We also perform 10 random sampling of the queries from ImageNet validation set. In total 100 random tries are averaged. ",
|
| 1296 |
+
"bbox": [
|
| 1297 |
+
174,
|
| 1298 |
+
784,
|
| 1299 |
+
825,
|
| 1300 |
+
854
|
| 1301 |
+
],
|
| 1302 |
+
"page_idx": 8
|
| 1303 |
+
},
|
| 1304 |
+
{
|
| 1305 |
+
"type": "text",
|
| 1306 |
+
"text": "Results: compared to the random chance $( 2 0 . 0 \\% )$ , 100 queries result in high kennen $- \\bigcirc$ performance $( 9 0 . 4 \\% )$ . With 1, 000 queries, the prediction performance is even $9 4 . 8 \\%$ . ",
|
| 1307 |
+
"bbox": [
|
| 1308 |
+
176,
|
| 1309 |
+
861,
|
| 1310 |
+
820,
|
| 1311 |
+
890
|
| 1312 |
+
],
|
| 1313 |
+
"page_idx": 8
|
| 1314 |
+
},
|
| 1315 |
+
{
|
| 1316 |
+
"type": "text",
|
| 1317 |
+
"text": "5.3 ATTACKING IMAGENET CLASSIFIERS ",
|
| 1318 |
+
"text_level": 1,
|
| 1319 |
+
"bbox": [
|
| 1320 |
+
176,
|
| 1321 |
+
103,
|
| 1322 |
+
467,
|
| 1323 |
+
117
|
| 1324 |
+
],
|
| 1325 |
+
"page_idx": 9
|
| 1326 |
+
},
|
| 1327 |
+
{
|
| 1328 |
+
"type": "text",
|
| 1329 |
+
"text": "In this section we attack ImageNet classifiers with adversarial image perturbations (AIPs). We show that the knowledge about the black box architecture family makes the attack more effective. ",
|
| 1330 |
+
"bbox": [
|
| 1331 |
+
174,
|
| 1332 |
+
132,
|
| 1333 |
+
823,
|
| 1334 |
+
160
|
| 1335 |
+
],
|
| 1336 |
+
"page_idx": 9
|
| 1337 |
+
},
|
| 1338 |
+
{
|
| 1339 |
+
"type": "text",
|
| 1340 |
+
"text": "ADVERSARIAL IMAGE PERTURBATION (AIP) ",
|
| 1341 |
+
"text_level": 1,
|
| 1342 |
+
"bbox": [
|
| 1343 |
+
174,
|
| 1344 |
+
184,
|
| 1345 |
+
480,
|
| 1346 |
+
198
|
| 1347 |
+
],
|
| 1348 |
+
"page_idx": 9
|
| 1349 |
+
},
|
| 1350 |
+
{
|
| 1351 |
+
"type": "text",
|
| 1352 |
+
"text": "AIPs are carefully crafted additive perturbations on the input image for the purpose of misleading the target model to predict wrong labels (Goodfellow et al., 2015). Among variants of AIPs, we use efficient and robust GAMAN (Oh et al., 2017). See appendix figure 7 for examples of AIPs; the perturbation is nearly invisible. ",
|
| 1353 |
+
"bbox": [
|
| 1354 |
+
176,
|
| 1355 |
+
210,
|
| 1356 |
+
825,
|
| 1357 |
+
266
|
| 1358 |
+
],
|
| 1359 |
+
"page_idx": 9
|
| 1360 |
+
},
|
| 1361 |
+
{
|
| 1362 |
+
"type": "text",
|
| 1363 |
+
"text": "TRANSFERABILITY OF AIPS ",
|
| 1364 |
+
"text_level": 1,
|
| 1365 |
+
"bbox": [
|
| 1366 |
+
176,
|
| 1367 |
+
290,
|
| 1368 |
+
369,
|
| 1369 |
+
303
|
| 1370 |
+
],
|
| 1371 |
+
"page_idx": 9
|
| 1372 |
+
},
|
| 1373 |
+
{
|
| 1374 |
+
"type": "text",
|
| 1375 |
+
"text": "Typical AIP algorithms require gradients from the target network, which is not available for a black box. Mainly three approaches for generating AIPs against black boxes have been proposed: (1) numerical gradient, (2) avatar network, or (3) transferability. We show that our metamodel strengthens the transferability based attack. ",
|
| 1376 |
+
"bbox": [
|
| 1377 |
+
174,
|
| 1378 |
+
316,
|
| 1379 |
+
612,
|
| 1380 |
+
386
|
| 1381 |
+
],
|
| 1382 |
+
"page_idx": 9
|
| 1383 |
+
},
|
| 1384 |
+
{
|
| 1385 |
+
"type": "table",
|
| 1386 |
+
"img_path": "images/65f0b82ca763eef29a04d96718aea3ae5c13836ad006402b2b690e57e9fdd720.jpg",
|
| 1387 |
+
"table_caption": [
|
| 1388 |
+
"Table 4: Transferability of adversarial examples within and across families. We report misclassification rates. "
|
| 1389 |
+
],
|
| 1390 |
+
"table_footnote": [],
|
| 1391 |
+
"table_body": "<table><tr><td rowspan=2 colspan=7>Target familyGen S V B R DClean 3832283029</td></tr><tr><td rowspan=1 colspan=1>38</td><td rowspan=1 colspan=1>32</td><td rowspan=1 colspan=1>28</td><td rowspan=1 colspan=1>30</td><td rowspan=1 colspan=1>29</td></tr><tr><td rowspan=1 colspan=1>S</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>49</td><td rowspan=1 colspan=1>45</td><td rowspan=1 colspan=1>39</td><td rowspan=1 colspan=1>35</td></tr><tr><td rowspan=1 colspan=1>V</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>62</td><td rowspan=1 colspan=1>96</td><td rowspan=1 colspan=1>9</td><td rowspan=1 colspan=1>57</td><td rowspan=1 colspan=1>52</td></tr><tr><td rowspan=1 colspan=1>B</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>50</td><td rowspan=1 colspan=1>85</td><td rowspan=1 colspan=1>95</td><td rowspan=1 colspan=1>47</td><td rowspan=1 colspan=1>44</td></tr><tr><td rowspan=1 colspan=1>R</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>72</td><td rowspan=1 colspan=1>78</td><td rowspan=1 colspan=1>87</td><td rowspan=1 colspan=1>77</td></tr><tr><td rowspan=1 colspan=1>D</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>58</td><td rowspan=1 colspan=1>63</td><td rowspan=1 colspan=1>70</td><td rowspan=1 colspan=1>76</td><td rowspan=1 colspan=1>90</td></tr><tr><td rowspan=1 colspan=1>Ens</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>70</td><td rowspan=1 colspan=1>93</td><td rowspan=1 colspan=1>93</td><td rowspan=1 colspan=1>75</td><td rowspan=1 colspan=1>80</td></tr></table>",
|
| 1392 |
+
"bbox": [
|
| 1393 |
+
625,
|
| 1394 |
+
351,
|
| 1395 |
+
821,
|
| 1396 |
+
502
|
| 1397 |
+
],
|
| 1398 |
+
"page_idx": 9
|
| 1399 |
+
},
|
| 1400 |
+
{
|
| 1401 |
+
"type": "text",
|
| 1402 |
+
"text": "We hypothesize and empirically show that AIPs transfer better within the architecture family than across. Using this property, we first predict the family of the black box (e.g. ResNet), and then generate AIPs against a few instances in the family (e.g. ResNet101, ResNet152). The generation of AIPs against multiple targets has been proposed by Liu et al. (2017), but we are the first to systemically show that AIPs generalise better within a family when they are generated against multiple instances from the same family. ",
|
| 1403 |
+
"bbox": [
|
| 1404 |
+
174,
|
| 1405 |
+
393,
|
| 1406 |
+
614,
|
| 1407 |
+
505
|
| 1408 |
+
],
|
| 1409 |
+
"page_idx": 9
|
| 1410 |
+
},
|
| 1411 |
+
{
|
| 1412 |
+
"type": "text",
|
| 1413 |
+
"text": "We first verify our hypothesis that AIPs transfer better within a family. Within-family: we do a leave-one-out cross validation – generate AIPs using all but one instances of the family and test on the holdout. Not using the exact test black box, this gives a lower bound on the within-family performance. Across-family: still leave out one random instance from the generating family to match the generating set size with the within-family cases. We also include the use-all case (Ens): generate AIPs with one network from each family. ",
|
| 1414 |
+
"bbox": [
|
| 1415 |
+
174,
|
| 1416 |
+
511,
|
| 1417 |
+
825,
|
| 1418 |
+
594
|
| 1419 |
+
],
|
| 1420 |
+
"page_idx": 9
|
| 1421 |
+
},
|
| 1422 |
+
{
|
| 1423 |
+
"type": "text",
|
| 1424 |
+
"text": "See table 4 for the results. We report the misclassification rate, defined as 100−top-1 accuracy, on 100 random ImageNet validation images. We observe that the within-family performances dominate the across-family ones (diagonal entries versus the others in each row); if the target black box family is identified, one can generate more effective AIPs. Finally, trying to target all network (“Ens”) is not as effective as focusing resources (diagonal entries). ",
|
| 1425 |
+
"bbox": [
|
| 1426 |
+
174,
|
| 1427 |
+
602,
|
| 1428 |
+
825,
|
| 1429 |
+
671
|
| 1430 |
+
],
|
| 1431 |
+
"page_idx": 9
|
| 1432 |
+
},
|
| 1433 |
+
{
|
| 1434 |
+
"type": "text",
|
| 1435 |
+
"text": "METAMODEL ENABLES MORE EFFECTIVE ATTACKS ",
|
| 1436 |
+
"text_level": 1,
|
| 1437 |
+
"bbox": [
|
| 1438 |
+
174,
|
| 1439 |
+
695,
|
| 1440 |
+
524,
|
| 1441 |
+
708
|
| 1442 |
+
],
|
| 1443 |
+
"page_idx": 9
|
| 1444 |
+
},
|
| 1445 |
+
{
|
| 1446 |
+
"type": "text",
|
| 1447 |
+
"text": "We empirically show that the reverse-engineering enables more effective attacks. We consider multiple scenarios. “White box” means the target model is fully known, and the AIP is generated specifically for this model. “Black box” means the exact target is unknown, but we make a distinction when the family is known (“Family black box”). ",
|
| 1448 |
+
"bbox": [
|
| 1449 |
+
174,
|
| 1450 |
+
722,
|
| 1451 |
+
825,
|
| 1452 |
+
777
|
| 1453 |
+
],
|
| 1454 |
+
"page_idx": 9
|
| 1455 |
+
},
|
| 1456 |
+
{
|
| 1457 |
+
"type": "text",
|
| 1458 |
+
"text": "See table 5 for the misclassification rates (MC) in different scenarios. When the target is fully specified (white box), MC is $100 \\%$ . When neither the exact target nor the family is known, AIPs are generated against multiple families $( 8 2 . 2 \\% )$ . When the reverse-engineering takes place, and AIPs are generated over the predicted family, attacks become more effective $( 8 5 . 7 \\% )$ . We almost reach the family-oracle case $( 8 6 . 2 \\% )$ . ",
|
| 1459 |
+
"bbox": [
|
| 1460 |
+
174,
|
| 1461 |
+
785,
|
| 1462 |
+
483,
|
| 1463 |
+
922
|
| 1464 |
+
],
|
| 1465 |
+
"page_idx": 9
|
| 1466 |
+
},
|
| 1467 |
+
{
|
| 1468 |
+
"type": "table",
|
| 1469 |
+
"img_path": "images/29c02aff1a08af189770212c633260418daf83a942c4965c0d16135a7fea2cbb.jpg",
|
| 1470 |
+
"table_caption": [
|
| 1471 |
+
"Table 5: Black-box ImageNet classifier misclassification rates (MC) for different approaches. "
|
| 1472 |
+
],
|
| 1473 |
+
"table_footnote": [],
|
| 1474 |
+
"table_body": "<table><tr><td>Scenario</td><td>Generating nets</td><td>MC(%)</td></tr><tr><td>White box</td><td>Single white box</td><td>100.0</td></tr><tr><td>Family black box</td><td>GT family</td><td>86.2</td></tr><tr><td>Black box whitened</td><td>Predicted family</td><td>85.7</td></tr><tr><td>Black box</td><td>Multiple families</td><td>82.2</td></tr></table>",
|
| 1475 |
+
"bbox": [
|
| 1476 |
+
498,
|
| 1477 |
+
827,
|
| 1478 |
+
834,
|
| 1479 |
+
909
|
| 1480 |
+
],
|
| 1481 |
+
"page_idx": 9
|
| 1482 |
+
},
|
| 1483 |
+
{
|
| 1484 |
+
"type": "text",
|
| 1485 |
+
"text": "5.4 DISCUSSION ",
|
| 1486 |
+
"text_level": 1,
|
| 1487 |
+
"bbox": [
|
| 1488 |
+
174,
|
| 1489 |
+
103,
|
| 1490 |
+
302,
|
| 1491 |
+
117
|
| 1492 |
+
],
|
| 1493 |
+
"page_idx": 10
|
| 1494 |
+
},
|
| 1495 |
+
{
|
| 1496 |
+
"type": "text",
|
| 1497 |
+
"text": "Our metamodel can predict architecture families for ImageNet classifiers with high accuracy. We additionally show that this reverse-engineering enables more focused attack on black-boxes. ",
|
| 1498 |
+
"bbox": [
|
| 1499 |
+
174,
|
| 1500 |
+
130,
|
| 1501 |
+
823,
|
| 1502 |
+
159
|
| 1503 |
+
],
|
| 1504 |
+
"page_idx": 10
|
| 1505 |
+
},
|
| 1506 |
+
{
|
| 1507 |
+
"type": "text",
|
| 1508 |
+
"text": "6 CONCLUSION ",
|
| 1509 |
+
"text_level": 1,
|
| 1510 |
+
"bbox": [
|
| 1511 |
+
176,
|
| 1512 |
+
179,
|
| 1513 |
+
318,
|
| 1514 |
+
195
|
| 1515 |
+
],
|
| 1516 |
+
"page_idx": 10
|
| 1517 |
+
},
|
| 1518 |
+
{
|
| 1519 |
+
"type": "text",
|
| 1520 |
+
"text": "We have presented first results on the inference of diverse neural network attributes from a sequence of input-output queries. Our novel metamodel methods, kennen, can successfully predict attributes related not only to the architecture but also to training hyperparameters (optimisation algorithm and dataset) even in difficult scenarios (e.g. single-label output, or a distribution gap between the metatraining models and the target black box). We have additionally shown in ImageNet experiments that reverse-engineering a black box makes it more vulnerable to adversarial examples. ",
|
| 1521 |
+
"bbox": [
|
| 1522 |
+
174,
|
| 1523 |
+
210,
|
| 1524 |
+
825,
|
| 1525 |
+
295
|
| 1526 |
+
],
|
| 1527 |
+
"page_idx": 10
|
| 1528 |
+
},
|
| 1529 |
+
{
|
| 1530 |
+
"type": "text",
|
| 1531 |
+
"text": "ACKNOWLEDGMENTS ",
|
| 1532 |
+
"text_level": 1,
|
| 1533 |
+
"bbox": [
|
| 1534 |
+
176,
|
| 1535 |
+
313,
|
| 1536 |
+
326,
|
| 1537 |
+
325
|
| 1538 |
+
],
|
| 1539 |
+
"page_idx": 10
|
| 1540 |
+
},
|
| 1541 |
+
{
|
| 1542 |
+
"type": "text",
|
| 1543 |
+
"text": "This research was supported by the German Research Foundation (DFG CRC 1223). We thank Seong Ah Choi for her help with the method names, graphics, and colour palettes. ",
|
| 1544 |
+
"bbox": [
|
| 1545 |
+
176,
|
| 1546 |
+
335,
|
| 1547 |
+
823,
|
| 1548 |
+
364
|
| 1549 |
+
],
|
| 1550 |
+
"page_idx": 10
|
| 1551 |
+
},
|
| 1552 |
+
{
|
| 1553 |
+
"type": "text",
|
| 1554 |
+
"text": "REFERENCES ",
|
| 1555 |
+
"text_level": 1,
|
| 1556 |
+
"bbox": [
|
| 1557 |
+
174,
|
| 1558 |
+
386,
|
| 1559 |
+
285,
|
| 1560 |
+
401
|
| 1561 |
+
],
|
| 1562 |
+
"page_idx": 10
|
| 1563 |
+
},
|
| 1564 |
+
{
|
| 1565 |
+
"type": "text",
|
| 1566 |
+
"text": "Giuseppe Ateniese, Giovanni Felici, Liugi V. Mancini, Angelo Spognardi, Antonio Villani, and Domenico Vitali. Hacking smart machines with smarter ones: How to extract meaningful data from machine learning classifiers. In IJSN, 2015. ",
|
| 1567 |
+
"bbox": [
|
| 1568 |
+
174,
|
| 1569 |
+
409,
|
| 1570 |
+
825,
|
| 1571 |
+
452
|
| 1572 |
+
],
|
| 1573 |
+
"page_idx": 10
|
| 1574 |
+
},
|
| 1575 |
+
{
|
| 1576 |
+
"type": "text",
|
| 1577 |
+
"text": "Pin-Yu Chen, Huan Zhang, Yash Sharma, Jinfeng Yi, and Cho-Jui Hsieh. Zoo: Zeroth order optimization based black-box attacks to deep neural networks without training substitute models. In ACMCCS-W, 2017. ",
|
| 1578 |
+
"bbox": [
|
| 1579 |
+
174,
|
| 1580 |
+
462,
|
| 1581 |
+
825,
|
| 1582 |
+
505
|
| 1583 |
+
],
|
| 1584 |
+
"page_idx": 10
|
| 1585 |
+
},
|
| 1586 |
+
{
|
| 1587 |
+
"type": "text",
|
| 1588 |
+
"text": "Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In ICLR, 2015. ",
|
| 1589 |
+
"bbox": [
|
| 1590 |
+
171,
|
| 1591 |
+
515,
|
| 1592 |
+
823,
|
| 1593 |
+
544
|
| 1594 |
+
],
|
| 1595 |
+
"page_idx": 10
|
| 1596 |
+
},
|
| 1597 |
+
{
|
| 1598 |
+
"type": "text",
|
| 1599 |
+
"text": "Jamie Hayes and George Danezis. Machine learning as an adversarial service: Learning black-box adversarial examples. 2017. ",
|
| 1600 |
+
"bbox": [
|
| 1601 |
+
173,
|
| 1602 |
+
554,
|
| 1603 |
+
823,
|
| 1604 |
+
583
|
| 1605 |
+
],
|
| 1606 |
+
"page_idx": 10
|
| 1607 |
+
},
|
| 1608 |
+
{
|
| 1609 |
+
"type": "text",
|
| 1610 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. ",
|
| 1611 |
+
"bbox": [
|
| 1612 |
+
173,
|
| 1613 |
+
593,
|
| 1614 |
+
821,
|
| 1615 |
+
622
|
| 1616 |
+
],
|
| 1617 |
+
"page_idx": 10
|
| 1618 |
+
},
|
| 1619 |
+
{
|
| 1620 |
+
"type": "text",
|
| 1621 |
+
"text": "Gao Huang, Zhuang Liu, Laurens van der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2017. ",
|
| 1622 |
+
"bbox": [
|
| 1623 |
+
173,
|
| 1624 |
+
632,
|
| 1625 |
+
825,
|
| 1626 |
+
675
|
| 1627 |
+
],
|
| 1628 |
+
"page_idx": 10
|
| 1629 |
+
},
|
| 1630 |
+
{
|
| 1631 |
+
"type": "text",
|
| 1632 |
+
"text": "Forrest N. Iandola, Song Han, Matthew W. Moskewicz, Khalid Ashraf, William J. Dally, and Kurt Keutzer. Squeezenet: Alexnet-level accuracy with $5 0 \\mathrm { x }$ fewer parameters and ${ < } 0 . 5 \\mathrm { m b }$ model size. arXiv, 2016. ",
|
| 1633 |
+
"bbox": [
|
| 1634 |
+
173,
|
| 1635 |
+
685,
|
| 1636 |
+
825,
|
| 1637 |
+
728
|
| 1638 |
+
],
|
| 1639 |
+
"page_idx": 10
|
| 1640 |
+
},
|
| 1641 |
+
{
|
| 1642 |
+
"type": "text",
|
| 1643 |
+
"text": "Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, 2015. ",
|
| 1644 |
+
"bbox": [
|
| 1645 |
+
169,
|
| 1646 |
+
738,
|
| 1647 |
+
823,
|
| 1648 |
+
767
|
| 1649 |
+
],
|
| 1650 |
+
"page_idx": 10
|
| 1651 |
+
},
|
| 1652 |
+
{
|
| 1653 |
+
"type": "text",
|
| 1654 |
+
"text": "Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to ´ document recognition. Proceedings of the IEEE, 1998. ",
|
| 1655 |
+
"bbox": [
|
| 1656 |
+
171,
|
| 1657 |
+
777,
|
| 1658 |
+
825,
|
| 1659 |
+
806
|
| 1660 |
+
],
|
| 1661 |
+
"page_idx": 10
|
| 1662 |
+
},
|
| 1663 |
+
{
|
| 1664 |
+
"type": "text",
|
| 1665 |
+
"text": "Yanpei Liu, Xinyun Chen, Chang Liu, and Dawn Song. Delving into transferable adversarial examples and black-box attacks. In ICLR, 2017. ",
|
| 1666 |
+
"bbox": [
|
| 1667 |
+
173,
|
| 1668 |
+
816,
|
| 1669 |
+
823,
|
| 1670 |
+
845
|
| 1671 |
+
],
|
| 1672 |
+
"page_idx": 10
|
| 1673 |
+
},
|
| 1674 |
+
{
|
| 1675 |
+
"type": "text",
|
| 1676 |
+
"text": "Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, Omar Fawzi, and Pascal Frossard. Universal adversarial perturbations. In CVPR, 2017. ",
|
| 1677 |
+
"bbox": [
|
| 1678 |
+
173,
|
| 1679 |
+
856,
|
| 1680 |
+
823,
|
| 1681 |
+
885
|
| 1682 |
+
],
|
| 1683 |
+
"page_idx": 10
|
| 1684 |
+
},
|
| 1685 |
+
{
|
| 1686 |
+
"type": "text",
|
| 1687 |
+
"text": "Nina Narodytska and Shiva Prasad Kasiviswanathan. Simple black-box adversarial perturbations for deep networks. In CVPRW, 2017. ",
|
| 1688 |
+
"bbox": [
|
| 1689 |
+
174,
|
| 1690 |
+
895,
|
| 1691 |
+
823,
|
| 1692 |
+
924
|
| 1693 |
+
],
|
| 1694 |
+
"page_idx": 10
|
| 1695 |
+
},
|
| 1696 |
+
{
|
| 1697 |
+
"type": "text",
|
| 1698 |
+
"text": "S. J. Oh, Mario Fritz, and Bernt Schiele. Adversarial image perturbation for privacy protection a game theory perspective. In ICCV, 2017. ",
|
| 1699 |
+
"bbox": [
|
| 1700 |
+
171,
|
| 1701 |
+
103,
|
| 1702 |
+
825,
|
| 1703 |
+
132
|
| 1704 |
+
],
|
| 1705 |
+
"page_idx": 11
|
| 1706 |
+
},
|
| 1707 |
+
{
|
| 1708 |
+
"type": "text",
|
| 1709 |
+
"text": "Nicolas Papernot, Patrick McDaniel, and Ian Goodfellow. Transferability in machine learning: from phenomena to black-box attacks using adversarial samples. arXiv, 2016a. ",
|
| 1710 |
+
"bbox": [
|
| 1711 |
+
171,
|
| 1712 |
+
140,
|
| 1713 |
+
823,
|
| 1714 |
+
170
|
| 1715 |
+
],
|
| 1716 |
+
"page_idx": 11
|
| 1717 |
+
},
|
| 1718 |
+
{
|
| 1719 |
+
"type": "text",
|
| 1720 |
+
"text": "Nicolas Papernot, Patrick McDaniel, Ian Goodfellow, Somesh Jha, Z. Berkay Celik, and Anathram Swami. Practical black-box attacks against deep learning systems using adversarial examples. 2016b. ",
|
| 1721 |
+
"bbox": [
|
| 1722 |
+
174,
|
| 1723 |
+
178,
|
| 1724 |
+
823,
|
| 1725 |
+
220
|
| 1726 |
+
],
|
| 1727 |
+
"page_idx": 11
|
| 1728 |
+
},
|
| 1729 |
+
{
|
| 1730 |
+
"type": "text",
|
| 1731 |
+
"text": "Nicolas Papernot, Patrick McDaniel, Ian Goodfellow, Somesh Jha, Z Berkay Celik, and Ananthram Swami. Practical black-box attacks against deep learning systems using adversarial examples. In ASIACCS, 2017. ",
|
| 1732 |
+
"bbox": [
|
| 1733 |
+
176,
|
| 1734 |
+
231,
|
| 1735 |
+
823,
|
| 1736 |
+
272
|
| 1737 |
+
],
|
| 1738 |
+
"page_idx": 11
|
| 1739 |
+
},
|
| 1740 |
+
{
|
| 1741 |
+
"type": "text",
|
| 1742 |
+
"text": "Reza Shokri, Marco Stronati, Congzheng Song, and Vitaly Shmatikov. Membership inference attacks against machine learning models. In SP, 2017. ",
|
| 1743 |
+
"bbox": [
|
| 1744 |
+
173,
|
| 1745 |
+
281,
|
| 1746 |
+
823,
|
| 1747 |
+
310
|
| 1748 |
+
],
|
| 1749 |
+
"page_idx": 11
|
| 1750 |
+
},
|
| 1751 |
+
{
|
| 1752 |
+
"type": "text",
|
| 1753 |
+
"text": "K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. ",
|
| 1754 |
+
"bbox": [
|
| 1755 |
+
173,
|
| 1756 |
+
319,
|
| 1757 |
+
821,
|
| 1758 |
+
348
|
| 1759 |
+
],
|
| 1760 |
+
"page_idx": 11
|
| 1761 |
+
},
|
| 1762 |
+
{
|
| 1763 |
+
"type": "text",
|
| 1764 |
+
"text": "Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In ICLR, 2014. ",
|
| 1765 |
+
"bbox": [
|
| 1766 |
+
174,
|
| 1767 |
+
357,
|
| 1768 |
+
823,
|
| 1769 |
+
387
|
| 1770 |
+
],
|
| 1771 |
+
"page_idx": 11
|
| 1772 |
+
},
|
| 1773 |
+
{
|
| 1774 |
+
"type": "text",
|
| 1775 |
+
"text": "Florian Tramer, Fan Zhang, Ari Juels, Michael K. Reiter, and Thomas Ristenpart. Stealing machine learning models via prediction apis. In USENIX, 2016. ",
|
| 1776 |
+
"bbox": [
|
| 1777 |
+
173,
|
| 1778 |
+
395,
|
| 1779 |
+
821,
|
| 1780 |
+
424
|
| 1781 |
+
],
|
| 1782 |
+
"page_idx": 11
|
| 1783 |
+
},
|
| 1784 |
+
{
|
| 1785 |
+
"type": "text",
|
| 1786 |
+
"text": "L.J.P van der Maaten and G.E. Hinton. Visualizing high-dimensional data using t-sne. Journal of Machine Learning Research, 9: 25792605, Nov 2008. ",
|
| 1787 |
+
"bbox": [
|
| 1788 |
+
174,
|
| 1789 |
+
433,
|
| 1790 |
+
823,
|
| 1791 |
+
462
|
| 1792 |
+
],
|
| 1793 |
+
"page_idx": 11
|
| 1794 |
+
},
|
| 1795 |
+
{
|
| 1796 |
+
"type": "text",
|
| 1797 |
+
"text": "APPENDIX ",
|
| 1798 |
+
"bbox": [
|
| 1799 |
+
176,
|
| 1800 |
+
102,
|
| 1801 |
+
264,
|
| 1802 |
+
118
|
| 1803 |
+
],
|
| 1804 |
+
"page_idx": 12
|
| 1805 |
+
},
|
| 1806 |
+
{
|
| 1807 |
+
"type": "text",
|
| 1808 |
+
"text": "A MNIST-NETS STATISTICS ",
|
| 1809 |
+
"bbox": [
|
| 1810 |
+
176,
|
| 1811 |
+
136,
|
| 1812 |
+
428,
|
| 1813 |
+
151
|
| 1814 |
+
],
|
| 1815 |
+
"page_idx": 12
|
| 1816 |
+
},
|
| 1817 |
+
{
|
| 1818 |
+
"type": "text",
|
| 1819 |
+
"text": "We show the statistics of MNIST-NETS, our dataset of MNIST classifiers, in table 6. ",
|
| 1820 |
+
"bbox": [
|
| 1821 |
+
178,
|
| 1822 |
+
166,
|
| 1823 |
+
732,
|
| 1824 |
+
183
|
| 1825 |
+
],
|
| 1826 |
+
"page_idx": 12
|
| 1827 |
+
},
|
| 1828 |
+
{
|
| 1829 |
+
"type": "text",
|
| 1830 |
+
"text": "B MORE K E N N E N-I O RESULTS ",
|
| 1831 |
+
"bbox": [
|
| 1832 |
+
174,
|
| 1833 |
+
202,
|
| 1834 |
+
447,
|
| 1835 |
+
218
|
| 1836 |
+
],
|
| 1837 |
+
"page_idx": 12
|
| 1838 |
+
},
|
| 1839 |
+
{
|
| 1840 |
+
"type": "text",
|
| 1841 |
+
"text": "We complement the kennen-o results in the main paper (figure 4) with kennen-io results. See figure 5. Similarly for kennen-o, kennen-io shows a diminishing return as the number of training models and the number of queries increase. While the performance saturates with $1 , 0 0 0$ queries, it does not fully saturate with 5, 000 training samples. ",
|
| 1842 |
+
"bbox": [
|
| 1843 |
+
174,
|
| 1844 |
+
233,
|
| 1845 |
+
825,
|
| 1846 |
+
290
|
| 1847 |
+
],
|
| 1848 |
+
"page_idx": 12
|
| 1849 |
+
},
|
| 1850 |
+
{
|
| 1851 |
+
"type": "text",
|
| 1852 |
+
"text": "C ON FINDING THE OPTIMAL SET OF QUERIES ",
|
| 1853 |
+
"text_level": 1,
|
| 1854 |
+
"bbox": [
|
| 1855 |
+
174,
|
| 1856 |
+
310,
|
| 1857 |
+
568,
|
| 1858 |
+
325
|
| 1859 |
+
],
|
| 1860 |
+
"page_idx": 12
|
| 1861 |
+
},
|
| 1862 |
+
{
|
| 1863 |
+
"type": "text",
|
| 1864 |
+
"text": "kennen-o selects a random set of queries from MNIST validation set (§3.2). We measure the sensitivity of kennen-o performance with respect to the choice of queries, and discuss the possibility to optimise the set of queries. ",
|
| 1865 |
+
"bbox": [
|
| 1866 |
+
176,
|
| 1867 |
+
340,
|
| 1868 |
+
823,
|
| 1869 |
+
383
|
| 1870 |
+
],
|
| 1871 |
+
"page_idx": 12
|
| 1872 |
+
},
|
| 1873 |
+
{
|
| 1874 |
+
"type": "text",
|
| 1875 |
+
"text": "With 1, 10, or 100 queries, we have trained kennen-o with 100 independent samples of query sets. The mean and standard deviations are shown in figure 6. The sensitivity is greater for smaller number of queries, but still minute ${ \\mathrm { ( 1 . 2 p p } }$ standard deviation). ",
|
| 1876 |
+
"bbox": [
|
| 1877 |
+
174,
|
| 1878 |
+
390,
|
| 1879 |
+
823,
|
| 1880 |
+
433
|
| 1881 |
+
],
|
| 1882 |
+
"page_idx": 12
|
| 1883 |
+
},
|
| 1884 |
+
{
|
| 1885 |
+
"type": "text",
|
| 1886 |
+
"text": "Instead of solving the combinatorial problem of finding the optimal set of query inputs from a dataset, we have proposed kennen-io that efficiently solves a continuous optimisation problem to find a set of query inputs from the entire input space. We have compared kennen-io against kennen-o with multiple query samples in figure 6. We observe that kennen-io is better than kennen-o with all 100 query set samples at each level. ",
|
| 1887 |
+
"bbox": [
|
| 1888 |
+
174,
|
| 1889 |
+
439,
|
| 1890 |
+
825,
|
| 1891 |
+
508
|
| 1892 |
+
],
|
| 1893 |
+
"page_idx": 12
|
| 1894 |
+
},
|
| 1895 |
+
{
|
| 1896 |
+
"type": "text",
|
| 1897 |
+
"text": "We remark that there exists a trade-off between detectability and effectiveness of exploration. While kennen-io extracts information from target model more effectively, it increases the detectability of attack by submitting out-of-domain inputs. If it is possible to optimise or sample the set of natural queries from a dataset or distribution of natural inputs, it will be a strong attack; developing such a method would be an interesting future work. ",
|
| 1898 |
+
"bbox": [
|
| 1899 |
+
174,
|
| 1900 |
+
516,
|
| 1901 |
+
825,
|
| 1902 |
+
587
|
| 1903 |
+
],
|
| 1904 |
+
"page_idx": 12
|
| 1905 |
+
},
|
| 1906 |
+
{
|
| 1907 |
+
"type": "text",
|
| 1908 |
+
"text": "D T-SNE VISUALISATION OF METAMODEL INPUTS ",
|
| 1909 |
+
"text_level": 1,
|
| 1910 |
+
"bbox": [
|
| 1911 |
+
174,
|
| 1912 |
+
607,
|
| 1913 |
+
606,
|
| 1914 |
+
622
|
| 1915 |
+
],
|
| 1916 |
+
"page_idx": 12
|
| 1917 |
+
},
|
| 1918 |
+
{
|
| 1919 |
+
"type": "text",
|
| 1920 |
+
"text": "We describe the detailed procedure for the metamodel input visualisation experiment (discussed in $\\ S 4 . 3 )$ . First, 1000 test-split (Random split) black-box models are collected. For each model, 100 query images are passed (sampled at random from MNIST validation set), resulting in $1 0 0 \\times 1 0$ dimensional input data points. We have used t-SNE(van der Maaten & Hinton, Nov 2008) to embed the data points onto the 2-dimensional plane. Each data point is coloured according to each attribute class. The results for kennen-o and kennen-io are shown in figures 9 and 10. Since t-SNE is sensitive to initialisation, we have run the embedding ten times with different random initialisations; the qualitative observations are largely identical. ",
|
| 1921 |
+
"bbox": [
|
| 1922 |
+
174,
|
| 1923 |
+
637,
|
| 1924 |
+
825,
|
| 1925 |
+
750
|
| 1926 |
+
],
|
| 1927 |
+
"page_idx": 12
|
| 1928 |
+
},
|
| 1929 |
+
{
|
| 1930 |
+
"type": "text",
|
| 1931 |
+
"text": "E VISUAL EXAMPLES OF AIPS ",
|
| 1932 |
+
"text_level": 1,
|
| 1933 |
+
"bbox": [
|
| 1934 |
+
174,
|
| 1935 |
+
770,
|
| 1936 |
+
441,
|
| 1937 |
+
785
|
| 1938 |
+
],
|
| 1939 |
+
"page_idx": 12
|
| 1940 |
+
},
|
| 1941 |
+
{
|
| 1942 |
+
"type": "text",
|
| 1943 |
+
"text": "In this section, we show examples of AIPs. See figure 7 for the examples of AIPs and the perturbed images. The perturbation is nearly invisible to human eyes. We have also generated AIPs with respect to a diverse set of architecture families (S, V, B, R, D, SVBRD) at multiple $L _ { 2 }$ norm levels. See figure 8; the same image results in a diverse set of patterns depending on the architecture family. ",
|
| 1944 |
+
"bbox": [
|
| 1945 |
+
174,
|
| 1946 |
+
801,
|
| 1947 |
+
825,
|
| 1948 |
+
857
|
| 1949 |
+
],
|
| 1950 |
+
"page_idx": 12
|
| 1951 |
+
},
|
| 1952 |
+
{
|
| 1953 |
+
"type": "table",
|
| 1954 |
+
"img_path": "images/e0b442d1a0e3e2737714c27387823185056671dc36ef7e214aff81ca756300b6.jpg",
|
| 1955 |
+
"table_caption": [
|
| 1956 |
+
"Table 6: Distribution of attributes in MNIST-NETS, and attribute-wise classification performance (on MNIST validation set). Observe that the attributes are evenly distributed and the corresponding classification accuracies also do not correlate much with the attributes. We thus make sure that the classification accuracy alone cannot be a strong cue for predicting attributes. "
|
| 1957 |
+
],
|
| 1958 |
+
"table_footnote": [],
|
| 1959 |
+
"table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"4\">arch/act</td><td colspan=\"2\">arch/drop</td><td colspan=\"2\">arch/pool</td><td colspan=\"2\">arch/ks</td><td colspan=\"3\">arch/#conv</td><td colspan=\"3\">arch/#fc</td></tr><tr><td>Tanh PReLU</td><td></td><td>ReLU</td><td>ELU</td><td>YesNo</td><td></td><td>YesNo</td><td></td><td>5</td><td>3</td><td>2</td><td>3</td><td>4</td><td>2</td><td>3</td><td>4</td></tr><tr><td>Ratio</td><td>24.8</td><td>24.9</td><td>25.3</td><td>25.1</td><td>49.8 50.3</td><td></td><td>49.9 50.2</td><td></td><td>50.3 49.7</td><td></td><td></td><td></td><td>34.0 33.4 32.7</td><td></td><td>33.1 33.5 33.4</td><td></td></tr><tr><td>max</td><td>99.4</td><td>99.4</td><td>99.5</td><td>99.4</td><td>99.5 99.4</td><td></td><td>99.4 99.5</td><td></td><td>99.5 99.4</td><td></td><td>99.4 99.4 99.5</td><td></td><td></td><td></td><td>99.4 99.4 99.5</td><td></td></tr><tr><td>median</td><td>98.6</td><td>98.7</td><td>98.7</td><td>98.7</td><td>98.7 98.6</td><td></td><td>98.7 98.5</td><td></td><td>98.7 98.6</td><td></td><td>98.6 98.7 98.7</td><td></td><td></td><td></td><td>98.7 98.6 98.6</td><td></td></tr><tr><td>mean</td><td>98.6</td><td>98.7</td><td>98.7</td><td>98.7</td><td>98.7 98.6</td><td></td><td>98.7 98.6</td><td></td><td>98.7 98.6</td><td></td><td>98.6 98.7 98.7</td><td></td><td></td><td></td><td>98.7 98.6 98.6</td><td></td></tr><tr><td>min</td><td>98.0</td><td>98.0</td><td>98.0</td><td>98.0</td><td>98.0 98.0</td><td></td><td>98.0 98.0</td><td></td><td>98.0 98.0</td><td></td><td>98.098.0 98.0</td><td></td><td></td><td></td><td>98.0 98.0 98.0</td><td></td></tr><tr><td colspan=\"3\" rowspan=\"8\"></td><td rowspan=\"8\"></td><td colspan=\"3\">opt/alg</td><td colspan=\"3\"></td><td colspan=\"2\"></td><td colspan=\"3\"></td><td colspan=\"3\"></td></tr><tr><td colspan=\"3\"></td><td colspan=\"3\">ADAM SGD</td><td colspan=\"3\">opt/bs 64 128 256</td><td colspan=\"3\">data/size all half</td><td colspan=\"3\"></td></tr><tr><td colspan=\"3\"></td><td colspan=\"3\">RMSprop</td><td colspan=\"3\"></td><td colspan=\"3\"></td><td colspan=\"3\">quarter</td></tr><tr><td colspan=\"3\">Ratio</td><td colspan=\"3\">33.8 32.5</td><td colspan=\"3\">33.7 32.9 33.6</td><td colspan=\"3\">533.7 14.8 28.5</td><td colspan=\"3\">56.8</td></tr><tr><td colspan=\"3\">max</td><td colspan=\"3\">99.2 99.4</td><td colspan=\"3\">99.5 99.399.4 99.5</td><td colspan=\"3\">99.5 99.3</td><td colspan=\"3\">99.1</td></tr><tr><td colspan=\"3\">median</td><td colspan=\"3\">98.6 98.7</td><td colspan=\"3\">98.7 98.6 98.7</td><td colspan=\"3\">98.7 99.0 98.8</td><td colspan=\"3\">98.5</td></tr><tr><td colspan=\"3\">mean</td><td colspan=\"3\">98.6 98.7 98.0</td><td colspan=\"3\">98.6 98.7 98.6</td><td colspan=\"3\">98.9 98.8</td><td colspan=\"3\">98.5</td></tr><tr><td colspan=\"3\">min</td><td colspan=\"3\">98.0</td><td colspan=\"3\">98.7 98.0</td><td colspan=\"2\">98.0 98.0 98.0</td><td colspan=\"3\">98.098.0 98.0</td><td colspan=\"3\"></td></tr></table>",
|
| 1960 |
+
"bbox": [
|
| 1961 |
+
207,
|
| 1962 |
+
196,
|
| 1963 |
+
790,
|
| 1964 |
+
373
|
| 1965 |
+
],
|
| 1966 |
+
"page_idx": 13
|
| 1967 |
+
},
|
| 1968 |
+
{
|
| 1969 |
+
"type": "image",
|
| 1970 |
+
"img_path": "images/2591ebc40c456a41a0360c3af7b74b2f60d31409457f2281d7ae496eeeda3910.jpg",
|
| 1971 |
+
"image_caption": [
|
| 1972 |
+
"Figure 5: Performance of kennen $- \\dot { \\textrm { \\scriptsize 1 0 } }$ with different number of queries (Left) and size of training set (Right). The curves are linearly scaled per attribute such that random chance performs $0 \\%$ , and perfect predictor performs $100 \\%$ . "
|
| 1973 |
+
],
|
| 1974 |
+
"image_footnote": [],
|
| 1975 |
+
"bbox": [
|
| 1976 |
+
207,
|
| 1977 |
+
416,
|
| 1978 |
+
784,
|
| 1979 |
+
593
|
| 1980 |
+
],
|
| 1981 |
+
"page_idx": 13
|
| 1982 |
+
},
|
| 1983 |
+
{
|
| 1984 |
+
"type": "image",
|
| 1985 |
+
"img_path": "images/aa21f340358fa8cad0b129db92e2fb3d4c40bfc2a1e89e2663eb439b519487c5.jpg",
|
| 1986 |
+
"image_caption": [
|
| 1987 |
+
"Figure 6: kennen $- \\mathrm { { O } / \\ i \\mathrm { { O } } }$ performance at different number of queries. kennen $- \\bigcirc$ is shown with 100 independent query samples per level (black dots) – the dots are spread horizontally for visualisation purpose. Their mean (curve) and $\\pm 2$ standard deviations (error bars) are also shown. "
|
| 1988 |
+
],
|
| 1989 |
+
"image_footnote": [],
|
| 1990 |
+
"bbox": [
|
| 1991 |
+
364,
|
| 1992 |
+
696,
|
| 1993 |
+
629,
|
| 1994 |
+
848
|
| 1995 |
+
],
|
| 1996 |
+
"page_idx": 13
|
| 1997 |
+
},
|
| 1998 |
+
{
|
| 1999 |
+
"type": "table",
|
| 2000 |
+
"img_path": "images/f918e4619912745c68698b0cc958755370ace4425bac4ea81390b40a874f332e.jpg",
|
| 2001 |
+
"table_caption": [
|
| 2002 |
+
"Table 7: Details of ImageNet classifiers. We describe each family Squeezenet, VGG, VGGBatchNorm, ResNet, and DenseNet verbally, and show key model statistics for each member in the family. We observe intra-family diversity (e.g. R) and inter-family similarity (e.g. between V and B) in terms of the top-5 validation error and the number of trainable parameters. "
|
| 2003 |
+
],
|
| 2004 |
+
"table_footnote": [],
|
| 2005 |
+
"table_body": "<table><tr><td></td><td colspan=\"2\">S (2016)</td><td colspan=\"4\">V (2014)</td><td colspan=\"4\">B (2015)</td><td colspan=\"4\">R (2015)</td><td colspan=\"4\">D (2016)</td></tr><tr><td>Description</td><td colspan=\"2\">Lightweight convnet</td><td colspan=\"4\">Conv layers followed by fc layers</td><td colspan=\"4\">VGG with batch normalisation</td><td colspan=\"4\">Very deep convnet with residual connections</td><td colspan=\"4\">ResNet with dense residual connections</td></tr><tr><td>Members</td><td>v1.0</td><td>v1.1</td><td>11</td><td>13</td><td>16</td><td>19</td><td>11</td><td>13</td><td>16 19</td><td>18</td><td>34</td><td>50</td><td>101</td><td>152</td><td>121</td><td>161</td><td>169</td><td>201</td></tr><tr><td>#layers</td><td>26</td><td>26</td><td>11</td><td>13</td><td>16</td><td>19</td><td>11</td><td>13</td><td>19</td><td>21</td><td>37</td><td>54</td><td>105</td><td>156</td><td>121</td><td>161</td><td>169</td><td>201</td></tr><tr><td>log10 #params</td><td>6.1</td><td>6.1</td><td>8.1</td><td>8.1</td><td>8.1</td><td>8.2</td><td>8.1 8.1</td><td>16 8.1</td><td>8.2</td><td>7.1</td><td>7.3</td><td>7.4</td><td>7.6</td><td>7.8</td><td>6.9</td><td>7.3</td><td>7.5</td><td>7.2</td></tr><tr><td>Top-1 error</td><td>41.9</td><td>41.8</td><td>31.0</td><td>30.1</td><td>28.4</td><td>27.6</td><td>29.6 28.5</td><td>26.6</td><td>25.8</td><td>30.2</td><td>26.7</td><td>23.9</td><td>22.6</td><td>21.7</td><td>25.4</td><td>24.0</td><td>22.8</td><td>22.4</td></tr><tr><td>Top-5 error</td><td>19.6</td><td>19.4</td><td>11.4</td><td>10.8</td><td>9.6</td><td>9.1</td><td>10.2</td><td>9.6 8.5</td><td>8.2</td><td>10.9</td><td>8.6</td><td>7.1</td><td>6.4</td><td>5.9</td><td>7.8</td><td>6.2</td><td>7.0</td><td>6.4</td></tr></table>",
|
| 2006 |
+
"bbox": [
|
| 2007 |
+
173,
|
| 2008 |
+
301,
|
| 2009 |
+
862,
|
| 2010 |
+
393
|
| 2011 |
+
],
|
| 2012 |
+
"page_idx": 14
|
| 2013 |
+
},
|
| 2014 |
+
{
|
| 2015 |
+
"type": "image",
|
| 2016 |
+
"img_path": "images/bf5f50605242e71d8714b65ce09748d1a4de804897781b1689fa39fecbf062ff.jpg",
|
| 2017 |
+
"image_caption": [
|
| 2018 |
+
"Figure 7: AIP for an ImageNet classifier. The perturbations are generated at $L _ { 2 } = 1 \\times 1 0 ^ { - 4 }$ . "
|
| 2019 |
+
],
|
| 2020 |
+
"image_footnote": [],
|
| 2021 |
+
"bbox": [
|
| 2022 |
+
184,
|
| 2023 |
+
662,
|
| 2024 |
+
836,
|
| 2025 |
+
757
|
| 2026 |
+
],
|
| 2027 |
+
"page_idx": 14
|
| 2028 |
+
},
|
| 2029 |
+
{
|
| 2030 |
+
"type": "image",
|
| 2031 |
+
"img_path": "images/5ad329b4862dc9d727077dbd3e8c8a0e70389e50c9c1ef70f12e0c450a4551fe.jpg",
|
| 2032 |
+
"image_caption": [
|
| 2033 |
+
"Figure 8: Adversarial perturbations for the same input image (top) generated with diverse ImageNet classifier families (S, V, B, R, D, SVBRD) at different norm constraints. The perturbation images are normalised at the maximal perturbation for visualisation. We observe diverse patterns across classifier families within the same $L _ { 2 }$ ball. "
|
| 2034 |
+
],
|
| 2035 |
+
"image_footnote": [],
|
| 2036 |
+
"bbox": [
|
| 2037 |
+
236,
|
| 2038 |
+
241,
|
| 2039 |
+
815,
|
| 2040 |
+
891
|
| 2041 |
+
],
|
| 2042 |
+
"page_idx": 15
|
| 2043 |
+
},
|
| 2044 |
+
{
|
| 2045 |
+
"type": "image",
|
| 2046 |
+
"img_path": "images/76b5a3910a0ddc1981803ceb3fd42b8e0abb3fefa1ad7b58c923dd8d81d2f467.jpg",
|
| 2047 |
+
"image_caption": [
|
| 2048 |
+
"Figure 9: Probability query output embedded into 2-D plane via t-SNE. The same embedding is shown with different colour-coding for each attribute. These are the inputs to the kennen-o metamodel. "
|
| 2049 |
+
],
|
| 2050 |
+
"image_footnote": [],
|
| 2051 |
+
"bbox": [
|
| 2052 |
+
169,
|
| 2053 |
+
212,
|
| 2054 |
+
828,
|
| 2055 |
+
750
|
| 2056 |
+
],
|
| 2057 |
+
"page_idx": 16
|
| 2058 |
+
},
|
| 2059 |
+
{
|
| 2060 |
+
"type": "image",
|
| 2061 |
+
"img_path": "images/24a46d86731c74bd03a2de2526a5535bc021c7a9115fc93e23cd5657e9281234.jpg",
|
| 2062 |
+
"image_caption": [
|
| 2063 |
+
"Figure 10: Probability query output embedded into 2-D plane via t-SNE. The same embedding is shown with different colour-coding for each attribute. These are the inputs to the kennen-io metamodel. "
|
| 2064 |
+
],
|
| 2065 |
+
"image_footnote": [],
|
| 2066 |
+
"bbox": [
|
| 2067 |
+
171,
|
| 2068 |
+
219,
|
| 2069 |
+
826,
|
| 2070 |
+
747
|
| 2071 |
+
],
|
| 2072 |
+
"page_idx": 17
|
| 2073 |
+
},
|
| 2074 |
+
{
|
| 2075 |
+
"type": "image",
|
| 2076 |
+
"img_path": "images/4088da2d25ceb3cef49fe2d8472ffbecf90dcea69d2d683b57443f059825d002.jpg",
|
| 2077 |
+
"image_caption": [
|
| 2078 |
+
"Figure 11: Confusion matrices for kennen-o. "
|
| 2079 |
+
],
|
| 2080 |
+
"image_footnote": [],
|
| 2081 |
+
"bbox": [
|
| 2082 |
+
174,
|
| 2083 |
+
198,
|
| 2084 |
+
808,
|
| 2085 |
+
796
|
| 2086 |
+
],
|
| 2087 |
+
"page_idx": 18
|
| 2088 |
+
},
|
| 2089 |
+
{
|
| 2090 |
+
"type": "image",
|
| 2091 |
+
"img_path": "images/b8aac91e5361fcdf1816e7b129d6e82f5dc65b213b34f2ad27f67b4aa5370d66.jpg",
|
| 2092 |
+
"image_caption": [
|
| 2093 |
+
"Figure 12: Confusion matrices for kennen-io. "
|
| 2094 |
+
],
|
| 2095 |
+
"image_footnote": [],
|
| 2096 |
+
"bbox": [
|
| 2097 |
+
174,
|
| 2098 |
+
198,
|
| 2099 |
+
808,
|
| 2100 |
+
796
|
| 2101 |
+
],
|
| 2102 |
+
"page_idx": 19
|
| 2103 |
+
}
|
| 2104 |
+
]
|
parse/train/BydjJte0-/BydjJte0-_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BydjJte0-/BydjJte0-_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/GWRkOYr4jxQ/GWRkOYr4jxQ.md
ADDED
|
@@ -0,0 +1,301 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Luna: Linear Unified Nested Attention
|
| 2 |
+
|
| 3 |
+
Xuezhe Ma∗ ISI, USC xuezhema@isi.edu
|
| 4 |
+
|
| 5 |
+
Xiang Kong∗ LTI, CMU xiangk@cs.cmu.edu
|
| 6 |
+
|
| 7 |
+
Sinong Wang∗ Facebook AI sinongwang@fb.com
|
| 8 |
+
|
| 9 |
+
Chunting Zhou LTI, CMU chuntinz@cs.cmu.edu
|
| 10 |
+
|
| 11 |
+
Jonathan May ISI, USC jonmay@isi.edu
|
| 12 |
+
|
| 13 |
+
Hao Ma, Luke Zettlemoyer Facebook AI {haom, lsz}@fb.com
|
| 14 |
+
|
| 15 |
+
# Abstract
|
| 16 |
+
|
| 17 |
+
The quadratic computational and memory complexities of the Transformer’s attention mechanism have limited its scalability for modeling long sequences. In this paper, we propose Luna, a linear unified nested attention mechanism that approximates softmax attention with two nested linear attention functions, yielding only linear (as opposed to quadratic) time and space complexity. As compared to a more traditional attention mechanism, Luna introduces an additional sequence with a fixed length as input and an additional corresponding output, which allows Luna to perform attention operation linearly, while also storing adequate contextual information. We perform extensive evaluations on three benchmarks of sequence modeling tasks: long-context sequence modeling, neural machine translation and masked language modeling for large-scale pretraining. Competitive or even better experimental results demonstrate both the effectiveness and efficiency of Luna compared to a variety of strong baseline methods including the full-rank attention and other efficient sparse and dense attention methods. The implementation of our model is available at https://github.com/XuezheMax/fairseq-apollo.
|
| 18 |
+
|
| 19 |
+
# 1 Introduction
|
| 20 |
+
|
| 21 |
+
Transformers (Vaswani et al., 2017) are surprisingly versatile models that preform well on a wide range of language and vision tasks, including machine translation (Vaswani et al., 2017; Ott et al., 2018), language understanding (Devlin et al., 2019), image recognition (Dosovitskiy et al., 2020) and bioinformatics (Madani et al., 2020). Attention (Bahdanau et al., 2015) provides the key mechanism that captures contextual information from the entire sequence by modeling pairwise interactions between the inputs at every timestep. However, a common weakness of Transformers is their quadratic time and memory complexity within the attention mechanism w.r.t the length of the input sequence, which prohibitively restricts their potential application to tasks requiring longer input sequences.
|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
Figure 1: Trade-off between accuracy (y-axis), speed (x-axis) and memory (cir-radius) on LRA.
|
| 25 |
+
|
| 26 |
+
A number of techniques have been recently introduced to improve the time and memory efficiency of Transformer models (‘xformers’) (Tay et al., 2020b, 2021). One popular technique is using sparsity to restrict the attention field range, such as local attention (Parmar et al., 2018), blockwise attention (Qiu et al., 2019), strided attention patterns (Child et al., 2019; Beltagy et al., 2020), compressed attention (Liu et al., 2018), and attention with learnable patterns (Kitaev et al., 2020; Tay et al., 2020a; Roy et al., 2021). Another emerging approach is to improve efficiency by leveraging low-rank approximations of the attention matrix. Linformer (Wang et al., 2020), for example, projects the length dimension of key and value matrices to a fixed-dimensional representation by assuming low-rank structure in the full-rank attention matrix. Recently, some kernel-based methods, such as Linear Transformer (Katharopoulos et al., 2020), Performer (Choromanski et al., 2020) and Random Feature Attention (Peng et al., 2021), attempt to efficiently approximate regular (softmax) full-rank attention through kernelization. Although these models demonstrate better asymptotic complexity for long sequences, their efficiency gains are less prominent for moderate length sequences and their performance remains behind Transformers with regular attention.
|
| 27 |
+
|
| 28 |
+
In this work, we propose a linear unified nested attention mechanism (Luna), which uses two nested attention functions to approximate the regular softmax attention in Transformer (§2). Specifically, with the first attention function, Luna packs the input sequence into a sequence of fixed length. Then, the packed sequence is unpacked using the second attention function (§3.1). As compared to a more traditional attention mechanism, Luna introduces an additional sequence with a fixed length as input and an additional corresponding output. Importantly, the extra input allows Luna to perform attention operation linearly as efficiently as Linformer (Wang et al., 2020), while also storing adequate contextual information. Unlike Linformer, Luna is capable of modeling variable-length sequences and autoregressive (causal) attention (§3.4). We perform extensive experiments on three sequence modeling tasks, including long-context sequence modeling, neural machine translation, and masked language modeling for large-scale pretraining and downstream task finetuning. Compared to a variety of strong baseline models, Luna achieves competitive or even better performance, while acquiring prominent gains of efficiency in both speed and memory (see Figure 1). More importantly, Luna manages to obtain superior performance with small projection lengths such as 16 (§4).
|
| 29 |
+
|
| 30 |
+
# 2 Background
|
| 31 |
+
|
| 32 |
+
# 2.1 Attention
|
| 33 |
+
|
| 34 |
+
The traditional attention mechanism is a function:
|
| 35 |
+
|
| 36 |
+
$$
|
| 37 |
+
Y = \mathrm { A t t n } ( X , C ) = \omega \left( { \frac { X W _ { Q } ( C W _ { K } ) ^ { T } } { \sqrt { d } } } \right) C W _ { V }
|
| 38 |
+
$$
|
| 39 |
+
|
| 40 |
+
where the attention function Attn $\colon \mathbb { R } ^ { n \times d } \times \mathbb { R } ^ { m \times d } \to \mathbb { R } ^ { n \times d }$ takes as inputs two sequences: the query sequence $\ b { X } \in \mathbb { R } ^ { n \times d }$ with length $n$ and the context sequence $C \in \mathbb { R } ^ { m \times d }$ with length $m$ , and output one sequence $Y \in \mathbb { R } ^ { n \times d }$ with the same length $n$ as the query $X$ . $d$ is the embedding dimension, and $W _ { Q }$ , $W _ { K }$ , $W _ { V } \in \mathbb { R } ^ { d \times d }$ are three learnable parameters that project the input sequences into the space of query, key and value matrices: $Q = X \bar { W } _ { Q } , K = C \bar { W _ { K } } , \bar { V } = C \bar { W _ { V } } . c$ $\omega$ is an activation function, e.g. the softmax function in regular attention. Note that the formulation in (1) is applicable to both cross-attention where $C$ and $X$ are the representations from Transformer encoder and decoder, respectively, and self-attention where $X$ and $C$ are the same sequence $X = C$ ). In practice, the multi-head variant of attention (Vaswani et al., 2017), which performs the attention function $h$ times in parallel, is commonly used. Throughout this paper, we omit $h$ for simplicity.
|
| 41 |
+
|
| 42 |
+
In particular, the matrix $\begin{array} { r } { A = \omega ( \frac { Q K ^ { T } } { \sqrt { d _ { k } } } ) \in \mathbb { R } ^ { n \times m } } \end{array}$ in (1) is called the attention matrix which specifies the alignment scores between every pair of tokens in sequences of queries $X$ and contexts $C$ Calculating $A$ takes $O ( n m )$ time and space, which is quadratic with respect to the sequence length and becomes a significant bottleneck when processing long sequences.
|
| 43 |
+
|
| 44 |
+
# 2.2 Transformer Layers
|
| 45 |
+
|
| 46 |
+
The other two key components of Transformer, besides attention, are position-wise feed-forward networks (FFN) and layer normalization (Ba et al., 2016). Technically, the position-wise feedforward layer operates on each position independently and layer normalization plays a crucial role in controlling the gradient scales (Xiong et al., 2020). Each Transformer layer can be expressed as:
|
| 47 |
+
|
| 48 |
+
$$
|
| 49 |
+
\begin{array} { r } { \begin{array} { r c l } { X _ { A } } & { = } & { \mathrm { L a y e r N o r m } ( \mathrm { A t t n } ( X , C ) + X ) } \\ { X ^ { \prime } } & { = } & { \mathrm { L a y e r N o r m } ( \mathrm { F F N } ( X _ { A } ) + X _ { A } ) } \end{array} } \end{array}
|
| 50 |
+
$$
|
| 51 |
+
|
| 52 |
+
where $X$ and $C$ are the two input sequences and $X ^ { \prime }$ is the output of the Transformer layer. The Transformer layer in (2) adopts the original post-layer normalization architecture (Vaswani et al., 2017; Devlin et al., 2019) that places layer normalization after residual connection, rather than pre-layer normalization (Vaswani et al., 2018; Wang et al., 2019).
|
| 53 |
+
|
| 54 |
+

|
| 55 |
+
Figure 2: Illustration of the architecture of one Transformer encoder layer (left) versus one Luna encoder layer (right).
|
| 56 |
+
|
| 57 |
+
# 3 Linear Unified Nested Attention (Luna)
|
| 58 |
+
|
| 59 |
+
Our goal is to design an efficient attention mechanism to solve the quadratic complexity problem of full attention. We first introduce the proposed linear unified nested attention mechanism, named Luna attention (§3.1), and the architecture of each Luna layer (§3.2). Then, we present the variant of Luna for causal attention, named Luna causal attention (§3.3). Finally, we discuss the differences between Luna and three closely related models: Linformer (Wang et al., 2019), Set Transformer (Lee et al., 2019) (§3.4) and Shared Workspace (Goyal et al., 2021).
|
| 60 |
+
|
| 61 |
+
# 3.1 Pack and Unpack Attention
|
| 62 |
+
|
| 63 |
+
The key idea behind Luna is to decouple the regular attention function in (1) into two nested attention operations, both of which have linear efficiency. To achieve this, besides the original query and context input sequences, Luna introduces an extra input that is a sequence with fixed (constant) length. With this extra input as the query sequence, Luna uses its first attention, named pack attention, to pack the context sequence into a fixed-length sequence. Formally, let $P \in \mathbb { R } ^ { l \times d }$ denote the extra input sequence with fixed length $l$ . The pack attention first packs $C$ to $Y _ { P }$ with $P$ as the query sequence:
|
| 64 |
+
|
| 65 |
+
$$
|
| 66 |
+
Y _ { P } = \mathrm { A t t n } ( P , C )
|
| 67 |
+
$$
|
| 68 |
+
|
| 69 |
+
where $\mathrm { A t t n } ( \cdot , \cdot )$ is the regular attention function in (1), $C \in \mathbb { R } ^ { m \times d }$ is the context sequence, and $Y _ { P } \in \mathbb { R } ^ { l \times d }$ is the output of the pack attention, which is named the packed context. Since the length of $P$ is a constant $l$ , the complexity of pack attention is $O ( l m )$ , which is linear with respect to $m$ .
|
| 70 |
+
|
| 71 |
+
To unpack the sequence back to the length of the original query sequence $X$ , Luna leverages its second attention, named unpack attention:
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
Y _ { X } = \mathrm { A t t n } ( X , Y _ { P } )
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
where $\ b { X } \in \mathbb { R } ^ { n \times d }$ is the original query sequence. Similar to pack attention, the complexity of unpack attention is $O ( l n )$ , which is also linear with repect to $n$ .
|
| 78 |
+
|
| 79 |
+
Encoding Contextual Information in $P$ . The next question is where the extra input sequence $P$ comes from. One straightforward choice is to format $P$ as a learnable parameter of each Luna layer. One obvious drawback of this method, however, is that $P$ would not capture any contextual information. To enhance the capacity of the Luna model, we propose to formulate $Y _ { P }$ as an additional output of each Luna layer, corresponding to $P$ . Formally, the Luna attention function LunaAttn $( \cdot , \cdot , \cdot )$ takes three sequences as input and generates two sequence as output:
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
Y _ { X } , Y _ { P } = \operatorname { L u n a A t t n } ( X , P , C )
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
where the computation of $Y _ { P }$ and $Y _ { X }$ is in (3) and (4). By stacking multiple layers of Luna attention, the output $Y _ { P }$ from the previous layer, which captures contextual information of $C$ , is employed as the input $P$ of the next layer. For the first layer of Luna, we formulate $P$ as learnable positional embeddings2 (Vaswani et al., 2017).
|
| 86 |
+
|
| 87 |
+
Reducing the Number of Parameters. Due to the two nested attention operations, there are two sets of parameters $( W _ { Q }$ , $W _ { K }$ , $W _ { V } )$ ) in a single Luna attention function. There are several techniques to reduce the number of parameters, such as parameter sharing (Xia et al., 2019). In this work, we follow Wang et al. (2020) to share $W _ { K }$ and $W _ { Q }$ in each layer, and conduct experiments to analyze performance decline against Luna with full sets of parameters (§4.2).
|
| 88 |
+
|
| 89 |
+
# 3.2 Luna Layers
|
| 90 |
+
|
| 91 |
+
The Luna attention is used as a drop-in-replacement for the regular attention. We incorporate the position-wise feed-forward network and layer normalization into Luna layers. Concretely, layer normalization is applied to both $Y _ { X }$ and $Y _ { P }$ , while FFN only to $Y _ { X }$ :
|
| 92 |
+
|
| 93 |
+
$$
|
| 94 |
+
\begin{array} { r c l } { Y _ { X } , Y _ { P } } & { = } & { \operatorname { L u n a A t t n } ( X , P , C ) } \\ { X _ { A } , P _ { A } } & { = } & { \operatorname { L a y e r N o r m } ( Y _ { X } + X ) , \operatorname { L a y e r N o r m } ( Y _ { P } + P ) } \\ { X ^ { \prime } , P ^ { \prime } } & { = } & { \operatorname { L a y e r N o r m } ( \operatorname { F F N } ( X _ { A } ) + X _ { A } ) , P _ { A } } \end{array}
|
| 95 |
+
$$
|
| 96 |
+
|
| 97 |
+
where $X ^ { \prime }$ and $P ^ { \prime }$ are the two outputs of the Luna layer. The graphical specification of one Luna layer is illustrated in Figure 2.
|
| 98 |
+
|
| 99 |
+
# 3.3 Luna Causal Attention
|
| 100 |
+
|
| 101 |
+
As discussed in Tay et al. (2020b), the ability to support causal autoregressive decoding, i.e. attending solely to the past and current tokens, is required when designing efficient self-attention mechanisms. However, due to the pack attention that packs the long sequence $X$ into a fixed (shorter) length, it is not straight-forward to support causal attention in Luna.
|
| 102 |
+
|
| 103 |
+
To design causal attention in Luna, we need to assume that the input $P$ contains no information of $X$ , i.e. $P$ will not leak any future information of $X$ to the history. Before we describe the Luna causal attention mechanism, we first define a causal function $f : \mathbb { R } ^ { n \times d _ { 1 } } \times \mathbb { R } ^ { n \times d _ { 1 } } \times \mathbb { R } ^ { n \times d _ { 2 } } \to \mathbb { R } ^ { n \times d _ { 2 } }$ :
|
| 104 |
+
|
| 105 |
+
$$
|
| 106 |
+
F \triangleq f ( X , Y , Z ) , { \mathrm { ~ w h e r e ~ } } F _ { t } = { \frac { 1 } { t } } X _ { t } \sum _ { j = 1 } ^ { t } Y _ { j } ^ { T } Z _ { j }
|
| 107 |
+
$$
|
| 108 |
+
|
| 109 |
+
where $F \in \mathbb { R } ^ { n \times d _ { 2 } }$ and $F _ { t }$ denotes the $t { \cdot }$ -th row of $F$ . From the definition of $f$ in (7), we see that $F _ { t }$ can only access the information of the past and present row of $X$ , $Y$ and $Z$ .
|
| 110 |
+
|
| 111 |
+
To perform Luna causal attention, we first compute the attention matrix of the pack attention: $A _ { p a c k } = \omega ( P X ^ { T } / \sqrt { d } )$ . For simplicity, we omit the learnable parameters, e.g. $W _ { Q } , \ W _ { K } , \ W _ { V }$ in (1). Note that for $A _ { p a c k }$ , we cannot use the softmax function for $\omega$ , as the normalization term in softmax leaks future information of $X$ to the history. Inspired by the causal attention mechanism in Linear Transformer (Katharopoulos et al., 2020), we use two activation functions: 1) $\omega ( \cdot ) = \mathrm { e l u } ( \cdot ) + 1$ based on the exponential linear unit (Clevert et al., 2016); 2) $\omega ( \cdot ) = \mathrm { s o f t p l u s } ( \cdot )$ based on the softplus function (Glorot et al., 2011). With the causal function $f$ in (7), we compute the attention matrix of the unpack attention: $A _ { u n p a c k } = \omega ( f ( X , X , A _ { p a c k } ^ { T } ) )$ . Unlike $A _ { p a c k }$ , we can use $\omega ( \cdot ) = \mathrm { s o f t m a x } ( \cdot )$ for $A _ { u n p a c k }$ , because the normalization is along the $l$ -dimension rather than the $n$ -dimension of $X$ . Finally, the output $\mathrm { Y }$ is computed by $Y = f ( A _ { u n p a c k } , A _ { p a c k } ^ { T } , X )$ .
|
| 112 |
+
|
| 113 |
+
The complexity of the causal attention in Luna is still linear: $O ( l n )$ . One drawback of Luna causal attention, similar to the causal attention in Random Feature Attention (RFA) (Peng et al., 2021) and Linear Transformer (Katharopoulos et al., 2020), is its sequential computation for each timestep $t$ .
|
| 114 |
+
|
| 115 |
+
The sources of $P$ . In the formulation of causal attention, $P$ is expected to contain no information about $X$ . Thus, we need to formulate $P$ based on the usage mode of the causal attention. For the encoder-decoder mode in sequence-to-sequence modeling (e.g. for machine translation), we can use packed output from the Luna encoder as $P$ . For the decoder-only mode (e.g. for language modeling), $P$ might be formulated as a learnable parameter of each layer.
|
| 116 |
+
|
| 117 |
+
Table 1: Experimental results on the long range arena (LRA) benchmark. For Luna, we explore three projected dimensions: 16, 128 and 256. ‘Avg. (w/o rtl)’ denotes the averaged accuracy over all tasks excluding Retrieval. The performance of previous works are from Tay et al. (2021).
|
| 118 |
+
|
| 119 |
+
<table><tr><td>Models</td><td>ListOps</td><td>Text</td><td>Retrieval</td><td>Image</td><td>Pathfinder</td><td>Avg.</td><td>Avg. (w/o rtl)</td></tr><tr><td>Transformer Transformer (re-impl)</td><td>36.37 37.11</td><td>64.27 65.21</td><td>57.46 79.14</td><td>42.44</td><td>71.40</td><td>54.39</td><td>53.62</td></tr><tr><td></td><td></td><td></td><td></td><td>42.94</td><td>71.83</td><td>59.24</td><td>54.27</td></tr><tr><td>Local Attention</td><td>15.82</td><td>52.98</td><td>53.39</td><td>41.46</td><td>66.63</td><td>46.06</td><td>44.22</td></tr><tr><td>Sparse Trans.</td><td>17.07</td><td>63.58</td><td>59.59</td><td>44.24</td><td>71.71</td><td>51.24</td><td>49.15</td></tr><tr><td>Longformer</td><td>35.63</td><td>62.85</td><td>56.89</td><td>42.22</td><td>69.71</td><td>53.46</td><td>52.60</td></tr><tr><td>Linformer</td><td>35.70</td><td>53.94</td><td>52.27</td><td>38.56</td><td>76.34</td><td>51.36</td><td>51.14</td></tr><tr><td>Reformer</td><td>37.27</td><td>56.10</td><td>53.40</td><td>38.07</td><td>68.50</td><td>50.67</td><td>49.99</td></tr><tr><td>Sinkhorn Trans.</td><td>33.67</td><td>61.20 61.68</td><td>53.83</td><td>41.23</td><td>67.45</td><td>51.39</td><td>50.89</td></tr><tr><td>Synthesizer</td><td>36.99 36.05</td><td>64.02</td><td>54.67</td><td>41.61</td><td>69.45</td><td>52.88</td><td>52.43</td></tr><tr><td>BigBird Linear Trans.</td><td>16.13</td><td>65.90</td><td>59.29 53.09</td><td>40.83 42.34</td><td>74.87 75.30</td><td>55.01</td><td>53.94</td></tr><tr><td>Performer</td><td>18.01</td><td>65.40</td><td>53.82</td><td>42.77</td><td>77.05</td><td>50.55 51.41</td><td>49.92</td></tr><tr><td></td><td>37.43</td><td></td><td></td><td></td><td></td><td></td><td>50.81</td></tr><tr><td>Luna-16</td><td>38.01</td><td>65.74 65.74</td><td>79.38 79.55</td><td>46.39</td><td>78.36</td><td>61.46</td><td>56.98</td></tr><tr><td>Luna-128</td><td>37.98</td><td></td><td></td><td>47.47</td><td>78.89</td><td>61.93</td><td>57.53</td></tr><tr><td>Luna-256</td><td></td><td>65.78</td><td>79.56</td><td>47.86</td><td>78.55</td><td>61.95</td><td>57.54</td></tr></table>
|
| 120 |
+
|
| 121 |
+
# 3.4 Discussion
|
| 122 |
+
|
| 123 |
+
Relation to Linformer and Shared Workspace. One previous work closely related to Luna is Linformer (Wang et al., 2019). Linformer linearly projects the context sequence $C \in \mathbb { R } ^ { m \times d }$ into a sequence with fixed length $l$ : $C ^ { \prime } = E C$ , where $\dot { C } ^ { \prime } \in \mathbf { \mathbb { R } } ^ { l \times d }$ is the projected context sequence and $E \in \mathbb { R } ^ { l \times m }$ is the learnable projection matrix of each layer. Then, the attention operation is applied on the query $X$ and the projected context $C ^ { \prime }$ . The pack attention in Luna is a generalization of the linear projection in Linformer. There are two main advantages to Luna over Linformer: i) with pack attention as the projection method, Luna is able to model sequences with various lengths. In contrast, Linformer requires the length of all input sequences to be the same $m$ , due to the projection matrix $E$ , whose shape depends on $m$ . ii) Luna achieves better expressiveness than Linear, not only due to the general projection method but also by encoding adequate contextual information into the projection via $P$ (see $\ S 3 . 1 \ r .$ ). Experimental improvements over non-contextual projection demonstrate the effectiveness of Luna (see $\ S 4 . 2 )$ . In contemporaneous and individual work, Goyal et al. (2021) formulate contextual $p$ as a shared global workspace, which shares similar instantiation with Luna.
|
| 124 |
+
|
| 125 |
+
Relation to Set Transformer. The additional input $P$ in Luna can be regarded as a side memory module that can access the entire sequence to gather contextual information. From this view of point, Luna is also closely related to Set Transformer (Lee et al., 2019), an early model to integrate side memory module in Transformers. Similar to the projection matrix in Linformer, the inducing points in Set Transformer are learnable parameters. Thus, these inducing points might be formulated as the non-contextual version of $P$ in Luna. Moreover, Set Transformer is designed for set-input problems, which are problems wherein the input is a set of features and the model is thereby invariant to permutation or ordering of the input features (Tay et al., 2020b), while Luna attention is used as a drop-in replacement for regular softmax attention.
|
| 126 |
+
|
| 127 |
+
# 4 Experiments
|
| 128 |
+
|
| 129 |
+
# 4.1 Long-Context Sequence Modeling
|
| 130 |
+
|
| 131 |
+
We evaluate the effectiveness and efficiency of Luna on the Long Range Arena (LRA) benchmark recently introduced by Tay et al. (2021), which is designed for the purpose of evaluating efficient Transformer models under the long-context scenario. They collect five tasks in this benchmark which are ListOps (Nangia and Bowman, 2018), byte-level text classification (Text; Maas et al., 2011), byte-level document retrieval (Retrieval; Radev et al., 2013), image classification on sequences of pixels (Image; Krizhevsky et al., 2009) and Pathfinder (Linsley et al., 2018). These tasks consist of input sequences ranging from 1K to 8K tokens and span across a variety of data types and modalities.
|
| 132 |
+
|
| 133 |
+
Table 2: Training speed and peak memory consumption comparison of different models on byte-level text classification with various input lengths (1K, 2K, 3K and 4K). The best model is in boldface.
|
| 134 |
+
|
| 135 |
+
<table><tr><td>Model</td><td colspan="4"> Steps per second 个</td><td colspan="4">Peak Memory Usage (GB)↓</td></tr><tr><td>Transformer</td><td>1K 1.0</td><td>2K 1.0</td><td>3K 1.0</td><td>4K</td><td>1K 1.00</td><td>2K 1.00</td><td>3K 1.00</td><td>4K 1.00</td></tr><tr><td></td><td></td><td></td><td></td><td>1.0</td><td></td><td></td><td></td><td></td></tr><tr><td>Local Attention</td><td>1.1</td><td>1.7</td><td>3.2</td><td>5.3</td><td>0.49</td><td>0.29</td><td>0.19</td><td>0.14</td></tr><tr><td>Linformer Reformer</td><td>1.2</td><td>1.9</td><td>3.7</td><td>5.5</td><td>0.44</td><td>0.21</td><td>0.18</td><td>0.10</td></tr><tr><td>Sinkhorn Trans</td><td>0.5 1.1</td><td>0.4 1.6</td><td>0.7</td><td>0.8</td><td>0.56 0.55</td><td>0.37 0.31</td><td>0.28</td><td>0.24 0.16</td></tr><tr><td>Synthesizer</td><td>1.1</td><td>1.2</td><td>2.9</td><td>3.8</td><td>0.76</td><td></td><td>0.21</td><td>0.74</td></tr><tr><td>BigBird</td><td></td><td>0.8</td><td>2.9</td><td>1.4 1.1</td><td></td><td>0.75</td><td>0.74</td><td>0.30</td></tr><tr><td>Linear Trans.</td><td>0.9</td><td>1.9</td><td>1.2</td><td>5.6</td><td>0.91 0.44</td><td>0.56</td><td>0.40</td><td>0.11</td></tr><tr><td>Performer</td><td>1.1 1.2</td><td>1.9</td><td>3.7 3.8</td><td>5.7</td><td>0.44</td><td>0.22 0.22</td><td>0.15 0.15</td><td>0.11</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Luna-16</td><td>1.2</td><td>1.8</td><td>3.7</td><td>5.5</td><td>0.44 0.49</td><td>0.23</td><td>0.17</td><td>0.10</td></tr><tr><td>Luna-128</td><td>1.1</td><td>1.7</td><td>3.4</td><td>5.1</td><td></td><td>0.28</td><td>0.21</td><td>0.14</td></tr><tr><td>Luna-256</td><td>1.1</td><td>1.7</td><td>3.3</td><td>4.9</td><td>0.60</td><td>0.33</td><td>0.23</td><td>0.16</td></tr></table>
|
| 136 |
+
|
| 137 |
+
To ensure fair comparisons, for all tasks except for the task Retrieval, we closely follow the model configurations in Tay et al. (2021) such as data preprocessing, data split, model architecture, etc. For the task of Retrieval, we find that models are not fully converged when being trained for 5K steps as stated in Tay et al. (2021). Therefore, we train models for 20K steps for this task and obtain much better results. For a direct comparison, besides the average performance of models across all tasks, we also report the average accuracy on tasks excluding Retrieval. We run each experiment for five times with different random seeds and report the average accuracy. The hyper-parameters for each task are shown in Appendix A.1.
|
| 138 |
+
|
| 139 |
+
Results. The results of various models on the LRA benchmark are presented in Table 1. For our proposed method, we report results from models of three different projected dimensions (16, 128 and 256). First, we note that Luna achieves good results on all tasks consistently compared to the Transformer model and significantly outperforms all the other baseline methods in terms of the average accuracy. By taking a closer look at the accuracy for each individual task, Luna wins over baseline models on three out of five tasks and performs comparably with the best performed model on the other two tasks, i.e. ListOps and byte-level text classification. Notably, Luna improves over the Transformer model on image classification and pathfinder by a large margin. Second, we observe that although Luna achieves the best average performance with a projection dimension of 256, it also performs considerably well with smaller projection dimensions (16 and 128). This demonstrates the effectiveness of Luna even with small projected dimensions.
|
| 140 |
+
|
| 141 |
+
Memory and Speed Efficiency. Luna employs two nested linear attention functions to reduce the time and memory complexity compared to the vanilla softmax attention. Here, we examine the speed and memory footprint of various models with varying input lengths (1K, 2K, 3K and 4K). Following Tay et al. (2021), all models are evaluated on the byte-level classification task with the same batch size. The result is shown in Table 2.
|
| 142 |
+
|
| 143 |
+
Considering the memory efficiency, Luna with a projected dimension of 16 is highly memoryefficient, which is only $10 \%$ of the vanilla Transformer at 4K input sequence length. With larger projected dimensions, i.e. 128 and 256, Luna requires more memory but is still competitive compared to other efficient Transformer models. In terms of time efficiency, Luna-16 speeds up over the standard Transformer by 1.2-5.5 times, varying by the sequence length. Compared to other efficient Transformers, Luna-16 performs comparably with the fastest models, i.e. Performer and Linformer. Overall, our models achieve competitive advantage both in time- and memory-efficiency over other models, while attaining the best performance on the LRA benchmark (see Figure 1).
|
| 144 |
+
|
| 145 |
+
In addition, we plot the trade-off among memory, time and averaged LRA score without task Retrieval in Figure 1. Models such as Linformer and Performer have faster speed and small memory requirement with the sacrifice of performance. However, besides competitive time- and memory-efficiency, Luna models retain superior performance even with a small projected dimension $\left( l { = } 1 6 \right)$ .
|
| 146 |
+
|
| 147 |
+
Contextual information in $P$ of Luna. Recently, a popular method to model the classification task using Transformerbased models is to prepend a special symbol, [CLS], to every input example. The last hidden state of this symbol is regarded as the aggregate sequence representation. In Luna, we introduce an extra model input $P$ which not only allows us to efficiently compute the attention mechanism but learn contextual information as well. Theoretically, the $P$ from the
|
| 148 |
+
|
| 149 |
+
Table 3: Performance comparison of two sentence representation methods on LRA benchmark.
|
| 150 |
+
|
| 151 |
+
<table><tr><td>Models</td><td>ListOps</td><td>Text</td><td>Retrieval</td><td>Avg.</td></tr><tr><td>Luna-16,[CLS]</td><td>37.43</td><td>65.74</td><td>79.38</td><td>60.85</td></tr><tr><td>Luna-16, P</td><td>38.06</td><td>65.81</td><td>80.22</td><td>61.36</td></tr><tr><td>Luna-128, [CLS]</td><td>38.01</td><td>65.74</td><td>79.55</td><td>61.10</td></tr><tr><td>Luna-128,P</td><td>38.27</td><td>65.89</td><td>80.27</td><td>61.48</td></tr><tr><td>Luna-256, [CLS]</td><td>37.98</td><td>65.78</td><td>79.56</td><td>61.11</td></tr><tr><td>Luna-256, P</td><td>38.36</td><td>66.07</td><td>80.25</td><td>61.56</td></tr></table>
|
| 152 |
+
|
| 153 |
+
last layer is capable of learning the representation of the input sequence. To validate this, we extract $P$ at the last layer and employ the mean pooling strategy over positions to obtain the final feature for classification. We test its performance on three long-text modeling tasks in LRA (Tay et al., 2021), i.e., ListOps, Text and Retrieval and report results in Table 3. We find that $P$ -based methods obtain better scores across all tasks against the [CLS]-based one, validating the powerful ability of $P$ to encode contextual information of the input sequence.
|
| 154 |
+
|
| 155 |
+
# 4.2 Machine translation
|
| 156 |
+
|
| 157 |
+
To evaluate Luna on sequence-to-sequence modeling, we conduct experiments on a standard machine translation benchmark, i.e. WMT’14 English-German $\mathbf { E N } { } \mathbf { D E }$ ) dataset (4.5M sentence pairs). The data split and preprocessing steps follow those of Vaswani et al. (2017), using the scripts from FairSeq (Ott et al., 2019). We share the source and target vocabularies within the language pair, with 37K byte pair encoding (BPE) types (Sennrich et al., 2016). The Luna models closely follow the architecture of Transformer-base: 6 encoder and decoder layers with 8 attention heads and $d _ { \mathrm { m o d e l } } / d _ { \mathrm { h i d d e n } } = 5 1 2 / 2 0 4 8$ . We train the Transformer-base model with two optimization methods: Adam (Kingma and Ba, 2015) and
|
| 158 |
+
|
| 159 |
+
Table 4: Test BLEU on WMT’14 EN DE.
|
| 160 |
+
|
| 161 |
+
<table><tr><td>Model</td><td>BLEU</td><td> # Param.</td></tr><tr><td>Transformer-base (Adam) Transformer-base (Apollo)</td><td>27.8</td><td>64.9M</td></tr><tr><td>RFA (k = 256)</td><td>28.3 27.2</td><td>64.9M 66.2M</td></tr><tr><td>Luna-16, elu, tied kv Luna-32,elu, tied kv</td><td>27.1 27.3</td><td>69.6M 69.7M</td></tr><tr><td>Luna-16,softplus, tied kv Luna-32, softplus, tied kv</td><td>27.3 27.5</td><td>69.6M 69.7M</td></tr><tr><td>Luna-16, elu</td><td>27.4</td><td>77.5M</td></tr><tr><td>Luna-32, elu</td><td>27.6</td><td></td></tr><tr><td></td><td></td><td>77.6M</td></tr><tr><td>Luna-16, softplus Luna-32, softplus</td><td>27.6 27.8</td><td>77.5M</td></tr></table>
|
| 162 |
+
|
| 163 |
+
Apollo (Ma, 2020), and find Apollo achieves better performance. Therefore, we use Apollo as the optimizer for all Luna models. For each experiment, we conduct distributed training across eight NVIDIA Tesla V100 GPUs with maximum batch size of 8192 tokens per GPU. Further details are provided in Appendix A.2.
|
| 164 |
+
|
| 165 |
+
Results. Table 4 presents the results of Luna on the test set BLEU scores of WMT’ $1 4 \mathrm { E N } { } \mathrm { D E }$ , along with Transformer-base and Random Feature Attention (RFA) as baselines. Different from Peng et al. (2021) where the random feature attention is applied only to decoders, the RFA model in Table 4 applies random feature attention in both the encoder and decoder for a fair comparison. $k = 2 5 6$ is the number of feature maps in RFA. For Luna, we report performance of models with different projected lengths: $l = 1 6$ and $l = 3 2$ , different activation functions in (7): $\mathrm { e l u } ( \cdot ) + 1$ and softplus $( \cdot )$ , and w./w.o parameter sharing.
|
| 166 |
+
|
| 167 |
+
From Table 4, the first observation is that softplus $( \cdot )$ consistently outperforms $\mathrm { e l u } ( \cdot ) + 1$ . Thus, we use softplus $( \cdot )$ as the default activation function in the implementation. Another interesting observation is that Luna with a small projected length $( l = 1 6$ ) obtains similar performance to RFA with $k = 2 5 6$ feature maps. Luna with $l = 3 2$ achieves competitive performance, but still falls behind the Transformer-base model. Further improving the machine translation performance of Luna is left to future work. We also report the number of parameters of different models. At last, we evaluate Luna w./w.o parameter sharing. Although there are two sets of parameters in a single Luna attention function $( W _ { Q } , \ W _ { K } , \ W _ { V } )$ , as mentioned in $\ S 3 . 1$ , we tie $W _ { k }$ with $W _ { v }$ to reduce the number of parameters, and the performance decline is marginal. As a result, Luna with shared parameters has $7 \%$ and $5 \%$ more parameters compared to the vanilla Transformer and RFA models.
|
| 168 |
+
|
| 169 |
+
Effect of Encoding Contextual Information into $P$ . As discussed in $\ S 3 . 4$ , one advantage of Luna against Linformer is to incorporate contextual $P$ by formulating it as an extra input. To investigate the importance of this design, we conduct experiments on WMT’14 to compare Luna with the baseline model where $P$ is formulated as a non-contextual learnable parameter of each layer.
|
| 170 |
+
|
| 171 |
+
Table 5: Dev and Test BLEU
|
| 172 |
+
|
| 173 |
+
<table><tr><td>Model</td><td>Dev.</td><td>Test</td></tr><tr><td>Non-Contextual</td><td>24.4</td><td>25.2</td></tr><tr><td>Contextual</td><td>25.9</td><td>27.3</td></tr></table>
|
| 174 |
+
|
| 175 |
+
For both the contextual and non-contextual models, we train Luna with $l = 1 6$ , parameter sharing and softplus. Table 5 lists the BLEU scores on the development and test sets. Luna with contextual $P$ significantly outperforms the baseline with non-contextual $P$ , demonstrating the effectiveness of this design in Luna.
|
| 176 |
+
|
| 177 |
+
# 4.3 Masked Language Modeling for Large-Scale Pretraining
|
| 178 |
+
|
| 179 |
+
One popular application of Transformer is to pretrain a large-scale language model on a large amount of data which can then be fine-tuned on a wide range of downstream tasks, such as BERT (Devlin et al., 2019), RoBERTa (Liu et al., 2019), etc. Therefore, we pretrain a Luna-based language model with RoBERTa-base model configuration on two versions of data as our pretraining set: 1) BERT version with BookCorpus (Zhu et al., 2015) and English Wikipedia (totally 16GB), 2) RoBERTa version with BookCorpus, English Wikipedia, CC-News (Nagel, 2016), OpenWebText (Gokaslan and Cohen, 2019) and Stories (Trinh and Le, 2018) (totally 160GB). For Luna models, we set $l = 1 2 8$ . On the larger training corpus (160GB), we train models w./w.o parameter sharing, respectively. We compare our models with RoBERTa-base, BERT-base and Linformer which are trained on the same training data. Experimental details are provided in Appendix A.3.
|
| 180 |
+
|
| 181 |
+
Finetuning Luna After obtaining the pretrained Luna-based language model, we finetune it on various natural language processing tasks, including sentiment classification (SST-2; Socher et al., 2013), natural language inference (QNLI; Rajpurkar et al., 2016), textual similarity (QQP; Chen et al., 2018, question answering (RACE (Lai et al., 2017) and CommonsenseQA (CSQA; Talmor et al., 2019). For GLUE tasks, following Liu et al. (2019), we consider a limited hyperparameter sweep for each task, with batch sizes $\in \{ 1 6 , 3 2 \}$ and learning rate $\in \{ 5 e ^ { - 6 } , 1 e ^ { - 5 } , \dot { 2 } e ^ { - 5 } \}$ , with a linear warmup for the first $6 \%$ of steps followed by a linear decay to 0. Finetuning is performed for 20 epochs with early stopping based on each task’s evaluation metric on the dev set3. For QA tasks, we concatenate each candidate answer with the corresponding question and passage. We then encode every candidate and pass the [CLS] output at the last layer through a fully-connected layer, which is used to predict the correct answer. We truncate question-answer pairs that are longer than 128 tokens and, if needed, the passage so that the total length is at most 512 tokens. Following Liu et al. (2019), we try a small range of possible values for hyperparameters, i.e., batch size $\in \left\{ 1 6 , 3 2 \right\}$ , learning rate $\bar { \in } \{ 1 e ^ { - 5 } , 2 e ^ { - 5 } , 3 e ^ { - 5 } \}$ and dropout $\in \{ 0 . \dot { 0 } , 0 . \dot { 1 } , 0 . 2 \}$ . For other configurations such as warm-up steps, optimizer, we follow thoses in Liu et al. (2019).
|
| 182 |
+
|
| 183 |
+
The result is reported in Table 6. We observe that on the smaller dataset (16GB) our Luna model has similar or slightly better downstream results compared to other pretrained language models. On QNLI and SST-2, Luna models obtain the best performance among all models, reaffirming the effectiveness of Luna in pre-training. This demonstrates the strong ability of Luna for language representations. On the larger dataset (160GB), however, the performance of Luna is slightly worse than RoBERTa with vanilla Transformer architecture. One possible reason is that the capacity of Luna is not as sufficient as vanilla Transformer, due to the efficient attention mechanism. This is supported by the evidence that Luna with full sets of parameters achieves better performance than that with parameter-sharing, because Luna with full sets of parameters has better capacity.
|
| 184 |
+
|
| 185 |
+
# 5 Related Work
|
| 186 |
+
|
| 187 |
+
There has been signficiant prior work on improving the efficiency of Transformers, besides the three closely related works discussed in $\ S 3 . 4$ . The common techniques include, but are not limited to, weight sharing (Dehghani et al., 2018), quantization (Shen et al., 2020; Fan et al., 2020), sparse attention (Parmar et al., 2018; Kitaev et al., 2020), side memory module (Lee et al., 2019; Gupta and Berant, 2020; Goyal et al., 2021), and low-rank or compressed context (Wang et al., 2019; Ainslie et al., 2020). In this section, we briefly review some recently proposed methods. For a detailed overview we refer the readers to Tay et al. (2020b).
|
| 188 |
+
|
| 189 |
+
Table 6: Performance of various models on development set of benchmark natural language understanding tasks. Bold face indicates best performance.
|
| 190 |
+
|
| 191 |
+
<table><tr><td rowspan="2">Model</td><td rowspan="2">data</td><td colspan="3">GLUE</td><td colspan="2">QA</td></tr><tr><td>SST-2</td><td>QNLI</td><td>QQP</td><td>RACE</td><td>CSQA</td></tr><tr><td>BERT-base</td><td>16GB</td><td>92.7</td><td>88.4</td><td>89.6</td><td>64.2</td><td>53.3</td></tr><tr><td>RoBERTa-base</td><td>16GB</td><td>93.1</td><td>90.9</td><td>90.9</td><td>65.6</td><td>-</td></tr><tr><td>Linformer-128</td><td>16GB</td><td>92.4</td><td>90.4</td><td>90.2</td><td>1</td><td>1</td></tr><tr><td>Luna-128, tied kv</td><td>16GB</td><td>93.1</td><td>91.2</td><td>90.8</td><td>65.2</td><td>53.1</td></tr><tr><td>RoBERTa-base</td><td>160GB</td><td>94.8</td><td>92.8</td><td>91.9</td><td>73.50</td><td>63.61</td></tr><tr><td>Luna-128, tied kv</td><td>160GB</td><td>94.3</td><td>91.5</td><td>91.2</td><td>71.50</td><td>61.48</td></tr><tr><td>Luna-128</td><td>160GB</td><td>94.6</td><td>92.2</td><td>91.3</td><td>72.25</td><td>62.08</td></tr></table>
|
| 192 |
+
|
| 193 |
+
Sparse Attention The general idea of these methods is that, instead of attending to the whole sequence, each token only access to a fixed, predefined range such as local neighborhoods and strided or “dilated” windows. Popular methods include local attention (Parmar et al., 2018), blockwise attention (Qiu et al., 2019), strided attention patterns (Child et al., 2019; Beltagy et al., 2020), and compressed attention (Liu et al., 2018). To make this range more flexible, Reformer (Kitaev et al., 2020) employs a hash-based similarity measure to efficiently cluster tokens into chunks and Routing Transformer(Roy et al., 2021) employ online $\mathbf { k }$ -means clustering on the tokens. The Sinkhorn sorting Network (Tay et al., 2020a) exposes the sparsity in attention weights by learning to sort blocks of the input sequence.
|
| 194 |
+
|
| 195 |
+
Kernel Methods. A recently popular method to improve the efficiency of Transformers is to avoid explicitly computing the $m \times n$ attention matrix $A$ in (1) by re-writing it with kernels. Typical models leveraging kernelization are Linear Transformer (Katharopoulos et al., 2020), Performer (Choromanski et al., 2020) and Random Feature Attention (Peng et al., 2021). Since kernels are a form of approximation of the attention matrix, they can be also viewed as a form of low-rank method (Choromanski et al., 2020) that compresses the context to a shorter length, such as Linformer (Wang et al., 2019) and the proposed Luna model.
|
| 196 |
+
|
| 197 |
+
Recurrence. The simplest technique to reduce the complexity of Transformer is to chunk input sequences into fixed blocks, with the obvious disadvantage of losing contextual information from past chunks. As discussed in Tay et al. (2020b), these models can be regarded as fixed pattern models. Transformer-XL (Dai et al., 2019) proposed a natural extension to the blockwise method to connect these blocks via a recurrence mechanism. Compressive Transformer (Rae et al., 2020) further extends Transformer-XL by maintaining a fine-grained memory of past chunk activations, which are discarded in Transformer-XL. Technically, Luna can be adapted to a recurrence method, by simply using $P$ as an inherent memory module to maintain the recurrence across segments.
|
| 198 |
+
|
| 199 |
+
# 6 Conclusion
|
| 200 |
+
|
| 201 |
+
We have introduced Luna, a simple, efficient and effective linear attention mechanism used as a drop-in substitute for regular softmax attention. By introducing an extra input with the fixed length, Luna is capable of capturing adequate contextual information while performing attention operations linearly. On three sequence modeling tasks, i.e., long-context sequence modeling, neural machine translation, and large-scale pretraining and finetuning, Luna achieves comparable or even better performance than a variety of strong baselines, while acquiring prominent gains of efficiency in both speed and memory. In future work, we are interested in combining Luna with recurrence methods where $P$ can be used as a running memory across segments of inputs. Another interesting direction would be to apply Luna to other tasks with long input sequences, such as document-level summarization and translation.
|
| 202 |
+
|
| 203 |
+
# Acknowledgments and Disclosure of Funding
|
| 204 |
+
|
| 205 |
+
This material is based on research sponsored by Air Force Research Laboratory (AFRL) under agreement number FA8750-19-1-1000. The U.S. Government is authorized to reproduce and distribute reprints for Government purposes notwithstanding any copyright notation therein. Xiang Kong was supported by U.S. DARPA AIDA Program No. FA8750-18-2-0014. The views and conclusions contained herein are those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of Air Force Laboratory, DARPA or the U.S. Government.
|
| 206 |
+
|
| 207 |
+
# References
|
| 208 |
+
|
| 209 |
+
Joshua Ainslie, Santiago Ontanon, Chris Alberti, Vaclav Cvicek, Zachary Fisher, Philip Pham, Anirudh Ravula, Sumit Sanghai, Qifan Wang, and Li Yang. Etc: Encoding long and structured inputs in transformers. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 268–284, 2020.
|
| 210 |
+
Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016.
|
| 211 |
+
Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In International Conference on Learning Representations (ICLR), 2015.
|
| 212 |
+
Iz Beltagy, Matthew E Peters, and Arman Cohan. Longformer: The long-document transformer. arXiv preprint arXiv:2004.05150, 2020.
|
| 213 |
+
Zihan Chen, Hongbo Zhang, Xiaoji Zhang, and Leqi Zhao. Quora question pairs. University of Waterloo, 2018.
|
| 214 |
+
Rewon Child, Scott Gray, Alec Radford, and Ilya Sutskever. Generating long sequences with sparse transformers. arXiv preprint arXiv:1904.10509, 2019.
|
| 215 |
+
Krzysztof Choromanski, Valerii Likhosherstov, David Dohan, Xingyou Song, Andreea Gane, Tamas Sarlos, Peter Hawkins, Jared Davis, Afroz Mohiuddin, Lukasz Kaiser, et al. Rethinking attention with performers. arXiv preprint arXiv:2009.14794, 2020.
|
| 216 |
+
Djork-Arné Clevert, Thomas Unterthiner, and Sepp Hochreiter. Fast and accurate deep network learning by exponential linear units (elus). In International Conference on Learning Representations (ICLR), 2016.
|
| 217 |
+
Zihang Dai, Zhilin Yang, Yiming Yang, Jaime G Carbonell, Quoc Le, and Ruslan Salakhutdinov. Transformer-xl: Attentive language models beyond a fixed-length context. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 2978–2988, 2019.
|
| 218 |
+
Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit, and Lukasz Kaiser. Universal transformers. In International Conference on Learning Representations (ICLR), 2018.
|
| 219 |
+
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171–4186, 2019.
|
| 220 |
+
Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020.
|
| 221 |
+
Angela Fan, Pierre Stock, Benjamin Graham, Edouard Grave, Remi Gribonval, Herve Jegou, and Armand Joulin. Training with quantization noise for extreme fixed-point compression. arXiv preprint arXiv:2004.07320, 2020.
|
| 222 |
+
|
| 223 |
+
Xavier Glorot, Antoine Bordes, and Yoshua Bengio. Deep sparse rectifier neural networks. In Proceedings of the fourteenth international conference on artificial intelligence and statistics, pages 315–323. JMLR Workshop and Conference Proceedings, 2011.
|
| 224 |
+
|
| 225 |
+
Aaron Gokaslan and Vanya Cohen. Openwebtext corpus. URl: https://skylion007. github. io/OpenWebTextCorpus, 2019.
|
| 226 |
+
|
| 227 |
+
Anirudh Goyal, Aniket Didolkar, Alex Lamb, Kartikeya Badola, Nan Rosemary Ke, Nasim Rahaman, Jonathan Binas, Charles Blundell, Michael Mozer, and Yoshua Bengio. Coordination among neural modules through a shared global workspace. arXiv preprint arXiv:2103.01197, 2021.
|
| 228 |
+
|
| 229 |
+
Ankit Gupta and Jonathan Berant. Gmat: Global memory augmentation for transformers. arXiv preprint arXiv:2006.03274, 2020.
|
| 230 |
+
|
| 231 |
+
Angelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, and François Fleuret. Transformers are rnns: Fast autoregressive transformers with linear attention. In International Conference on Machine Learning, pages 5156–5165. PMLR, 2020.
|
| 232 |
+
|
| 233 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2015.
|
| 234 |
+
|
| 235 |
+
Nikita Kitaev, Łukasz Kaiser, and Anselm Levskaya. Reformer: The efficient transformer. arXiv preprint arXiv:2001.04451, 2020.
|
| 236 |
+
|
| 237 |
+
Alex Krizhevsky et al. Learning multiple layers of features from tiny images. Technical Report. University of Toronto, 2009.
|
| 238 |
+
|
| 239 |
+
Guokun Lai, Qizhe Xie, Hanxiao Liu, Yiming Yang, and Eduard Hovy. Race: Large-scale reading comprehension dataset from examinations. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 785–794, 2017.
|
| 240 |
+
|
| 241 |
+
Juho Lee, Yoonho Lee, Jungtaek Kim, Adam Kosiorek, Seungjin Choi, and Yee Whye Teh. Set transformer: A framework for attention-based permutation-invariant neural networks. In International Conference on Machine Learning, pages 3744–3753. PMLR, 2019.
|
| 242 |
+
|
| 243 |
+
Drew Linsley, Junkyung Kim, Vijay Veerabadran, Charles Windolf, and Thomas Serre. Learning long-range spatial dependencies with horizontal gated recurrent units. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 31. Curran Associates, Inc., 2018. URL https://proceedings.neurips.cc/paper/2018/file/ec8956637a99787bd197eacd77acce5e-Paper.pdf.
|
| 244 |
+
|
| 245 |
+
Peter J Liu, Mohammad Saleh, Etienne Pot, Ben Goodrich, Ryan Sepassi, Lukasz Kaiser, and Noam Shazeer. Generating wikipedia by summarizing long sequences. In International Conference on Learning Representations (ICLR), 2018.
|
| 246 |
+
|
| 247 |
+
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.
|
| 248 |
+
|
| 249 |
+
Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019.
|
| 250 |
+
|
| 251 |
+
Xuezhe Ma. Apollo: An adaptive parameter-wise diagonal quasi-newton method for nonconvex stochastic optimization. arXiv preprint arXiv:2009.13586, 2020.
|
| 252 |
+
|
| 253 |
+
Andrew Maas, Raymond E Daly, Peter T Pham, Dan Huang, Andrew Y Ng, and Christopher Potts. Learning word vectors for sentiment analysis. In Proceedings of the 49th annual meeting of the association for computational linguistics: Human language technologies, pages 142–150, 2011.
|
| 254 |
+
|
| 255 |
+
Ali Madani, Bryan McCann, Nikhil Naik, Nitish Shirish Keskar, Namrata Anand, Raphael R Eguchi, Possu Huang, and Richard Socher. Progen: Language modeling for protein generation. bioRxiv, 2020.
|
| 256 |
+
|
| 257 |
+
Sebastian Nagel. Cc-news. URL: http://web. archive. org/save/http://commoncrawl. org/2016/10/newsdatasetavailable, 2016.
|
| 258 |
+
|
| 259 |
+
Nikita Nangia and Samuel Bowman. Listops: A diagnostic dataset for latent tree learning. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Student Research Workshop, pages 92–99, 2018.
|
| 260 |
+
|
| 261 |
+
Myle Ott, Sergey Edunov, David Grangier, and Michael Auli. Scaling neural machine translation. In Proceedings of the Third Conference on Machine Translation: Research Papers, pages 1–9, 2018.
|
| 262 |
+
|
| 263 |
+
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 Proceedings of NAACL-HLT 2019: Demonstrations, 2019.
|
| 264 |
+
|
| 265 |
+
Niki Parmar, Ashish Vaswani, Jakob Uszkoreit, Lukasz Kaiser, Noam Shazeer, Alexander Ku, and Dustin Tran. Image transformer. In International Conference on Machine Learning, pages 4055–4064. PMLR, 2018.
|
| 266 |
+
|
| 267 |
+
Hao Peng, Nikolaos Pappas, Dani Yogatama, Roy Schwartz, Noah Smith, and Lingpeng Kong. Random feature attention. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id $=$ QtTKTdVrFBB.
|
| 268 |
+
|
| 269 |
+
Jiezhong Qiu, Hao Ma, Omer Levy, Scott Wen-tau Yih, Sinong Wang, and Jie Tang. Blockwise self-attention for long document understanding. arXiv preprint arXiv:1911.02972, 2019.
|
| 270 |
+
|
| 271 |
+
Dragomir R Radev, Pradeep Muthukrishnan, Vahed Qazvinian, and Amjad Abu-Jbara. The acl anthology network corpus. Language Resources and Evaluation, 47(4):919–944, 2013.
|
| 272 |
+
|
| 273 |
+
Jack W Rae, Anna Potapenko, Siddhant M Jayakumar, Chloe Hillier, and Timothy P Lillicrap. Compressive transformers for long-range sequence modeling. In International Conference on Learning Representations (ICLR), 2020.
|
| 274 |
+
|
| 275 |
+
Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. Squad: $^ { 1 0 0 , 0 0 0 + }$ questions for machine comprehension of text. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pages 2383–2392, 2016.
|
| 276 |
+
|
| 277 |
+
Aurko Roy, Mohammad Saffar, Ashish Vaswani, and David Grangier. Efficient content-based sparse attention with routing transformers. Transactions of the Association for Computational Linguistics, 9:53–68, 2021.
|
| 278 |
+
|
| 279 |
+
Rico Sennrich, Barry Haddow, and Alexandra Birch. Neural machine translation of rare words with subword units. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1715–1725, 2016.
|
| 280 |
+
|
| 281 |
+
Sheng Shen, Zhen Dong, Jiayu Ye, Linjian Ma, Zhewei Yao, Amir Gholami, Michael W Mahoney, and Kurt Keutzer. Q-bert: Hessian based ultra low precision quantization of bert. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 8815–8821, 2020.
|
| 282 |
+
|
| 283 |
+
Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D Manning, Andrew $\mathrm { \Delta Y N g }$ , and Christopher Potts. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the 2013 conference on empirical methods in natural language processing, pages 1631–1642, 2013.
|
| 284 |
+
|
| 285 |
+
Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2818–2826, 2016.
|
| 286 |
+
|
| 287 |
+
Alon Talmor, Jonathan Herzig, Nicholas Lourie, and Jonathan Berant. Commonsenseqa: A question answering challenge targeting commonsense knowledge. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4149–4158, 2019.
|
| 288 |
+
|
| 289 |
+
Yi Tay, Dara Bahri, Liu Yang, Donald Metzler, and Da-Cheng Juan. Sparse sinkhorn attention. In International Conference on Machine Learning, pages 9438–9447. PMLR, 2020a.
|
| 290 |
+
|
| 291 |
+
Yi Tay, Mostafa Dehghani, Dara Bahri, and Donald Metzler. Efficient transformers: A survey. arXiv preprint arXiv:2009.06732, 2020b.
|
| 292 |
+
|
| 293 |
+
Yi Tay, Mostafa Dehghani, Samira Abnar, Yikang Shen, Dara Bahri, Philip Pham, Jinfeng Rao, Liu Yang, Sebastian Ruder, and Donald Metzler. Long range arena : A benchmark for efficient transformers. In International Conference on Learning Representations, 2021. URL https: //openreview.net/forum?id=qVyeW-grC2k.
|
| 294 |
+
Trieu H Trinh and Quoc V Le. A simple method for commonsense reasoning. arXiv preprint arXiv:1806.02847, 2018.
|
| 295 |
+
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, pages 5998–6008, 2017.
|
| 296 |
+
Ashish Vaswani, Samy Bengio, Eugene Brevdo, Francois Chollet, Aidan Gomez, Stephan Gouws, Llion Jones, Łukasz Kaiser, Nal Kalchbrenner, Niki Parmar, et al. Tensor2tensor for neural machine translation. In Proceedings of the 13th Conference of the Association for Machine Translation in the Americas (Volume 1: Research Track), pages 193–199, 2018.
|
| 297 |
+
Qiang Wang, Bei Li, Tong Xiao, Jingbo Zhu, Changliang Li, Derek F Wong, and Lidia S Chao. Learning deep transformer models for machine translation. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 1810–1822, 2019.
|
| 298 |
+
Sinong Wang, Belinda Li, Madian Khabsa, Han Fang, and Hao Ma. Linformer: Self-attention with linear complexity. arXiv preprint arXiv:2006.04768, 2020.
|
| 299 |
+
Yingce Xia, Tianyu He, Xu Tan, Fei Tian, Di He, and Tao Qin. Tied transformers: Neural machine translation with shared encoder and decoder. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 5466–5473, 2019.
|
| 300 |
+
Ruibin Xiong, Yunchang Yang, Di He, Kai Zheng, Shuxin Zheng, Chen Xing, Huishuai Zhang, Yanyan Lan, Liwei Wang, and Tieyan Liu. On layer normalization in the transformer architecture. In International Conference on Machine Learning, pages 10524–10533. PMLR, 2020.
|
| 301 |
+
Yukun Zhu, Ryan Kiros, Rich Zemel, Ruslan Salakhutdinov, Raquel Urtasun, Antonio Torralba, and Sanja Fidler. Aligning books and movies: Towards story-like visual explanations by watching movies and reading books. In Proceedings of the IEEE international conference on computer vision, pages 19–27, 2015.
|
parse/train/GWRkOYr4jxQ/GWRkOYr4jxQ_content_list.json
ADDED
|
@@ -0,0 +1,1503 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "text",
|
| 16 |
+
"text": "Xuezhe Ma∗ ISI, USC xuezhema@isi.edu ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
225,
|
| 19 |
+
196,
|
| 20 |
+
364,
|
| 21 |
+
238
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Xiang Kong∗ LTI, CMU xiangk@cs.cmu.edu ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
421,
|
| 30 |
+
196,
|
| 31 |
+
568,
|
| 32 |
+
238
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Sinong Wang∗ Facebook AI sinongwang@fb.com ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
625,
|
| 41 |
+
196,
|
| 42 |
+
774,
|
| 43 |
+
239
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Chunting Zhou LTI, CMU chuntinz@cs.cmu.edu ",
|
| 50 |
+
"bbox": [
|
| 51 |
+
210,
|
| 52 |
+
260,
|
| 53 |
+
375,
|
| 54 |
+
301
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "Jonathan May ISI, USC jonmay@isi.edu ",
|
| 61 |
+
"bbox": [
|
| 62 |
+
421,
|
| 63 |
+
261,
|
| 64 |
+
542,
|
| 65 |
+
301
|
| 66 |
+
],
|
| 67 |
+
"page_idx": 0
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"type": "text",
|
| 71 |
+
"text": "Hao Ma, Luke Zettlemoyer Facebook AI {haom, lsz}@fb.com ",
|
| 72 |
+
"bbox": [
|
| 73 |
+
586,
|
| 74 |
+
260,
|
| 75 |
+
785,
|
| 76 |
+
301
|
| 77 |
+
],
|
| 78 |
+
"page_idx": 0
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"type": "text",
|
| 82 |
+
"text": "Abstract ",
|
| 83 |
+
"text_level": 1,
|
| 84 |
+
"bbox": [
|
| 85 |
+
462,
|
| 86 |
+
318,
|
| 87 |
+
535,
|
| 88 |
+
333
|
| 89 |
+
],
|
| 90 |
+
"page_idx": 0
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"type": "text",
|
| 94 |
+
"text": "The quadratic computational and memory complexities of the Transformer’s attention mechanism have limited its scalability for modeling long sequences. In this paper, we propose Luna, a linear unified nested attention mechanism that approximates softmax attention with two nested linear attention functions, yielding only linear (as opposed to quadratic) time and space complexity. As compared to a more traditional attention mechanism, Luna introduces an additional sequence with a fixed length as input and an additional corresponding output, which allows Luna to perform attention operation linearly, while also storing adequate contextual information. We perform extensive evaluations on three benchmarks of sequence modeling tasks: long-context sequence modeling, neural machine translation and masked language modeling for large-scale pretraining. Competitive or even better experimental results demonstrate both the effectiveness and efficiency of Luna compared to a variety of strong baseline methods including the full-rank attention and other efficient sparse and dense attention methods. The implementation of our model is available at https://github.com/XuezheMax/fairseq-apollo. ",
|
| 95 |
+
"bbox": [
|
| 96 |
+
232,
|
| 97 |
+
348,
|
| 98 |
+
766,
|
| 99 |
+
555
|
| 100 |
+
],
|
| 101 |
+
"page_idx": 0
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"type": "text",
|
| 105 |
+
"text": "1 Introduction ",
|
| 106 |
+
"text_level": 1,
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
579,
|
| 110 |
+
310,
|
| 111 |
+
595
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "Transformers (Vaswani et al., 2017) are surprisingly versatile models that preform well on a wide range of language and vision tasks, including machine translation (Vaswani et al., 2017; Ott et al., 2018), language understanding (Devlin et al., 2019), image recognition (Dosovitskiy et al., 2020) and bioinformatics (Madani et al., 2020). Attention (Bahdanau et al., 2015) provides the key mechanism that captures contextual information from the entire sequence by modeling pairwise interactions between the inputs at every timestep. However, a common weakness of Transformers is their quadratic time and memory complexity within the attention mechanism w.r.t the length of the input sequence, which prohibitively restricts their potential application to tasks requiring longer input sequences. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
607,
|
| 121 |
+
504,
|
| 122 |
+
827
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "image",
|
| 128 |
+
"img_path": "images/7370598fea7f6182bfeab93b22c2fcc488a37f690b5af9dd24427ccc46f8ff15.jpg",
|
| 129 |
+
"image_caption": [
|
| 130 |
+
"Figure 1: Trade-off between accuracy (y-axis), speed (x-axis) and memory (cir-radius) on LRA. "
|
| 131 |
+
],
|
| 132 |
+
"image_footnote": [],
|
| 133 |
+
"bbox": [
|
| 134 |
+
521,
|
| 135 |
+
573,
|
| 136 |
+
816,
|
| 137 |
+
790
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 0
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "A number of techniques have been recently introduced to improve the time and memory efficiency of Transformer models (‘xformers’) (Tay et al., 2020b, 2021). One popular technique is using sparsity to restrict the attention field range, such as local attention (Parmar et al., 2018), blockwise attention (Qiu et al., 2019), strided attention patterns (Child et al., 2019; Beltagy et al., 2020), compressed attention (Liu et al., 2018), and attention with learnable patterns (Kitaev et al., 2020; Tay et al., 2020a; Roy et al., 2021). Another emerging approach is to improve efficiency by leveraging low-rank approximations of the attention matrix. Linformer (Wang et al., 2020), for example, projects the length dimension of key and value matrices to a fixed-dimensional representation by assuming low-rank structure in the full-rank attention matrix. Recently, some kernel-based methods, such as Linear Transformer (Katharopoulos et al., 2020), Performer (Choromanski et al., 2020) and Random Feature Attention (Peng et al., 2021), attempt to efficiently approximate regular (softmax) full-rank attention through kernelization. Although these models demonstrate better asymptotic complexity for long sequences, their efficiency gains are less prominent for moderate length sequences and their performance remains behind Transformers with regular attention. ",
|
| 144 |
+
"bbox": [
|
| 145 |
+
174,
|
| 146 |
+
834,
|
| 147 |
+
825,
|
| 148 |
+
890
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 0
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "",
|
| 155 |
+
"bbox": [
|
| 156 |
+
173,
|
| 157 |
+
90,
|
| 158 |
+
825,
|
| 159 |
+
229
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "In this work, we propose a linear unified nested attention mechanism (Luna), which uses two nested attention functions to approximate the regular softmax attention in Transformer (§2). Specifically, with the first attention function, Luna packs the input sequence into a sequence of fixed length. Then, the packed sequence is unpacked using the second attention function (§3.1). As compared to a more traditional attention mechanism, Luna introduces an additional sequence with a fixed length as input and an additional corresponding output. Importantly, the extra input allows Luna to perform attention operation linearly as efficiently as Linformer (Wang et al., 2020), while also storing adequate contextual information. Unlike Linformer, Luna is capable of modeling variable-length sequences and autoregressive (causal) attention (§3.4). We perform extensive experiments on three sequence modeling tasks, including long-context sequence modeling, neural machine translation, and masked language modeling for large-scale pretraining and downstream task finetuning. Compared to a variety of strong baseline models, Luna achieves competitive or even better performance, while acquiring prominent gains of efficiency in both speed and memory (see Figure 1). More importantly, Luna manages to obtain superior performance with small projection lengths such as 16 (§4). ",
|
| 166 |
+
"bbox": [
|
| 167 |
+
173,
|
| 168 |
+
236,
|
| 169 |
+
825,
|
| 170 |
+
429
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 1
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "2 Background ",
|
| 177 |
+
"text_level": 1,
|
| 178 |
+
"bbox": [
|
| 179 |
+
174,
|
| 180 |
+
440,
|
| 181 |
+
308,
|
| 182 |
+
458
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 1
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "2.1 Attention ",
|
| 189 |
+
"text_level": 1,
|
| 190 |
+
"bbox": [
|
| 191 |
+
174,
|
| 192 |
+
463,
|
| 193 |
+
279,
|
| 194 |
+
478
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 1
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "text",
|
| 200 |
+
"text": "The traditional attention mechanism is a function: ",
|
| 201 |
+
"bbox": [
|
| 202 |
+
174,
|
| 203 |
+
486,
|
| 204 |
+
501,
|
| 205 |
+
500
|
| 206 |
+
],
|
| 207 |
+
"page_idx": 1
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "equation",
|
| 211 |
+
"img_path": "images/970729d08c786e09b9bdb9d2dd574342038645c3fc62549f0c4b91c8c3aa7f5c.jpg",
|
| 212 |
+
"text": "$$\nY = \\mathrm { A t t n } ( X , C ) = \\omega \\left( { \\frac { X W _ { Q } ( C W _ { K } ) ^ { T } } { \\sqrt { d } } } \\right) C W _ { V }\n$$",
|
| 213 |
+
"text_format": "latex",
|
| 214 |
+
"bbox": [
|
| 215 |
+
333,
|
| 216 |
+
498,
|
| 217 |
+
663,
|
| 218 |
+
532
|
| 219 |
+
],
|
| 220 |
+
"page_idx": 1
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"type": "text",
|
| 224 |
+
"text": "where the attention function Attn $\\colon \\mathbb { R } ^ { n \\times d } \\times \\mathbb { R } ^ { m \\times d } \\to \\mathbb { R } ^ { n \\times d }$ takes as inputs two sequences: the query sequence $\\ b { X } \\in \\mathbb { R } ^ { n \\times d }$ with length $n$ and the context sequence $C \\in \\mathbb { R } ^ { m \\times d }$ with length $m$ , and output one sequence $Y \\in \\mathbb { R } ^ { n \\times d }$ with the same length $n$ as the query $X$ . $d$ is the embedding dimension, and $W _ { Q }$ , $W _ { K }$ , $W _ { V } \\in \\mathbb { R } ^ { d \\times d }$ are three learnable parameters that project the input sequences into the space of query, key and value matrices: $Q = X \\bar { W } _ { Q } , K = C \\bar { W _ { K } } , \\bar { V } = C \\bar { W _ { V } } . c$ $\\omega$ is an activation function, e.g. the softmax function in regular attention. Note that the formulation in (1) is applicable to both cross-attention where $C$ and $X$ are the representations from Transformer encoder and decoder, respectively, and self-attention where $X$ and $C$ are the same sequence $X = C$ ). In practice, the multi-head variant of attention (Vaswani et al., 2017), which performs the attention function $h$ times in parallel, is commonly used. Throughout this paper, we omit $h$ for simplicity. ",
|
| 225 |
+
"bbox": [
|
| 226 |
+
173,
|
| 227 |
+
531,
|
| 228 |
+
825,
|
| 229 |
+
671
|
| 230 |
+
],
|
| 231 |
+
"page_idx": 1
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"type": "text",
|
| 235 |
+
"text": "In particular, the matrix $\\begin{array} { r } { A = \\omega ( \\frac { Q K ^ { T } } { \\sqrt { d _ { k } } } ) \\in \\mathbb { R } ^ { n \\times m } } \\end{array}$ in (1) is called the attention matrix which specifies the alignment scores between every pair of tokens in sequences of queries $X$ and contexts $C$ Calculating $A$ takes $O ( n m )$ time and space, which is quadratic with respect to the sequence length and becomes a significant bottleneck when processing long sequences. ",
|
| 236 |
+
"bbox": [
|
| 237 |
+
174,
|
| 238 |
+
676,
|
| 239 |
+
825,
|
| 240 |
+
739
|
| 241 |
+
],
|
| 242 |
+
"page_idx": 1
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"type": "text",
|
| 246 |
+
"text": "2.2 Transformer Layers ",
|
| 247 |
+
"text_level": 1,
|
| 248 |
+
"bbox": [
|
| 249 |
+
174,
|
| 250 |
+
747,
|
| 251 |
+
354,
|
| 252 |
+
762
|
| 253 |
+
],
|
| 254 |
+
"page_idx": 1
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"type": "text",
|
| 258 |
+
"text": "The other two key components of Transformer, besides attention, are position-wise feed-forward networks (FFN) and layer normalization (Ba et al., 2016). Technically, the position-wise feedforward layer operates on each position independently and layer normalization plays a crucial role in controlling the gradient scales (Xiong et al., 2020). Each Transformer layer can be expressed as: ",
|
| 259 |
+
"bbox": [
|
| 260 |
+
173,
|
| 261 |
+
770,
|
| 262 |
+
825,
|
| 263 |
+
825
|
| 264 |
+
],
|
| 265 |
+
"page_idx": 1
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"type": "equation",
|
| 269 |
+
"img_path": "images/018e5a9073abf3a8de3be79058dceeec751df386a222c258e0cd9ce7a379e226.jpg",
|
| 270 |
+
"text": "$$\n\\begin{array} { r } { \\begin{array} { r c l } { X _ { A } } & { = } & { \\mathrm { L a y e r N o r m } ( \\mathrm { A t t n } ( X , C ) + X ) } \\\\ { X ^ { \\prime } } & { = } & { \\mathrm { L a y e r N o r m } ( \\mathrm { F F N } ( X _ { A } ) + X _ { A } ) } \\end{array} } \\end{array}\n$$",
|
| 271 |
+
"text_format": "latex",
|
| 272 |
+
"bbox": [
|
| 273 |
+
357,
|
| 274 |
+
827,
|
| 275 |
+
638,
|
| 276 |
+
858
|
| 277 |
+
],
|
| 278 |
+
"page_idx": 1
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"type": "text",
|
| 282 |
+
"text": "where $X$ and $C$ are the two input sequences and $X ^ { \\prime }$ is the output of the Transformer layer. The Transformer layer in (2) adopts the original post-layer normalization architecture (Vaswani et al., 2017; Devlin et al., 2019) that places layer normalization after residual connection, rather than pre-layer normalization (Vaswani et al., 2018; Wang et al., 2019). ",
|
| 283 |
+
"bbox": [
|
| 284 |
+
174,
|
| 285 |
+
856,
|
| 286 |
+
825,
|
| 287 |
+
911
|
| 288 |
+
],
|
| 289 |
+
"page_idx": 1
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"type": "image",
|
| 293 |
+
"img_path": "images/918c2cc6b4f018e1517fb6cc3fb341bdc218caeafcdd64ae16ca3b80e4ce5063.jpg",
|
| 294 |
+
"image_caption": [
|
| 295 |
+
"Figure 2: Illustration of the architecture of one Transformer encoder layer (left) versus one Luna encoder layer (right). "
|
| 296 |
+
],
|
| 297 |
+
"image_footnote": [],
|
| 298 |
+
"bbox": [
|
| 299 |
+
225,
|
| 300 |
+
87,
|
| 301 |
+
772,
|
| 302 |
+
304
|
| 303 |
+
],
|
| 304 |
+
"page_idx": 2
|
| 305 |
+
},
|
| 306 |
+
{
|
| 307 |
+
"type": "text",
|
| 308 |
+
"text": "3 Linear Unified Nested Attention (Luna) ",
|
| 309 |
+
"text_level": 1,
|
| 310 |
+
"bbox": [
|
| 311 |
+
174,
|
| 312 |
+
359,
|
| 313 |
+
535,
|
| 314 |
+
377
|
| 315 |
+
],
|
| 316 |
+
"page_idx": 2
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"type": "text",
|
| 320 |
+
"text": "Our goal is to design an efficient attention mechanism to solve the quadratic complexity problem of full attention. We first introduce the proposed linear unified nested attention mechanism, named Luna attention (§3.1), and the architecture of each Luna layer (§3.2). Then, we present the variant of Luna for causal attention, named Luna causal attention (§3.3). Finally, we discuss the differences between Luna and three closely related models: Linformer (Wang et al., 2019), Set Transformer (Lee et al., 2019) (§3.4) and Shared Workspace (Goyal et al., 2021). ",
|
| 321 |
+
"bbox": [
|
| 322 |
+
173,
|
| 323 |
+
390,
|
| 324 |
+
825,
|
| 325 |
+
474
|
| 326 |
+
],
|
| 327 |
+
"page_idx": 2
|
| 328 |
+
},
|
| 329 |
+
{
|
| 330 |
+
"type": "text",
|
| 331 |
+
"text": "3.1 Pack and Unpack Attention ",
|
| 332 |
+
"text_level": 1,
|
| 333 |
+
"bbox": [
|
| 334 |
+
176,
|
| 335 |
+
486,
|
| 336 |
+
406,
|
| 337 |
+
502
|
| 338 |
+
],
|
| 339 |
+
"page_idx": 2
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"type": "text",
|
| 343 |
+
"text": "The key idea behind Luna is to decouple the regular attention function in (1) into two nested attention operations, both of which have linear efficiency. To achieve this, besides the original query and context input sequences, Luna introduces an extra input that is a sequence with fixed (constant) length. With this extra input as the query sequence, Luna uses its first attention, named pack attention, to pack the context sequence into a fixed-length sequence. Formally, let $P \\in \\mathbb { R } ^ { l \\times d }$ denote the extra input sequence with fixed length $l$ . The pack attention first packs $C$ to $Y _ { P }$ with $P$ as the query sequence: ",
|
| 344 |
+
"bbox": [
|
| 345 |
+
173,
|
| 346 |
+
508,
|
| 347 |
+
825,
|
| 348 |
+
593
|
| 349 |
+
],
|
| 350 |
+
"page_idx": 2
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"type": "equation",
|
| 354 |
+
"img_path": "images/4e65e5d2017981df12bfb1a5954d29798f0e90f73693103f5dae89b41de54380.jpg",
|
| 355 |
+
"text": "$$\nY _ { P } = \\mathrm { A t t n } ( P , C )\n$$",
|
| 356 |
+
"text_format": "latex",
|
| 357 |
+
"bbox": [
|
| 358 |
+
437,
|
| 359 |
+
599,
|
| 360 |
+
560,
|
| 361 |
+
616
|
| 362 |
+
],
|
| 363 |
+
"page_idx": 2
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"type": "text",
|
| 367 |
+
"text": "where $\\mathrm { A t t n } ( \\cdot , \\cdot )$ is the regular attention function in (1), $C \\in \\mathbb { R } ^ { m \\times d }$ is the context sequence, and $Y _ { P } \\in \\mathbb { R } ^ { l \\times d }$ is the output of the pack attention, which is named the packed context. Since the length of $P$ is a constant $l$ , the complexity of pack attention is $O ( l m )$ , which is linear with respect to $m$ . ",
|
| 368 |
+
"bbox": [
|
| 369 |
+
174,
|
| 370 |
+
622,
|
| 371 |
+
825,
|
| 372 |
+
667
|
| 373 |
+
],
|
| 374 |
+
"page_idx": 2
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"type": "text",
|
| 378 |
+
"text": "To unpack the sequence back to the length of the original query sequence $X$ , Luna leverages its second attention, named unpack attention: ",
|
| 379 |
+
"bbox": [
|
| 380 |
+
174,
|
| 381 |
+
672,
|
| 382 |
+
825,
|
| 383 |
+
702
|
| 384 |
+
],
|
| 385 |
+
"page_idx": 2
|
| 386 |
+
},
|
| 387 |
+
{
|
| 388 |
+
"type": "equation",
|
| 389 |
+
"img_path": "images/ae55c6bf56ad6ed250873f5e0bdc150219594e576260dea12766f7783edfe34c.jpg",
|
| 390 |
+
"text": "$$\nY _ { X } = \\mathrm { A t t n } ( X , Y _ { P } )\n$$",
|
| 391 |
+
"text_format": "latex",
|
| 392 |
+
"bbox": [
|
| 393 |
+
431,
|
| 394 |
+
708,
|
| 395 |
+
566,
|
| 396 |
+
726
|
| 397 |
+
],
|
| 398 |
+
"page_idx": 2
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"type": "text",
|
| 402 |
+
"text": "where $\\ b { X } \\in \\mathbb { R } ^ { n \\times d }$ is the original query sequence. Similar to pack attention, the complexity of unpack attention is $O ( l n )$ , which is also linear with repect to $n$ . ",
|
| 403 |
+
"bbox": [
|
| 404 |
+
174,
|
| 405 |
+
733,
|
| 406 |
+
825,
|
| 407 |
+
762
|
| 408 |
+
],
|
| 409 |
+
"page_idx": 2
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"type": "text",
|
| 413 |
+
"text": "Encoding Contextual Information in $P$ . The next question is where the extra input sequence $P$ comes from. One straightforward choice is to format $P$ as a learnable parameter of each Luna layer. One obvious drawback of this method, however, is that $P$ would not capture any contextual information. To enhance the capacity of the Luna model, we propose to formulate $Y _ { P }$ as an additional output of each Luna layer, corresponding to $P$ . Formally, the Luna attention function LunaAttn $( \\cdot , \\cdot , \\cdot )$ takes three sequences as input and generates two sequence as output: ",
|
| 414 |
+
"bbox": [
|
| 415 |
+
173,
|
| 416 |
+
768,
|
| 417 |
+
825,
|
| 418 |
+
853
|
| 419 |
+
],
|
| 420 |
+
"page_idx": 2
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"type": "equation",
|
| 424 |
+
"img_path": "images/09230833a3a1611d474490851049ba66488c57193e050bdae3fccae29869a5c8.jpg",
|
| 425 |
+
"text": "$$\nY _ { X } , Y _ { P } = \\operatorname { L u n a A t t n } ( X , P , C )\n$$",
|
| 426 |
+
"text_format": "latex",
|
| 427 |
+
"bbox": [
|
| 428 |
+
393,
|
| 429 |
+
859,
|
| 430 |
+
604,
|
| 431 |
+
876
|
| 432 |
+
],
|
| 433 |
+
"page_idx": 2
|
| 434 |
+
},
|
| 435 |
+
{
|
| 436 |
+
"type": "text",
|
| 437 |
+
"text": "where the computation of $Y _ { P }$ and $Y _ { X }$ is in (3) and (4). By stacking multiple layers of Luna attention, the output $Y _ { P }$ from the previous layer, which captures contextual information of $C$ , is employed as the input $P$ of the next layer. For the first layer of Luna, we formulate $P$ as learnable positional embeddings2 (Vaswani et al., 2017). ",
|
| 438 |
+
"bbox": [
|
| 439 |
+
173,
|
| 440 |
+
882,
|
| 441 |
+
825,
|
| 442 |
+
911
|
| 443 |
+
],
|
| 444 |
+
"page_idx": 2
|
| 445 |
+
},
|
| 446 |
+
{
|
| 447 |
+
"type": "text",
|
| 448 |
+
"text": "",
|
| 449 |
+
"bbox": [
|
| 450 |
+
173,
|
| 451 |
+
90,
|
| 452 |
+
823,
|
| 453 |
+
119
|
| 454 |
+
],
|
| 455 |
+
"page_idx": 3
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"type": "text",
|
| 459 |
+
"text": "Reducing the Number of Parameters. Due to the two nested attention operations, there are two sets of parameters $( W _ { Q }$ , $W _ { K }$ , $W _ { V } )$ ) in a single Luna attention function. There are several techniques to reduce the number of parameters, such as parameter sharing (Xia et al., 2019). In this work, we follow Wang et al. (2020) to share $W _ { K }$ and $W _ { Q }$ in each layer, and conduct experiments to analyze performance decline against Luna with full sets of parameters (§4.2). ",
|
| 460 |
+
"bbox": [
|
| 461 |
+
173,
|
| 462 |
+
127,
|
| 463 |
+
825,
|
| 464 |
+
198
|
| 465 |
+
],
|
| 466 |
+
"page_idx": 3
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"type": "text",
|
| 470 |
+
"text": "3.2 Luna Layers ",
|
| 471 |
+
"text_level": 1,
|
| 472 |
+
"bbox": [
|
| 473 |
+
174,
|
| 474 |
+
214,
|
| 475 |
+
302,
|
| 476 |
+
229
|
| 477 |
+
],
|
| 478 |
+
"page_idx": 3
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"type": "text",
|
| 482 |
+
"text": "The Luna attention is used as a drop-in-replacement for the regular attention. We incorporate the position-wise feed-forward network and layer normalization into Luna layers. Concretely, layer normalization is applied to both $Y _ { X }$ and $Y _ { P }$ , while FFN only to $Y _ { X }$ : ",
|
| 483 |
+
"bbox": [
|
| 484 |
+
174,
|
| 485 |
+
239,
|
| 486 |
+
825,
|
| 487 |
+
284
|
| 488 |
+
],
|
| 489 |
+
"page_idx": 3
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"type": "equation",
|
| 493 |
+
"img_path": "images/d95a5785aa5007bf6dceba668ec074737a3b6a2d37dd42310eb1191dbf080fba.jpg",
|
| 494 |
+
"text": "$$\n\\begin{array} { r c l } { Y _ { X } , Y _ { P } } & { = } & { \\operatorname { L u n a A t t n } ( X , P , C ) } \\\\ { X _ { A } , P _ { A } } & { = } & { \\operatorname { L a y e r N o r m } ( Y _ { X } + X ) , \\operatorname { L a y e r N o r m } ( Y _ { P } + P ) } \\\\ { X ^ { \\prime } , P ^ { \\prime } } & { = } & { \\operatorname { L a y e r N o r m } ( \\operatorname { F F N } ( X _ { A } ) + X _ { A } ) , P _ { A } } \\end{array}\n$$",
|
| 495 |
+
"text_format": "latex",
|
| 496 |
+
"bbox": [
|
| 497 |
+
290,
|
| 498 |
+
289,
|
| 499 |
+
704,
|
| 500 |
+
337
|
| 501 |
+
],
|
| 502 |
+
"page_idx": 3
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"type": "text",
|
| 506 |
+
"text": "where $X ^ { \\prime }$ and $P ^ { \\prime }$ are the two outputs of the Luna layer. The graphical specification of one Luna layer is illustrated in Figure 2. ",
|
| 507 |
+
"bbox": [
|
| 508 |
+
171,
|
| 509 |
+
343,
|
| 510 |
+
825,
|
| 511 |
+
372
|
| 512 |
+
],
|
| 513 |
+
"page_idx": 3
|
| 514 |
+
},
|
| 515 |
+
{
|
| 516 |
+
"type": "text",
|
| 517 |
+
"text": "3.3 Luna Causal Attention ",
|
| 518 |
+
"text_level": 1,
|
| 519 |
+
"bbox": [
|
| 520 |
+
174,
|
| 521 |
+
388,
|
| 522 |
+
372,
|
| 523 |
+
404
|
| 524 |
+
],
|
| 525 |
+
"page_idx": 3
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"type": "text",
|
| 529 |
+
"text": "As discussed in Tay et al. (2020b), the ability to support causal autoregressive decoding, i.e. attending solely to the past and current tokens, is required when designing efficient self-attention mechanisms. However, due to the pack attention that packs the long sequence $X$ into a fixed (shorter) length, it is not straight-forward to support causal attention in Luna. ",
|
| 530 |
+
"bbox": [
|
| 531 |
+
174,
|
| 532 |
+
414,
|
| 533 |
+
826,
|
| 534 |
+
470
|
| 535 |
+
],
|
| 536 |
+
"page_idx": 3
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
"type": "text",
|
| 540 |
+
"text": "To design causal attention in Luna, we need to assume that the input $P$ contains no information of $X$ , i.e. $P$ will not leak any future information of $X$ to the history. Before we describe the Luna causal attention mechanism, we first define a causal function $f : \\mathbb { R } ^ { n \\times d _ { 1 } } \\times \\mathbb { R } ^ { n \\times d _ { 1 } } \\times \\mathbb { R } ^ { n \\times d _ { 2 } } \\to \\mathbb { R } ^ { n \\times d _ { 2 } }$ : ",
|
| 541 |
+
"bbox": [
|
| 542 |
+
173,
|
| 543 |
+
476,
|
| 544 |
+
825,
|
| 545 |
+
518
|
| 546 |
+
],
|
| 547 |
+
"page_idx": 3
|
| 548 |
+
},
|
| 549 |
+
{
|
| 550 |
+
"type": "equation",
|
| 551 |
+
"img_path": "images/b4f8b25764c645e3a0a21b1bab7446f00f27cd65f51a5591ff3e6daa981b86ee.jpg",
|
| 552 |
+
"text": "$$\nF \\triangleq f ( X , Y , Z ) , { \\mathrm { ~ w h e r e ~ } } F _ { t } = { \\frac { 1 } { t } } X _ { t } \\sum _ { j = 1 } ^ { t } Y _ { j } ^ { T } Z _ { j }\n$$",
|
| 553 |
+
"text_format": "latex",
|
| 554 |
+
"bbox": [
|
| 555 |
+
343,
|
| 556 |
+
525,
|
| 557 |
+
655,
|
| 558 |
+
570
|
| 559 |
+
],
|
| 560 |
+
"page_idx": 3
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"type": "text",
|
| 564 |
+
"text": "where $F \\in \\mathbb { R } ^ { n \\times d _ { 2 } }$ and $F _ { t }$ denotes the $t { \\cdot }$ -th row of $F$ . From the definition of $f$ in (7), we see that $F _ { t }$ can only access the information of the past and present row of $X$ , $Y$ and $Z$ . ",
|
| 565 |
+
"bbox": [
|
| 566 |
+
171,
|
| 567 |
+
579,
|
| 568 |
+
823,
|
| 569 |
+
608
|
| 570 |
+
],
|
| 571 |
+
"page_idx": 3
|
| 572 |
+
},
|
| 573 |
+
{
|
| 574 |
+
"type": "text",
|
| 575 |
+
"text": "To perform Luna causal attention, we first compute the attention matrix of the pack attention: $A _ { p a c k } = \\omega ( P X ^ { T } / \\sqrt { d } )$ . For simplicity, we omit the learnable parameters, e.g. $W _ { Q } , \\ W _ { K } , \\ W _ { V }$ in (1). Note that for $A _ { p a c k }$ , we cannot use the softmax function for $\\omega$ , as the normalization term in softmax leaks future information of $X$ to the history. Inspired by the causal attention mechanism in Linear Transformer (Katharopoulos et al., 2020), we use two activation functions: 1) $\\omega ( \\cdot ) = \\mathrm { e l u } ( \\cdot ) + 1$ based on the exponential linear unit (Clevert et al., 2016); 2) $\\omega ( \\cdot ) = \\mathrm { s o f t p l u s } ( \\cdot )$ based on the softplus function (Glorot et al., 2011). With the causal function $f$ in (7), we compute the attention matrix of the unpack attention: $A _ { u n p a c k } = \\omega ( f ( X , X , A _ { p a c k } ^ { T } ) )$ . Unlike $A _ { p a c k }$ , we can use $\\omega ( \\cdot ) = \\mathrm { s o f t m a x } ( \\cdot )$ for $A _ { u n p a c k }$ , because the normalization is along the $l$ -dimension rather than the $n$ -dimension of $X$ . Finally, the output $\\mathrm { Y }$ is computed by $Y = f ( A _ { u n p a c k } , A _ { p a c k } ^ { T } , X )$ . ",
|
| 576 |
+
"bbox": [
|
| 577 |
+
173,
|
| 578 |
+
613,
|
| 579 |
+
826,
|
| 580 |
+
760
|
| 581 |
+
],
|
| 582 |
+
"page_idx": 3
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"type": "text",
|
| 586 |
+
"text": "The complexity of the causal attention in Luna is still linear: $O ( l n )$ . One drawback of Luna causal attention, similar to the causal attention in Random Feature Attention (RFA) (Peng et al., 2021) and Linear Transformer (Katharopoulos et al., 2020), is its sequential computation for each timestep $t$ . ",
|
| 587 |
+
"bbox": [
|
| 588 |
+
174,
|
| 589 |
+
765,
|
| 590 |
+
823,
|
| 591 |
+
808
|
| 592 |
+
],
|
| 593 |
+
"page_idx": 3
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"type": "text",
|
| 597 |
+
"text": "The sources of $P$ . In the formulation of causal attention, $P$ is expected to contain no information about $X$ . Thus, we need to formulate $P$ based on the usage mode of the causal attention. For the encoder-decoder mode in sequence-to-sequence modeling (e.g. for machine translation), we can use packed output from the Luna encoder as $P$ . For the decoder-only mode (e.g. for language modeling), $P$ might be formulated as a learnable parameter of each layer. ",
|
| 598 |
+
"bbox": [
|
| 599 |
+
174,
|
| 600 |
+
815,
|
| 601 |
+
825,
|
| 602 |
+
886
|
| 603 |
+
],
|
| 604 |
+
"page_idx": 3
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"type": "table",
|
| 608 |
+
"img_path": "images/38698b06b1fd768192a59c0fdcf08a83f562e60b16f84dff9c109f690ae66559.jpg",
|
| 609 |
+
"table_caption": [
|
| 610 |
+
"Table 1: Experimental results on the long range arena (LRA) benchmark. For Luna, we explore three projected dimensions: 16, 128 and 256. ‘Avg. (w/o rtl)’ denotes the averaged accuracy over all tasks excluding Retrieval. The performance of previous works are from Tay et al. (2021). "
|
| 611 |
+
],
|
| 612 |
+
"table_footnote": [],
|
| 613 |
+
"table_body": "<table><tr><td>Models</td><td>ListOps</td><td>Text</td><td>Retrieval</td><td>Image</td><td>Pathfinder</td><td>Avg.</td><td>Avg. (w/o rtl)</td></tr><tr><td>Transformer Transformer (re-impl)</td><td>36.37 37.11</td><td>64.27 65.21</td><td>57.46 79.14</td><td>42.44</td><td>71.40</td><td>54.39</td><td>53.62</td></tr><tr><td></td><td></td><td></td><td></td><td>42.94</td><td>71.83</td><td>59.24</td><td>54.27</td></tr><tr><td>Local Attention</td><td>15.82</td><td>52.98</td><td>53.39</td><td>41.46</td><td>66.63</td><td>46.06</td><td>44.22</td></tr><tr><td>Sparse Trans.</td><td>17.07</td><td>63.58</td><td>59.59</td><td>44.24</td><td>71.71</td><td>51.24</td><td>49.15</td></tr><tr><td>Longformer</td><td>35.63</td><td>62.85</td><td>56.89</td><td>42.22</td><td>69.71</td><td>53.46</td><td>52.60</td></tr><tr><td>Linformer</td><td>35.70</td><td>53.94</td><td>52.27</td><td>38.56</td><td>76.34</td><td>51.36</td><td>51.14</td></tr><tr><td>Reformer</td><td>37.27</td><td>56.10</td><td>53.40</td><td>38.07</td><td>68.50</td><td>50.67</td><td>49.99</td></tr><tr><td>Sinkhorn Trans.</td><td>33.67</td><td>61.20 61.68</td><td>53.83</td><td>41.23</td><td>67.45</td><td>51.39</td><td>50.89</td></tr><tr><td>Synthesizer</td><td>36.99 36.05</td><td>64.02</td><td>54.67</td><td>41.61</td><td>69.45</td><td>52.88</td><td>52.43</td></tr><tr><td>BigBird Linear Trans.</td><td>16.13</td><td>65.90</td><td>59.29 53.09</td><td>40.83 42.34</td><td>74.87 75.30</td><td>55.01</td><td>53.94</td></tr><tr><td>Performer</td><td>18.01</td><td>65.40</td><td>53.82</td><td>42.77</td><td>77.05</td><td>50.55 51.41</td><td>49.92</td></tr><tr><td></td><td>37.43</td><td></td><td></td><td></td><td></td><td></td><td>50.81</td></tr><tr><td>Luna-16</td><td>38.01</td><td>65.74 65.74</td><td>79.38 79.55</td><td>46.39</td><td>78.36</td><td>61.46</td><td>56.98</td></tr><tr><td>Luna-128</td><td>37.98</td><td></td><td></td><td>47.47</td><td>78.89</td><td>61.93</td><td>57.53</td></tr><tr><td>Luna-256</td><td></td><td>65.78</td><td>79.56</td><td>47.86</td><td>78.55</td><td>61.95</td><td>57.54</td></tr></table>",
|
| 614 |
+
"bbox": [
|
| 615 |
+
176,
|
| 616 |
+
150,
|
| 617 |
+
812,
|
| 618 |
+
381
|
| 619 |
+
],
|
| 620 |
+
"page_idx": 4
|
| 621 |
+
},
|
| 622 |
+
{
|
| 623 |
+
"type": "text",
|
| 624 |
+
"text": "3.4 Discussion ",
|
| 625 |
+
"text_level": 1,
|
| 626 |
+
"bbox": [
|
| 627 |
+
174,
|
| 628 |
+
400,
|
| 629 |
+
287,
|
| 630 |
+
414
|
| 631 |
+
],
|
| 632 |
+
"page_idx": 4
|
| 633 |
+
},
|
| 634 |
+
{
|
| 635 |
+
"type": "text",
|
| 636 |
+
"text": "Relation to Linformer and Shared Workspace. One previous work closely related to Luna is Linformer (Wang et al., 2019). Linformer linearly projects the context sequence $C \\in \\mathbb { R } ^ { m \\times d }$ into a sequence with fixed length $l$ : $C ^ { \\prime } = E C$ , where $\\dot { C } ^ { \\prime } \\in \\mathbf { \\mathbb { R } } ^ { l \\times d }$ is the projected context sequence and $E \\in \\mathbb { R } ^ { l \\times m }$ is the learnable projection matrix of each layer. Then, the attention operation is applied on the query $X$ and the projected context $C ^ { \\prime }$ . The pack attention in Luna is a generalization of the linear projection in Linformer. There are two main advantages to Luna over Linformer: i) with pack attention as the projection method, Luna is able to model sequences with various lengths. In contrast, Linformer requires the length of all input sequences to be the same $m$ , due to the projection matrix $E$ , whose shape depends on $m$ . ii) Luna achieves better expressiveness than Linear, not only due to the general projection method but also by encoding adequate contextual information into the projection via $P$ (see $\\ S 3 . 1 \\ r .$ ). Experimental improvements over non-contextual projection demonstrate the effectiveness of Luna (see $\\ S 4 . 2 )$ . In contemporaneous and individual work, Goyal et al. (2021) formulate contextual $p$ as a shared global workspace, which shares similar instantiation with Luna. ",
|
| 637 |
+
"bbox": [
|
| 638 |
+
173,
|
| 639 |
+
424,
|
| 640 |
+
825,
|
| 641 |
+
604
|
| 642 |
+
],
|
| 643 |
+
"page_idx": 4
|
| 644 |
+
},
|
| 645 |
+
{
|
| 646 |
+
"type": "text",
|
| 647 |
+
"text": "Relation to Set Transformer. The additional input $P$ in Luna can be regarded as a side memory module that can access the entire sequence to gather contextual information. From this view of point, Luna is also closely related to Set Transformer (Lee et al., 2019), an early model to integrate side memory module in Transformers. Similar to the projection matrix in Linformer, the inducing points in Set Transformer are learnable parameters. Thus, these inducing points might be formulated as the non-contextual version of $P$ in Luna. Moreover, Set Transformer is designed for set-input problems, which are problems wherein the input is a set of features and the model is thereby invariant to permutation or ordering of the input features (Tay et al., 2020b), while Luna attention is used as a drop-in replacement for regular softmax attention. ",
|
| 648 |
+
"bbox": [
|
| 649 |
+
174,
|
| 650 |
+
612,
|
| 651 |
+
825,
|
| 652 |
+
738
|
| 653 |
+
],
|
| 654 |
+
"page_idx": 4
|
| 655 |
+
},
|
| 656 |
+
{
|
| 657 |
+
"type": "text",
|
| 658 |
+
"text": "4 Experiments ",
|
| 659 |
+
"text_level": 1,
|
| 660 |
+
"bbox": [
|
| 661 |
+
174,
|
| 662 |
+
757,
|
| 663 |
+
312,
|
| 664 |
+
775
|
| 665 |
+
],
|
| 666 |
+
"page_idx": 4
|
| 667 |
+
},
|
| 668 |
+
{
|
| 669 |
+
"type": "text",
|
| 670 |
+
"text": "4.1 Long-Context Sequence Modeling ",
|
| 671 |
+
"text_level": 1,
|
| 672 |
+
"bbox": [
|
| 673 |
+
174,
|
| 674 |
+
787,
|
| 675 |
+
449,
|
| 676 |
+
804
|
| 677 |
+
],
|
| 678 |
+
"page_idx": 4
|
| 679 |
+
},
|
| 680 |
+
{
|
| 681 |
+
"type": "text",
|
| 682 |
+
"text": "We evaluate the effectiveness and efficiency of Luna on the Long Range Arena (LRA) benchmark recently introduced by Tay et al. (2021), which is designed for the purpose of evaluating efficient Transformer models under the long-context scenario. They collect five tasks in this benchmark which are ListOps (Nangia and Bowman, 2018), byte-level text classification (Text; Maas et al., 2011), byte-level document retrieval (Retrieval; Radev et al., 2013), image classification on sequences of pixels (Image; Krizhevsky et al., 2009) and Pathfinder (Linsley et al., 2018). These tasks consist of input sequences ranging from 1K to 8K tokens and span across a variety of data types and modalities. ",
|
| 683 |
+
"bbox": [
|
| 684 |
+
174,
|
| 685 |
+
814,
|
| 686 |
+
825,
|
| 687 |
+
911
|
| 688 |
+
],
|
| 689 |
+
"page_idx": 4
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"type": "table",
|
| 693 |
+
"img_path": "images/c5ca3ca84e9e89114c1df9a2bb1344a86ef2427693718b4c95a1ff12a0ad8007.jpg",
|
| 694 |
+
"table_caption": [
|
| 695 |
+
"Table 2: Training speed and peak memory consumption comparison of different models on byte-level text classification with various input lengths (1K, 2K, 3K and 4K). The best model is in boldface. "
|
| 696 |
+
],
|
| 697 |
+
"table_footnote": [],
|
| 698 |
+
"table_body": "<table><tr><td>Model</td><td colspan=\"4\"> Steps per second 个</td><td colspan=\"4\">Peak Memory Usage (GB)↓</td></tr><tr><td>Transformer</td><td>1K 1.0</td><td>2K 1.0</td><td>3K 1.0</td><td>4K</td><td>1K 1.00</td><td>2K 1.00</td><td>3K 1.00</td><td>4K 1.00</td></tr><tr><td></td><td></td><td></td><td></td><td>1.0</td><td></td><td></td><td></td><td></td></tr><tr><td>Local Attention</td><td>1.1</td><td>1.7</td><td>3.2</td><td>5.3</td><td>0.49</td><td>0.29</td><td>0.19</td><td>0.14</td></tr><tr><td>Linformer Reformer</td><td>1.2</td><td>1.9</td><td>3.7</td><td>5.5</td><td>0.44</td><td>0.21</td><td>0.18</td><td>0.10</td></tr><tr><td>Sinkhorn Trans</td><td>0.5 1.1</td><td>0.4 1.6</td><td>0.7</td><td>0.8</td><td>0.56 0.55</td><td>0.37 0.31</td><td>0.28</td><td>0.24 0.16</td></tr><tr><td>Synthesizer</td><td>1.1</td><td>1.2</td><td>2.9</td><td>3.8</td><td>0.76</td><td></td><td>0.21</td><td>0.74</td></tr><tr><td>BigBird</td><td></td><td>0.8</td><td>2.9</td><td>1.4 1.1</td><td></td><td>0.75</td><td>0.74</td><td>0.30</td></tr><tr><td>Linear Trans.</td><td>0.9</td><td>1.9</td><td>1.2</td><td>5.6</td><td>0.91 0.44</td><td>0.56</td><td>0.40</td><td>0.11</td></tr><tr><td>Performer</td><td>1.1 1.2</td><td>1.9</td><td>3.7 3.8</td><td>5.7</td><td>0.44</td><td>0.22 0.22</td><td>0.15 0.15</td><td>0.11</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Luna-16</td><td>1.2</td><td>1.8</td><td>3.7</td><td>5.5</td><td>0.44 0.49</td><td>0.23</td><td>0.17</td><td>0.10</td></tr><tr><td>Luna-128</td><td>1.1</td><td>1.7</td><td>3.4</td><td>5.1</td><td></td><td>0.28</td><td>0.21</td><td>0.14</td></tr><tr><td>Luna-256</td><td>1.1</td><td>1.7</td><td>3.3</td><td>4.9</td><td>0.60</td><td>0.33</td><td>0.23</td><td>0.16</td></tr></table>",
|
| 699 |
+
"bbox": [
|
| 700 |
+
250,
|
| 701 |
+
136,
|
| 702 |
+
743,
|
| 703 |
+
358
|
| 704 |
+
],
|
| 705 |
+
"page_idx": 5
|
| 706 |
+
},
|
| 707 |
+
{
|
| 708 |
+
"type": "text",
|
| 709 |
+
"text": "To ensure fair comparisons, for all tasks except for the task Retrieval, we closely follow the model configurations in Tay et al. (2021) such as data preprocessing, data split, model architecture, etc. For the task of Retrieval, we find that models are not fully converged when being trained for 5K steps as stated in Tay et al. (2021). Therefore, we train models for 20K steps for this task and obtain much better results. For a direct comparison, besides the average performance of models across all tasks, we also report the average accuracy on tasks excluding Retrieval. We run each experiment for five times with different random seeds and report the average accuracy. The hyper-parameters for each task are shown in Appendix A.1. ",
|
| 710 |
+
"bbox": [
|
| 711 |
+
173,
|
| 712 |
+
377,
|
| 713 |
+
825,
|
| 714 |
+
489
|
| 715 |
+
],
|
| 716 |
+
"page_idx": 5
|
| 717 |
+
},
|
| 718 |
+
{
|
| 719 |
+
"type": "text",
|
| 720 |
+
"text": "Results. The results of various models on the LRA benchmark are presented in Table 1. For our proposed method, we report results from models of three different projected dimensions (16, 128 and 256). First, we note that Luna achieves good results on all tasks consistently compared to the Transformer model and significantly outperforms all the other baseline methods in terms of the average accuracy. By taking a closer look at the accuracy for each individual task, Luna wins over baseline models on three out of five tasks and performs comparably with the best performed model on the other two tasks, i.e. ListOps and byte-level text classification. Notably, Luna improves over the Transformer model on image classification and pathfinder by a large margin. Second, we observe that although Luna achieves the best average performance with a projection dimension of 256, it also performs considerably well with smaller projection dimensions (16 and 128). This demonstrates the effectiveness of Luna even with small projected dimensions. ",
|
| 721 |
+
"bbox": [
|
| 722 |
+
174,
|
| 723 |
+
497,
|
| 724 |
+
825,
|
| 725 |
+
650
|
| 726 |
+
],
|
| 727 |
+
"page_idx": 5
|
| 728 |
+
},
|
| 729 |
+
{
|
| 730 |
+
"type": "text",
|
| 731 |
+
"text": "Memory and Speed Efficiency. Luna employs two nested linear attention functions to reduce the time and memory complexity compared to the vanilla softmax attention. Here, we examine the speed and memory footprint of various models with varying input lengths (1K, 2K, 3K and 4K). Following Tay et al. (2021), all models are evaluated on the byte-level classification task with the same batch size. The result is shown in Table 2. ",
|
| 732 |
+
"bbox": [
|
| 733 |
+
174,
|
| 734 |
+
657,
|
| 735 |
+
825,
|
| 736 |
+
727
|
| 737 |
+
],
|
| 738 |
+
"page_idx": 5
|
| 739 |
+
},
|
| 740 |
+
{
|
| 741 |
+
"type": "text",
|
| 742 |
+
"text": "Considering the memory efficiency, Luna with a projected dimension of 16 is highly memoryefficient, which is only $10 \\%$ of the vanilla Transformer at 4K input sequence length. With larger projected dimensions, i.e. 128 and 256, Luna requires more memory but is still competitive compared to other efficient Transformer models. In terms of time efficiency, Luna-16 speeds up over the standard Transformer by 1.2-5.5 times, varying by the sequence length. Compared to other efficient Transformers, Luna-16 performs comparably with the fastest models, i.e. Performer and Linformer. Overall, our models achieve competitive advantage both in time- and memory-efficiency over other models, while attaining the best performance on the LRA benchmark (see Figure 1). ",
|
| 743 |
+
"bbox": [
|
| 744 |
+
173,
|
| 745 |
+
733,
|
| 746 |
+
825,
|
| 747 |
+
844
|
| 748 |
+
],
|
| 749 |
+
"page_idx": 5
|
| 750 |
+
},
|
| 751 |
+
{
|
| 752 |
+
"type": "text",
|
| 753 |
+
"text": "In addition, we plot the trade-off among memory, time and averaged LRA score without task Retrieval in Figure 1. Models such as Linformer and Performer have faster speed and small memory requirement with the sacrifice of performance. However, besides competitive time- and memory-efficiency, Luna models retain superior performance even with a small projected dimension $\\left( l { = } 1 6 \\right)$ . ",
|
| 754 |
+
"bbox": [
|
| 755 |
+
174,
|
| 756 |
+
851,
|
| 757 |
+
823,
|
| 758 |
+
906
|
| 759 |
+
],
|
| 760 |
+
"page_idx": 5
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"type": "text",
|
| 764 |
+
"text": "Contextual information in $P$ of Luna. Recently, a popular method to model the classification task using Transformerbased models is to prepend a special symbol, [CLS], to every input example. The last hidden state of this symbol is regarded as the aggregate sequence representation. In Luna, we introduce an extra model input $P$ which not only allows us to efficiently compute the attention mechanism but learn contextual information as well. Theoretically, the $P$ from the ",
|
| 765 |
+
"bbox": [
|
| 766 |
+
174,
|
| 767 |
+
92,
|
| 768 |
+
441,
|
| 769 |
+
257
|
| 770 |
+
],
|
| 771 |
+
"page_idx": 6
|
| 772 |
+
},
|
| 773 |
+
{
|
| 774 |
+
"type": "table",
|
| 775 |
+
"img_path": "images/7c11532fa781dcfac49f1f40ae28d150b0d52815dcf7838ee5826d7b013278db.jpg",
|
| 776 |
+
"table_caption": [
|
| 777 |
+
"Table 3: Performance comparison of two sentence representation methods on LRA benchmark. "
|
| 778 |
+
],
|
| 779 |
+
"table_footnote": [],
|
| 780 |
+
"table_body": "<table><tr><td>Models</td><td>ListOps</td><td>Text</td><td>Retrieval</td><td>Avg.</td></tr><tr><td>Luna-16,[CLS]</td><td>37.43</td><td>65.74</td><td>79.38</td><td>60.85</td></tr><tr><td>Luna-16, P</td><td>38.06</td><td>65.81</td><td>80.22</td><td>61.36</td></tr><tr><td>Luna-128, [CLS]</td><td>38.01</td><td>65.74</td><td>79.55</td><td>61.10</td></tr><tr><td>Luna-128,P</td><td>38.27</td><td>65.89</td><td>80.27</td><td>61.48</td></tr><tr><td>Luna-256, [CLS]</td><td>37.98</td><td>65.78</td><td>79.56</td><td>61.11</td></tr><tr><td>Luna-256, P</td><td>38.36</td><td>66.07</td><td>80.25</td><td>61.56</td></tr></table>",
|
| 781 |
+
"bbox": [
|
| 782 |
+
452,
|
| 783 |
+
128,
|
| 784 |
+
823,
|
| 785 |
+
247
|
| 786 |
+
],
|
| 787 |
+
"page_idx": 6
|
| 788 |
+
},
|
| 789 |
+
{
|
| 790 |
+
"type": "text",
|
| 791 |
+
"text": "last layer is capable of learning the representation of the input sequence. To validate this, we extract $P$ at the last layer and employ the mean pooling strategy over positions to obtain the final feature for classification. We test its performance on three long-text modeling tasks in LRA (Tay et al., 2021), i.e., ListOps, Text and Retrieval and report results in Table 3. We find that $P$ -based methods obtain better scores across all tasks against the [CLS]-based one, validating the powerful ability of $P$ to encode contextual information of the input sequence. ",
|
| 792 |
+
"bbox": [
|
| 793 |
+
174,
|
| 794 |
+
257,
|
| 795 |
+
825,
|
| 796 |
+
340
|
| 797 |
+
],
|
| 798 |
+
"page_idx": 6
|
| 799 |
+
},
|
| 800 |
+
{
|
| 801 |
+
"type": "text",
|
| 802 |
+
"text": "4.2 Machine translation ",
|
| 803 |
+
"text_level": 1,
|
| 804 |
+
"bbox": [
|
| 805 |
+
174,
|
| 806 |
+
358,
|
| 807 |
+
352,
|
| 808 |
+
372
|
| 809 |
+
],
|
| 810 |
+
"page_idx": 6
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"type": "text",
|
| 814 |
+
"text": "To evaluate Luna on sequence-to-sequence modeling, we conduct experiments on a standard machine translation benchmark, i.e. WMT’14 English-German $\\mathbf { E N } { } \\mathbf { D E }$ ) dataset (4.5M sentence pairs). The data split and preprocessing steps follow those of Vaswani et al. (2017), using the scripts from FairSeq (Ott et al., 2019). We share the source and target vocabularies within the language pair, with 37K byte pair encoding (BPE) types (Sennrich et al., 2016). The Luna models closely follow the architecture of Transformer-base: 6 encoder and decoder layers with 8 attention heads and $d _ { \\mathrm { m o d e l } } / d _ { \\mathrm { h i d d e n } } = 5 1 2 / 2 0 4 8$ . We train the Transformer-base model with two optimization methods: Adam (Kingma and Ba, 2015) and ",
|
| 815 |
+
"bbox": [
|
| 816 |
+
174,
|
| 817 |
+
385,
|
| 818 |
+
485,
|
| 819 |
+
604
|
| 820 |
+
],
|
| 821 |
+
"page_idx": 6
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"type": "table",
|
| 825 |
+
"img_path": "images/997603d0798504b29125f0c817529806bfb6d185bb208cef17a1bb71820e0639.jpg",
|
| 826 |
+
"table_caption": [
|
| 827 |
+
"Table 4: Test BLEU on WMT’14 EN DE. "
|
| 828 |
+
],
|
| 829 |
+
"table_footnote": [],
|
| 830 |
+
"table_body": "<table><tr><td>Model</td><td>BLEU</td><td> # Param.</td></tr><tr><td>Transformer-base (Adam) Transformer-base (Apollo)</td><td>27.8</td><td>64.9M</td></tr><tr><td>RFA (k = 256)</td><td>28.3 27.2</td><td>64.9M 66.2M</td></tr><tr><td>Luna-16, elu, tied kv Luna-32,elu, tied kv</td><td>27.1 27.3</td><td>69.6M 69.7M</td></tr><tr><td>Luna-16,softplus, tied kv Luna-32, softplus, tied kv</td><td>27.3 27.5</td><td>69.6M 69.7M</td></tr><tr><td>Luna-16, elu</td><td>27.4</td><td>77.5M</td></tr><tr><td>Luna-32, elu</td><td>27.6</td><td></td></tr><tr><td></td><td></td><td>77.6M</td></tr><tr><td>Luna-16, softplus Luna-32, softplus</td><td>27.6 27.8</td><td>77.5M</td></tr></table>",
|
| 831 |
+
"bbox": [
|
| 832 |
+
498,
|
| 833 |
+
409,
|
| 834 |
+
815,
|
| 835 |
+
598
|
| 836 |
+
],
|
| 837 |
+
"page_idx": 6
|
| 838 |
+
},
|
| 839 |
+
{
|
| 840 |
+
"type": "text",
|
| 841 |
+
"text": "Apollo (Ma, 2020), and find Apollo achieves better performance. Therefore, we use Apollo as the optimizer for all Luna models. For each experiment, we conduct distributed training across eight NVIDIA Tesla V100 GPUs with maximum batch size of 8192 tokens per GPU. Further details are provided in Appendix A.2. ",
|
| 842 |
+
"bbox": [
|
| 843 |
+
174,
|
| 844 |
+
604,
|
| 845 |
+
825,
|
| 846 |
+
660
|
| 847 |
+
],
|
| 848 |
+
"page_idx": 6
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"type": "text",
|
| 852 |
+
"text": "Results. Table 4 presents the results of Luna on the test set BLEU scores of WMT’ $1 4 \\mathrm { E N } { } \\mathrm { D E }$ , along with Transformer-base and Random Feature Attention (RFA) as baselines. Different from Peng et al. (2021) where the random feature attention is applied only to decoders, the RFA model in Table 4 applies random feature attention in both the encoder and decoder for a fair comparison. $k = 2 5 6$ is the number of feature maps in RFA. For Luna, we report performance of models with different projected lengths: $l = 1 6$ and $l = 3 2$ , different activation functions in (7): $\\mathrm { e l u } ( \\cdot ) + 1$ and softplus $( \\cdot )$ , and w./w.o parameter sharing. ",
|
| 853 |
+
"bbox": [
|
| 854 |
+
173,
|
| 855 |
+
670,
|
| 856 |
+
825,
|
| 857 |
+
767
|
| 858 |
+
],
|
| 859 |
+
"page_idx": 6
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"type": "text",
|
| 863 |
+
"text": "From Table 4, the first observation is that softplus $( \\cdot )$ consistently outperforms $\\mathrm { e l u } ( \\cdot ) + 1$ . Thus, we use softplus $( \\cdot )$ as the default activation function in the implementation. Another interesting observation is that Luna with a small projected length $( l = 1 6$ ) obtains similar performance to RFA with $k = 2 5 6$ feature maps. Luna with $l = 3 2$ achieves competitive performance, but still falls behind the Transformer-base model. Further improving the machine translation performance of Luna is left to future work. We also report the number of parameters of different models. At last, we evaluate Luna w./w.o parameter sharing. Although there are two sets of parameters in a single Luna attention function $( W _ { Q } , \\ W _ { K } , \\ W _ { V } )$ , as mentioned in $\\ S 3 . 1$ , we tie $W _ { k }$ with $W _ { v }$ to reduce the number of parameters, and the performance decline is marginal. As a result, Luna with shared parameters has $7 \\%$ and $5 \\%$ more parameters compared to the vanilla Transformer and RFA models. ",
|
| 864 |
+
"bbox": [
|
| 865 |
+
173,
|
| 866 |
+
772,
|
| 867 |
+
825,
|
| 868 |
+
911
|
| 869 |
+
],
|
| 870 |
+
"page_idx": 6
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"type": "text",
|
| 874 |
+
"text": "Effect of Encoding Contextual Information into $P$ . As discussed in $\\ S 3 . 4$ , one advantage of Luna against Linformer is to incorporate contextual $P$ by formulating it as an extra input. To investigate the importance of this design, we conduct experiments on WMT’14 to compare Luna with the baseline model where $P$ is formulated as a non-contextual learnable parameter of each layer. ",
|
| 875 |
+
"bbox": [
|
| 876 |
+
174,
|
| 877 |
+
92,
|
| 878 |
+
594,
|
| 879 |
+
174
|
| 880 |
+
],
|
| 881 |
+
"page_idx": 7
|
| 882 |
+
},
|
| 883 |
+
{
|
| 884 |
+
"type": "table",
|
| 885 |
+
"img_path": "images/b0442e8973e28a1065cdd7d3f66e788635340615ac8a5dcee4d947e74bb85106.jpg",
|
| 886 |
+
"table_caption": [
|
| 887 |
+
"Table 5: Dev and Test BLEU "
|
| 888 |
+
],
|
| 889 |
+
"table_footnote": [],
|
| 890 |
+
"table_body": "<table><tr><td>Model</td><td>Dev.</td><td>Test</td></tr><tr><td>Non-Contextual</td><td>24.4</td><td>25.2</td></tr><tr><td>Contextual</td><td>25.9</td><td>27.3</td></tr></table>",
|
| 891 |
+
"bbox": [
|
| 892 |
+
606,
|
| 893 |
+
116,
|
| 894 |
+
816,
|
| 895 |
+
171
|
| 896 |
+
],
|
| 897 |
+
"page_idx": 7
|
| 898 |
+
},
|
| 899 |
+
{
|
| 900 |
+
"type": "text",
|
| 901 |
+
"text": "For both the contextual and non-contextual models, we train Luna with $l = 1 6$ , parameter sharing and softplus. Table 5 lists the BLEU scores on the development and test sets. Luna with contextual $P$ significantly outperforms the baseline with non-contextual $P$ , demonstrating the effectiveness of this design in Luna. ",
|
| 902 |
+
"bbox": [
|
| 903 |
+
174,
|
| 904 |
+
174,
|
| 905 |
+
826,
|
| 906 |
+
229
|
| 907 |
+
],
|
| 908 |
+
"page_idx": 7
|
| 909 |
+
},
|
| 910 |
+
{
|
| 911 |
+
"type": "text",
|
| 912 |
+
"text": "4.3 Masked Language Modeling for Large-Scale Pretraining ",
|
| 913 |
+
"text_level": 1,
|
| 914 |
+
"bbox": [
|
| 915 |
+
174,
|
| 916 |
+
246,
|
| 917 |
+
607,
|
| 918 |
+
261
|
| 919 |
+
],
|
| 920 |
+
"page_idx": 7
|
| 921 |
+
},
|
| 922 |
+
{
|
| 923 |
+
"type": "text",
|
| 924 |
+
"text": "One popular application of Transformer is to pretrain a large-scale language model on a large amount of data which can then be fine-tuned on a wide range of downstream tasks, such as BERT (Devlin et al., 2019), RoBERTa (Liu et al., 2019), etc. Therefore, we pretrain a Luna-based language model with RoBERTa-base model configuration on two versions of data as our pretraining set: 1) BERT version with BookCorpus (Zhu et al., 2015) and English Wikipedia (totally 16GB), 2) RoBERTa version with BookCorpus, English Wikipedia, CC-News (Nagel, 2016), OpenWebText (Gokaslan and Cohen, 2019) and Stories (Trinh and Le, 2018) (totally 160GB). For Luna models, we set $l = 1 2 8$ . On the larger training corpus (160GB), we train models w./w.o parameter sharing, respectively. We compare our models with RoBERTa-base, BERT-base and Linformer which are trained on the same training data. Experimental details are provided in Appendix A.3. ",
|
| 925 |
+
"bbox": [
|
| 926 |
+
173,
|
| 927 |
+
271,
|
| 928 |
+
825,
|
| 929 |
+
410
|
| 930 |
+
],
|
| 931 |
+
"page_idx": 7
|
| 932 |
+
},
|
| 933 |
+
{
|
| 934 |
+
"type": "text",
|
| 935 |
+
"text": "Finetuning Luna After obtaining the pretrained Luna-based language model, we finetune it on various natural language processing tasks, including sentiment classification (SST-2; Socher et al., 2013), natural language inference (QNLI; Rajpurkar et al., 2016), textual similarity (QQP; Chen et al., 2018, question answering (RACE (Lai et al., 2017) and CommonsenseQA (CSQA; Talmor et al., 2019). For GLUE tasks, following Liu et al. (2019), we consider a limited hyperparameter sweep for each task, with batch sizes $\\in \\{ 1 6 , 3 2 \\}$ and learning rate $\\in \\{ 5 e ^ { - 6 } , 1 e ^ { - 5 } , \\dot { 2 } e ^ { - 5 } \\}$ , with a linear warmup for the first $6 \\%$ of steps followed by a linear decay to 0. Finetuning is performed for 20 epochs with early stopping based on each task’s evaluation metric on the dev set3. For QA tasks, we concatenate each candidate answer with the corresponding question and passage. We then encode every candidate and pass the [CLS] output at the last layer through a fully-connected layer, which is used to predict the correct answer. We truncate question-answer pairs that are longer than 128 tokens and, if needed, the passage so that the total length is at most 512 tokens. Following Liu et al. (2019), we try a small range of possible values for hyperparameters, i.e., batch size $\\in \\left\\{ 1 6 , 3 2 \\right\\}$ , learning rate $\\bar { \\in } \\{ 1 e ^ { - 5 } , 2 e ^ { - 5 } , 3 e ^ { - 5 } \\}$ and dropout $\\in \\{ 0 . \\dot { 0 } , 0 . \\dot { 1 } , 0 . 2 \\}$ . For other configurations such as warm-up steps, optimizer, we follow thoses in Liu et al. (2019). ",
|
| 936 |
+
"bbox": [
|
| 937 |
+
174,
|
| 938 |
+
416,
|
| 939 |
+
825,
|
| 940 |
+
625
|
| 941 |
+
],
|
| 942 |
+
"page_idx": 7
|
| 943 |
+
},
|
| 944 |
+
{
|
| 945 |
+
"type": "text",
|
| 946 |
+
"text": "The result is reported in Table 6. We observe that on the smaller dataset (16GB) our Luna model has similar or slightly better downstream results compared to other pretrained language models. On QNLI and SST-2, Luna models obtain the best performance among all models, reaffirming the effectiveness of Luna in pre-training. This demonstrates the strong ability of Luna for language representations. On the larger dataset (160GB), however, the performance of Luna is slightly worse than RoBERTa with vanilla Transformer architecture. One possible reason is that the capacity of Luna is not as sufficient as vanilla Transformer, due to the efficient attention mechanism. This is supported by the evidence that Luna with full sets of parameters achieves better performance than that with parameter-sharing, because Luna with full sets of parameters has better capacity. ",
|
| 947 |
+
"bbox": [
|
| 948 |
+
174,
|
| 949 |
+
631,
|
| 950 |
+
825,
|
| 951 |
+
756
|
| 952 |
+
],
|
| 953 |
+
"page_idx": 7
|
| 954 |
+
},
|
| 955 |
+
{
|
| 956 |
+
"type": "text",
|
| 957 |
+
"text": "5 Related Work ",
|
| 958 |
+
"text_level": 1,
|
| 959 |
+
"bbox": [
|
| 960 |
+
174,
|
| 961 |
+
773,
|
| 962 |
+
321,
|
| 963 |
+
791
|
| 964 |
+
],
|
| 965 |
+
"page_idx": 7
|
| 966 |
+
},
|
| 967 |
+
{
|
| 968 |
+
"type": "text",
|
| 969 |
+
"text": "There has been signficiant prior work on improving the efficiency of Transformers, besides the three closely related works discussed in $\\ S 3 . 4$ . The common techniques include, but are not limited to, weight sharing (Dehghani et al., 2018), quantization (Shen et al., 2020; Fan et al., 2020), sparse attention (Parmar et al., 2018; Kitaev et al., 2020), side memory module (Lee et al., 2019; Gupta and Berant, 2020; Goyal et al., 2021), and low-rank or compressed context (Wang et al., 2019; Ainslie et al., 2020). In this section, we briefly review some recently proposed methods. For a detailed overview we refer the readers to Tay et al. (2020b). ",
|
| 970 |
+
"bbox": [
|
| 971 |
+
173,
|
| 972 |
+
805,
|
| 973 |
+
825,
|
| 974 |
+
876
|
| 975 |
+
],
|
| 976 |
+
"page_idx": 7
|
| 977 |
+
},
|
| 978 |
+
{
|
| 979 |
+
"type": "table",
|
| 980 |
+
"img_path": "images/e4870d06b9215a8518d1c4e1f450f7bb9caa42a926549d2688eb896be46d6d1d.jpg",
|
| 981 |
+
"table_caption": [
|
| 982 |
+
"Table 6: Performance of various models on development set of benchmark natural language understanding tasks. Bold face indicates best performance. "
|
| 983 |
+
],
|
| 984 |
+
"table_footnote": [],
|
| 985 |
+
"table_body": "<table><tr><td rowspan=\"2\">Model</td><td rowspan=\"2\">data</td><td colspan=\"3\">GLUE</td><td colspan=\"2\">QA</td></tr><tr><td>SST-2</td><td>QNLI</td><td>QQP</td><td>RACE</td><td>CSQA</td></tr><tr><td>BERT-base</td><td>16GB</td><td>92.7</td><td>88.4</td><td>89.6</td><td>64.2</td><td>53.3</td></tr><tr><td>RoBERTa-base</td><td>16GB</td><td>93.1</td><td>90.9</td><td>90.9</td><td>65.6</td><td>-</td></tr><tr><td>Linformer-128</td><td>16GB</td><td>92.4</td><td>90.4</td><td>90.2</td><td>1</td><td>1</td></tr><tr><td>Luna-128, tied kv</td><td>16GB</td><td>93.1</td><td>91.2</td><td>90.8</td><td>65.2</td><td>53.1</td></tr><tr><td>RoBERTa-base</td><td>160GB</td><td>94.8</td><td>92.8</td><td>91.9</td><td>73.50</td><td>63.61</td></tr><tr><td>Luna-128, tied kv</td><td>160GB</td><td>94.3</td><td>91.5</td><td>91.2</td><td>71.50</td><td>61.48</td></tr><tr><td>Luna-128</td><td>160GB</td><td>94.6</td><td>92.2</td><td>91.3</td><td>72.25</td><td>62.08</td></tr></table>",
|
| 986 |
+
"bbox": [
|
| 987 |
+
245,
|
| 988 |
+
136,
|
| 989 |
+
748,
|
| 990 |
+
282
|
| 991 |
+
],
|
| 992 |
+
"page_idx": 8
|
| 993 |
+
},
|
| 994 |
+
{
|
| 995 |
+
"type": "text",
|
| 996 |
+
"text": "",
|
| 997 |
+
"bbox": [
|
| 998 |
+
174,
|
| 999 |
+
304,
|
| 1000 |
+
825,
|
| 1001 |
+
333
|
| 1002 |
+
],
|
| 1003 |
+
"page_idx": 8
|
| 1004 |
+
},
|
| 1005 |
+
{
|
| 1006 |
+
"type": "text",
|
| 1007 |
+
"text": "Sparse Attention The general idea of these methods is that, instead of attending to the whole sequence, each token only access to a fixed, predefined range such as local neighborhoods and strided or “dilated” windows. Popular methods include local attention (Parmar et al., 2018), blockwise attention (Qiu et al., 2019), strided attention patterns (Child et al., 2019; Beltagy et al., 2020), and compressed attention (Liu et al., 2018). To make this range more flexible, Reformer (Kitaev et al., 2020) employs a hash-based similarity measure to efficiently cluster tokens into chunks and Routing Transformer(Roy et al., 2021) employ online $\\mathbf { k }$ -means clustering on the tokens. The Sinkhorn sorting Network (Tay et al., 2020a) exposes the sparsity in attention weights by learning to sort blocks of the input sequence. ",
|
| 1008 |
+
"bbox": [
|
| 1009 |
+
174,
|
| 1010 |
+
349,
|
| 1011 |
+
825,
|
| 1012 |
+
474
|
| 1013 |
+
],
|
| 1014 |
+
"page_idx": 8
|
| 1015 |
+
},
|
| 1016 |
+
{
|
| 1017 |
+
"type": "text",
|
| 1018 |
+
"text": "Kernel Methods. A recently popular method to improve the efficiency of Transformers is to avoid explicitly computing the $m \\times n$ attention matrix $A$ in (1) by re-writing it with kernels. Typical models leveraging kernelization are Linear Transformer (Katharopoulos et al., 2020), Performer (Choromanski et al., 2020) and Random Feature Attention (Peng et al., 2021). Since kernels are a form of approximation of the attention matrix, they can be also viewed as a form of low-rank method (Choromanski et al., 2020) that compresses the context to a shorter length, such as Linformer (Wang et al., 2019) and the proposed Luna model. ",
|
| 1019 |
+
"bbox": [
|
| 1020 |
+
174,
|
| 1021 |
+
492,
|
| 1022 |
+
826,
|
| 1023 |
+
589
|
| 1024 |
+
],
|
| 1025 |
+
"page_idx": 8
|
| 1026 |
+
},
|
| 1027 |
+
{
|
| 1028 |
+
"type": "text",
|
| 1029 |
+
"text": "Recurrence. The simplest technique to reduce the complexity of Transformer is to chunk input sequences into fixed blocks, with the obvious disadvantage of losing contextual information from past chunks. As discussed in Tay et al. (2020b), these models can be regarded as fixed pattern models. Transformer-XL (Dai et al., 2019) proposed a natural extension to the blockwise method to connect these blocks via a recurrence mechanism. Compressive Transformer (Rae et al., 2020) further extends Transformer-XL by maintaining a fine-grained memory of past chunk activations, which are discarded in Transformer-XL. Technically, Luna can be adapted to a recurrence method, by simply using $P$ as an inherent memory module to maintain the recurrence across segments. ",
|
| 1030 |
+
"bbox": [
|
| 1031 |
+
174,
|
| 1032 |
+
606,
|
| 1033 |
+
825,
|
| 1034 |
+
718
|
| 1035 |
+
],
|
| 1036 |
+
"page_idx": 8
|
| 1037 |
+
},
|
| 1038 |
+
{
|
| 1039 |
+
"type": "text",
|
| 1040 |
+
"text": "6 Conclusion ",
|
| 1041 |
+
"text_level": 1,
|
| 1042 |
+
"bbox": [
|
| 1043 |
+
174,
|
| 1044 |
+
739,
|
| 1045 |
+
299,
|
| 1046 |
+
757
|
| 1047 |
+
],
|
| 1048 |
+
"page_idx": 8
|
| 1049 |
+
},
|
| 1050 |
+
{
|
| 1051 |
+
"type": "text",
|
| 1052 |
+
"text": "We have introduced Luna, a simple, efficient and effective linear attention mechanism used as a drop-in substitute for regular softmax attention. By introducing an extra input with the fixed length, Luna is capable of capturing adequate contextual information while performing attention operations linearly. On three sequence modeling tasks, i.e., long-context sequence modeling, neural machine translation, and large-scale pretraining and finetuning, Luna achieves comparable or even better performance than a variety of strong baselines, while acquiring prominent gains of efficiency in both speed and memory. In future work, we are interested in combining Luna with recurrence methods where $P$ can be used as a running memory across segments of inputs. Another interesting direction would be to apply Luna to other tasks with long input sequences, such as document-level summarization and translation. ",
|
| 1053 |
+
"bbox": [
|
| 1054 |
+
174,
|
| 1055 |
+
772,
|
| 1056 |
+
825,
|
| 1057 |
+
911
|
| 1058 |
+
],
|
| 1059 |
+
"page_idx": 8
|
| 1060 |
+
},
|
| 1061 |
+
{
|
| 1062 |
+
"type": "text",
|
| 1063 |
+
"text": "Acknowledgments and Disclosure of Funding ",
|
| 1064 |
+
"text_level": 1,
|
| 1065 |
+
"bbox": [
|
| 1066 |
+
174,
|
| 1067 |
+
88,
|
| 1068 |
+
553,
|
| 1069 |
+
107
|
| 1070 |
+
],
|
| 1071 |
+
"page_idx": 9
|
| 1072 |
+
},
|
| 1073 |
+
{
|
| 1074 |
+
"type": "text",
|
| 1075 |
+
"text": "This material is based on research sponsored by Air Force Research Laboratory (AFRL) under agreement number FA8750-19-1-1000. The U.S. Government is authorized to reproduce and distribute reprints for Government purposes notwithstanding any copyright notation therein. Xiang Kong was supported by U.S. DARPA AIDA Program No. FA8750-18-2-0014. The views and conclusions contained herein are those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of Air Force Laboratory, DARPA or the U.S. Government. ",
|
| 1076 |
+
"bbox": [
|
| 1077 |
+
174,
|
| 1078 |
+
121,
|
| 1079 |
+
826,
|
| 1080 |
+
218
|
| 1081 |
+
],
|
| 1082 |
+
"page_idx": 9
|
| 1083 |
+
},
|
| 1084 |
+
{
|
| 1085 |
+
"type": "text",
|
| 1086 |
+
"text": "References ",
|
| 1087 |
+
"text_level": 1,
|
| 1088 |
+
"bbox": [
|
| 1089 |
+
174,
|
| 1090 |
+
238,
|
| 1091 |
+
266,
|
| 1092 |
+
255
|
| 1093 |
+
],
|
| 1094 |
+
"page_idx": 9
|
| 1095 |
+
},
|
| 1096 |
+
{
|
| 1097 |
+
"type": "text",
|
| 1098 |
+
"text": "Joshua Ainslie, Santiago Ontanon, Chris Alberti, Vaclav Cvicek, Zachary Fisher, Philip Pham, Anirudh Ravula, Sumit Sanghai, Qifan Wang, and Li Yang. Etc: Encoding long and structured inputs in transformers. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 268–284, 2020. \nJimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016. \nDzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In International Conference on Learning Representations (ICLR), 2015. \nIz Beltagy, Matthew E Peters, and Arman Cohan. Longformer: The long-document transformer. arXiv preprint arXiv:2004.05150, 2020. \nZihan Chen, Hongbo Zhang, Xiaoji Zhang, and Leqi Zhao. Quora question pairs. University of Waterloo, 2018. \nRewon Child, Scott Gray, Alec Radford, and Ilya Sutskever. Generating long sequences with sparse transformers. arXiv preprint arXiv:1904.10509, 2019. \nKrzysztof Choromanski, Valerii Likhosherstov, David Dohan, Xingyou Song, Andreea Gane, Tamas Sarlos, Peter Hawkins, Jared Davis, Afroz Mohiuddin, Lukasz Kaiser, et al. Rethinking attention with performers. arXiv preprint arXiv:2009.14794, 2020. \nDjork-Arné Clevert, Thomas Unterthiner, and Sepp Hochreiter. Fast and accurate deep network learning by exponential linear units (elus). In International Conference on Learning Representations (ICLR), 2016. \nZihang Dai, Zhilin Yang, Yiming Yang, Jaime G Carbonell, Quoc Le, and Ruslan Salakhutdinov. Transformer-xl: Attentive language models beyond a fixed-length context. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 2978–2988, 2019. \nMostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit, and Lukasz Kaiser. Universal transformers. In International Conference on Learning Representations (ICLR), 2018. \nJacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171–4186, 2019. \nAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020. \nAngela Fan, Pierre Stock, Benjamin Graham, Edouard Grave, Remi Gribonval, Herve Jegou, and Armand Joulin. Training with quantization noise for extreme fixed-point compression. arXiv preprint arXiv:2004.07320, 2020. ",
|
| 1099 |
+
"bbox": [
|
| 1100 |
+
171,
|
| 1101 |
+
252,
|
| 1102 |
+
828,
|
| 1103 |
+
917
|
| 1104 |
+
],
|
| 1105 |
+
"page_idx": 9
|
| 1106 |
+
},
|
| 1107 |
+
{
|
| 1108 |
+
"type": "text",
|
| 1109 |
+
"text": "Xavier Glorot, Antoine Bordes, and Yoshua Bengio. Deep sparse rectifier neural networks. In Proceedings of the fourteenth international conference on artificial intelligence and statistics, pages 315–323. JMLR Workshop and Conference Proceedings, 2011. ",
|
| 1110 |
+
"bbox": [
|
| 1111 |
+
174,
|
| 1112 |
+
90,
|
| 1113 |
+
823,
|
| 1114 |
+
133
|
| 1115 |
+
],
|
| 1116 |
+
"page_idx": 10
|
| 1117 |
+
},
|
| 1118 |
+
{
|
| 1119 |
+
"type": "text",
|
| 1120 |
+
"text": "Aaron Gokaslan and Vanya Cohen. Openwebtext corpus. URl: https://skylion007. github. io/OpenWebTextCorpus, 2019. ",
|
| 1121 |
+
"bbox": [
|
| 1122 |
+
169,
|
| 1123 |
+
141,
|
| 1124 |
+
825,
|
| 1125 |
+
170
|
| 1126 |
+
],
|
| 1127 |
+
"page_idx": 10
|
| 1128 |
+
},
|
| 1129 |
+
{
|
| 1130 |
+
"type": "text",
|
| 1131 |
+
"text": "Anirudh Goyal, Aniket Didolkar, Alex Lamb, Kartikeya Badola, Nan Rosemary Ke, Nasim Rahaman, Jonathan Binas, Charles Blundell, Michael Mozer, and Yoshua Bengio. Coordination among neural modules through a shared global workspace. arXiv preprint arXiv:2103.01197, 2021. ",
|
| 1132 |
+
"bbox": [
|
| 1133 |
+
174,
|
| 1134 |
+
178,
|
| 1135 |
+
825,
|
| 1136 |
+
222
|
| 1137 |
+
],
|
| 1138 |
+
"page_idx": 10
|
| 1139 |
+
},
|
| 1140 |
+
{
|
| 1141 |
+
"type": "text",
|
| 1142 |
+
"text": "Ankit Gupta and Jonathan Berant. Gmat: Global memory augmentation for transformers. arXiv preprint arXiv:2006.03274, 2020. ",
|
| 1143 |
+
"bbox": [
|
| 1144 |
+
169,
|
| 1145 |
+
228,
|
| 1146 |
+
823,
|
| 1147 |
+
257
|
| 1148 |
+
],
|
| 1149 |
+
"page_idx": 10
|
| 1150 |
+
},
|
| 1151 |
+
{
|
| 1152 |
+
"type": "text",
|
| 1153 |
+
"text": "Angelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, and François Fleuret. Transformers are rnns: Fast autoregressive transformers with linear attention. In International Conference on Machine Learning, pages 5156–5165. PMLR, 2020. ",
|
| 1154 |
+
"bbox": [
|
| 1155 |
+
174,
|
| 1156 |
+
266,
|
| 1157 |
+
825,
|
| 1158 |
+
309
|
| 1159 |
+
],
|
| 1160 |
+
"page_idx": 10
|
| 1161 |
+
},
|
| 1162 |
+
{
|
| 1163 |
+
"type": "text",
|
| 1164 |
+
"text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2015. ",
|
| 1165 |
+
"bbox": [
|
| 1166 |
+
171,
|
| 1167 |
+
316,
|
| 1168 |
+
825,
|
| 1169 |
+
345
|
| 1170 |
+
],
|
| 1171 |
+
"page_idx": 10
|
| 1172 |
+
},
|
| 1173 |
+
{
|
| 1174 |
+
"type": "text",
|
| 1175 |
+
"text": "Nikita Kitaev, Łukasz Kaiser, and Anselm Levskaya. Reformer: The efficient transformer. arXiv preprint arXiv:2001.04451, 2020. ",
|
| 1176 |
+
"bbox": [
|
| 1177 |
+
171,
|
| 1178 |
+
353,
|
| 1179 |
+
825,
|
| 1180 |
+
382
|
| 1181 |
+
],
|
| 1182 |
+
"page_idx": 10
|
| 1183 |
+
},
|
| 1184 |
+
{
|
| 1185 |
+
"type": "text",
|
| 1186 |
+
"text": "Alex Krizhevsky et al. Learning multiple layers of features from tiny images. Technical Report. University of Toronto, 2009. ",
|
| 1187 |
+
"bbox": [
|
| 1188 |
+
171,
|
| 1189 |
+
390,
|
| 1190 |
+
823,
|
| 1191 |
+
419
|
| 1192 |
+
],
|
| 1193 |
+
"page_idx": 10
|
| 1194 |
+
},
|
| 1195 |
+
{
|
| 1196 |
+
"type": "text",
|
| 1197 |
+
"text": "Guokun Lai, Qizhe Xie, Hanxiao Liu, Yiming Yang, and Eduard Hovy. Race: Large-scale reading comprehension dataset from examinations. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 785–794, 2017. ",
|
| 1198 |
+
"bbox": [
|
| 1199 |
+
174,
|
| 1200 |
+
426,
|
| 1201 |
+
823,
|
| 1202 |
+
470
|
| 1203 |
+
],
|
| 1204 |
+
"page_idx": 10
|
| 1205 |
+
},
|
| 1206 |
+
{
|
| 1207 |
+
"type": "text",
|
| 1208 |
+
"text": "Juho Lee, Yoonho Lee, Jungtaek Kim, Adam Kosiorek, Seungjin Choi, and Yee Whye Teh. Set transformer: A framework for attention-based permutation-invariant neural networks. In International Conference on Machine Learning, pages 3744–3753. PMLR, 2019. ",
|
| 1209 |
+
"bbox": [
|
| 1210 |
+
176,
|
| 1211 |
+
477,
|
| 1212 |
+
823,
|
| 1213 |
+
521
|
| 1214 |
+
],
|
| 1215 |
+
"page_idx": 10
|
| 1216 |
+
},
|
| 1217 |
+
{
|
| 1218 |
+
"type": "text",
|
| 1219 |
+
"text": "Drew Linsley, Junkyung Kim, Vijay Veerabadran, Charles Windolf, and Thomas Serre. Learning long-range spatial dependencies with horizontal gated recurrent units. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 31. Curran Associates, Inc., 2018. URL https://proceedings.neurips.cc/paper/2018/file/ec8956637a99787bd197eacd77acce5e-Paper.pdf. ",
|
| 1220 |
+
"bbox": [
|
| 1221 |
+
173,
|
| 1222 |
+
527,
|
| 1223 |
+
825,
|
| 1224 |
+
598
|
| 1225 |
+
],
|
| 1226 |
+
"page_idx": 10
|
| 1227 |
+
},
|
| 1228 |
+
{
|
| 1229 |
+
"type": "text",
|
| 1230 |
+
"text": "Peter J Liu, Mohammad Saleh, Etienne Pot, Ben Goodrich, Ryan Sepassi, Lukasz Kaiser, and Noam Shazeer. Generating wikipedia by summarizing long sequences. In International Conference on Learning Representations (ICLR), 2018. ",
|
| 1231 |
+
"bbox": [
|
| 1232 |
+
176,
|
| 1233 |
+
606,
|
| 1234 |
+
823,
|
| 1235 |
+
650
|
| 1236 |
+
],
|
| 1237 |
+
"page_idx": 10
|
| 1238 |
+
},
|
| 1239 |
+
{
|
| 1240 |
+
"type": "text",
|
| 1241 |
+
"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. ",
|
| 1242 |
+
"bbox": [
|
| 1243 |
+
174,
|
| 1244 |
+
656,
|
| 1245 |
+
826,
|
| 1246 |
+
700
|
| 1247 |
+
],
|
| 1248 |
+
"page_idx": 10
|
| 1249 |
+
},
|
| 1250 |
+
{
|
| 1251 |
+
"type": "text",
|
| 1252 |
+
"text": "Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019. ",
|
| 1253 |
+
"bbox": [
|
| 1254 |
+
174,
|
| 1255 |
+
708,
|
| 1256 |
+
823,
|
| 1257 |
+
737
|
| 1258 |
+
],
|
| 1259 |
+
"page_idx": 10
|
| 1260 |
+
},
|
| 1261 |
+
{
|
| 1262 |
+
"type": "text",
|
| 1263 |
+
"text": "Xuezhe Ma. Apollo: An adaptive parameter-wise diagonal quasi-newton method for nonconvex stochastic optimization. arXiv preprint arXiv:2009.13586, 2020. ",
|
| 1264 |
+
"bbox": [
|
| 1265 |
+
173,
|
| 1266 |
+
744,
|
| 1267 |
+
823,
|
| 1268 |
+
773
|
| 1269 |
+
],
|
| 1270 |
+
"page_idx": 10
|
| 1271 |
+
},
|
| 1272 |
+
{
|
| 1273 |
+
"type": "text",
|
| 1274 |
+
"text": "Andrew Maas, Raymond E Daly, Peter T Pham, Dan Huang, Andrew Y Ng, and Christopher Potts. Learning word vectors for sentiment analysis. In Proceedings of the 49th annual meeting of the association for computational linguistics: Human language technologies, pages 142–150, 2011. ",
|
| 1275 |
+
"bbox": [
|
| 1276 |
+
173,
|
| 1277 |
+
781,
|
| 1278 |
+
825,
|
| 1279 |
+
825
|
| 1280 |
+
],
|
| 1281 |
+
"page_idx": 10
|
| 1282 |
+
},
|
| 1283 |
+
{
|
| 1284 |
+
"type": "text",
|
| 1285 |
+
"text": "Ali Madani, Bryan McCann, Nikhil Naik, Nitish Shirish Keskar, Namrata Anand, Raphael R Eguchi, Possu Huang, and Richard Socher. Progen: Language modeling for protein generation. bioRxiv, 2020. ",
|
| 1286 |
+
"bbox": [
|
| 1287 |
+
174,
|
| 1288 |
+
832,
|
| 1289 |
+
825,
|
| 1290 |
+
876
|
| 1291 |
+
],
|
| 1292 |
+
"page_idx": 10
|
| 1293 |
+
},
|
| 1294 |
+
{
|
| 1295 |
+
"type": "text",
|
| 1296 |
+
"text": "Sebastian Nagel. Cc-news. URL: http://web. archive. org/save/http://commoncrawl. org/2016/10/newsdatasetavailable, 2016. ",
|
| 1297 |
+
"bbox": [
|
| 1298 |
+
176,
|
| 1299 |
+
882,
|
| 1300 |
+
821,
|
| 1301 |
+
911
|
| 1302 |
+
],
|
| 1303 |
+
"page_idx": 10
|
| 1304 |
+
},
|
| 1305 |
+
{
|
| 1306 |
+
"type": "text",
|
| 1307 |
+
"text": "Nikita Nangia and Samuel Bowman. Listops: A diagnostic dataset for latent tree learning. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Student Research Workshop, pages 92–99, 2018. ",
|
| 1308 |
+
"bbox": [
|
| 1309 |
+
176,
|
| 1310 |
+
90,
|
| 1311 |
+
825,
|
| 1312 |
+
133
|
| 1313 |
+
],
|
| 1314 |
+
"page_idx": 11
|
| 1315 |
+
},
|
| 1316 |
+
{
|
| 1317 |
+
"type": "text",
|
| 1318 |
+
"text": "Myle Ott, Sergey Edunov, David Grangier, and Michael Auli. Scaling neural machine translation. In Proceedings of the Third Conference on Machine Translation: Research Papers, pages 1–9, 2018. ",
|
| 1319 |
+
"bbox": [
|
| 1320 |
+
171,
|
| 1321 |
+
141,
|
| 1322 |
+
826,
|
| 1323 |
+
171
|
| 1324 |
+
],
|
| 1325 |
+
"page_idx": 11
|
| 1326 |
+
},
|
| 1327 |
+
{
|
| 1328 |
+
"type": "text",
|
| 1329 |
+
"text": "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 Proceedings of NAACL-HLT 2019: Demonstrations, 2019. ",
|
| 1330 |
+
"bbox": [
|
| 1331 |
+
174,
|
| 1332 |
+
179,
|
| 1333 |
+
825,
|
| 1334 |
+
222
|
| 1335 |
+
],
|
| 1336 |
+
"page_idx": 11
|
| 1337 |
+
},
|
| 1338 |
+
{
|
| 1339 |
+
"type": "text",
|
| 1340 |
+
"text": "Niki Parmar, Ashish Vaswani, Jakob Uszkoreit, Lukasz Kaiser, Noam Shazeer, Alexander Ku, and Dustin Tran. Image transformer. In International Conference on Machine Learning, pages 4055–4064. PMLR, 2018. ",
|
| 1341 |
+
"bbox": [
|
| 1342 |
+
174,
|
| 1343 |
+
229,
|
| 1344 |
+
825,
|
| 1345 |
+
273
|
| 1346 |
+
],
|
| 1347 |
+
"page_idx": 11
|
| 1348 |
+
},
|
| 1349 |
+
{
|
| 1350 |
+
"type": "text",
|
| 1351 |
+
"text": "Hao Peng, Nikolaos Pappas, Dani Yogatama, Roy Schwartz, Noah Smith, and Lingpeng Kong. Random feature attention. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id $=$ QtTKTdVrFBB. ",
|
| 1352 |
+
"bbox": [
|
| 1353 |
+
173,
|
| 1354 |
+
281,
|
| 1355 |
+
826,
|
| 1356 |
+
325
|
| 1357 |
+
],
|
| 1358 |
+
"page_idx": 11
|
| 1359 |
+
},
|
| 1360 |
+
{
|
| 1361 |
+
"type": "text",
|
| 1362 |
+
"text": "Jiezhong Qiu, Hao Ma, Omer Levy, Scott Wen-tau Yih, Sinong Wang, and Jie Tang. Blockwise self-attention for long document understanding. arXiv preprint arXiv:1911.02972, 2019. ",
|
| 1363 |
+
"bbox": [
|
| 1364 |
+
173,
|
| 1365 |
+
333,
|
| 1366 |
+
823,
|
| 1367 |
+
363
|
| 1368 |
+
],
|
| 1369 |
+
"page_idx": 11
|
| 1370 |
+
},
|
| 1371 |
+
{
|
| 1372 |
+
"type": "text",
|
| 1373 |
+
"text": "Dragomir R Radev, Pradeep Muthukrishnan, Vahed Qazvinian, and Amjad Abu-Jbara. The acl anthology network corpus. Language Resources and Evaluation, 47(4):919–944, 2013. ",
|
| 1374 |
+
"bbox": [
|
| 1375 |
+
173,
|
| 1376 |
+
369,
|
| 1377 |
+
823,
|
| 1378 |
+
400
|
| 1379 |
+
],
|
| 1380 |
+
"page_idx": 11
|
| 1381 |
+
},
|
| 1382 |
+
{
|
| 1383 |
+
"type": "text",
|
| 1384 |
+
"text": "Jack W Rae, Anna Potapenko, Siddhant M Jayakumar, Chloe Hillier, and Timothy P Lillicrap. Compressive transformers for long-range sequence modeling. In International Conference on Learning Representations (ICLR), 2020. ",
|
| 1385 |
+
"bbox": [
|
| 1386 |
+
173,
|
| 1387 |
+
407,
|
| 1388 |
+
825,
|
| 1389 |
+
450
|
| 1390 |
+
],
|
| 1391 |
+
"page_idx": 11
|
| 1392 |
+
},
|
| 1393 |
+
{
|
| 1394 |
+
"type": "text",
|
| 1395 |
+
"text": "Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. Squad: $^ { 1 0 0 , 0 0 0 + }$ questions for machine comprehension of text. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pages 2383–2392, 2016. ",
|
| 1396 |
+
"bbox": [
|
| 1397 |
+
174,
|
| 1398 |
+
459,
|
| 1399 |
+
826,
|
| 1400 |
+
502
|
| 1401 |
+
],
|
| 1402 |
+
"page_idx": 11
|
| 1403 |
+
},
|
| 1404 |
+
{
|
| 1405 |
+
"type": "text",
|
| 1406 |
+
"text": "Aurko Roy, Mohammad Saffar, Ashish Vaswani, and David Grangier. Efficient content-based sparse attention with routing transformers. Transactions of the Association for Computational Linguistics, 9:53–68, 2021. ",
|
| 1407 |
+
"bbox": [
|
| 1408 |
+
174,
|
| 1409 |
+
510,
|
| 1410 |
+
826,
|
| 1411 |
+
553
|
| 1412 |
+
],
|
| 1413 |
+
"page_idx": 11
|
| 1414 |
+
},
|
| 1415 |
+
{
|
| 1416 |
+
"type": "text",
|
| 1417 |
+
"text": "Rico Sennrich, Barry Haddow, and Alexandra Birch. Neural machine translation of rare words with subword units. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1715–1725, 2016. ",
|
| 1418 |
+
"bbox": [
|
| 1419 |
+
173,
|
| 1420 |
+
560,
|
| 1421 |
+
826,
|
| 1422 |
+
604
|
| 1423 |
+
],
|
| 1424 |
+
"page_idx": 11
|
| 1425 |
+
},
|
| 1426 |
+
{
|
| 1427 |
+
"type": "text",
|
| 1428 |
+
"text": "Sheng Shen, Zhen Dong, Jiayu Ye, Linjian Ma, Zhewei Yao, Amir Gholami, Michael W Mahoney, and Kurt Keutzer. Q-bert: Hessian based ultra low precision quantization of bert. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 8815–8821, 2020. ",
|
| 1429 |
+
"bbox": [
|
| 1430 |
+
173,
|
| 1431 |
+
612,
|
| 1432 |
+
825,
|
| 1433 |
+
656
|
| 1434 |
+
],
|
| 1435 |
+
"page_idx": 11
|
| 1436 |
+
},
|
| 1437 |
+
{
|
| 1438 |
+
"type": "text",
|
| 1439 |
+
"text": "Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D Manning, Andrew $\\mathrm { \\Delta Y N g }$ , and Christopher Potts. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the 2013 conference on empirical methods in natural language processing, pages 1631–1642, 2013. ",
|
| 1440 |
+
"bbox": [
|
| 1441 |
+
174,
|
| 1442 |
+
664,
|
| 1443 |
+
826,
|
| 1444 |
+
719
|
| 1445 |
+
],
|
| 1446 |
+
"page_idx": 11
|
| 1447 |
+
},
|
| 1448 |
+
{
|
| 1449 |
+
"type": "text",
|
| 1450 |
+
"text": "Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2818–2826, 2016. ",
|
| 1451 |
+
"bbox": [
|
| 1452 |
+
173,
|
| 1453 |
+
728,
|
| 1454 |
+
823,
|
| 1455 |
+
772
|
| 1456 |
+
],
|
| 1457 |
+
"page_idx": 11
|
| 1458 |
+
},
|
| 1459 |
+
{
|
| 1460 |
+
"type": "text",
|
| 1461 |
+
"text": "Alon Talmor, Jonathan Herzig, Nicholas Lourie, and Jonathan Berant. Commonsenseqa: A question answering challenge targeting commonsense knowledge. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4149–4158, 2019. ",
|
| 1462 |
+
"bbox": [
|
| 1463 |
+
173,
|
| 1464 |
+
780,
|
| 1465 |
+
826,
|
| 1466 |
+
837
|
| 1467 |
+
],
|
| 1468 |
+
"page_idx": 11
|
| 1469 |
+
},
|
| 1470 |
+
{
|
| 1471 |
+
"type": "text",
|
| 1472 |
+
"text": "Yi Tay, Dara Bahri, Liu Yang, Donald Metzler, and Da-Cheng Juan. Sparse sinkhorn attention. In International Conference on Machine Learning, pages 9438–9447. PMLR, 2020a. ",
|
| 1473 |
+
"bbox": [
|
| 1474 |
+
173,
|
| 1475 |
+
844,
|
| 1476 |
+
821,
|
| 1477 |
+
875
|
| 1478 |
+
],
|
| 1479 |
+
"page_idx": 11
|
| 1480 |
+
},
|
| 1481 |
+
{
|
| 1482 |
+
"type": "text",
|
| 1483 |
+
"text": "Yi Tay, Mostafa Dehghani, Dara Bahri, and Donald Metzler. Efficient transformers: A survey. arXiv preprint arXiv:2009.06732, 2020b. ",
|
| 1484 |
+
"bbox": [
|
| 1485 |
+
176,
|
| 1486 |
+
882,
|
| 1487 |
+
821,
|
| 1488 |
+
911
|
| 1489 |
+
],
|
| 1490 |
+
"page_idx": 11
|
| 1491 |
+
},
|
| 1492 |
+
{
|
| 1493 |
+
"type": "text",
|
| 1494 |
+
"text": "Yi Tay, Mostafa Dehghani, Samira Abnar, Yikang Shen, Dara Bahri, Philip Pham, Jinfeng Rao, Liu Yang, Sebastian Ruder, and Donald Metzler. Long range arena : A benchmark for efficient transformers. In International Conference on Learning Representations, 2021. URL https: //openreview.net/forum?id=qVyeW-grC2k. \nTrieu H Trinh and Quoc V Le. A simple method for commonsense reasoning. arXiv preprint arXiv:1806.02847, 2018. \nAshish 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, pages 5998–6008, 2017. \nAshish Vaswani, Samy Bengio, Eugene Brevdo, Francois Chollet, Aidan Gomez, Stephan Gouws, Llion Jones, Łukasz Kaiser, Nal Kalchbrenner, Niki Parmar, et al. Tensor2tensor for neural machine translation. In Proceedings of the 13th Conference of the Association for Machine Translation in the Americas (Volume 1: Research Track), pages 193–199, 2018. \nQiang Wang, Bei Li, Tong Xiao, Jingbo Zhu, Changliang Li, Derek F Wong, and Lidia S Chao. Learning deep transformer models for machine translation. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 1810–1822, 2019. \nSinong Wang, Belinda Li, Madian Khabsa, Han Fang, and Hao Ma. Linformer: Self-attention with linear complexity. arXiv preprint arXiv:2006.04768, 2020. \nYingce Xia, Tianyu He, Xu Tan, Fei Tian, Di He, and Tao Qin. Tied transformers: Neural machine translation with shared encoder and decoder. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 5466–5473, 2019. \nRuibin Xiong, Yunchang Yang, Di He, Kai Zheng, Shuxin Zheng, Chen Xing, Huishuai Zhang, Yanyan Lan, Liwei Wang, and Tieyan Liu. On layer normalization in the transformer architecture. In International Conference on Machine Learning, pages 10524–10533. PMLR, 2020. \nYukun Zhu, Ryan Kiros, Rich Zemel, Ruslan Salakhutdinov, Raquel Urtasun, Antonio Torralba, and Sanja Fidler. Aligning books and movies: Towards story-like visual explanations by watching movies and reading books. In Proceedings of the IEEE international conference on computer vision, pages 19–27, 2015. ",
|
| 1495 |
+
"bbox": [
|
| 1496 |
+
169,
|
| 1497 |
+
90,
|
| 1498 |
+
826,
|
| 1499 |
+
565
|
| 1500 |
+
],
|
| 1501 |
+
"page_idx": 12
|
| 1502 |
+
}
|
| 1503 |
+
]
|
parse/train/GWRkOYr4jxQ/GWRkOYr4jxQ_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/GWRkOYr4jxQ/GWRkOYr4jxQ_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkecl1rtwB/rkecl1rtwB.md
ADDED
|
@@ -0,0 +1,320 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# PAIRNORM: TACKLING OVERSMOOTHING IN GNNS
|
| 2 |
+
|
| 3 |
+
Lingxiao Zhao Carnegie Mellon University Pittsburgh, PA 15213, USA {lingxia1}@andrew.cmu.edu
|
| 4 |
+
|
| 5 |
+
Leman Akoglu Carnegie Mellon University Pittsburgh, PA 15213, USA {lakoglu}@andrew.cmu.edu
|
| 6 |
+
|
| 7 |
+
# ABSTRACT
|
| 8 |
+
|
| 9 |
+
The performance of graph neural nets (GNNs) is known to gradually decrease with increasing number of layers. This decay is partly attributed to oversmoothing, where repeated graph convolutions eventually make node embeddings indistinguishable. We take a closer look at two different interpretations, aiming to quantify oversmoothing. Our main contribution is PAIRNORM, a novel normalization layer that is based on a careful analysis of the graph convolution operator, which prevents all node embeddings from becoming too similar. What is more, PAIRNORM is fast, easy to implement without any change to network architecture nor any additional parameters, and is broadly applicable to any GNN. Experiments on real-world graphs demonstrate that PAIRNORM makes deeper GCN, GAT, and SGC models more robust against oversmoothing, and significantly boosts performance for a new problem setting that benefits from deeper GNNs. Code is available at https://github.com/LingxiaoShawn/PairNorm.
|
| 10 |
+
|
| 11 |
+
# 1 INTRODUCTION
|
| 12 |
+
|
| 13 |
+
Graph neural networks (GNNs) is a family of neural networks that can learn from graph structured data. Starting with the success of GCN (Kipf & Welling, 2017) on achieving state-of-the-art performance on semi-supervised classification, several variants of GNNs have been developed for this task; including GraphSAGE (Hamilton et al., 2017), GAT (Velickovic et al., 2018), SGC (Wu et al., 2019), and GMNN (Qu et al., 2019) to name a few most recent ones.
|
| 14 |
+
|
| 15 |
+
A key issue with GNNs is their depth limitations. It has been observed that deeply stacking the layers often results in significant drops in performance for GNNs, such as GCN and GAT, even beyond just a few (2–4) layers. This drop is associated with a number of factors; including the vanishing gradients in back-propagation, overfitting due to the increasing number of parameters, as well as the phenomenon called oversmoothing. Li et al. (2018) was the first to call attention to the oversmoothing problem. Having shown that the graph convolution is a type of Laplacian smoothing, they proved that after repeatedly applying Laplacian smoothing many times, the features of the nodes in the (connected) graph would converge to similar values—the issue coined as “oversmoothing”. In effect, oversmoothing hurts classification performance by causing the node representations to be indistinguishable across different classes. Later, several others have alluded to the same problem (Xu et al., 2018; Klicpera et al., 2019; Rong et al., 2019; Li et al., 2019) (See §5 Related Work).
|
| 16 |
+
|
| 17 |
+
In this work, we address the oversmoothing problem in deep GNNs. Specifically, we propose (to the best of our knowledge) the first normalization layer for GNNs that is applied in-between intermediate layers during training. Our normalization has the effect of preventing the output features of distant nodes to be too similar or indistinguishable, while at the same time allowing those of connected nodes in the same cluster become more similar. We summarize our main contributions as follows.
|
| 18 |
+
|
| 19 |
+
• Normalization to Tackle Oversmoothing in GNNs: We introduce a normalization scheme, called PAIRNORM, that makes GNNs significantly more robust to oversmoothing and as a result enables the training of deeper models without sacrificing performance. Our proposed scheme capitalizes on the understanding that most GNNs perform a special form of Laplacian smoothing, which makes node features more similar to one another. The key idea is to ensure that the total pairwise feature distances remains a constant across layers, which in turn leads to distant pairs having less similar features, preventing feature mixing across clusters.
|
| 20 |
+
|
| 21 |
+
• Speed and Generality: PAIRNORM is very straightforward to implement and introduces no additional parameters. It is simply applied to the output features of each layer (except the last one) consisting of simple operations, in particular centering and scaling, that are linear in the input size. Being a simple normalization step between layers, PAIRNORM is not specific to any particular GNN but rather applies broadly.
|
| 22 |
+
|
| 23 |
+
• Use Case for Deeper GNNs: While PAIRNORM prevents performance from dropping significantly with increasing number of layers, it does not necessarily yield increased performance in absolute terms. We find that this is because shallow architectures with no more than 2–4 layers is sufficient for the often-used benchmark datasets in the literature. In response, we motivate a real-world scenario wherein a notable portion of the nodes have no feature vectors. In such settings, nodes benefit from a larger range (i.e., neighborhood, hence a deeper GNN) to “recover” effective feature representations. Through extensive experiments, we show that GNNs employing our PAIRNORM significantly outperform the ‘vanilla’ GNNs when deeper models are beneficial to the classification task.
|
| 24 |
+
|
| 25 |
+
# 2 UNDERSTANDING OVERSMOOTHING
|
| 26 |
+
|
| 27 |
+
In this work, we consider the semi-supervised node classification (SSNC) problem on a graph. In the general setting, a graph $\mathcal { G } = ( \nu , \mathcal { E } , \mathbf { X } )$ is given in which each node $i \in \mathcal V$ is associated with a feature vector $\mathbf { x } _ { i } \in \mathbb { R } ^ { \breve { d } }$ where $\mathbf { X } = [ \mathbf { x } _ { 1 } , \ldots , \mathbf { x } _ { n } ] ^ { T }$ denotes the feature matrix, and a subset $\nu _ { l } \subset \nu$ of the nodes are labeled, i.e. $y _ { i } \in \{ 1 , \ldots , c \}$ for each $i \in \mathcal { V } _ { l }$ where $c$ is the number of classes. Let $\mathbf { A } \in \mathbb { R } ^ { n \times n }$ be the adjacency matrix and $\mathbf { D } = \mathrm { d i a g } ( d e g _ { 1 } , \dots , d e g _ { n } ) \in \mathbb { R } ^ { n \times n }$ be the degree matrix of $\mathcal { G }$ . Let $\tilde { \mathbf { A } } = \mathbf { A } + \mathbf { I }$ and $\tilde { \mathbf { D } } = \mathbf { D } + \mathbf { I }$ denote the augmented adjacency and degree matrices with added self-loops on all nodes, respectively. Let $\tilde { \mathbf { A } } _ { \mathrm { s y m } } = \tilde { \mathbf { D } } ^ { - 1 / 2 } \tilde { \mathbf { A } } \tilde { \mathbf { D } } ^ { - 1 / 2 }$ and $\tilde { \mathbf { A } } _ { \mathrm { r w } } = \tilde { \mathbf { D } } ^ { - 1 } \tilde { \mathbf { A } }$ denote symmetrically and nonsymmetrically normalized adjacency matrices with self-loops.
|
| 28 |
+
|
| 29 |
+
The task is to learn a hypothesis that predicts $y _ { i }$ from $\mathbf { x } _ { i }$ that generalizes to the unlabeled nodes $\mathcal { V } _ { u } = \mathcal { V } \backslash \mathcal { V } _ { l }$ . In Section 3.2, we introduce a variant of this setting where only a subset $\mathcal { F } \subset \mathcal { V }$ of the nodes have feature vectors and the rest are missing.
|
| 30 |
+
|
| 31 |
+
# 2.1 THE OVERSMOOTHING PROBLEM
|
| 32 |
+
|
| 33 |
+
Although GNNs like GCN and GAT achieve state-of-the-art results in a variety of graph-based tasks, these models are not very well-understood, especially why they work for the SSNC problem where only a small amount of training data is available. The success appears to be limited to shallow GNNs, where the performance gradually decreases with the increasing number of layers. This decrease is often attributed to three contributing factors: (1) overfitting due to increasing number of parameters, (2) difficulty of training due to vanishing gradients, and (3) oversmoothing due to many graph convolutions.
|
| 34 |
+
|
| 35 |
+
Among these, perhaps the least understood one is oversmoothing, which indeed lacks a formal definition. In their analysis of GCN’s working mechanism, Li et al. (2018) showed that the graph convolution of GCN is a special form of Laplacian smoothing. The standard form being $( { \bf I } - \gamma { \bf I } ) { \bf X } +$ $\gamma \tilde { \mathbf { A } } _ { \mathrm { r w } } \mathbf { X }$ , the graph convolution lets $\gamma = 1$ and uses the symmetrically normalized Laplacian to obtain $\begin{array} { r } { \tilde { \mathbf { X } } = \bar { \hat { \mathbf { A } } } _ { \mathrm { s y m } } \mathbf { \bar { X } } } \end{array}$ , where the new features $\tilde { \bf x }$ of a node is the weighted average of its own and its neighbors’ features. This smoothing allows the node representations within the same cluster become more similar, and in turn helps improve SSNC performance under the cluster assumption (Chapelle et al., 2006). However when GCN goes deep, the performance can suffer from oversmoothing where node representations from different clusters become mixed up. Let us refer to this issue of node representations becoming too similar as node-wise oversmoothing.
|
| 36 |
+
|
| 37 |
+
Another way of thinking about oversmoothing is as follows. Repeatedly applying Laplacian smoothing too many times would drive node features to a stationary point, washing away all the information from these features. Let $\mathbf { x } _ { \cdot j } \in \mathbb { R } ^ { n }$ denote the $j$ -th column of $\mathbf { X }$ . Then, for any $\mathbf { x } _ { \cdot j } \in \mathbb { R } ^ { n }$ :
|
| 38 |
+
|
| 39 |
+
$$
|
| 40 |
+
\operatorname* { l i m } _ { k \to \infty } \tilde { \mathbf { A } } _ { \mathrm { s y m } } ^ { k } \mathbf { x } _ { \cdot j } = \pi _ { j } \quad \mathrm { a n d } \quad \frac { \pi _ { j } } { \| \pi _ { j } \| _ { 1 } } = \pi \ ,
|
| 41 |
+
$$
|
| 42 |
+
|
| 43 |
+
where the normalized solution $\pi \in \mathbb { R } ^ { n }$ satisfies $\begin{array} { r } { \pi _ { i } = \frac { \sqrt { d e g _ { i } } } { \sum _ { i } \sqrt { d e g _ { i } } } } \end{array}$ for all $i \in [ n ]$ . Notice that $\pi$ is independent of the values $\mathbf { x } _ { \cdot j }$ of the input feature and is only a function of the graph structure (i.e., degree). In other words, (Laplacian) oversmoothing washes away the signal from all the features, making them indistinguishable. We will refer to this viewpoint as feature-wise oversmoothing.
|
| 44 |
+
|
| 45 |
+
To this end we propose two measures, row-diff and col-diff, to quantify these two types of oversmoothing. Let $\bar { \mathbf { H } } ^ { ( k ) } \in \mathbb { R } ^ { n \times d }$ be the representation matrix after $k$ graph convolutions, i.e. $\mathbf { H } ^ { ( k ) } = \tilde { \mathbf { A } } _ { \mathrm { s y m } } ^ { k } \mathbf { X }$ . Let $\mathbf { h } _ { i } ^ { ( k ) } \in \mathbb { R } ^ { d }$ be the $i$ -th row of $\mathbf { H } ^ { ( k ) }$ and $\mathbf { h } _ { . i } ^ { ( k ) } \in \mathbb { R } ^ { n }$ be the $i$ -th column of $\mathbf { H } ^ { ( k ) }$ . Then we define row-diff $( \mathbf { H } ^ { ( k ) } )$ and col-diff $( \mathbf { H } ^ { ( k ) } )$ as follows.
|
| 46 |
+
|
| 47 |
+
$$
|
| 48 |
+
\mathrm { r o w } \mathrm { - } \mathrm { d i f f } ( { \bf H } ^ { ( k ) } ) = \frac { 1 } { n ^ { 2 } } \sum _ { i , j \in [ n ] } \left\| { \bf h } _ { i } ^ { ( k ) } - { \bf h } _ { j } ^ { ( k ) } \right\| _ { 2 }
|
| 49 |
+
$$
|
| 50 |
+
|
| 51 |
+
$$
|
| 52 |
+
\mathrm { c o l - d i f f } ( \mathbf { H } ^ { ( k ) } ) = \frac { 1 } { d ^ { 2 } } \sum _ { i , j \in [ d ] } \left\| \mathbf { h } _ { \cdot i } ^ { ( k ) } / \| \mathbf { h } _ { \cdot i } ^ { ( k ) } \| _ { 1 } - \mathbf { h } _ { \cdot j } ^ { ( k ) } / \| \mathbf { h } _ { \cdot j } ^ { ( k ) } \| _ { 1 } \right\| _ { 2 }
|
| 53 |
+
$$
|
| 54 |
+
|
| 55 |
+
The row-diff measure is the average of all pairwise distances between the node features (i.e., rows of the representation matrix) and quantifies node-wise oversmoothing, whereas col-diff is the average of pairwise distances between $L _ { 1 }$ -normalized1) columns of the representation matrix and quantifies feature-wise oversmoothing.
|
| 56 |
+
|
| 57 |
+
# 2.2 STUDYING OVERSMOOTHING WITH SGC
|
| 58 |
+
|
| 59 |
+
Although oversmoothing can be a cause of performance drop with increasing number of layers in GCN, adding more layers also leads to more parameters (due to learned linear projections $\mathbf { W } ^ { ( k ) }$ at each layer $k$ ) which magnify the potential of overfitting. Furthermore, deeper models also make the training harder as backpropagation suffers from vanishing gradients.
|
| 60 |
+
|
| 61 |
+
In order to decouple the effect of oversmoothing from these other two factors, we study the oversmoothing problem using the SGC model (Wu et al., 2019). (Results on other GNNs are presented in $\ S 4 .$ ) SGC is simplified from GCN by removing all projection parameters of graph convolution layers and all nonlinear activations between layers. The estimation of SGC is simply written as:
|
| 62 |
+
|
| 63 |
+
$$
|
| 64 |
+
\widehat { \pmb { Y } } = \mathrm { s o f t m a x } ( \tilde { \bf A } _ { \mathrm { s y m } } ^ { K } \pmb { X } \pmb { W } )
|
| 65 |
+
$$
|
| 66 |
+
|
| 67 |
+
where $K$ is the number of graph convolutions, and $\mathbf { W } \in \mathbb { R } ^ { d \times c }$ denote the learnable parameters of a logistic regression classifier.
|
| 68 |
+
|
| 69 |
+
Note that SGC has a fixed number of parameters that does not depend on the number of graph convolutions (i.e. layers). In effect, it is guarded against the influence of overfitting and vanishing gradient problem with more layers. This leaves us only with oversmoothing as a possible cause of performance degradation with increasing $K$ . Interestingly, the simplicity of SGC does not seem to be a sacrifice; it has been observed that it achieves similar or better accuracy in various relational classification tasks (Wu et al., 2019).
|
| 70 |
+
|
| 71 |
+

|
| 72 |
+
Figure 1: (best in color) SGC’s performance (dashed lines) with increasing graph convolutions $( K )$ on Cora dataset (train/val/test split is $3 \% / 1 0 \% / 8 7 \% )$ ). For each $K$ , we train SGC in 500 epochs, save the model with the best validation accuracy, and report all measures based on the saved model. Measures row-diff and col-diff are computed based on the final layer representation of the saved model. (Solid lines depict after applying our method PAIRNORM, which we discuss in $\ S 3 . 2 .$ )
|
| 73 |
+
|
| 74 |
+
Dashed lines in Figure 1 illustrate the performance of SGC on the Cora dataset as we increase the number of layers $( K )$ . The training (cross-entropy) loss monotonically increases with larger $K$ , potentially because graph convolution mixes node representations with their neighbors’ and makes them less distinguishable (training becomes harder). On the other hand, graph convolutions (i.e., smoothing) improve generalization ability, reducing the gap between training and validation/test loss up to $K = 4$ , after which (over)smoothing begins to hurt performance. The row-diff and col-diff both continue decreasing monotonically with $K$ , providing supporting evidence for oversmoothing.
|
| 75 |
+
|
| 76 |
+
# 3 TACKLING OVERSMOOTHING
|
| 77 |
+
|
| 78 |
+
# 3.1 PROPOSED PAIRNORM
|
| 79 |
+
|
| 80 |
+
We start by establishing a connection between graph convolution and an optimization problem, that is graph-regularized least squares (GRLS), as shown by NT $\&$ Maehara (2019). Let $\bar { \mathbf { X } } \in \mathbb { R } ^ { n \times d }$ be a new node representation matrix, with $\bar { \mathbf { x } } _ { i } \in \mathbb { R } ^ { d }$ depicting the $i$ -th row of $\bar { \bf X }$ . Then the GRLS problem is given as
|
| 81 |
+
|
| 82 |
+
$$
|
| 83 |
+
\underset { \bar { \mathbf { X } } } { \mathrm { m i n } } \sum _ { i \in \mathcal { V } } \| \bar { \mathbf { x } } _ { i } - \mathbf { x } _ { i } \| _ { \bar { \mathbf { D } } } ^ { 2 } + \sum _ { ( i , j ) \in \mathcal { E } } \| \bar { \mathbf { x } } _ { i } - \bar { \mathbf { x } } _ { j } \| _ { 2 } ^ { 2 }
|
| 84 |
+
$$
|
| 85 |
+
|
| 86 |
+
where $\| \mathbf { z } _ { i } \| _ { \tilde { \mathbf { D } } } ^ { 2 } = \mathbf { z } _ { i } ^ { T } \tilde { \mathbf { D } } \mathbf { z } _ { i }$ . The first term can be seen as total degree-weighted least squares. The second is a graph-regularization term that measures the variation of the new features over the graph structure. The goal of the optimization problem can be stated as estimating new “denoised” features $\bar { \mathbf { x } } _ { i }$ ’s that are not too far off of the input features $\mathbf { x } _ { i }$ ’s and are smooth over the graph structure.
|
| 87 |
+
|
| 88 |
+
The GRLS problem has a closed form solution $\bar { \mathbf { X } } = ( 2 \mathbf { I } - \tilde { \mathbf { A } } _ { \mathrm { r w } } ) ^ { - 1 } \mathbf { X }$ , for which $\tilde { \mathbf { A } } _ { \mathrm { r w } } \mathbf { X }$ is the firstorder Taylor approximation, that is $\tilde { \mathbf { A } } _ { \mathrm { r w } } \mathbf { X } \approx \bar { \mathbf { X } }$ . By exchanging $\tilde { \mathbf { A } } _ { \mathrm { r w } }$ with $\tilde { \mathbf { A } } _ { \mathrm { s y m } }$ we obtain the same form as the graph convolution, i.e., $\tilde { \mathbf { X } } = \tilde { \mathbf { A } } _ { \mathrm { s y m } } \mathbf { X } \approx \bar { \mathbf { X } }$ . As such, graph convolution can be viewed as an approximate solution of (5), where it minimizes the variation over the graph structure while keeping the new representations close to the original.
|
| 89 |
+
|
| 90 |
+
The optimization problem in (5) facilitates a closer look to the oversmoothing problem of graph convolution. Ideally, we want to obtain smoothing over nodes within the same cluster, however avoid smoothing over nodes from different clusters. The objective in (5) dictates only the first goal via the graph-regularization term. It is thus prone to oversmoothing when convolutions are applied repeatedly. To circumvent the issue and fulfill both goals simultaneously, we can add a negative term such as the sum of distances between disconnected pairs as follows.
|
| 91 |
+
|
| 92 |
+
$$
|
| 93 |
+
\operatorname* { m i n } _ { \bar { \mathbf { X } } } \sum _ { i \in \mathcal { V } } \| \bar { \mathbf { x } } _ { i } - \mathbf { x } _ { i } \| _ { \bar { \mathbf { D } } } ^ { 2 } + \sum _ { ( i , j ) \in \mathcal { E } } \| \bar { \mathbf { x } } _ { i } - \bar { \mathbf { x } } _ { j } \| _ { 2 } ^ { 2 } - \lambda \sum _ { ( i , j ) \notin \mathcal { E } } \| \bar { \mathbf { x } } _ { i } - \bar { \mathbf { x } } _ { j } \| _ { 2 } ^ { 2 }
|
| 94 |
+
$$
|
| 95 |
+
|
| 96 |
+
where $\lambda$ is a balancing scalar to account for different volume and importance of the two goals.2 By deriving the closed-form solution of (6) and approximating it with first-order Taylor expansion, one can get a revised graph convolution operator with hyperparameter $\lambda$ . In this paper, we take a different route. Instead of a completely new graph convolution operator, we propose a general and efficient “patch”, called PAIRNORM, that can be applied to any form of graph convolution having the potential of oversmoothing.
|
| 97 |
+
|
| 98 |
+
Let $\tilde { \mathbf { X } }$ (the output of graph convolution) and $\dot { \bf X }$ respectively be the input and output of PAIRNORM. Observing that the output of graph convolution $\begin{array} { r } { \tilde { \mathbf { X } } = \tilde { \mathbf { A } } _ { \mathrm { s y m } } \tilde { \mathbf { X } } } \end{array}$ only achieves the first goal, PAIRNORM serves as a normalization layer that works on $\tilde { \mathbf { X } }$ to achieve the second goal of keeping disconnected pair representations farther off. Specifically, PAIRNORM normalizes $\bar { \bar { \mathbf { X } } }$ such that the total pairwise squared distance $\begin{array} { r } { \mathrm { T P S D } ( \dot { \mathbf { X } } ) : = \bar { \sum _ { i , j \in [ n ] } } \| \dot { \mathbf { x } } _ { i } - \dot { \mathbf { x } } _ { j } \| _ { 2 } ^ { 2 } } \end{array}$ is the same as $\mathrm { T P S D } ( \mathbf { X } )$ . That is,
|
| 99 |
+
|
| 100 |
+
$$
|
| 101 |
+
\sum _ { ( i , j ) \in \mathcal { E } } \| \dot { \mathbf { x } } _ { i } - \dot { \mathbf { x } } _ { j } \| _ { 2 } ^ { 2 } + \sum _ { ( i , j ) \not \in \mathcal { E } } \| \dot { \mathbf { x } } _ { i } - \dot { \mathbf { x } } _ { j } \| _ { 2 } ^ { 2 } = \sum _ { ( i , j ) \in \mathcal { E } } \| { \mathbf { x } } _ { i } - { \mathbf { x } } _ { j } \| _ { 2 } ^ { 2 } + \sum _ { ( i , j ) \not \in \mathcal { E } } \| { \mathbf { x } } _ { i } - { \mathbf { x } } _ { j } \| _ { 2 } ^ { 2 } .
|
| 102 |
+
$$
|
| 103 |
+
|
| 104 |
+
By keeping the total pairwise squared distance unchanged, the term $\begin{array} { r } { \sum _ { ( i , j ) \notin \mathcal { E } } \| \dot { \mathbf { x } } _ { i } - \dot { \mathbf { x } } _ { j } \| _ { 2 } ^ { 2 } } \end{array}$ is guaranteed to be at least as large as the original value $\begin{array} { r } { \sum _ { ( i , j ) \notin \mathcal { E } } \| \mathbf { x } _ { i } - \mathbf { x } _ { j } \| _ { 2 } ^ { 2 } } \end{array}$ since the other term $\begin{array} { r } { \sum _ { ( i , j ) \in \mathcal { E } } \| \dot { \bf x } _ { i } - \dot { \bf x } _ { j } \| _ { 2 } ^ { 2 } \approx \sum _ { ( i , j ) \in \mathcal { E } } \| \tilde { \bf x } _ { i } - \tilde { \bf x } _ { j } \| _ { 2 } ^ { 2 } } \end{array}$ is shrunk through the graph convolution.
|
| 105 |
+
|
| 106 |
+
In practice, instead of always tracking the original value $\mathrm { T P S D } ( \mathbf { X } )$ , we can maintain a constant TPSD value $C$ across all layers, where $C$ is a hyperparameter that could be tuned per dataset.
|
| 107 |
+
|
| 108 |
+
To normalize $\tilde { \mathbf { X } }$ to constant TPSD, we need to first compute $\mathrm { T P S D } ( \tilde { \mathbf { X } } )$ . Directly computing TPSD involves $n ^ { 2 }$ pairwise distances that is $\mathcal { O } ( n ^ { 2 } d )$ , which can be time consuming for large datasets.
|
| 109 |
+
|
| 110 |
+
Equivalently, normalization can be done via a two-step approach where TPSD is rewritten as3
|
| 111 |
+
|
| 112 |
+
$$
|
| 113 |
+
\begin{array} { r c l } { \mathrm { T P S D } ( \tilde { \mathbf { X } } ) } & { = } & { \displaystyle \sum _ { i , j \in [ n ] } \| \tilde { \mathbf { x } } _ { i } - \tilde { \mathbf { x } } _ { j } \| _ { 2 } ^ { 2 } } & { = } & { \displaystyle 2 n ^ { 2 } \bigg ( \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \| \tilde { \mathbf { x } } _ { i } \| _ { 2 } ^ { 2 } - \| \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \tilde { \mathbf { x } } _ { i } \| _ { 2 } ^ { 2 } \bigg ) ~ . } \end{array}
|
| 114 |
+
$$
|
| 115 |
+
|
| 116 |
+
The first term (ignoring the scale $2 n ^ { 2 }$ ) in Eq. (8) represents the mean squared length of node representations, and the second term depicts the squared length of the mean of node representations. To simplify the computation of (8), we subtract the row-wise mean from each $\widetilde { \mathbf { x } } _ { i }$ , i.e., $\begin{array} { r } { \tilde { \mathbf { x } } _ { i } ^ { c } = \tilde { \mathbf { x } } _ { i } - \frac { 1 } { n } \sum _ { i } ^ { n } \tilde { \mathbf { x } } _ { i } ^ { \cdot } } \end{array}$ where $\tilde { \mathbf { x } } _ { i } ^ { c }$ denotes the centered representation. Note that this shifting does not affect the TPSD, and furthermore drives the term $\begin{array} { r } { \| \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \tilde { \mathbf { x } } _ { i } \| _ { 2 } ^ { 2 } } \end{array}$ to zero, where computing $\mathrm { T P S D } ( \tilde { \mathbf { X } } )$ boils down to calculating the squared Frobenius norm of $\tilde { \mathbf { X } } ^ { c }$ and overall takes $\mathcal { O } ( n d )$ . That is,
|
| 117 |
+
|
| 118 |
+
In summary, our proposed PAIRNORM (with input $\tilde { \mathbf { X } }$ and output $\dot { \bf X }$ ) can be written as a two-step, center-and-scale, normalization procedure:
|
| 119 |
+
|
| 120 |
+
$$
|
| 121 |
+
\begin{array} { l } { \displaystyle \widetilde { \mathbf { x } } _ { i } ^ { c } = \widetilde { \mathbf { x } } _ { i } - \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \widetilde { \mathbf { x } } _ { i } } \\ { \displaystyle \dot { \mathbf { x } } _ { i } = s \cdot \frac { \widetilde { \mathbf { x } } _ { i } ^ { c } } { \sqrt { \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \| \widetilde { \mathbf { x } } _ { i } ^ { c } \| _ { 2 } ^ { 2 } } } = s \sqrt { n } \cdot \frac { \widetilde { \mathbf { x } } _ { i } ^ { c } } { \sqrt { \| \widetilde { \mathbf { X } } ^ { c } \| _ { F } ^ { 2 } } } } \end{array}
|
| 122 |
+
$$
|
| 123 |
+
|
| 124 |
+
After scaling the data remains centered, that is, $\begin{array} { r } { \| \sum _ { i = 1 } ^ { n } \dot { \bf x } _ { i } \| _ { 2 } ^ { 2 } = 0 } \end{array}$ . In Eq. (11), $s$ is a hyperparameter that determines $C$ . Specifically,
|
| 125 |
+
|
| 126 |
+
$$
|
| 127 |
+
\mathrm { T P S D } ( { \dot { \mathbf { X } } } ) = 2 n \| { \dot { \mathbf { X } } } \| _ { F } ^ { 2 } = 2 n \sum _ { i } \| s \cdot { \frac { { \tilde { \mathbf { x } } } _ { i } ^ { c } } { \sqrt { { \frac { 1 } { n } } \sum _ { i } \| { \tilde { \mathbf { x } } } _ { i } ^ { c } \| _ { 2 } ^ { 2 } } } } \| _ { 2 } ^ { 2 } = 2 n { \frac { s ^ { 2 } } { { \frac { 1 } { n } } \sum _ { i } \| { \tilde { \mathbf { x } } } _ { i } ^ { c } \| _ { 2 } ^ { 2 } } } \sum _ { i } \| { \tilde { \mathbf { x } } } _ { i } ^ { c } \| _ { 2 } ^ { 2 } = 2 n ^ { 2 } s ^ { 2 }
|
| 128 |
+
$$
|
| 129 |
+
|
| 130 |
+
Then, $\dot { \mathbf { X } } : = \operatorname { P A I R N O R M } ( \tilde { \mathbf { X } } )$ has row-wise mean 0 (i.e., is centered) and constant total pairwise squared distance $C = 2 n ^ { 2 } s ^ { 2 }$ . An illustration of PAIRNORM is given in Figure 2. The output of PAIRNORM is input to the next convolution layer.
|
| 131 |
+
|
| 132 |
+

|
| 133 |
+
Figure 2: Illustration of PAIRNORM, comprising centering and rescaling steps.
|
| 134 |
+
|
| 135 |
+
We also derive a variant of PAIRNORM by replacing Pni=1 $\textstyle \sum _ { i = 1 } ^ { n } \| \tilde { \mathbf { x } } _ { i } ^ { c } \| _ { 2 } ^ { 2 }$ in Eq. (11) with $n \| \tilde { \mathbf { x } } _ { i } ^ { c } \| _ { 2 } ^ { 2 }$ , such that the scaling step computes $\begin{array} { r l r } { \dot { \bf x } _ { i } } & { { } = } & { s } \end{array}$ $\frac { \tilde { \mathbf { x } } _ { i } ^ { c } } { \| \tilde { \mathbf { x } } _ { i } ^ { c } \| _ { 2 } }$ . We call it PAIRNORM-SI (for Scale Individually), which imposes more restriction on node representations, such that all have the same $L _ { 2 }$ -norm s. In practice we found that both PAIRNORM and PAIRNORM-SI work well for SGC, whereas PAIRNORM-SI provides better and more stable results for GCN and
|
| 136 |
+
|
| 137 |
+

|
| 138 |
+
Figure 3: (best in color) Performance comparison of the original (dashed) vs. PAIRNORM-enhanced (solid) GCN and GAT models with increasing layers on Cora.
|
| 139 |
+
|
| 140 |
+
GAT. The reason why GCN and GAT require stricter normalization may be because they have more parameters and are more prone to overfitting. In Appx. A.6 we provide additional measures to demonstrate why PAIRNORM and PAIRNORM-SI work. In all experiments, we employ PAIRNORM for SGC and PAIRNORM-SI for both GCN and GAT.
|
| 141 |
+
|
| 142 |
+
PAIRNORM is effective and efficient in solving the oversmoothing problem of GNNs. As a general normalization layer, it can be used for any GNN. Solid lines in Figure 1 present the performance of SGC on Cora with increasing number of layers, where we employ PAIRNORM after each graph convolution layer, as compared to ‘vanilla’ versions. Similarly, Figure 3 is for GCN and GAT (PAIRNORM is applied after the activation of each graph convolution). Note that the performance decay with PAIRNORM-at-work is much slower. (See Fig.s 5–6 in Appx. A.3 for other datasets.)
|
| 143 |
+
|
| 144 |
+
While PAIRNORM enables deeper models that are more robust to oversmoothing, it may seem odd that the overall test accuracy does not improve. In fact, the benchmark graph datasets often used in the literature require no more than 4 layers, after which performance decays (even if slowly). In the next section, we present a realistic use case setting for which deeper models are more likely to provide higher performance, where the benefit of PAIRNORM becomes apparent.
|
| 145 |
+
|
| 146 |
+
# 3.2 A CASE WHERE DEEPER GNNS ARE BENEFICIAL
|
| 147 |
+
|
| 148 |
+
In general, oversmoothing gets increasingly more severe as the number of layers goes up. A task would benefit from employing PAIRNORM more if it required a large number of layers to achieve its best performance. To this effect we study the “missing feature setting”, where a subset of the nodes lack feature vectors. Let $\mathcal { M } \subseteq \mathcal { V } _ { u }$ be the set where $\forall m \in \mathcal { M } , \mathbf { x } _ { m } = \varnothing$ , i.e., all of their features are missing. We denote with $p = | \mathcal { M } | / | \mathcal { V } _ { u } |$ the missing fraction. We call this variant of the task as semi-supervised node classification with missing vectors (SSNC-MV). Intuitively, one would require a larger number of propagation steps (hence, a deeper GNN) to be able to “recover” effective feature representations for these nodes.
|
| 149 |
+
|
| 150 |
+
SSNC-MV is a general and realistic problem that finds several applications in the real world. For example, the credit lending problem of identifying low- vs. high-risk customers (nodes) can be modeled as SSNC-MV where a large fraction of nodes do not exhibit any meaningful features (e.g., due to low-volume activity). In fact, many graph-based classification tasks with the cold-start issue (entity with no history) can be cast into SSNC-MV. To our knowledge, this is the first work to study the SSNC-MV problem using GNN models.
|
| 151 |
+
|
| 152 |
+
Figure 4 presents the performance of SGC, GCN, and GAT models on Cora with increasing number of layers, where we remove feature vectors from all the unlabeled nodes, i.e. $p = 1$ . The models with PAIRNORM achieve a higher test accuracy compared to those without, which they typically reach at a larger number of layers. (See Fig. 7 in Appx. A.4 for results on other datasets.)
|
| 153 |
+
|
| 154 |
+

|
| 155 |
+
Figure 4: (best in color) Comparison of ‘vanilla’ vs. PAIRNORM-enhanced SGC, GCN, and GAT performance on Cora for $p = 1$ . Green diamond symbols depict the layer at which validation accuracy peaks. PAIRNORM boosts overall performance by enabling more robust deep GNNs.
|
| 156 |
+
|
| 157 |
+
# 4 EXPERIMENTS
|
| 158 |
+
|
| 159 |
+
In section 3 we have shown the robustness of PAIRNORM-enhanced models against increasing number of layers in SSNC problem. In this section we design extensive experiments to evaluate the effectiveness of PAIRNORM under the SSNC-MV setting, over SGC, GCN and GAT models.
|
| 160 |
+
|
| 161 |
+
# 4.1 EXPERIMENT SETUP
|
| 162 |
+
|
| 163 |
+
Datasets. We use 4 well-known benchmark datasets in GNN domain: Cora, Citeseer, Pubmed (Sen et al., 2008), and CoauthorCS (Shchur et al., 2018). Their statistics are reported in Appx. A.2. For Cora, Citeseer and Pubmed, we use the same dataset splits as Kipf & Welling (2017), where all nodes outside train and validation are used as test set. For CoauthorCS, we randomly split all nodes into train/val/test as $3 \% / 1 0 \% / 8 7 \%$ , and keep the same split for all experiments.
|
| 164 |
+
|
| 165 |
+
Models. We use three different GNN models as our base model: SGC (Wu et al., 2019), GCN (Kipf & Welling, 2017), and GAT (Velickovic et al., 2018). We compare our PAIRNORM with residual connection method (He et al., 2016) over base models (except SGC since there is no “residual connected” SGC), as we surprisingly find it can slow down oversmoothing and benefit SSNCMV problem. Similar to us, residual connection is a general technique that can be applied to any model without changing its architecture. We focus on the comparison between the base models and PAIRNORM-enhanced models, rather than achieving the state of the art performance for SSNC and SSNC-MV. There exist a few other work addressing oversmoothing (Klicpera et al., 2019; Li et al., 2018; Rong et al., 2019; Xu et al., 2018) however they design specialized architectures and not simple “patch” procedures like PAIRNORM that can be applied on top of any GNN.
|
| 166 |
+
|
| 167 |
+
Hyperparameters. We choose the hyperparameter $s$ of PAIRNORM from $\{ 0 . 1 , 1 , 1 0 , 5 0 , 1 0 0 \}$ over validation set for SGC, while keeping it fixed at $s = 1$ for both GCN and GAT due to resource limitations. We set the #hidden units of GCN and GAT (#attention heads is set to 1) to 32 and 64 respectively for all datasets. Dropout with rate 0.6 and $L _ { 2 }$ regularization with penalty $5 \cdot 1 0 ^ { - 4 } $ are applied to GCN and GAT. For SGC, we vary number of layers in $\{ 1 , 2 , \ldots 1 0 , 1 5 , \ldots , 6 0 \}$ and for GCN and GAT in $\{ 2 , 4 , \dots , 1 2 , 1 5 , 2 0 , \dots , 3 0 \}$ .
|
| 168 |
+
|
| 169 |
+
Configurations. For PAIRNORM-enhanced models, we apply PAIRNORM after each graph convolution layer (i.e., after activation if any) in the base model. For residual-connected models with $t$ skip steps, we connect the output of $l$ -th layer to $( l + t )$ -th, that is, $\mathbf { H } _ { \mathrm { n e w } } ^ { ( l + t ) } = \mathbf { H } ^ { ( l + t ) } + \mathbf { H } ^ { ( l ) }$ where $\mathbf { H } ^ { ( \bar { l } ) }$ denotes the output of $l$ -th graph convolution (after activation). For the SSNC-MV setting, we randomly erase $p$ fraction of the feature vectors from nodes in validation and test sets (for which we input vector $\mathbf { 0 } \in \mathbb { R } ^ { d }$ ), whereas all training (labeled) nodes keep their original features (See 3.2). We run each experiment within 1000 epochs 5 times and report the average performance. We mainly use a single GTX-1080ti GPU, with some SGC experiments ran on an Intel i7-8700k CPU.
|
| 170 |
+
|
| 171 |
+
# 4.2 EXPERIMENT RESULTS
|
| 172 |
+
|
| 173 |
+
We first show the global performance gain of applying PAIRNORM to SGC for SSNC-MV under varying feature missing rates as shown in Table 1. PAIRNORM-enhanced SGC performs similar or better over $0 \%$ missing, while it significantly outperforms vanilla SGC for most other settings, especially for larger missing rates. #L denotes the best number of layers for the model that yields the largest average validation accuracy (over 5 runs), for which we report the average test accuracy (Acc). Notice the larger #L values for SGC-PN compared to vanilla SGC, which shows the power of PAIRNORM for enabling “deep” SGC models by effectively tackling oversmoothing.
|
| 174 |
+
|
| 175 |
+
Similar to Wu et al. (2019) who showed that the simple SGC model achieves comparable or better performance as other GNNs for various tasks, we found PAIRNORM-enhanced SGC to follow the same trend when compared with PAIRNORM-enhanced GCN and GAT, for all SSNC-MV settings. Due to its simplicity and extreme efficiency, we believe PAIRNORM-enhanced SGC sets a strong baseline for the SSNC-MV problem.
|
| 176 |
+
|
| 177 |
+
Table 1: Comparison of ‘vanilla’ vs. PAIRNORM-enhanced SGC performance in Cora, Citeseer, Pubmed, and CoauthorCS for SSNC-MV problem, with missing rate ranging from $0 \%$ to $1 0 0 \%$ . Showing test accuracy at #L ( $K$ in Eq. 4) layers, at which model achieves best validation accuracy.
|
| 178 |
+
|
| 179 |
+
<table><tr><td colspan="2">Missing Percentage Dataset Method</td><td colspan="2">0% Acc #L</td><td colspan="2">20% Acc #L</td><td colspan="2">40% Acc #L</td><td colspan="2">60% Acc #L</td><td colspan="2">80% Acc #L</td><td colspan="2">100% Acc #L</td></tr><tr><td rowspan="2">Cora</td><td>SGC</td><td>0.815</td><td>4</td><td>0.806</td><td>5</td><td>|0.786</td><td>3</td><td>0.742</td><td>4</td><td>0.733</td><td></td><td>310.423</td><td>315</td></tr><tr><td>SGC-PN</td><td>0.811</td><td>7</td><td>0.799</td><td>7</td><td>0.797</td><td>7</td><td>0.783</td><td>20</td><td>0.780</td><td>25</td><td>0.745</td><td>40</td></tr><tr><td rowspan="2">Citeseer</td><td>SGC</td><td>0.689</td><td>10</td><td>0.684</td><td>6</td><td>0.668</td><td>8</td><td>0.657</td><td></td><td>9 0.565</td><td></td><td>80.290</td><td>2</td></tr><tr><td>SGC-PN</td><td>0.706</td><td>3</td><td>0.695</td><td>3</td><td>0.653</td><td>4</td><td>0.641</td><td></td><td>5 0.590</td><td></td><td>500.486</td><td>50</td></tr><tr><td rowspan="2">Pubmed</td><td>SGC</td><td>0.754</td><td>1</td><td>0.748</td><td></td><td>0.723</td><td></td><td>410.746</td><td></td><td>20.659</td><td></td><td>30.399</td><td>35</td></tr><tr><td>SGC-PN</td><td>0.782</td><td>9</td><td>0.781</td><td>1 7</td><td>0.778</td><td></td><td>600.782</td><td></td><td>7 0.772</td><td></td><td>600.719</td><td>40</td></tr><tr><td rowspan="2">CoauthorCs</td><td>SGC</td><td>0.914</td><td>1</td><td>10.898</td><td></td><td>0.877</td><td></td><td>210.824</td><td></td><td>210.751</td><td></td><td>40.318</td><td>2</td></tr><tr><td>SGC-PN</td><td>0.915</td><td>2</td><td>0.909</td><td>22</td><td>0.899</td><td>3</td><td>0.891</td><td></td><td>4 0.880</td><td></td><td>80.860</td><td>20</td></tr></table>
|
| 180 |
+
|
| 181 |
+
We next employ PAIRNORM-SI for GCN and GAT under the same setting, comparing it with the residual (skip) connections technique. Results are shown in Table 2 and Table 3 respectively for GCN and GAT. Due to space and resource limitations, we only show results for $0 \%$ and $1 0 0 \%$ missing rate scenarios. (We provide results for other missing rates $( 7 0 , 8 0 , 9 0 \% )$ over 1 run only in Appx. A.5.) We observe similar trend for GCN and GAT: (1) vanilla model suffers from performance drop under SSNC-MV with increasing missing rate; (2) both residual connections and PAIRNORM-SI enable deeper models and improve performance (note the larger $\# \mathrm { L }$ and Acc); (3) GCN-PN and
|
| 182 |
+
|
| 183 |
+
GAT-PN achieve performance that is comparable or better than just using skips; (4) performance can be further improved (albeit slightly) by using skips along with PAIRNORM-SI.4
|
| 184 |
+
|
| 185 |
+
Table 2: Comparison of ‘vanilla’ and (PAIRNORM-SI/ residual)-enhanced GCN performance on Cora, Citeseer, Pubmed, and CoauthorCS for SSNC-MV problem, with $0 \%$ and $1 0 0 \%$ feature missing rate. $t$ represents the skip-step of residual connection. (See A.5 Fig. 8 for more settings.)
|
| 186 |
+
|
| 187 |
+
<table><tr><td rowspan="2">Dataset Missing(%) Method</td><td colspan="3">Cora</td><td colspan="4">Citeseer</td><td colspan="4">Pubmed</td><td colspan="4">CoauthorCs</td></tr><tr><td colspan="2">0% Acc #L</td><td colspan="2">100% Acc #L</td><td colspan="2">0% Acc #L</td><td colspan="2">100% Acc #L</td><td colspan="2">0% Acc #L</td><td colspan="2">100% Acc #L</td><td colspan="2">0% Acc #L</td><td colspan="2">100% Acc #L</td></tr><tr><td>GCN</td><td>|0.821</td><td>2|0.582</td><td></td><td>2</td><td>0.695</td><td>0.313</td><td></td><td>2</td><td>|0.779</td><td>2|0.449</td><td></td><td>2</td><td>|0.877</td><td></td><td>210.452</td><td>4</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td>2</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>GCN-PN GCN-t1</td><td>[0.790 0.822</td><td>2</td><td>0.731</td><td>10</td><td>0.660</td><td></td><td>0.498</td><td>8</td><td>0.780</td><td>30</td><td>0.745</td><td>25 25</td><td>10.910 0.898</td><td>2</td><td>0.846 0.727</td><td>12 12</td></tr><tr><td>GCN-t1-PN</td><td>0.780</td><td>2 2</td><td>0.721 0.724</td><td>15 30</td><td>0.696 0.648</td><td></td><td>0.441 0.465</td><td>12 10</td><td>0.780 0.756</td><td>2 15</td><td>0.656 0.690</td><td>12</td><td>0.898</td><td>2 2</td><td>0.830</td><td>20</td></tr><tr><td>GCN-t2</td><td>0.820</td><td>2</td><td>0.722</td><td>10</td><td>0.691</td><td></td><td>0.432</td><td>20</td><td>0.779</td><td>2</td><td>0.645</td><td>20</td><td>0.882</td><td>4</td><td>0.630</td><td>20</td></tr><tr><td>GCN-t2-PN</td><td>0.785</td><td>4</td><td>0.740</td><td>30</td><td>0.650</td><td>22222</td><td>0.508</td><td>12</td><td>0.770</td><td>15</td><td>0.725</td><td>30</td><td>0.911</td><td>2</td><td>0.839</td><td>20</td></tr></table>
|
| 188 |
+
|
| 189 |
+
Table 3: Comparison of ‘vanilla’ and (PAIRNORM-SI/ residual)-enhanced GAT performance on Cora, Citeseer, Pubmed, and CoauthorCS for SSNC-MV problem, with $0 \%$ and $1 0 0 \%$ feature missing rate. $t$ represents the skip-step of residual connection. (See A.5 Fig. 9 for more settings.)
|
| 190 |
+
|
| 191 |
+
<table><tr><td rowspan="2">Dataset Missing(%) Method</td><td rowspan="2">0%</td><td colspan="2">Cora 100%</td><td colspan="4">Citeseer</td><td colspan="4">Pubmed</td><td colspan="4">Coauthorcs</td></tr><tr><td colspan="2"></td><td colspan="2">0% Acc #L</td><td colspan="2">100% Acc #L</td><td colspan="2">0% Acc #L</td><td colspan="2">100% Acc #L</td><td colspan="2">0% Acc #L</td><td colspan="2">100% Acc #L</td></tr><tr><td></td><td>Acc #L 0.823</td><td></td><td>Acc #L</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>GAT</td><td></td><td>2|</td><td>0.653</td><td>4</td><td>0.693</td><td>210.428</td><td></td><td>4 |0.774</td><td></td><td>6|0.631</td><td></td><td>4 [0.892</td><td></td><td>4|0.737</td><td>4</td></tr><tr><td>GAT-PN</td><td>0.787</td><td>2</td><td>0.718</td><td>6</td><td>0.670</td><td>2 0.483</td><td>4</td><td>0.774</td><td>12</td><td>0.714</td><td>10</td><td>0.916</td><td>2</td><td>0.843</td><td>8</td></tr><tr><td>GAT-t1</td><td>0.822 0.787</td><td>2</td><td>0.706</td><td>8</td><td>0.693</td><td>2 0.461</td><td>6</td><td>0.769</td><td>4</td><td>0.698</td><td>8</td><td>0.899</td><td>4 2</td><td>0.842</td><td>10</td></tr><tr><td>GAT-t1-PN GAT-t2</td><td>0.820</td><td>2 2</td><td>0.710 0.691</td><td>10</td><td>0.658</td><td>6 0.500 0.461</td><td>10 6</td><td>0.757 0.774</td><td>4 8</td><td>0.684 0.702</td><td>12 8</td><td>0.911 0.895</td><td></td><td>0.844 0.803</td><td>20</td></tr><tr><td>GAT-t2-PN</td><td>0.788</td><td>4</td><td>0.738</td><td>8 12</td><td>s0.692 0.672</td><td>2 4 0.517</td><td>10</td><td>0.776</td><td>15</td><td>0.704</td><td>12</td><td>0.917</td><td>4 2</td><td>0.855</td><td>6 30</td></tr></table>
|
| 192 |
+
|
| 193 |
+
# 5 RELATED WORK
|
| 194 |
+
|
| 195 |
+
Oversmoothing in GNNs: Li et al. (2018) was the first to call attention to the oversmoothing problem. Xu et al. (2018) introduced Jumping Knowledge Networks, which employ skip connections for multi-hop message passing and also enable different neighborhood ranges. Klicpera et al. (2019) proposed a propagation scheme based on personalized Pagerank that ensures locality (via teleports) which in turn prevents oversmoothing. Li et al. (2019) built on ideas from ResNet to use residual as well as dense connections to train deep GCNs. DropEdge Rong et al. (2019) proposed to alleviate oversmoothing through message passing reduction via removing a certain fraction of edges at random from the input graph. These are all specialized solutions that introduce additional parameters and/or a different network architecture.
|
| 196 |
+
|
| 197 |
+
Normalization Schemes for Deep-NNs: There exist various normalization schemes proposed for deep neural networks, including batch normalization Ioffe & Szegedy (2015), weight normalization Salimans & Kingma (2016), layer normalization Ba et al. (2016), and so on. Conceptually these have substantially different goals (e.g., reducing training time), and were not proposed for graph neural networks nor the oversmoothing problem therein. Important difference to note is that larger depth in regular neural-nets does not translate to more hops of propagation on a graph structure.
|
| 198 |
+
|
| 199 |
+
# 6 CONCLUSION
|
| 200 |
+
|
| 201 |
+
We investigated the oversmoothing problem in GNNs and proposed PAIRNORM, a novel normalization layer that boosts the robustness of deep GNNs against oversmoothing. PAIRNORM is fast to compute, requires no change in network architecture nor any extra parameters, and can be applied to any GNN. Experiments on real-world classification tasks showed the effectiveness of PAIRNORM, where it provides performance gains when the task benefits from more layers. Future work will explore other use cases of deeper GNNs that could further showcase PAIRNORM’s advantages.
|
| 202 |
+
|
| 203 |
+
# REFERENCES
|
| 204 |
+
|
| 205 |
+
Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. CoRR, abs/1607.06450, 2016.
|
| 206 |
+
|
| 207 |
+
Olivier Chapelle, Bernhard Scholkopf, and Alexander Zien. ¨ Semi-Supervised Learning. 2006.
|
| 208 |
+
|
| 209 |
+
William L. Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. In NIPS, pp. 1024–1034, 2017.
|
| 210 |
+
|
| 211 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep Residual Learning for Image Recognition. In Proceedings of 2016 IEEE Conference on Computer Vision and Pattern Recognition, pp. 770–778. IEEE, 2016.
|
| 212 |
+
|
| 213 |
+
Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. CoRR, abs/1502.03167, 2015.
|
| 214 |
+
|
| 215 |
+
Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In International Conference on Learning Representations (ICLR). OpenReview.net, 2017.
|
| 216 |
+
|
| 217 |
+
Johannes Klicpera, Aleksandar Bojchevski, and Stephan Gunnemann. Combining neural networks ¨ with personalized pagerank for classification on graphs. In International Conference on Learning Representations (ICLR), 2019.
|
| 218 |
+
|
| 219 |
+
Guohao Li, Matthias Muller, Ali Thabet, and Bernard Ghanem. Can GCNs go as deep as CNNs? ¨ CoRR, abs/1904.03751, 2019.
|
| 220 |
+
|
| 221 |
+
Qimai Li, Zhichao Han, and Xiao-Ming Wu. Deeper Insights into Graph Convolutional Networks for Semi-Supervised Learning. In Proceedings of the 32nd AAAI Conference on Artificial Intelligence, pp. 3538–3545, 2018.
|
| 222 |
+
|
| 223 |
+
Hoang NT and Takanori Maehara. Revisiting graph neural networks: All we have is low-pass filters. CoRR, abs/1905.09550, 2019.
|
| 224 |
+
|
| 225 |
+
Meng Qu, Yoshua Bengio, and Jian Tang. Gmnn: Graph markov neural networks. In International Conference on Machine Learning, pp. 5241–5250, 2019.
|
| 226 |
+
|
| 227 |
+
Yu Rong, Wenbing Huang, Tingyang Xu, and Junzhou Huang. The truly deep graph convolutional networks for node classification. CoRR, abs/1907.10903, 2019.
|
| 228 |
+
|
| 229 |
+
Tim Salimans and Durk P Kingma. Weight normalization: A simple reparameterization to accelerate training of deep neural networks. In Advances in Neural Information Processing Systems, pp. 901–909, 2016.
|
| 230 |
+
|
| 231 |
+
Prithviraj Sen, Galileo Namata, Mustafa Bilgic, Lise Getoor, Brian Galligher, and Tina Eliassi-Rad. Collective classification in network data. AI magazine, 29(3):93–93, 2008.
|
| 232 |
+
|
| 233 |
+
Oleksandr Shchur, Maximilian Mumme, Aleksandar Bojchevski, and Stephan Gunnemann. Pitfalls ¨ of graph neural network evaluation. arXiv preprint arXiv:1811.05868, 2018.
|
| 234 |
+
|
| 235 |
+
Petar Velickovic, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Li, and Yoshua Bengio. Graph attention networks. In International Conference on Learning Representations (ICLR). OpenReview.net, 2018.
|
| 236 |
+
|
| 237 |
+
Felix Wu, Amauri H. Souza Jr., Tianyi Zhang, Christopher Fifty, Tao Yu, and Kilian Q. Weinberger. Simplifying graph convolutional networks. In ICML, volume 97 of Proceedings of Machine Learning Research, pp. 6861–6871. PMLR, 2019.
|
| 238 |
+
|
| 239 |
+
Keyulu Xu, Chengtao Li, Yonglong Tian, Tomohiro Sonobe, Ken-ichi Kawarabayashi, and Stefanie Jegelka. Representation Learning on Graphs with Jumping Knowledge Networks. In Proceedings of the 35th International Conference on Machine Learning, volume 80, pp. 5453–5462, 2018.
|
| 240 |
+
|
| 241 |
+
# A APPENDIX
|
| 242 |
+
|
| 243 |
+
A.1 DERIVATION OF EQ. 8
|
| 244 |
+
|
| 245 |
+
$$
|
| 246 |
+
\begin{array} { l } { { \displaystyle \mathrm { T P S D } ( \widetilde { \mathbf { X } } ) = \sum _ { i , j \in [ n ] } \big \| \widetilde { \mathbf { x } } _ { i } - \widetilde { \mathbf { x } } _ { j } \big \| _ { 2 } ^ { 2 } = \sum _ { i , j \in [ n ] } \big ( \widetilde { \mathbf { x } } _ { i } - \widetilde { \mathbf { x } } _ { j } \big ) ^ { T } ( \widetilde { \mathbf { x } } _ { i } - \mathbf { y } ) } } \\ { { \displaystyle = \sum _ { i , j \in [ n ] } \big ( \widetilde { \mathbf { x } } _ { i } ^ { T } \widetilde { \mathbf { x } } _ { j } + \widetilde { \mathbf { x } } _ { j } ^ { T } \widetilde { \mathbf { x } } _ { j } - 2 \widetilde { \mathbf { x } } _ { i } ^ { T } \widetilde { \mathbf { x } } _ { j } \big ) } } \\ { { \displaystyle = 2 n \sum _ { i } \sum _ { j \in [ n ] } \widetilde { \mathbf { x } } _ { i } ^ { T } \widetilde { \mathbf { x } } _ { i } - 2 \sum _ { j \in [ n ] } \widetilde { \mathbf { x } } _ { i } ^ { T } \widetilde { \mathbf { x } } _ { j } } } \\ { { \displaystyle \quad = 2 n \sum _ { i } \sum _ { j \in [ n ] } \widetilde { \mathbf { x } } _ { i } \widetilde { \mathbf { x } } _ { i } - 2 \sum _ { i } \sum _ { j \in [ n ] } \widetilde { \mathbf { x } } _ { i } ^ { T } \widetilde { \mathbf { x } } _ { j } } } \\ { { \displaystyle \qquad \quad = 2 n \sum _ { i \in [ n ] } \big \| \widetilde { \mathbf { x } } _ { i } \big \| _ { 2 } ^ { 2 } - 2 1 ^ { T } \widetilde { \mathbf { x } } \widetilde { \mathbf { x } } ^ { T } \widetilde { \mathbf { 1 } } } } \\ { { \displaystyle \qquad \quad = 2 n \sum _ { i \in [ n ] } \big \| \widetilde { \mathbf { x } } _ { i } \big \| _ { 2 } ^ { 2 } - 2 \big \| \mathbf { 1 } ^ { T } \widetilde { \mathbf { x } } _ { i } \big \| _ { 2 } ^ { 2 } } } \\ { { \displaystyle \qquad \quad = 2 n \Big ( \Big \frac { 1 } { n } \sum _ { i = [ n ] } ^ { n } \big \| \widetilde { \mathbf { x } } _ { i } \big \| _ { 2 } ^ { 2 } - \big \| \widetilde { \mathbf { x } } _ { i } ^ { n } \big \| _ { 2 } ^ { 2 } } } \\ \displaystyle \qquad = 2 n ^ { 2 } \ \end{array}
|
| 247 |
+
$$
|
| 248 |
+
|
| 249 |
+
# A.2 DATASET STATISTICS
|
| 250 |
+
|
| 251 |
+
Table 4: Dataset statistics.
|
| 252 |
+
A.3 ADDITIONAL PERFORMANCE PLOTS WITH INCREASING NUMBER OF LAYERS
|
| 253 |
+
|
| 254 |
+
<table><tr><td>Name</td><td>#Nodes</td><td>#Edges</td><td>#Features</td><td></td><td>#Classes Label Rate</td></tr><tr><td>Cora</td><td>2708</td><td>5429</td><td>1433</td><td>7</td><td>0.052</td></tr><tr><td>Citeseer</td><td>3327</td><td>4732</td><td>3703</td><td>6</td><td>0.036</td></tr><tr><td>Pubmed</td><td>19717</td><td>44338</td><td>500</td><td>3</td><td>0.003</td></tr><tr><td>CoauthorCs</td><td>18333</td><td>81894</td><td>6805</td><td>15</td><td>0.030</td></tr></table>
|
| 255 |
+
|
| 256 |
+

|
| 257 |
+
Figure 5: Comparison of ‘vanilla’ vs. PAIRNORM-enhanced SGC, corresponding to Figure 1, for datasets (from top to bottom) Citeseer, Pubmed, and CoauthorCS. PAIRNORM provides improved robustness to performance decay due to oversmoothing with increasing number of layers.
|
| 258 |
+
|
| 259 |
+

|
| 260 |
+
Figure 6: Comparison of ‘vanilla’ (dashed) vs. PAIRNORM-enhanced (solid) GCN (left) and GAT (right) models, corresponding to Figure 3, for datasets (from top to bottom) Citeseer, Pubmed, and CoauthorCS. PAIRNORM provides improved robustness against performance decay with increasing number of layers.
|
| 261 |
+
|
| 262 |
+

|
| 263 |
+
A.4 ADDITIONAL PERFORMANCE PLOTS WITH INCREASING NUMBER OF LAYERS UNDER SSNC-MV WITH $p = 1$
|
| 264 |
+
Figure 7: Comparison of ‘vanilla’ (dashed) vs. PAIRNORM-enhanced (solid) (from left to right) SGC, GCN, and GAT model performance under SSNC-MV for $p = 1$ , corresponding to Figure 4, for datasets (from top to bottom) Citeseer, Pubmed, and CoauthorCS. Green diamond symbols depict the layer at which validation accuracy peaks. PAIRNORM boosts overall performance by enabling more robust deep GNNs.
|
| 265 |
+
|
| 266 |
+
# A.5 ADDITIONAL EXPERIMENTS UNDER SSNC-MV WITH INCREASING MISSING FRACTION $p$
|
| 267 |
+
|
| 268 |
+
In this section we report additional experiment results under the SSNC-MV setting with varying missing fraction, in particular $p = \{ 0 . \bar { 7 } , 0 . 8 , 0 . 9 , 1 \}$ and also report the base case where $p = 0$ for comparison.
|
| 269 |
+
|
| 270 |
+
Figure 8 presents results on all four datasets for GCN vs. PAIRNORM-enhanced GCN (denoted PN for short). The models without any skip connections are denoted by $^ { * } { } _ { - 0 }$ , with one-hop skip connection by $^ { * } { } ^ { 1 }$ , and with one and two-hop skip connections by $^ { * } { } _ { - 2 }$ . Barcharts on the right report the best layer that each model produced the highest validation accuracy, and those on the left report the corresponding test accuracy. Figure 9 presents corresponding results for GAT.
|
| 271 |
+
|
| 272 |
+
We discuss the take-aways from these figures on the following page.
|
| 273 |
+
|
| 274 |
+

|
| 275 |
+
Figure 8: Supplementary results to Table 2 for GCN on (from top to bottom) Cora, Citeseer, Pubmed, and CoauthorCS.
|
| 276 |
+
|
| 277 |
+
We make the following observations based on Figures 8 and 9:
|
| 278 |
+
|
| 279 |
+
• Performance of ‘vanilla’ GCN and GAT models without skip connections (i.e., GCN-0 and GAT-0) drop monotonically as we increase missing fraction $p$ .
|
| 280 |
+
• PAIRNORM-enhanced ‘vanilla’ models (PN-0, no skips) perform comparably or better than GCN-0 and GAT-0 in all cases, especially as $p$ increases. In other words, with PAIRNORM at work, model performance is more robust against missing data. Best number of layers for GCN-0 as we increase $p$ only changes between 2-4. For GAT-0, it changes mostly between 2-6.
|
| 281 |
+
• PAIRNORM-enhanced ‘vanilla’ models (PN-0, no skips) can go deeper, i.e., they can leverage a larger range of #layers (2-12) as we increase $p$ . Specifically, GCN-PN-0 (GAT-PN-0) uses equal number or more layers than GCN-0 (GAT-0) in almost all cases. Without any normalization, adding skip connections helps—GCN/GAT-1 and GCN/GAT-2 are better than GCN/GAT-0, especially as we increase $p$ .
|
| 282 |
+
• With PAIRNORM but no-skip, performance is comparable or better than just adding skips.
|
| 283 |
+
• Adding skips on top of PAIRNORM does not seem to introduce any notable gains.
|
| 284 |
+
|
| 285 |
+
In summary, simply employing our PAIRNORM for GCN and GAT provides robustness against oversmoothing that allows them to go deeper and achieve improved performance under SSNC-MV.
|
| 286 |
+
|
| 287 |
+

|
| 288 |
+
Figure 9: Supplementary results to Table 3 for GAT on (from top to bottom) Cora, Citeseer, Pubmed, and CoauthorCS.
|
| 289 |
+
|
| 290 |
+
A.6 CASE STUDY: ADDITIONAL MEASURES FOR PAIRNORM AND PAIRNORM-SI WITH SGC AND GCN
|
| 291 |
+
|
| 292 |
+
To better understand why PAIRNORM and PAIRNORM-SI are helpful for training deep GNNs, we report additional measures for (SGC and GCN) with (PAIRNORM and PAIRNORM-SI) over the Cora dataset. In the main text, we claim TPSD (total pairwise squared distances) is constant across layers for SGC with PAIRNORM (for GCN/GAT this is not guaranteed because of the influence of activation function and dropout layer). In this section we empirically measure pairwise (squared) distances for both SGC and GCN, with PAIRNORM and PAIRNORM-SI.
|
| 293 |
+
|
| 294 |
+
# A.6.1 SGC WITH PAIRNORM AND PAIRNORM-SI
|
| 295 |
+
|
| 296 |
+
To verify our analysis of PAIRNORM for SGC, and understand how the variant of PAIRNORM (PAIRNORM-SI) works, we measure the average pairwise squared distance (APSD) as well as the average pairwise distance (APD) between the representations for two categories of node pairs: (1) connected pairs (nodes that are directly connected in graph) and (2) random pairs (uniformly randomly chosen among the node set). APSD of random pairs reflects the TPSD, and APD of random pairs reflects the total pairwise distance (TPD). Under the homophily assumption of the labels w.r.t. the graph structure, we want APD or APSD of connected pairs to be small while keeping APD or APSD of random pairs relatively large.
|
| 297 |
+
|
| 298 |
+
The results are shown in Figure 10. Without normalization, SGC suffers from fast diminishing APD and APSD of random pairs. As we have proved, PAIRNORM normalizes APSD to be constant across layers, however it does not normalize APD, which appears to decrease linearly with increasing number of layers. Surprisingly, although PAIRNORM-SI is not theoretically proved to have a constant APSD and APD, empirically it achieves more stable APSD and APD than PAIRNORM. We were not able to prove this phenomenon mathematically, and leave it for further investigation.
|
| 299 |
+
|
| 300 |
+

|
| 301 |
+
Figure 10: Measuring average distance (squared and not-squared) between representations at each layer for SGC, SGC with PAIRNORM, and SGC with PAIRNORM-SI. The setting is the same with Figure 1 and they share the same performance.
|
| 302 |
+
|
| 303 |
+
APD does not capture the full information of the distribution of pairwise distances. To show how the distribution changes by increasing number of layers, we use Tensorboard to plot the histograms of pairwise distances, as shown in Figure 11. Comparing SGC and SGC with PAIRNORM, adding PAIRNORM keeps the left shift (shrinkage) of the distribution of random pair distances much slower than without normalization, while still sharing similar behavior of the distribution of connected pairwise distances. PAIRNORM-SI seems to be more powerful in keeping the median and mean of the distribution of random pair distances stable, while “spreading” the distribution out by increasing the variance. The performance of PAIRNORM and PAIRNORM-SI are similar, however it seems that PAIRNORM-SI is more powerful in stabilizing TPD and TPSD.
|
| 304 |
+
|
| 305 |
+

|
| 306 |
+
Figure 11: Measuring distribution of distances between representations at each layer for SGC, SGC with PAIRNORM, and SGC with PAIRNORM-SI. Supplementary results for Figure 10.
|
| 307 |
+
|
| 308 |
+
# A.6.2 GCN WITH PAIRNORM AND PAIRNORM-SI
|
| 309 |
+
|
| 310 |
+

|
| 311 |
+
Figure 12: Measuring average distance (squared and not-squared) between representations at each layer for GCN, GCN with PAIRNORM, and GCN with PAIRNORM-SI. We trained three 12-layer GCNs with #hidden ${ \boldsymbol { \mathrm { \Omega } } } = 1 2 8$ and dropout $_ { = 0 . 6 }$ in 1000 epochs. Respective test set accuracies are $3 1 . 0 9 \%$ , $7 7 . 7 7 \%$ , $7 5 . 0 9 \%$ . Note that the scale of distances is not comparable across models, since they have learnable parameters that scale these distances differently.
|
| 312 |
+
|
| 313 |
+
The formal analysis for PAIRNORM and PAIRNORM-SI is based on SGC. GCN (and other GNNs) has learnable parameters, dropout layers, and activation layers, all of which complicate direct mathematical analyses. Here we perform similar empirical measurements for pairwise distances to get a rough sense of how PAIRNORM and PAIRNORM-SI work with GCN based on the Cora dataset. Figures 12 and 13 demonstrate how PAIRNORM and PAIRNORM-SI can help train a relatively deep (12 layers) GCN.
|
| 314 |
+
|
| 315 |
+
Notice that oversmoothing occurs very quickly for GCN without any normalization, where both connected and random pair distances reach zero (!). In contrast, GCN with PAIRNORM or PAIRNORMSI is able to keep random pair distances relatively apart while allowing connected pair distances to shrink. As also stated in main text, using PAIRNORM-SI for GCN and GAT is relatively more stable than using PAIRNORM in general cases (notice the near-constant random pair distances in the rightmost subfigures). There are several possible explanations for why PAIRNORM-SI is more stable. First, as shown in Figure 10 and Figure 12, PAIRNORM-SI not only keeps APSD stable but also APD, further, the plots of distributions of pairwise distances (Figures 11 and 13) also show the power of PAIRNORM-SI (notice the large gap between smaller connected pairwise distances and the larger random pairwise distances). Second, we conjecture that restricting representations to reside on a sphere can make training stable and faster, which we also observe empirically by studying the training curves. Third, GCN and GAT tend to overfit easily for the SSNC problem, due to many learnable parameters across layers and limited labeled input data, therefore it is possible that adding more restriction on these models helps reduce overfitting.
|
| 316 |
+
|
| 317 |
+

|
| 318 |
+
Figure 13: Measuring distribution of distances between representations at each layer for GCN, GCN with PAIRNORM, and GCN with PAIRNORM-SI. Supplementary results for Figure 12.
|
| 319 |
+
|
| 320 |
+
All in all, these empirical measurements as illustrated throughout the figures in this section demonstrates that PAIRNORM and PAIRNORM-SI successfully address the oversmoothing problem for deep GNNs. Our work is the first to propose a normalization layer specifically designed for graph neural networks, which we hope will kick-start more work in this area toward training more robust and effective GNNs.
|
parse/train/rkecl1rtwB/rkecl1rtwB_content_list.json
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page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Lingxiao Zhao Carnegie Mellon University Pittsburgh, PA 15213, USA {lingxia1}@andrew.cmu.edu ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
145,
|
| 20 |
+
428,
|
| 21 |
+
202
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Leman Akoglu Carnegie Mellon University Pittsburgh, PA 15213, USA {lakoglu}@andrew.cmu.edu ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
511,
|
| 30 |
+
145,
|
| 31 |
+
745,
|
| 32 |
+
202
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "ABSTRACT ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
454,
|
| 42 |
+
238,
|
| 43 |
+
544,
|
| 44 |
+
252
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "The performance of graph neural nets (GNNs) is known to gradually decrease with increasing number of layers. This decay is partly attributed to oversmoothing, where repeated graph convolutions eventually make node embeddings indistinguishable. We take a closer look at two different interpretations, aiming to quantify oversmoothing. Our main contribution is PAIRNORM, a novel normalization layer that is based on a careful analysis of the graph convolution operator, which prevents all node embeddings from becoming too similar. What is more, PAIRNORM is fast, easy to implement without any change to network architecture nor any additional parameters, and is broadly applicable to any GNN. Experiments on real-world graphs demonstrate that PAIRNORM makes deeper GCN, GAT, and SGC models more robust against oversmoothing, and significantly boosts performance for a new problem setting that benefits from deeper GNNs. Code is available at https://github.com/LingxiaoShawn/PairNorm. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
273,
|
| 54 |
+
764,
|
| 55 |
+
454
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 INTRODUCTION ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
176,
|
| 65 |
+
482,
|
| 66 |
+
336,
|
| 67 |
+
497
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Graph neural networks (GNNs) is a family of neural networks that can learn from graph structured data. Starting with the success of GCN (Kipf & Welling, 2017) on achieving state-of-the-art performance on semi-supervised classification, several variants of GNNs have been developed for this task; including GraphSAGE (Hamilton et al., 2017), GAT (Velickovic et al., 2018), SGC (Wu et al., 2019), and GMNN (Qu et al., 2019) to name a few most recent ones. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
513,
|
| 77 |
+
825,
|
| 78 |
+
582
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "A key issue with GNNs is their depth limitations. It has been observed that deeply stacking the layers often results in significant drops in performance for GNNs, such as GCN and GAT, even beyond just a few (2–4) layers. This drop is associated with a number of factors; including the vanishing gradients in back-propagation, overfitting due to the increasing number of parameters, as well as the phenomenon called oversmoothing. Li et al. (2018) was the first to call attention to the oversmoothing problem. Having shown that the graph convolution is a type of Laplacian smoothing, they proved that after repeatedly applying Laplacian smoothing many times, the features of the nodes in the (connected) graph would converge to similar values—the issue coined as “oversmoothing”. In effect, oversmoothing hurts classification performance by causing the node representations to be indistinguishable across different classes. Later, several others have alluded to the same problem (Xu et al., 2018; Klicpera et al., 2019; Rong et al., 2019; Li et al., 2019) (See §5 Related Work). ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
589,
|
| 88 |
+
825,
|
| 89 |
+
742
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "In this work, we address the oversmoothing problem in deep GNNs. Specifically, we propose (to the best of our knowledge) the first normalization layer for GNNs that is applied in-between intermediate layers during training. Our normalization has the effect of preventing the output features of distant nodes to be too similar or indistinguishable, while at the same time allowing those of connected nodes in the same cluster become more similar. We summarize our main contributions as follows. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
176,
|
| 98 |
+
750,
|
| 99 |
+
825,
|
| 100 |
+
819
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "• Normalization to Tackle Oversmoothing in GNNs: We introduce a normalization scheme, called PAIRNORM, that makes GNNs significantly more robust to oversmoothing and as a result enables the training of deeper models without sacrificing performance. Our proposed scheme capitalizes on the understanding that most GNNs perform a special form of Laplacian smoothing, which makes node features more similar to one another. The key idea is to ensure that the total pairwise feature distances remains a constant across layers, which in turn leads to distant pairs having less similar features, preventing feature mixing across clusters. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
191,
|
| 109 |
+
827,
|
| 110 |
+
823,
|
| 111 |
+
924
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "• Speed and Generality: PAIRNORM is very straightforward to implement and introduces no additional parameters. It is simply applied to the output features of each layer (except the last one) consisting of simple operations, in particular centering and scaling, that are linear in the input size. Being a simple normalization step between layers, PAIRNORM is not specific to any particular GNN but rather applies broadly. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
191,
|
| 120 |
+
103,
|
| 121 |
+
825,
|
| 122 |
+
172
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "• Use Case for Deeper GNNs: While PAIRNORM prevents performance from dropping significantly with increasing number of layers, it does not necessarily yield increased performance in absolute terms. We find that this is because shallow architectures with no more than 2–4 layers is sufficient for the often-used benchmark datasets in the literature. In response, we motivate a real-world scenario wherein a notable portion of the nodes have no feature vectors. In such settings, nodes benefit from a larger range (i.e., neighborhood, hence a deeper GNN) to “recover” effective feature representations. Through extensive experiments, we show that GNNs employing our PAIRNORM significantly outperform the ‘vanilla’ GNNs when deeper models are beneficial to the classification task. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
191,
|
| 131 |
+
174,
|
| 132 |
+
825,
|
| 133 |
+
299
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "2 UNDERSTANDING OVERSMOOTHING ",
|
| 140 |
+
"text_level": 1,
|
| 141 |
+
"bbox": [
|
| 142 |
+
174,
|
| 143 |
+
314,
|
| 144 |
+
509,
|
| 145 |
+
330
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "In this work, we consider the semi-supervised node classification (SSNC) problem on a graph. In the general setting, a graph $\\mathcal { G } = ( \\nu , \\mathcal { E } , \\mathbf { X } )$ is given in which each node $i \\in \\mathcal V$ is associated with a feature vector $\\mathbf { x } _ { i } \\in \\mathbb { R } ^ { \\breve { d } }$ where $\\mathbf { X } = [ \\mathbf { x } _ { 1 } , \\ldots , \\mathbf { x } _ { n } ] ^ { T }$ denotes the feature matrix, and a subset $\\nu _ { l } \\subset \\nu$ of the nodes are labeled, i.e. $y _ { i } \\in \\{ 1 , \\ldots , c \\}$ for each $i \\in \\mathcal { V } _ { l }$ where $c$ is the number of classes. Let $\\mathbf { A } \\in \\mathbb { R } ^ { n \\times n }$ be the adjacency matrix and $\\mathbf { D } = \\mathrm { d i a g } ( d e g _ { 1 } , \\dots , d e g _ { n } ) \\in \\mathbb { R } ^ { n \\times n }$ be the degree matrix of $\\mathcal { G }$ . Let $\\tilde { \\mathbf { A } } = \\mathbf { A } + \\mathbf { I }$ and $\\tilde { \\mathbf { D } } = \\mathbf { D } + \\mathbf { I }$ denote the augmented adjacency and degree matrices with added self-loops on all nodes, respectively. Let $\\tilde { \\mathbf { A } } _ { \\mathrm { s y m } } = \\tilde { \\mathbf { D } } ^ { - 1 / 2 } \\tilde { \\mathbf { A } } \\tilde { \\mathbf { D } } ^ { - 1 / 2 }$ and $\\tilde { \\mathbf { A } } _ { \\mathrm { r w } } = \\tilde { \\mathbf { D } } ^ { - 1 } \\tilde { \\mathbf { A } }$ denote symmetrically and nonsymmetrically normalized adjacency matrices with self-loops. ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
173,
|
| 154 |
+
344,
|
| 155 |
+
825,
|
| 156 |
+
462
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "The task is to learn a hypothesis that predicts $y _ { i }$ from $\\mathbf { x } _ { i }$ that generalizes to the unlabeled nodes $\\mathcal { V } _ { u } = \\mathcal { V } \\backslash \\mathcal { V } _ { l }$ . In Section 3.2, we introduce a variant of this setting where only a subset $\\mathcal { F } \\subset \\mathcal { V }$ of the nodes have feature vectors and the rest are missing. ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
174,
|
| 165 |
+
468,
|
| 166 |
+
825,
|
| 167 |
+
511
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "2.1 THE OVERSMOOTHING PROBLEM ",
|
| 174 |
+
"text_level": 1,
|
| 175 |
+
"bbox": [
|
| 176 |
+
174,
|
| 177 |
+
517,
|
| 178 |
+
446,
|
| 179 |
+
532
|
| 180 |
+
],
|
| 181 |
+
"page_idx": 1
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"type": "text",
|
| 185 |
+
"text": "Although GNNs like GCN and GAT achieve state-of-the-art results in a variety of graph-based tasks, these models are not very well-understood, especially why they work for the SSNC problem where only a small amount of training data is available. The success appears to be limited to shallow GNNs, where the performance gradually decreases with the increasing number of layers. This decrease is often attributed to three contributing factors: (1) overfitting due to increasing number of parameters, (2) difficulty of training due to vanishing gradients, and (3) oversmoothing due to many graph convolutions. ",
|
| 186 |
+
"bbox": [
|
| 187 |
+
174,
|
| 188 |
+
539,
|
| 189 |
+
825,
|
| 190 |
+
636
|
| 191 |
+
],
|
| 192 |
+
"page_idx": 1
|
| 193 |
+
},
|
| 194 |
+
{
|
| 195 |
+
"type": "text",
|
| 196 |
+
"text": "Among these, perhaps the least understood one is oversmoothing, which indeed lacks a formal definition. In their analysis of GCN’s working mechanism, Li et al. (2018) showed that the graph convolution of GCN is a special form of Laplacian smoothing. The standard form being $( { \\bf I } - \\gamma { \\bf I } ) { \\bf X } +$ $\\gamma \\tilde { \\mathbf { A } } _ { \\mathrm { r w } } \\mathbf { X }$ , the graph convolution lets $\\gamma = 1$ and uses the symmetrically normalized Laplacian to obtain $\\begin{array} { r } { \\tilde { \\mathbf { X } } = \\bar { \\hat { \\mathbf { A } } } _ { \\mathrm { s y m } } \\mathbf { \\bar { X } } } \\end{array}$ , where the new features $\\tilde { \\bf x }$ of a node is the weighted average of its own and its neighbors’ features. This smoothing allows the node representations within the same cluster become more similar, and in turn helps improve SSNC performance under the cluster assumption (Chapelle et al., 2006). However when GCN goes deep, the performance can suffer from oversmoothing where node representations from different clusters become mixed up. Let us refer to this issue of node representations becoming too similar as node-wise oversmoothing. ",
|
| 197 |
+
"bbox": [
|
| 198 |
+
173,
|
| 199 |
+
642,
|
| 200 |
+
825,
|
| 201 |
+
787
|
| 202 |
+
],
|
| 203 |
+
"page_idx": 1
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"type": "text",
|
| 207 |
+
"text": "Another way of thinking about oversmoothing is as follows. Repeatedly applying Laplacian smoothing too many times would drive node features to a stationary point, washing away all the information from these features. Let $\\mathbf { x } _ { \\cdot j } \\in \\mathbb { R } ^ { n }$ denote the $j$ -th column of $\\mathbf { X }$ . Then, for any $\\mathbf { x } _ { \\cdot j } \\in \\mathbb { R } ^ { n }$ : ",
|
| 208 |
+
"bbox": [
|
| 209 |
+
174,
|
| 210 |
+
792,
|
| 211 |
+
825,
|
| 212 |
+
835
|
| 213 |
+
],
|
| 214 |
+
"page_idx": 1
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"type": "equation",
|
| 218 |
+
"img_path": "images/82388152ad6519e68a07230dd3707974febc877ac192a824baf9567b82009667.jpg",
|
| 219 |
+
"text": "$$\n\\operatorname* { l i m } _ { k \\to \\infty } \\tilde { \\mathbf { A } } _ { \\mathrm { s y m } } ^ { k } \\mathbf { x } _ { \\cdot j } = \\pi _ { j } \\quad \\mathrm { a n d } \\quad \\frac { \\pi _ { j } } { \\| \\pi _ { j } \\| _ { 1 } } = \\pi \\ ,\n$$",
|
| 220 |
+
"text_format": "latex",
|
| 221 |
+
"bbox": [
|
| 222 |
+
362,
|
| 223 |
+
835,
|
| 224 |
+
635,
|
| 225 |
+
866
|
| 226 |
+
],
|
| 227 |
+
"page_idx": 1
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"type": "text",
|
| 231 |
+
"text": "where the normalized solution $\\pi \\in \\mathbb { R } ^ { n }$ satisfies $\\begin{array} { r } { \\pi _ { i } = \\frac { \\sqrt { d e g _ { i } } } { \\sum _ { i } \\sqrt { d e g _ { i } } } } \\end{array}$ for all $i \\in [ n ]$ . Notice that $\\pi$ is independent of the values $\\mathbf { x } _ { \\cdot j }$ of the input feature and is only a function of the graph structure (i.e., degree). In other words, (Laplacian) oversmoothing washes away the signal from all the features, making them indistinguishable. We will refer to this viewpoint as feature-wise oversmoothing. ",
|
| 232 |
+
"bbox": [
|
| 233 |
+
176,
|
| 234 |
+
875,
|
| 235 |
+
825,
|
| 236 |
+
910
|
| 237 |
+
],
|
| 238 |
+
"page_idx": 1
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"type": "text",
|
| 242 |
+
"text": "",
|
| 243 |
+
"bbox": [
|
| 244 |
+
169,
|
| 245 |
+
103,
|
| 246 |
+
823,
|
| 247 |
+
132
|
| 248 |
+
],
|
| 249 |
+
"page_idx": 2
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"type": "text",
|
| 253 |
+
"text": "To this end we propose two measures, row-diff and col-diff, to quantify these two types of oversmoothing. Let $\\bar { \\mathbf { H } } ^ { ( k ) } \\in \\mathbb { R } ^ { n \\times d }$ be the representation matrix after $k$ graph convolutions, i.e. $\\mathbf { H } ^ { ( k ) } = \\tilde { \\mathbf { A } } _ { \\mathrm { s y m } } ^ { k } \\mathbf { X }$ . Let $\\mathbf { h } _ { i } ^ { ( k ) } \\in \\mathbb { R } ^ { d }$ be the $i$ -th row of $\\mathbf { H } ^ { ( k ) }$ and $\\mathbf { h } _ { . i } ^ { ( k ) } \\in \\mathbb { R } ^ { n }$ be the $i$ -th column of $\\mathbf { H } ^ { ( k ) }$ . Then we define row-diff $( \\mathbf { H } ^ { ( k ) } )$ and col-diff $( \\mathbf { H } ^ { ( k ) } )$ as follows. ",
|
| 254 |
+
"bbox": [
|
| 255 |
+
174,
|
| 256 |
+
138,
|
| 257 |
+
825,
|
| 258 |
+
203
|
| 259 |
+
],
|
| 260 |
+
"page_idx": 2
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"type": "equation",
|
| 264 |
+
"img_path": "images/4ac3ac188c096d869ba243d4d81d9eb52cd305151ece77e2a43a7b96d38fc034.jpg",
|
| 265 |
+
"text": "$$\n\\mathrm { r o w } \\mathrm { - } \\mathrm { d i f f } ( { \\bf H } ^ { ( k ) } ) = \\frac { 1 } { n ^ { 2 } } \\sum _ { i , j \\in [ n ] } \\left\\| { \\bf h } _ { i } ^ { ( k ) } - { \\bf h } _ { j } ^ { ( k ) } \\right\\| _ { 2 }\n$$",
|
| 266 |
+
"text_format": "latex",
|
| 267 |
+
"bbox": [
|
| 268 |
+
292,
|
| 269 |
+
202,
|
| 270 |
+
584,
|
| 271 |
+
241
|
| 272 |
+
],
|
| 273 |
+
"page_idx": 2
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"type": "equation",
|
| 277 |
+
"img_path": "images/60e9c600e4adcd475295d645a0d56b1edc2bfa3b47644af825bd88bb321d812e.jpg",
|
| 278 |
+
"text": "$$\n\\mathrm { c o l - d i f f } ( \\mathbf { H } ^ { ( k ) } ) = \\frac { 1 } { d ^ { 2 } } \\sum _ { i , j \\in [ d ] } \\left\\| \\mathbf { h } _ { \\cdot i } ^ { ( k ) } / \\| \\mathbf { h } _ { \\cdot i } ^ { ( k ) } \\| _ { 1 } - \\mathbf { h } _ { \\cdot j } ^ { ( k ) } / \\| \\mathbf { h } _ { \\cdot j } ^ { ( k ) } \\| _ { 1 } \\right\\| _ { 2 }\n$$",
|
| 279 |
+
"text_format": "latex",
|
| 280 |
+
"bbox": [
|
| 281 |
+
299,
|
| 282 |
+
243,
|
| 283 |
+
702,
|
| 284 |
+
281
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 2
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "text",
|
| 290 |
+
"text": "The row-diff measure is the average of all pairwise distances between the node features (i.e., rows of the representation matrix) and quantifies node-wise oversmoothing, whereas col-diff is the average of pairwise distances between $L _ { 1 }$ -normalized1) columns of the representation matrix and quantifies feature-wise oversmoothing. ",
|
| 291 |
+
"bbox": [
|
| 292 |
+
174,
|
| 293 |
+
281,
|
| 294 |
+
825,
|
| 295 |
+
337
|
| 296 |
+
],
|
| 297 |
+
"page_idx": 2
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"type": "text",
|
| 301 |
+
"text": "2.2 STUDYING OVERSMOOTHING WITH SGC ",
|
| 302 |
+
"text_level": 1,
|
| 303 |
+
"bbox": [
|
| 304 |
+
176,
|
| 305 |
+
343,
|
| 306 |
+
498,
|
| 307 |
+
358
|
| 308 |
+
],
|
| 309 |
+
"page_idx": 2
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"type": "text",
|
| 313 |
+
"text": "Although oversmoothing can be a cause of performance drop with increasing number of layers in GCN, adding more layers also leads to more parameters (due to learned linear projections $\\mathbf { W } ^ { ( k ) }$ at each layer $k$ ) which magnify the potential of overfitting. Furthermore, deeper models also make the training harder as backpropagation suffers from vanishing gradients. ",
|
| 314 |
+
"bbox": [
|
| 315 |
+
174,
|
| 316 |
+
364,
|
| 317 |
+
825,
|
| 318 |
+
422
|
| 319 |
+
],
|
| 320 |
+
"page_idx": 2
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"type": "text",
|
| 324 |
+
"text": "In order to decouple the effect of oversmoothing from these other two factors, we study the oversmoothing problem using the SGC model (Wu et al., 2019). (Results on other GNNs are presented in $\\ S 4 .$ ) SGC is simplified from GCN by removing all projection parameters of graph convolution layers and all nonlinear activations between layers. The estimation of SGC is simply written as: ",
|
| 325 |
+
"bbox": [
|
| 326 |
+
174,
|
| 327 |
+
429,
|
| 328 |
+
825,
|
| 329 |
+
484
|
| 330 |
+
],
|
| 331 |
+
"page_idx": 2
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"type": "equation",
|
| 335 |
+
"img_path": "images/3797d2d699baa795d9d26352d5119fdbe62352e177f850181808e4ed21ded221.jpg",
|
| 336 |
+
"text": "$$\n\\widehat { \\pmb { Y } } = \\mathrm { s o f t m a x } ( \\tilde { \\bf A } _ { \\mathrm { s y m } } ^ { K } \\pmb { X } \\pmb { W } )\n$$",
|
| 337 |
+
"text_format": "latex",
|
| 338 |
+
"bbox": [
|
| 339 |
+
406,
|
| 340 |
+
484,
|
| 341 |
+
591,
|
| 342 |
+
505
|
| 343 |
+
],
|
| 344 |
+
"page_idx": 2
|
| 345 |
+
},
|
| 346 |
+
{
|
| 347 |
+
"type": "text",
|
| 348 |
+
"text": "where $K$ is the number of graph convolutions, and $\\mathbf { W } \\in \\mathbb { R } ^ { d \\times c }$ denote the learnable parameters of a logistic regression classifier. ",
|
| 349 |
+
"bbox": [
|
| 350 |
+
174,
|
| 351 |
+
506,
|
| 352 |
+
823,
|
| 353 |
+
535
|
| 354 |
+
],
|
| 355 |
+
"page_idx": 2
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"type": "text",
|
| 359 |
+
"text": "Note that SGC has a fixed number of parameters that does not depend on the number of graph convolutions (i.e. layers). In effect, it is guarded against the influence of overfitting and vanishing gradient problem with more layers. This leaves us only with oversmoothing as a possible cause of performance degradation with increasing $K$ . Interestingly, the simplicity of SGC does not seem to be a sacrifice; it has been observed that it achieves similar or better accuracy in various relational classification tasks (Wu et al., 2019). ",
|
| 360 |
+
"bbox": [
|
| 361 |
+
173,
|
| 362 |
+
541,
|
| 363 |
+
825,
|
| 364 |
+
626
|
| 365 |
+
],
|
| 366 |
+
"page_idx": 2
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"type": "image",
|
| 370 |
+
"img_path": "images/e056fc17fa24311b801e0f4522c2a7c33f2c12d1537a95d34e7c694479f35e62.jpg",
|
| 371 |
+
"image_caption": [
|
| 372 |
+
"Figure 1: (best in color) SGC’s performance (dashed lines) with increasing graph convolutions $( K )$ on Cora dataset (train/val/test split is $3 \\% / 1 0 \\% / 8 7 \\% )$ ). For each $K$ , we train SGC in 500 epochs, save the model with the best validation accuracy, and report all measures based on the saved model. Measures row-diff and col-diff are computed based on the final layer representation of the saved model. (Solid lines depict after applying our method PAIRNORM, which we discuss in $\\ S 3 . 2 .$ ) "
|
| 373 |
+
],
|
| 374 |
+
"image_footnote": [],
|
| 375 |
+
"bbox": [
|
| 376 |
+
176,
|
| 377 |
+
638,
|
| 378 |
+
820,
|
| 379 |
+
734
|
| 380 |
+
],
|
| 381 |
+
"page_idx": 2
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"type": "text",
|
| 385 |
+
"text": "Dashed lines in Figure 1 illustrate the performance of SGC on the Cora dataset as we increase the number of layers $( K )$ . The training (cross-entropy) loss monotonically increases with larger $K$ , potentially because graph convolution mixes node representations with their neighbors’ and makes them less distinguishable (training becomes harder). On the other hand, graph convolutions (i.e., smoothing) improve generalization ability, reducing the gap between training and validation/test loss up to $K = 4$ , after which (over)smoothing begins to hurt performance. The row-diff and col-diff both continue decreasing monotonically with $K$ , providing supporting evidence for oversmoothing. ",
|
| 386 |
+
"bbox": [
|
| 387 |
+
174,
|
| 388 |
+
828,
|
| 389 |
+
825,
|
| 390 |
+
900
|
| 391 |
+
],
|
| 392 |
+
"page_idx": 2
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"type": "text",
|
| 396 |
+
"text": "",
|
| 397 |
+
"bbox": [
|
| 398 |
+
171,
|
| 399 |
+
103,
|
| 400 |
+
825,
|
| 401 |
+
133
|
| 402 |
+
],
|
| 403 |
+
"page_idx": 3
|
| 404 |
+
},
|
| 405 |
+
{
|
| 406 |
+
"type": "text",
|
| 407 |
+
"text": "3 TACKLING OVERSMOOTHING ",
|
| 408 |
+
"text_level": 1,
|
| 409 |
+
"bbox": [
|
| 410 |
+
176,
|
| 411 |
+
147,
|
| 412 |
+
449,
|
| 413 |
+
164
|
| 414 |
+
],
|
| 415 |
+
"page_idx": 3
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"type": "text",
|
| 419 |
+
"text": "3.1 PROPOSED PAIRNORM ",
|
| 420 |
+
"text_level": 1,
|
| 421 |
+
"bbox": [
|
| 422 |
+
174,
|
| 423 |
+
179,
|
| 424 |
+
372,
|
| 425 |
+
195
|
| 426 |
+
],
|
| 427 |
+
"page_idx": 3
|
| 428 |
+
},
|
| 429 |
+
{
|
| 430 |
+
"type": "text",
|
| 431 |
+
"text": "We start by establishing a connection between graph convolution and an optimization problem, that is graph-regularized least squares (GRLS), as shown by NT $\\&$ Maehara (2019). Let $\\bar { \\mathbf { X } } \\in \\mathbb { R } ^ { n \\times d }$ be a new node representation matrix, with $\\bar { \\mathbf { x } } _ { i } \\in \\mathbb { R } ^ { d }$ depicting the $i$ -th row of $\\bar { \\bf X }$ . Then the GRLS problem is given as ",
|
| 432 |
+
"bbox": [
|
| 433 |
+
173,
|
| 434 |
+
202,
|
| 435 |
+
825,
|
| 436 |
+
257
|
| 437 |
+
],
|
| 438 |
+
"page_idx": 3
|
| 439 |
+
},
|
| 440 |
+
{
|
| 441 |
+
"type": "equation",
|
| 442 |
+
"img_path": "images/0fbea636bb0b76a3ccb5945b64ab868ee476e342ab2caad3b7572a32c6d04975.jpg",
|
| 443 |
+
"text": "$$\n\\underset { \\bar { \\mathbf { X } } } { \\mathrm { m i n } } \\sum _ { i \\in \\mathcal { V } } \\| \\bar { \\mathbf { x } } _ { i } - \\mathbf { x } _ { i } \\| _ { \\bar { \\mathbf { D } } } ^ { 2 } + \\sum _ { ( i , j ) \\in \\mathcal { E } } \\| \\bar { \\mathbf { x } } _ { i } - \\bar { \\mathbf { x } } _ { j } \\| _ { 2 } ^ { 2 }\n$$",
|
| 444 |
+
"text_format": "latex",
|
| 445 |
+
"bbox": [
|
| 446 |
+
356,
|
| 447 |
+
256,
|
| 448 |
+
642,
|
| 449 |
+
292
|
| 450 |
+
],
|
| 451 |
+
"page_idx": 3
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"type": "text",
|
| 455 |
+
"text": "where $\\| \\mathbf { z } _ { i } \\| _ { \\tilde { \\mathbf { D } } } ^ { 2 } = \\mathbf { z } _ { i } ^ { T } \\tilde { \\mathbf { D } } \\mathbf { z } _ { i }$ . The first term can be seen as total degree-weighted least squares. The second is a graph-regularization term that measures the variation of the new features over the graph structure. The goal of the optimization problem can be stated as estimating new “denoised” features $\\bar { \\mathbf { x } } _ { i }$ ’s that are not too far off of the input features $\\mathbf { x } _ { i }$ ’s and are smooth over the graph structure. ",
|
| 456 |
+
"bbox": [
|
| 457 |
+
174,
|
| 458 |
+
294,
|
| 459 |
+
825,
|
| 460 |
+
353
|
| 461 |
+
],
|
| 462 |
+
"page_idx": 3
|
| 463 |
+
},
|
| 464 |
+
{
|
| 465 |
+
"type": "text",
|
| 466 |
+
"text": "The GRLS problem has a closed form solution $\\bar { \\mathbf { X } } = ( 2 \\mathbf { I } - \\tilde { \\mathbf { A } } _ { \\mathrm { r w } } ) ^ { - 1 } \\mathbf { X }$ , for which $\\tilde { \\mathbf { A } } _ { \\mathrm { r w } } \\mathbf { X }$ is the firstorder Taylor approximation, that is $\\tilde { \\mathbf { A } } _ { \\mathrm { r w } } \\mathbf { X } \\approx \\bar { \\mathbf { X } }$ . By exchanging $\\tilde { \\mathbf { A } } _ { \\mathrm { r w } }$ with $\\tilde { \\mathbf { A } } _ { \\mathrm { s y m } }$ we obtain the same form as the graph convolution, i.e., $\\tilde { \\mathbf { X } } = \\tilde { \\mathbf { A } } _ { \\mathrm { s y m } } \\mathbf { X } \\approx \\bar { \\mathbf { X } }$ . As such, graph convolution can be viewed as an approximate solution of (5), where it minimizes the variation over the graph structure while keeping the new representations close to the original. ",
|
| 467 |
+
"bbox": [
|
| 468 |
+
173,
|
| 469 |
+
359,
|
| 470 |
+
825,
|
| 471 |
+
438
|
| 472 |
+
],
|
| 473 |
+
"page_idx": 3
|
| 474 |
+
},
|
| 475 |
+
{
|
| 476 |
+
"type": "text",
|
| 477 |
+
"text": "The optimization problem in (5) facilitates a closer look to the oversmoothing problem of graph convolution. Ideally, we want to obtain smoothing over nodes within the same cluster, however avoid smoothing over nodes from different clusters. The objective in (5) dictates only the first goal via the graph-regularization term. It is thus prone to oversmoothing when convolutions are applied repeatedly. To circumvent the issue and fulfill both goals simultaneously, we can add a negative term such as the sum of distances between disconnected pairs as follows. ",
|
| 478 |
+
"bbox": [
|
| 479 |
+
173,
|
| 480 |
+
443,
|
| 481 |
+
825,
|
| 482 |
+
526
|
| 483 |
+
],
|
| 484 |
+
"page_idx": 3
|
| 485 |
+
},
|
| 486 |
+
{
|
| 487 |
+
"type": "equation",
|
| 488 |
+
"img_path": "images/2a97a7f94d9fe1296b38921bee678ea16715ad02dc1e89ee90e9bf0dd7b962ca.jpg",
|
| 489 |
+
"text": "$$\n\\operatorname* { m i n } _ { \\bar { \\mathbf { X } } } \\sum _ { i \\in \\mathcal { V } } \\| \\bar { \\mathbf { x } } _ { i } - \\mathbf { x } _ { i } \\| _ { \\bar { \\mathbf { D } } } ^ { 2 } + \\sum _ { ( i , j ) \\in \\mathcal { E } } \\| \\bar { \\mathbf { x } } _ { i } - \\bar { \\mathbf { x } } _ { j } \\| _ { 2 } ^ { 2 } - \\lambda \\sum _ { ( i , j ) \\notin \\mathcal { E } } \\| \\bar { \\mathbf { x } } _ { i } - \\bar { \\mathbf { x } } _ { j } \\| _ { 2 } ^ { 2 }\n$$",
|
| 490 |
+
"text_format": "latex",
|
| 491 |
+
"bbox": [
|
| 492 |
+
276,
|
| 493 |
+
526,
|
| 494 |
+
722,
|
| 495 |
+
563
|
| 496 |
+
],
|
| 497 |
+
"page_idx": 3
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"type": "text",
|
| 501 |
+
"text": "where $\\lambda$ is a balancing scalar to account for different volume and importance of the two goals.2 By deriving the closed-form solution of (6) and approximating it with first-order Taylor expansion, one can get a revised graph convolution operator with hyperparameter $\\lambda$ . In this paper, we take a different route. Instead of a completely new graph convolution operator, we propose a general and efficient “patch”, called PAIRNORM, that can be applied to any form of graph convolution having the potential of oversmoothing. ",
|
| 502 |
+
"bbox": [
|
| 503 |
+
173,
|
| 504 |
+
563,
|
| 505 |
+
825,
|
| 506 |
+
648
|
| 507 |
+
],
|
| 508 |
+
"page_idx": 3
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"type": "text",
|
| 512 |
+
"text": "Let $\\tilde { \\mathbf { X } }$ (the output of graph convolution) and $\\dot { \\bf X }$ respectively be the input and output of PAIRNORM. Observing that the output of graph convolution $\\begin{array} { r } { \\tilde { \\mathbf { X } } = \\tilde { \\mathbf { A } } _ { \\mathrm { s y m } } \\tilde { \\mathbf { X } } } \\end{array}$ only achieves the first goal, PAIRNORM serves as a normalization layer that works on $\\tilde { \\mathbf { X } }$ to achieve the second goal of keeping disconnected pair representations farther off. Specifically, PAIRNORM normalizes $\\bar { \\bar { \\mathbf { X } } }$ such that the total pairwise squared distance $\\begin{array} { r } { \\mathrm { T P S D } ( \\dot { \\mathbf { X } } ) : = \\bar { \\sum _ { i , j \\in [ n ] } } \\| \\dot { \\mathbf { x } } _ { i } - \\dot { \\mathbf { x } } _ { j } \\| _ { 2 } ^ { 2 } } \\end{array}$ is the same as $\\mathrm { T P S D } ( \\mathbf { X } )$ . That is, ",
|
| 513 |
+
"bbox": [
|
| 514 |
+
173,
|
| 515 |
+
654,
|
| 516 |
+
825,
|
| 517 |
+
736
|
| 518 |
+
],
|
| 519 |
+
"page_idx": 3
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"type": "equation",
|
| 523 |
+
"img_path": "images/fe14a36c9438f001dba794e1a97338c8f6a65f951577090b28dbef4dd94b2576.jpg",
|
| 524 |
+
"text": "$$\n\\sum _ { ( i , j ) \\in \\mathcal { E } } \\| \\dot { \\mathbf { x } } _ { i } - \\dot { \\mathbf { x } } _ { j } \\| _ { 2 } ^ { 2 } + \\sum _ { ( i , j ) \\not \\in \\mathcal { E } } \\| \\dot { \\mathbf { x } } _ { i } - \\dot { \\mathbf { x } } _ { j } \\| _ { 2 } ^ { 2 } = \\sum _ { ( i , j ) \\in \\mathcal { E } } \\| { \\mathbf { x } } _ { i } - { \\mathbf { x } } _ { j } \\| _ { 2 } ^ { 2 } + \\sum _ { ( i , j ) \\not \\in \\mathcal { E } } \\| { \\mathbf { x } } _ { i } - { \\mathbf { x } } _ { j } \\| _ { 2 } ^ { 2 } .\n$$",
|
| 525 |
+
"text_format": "latex",
|
| 526 |
+
"bbox": [
|
| 527 |
+
196,
|
| 528 |
+
737,
|
| 529 |
+
782,
|
| 530 |
+
772
|
| 531 |
+
],
|
| 532 |
+
"page_idx": 3
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"type": "text",
|
| 536 |
+
"text": "By keeping the total pairwise squared distance unchanged, the term $\\begin{array} { r } { \\sum _ { ( i , j ) \\notin \\mathcal { E } } \\| \\dot { \\mathbf { x } } _ { i } - \\dot { \\mathbf { x } } _ { j } \\| _ { 2 } ^ { 2 } } \\end{array}$ is guaranteed to be at least as large as the original value $\\begin{array} { r } { \\sum _ { ( i , j ) \\notin \\mathcal { E } } \\| \\mathbf { x } _ { i } - \\mathbf { x } _ { j } \\| _ { 2 } ^ { 2 } } \\end{array}$ since the other term $\\begin{array} { r } { \\sum _ { ( i , j ) \\in \\mathcal { E } } \\| \\dot { \\bf x } _ { i } - \\dot { \\bf x } _ { j } \\| _ { 2 } ^ { 2 } \\approx \\sum _ { ( i , j ) \\in \\mathcal { E } } \\| \\tilde { \\bf x } _ { i } - \\tilde { \\bf x } _ { j } \\| _ { 2 } ^ { 2 } } \\end{array}$ is shrunk through the graph convolution. ",
|
| 537 |
+
"bbox": [
|
| 538 |
+
173,
|
| 539 |
+
773,
|
| 540 |
+
825,
|
| 541 |
+
827
|
| 542 |
+
],
|
| 543 |
+
"page_idx": 3
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"type": "text",
|
| 547 |
+
"text": "In practice, instead of always tracking the original value $\\mathrm { T P S D } ( \\mathbf { X } )$ , we can maintain a constant TPSD value $C$ across all layers, where $C$ is a hyperparameter that could be tuned per dataset. ",
|
| 548 |
+
"bbox": [
|
| 549 |
+
174,
|
| 550 |
+
832,
|
| 551 |
+
823,
|
| 552 |
+
862
|
| 553 |
+
],
|
| 554 |
+
"page_idx": 3
|
| 555 |
+
},
|
| 556 |
+
{
|
| 557 |
+
"type": "text",
|
| 558 |
+
"text": "To normalize $\\tilde { \\mathbf { X } }$ to constant TPSD, we need to first compute $\\mathrm { T P S D } ( \\tilde { \\mathbf { X } } )$ . Directly computing TPSD involves $n ^ { 2 }$ pairwise distances that is $\\mathcal { O } ( n ^ { 2 } d )$ , which can be time consuming for large datasets. ",
|
| 559 |
+
"bbox": [
|
| 560 |
+
176,
|
| 561 |
+
868,
|
| 562 |
+
820,
|
| 563 |
+
898
|
| 564 |
+
],
|
| 565 |
+
"page_idx": 3
|
| 566 |
+
},
|
| 567 |
+
{
|
| 568 |
+
"type": "text",
|
| 569 |
+
"text": "Equivalently, normalization can be done via a two-step approach where TPSD is rewritten as3 ",
|
| 570 |
+
"bbox": [
|
| 571 |
+
171,
|
| 572 |
+
103,
|
| 573 |
+
787,
|
| 574 |
+
118
|
| 575 |
+
],
|
| 576 |
+
"page_idx": 4
|
| 577 |
+
},
|
| 578 |
+
{
|
| 579 |
+
"type": "equation",
|
| 580 |
+
"img_path": "images/d2c51f3f4a475927c18db0bab73292f4a1dde27d6af293dbcea11245158c21e2.jpg",
|
| 581 |
+
"text": "$$\n\\begin{array} { r c l } { \\mathrm { T P S D } ( \\tilde { \\mathbf { X } } ) } & { = } & { \\displaystyle \\sum _ { i , j \\in [ n ] } \\| \\tilde { \\mathbf { x } } _ { i } - \\tilde { \\mathbf { x } } _ { j } \\| _ { 2 } ^ { 2 } } & { = } & { \\displaystyle 2 n ^ { 2 } \\bigg ( \\frac { 1 } { n } \\sum _ { i = 1 } ^ { n } \\| \\tilde { \\mathbf { x } } _ { i } \\| _ { 2 } ^ { 2 } - \\| \\frac { 1 } { n } \\sum _ { i = 1 } ^ { n } \\tilde { \\mathbf { x } } _ { i } \\| _ { 2 } ^ { 2 } \\bigg ) ~ . } \\end{array}\n$$",
|
| 582 |
+
"text_format": "latex",
|
| 583 |
+
"bbox": [
|
| 584 |
+
246,
|
| 585 |
+
117,
|
| 586 |
+
748,
|
| 587 |
+
160
|
| 588 |
+
],
|
| 589 |
+
"page_idx": 4
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"type": "text",
|
| 593 |
+
"text": "The first term (ignoring the scale $2 n ^ { 2 }$ ) in Eq. (8) represents the mean squared length of node representations, and the second term depicts the squared length of the mean of node representations. To simplify the computation of (8), we subtract the row-wise mean from each $\\widetilde { \\mathbf { x } } _ { i }$ , i.e., $\\begin{array} { r } { \\tilde { \\mathbf { x } } _ { i } ^ { c } = \\tilde { \\mathbf { x } } _ { i } - \\frac { 1 } { n } \\sum _ { i } ^ { n } \\tilde { \\mathbf { x } } _ { i } ^ { \\cdot } } \\end{array}$ where $\\tilde { \\mathbf { x } } _ { i } ^ { c }$ denotes the centered representation. Note that this shifting does not affect the TPSD, and furthermore drives the term $\\begin{array} { r } { \\| \\frac { 1 } { n } \\sum _ { i = 1 } ^ { n } \\tilde { \\mathbf { x } } _ { i } \\| _ { 2 } ^ { 2 } } \\end{array}$ to zero, where computing $\\mathrm { T P S D } ( \\tilde { \\mathbf { X } } )$ boils down to calculating the squared Frobenius norm of $\\tilde { \\mathbf { X } } ^ { c }$ and overall takes $\\mathcal { O } ( n d )$ . That is, ",
|
| 594 |
+
"bbox": [
|
| 595 |
+
173,
|
| 596 |
+
161,
|
| 597 |
+
825,
|
| 598 |
+
252
|
| 599 |
+
],
|
| 600 |
+
"page_idx": 4
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"type": "text",
|
| 604 |
+
"text": "In summary, our proposed PAIRNORM (with input $\\tilde { \\mathbf { X } }$ and output $\\dot { \\bf X }$ ) can be written as a two-step, center-and-scale, normalization procedure: ",
|
| 605 |
+
"bbox": [
|
| 606 |
+
174,
|
| 607 |
+
273,
|
| 608 |
+
826,
|
| 609 |
+
301
|
| 610 |
+
],
|
| 611 |
+
"page_idx": 4
|
| 612 |
+
},
|
| 613 |
+
{
|
| 614 |
+
"type": "equation",
|
| 615 |
+
"img_path": "images/7698a4e1afffe1f97e0d320ea22a3071e2c3eeb0d04e2127a7395799ae5d52bf.jpg",
|
| 616 |
+
"text": "$$\n\\begin{array} { l } { \\displaystyle \\widetilde { \\mathbf { x } } _ { i } ^ { c } = \\widetilde { \\mathbf { x } } _ { i } - \\frac { 1 } { n } \\sum _ { i = 1 } ^ { n } \\widetilde { \\mathbf { x } } _ { i } } \\\\ { \\displaystyle \\dot { \\mathbf { x } } _ { i } = s \\cdot \\frac { \\widetilde { \\mathbf { x } } _ { i } ^ { c } } { \\sqrt { \\frac { 1 } { n } \\sum _ { i = 1 } ^ { n } \\| \\widetilde { \\mathbf { x } } _ { i } ^ { c } \\| _ { 2 } ^ { 2 } } } = s \\sqrt { n } \\cdot \\frac { \\widetilde { \\mathbf { x } } _ { i } ^ { c } } { \\sqrt { \\| \\widetilde { \\mathbf { X } } ^ { c } \\| _ { F } ^ { 2 } } } } \\end{array}\n$$",
|
| 617 |
+
"text_format": "latex",
|
| 618 |
+
"bbox": [
|
| 619 |
+
281,
|
| 620 |
+
301,
|
| 621 |
+
594,
|
| 622 |
+
387
|
| 623 |
+
],
|
| 624 |
+
"page_idx": 4
|
| 625 |
+
},
|
| 626 |
+
{
|
| 627 |
+
"type": "text",
|
| 628 |
+
"text": "After scaling the data remains centered, that is, $\\begin{array} { r } { \\| \\sum _ { i = 1 } ^ { n } \\dot { \\bf x } _ { i } \\| _ { 2 } ^ { 2 } = 0 } \\end{array}$ . In Eq. (11), $s$ is a hyperparameter that determines $C$ . Specifically, ",
|
| 629 |
+
"bbox": [
|
| 630 |
+
174,
|
| 631 |
+
386,
|
| 632 |
+
821,
|
| 633 |
+
415
|
| 634 |
+
],
|
| 635 |
+
"page_idx": 4
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"type": "equation",
|
| 639 |
+
"img_path": "images/17f5e6afca0614ec6b55df9d8e247ff3886dcdef6778d3e569054b8eed61eaa6.jpg",
|
| 640 |
+
"text": "$$\n\\mathrm { T P S D } ( { \\dot { \\mathbf { X } } } ) = 2 n \\| { \\dot { \\mathbf { X } } } \\| _ { F } ^ { 2 } = 2 n \\sum _ { i } \\| s \\cdot { \\frac { { \\tilde { \\mathbf { x } } } _ { i } ^ { c } } { \\sqrt { { \\frac { 1 } { n } } \\sum _ { i } \\| { \\tilde { \\mathbf { x } } } _ { i } ^ { c } \\| _ { 2 } ^ { 2 } } } } \\| _ { 2 } ^ { 2 } = 2 n { \\frac { s ^ { 2 } } { { \\frac { 1 } { n } } \\sum _ { i } \\| { \\tilde { \\mathbf { x } } } _ { i } ^ { c } \\| _ { 2 } ^ { 2 } } } \\sum _ { i } \\| { \\tilde { \\mathbf { x } } } _ { i } ^ { c } \\| _ { 2 } ^ { 2 } = 2 n ^ { 2 } s ^ { 2 }\n$$",
|
| 641 |
+
"text_format": "latex",
|
| 642 |
+
"bbox": [
|
| 643 |
+
187,
|
| 644 |
+
414,
|
| 645 |
+
807,
|
| 646 |
+
458
|
| 647 |
+
],
|
| 648 |
+
"page_idx": 4
|
| 649 |
+
},
|
| 650 |
+
{
|
| 651 |
+
"type": "text",
|
| 652 |
+
"text": "Then, $\\dot { \\mathbf { X } } : = \\operatorname { P A I R N O R M } ( \\tilde { \\mathbf { X } } )$ has row-wise mean 0 (i.e., is centered) and constant total pairwise squared distance $C = 2 n ^ { 2 } s ^ { 2 }$ . An illustration of PAIRNORM is given in Figure 2. The output of PAIRNORM is input to the next convolution layer. ",
|
| 653 |
+
"bbox": [
|
| 654 |
+
176,
|
| 655 |
+
469,
|
| 656 |
+
823,
|
| 657 |
+
513
|
| 658 |
+
],
|
| 659 |
+
"page_idx": 4
|
| 660 |
+
},
|
| 661 |
+
{
|
| 662 |
+
"type": "image",
|
| 663 |
+
"img_path": "images/2ff10cf2c9b16a85d50a14972c75e76d008f98564f6afd7d7414e2f0a2e29a43.jpg",
|
| 664 |
+
"image_caption": [
|
| 665 |
+
"Figure 2: Illustration of PAIRNORM, comprising centering and rescaling steps. "
|
| 666 |
+
],
|
| 667 |
+
"image_footnote": [],
|
| 668 |
+
"bbox": [
|
| 669 |
+
299,
|
| 670 |
+
522,
|
| 671 |
+
692,
|
| 672 |
+
606
|
| 673 |
+
],
|
| 674 |
+
"page_idx": 4
|
| 675 |
+
},
|
| 676 |
+
{
|
| 677 |
+
"type": "text",
|
| 678 |
+
"text": "We also derive a variant of PAIRNORM by replacing Pni=1 $\\textstyle \\sum _ { i = 1 } ^ { n } \\| \\tilde { \\mathbf { x } } _ { i } ^ { c } \\| _ { 2 } ^ { 2 }$ in Eq. (11) with $n \\| \\tilde { \\mathbf { x } } _ { i } ^ { c } \\| _ { 2 } ^ { 2 }$ , such that the scaling step computes $\\begin{array} { r l r } { \\dot { \\bf x } _ { i } } & { { } = } & { s } \\end{array}$ $\\frac { \\tilde { \\mathbf { x } } _ { i } ^ { c } } { \\| \\tilde { \\mathbf { x } } _ { i } ^ { c } \\| _ { 2 } }$ . We call it PAIRNORM-SI (for Scale Individually), which imposes more restriction on node representations, such that all have the same $L _ { 2 }$ -norm s. In practice we found that both PAIRNORM and PAIRNORM-SI work well for SGC, whereas PAIRNORM-SI provides better and more stable results for GCN and ",
|
| 679 |
+
"bbox": [
|
| 680 |
+
174,
|
| 681 |
+
631,
|
| 682 |
+
446,
|
| 683 |
+
804
|
| 684 |
+
],
|
| 685 |
+
"page_idx": 4
|
| 686 |
+
},
|
| 687 |
+
{
|
| 688 |
+
"type": "image",
|
| 689 |
+
"img_path": "images/b9b02294bb59dc6d8e0bda469d7e4ba2d7b2027c3126730591eccadd3fd0a7e2.jpg",
|
| 690 |
+
"image_caption": [
|
| 691 |
+
"Figure 3: (best in color) Performance comparison of the original (dashed) vs. PAIRNORM-enhanced (solid) GCN and GAT models with increasing layers on Cora. "
|
| 692 |
+
],
|
| 693 |
+
"image_footnote": [],
|
| 694 |
+
"bbox": [
|
| 695 |
+
462,
|
| 696 |
+
631,
|
| 697 |
+
818,
|
| 698 |
+
734
|
| 699 |
+
],
|
| 700 |
+
"page_idx": 4
|
| 701 |
+
},
|
| 702 |
+
{
|
| 703 |
+
"type": "text",
|
| 704 |
+
"text": "GAT. The reason why GCN and GAT require stricter normalization may be because they have more parameters and are more prone to overfitting. In Appx. A.6 we provide additional measures to demonstrate why PAIRNORM and PAIRNORM-SI work. In all experiments, we employ PAIRNORM for SGC and PAIRNORM-SI for both GCN and GAT. ",
|
| 705 |
+
"bbox": [
|
| 706 |
+
174,
|
| 707 |
+
805,
|
| 708 |
+
825,
|
| 709 |
+
861
|
| 710 |
+
],
|
| 711 |
+
"page_idx": 4
|
| 712 |
+
},
|
| 713 |
+
{
|
| 714 |
+
"type": "text",
|
| 715 |
+
"text": "PAIRNORM is effective and efficient in solving the oversmoothing problem of GNNs. As a general normalization layer, it can be used for any GNN. Solid lines in Figure 1 present the performance of SGC on Cora with increasing number of layers, where we employ PAIRNORM after each graph convolution layer, as compared to ‘vanilla’ versions. Similarly, Figure 3 is for GCN and GAT (PAIRNORM is applied after the activation of each graph convolution). Note that the performance decay with PAIRNORM-at-work is much slower. (See Fig.s 5–6 in Appx. A.3 for other datasets.) ",
|
| 716 |
+
"bbox": [
|
| 717 |
+
176,
|
| 718 |
+
867,
|
| 719 |
+
823,
|
| 720 |
+
896
|
| 721 |
+
],
|
| 722 |
+
"page_idx": 4
|
| 723 |
+
},
|
| 724 |
+
{
|
| 725 |
+
"type": "text",
|
| 726 |
+
"text": "",
|
| 727 |
+
"bbox": [
|
| 728 |
+
174,
|
| 729 |
+
103,
|
| 730 |
+
823,
|
| 731 |
+
160
|
| 732 |
+
],
|
| 733 |
+
"page_idx": 5
|
| 734 |
+
},
|
| 735 |
+
{
|
| 736 |
+
"type": "text",
|
| 737 |
+
"text": "While PAIRNORM enables deeper models that are more robust to oversmoothing, it may seem odd that the overall test accuracy does not improve. In fact, the benchmark graph datasets often used in the literature require no more than 4 layers, after which performance decays (even if slowly). In the next section, we present a realistic use case setting for which deeper models are more likely to provide higher performance, where the benefit of PAIRNORM becomes apparent. ",
|
| 738 |
+
"bbox": [
|
| 739 |
+
174,
|
| 740 |
+
166,
|
| 741 |
+
825,
|
| 742 |
+
236
|
| 743 |
+
],
|
| 744 |
+
"page_idx": 5
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"type": "text",
|
| 748 |
+
"text": "3.2 A CASE WHERE DEEPER GNNS ARE BENEFICIAL",
|
| 749 |
+
"text_level": 1,
|
| 750 |
+
"bbox": [
|
| 751 |
+
174,
|
| 752 |
+
242,
|
| 753 |
+
560,
|
| 754 |
+
257
|
| 755 |
+
],
|
| 756 |
+
"page_idx": 5
|
| 757 |
+
},
|
| 758 |
+
{
|
| 759 |
+
"type": "text",
|
| 760 |
+
"text": "In general, oversmoothing gets increasingly more severe as the number of layers goes up. A task would benefit from employing PAIRNORM more if it required a large number of layers to achieve its best performance. To this effect we study the “missing feature setting”, where a subset of the nodes lack feature vectors. Let $\\mathcal { M } \\subseteq \\mathcal { V } _ { u }$ be the set where $\\forall m \\in \\mathcal { M } , \\mathbf { x } _ { m } = \\varnothing$ , i.e., all of their features are missing. We denote with $p = | \\mathcal { M } | / | \\mathcal { V } _ { u } |$ the missing fraction. We call this variant of the task as semi-supervised node classification with missing vectors (SSNC-MV). Intuitively, one would require a larger number of propagation steps (hence, a deeper GNN) to be able to “recover” effective feature representations for these nodes. ",
|
| 761 |
+
"bbox": [
|
| 762 |
+
173,
|
| 763 |
+
263,
|
| 764 |
+
825,
|
| 765 |
+
376
|
| 766 |
+
],
|
| 767 |
+
"page_idx": 5
|
| 768 |
+
},
|
| 769 |
+
{
|
| 770 |
+
"type": "text",
|
| 771 |
+
"text": "SSNC-MV is a general and realistic problem that finds several applications in the real world. For example, the credit lending problem of identifying low- vs. high-risk customers (nodes) can be modeled as SSNC-MV where a large fraction of nodes do not exhibit any meaningful features (e.g., due to low-volume activity). In fact, many graph-based classification tasks with the cold-start issue (entity with no history) can be cast into SSNC-MV. To our knowledge, this is the first work to study the SSNC-MV problem using GNN models. ",
|
| 772 |
+
"bbox": [
|
| 773 |
+
173,
|
| 774 |
+
382,
|
| 775 |
+
825,
|
| 776 |
+
467
|
| 777 |
+
],
|
| 778 |
+
"page_idx": 5
|
| 779 |
+
},
|
| 780 |
+
{
|
| 781 |
+
"type": "text",
|
| 782 |
+
"text": "Figure 4 presents the performance of SGC, GCN, and GAT models on Cora with increasing number of layers, where we remove feature vectors from all the unlabeled nodes, i.e. $p = 1$ . The models with PAIRNORM achieve a higher test accuracy compared to those without, which they typically reach at a larger number of layers. (See Fig. 7 in Appx. A.4 for results on other datasets.) ",
|
| 783 |
+
"bbox": [
|
| 784 |
+
173,
|
| 785 |
+
473,
|
| 786 |
+
823,
|
| 787 |
+
530
|
| 788 |
+
],
|
| 789 |
+
"page_idx": 5
|
| 790 |
+
},
|
| 791 |
+
{
|
| 792 |
+
"type": "image",
|
| 793 |
+
"img_path": "images/0abf2f40b7df4f3cbaf62dab4285a89478bce20eb97fadcdd87298fb24504034.jpg",
|
| 794 |
+
"image_caption": [
|
| 795 |
+
"Figure 4: (best in color) Comparison of ‘vanilla’ vs. PAIRNORM-enhanced SGC, GCN, and GAT performance on Cora for $p = 1$ . Green diamond symbols depict the layer at which validation accuracy peaks. PAIRNORM boosts overall performance by enabling more robust deep GNNs. "
|
| 796 |
+
],
|
| 797 |
+
"image_footnote": [],
|
| 798 |
+
"bbox": [
|
| 799 |
+
207,
|
| 800 |
+
534,
|
| 801 |
+
787,
|
| 802 |
+
657
|
| 803 |
+
],
|
| 804 |
+
"page_idx": 5
|
| 805 |
+
},
|
| 806 |
+
{
|
| 807 |
+
"type": "text",
|
| 808 |
+
"text": "4 EXPERIMENTS ",
|
| 809 |
+
"text_level": 1,
|
| 810 |
+
"bbox": [
|
| 811 |
+
174,
|
| 812 |
+
710,
|
| 813 |
+
326,
|
| 814 |
+
726
|
| 815 |
+
],
|
| 816 |
+
"page_idx": 5
|
| 817 |
+
},
|
| 818 |
+
{
|
| 819 |
+
"type": "text",
|
| 820 |
+
"text": "In section 3 we have shown the robustness of PAIRNORM-enhanced models against increasing number of layers in SSNC problem. In this section we design extensive experiments to evaluate the effectiveness of PAIRNORM under the SSNC-MV setting, over SGC, GCN and GAT models. ",
|
| 821 |
+
"bbox": [
|
| 822 |
+
173,
|
| 823 |
+
741,
|
| 824 |
+
823,
|
| 825 |
+
784
|
| 826 |
+
],
|
| 827 |
+
"page_idx": 5
|
| 828 |
+
},
|
| 829 |
+
{
|
| 830 |
+
"type": "text",
|
| 831 |
+
"text": "4.1 EXPERIMENT SETUP ",
|
| 832 |
+
"text_level": 1,
|
| 833 |
+
"bbox": [
|
| 834 |
+
174,
|
| 835 |
+
790,
|
| 836 |
+
357,
|
| 837 |
+
805
|
| 838 |
+
],
|
| 839 |
+
"page_idx": 5
|
| 840 |
+
},
|
| 841 |
+
{
|
| 842 |
+
"type": "text",
|
| 843 |
+
"text": "Datasets. We use 4 well-known benchmark datasets in GNN domain: Cora, Citeseer, Pubmed (Sen et al., 2008), and CoauthorCS (Shchur et al., 2018). Their statistics are reported in Appx. A.2. For Cora, Citeseer and Pubmed, we use the same dataset splits as Kipf & Welling (2017), where all nodes outside train and validation are used as test set. For CoauthorCS, we randomly split all nodes into train/val/test as $3 \\% / 1 0 \\% / 8 7 \\%$ , and keep the same split for all experiments. ",
|
| 844 |
+
"bbox": [
|
| 845 |
+
174,
|
| 846 |
+
811,
|
| 847 |
+
825,
|
| 848 |
+
881
|
| 849 |
+
],
|
| 850 |
+
"page_idx": 5
|
| 851 |
+
},
|
| 852 |
+
{
|
| 853 |
+
"type": "text",
|
| 854 |
+
"text": "Models. We use three different GNN models as our base model: SGC (Wu et al., 2019), GCN (Kipf & Welling, 2017), and GAT (Velickovic et al., 2018). We compare our PAIRNORM with residual connection method (He et al., 2016) over base models (except SGC since there is no “residual connected” SGC), as we surprisingly find it can slow down oversmoothing and benefit SSNCMV problem. Similar to us, residual connection is a general technique that can be applied to any model without changing its architecture. We focus on the comparison between the base models and PAIRNORM-enhanced models, rather than achieving the state of the art performance for SSNC and SSNC-MV. There exist a few other work addressing oversmoothing (Klicpera et al., 2019; Li et al., 2018; Rong et al., 2019; Xu et al., 2018) however they design specialized architectures and not simple “patch” procedures like PAIRNORM that can be applied on top of any GNN. ",
|
| 855 |
+
"bbox": [
|
| 856 |
+
176,
|
| 857 |
+
882,
|
| 858 |
+
823,
|
| 859 |
+
924
|
| 860 |
+
],
|
| 861 |
+
"page_idx": 5
|
| 862 |
+
},
|
| 863 |
+
{
|
| 864 |
+
"type": "text",
|
| 865 |
+
"text": "",
|
| 866 |
+
"bbox": [
|
| 867 |
+
174,
|
| 868 |
+
103,
|
| 869 |
+
825,
|
| 870 |
+
200
|
| 871 |
+
],
|
| 872 |
+
"page_idx": 6
|
| 873 |
+
},
|
| 874 |
+
{
|
| 875 |
+
"type": "text",
|
| 876 |
+
"text": "Hyperparameters. We choose the hyperparameter $s$ of PAIRNORM from $\\{ 0 . 1 , 1 , 1 0 , 5 0 , 1 0 0 \\}$ over validation set for SGC, while keeping it fixed at $s = 1$ for both GCN and GAT due to resource limitations. We set the #hidden units of GCN and GAT (#attention heads is set to 1) to 32 and 64 respectively for all datasets. Dropout with rate 0.6 and $L _ { 2 }$ regularization with penalty $5 \\cdot 1 0 ^ { - 4 } $ are applied to GCN and GAT. For SGC, we vary number of layers in $\\{ 1 , 2 , \\ldots 1 0 , 1 5 , \\ldots , 6 0 \\}$ and for GCN and GAT in $\\{ 2 , 4 , \\dots , 1 2 , 1 5 , 2 0 , \\dots , 3 0 \\}$ . ",
|
| 877 |
+
"bbox": [
|
| 878 |
+
174,
|
| 879 |
+
202,
|
| 880 |
+
825,
|
| 881 |
+
285
|
| 882 |
+
],
|
| 883 |
+
"page_idx": 6
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"type": "text",
|
| 887 |
+
"text": "Configurations. For PAIRNORM-enhanced models, we apply PAIRNORM after each graph convolution layer (i.e., after activation if any) in the base model. For residual-connected models with $t$ skip steps, we connect the output of $l$ -th layer to $( l + t )$ -th, that is, $\\mathbf { H } _ { \\mathrm { n e w } } ^ { ( l + t ) } = \\mathbf { H } ^ { ( l + t ) } + \\mathbf { H } ^ { ( l ) }$ where $\\mathbf { H } ^ { ( \\bar { l } ) }$ denotes the output of $l$ -th graph convolution (after activation). For the SSNC-MV setting, we randomly erase $p$ fraction of the feature vectors from nodes in validation and test sets (for which we input vector $\\mathbf { 0 } \\in \\mathbb { R } ^ { d }$ ), whereas all training (labeled) nodes keep their original features (See 3.2). We run each experiment within 1000 epochs 5 times and report the average performance. We mainly use a single GTX-1080ti GPU, with some SGC experiments ran on an Intel i7-8700k CPU. ",
|
| 888 |
+
"bbox": [
|
| 889 |
+
174,
|
| 890 |
+
285,
|
| 891 |
+
825,
|
| 892 |
+
401
|
| 893 |
+
],
|
| 894 |
+
"page_idx": 6
|
| 895 |
+
},
|
| 896 |
+
{
|
| 897 |
+
"type": "text",
|
| 898 |
+
"text": "4.2 EXPERIMENT RESULTS ",
|
| 899 |
+
"text_level": 1,
|
| 900 |
+
"bbox": [
|
| 901 |
+
174,
|
| 902 |
+
409,
|
| 903 |
+
375,
|
| 904 |
+
421
|
| 905 |
+
],
|
| 906 |
+
"page_idx": 6
|
| 907 |
+
},
|
| 908 |
+
{
|
| 909 |
+
"type": "text",
|
| 910 |
+
"text": "We first show the global performance gain of applying PAIRNORM to SGC for SSNC-MV under varying feature missing rates as shown in Table 1. PAIRNORM-enhanced SGC performs similar or better over $0 \\%$ missing, while it significantly outperforms vanilla SGC for most other settings, especially for larger missing rates. #L denotes the best number of layers for the model that yields the largest average validation accuracy (over 5 runs), for which we report the average test accuracy (Acc). Notice the larger #L values for SGC-PN compared to vanilla SGC, which shows the power of PAIRNORM for enabling “deep” SGC models by effectively tackling oversmoothing. ",
|
| 911 |
+
"bbox": [
|
| 912 |
+
174,
|
| 913 |
+
429,
|
| 914 |
+
825,
|
| 915 |
+
527
|
| 916 |
+
],
|
| 917 |
+
"page_idx": 6
|
| 918 |
+
},
|
| 919 |
+
{
|
| 920 |
+
"type": "text",
|
| 921 |
+
"text": "Similar to Wu et al. (2019) who showed that the simple SGC model achieves comparable or better performance as other GNNs for various tasks, we found PAIRNORM-enhanced SGC to follow the same trend when compared with PAIRNORM-enhanced GCN and GAT, for all SSNC-MV settings. Due to its simplicity and extreme efficiency, we believe PAIRNORM-enhanced SGC sets a strong baseline for the SSNC-MV problem. ",
|
| 922 |
+
"bbox": [
|
| 923 |
+
174,
|
| 924 |
+
534,
|
| 925 |
+
825,
|
| 926 |
+
604
|
| 927 |
+
],
|
| 928 |
+
"page_idx": 6
|
| 929 |
+
},
|
| 930 |
+
{
|
| 931 |
+
"type": "table",
|
| 932 |
+
"img_path": "images/39d65723fe4096cd49057c52dcdb68dfdc36fb0eb85efd9ea315f3859c346bf3.jpg",
|
| 933 |
+
"table_caption": [
|
| 934 |
+
"Table 1: Comparison of ‘vanilla’ vs. PAIRNORM-enhanced SGC performance in Cora, Citeseer, Pubmed, and CoauthorCS for SSNC-MV problem, with missing rate ranging from $0 \\%$ to $1 0 0 \\%$ . Showing test accuracy at #L ( $K$ in Eq. 4) layers, at which model achieves best validation accuracy. "
|
| 935 |
+
],
|
| 936 |
+
"table_footnote": [],
|
| 937 |
+
"table_body": "<table><tr><td colspan=\"2\">Missing Percentage Dataset Method</td><td colspan=\"2\">0% Acc #L</td><td colspan=\"2\">20% Acc #L</td><td colspan=\"2\">40% Acc #L</td><td colspan=\"2\">60% Acc #L</td><td colspan=\"2\">80% Acc #L</td><td colspan=\"2\">100% Acc #L</td></tr><tr><td rowspan=\"2\">Cora</td><td>SGC</td><td>0.815</td><td>4</td><td>0.806</td><td>5</td><td>|0.786</td><td>3</td><td>0.742</td><td>4</td><td>0.733</td><td></td><td>310.423</td><td>315</td></tr><tr><td>SGC-PN</td><td>0.811</td><td>7</td><td>0.799</td><td>7</td><td>0.797</td><td>7</td><td>0.783</td><td>20</td><td>0.780</td><td>25</td><td>0.745</td><td>40</td></tr><tr><td rowspan=\"2\">Citeseer</td><td>SGC</td><td>0.689</td><td>10</td><td>0.684</td><td>6</td><td>0.668</td><td>8</td><td>0.657</td><td></td><td>9 0.565</td><td></td><td>80.290</td><td>2</td></tr><tr><td>SGC-PN</td><td>0.706</td><td>3</td><td>0.695</td><td>3</td><td>0.653</td><td>4</td><td>0.641</td><td></td><td>5 0.590</td><td></td><td>500.486</td><td>50</td></tr><tr><td rowspan=\"2\">Pubmed</td><td>SGC</td><td>0.754</td><td>1</td><td>0.748</td><td></td><td>0.723</td><td></td><td>410.746</td><td></td><td>20.659</td><td></td><td>30.399</td><td>35</td></tr><tr><td>SGC-PN</td><td>0.782</td><td>9</td><td>0.781</td><td>1 7</td><td>0.778</td><td></td><td>600.782</td><td></td><td>7 0.772</td><td></td><td>600.719</td><td>40</td></tr><tr><td rowspan=\"2\">CoauthorCs</td><td>SGC</td><td>0.914</td><td>1</td><td>10.898</td><td></td><td>0.877</td><td></td><td>210.824</td><td></td><td>210.751</td><td></td><td>40.318</td><td>2</td></tr><tr><td>SGC-PN</td><td>0.915</td><td>2</td><td>0.909</td><td>22</td><td>0.899</td><td>3</td><td>0.891</td><td></td><td>4 0.880</td><td></td><td>80.860</td><td>20</td></tr></table>",
|
| 938 |
+
"bbox": [
|
| 939 |
+
218,
|
| 940 |
+
655,
|
| 941 |
+
776,
|
| 942 |
+
814
|
| 943 |
+
],
|
| 944 |
+
"page_idx": 6
|
| 945 |
+
},
|
| 946 |
+
{
|
| 947 |
+
"type": "text",
|
| 948 |
+
"text": "We next employ PAIRNORM-SI for GCN and GAT under the same setting, comparing it with the residual (skip) connections technique. Results are shown in Table 2 and Table 3 respectively for GCN and GAT. Due to space and resource limitations, we only show results for $0 \\%$ and $1 0 0 \\%$ missing rate scenarios. (We provide results for other missing rates $( 7 0 , 8 0 , 9 0 \\% )$ over 1 run only in Appx. A.5.) We observe similar trend for GCN and GAT: (1) vanilla model suffers from performance drop under SSNC-MV with increasing missing rate; (2) both residual connections and PAIRNORM-SI enable deeper models and improve performance (note the larger $\\# \\mathrm { L }$ and Acc); (3) GCN-PN and ",
|
| 949 |
+
"bbox": [
|
| 950 |
+
173,
|
| 951 |
+
825,
|
| 952 |
+
825,
|
| 953 |
+
924
|
| 954 |
+
],
|
| 955 |
+
"page_idx": 6
|
| 956 |
+
},
|
| 957 |
+
{
|
| 958 |
+
"type": "text",
|
| 959 |
+
"text": "GAT-PN achieve performance that is comparable or better than just using skips; (4) performance can be further improved (albeit slightly) by using skips along with PAIRNORM-SI.4 ",
|
| 960 |
+
"bbox": [
|
| 961 |
+
171,
|
| 962 |
+
103,
|
| 963 |
+
823,
|
| 964 |
+
132
|
| 965 |
+
],
|
| 966 |
+
"page_idx": 7
|
| 967 |
+
},
|
| 968 |
+
{
|
| 969 |
+
"type": "table",
|
| 970 |
+
"img_path": "images/cf23c7abdbff13e158246489c4ab4456274b743e56d4e93f41a5e359d710f70c.jpg",
|
| 971 |
+
"table_caption": [
|
| 972 |
+
"Table 2: Comparison of ‘vanilla’ and (PAIRNORM-SI/ residual)-enhanced GCN performance on Cora, Citeseer, Pubmed, and CoauthorCS for SSNC-MV problem, with $0 \\%$ and $1 0 0 \\%$ feature missing rate. $t$ represents the skip-step of residual connection. (See A.5 Fig. 8 for more settings.) "
|
| 973 |
+
],
|
| 974 |
+
"table_footnote": [],
|
| 975 |
+
"table_body": "<table><tr><td rowspan=\"2\">Dataset Missing(%) Method</td><td colspan=\"3\">Cora</td><td colspan=\"4\">Citeseer</td><td colspan=\"4\">Pubmed</td><td colspan=\"4\">CoauthorCs</td></tr><tr><td colspan=\"2\">0% Acc #L</td><td colspan=\"2\">100% Acc #L</td><td colspan=\"2\">0% Acc #L</td><td colspan=\"2\">100% Acc #L</td><td colspan=\"2\">0% Acc #L</td><td colspan=\"2\">100% Acc #L</td><td colspan=\"2\">0% Acc #L</td><td colspan=\"2\">100% Acc #L</td></tr><tr><td>GCN</td><td>|0.821</td><td>2|0.582</td><td></td><td>2</td><td>0.695</td><td>0.313</td><td></td><td>2</td><td>|0.779</td><td>2|0.449</td><td></td><td>2</td><td>|0.877</td><td></td><td>210.452</td><td>4</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td>2</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>GCN-PN GCN-t1</td><td>[0.790 0.822</td><td>2</td><td>0.731</td><td>10</td><td>0.660</td><td></td><td>0.498</td><td>8</td><td>0.780</td><td>30</td><td>0.745</td><td>25 25</td><td>10.910 0.898</td><td>2</td><td>0.846 0.727</td><td>12 12</td></tr><tr><td>GCN-t1-PN</td><td>0.780</td><td>2 2</td><td>0.721 0.724</td><td>15 30</td><td>0.696 0.648</td><td></td><td>0.441 0.465</td><td>12 10</td><td>0.780 0.756</td><td>2 15</td><td>0.656 0.690</td><td>12</td><td>0.898</td><td>2 2</td><td>0.830</td><td>20</td></tr><tr><td>GCN-t2</td><td>0.820</td><td>2</td><td>0.722</td><td>10</td><td>0.691</td><td></td><td>0.432</td><td>20</td><td>0.779</td><td>2</td><td>0.645</td><td>20</td><td>0.882</td><td>4</td><td>0.630</td><td>20</td></tr><tr><td>GCN-t2-PN</td><td>0.785</td><td>4</td><td>0.740</td><td>30</td><td>0.650</td><td>22222</td><td>0.508</td><td>12</td><td>0.770</td><td>15</td><td>0.725</td><td>30</td><td>0.911</td><td>2</td><td>0.839</td><td>20</td></tr></table>",
|
| 976 |
+
"bbox": [
|
| 977 |
+
192,
|
| 978 |
+
181,
|
| 979 |
+
802,
|
| 980 |
+
314
|
| 981 |
+
],
|
| 982 |
+
"page_idx": 7
|
| 983 |
+
},
|
| 984 |
+
{
|
| 985 |
+
"type": "table",
|
| 986 |
+
"img_path": "images/bb959ec3417f3840995c7c29944fe7f37068c014179d29bad9de3e8aca6289f2.jpg",
|
| 987 |
+
"table_caption": [
|
| 988 |
+
"Table 3: Comparison of ‘vanilla’ and (PAIRNORM-SI/ residual)-enhanced GAT performance on Cora, Citeseer, Pubmed, and CoauthorCS for SSNC-MV problem, with $0 \\%$ and $1 0 0 \\%$ feature missing rate. $t$ represents the skip-step of residual connection. (See A.5 Fig. 9 for more settings.) "
|
| 989 |
+
],
|
| 990 |
+
"table_footnote": [],
|
| 991 |
+
"table_body": "<table><tr><td rowspan=\"2\">Dataset Missing(%) Method</td><td rowspan=\"2\">0%</td><td colspan=\"2\">Cora 100%</td><td colspan=\"4\">Citeseer</td><td colspan=\"4\">Pubmed</td><td colspan=\"4\">Coauthorcs</td></tr><tr><td colspan=\"2\"></td><td colspan=\"2\">0% Acc #L</td><td colspan=\"2\">100% Acc #L</td><td colspan=\"2\">0% Acc #L</td><td colspan=\"2\">100% Acc #L</td><td colspan=\"2\">0% Acc #L</td><td colspan=\"2\">100% Acc #L</td></tr><tr><td></td><td>Acc #L 0.823</td><td></td><td>Acc #L</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>GAT</td><td></td><td>2|</td><td>0.653</td><td>4</td><td>0.693</td><td>210.428</td><td></td><td>4 |0.774</td><td></td><td>6|0.631</td><td></td><td>4 [0.892</td><td></td><td>4|0.737</td><td>4</td></tr><tr><td>GAT-PN</td><td>0.787</td><td>2</td><td>0.718</td><td>6</td><td>0.670</td><td>2 0.483</td><td>4</td><td>0.774</td><td>12</td><td>0.714</td><td>10</td><td>0.916</td><td>2</td><td>0.843</td><td>8</td></tr><tr><td>GAT-t1</td><td>0.822 0.787</td><td>2</td><td>0.706</td><td>8</td><td>0.693</td><td>2 0.461</td><td>6</td><td>0.769</td><td>4</td><td>0.698</td><td>8</td><td>0.899</td><td>4 2</td><td>0.842</td><td>10</td></tr><tr><td>GAT-t1-PN GAT-t2</td><td>0.820</td><td>2 2</td><td>0.710 0.691</td><td>10</td><td>0.658</td><td>6 0.500 0.461</td><td>10 6</td><td>0.757 0.774</td><td>4 8</td><td>0.684 0.702</td><td>12 8</td><td>0.911 0.895</td><td></td><td>0.844 0.803</td><td>20</td></tr><tr><td>GAT-t2-PN</td><td>0.788</td><td>4</td><td>0.738</td><td>8 12</td><td>s0.692 0.672</td><td>2 4 0.517</td><td>10</td><td>0.776</td><td>15</td><td>0.704</td><td>12</td><td>0.917</td><td>4 2</td><td>0.855</td><td>6 30</td></tr></table>",
|
| 992 |
+
"bbox": [
|
| 993 |
+
191,
|
| 994 |
+
361,
|
| 995 |
+
805,
|
| 996 |
+
494
|
| 997 |
+
],
|
| 998 |
+
"page_idx": 7
|
| 999 |
+
},
|
| 1000 |
+
{
|
| 1001 |
+
"type": "text",
|
| 1002 |
+
"text": "5 RELATED WORK ",
|
| 1003 |
+
"text_level": 1,
|
| 1004 |
+
"bbox": [
|
| 1005 |
+
176,
|
| 1006 |
+
508,
|
| 1007 |
+
344,
|
| 1008 |
+
525
|
| 1009 |
+
],
|
| 1010 |
+
"page_idx": 7
|
| 1011 |
+
},
|
| 1012 |
+
{
|
| 1013 |
+
"type": "text",
|
| 1014 |
+
"text": "Oversmoothing in GNNs: Li et al. (2018) was the first to call attention to the oversmoothing problem. Xu et al. (2018) introduced Jumping Knowledge Networks, which employ skip connections for multi-hop message passing and also enable different neighborhood ranges. Klicpera et al. (2019) proposed a propagation scheme based on personalized Pagerank that ensures locality (via teleports) which in turn prevents oversmoothing. Li et al. (2019) built on ideas from ResNet to use residual as well as dense connections to train deep GCNs. DropEdge Rong et al. (2019) proposed to alleviate oversmoothing through message passing reduction via removing a certain fraction of edges at random from the input graph. These are all specialized solutions that introduce additional parameters and/or a different network architecture. ",
|
| 1015 |
+
"bbox": [
|
| 1016 |
+
173,
|
| 1017 |
+
540,
|
| 1018 |
+
825,
|
| 1019 |
+
665
|
| 1020 |
+
],
|
| 1021 |
+
"page_idx": 7
|
| 1022 |
+
},
|
| 1023 |
+
{
|
| 1024 |
+
"type": "text",
|
| 1025 |
+
"text": "Normalization Schemes for Deep-NNs: There exist various normalization schemes proposed for deep neural networks, including batch normalization Ioffe & Szegedy (2015), weight normalization Salimans & Kingma (2016), layer normalization Ba et al. (2016), and so on. Conceptually these have substantially different goals (e.g., reducing training time), and were not proposed for graph neural networks nor the oversmoothing problem therein. Important difference to note is that larger depth in regular neural-nets does not translate to more hops of propagation on a graph structure. ",
|
| 1026 |
+
"bbox": [
|
| 1027 |
+
174,
|
| 1028 |
+
666,
|
| 1029 |
+
825,
|
| 1030 |
+
750
|
| 1031 |
+
],
|
| 1032 |
+
"page_idx": 7
|
| 1033 |
+
},
|
| 1034 |
+
{
|
| 1035 |
+
"type": "text",
|
| 1036 |
+
"text": "6 CONCLUSION ",
|
| 1037 |
+
"text_level": 1,
|
| 1038 |
+
"bbox": [
|
| 1039 |
+
176,
|
| 1040 |
+
765,
|
| 1041 |
+
318,
|
| 1042 |
+
781
|
| 1043 |
+
],
|
| 1044 |
+
"page_idx": 7
|
| 1045 |
+
},
|
| 1046 |
+
{
|
| 1047 |
+
"type": "text",
|
| 1048 |
+
"text": "We investigated the oversmoothing problem in GNNs and proposed PAIRNORM, a novel normalization layer that boosts the robustness of deep GNNs against oversmoothing. PAIRNORM is fast to compute, requires no change in network architecture nor any extra parameters, and can be applied to any GNN. Experiments on real-world classification tasks showed the effectiveness of PAIRNORM, where it provides performance gains when the task benefits from more layers. Future work will explore other use cases of deeper GNNs that could further showcase PAIRNORM’s advantages. ",
|
| 1049 |
+
"bbox": [
|
| 1050 |
+
174,
|
| 1051 |
+
796,
|
| 1052 |
+
825,
|
| 1053 |
+
881
|
| 1054 |
+
],
|
| 1055 |
+
"page_idx": 7
|
| 1056 |
+
},
|
| 1057 |
+
{
|
| 1058 |
+
"type": "text",
|
| 1059 |
+
"text": "REFERENCES ",
|
| 1060 |
+
"text_level": 1,
|
| 1061 |
+
"bbox": [
|
| 1062 |
+
176,
|
| 1063 |
+
102,
|
| 1064 |
+
287,
|
| 1065 |
+
118
|
| 1066 |
+
],
|
| 1067 |
+
"page_idx": 8
|
| 1068 |
+
},
|
| 1069 |
+
{
|
| 1070 |
+
"type": "text",
|
| 1071 |
+
"text": "Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. CoRR, abs/1607.06450, 2016. ",
|
| 1072 |
+
"bbox": [
|
| 1073 |
+
173,
|
| 1074 |
+
132,
|
| 1075 |
+
825,
|
| 1076 |
+
161
|
| 1077 |
+
],
|
| 1078 |
+
"page_idx": 8
|
| 1079 |
+
},
|
| 1080 |
+
{
|
| 1081 |
+
"type": "text",
|
| 1082 |
+
"text": "Olivier Chapelle, Bernhard Scholkopf, and Alexander Zien. ¨ Semi-Supervised Learning. 2006. ",
|
| 1083 |
+
"bbox": [
|
| 1084 |
+
174,
|
| 1085 |
+
170,
|
| 1086 |
+
790,
|
| 1087 |
+
185
|
| 1088 |
+
],
|
| 1089 |
+
"page_idx": 8
|
| 1090 |
+
},
|
| 1091 |
+
{
|
| 1092 |
+
"type": "text",
|
| 1093 |
+
"text": "William L. Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. In NIPS, pp. 1024–1034, 2017. ",
|
| 1094 |
+
"bbox": [
|
| 1095 |
+
174,
|
| 1096 |
+
194,
|
| 1097 |
+
820,
|
| 1098 |
+
223
|
| 1099 |
+
],
|
| 1100 |
+
"page_idx": 8
|
| 1101 |
+
},
|
| 1102 |
+
{
|
| 1103 |
+
"type": "text",
|
| 1104 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep Residual Learning for Image Recognition. In Proceedings of 2016 IEEE Conference on Computer Vision and Pattern Recognition, pp. 770–778. IEEE, 2016. ",
|
| 1105 |
+
"bbox": [
|
| 1106 |
+
176,
|
| 1107 |
+
232,
|
| 1108 |
+
823,
|
| 1109 |
+
275
|
| 1110 |
+
],
|
| 1111 |
+
"page_idx": 8
|
| 1112 |
+
},
|
| 1113 |
+
{
|
| 1114 |
+
"type": "text",
|
| 1115 |
+
"text": "Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. CoRR, abs/1502.03167, 2015. ",
|
| 1116 |
+
"bbox": [
|
| 1117 |
+
173,
|
| 1118 |
+
284,
|
| 1119 |
+
821,
|
| 1120 |
+
313
|
| 1121 |
+
],
|
| 1122 |
+
"page_idx": 8
|
| 1123 |
+
},
|
| 1124 |
+
{
|
| 1125 |
+
"type": "text",
|
| 1126 |
+
"text": "Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In International Conference on Learning Representations (ICLR). OpenReview.net, 2017. ",
|
| 1127 |
+
"bbox": [
|
| 1128 |
+
173,
|
| 1129 |
+
320,
|
| 1130 |
+
823,
|
| 1131 |
+
352
|
| 1132 |
+
],
|
| 1133 |
+
"page_idx": 8
|
| 1134 |
+
},
|
| 1135 |
+
{
|
| 1136 |
+
"type": "text",
|
| 1137 |
+
"text": "Johannes Klicpera, Aleksandar Bojchevski, and Stephan Gunnemann. Combining neural networks ¨ with personalized pagerank for classification on graphs. In International Conference on Learning Representations (ICLR), 2019. ",
|
| 1138 |
+
"bbox": [
|
| 1139 |
+
171,
|
| 1140 |
+
358,
|
| 1141 |
+
823,
|
| 1142 |
+
402
|
| 1143 |
+
],
|
| 1144 |
+
"page_idx": 8
|
| 1145 |
+
},
|
| 1146 |
+
{
|
| 1147 |
+
"type": "text",
|
| 1148 |
+
"text": "Guohao Li, Matthias Muller, Ali Thabet, and Bernard Ghanem. Can GCNs go as deep as CNNs? ¨ CoRR, abs/1904.03751, 2019. ",
|
| 1149 |
+
"bbox": [
|
| 1150 |
+
173,
|
| 1151 |
+
410,
|
| 1152 |
+
823,
|
| 1153 |
+
440
|
| 1154 |
+
],
|
| 1155 |
+
"page_idx": 8
|
| 1156 |
+
},
|
| 1157 |
+
{
|
| 1158 |
+
"type": "text",
|
| 1159 |
+
"text": "Qimai Li, Zhichao Han, and Xiao-Ming Wu. Deeper Insights into Graph Convolutional Networks for Semi-Supervised Learning. In Proceedings of the 32nd AAAI Conference on Artificial Intelligence, pp. 3538–3545, 2018. ",
|
| 1160 |
+
"bbox": [
|
| 1161 |
+
173,
|
| 1162 |
+
448,
|
| 1163 |
+
823,
|
| 1164 |
+
492
|
| 1165 |
+
],
|
| 1166 |
+
"page_idx": 8
|
| 1167 |
+
},
|
| 1168 |
+
{
|
| 1169 |
+
"type": "text",
|
| 1170 |
+
"text": "Hoang NT and Takanori Maehara. Revisiting graph neural networks: All we have is low-pass filters. CoRR, abs/1905.09550, 2019. ",
|
| 1171 |
+
"bbox": [
|
| 1172 |
+
173,
|
| 1173 |
+
500,
|
| 1174 |
+
821,
|
| 1175 |
+
530
|
| 1176 |
+
],
|
| 1177 |
+
"page_idx": 8
|
| 1178 |
+
},
|
| 1179 |
+
{
|
| 1180 |
+
"type": "text",
|
| 1181 |
+
"text": "Meng Qu, Yoshua Bengio, and Jian Tang. Gmnn: Graph markov neural networks. In International Conference on Machine Learning, pp. 5241–5250, 2019. ",
|
| 1182 |
+
"bbox": [
|
| 1183 |
+
173,
|
| 1184 |
+
537,
|
| 1185 |
+
823,
|
| 1186 |
+
568
|
| 1187 |
+
],
|
| 1188 |
+
"page_idx": 8
|
| 1189 |
+
},
|
| 1190 |
+
{
|
| 1191 |
+
"type": "text",
|
| 1192 |
+
"text": "Yu Rong, Wenbing Huang, Tingyang Xu, and Junzhou Huang. The truly deep graph convolutional networks for node classification. CoRR, abs/1907.10903, 2019. ",
|
| 1193 |
+
"bbox": [
|
| 1194 |
+
174,
|
| 1195 |
+
575,
|
| 1196 |
+
823,
|
| 1197 |
+
604
|
| 1198 |
+
],
|
| 1199 |
+
"page_idx": 8
|
| 1200 |
+
},
|
| 1201 |
+
{
|
| 1202 |
+
"type": "text",
|
| 1203 |
+
"text": "Tim Salimans and Durk P Kingma. Weight normalization: A simple reparameterization to accelerate training of deep neural networks. In Advances in Neural Information Processing Systems, pp. 901–909, 2016. ",
|
| 1204 |
+
"bbox": [
|
| 1205 |
+
174,
|
| 1206 |
+
613,
|
| 1207 |
+
823,
|
| 1208 |
+
656
|
| 1209 |
+
],
|
| 1210 |
+
"page_idx": 8
|
| 1211 |
+
},
|
| 1212 |
+
{
|
| 1213 |
+
"type": "text",
|
| 1214 |
+
"text": "Prithviraj Sen, Galileo Namata, Mustafa Bilgic, Lise Getoor, Brian Galligher, and Tina Eliassi-Rad. Collective classification in network data. AI magazine, 29(3):93–93, 2008. ",
|
| 1215 |
+
"bbox": [
|
| 1216 |
+
171,
|
| 1217 |
+
664,
|
| 1218 |
+
821,
|
| 1219 |
+
694
|
| 1220 |
+
],
|
| 1221 |
+
"page_idx": 8
|
| 1222 |
+
},
|
| 1223 |
+
{
|
| 1224 |
+
"type": "text",
|
| 1225 |
+
"text": "Oleksandr Shchur, Maximilian Mumme, Aleksandar Bojchevski, and Stephan Gunnemann. Pitfalls ¨ of graph neural network evaluation. arXiv preprint arXiv:1811.05868, 2018. ",
|
| 1226 |
+
"bbox": [
|
| 1227 |
+
171,
|
| 1228 |
+
702,
|
| 1229 |
+
823,
|
| 1230 |
+
732
|
| 1231 |
+
],
|
| 1232 |
+
"page_idx": 8
|
| 1233 |
+
},
|
| 1234 |
+
{
|
| 1235 |
+
"type": "text",
|
| 1236 |
+
"text": "Petar Velickovic, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Li, and Yoshua Bengio. Graph attention networks. In International Conference on Learning Representations (ICLR). OpenReview.net, 2018. ",
|
| 1237 |
+
"bbox": [
|
| 1238 |
+
173,
|
| 1239 |
+
739,
|
| 1240 |
+
825,
|
| 1241 |
+
784
|
| 1242 |
+
],
|
| 1243 |
+
"page_idx": 8
|
| 1244 |
+
},
|
| 1245 |
+
{
|
| 1246 |
+
"type": "text",
|
| 1247 |
+
"text": "Felix Wu, Amauri H. Souza Jr., Tianyi Zhang, Christopher Fifty, Tao Yu, and Kilian Q. Weinberger. Simplifying graph convolutional networks. In ICML, volume 97 of Proceedings of Machine Learning Research, pp. 6861–6871. PMLR, 2019. ",
|
| 1248 |
+
"bbox": [
|
| 1249 |
+
173,
|
| 1250 |
+
791,
|
| 1251 |
+
823,
|
| 1252 |
+
835
|
| 1253 |
+
],
|
| 1254 |
+
"page_idx": 8
|
| 1255 |
+
},
|
| 1256 |
+
{
|
| 1257 |
+
"type": "text",
|
| 1258 |
+
"text": "Keyulu Xu, Chengtao Li, Yonglong Tian, Tomohiro Sonobe, Ken-ichi Kawarabayashi, and Stefanie Jegelka. Representation Learning on Graphs with Jumping Knowledge Networks. In Proceedings of the 35th International Conference on Machine Learning, volume 80, pp. 5453–5462, 2018. ",
|
| 1259 |
+
"bbox": [
|
| 1260 |
+
174,
|
| 1261 |
+
843,
|
| 1262 |
+
826,
|
| 1263 |
+
887
|
| 1264 |
+
],
|
| 1265 |
+
"page_idx": 8
|
| 1266 |
+
},
|
| 1267 |
+
{
|
| 1268 |
+
"type": "text",
|
| 1269 |
+
"text": "A APPENDIX ",
|
| 1270 |
+
"text_level": 1,
|
| 1271 |
+
"bbox": [
|
| 1272 |
+
176,
|
| 1273 |
+
102,
|
| 1274 |
+
299,
|
| 1275 |
+
117
|
| 1276 |
+
],
|
| 1277 |
+
"page_idx": 9
|
| 1278 |
+
},
|
| 1279 |
+
{
|
| 1280 |
+
"type": "text",
|
| 1281 |
+
"text": "A.1 DERIVATION OF EQ. 8 ",
|
| 1282 |
+
"bbox": [
|
| 1283 |
+
176,
|
| 1284 |
+
133,
|
| 1285 |
+
374,
|
| 1286 |
+
148
|
| 1287 |
+
],
|
| 1288 |
+
"page_idx": 9
|
| 1289 |
+
},
|
| 1290 |
+
{
|
| 1291 |
+
"type": "equation",
|
| 1292 |
+
"img_path": "images/fa2db0323ee062b173bbf75fbbe53d3843a69a716d76354d19d0ed59959bd6ae.jpg",
|
| 1293 |
+
"text": "$$\n\\begin{array} { l } { { \\displaystyle \\mathrm { T P S D } ( \\widetilde { \\mathbf { X } } ) = \\sum _ { i , j \\in [ n ] } \\big \\| \\widetilde { \\mathbf { x } } _ { i } - \\widetilde { \\mathbf { x } } _ { j } \\big \\| _ { 2 } ^ { 2 } = \\sum _ { i , j \\in [ n ] } \\big ( \\widetilde { \\mathbf { x } } _ { i } - \\widetilde { \\mathbf { x } } _ { j } \\big ) ^ { T } ( \\widetilde { \\mathbf { x } } _ { i } - \\mathbf { y } ) } } \\\\ { { \\displaystyle = \\sum _ { i , j \\in [ n ] } \\big ( \\widetilde { \\mathbf { x } } _ { i } ^ { T } \\widetilde { \\mathbf { x } } _ { j } + \\widetilde { \\mathbf { x } } _ { j } ^ { T } \\widetilde { \\mathbf { x } } _ { j } - 2 \\widetilde { \\mathbf { x } } _ { i } ^ { T } \\widetilde { \\mathbf { x } } _ { j } \\big ) } } \\\\ { { \\displaystyle = 2 n \\sum _ { i } \\sum _ { j \\in [ n ] } \\widetilde { \\mathbf { x } } _ { i } ^ { T } \\widetilde { \\mathbf { x } } _ { i } - 2 \\sum _ { j \\in [ n ] } \\widetilde { \\mathbf { x } } _ { i } ^ { T } \\widetilde { \\mathbf { x } } _ { j } } } \\\\ { { \\displaystyle \\quad = 2 n \\sum _ { i } \\sum _ { j \\in [ n ] } \\widetilde { \\mathbf { x } } _ { i } \\widetilde { \\mathbf { x } } _ { i } - 2 \\sum _ { i } \\sum _ { j \\in [ n ] } \\widetilde { \\mathbf { x } } _ { i } ^ { T } \\widetilde { \\mathbf { x } } _ { j } } } \\\\ { { \\displaystyle \\qquad \\quad = 2 n \\sum _ { i \\in [ n ] } \\big \\| \\widetilde { \\mathbf { x } } _ { i } \\big \\| _ { 2 } ^ { 2 } - 2 1 ^ { T } \\widetilde { \\mathbf { x } } \\widetilde { \\mathbf { x } } ^ { T } \\widetilde { \\mathbf { 1 } } } } \\\\ { { \\displaystyle \\qquad \\quad = 2 n \\sum _ { i \\in [ n ] } \\big \\| \\widetilde { \\mathbf { x } } _ { i } \\big \\| _ { 2 } ^ { 2 } - 2 \\big \\| \\mathbf { 1 } ^ { T } \\widetilde { \\mathbf { x } } _ { i } \\big \\| _ { 2 } ^ { 2 } } } \\\\ { { \\displaystyle \\qquad \\quad = 2 n \\Big ( \\Big \\frac { 1 } { n } \\sum _ { i = [ n ] } ^ { n } \\big \\| \\widetilde { \\mathbf { x } } _ { i } \\big \\| _ { 2 } ^ { 2 } - \\big \\| \\widetilde { \\mathbf { x } } _ { i } ^ { n } \\big \\| _ { 2 } ^ { 2 } } } \\\\ \\displaystyle \\qquad = 2 n ^ { 2 } \\ \\end{array}\n$$",
|
| 1294 |
+
"text_format": "latex",
|
| 1295 |
+
"bbox": [
|
| 1296 |
+
292,
|
| 1297 |
+
157,
|
| 1298 |
+
684,
|
| 1299 |
+
386
|
| 1300 |
+
],
|
| 1301 |
+
"page_idx": 9
|
| 1302 |
+
},
|
| 1303 |
+
{
|
| 1304 |
+
"type": "text",
|
| 1305 |
+
"text": "A.2 DATASET STATISTICS ",
|
| 1306 |
+
"text_level": 1,
|
| 1307 |
+
"bbox": [
|
| 1308 |
+
176,
|
| 1309 |
+
392,
|
| 1310 |
+
367,
|
| 1311 |
+
406
|
| 1312 |
+
],
|
| 1313 |
+
"page_idx": 9
|
| 1314 |
+
},
|
| 1315 |
+
{
|
| 1316 |
+
"type": "table",
|
| 1317 |
+
"img_path": "images/a554c32dc185ce07e2a8626a7dcb6dd9f3d9989fe5d46ae06df462b0468b407a.jpg",
|
| 1318 |
+
"table_caption": [
|
| 1319 |
+
"Table 4: Dataset statistics. ",
|
| 1320 |
+
"A.3 ADDITIONAL PERFORMANCE PLOTS WITH INCREASING NUMBER OF LAYERS "
|
| 1321 |
+
],
|
| 1322 |
+
"table_footnote": [],
|
| 1323 |
+
"table_body": "<table><tr><td>Name</td><td>#Nodes</td><td>#Edges</td><td>#Features</td><td></td><td>#Classes Label Rate</td></tr><tr><td>Cora</td><td>2708</td><td>5429</td><td>1433</td><td>7</td><td>0.052</td></tr><tr><td>Citeseer</td><td>3327</td><td>4732</td><td>3703</td><td>6</td><td>0.036</td></tr><tr><td>Pubmed</td><td>19717</td><td>44338</td><td>500</td><td>3</td><td>0.003</td></tr><tr><td>CoauthorCs</td><td>18333</td><td>81894</td><td>6805</td><td>15</td><td>0.030</td></tr></table>",
|
| 1324 |
+
"bbox": [
|
| 1325 |
+
272,
|
| 1326 |
+
445,
|
| 1327 |
+
725,
|
| 1328 |
+
529
|
| 1329 |
+
],
|
| 1330 |
+
"page_idx": 9
|
| 1331 |
+
},
|
| 1332 |
+
{
|
| 1333 |
+
"type": "image",
|
| 1334 |
+
"img_path": "images/627b136f2cb683067e12832795e6ab454ee952b0c4cb0e3f50066ebbd4663f7f.jpg",
|
| 1335 |
+
"image_caption": [
|
| 1336 |
+
"Figure 5: Comparison of ‘vanilla’ vs. PAIRNORM-enhanced SGC, corresponding to Figure 1, for datasets (from top to bottom) Citeseer, Pubmed, and CoauthorCS. PAIRNORM provides improved robustness to performance decay due to oversmoothing with increasing number of layers. "
|
| 1337 |
+
],
|
| 1338 |
+
"image_footnote": [],
|
| 1339 |
+
"bbox": [
|
| 1340 |
+
205,
|
| 1341 |
+
570,
|
| 1342 |
+
789,
|
| 1343 |
+
851
|
| 1344 |
+
],
|
| 1345 |
+
"page_idx": 9
|
| 1346 |
+
},
|
| 1347 |
+
{
|
| 1348 |
+
"type": "image",
|
| 1349 |
+
"img_path": "images/49c210931fea9be9fc78e0736ea00e7ac768d1712531f097d61e2630ee97e36d.jpg",
|
| 1350 |
+
"image_caption": [
|
| 1351 |
+
"Figure 6: Comparison of ‘vanilla’ (dashed) vs. PAIRNORM-enhanced (solid) GCN (left) and GAT (right) models, corresponding to Figure 3, for datasets (from top to bottom) Citeseer, Pubmed, and CoauthorCS. PAIRNORM provides improved robustness against performance decay with increasing number of layers. "
|
| 1352 |
+
],
|
| 1353 |
+
"image_footnote": [],
|
| 1354 |
+
"bbox": [
|
| 1355 |
+
240,
|
| 1356 |
+
227,
|
| 1357 |
+
754,
|
| 1358 |
+
718
|
| 1359 |
+
],
|
| 1360 |
+
"page_idx": 10
|
| 1361 |
+
},
|
| 1362 |
+
{
|
| 1363 |
+
"type": "image",
|
| 1364 |
+
"img_path": "images/c779b80742b69bdd2c24cbb61a97edec6470afb721283fa9b9345251c88a1009.jpg",
|
| 1365 |
+
"image_caption": [
|
| 1366 |
+
"A.4 ADDITIONAL PERFORMANCE PLOTS WITH INCREASING NUMBER OF LAYERS UNDER SSNC-MV WITH $p = 1$ ",
|
| 1367 |
+
"Figure 7: Comparison of ‘vanilla’ (dashed) vs. PAIRNORM-enhanced (solid) (from left to right) SGC, GCN, and GAT model performance under SSNC-MV for $p = 1$ , corresponding to Figure 4, for datasets (from top to bottom) Citeseer, Pubmed, and CoauthorCS. Green diamond symbols depict the layer at which validation accuracy peaks. PAIRNORM boosts overall performance by enabling more robust deep GNNs. "
|
| 1368 |
+
],
|
| 1369 |
+
"image_footnote": [],
|
| 1370 |
+
"bbox": [
|
| 1371 |
+
186,
|
| 1372 |
+
147,
|
| 1373 |
+
825,
|
| 1374 |
+
607
|
| 1375 |
+
],
|
| 1376 |
+
"page_idx": 11
|
| 1377 |
+
},
|
| 1378 |
+
{
|
| 1379 |
+
"type": "text",
|
| 1380 |
+
"text": "A.5 ADDITIONAL EXPERIMENTS UNDER SSNC-MV WITH INCREASING MISSING FRACTION $p$ ",
|
| 1381 |
+
"text_level": 1,
|
| 1382 |
+
"bbox": [
|
| 1383 |
+
176,
|
| 1384 |
+
103,
|
| 1385 |
+
748,
|
| 1386 |
+
132
|
| 1387 |
+
],
|
| 1388 |
+
"page_idx": 12
|
| 1389 |
+
},
|
| 1390 |
+
{
|
| 1391 |
+
"type": "text",
|
| 1392 |
+
"text": "In this section we report additional experiment results under the SSNC-MV setting with varying missing fraction, in particular $p = \\{ 0 . \\bar { 7 } , 0 . 8 , 0 . 9 , 1 \\}$ and also report the base case where $p = 0$ for comparison. ",
|
| 1393 |
+
"bbox": [
|
| 1394 |
+
176,
|
| 1395 |
+
138,
|
| 1396 |
+
826,
|
| 1397 |
+
180
|
| 1398 |
+
],
|
| 1399 |
+
"page_idx": 12
|
| 1400 |
+
},
|
| 1401 |
+
{
|
| 1402 |
+
"type": "text",
|
| 1403 |
+
"text": "Figure 8 presents results on all four datasets for GCN vs. PAIRNORM-enhanced GCN (denoted PN for short). The models without any skip connections are denoted by $^ { * } { } _ { - 0 }$ , with one-hop skip connection by $^ { * } { } ^ { 1 }$ , and with one and two-hop skip connections by $^ { * } { } _ { - 2 }$ . Barcharts on the right report the best layer that each model produced the highest validation accuracy, and those on the left report the corresponding test accuracy. Figure 9 presents corresponding results for GAT. ",
|
| 1404 |
+
"bbox": [
|
| 1405 |
+
173,
|
| 1406 |
+
188,
|
| 1407 |
+
825,
|
| 1408 |
+
258
|
| 1409 |
+
],
|
| 1410 |
+
"page_idx": 12
|
| 1411 |
+
},
|
| 1412 |
+
{
|
| 1413 |
+
"type": "text",
|
| 1414 |
+
"text": "We discuss the take-aways from these figures on the following page. ",
|
| 1415 |
+
"bbox": [
|
| 1416 |
+
173,
|
| 1417 |
+
265,
|
| 1418 |
+
620,
|
| 1419 |
+
280
|
| 1420 |
+
],
|
| 1421 |
+
"page_idx": 12
|
| 1422 |
+
},
|
| 1423 |
+
{
|
| 1424 |
+
"type": "image",
|
| 1425 |
+
"img_path": "images/0d7b7c1a20f1eb72557237ef6542228cae1c28b9d6f51fdf4f24b4c7317739e1.jpg",
|
| 1426 |
+
"image_caption": [
|
| 1427 |
+
"Figure 8: Supplementary results to Table 2 for GCN on (from top to bottom) Cora, Citeseer, Pubmed, and CoauthorCS. "
|
| 1428 |
+
],
|
| 1429 |
+
"image_footnote": [],
|
| 1430 |
+
"bbox": [
|
| 1431 |
+
183,
|
| 1432 |
+
291,
|
| 1433 |
+
830,
|
| 1434 |
+
835
|
| 1435 |
+
],
|
| 1436 |
+
"page_idx": 12
|
| 1437 |
+
},
|
| 1438 |
+
{
|
| 1439 |
+
"type": "text",
|
| 1440 |
+
"text": "We make the following observations based on Figures 8 and 9: ",
|
| 1441 |
+
"bbox": [
|
| 1442 |
+
174,
|
| 1443 |
+
103,
|
| 1444 |
+
583,
|
| 1445 |
+
118
|
| 1446 |
+
],
|
| 1447 |
+
"page_idx": 13
|
| 1448 |
+
},
|
| 1449 |
+
{
|
| 1450 |
+
"type": "text",
|
| 1451 |
+
"text": "• Performance of ‘vanilla’ GCN and GAT models without skip connections (i.e., GCN-0 and GAT-0) drop monotonically as we increase missing fraction $p$ . \n• PAIRNORM-enhanced ‘vanilla’ models (PN-0, no skips) perform comparably or better than GCN-0 and GAT-0 in all cases, especially as $p$ increases. In other words, with PAIRNORM at work, model performance is more robust against missing data. Best number of layers for GCN-0 as we increase $p$ only changes between 2-4. For GAT-0, it changes mostly between 2-6. \n• PAIRNORM-enhanced ‘vanilla’ models (PN-0, no skips) can go deeper, i.e., they can leverage a larger range of #layers (2-12) as we increase $p$ . Specifically, GCN-PN-0 (GAT-PN-0) uses equal number or more layers than GCN-0 (GAT-0) in almost all cases. Without any normalization, adding skip connections helps—GCN/GAT-1 and GCN/GAT-2 are better than GCN/GAT-0, especially as we increase $p$ . \n• With PAIRNORM but no-skip, performance is comparable or better than just adding skips. \n• Adding skips on top of PAIRNORM does not seem to introduce any notable gains. ",
|
| 1452 |
+
"bbox": [
|
| 1453 |
+
215,
|
| 1454 |
+
125,
|
| 1455 |
+
825,
|
| 1456 |
+
319
|
| 1457 |
+
],
|
| 1458 |
+
"page_idx": 13
|
| 1459 |
+
},
|
| 1460 |
+
{
|
| 1461 |
+
"type": "text",
|
| 1462 |
+
"text": "In summary, simply employing our PAIRNORM for GCN and GAT provides robustness against oversmoothing that allows them to go deeper and achieve improved performance under SSNC-MV. ",
|
| 1463 |
+
"bbox": [
|
| 1464 |
+
173,
|
| 1465 |
+
325,
|
| 1466 |
+
823,
|
| 1467 |
+
354
|
| 1468 |
+
],
|
| 1469 |
+
"page_idx": 13
|
| 1470 |
+
},
|
| 1471 |
+
{
|
| 1472 |
+
"type": "image",
|
| 1473 |
+
"img_path": "images/5af8696357db4e766480670d62df5ad543dd644da4d5b8e2682680e390593102.jpg",
|
| 1474 |
+
"image_caption": [
|
| 1475 |
+
"Figure 9: Supplementary results to Table 3 for GAT on (from top to bottom) Cora, Citeseer, Pubmed, and CoauthorCS. "
|
| 1476 |
+
],
|
| 1477 |
+
"image_footnote": [],
|
| 1478 |
+
"bbox": [
|
| 1479 |
+
183,
|
| 1480 |
+
368,
|
| 1481 |
+
831,
|
| 1482 |
+
867
|
| 1483 |
+
],
|
| 1484 |
+
"page_idx": 13
|
| 1485 |
+
},
|
| 1486 |
+
{
|
| 1487 |
+
"type": "text",
|
| 1488 |
+
"text": "A.6 CASE STUDY: ADDITIONAL MEASURES FOR PAIRNORM AND PAIRNORM-SI WITH SGC AND GCN ",
|
| 1489 |
+
"bbox": [
|
| 1490 |
+
173,
|
| 1491 |
+
103,
|
| 1492 |
+
821,
|
| 1493 |
+
132
|
| 1494 |
+
],
|
| 1495 |
+
"page_idx": 14
|
| 1496 |
+
},
|
| 1497 |
+
{
|
| 1498 |
+
"type": "text",
|
| 1499 |
+
"text": "To better understand why PAIRNORM and PAIRNORM-SI are helpful for training deep GNNs, we report additional measures for (SGC and GCN) with (PAIRNORM and PAIRNORM-SI) over the Cora dataset. In the main text, we claim TPSD (total pairwise squared distances) is constant across layers for SGC with PAIRNORM (for GCN/GAT this is not guaranteed because of the influence of activation function and dropout layer). In this section we empirically measure pairwise (squared) distances for both SGC and GCN, with PAIRNORM and PAIRNORM-SI. ",
|
| 1500 |
+
"bbox": [
|
| 1501 |
+
174,
|
| 1502 |
+
138,
|
| 1503 |
+
825,
|
| 1504 |
+
222
|
| 1505 |
+
],
|
| 1506 |
+
"page_idx": 14
|
| 1507 |
+
},
|
| 1508 |
+
{
|
| 1509 |
+
"type": "text",
|
| 1510 |
+
"text": "A.6.1 SGC WITH PAIRNORM AND PAIRNORM-SI ",
|
| 1511 |
+
"text_level": 1,
|
| 1512 |
+
"bbox": [
|
| 1513 |
+
176,
|
| 1514 |
+
238,
|
| 1515 |
+
529,
|
| 1516 |
+
252
|
| 1517 |
+
],
|
| 1518 |
+
"page_idx": 14
|
| 1519 |
+
},
|
| 1520 |
+
{
|
| 1521 |
+
"type": "text",
|
| 1522 |
+
"text": "To verify our analysis of PAIRNORM for SGC, and understand how the variant of PAIRNORM (PAIRNORM-SI) works, we measure the average pairwise squared distance (APSD) as well as the average pairwise distance (APD) between the representations for two categories of node pairs: (1) connected pairs (nodes that are directly connected in graph) and (2) random pairs (uniformly randomly chosen among the node set). APSD of random pairs reflects the TPSD, and APD of random pairs reflects the total pairwise distance (TPD). Under the homophily assumption of the labels w.r.t. the graph structure, we want APD or APSD of connected pairs to be small while keeping APD or APSD of random pairs relatively large. ",
|
| 1523 |
+
"bbox": [
|
| 1524 |
+
174,
|
| 1525 |
+
262,
|
| 1526 |
+
825,
|
| 1527 |
+
375
|
| 1528 |
+
],
|
| 1529 |
+
"page_idx": 14
|
| 1530 |
+
},
|
| 1531 |
+
{
|
| 1532 |
+
"type": "text",
|
| 1533 |
+
"text": "The results are shown in Figure 10. Without normalization, SGC suffers from fast diminishing APD and APSD of random pairs. As we have proved, PAIRNORM normalizes APSD to be constant across layers, however it does not normalize APD, which appears to decrease linearly with increasing number of layers. Surprisingly, although PAIRNORM-SI is not theoretically proved to have a constant APSD and APD, empirically it achieves more stable APSD and APD than PAIRNORM. We were not able to prove this phenomenon mathematically, and leave it for further investigation. ",
|
| 1534 |
+
"bbox": [
|
| 1535 |
+
174,
|
| 1536 |
+
381,
|
| 1537 |
+
825,
|
| 1538 |
+
465
|
| 1539 |
+
],
|
| 1540 |
+
"page_idx": 14
|
| 1541 |
+
},
|
| 1542 |
+
{
|
| 1543 |
+
"type": "image",
|
| 1544 |
+
"img_path": "images/ae436f7f59e77acf1dd9f6d7e0e09d9a1facf14cb62996a08d1daa89db8c6452.jpg",
|
| 1545 |
+
"image_caption": [
|
| 1546 |
+
"Figure 10: Measuring average distance (squared and not-squared) between representations at each layer for SGC, SGC with PAIRNORM, and SGC with PAIRNORM-SI. The setting is the same with Figure 1 and they share the same performance. "
|
| 1547 |
+
],
|
| 1548 |
+
"image_footnote": [],
|
| 1549 |
+
"bbox": [
|
| 1550 |
+
183,
|
| 1551 |
+
483,
|
| 1552 |
+
813,
|
| 1553 |
+
724
|
| 1554 |
+
],
|
| 1555 |
+
"page_idx": 14
|
| 1556 |
+
},
|
| 1557 |
+
{
|
| 1558 |
+
"type": "text",
|
| 1559 |
+
"text": "APD does not capture the full information of the distribution of pairwise distances. To show how the distribution changes by increasing number of layers, we use Tensorboard to plot the histograms of pairwise distances, as shown in Figure 11. Comparing SGC and SGC with PAIRNORM, adding PAIRNORM keeps the left shift (shrinkage) of the distribution of random pair distances much slower than without normalization, while still sharing similar behavior of the distribution of connected pairwise distances. PAIRNORM-SI seems to be more powerful in keeping the median and mean of the distribution of random pair distances stable, while “spreading” the distribution out by increasing the variance. The performance of PAIRNORM and PAIRNORM-SI are similar, however it seems that PAIRNORM-SI is more powerful in stabilizing TPD and TPSD. ",
|
| 1560 |
+
"bbox": [
|
| 1561 |
+
174,
|
| 1562 |
+
797,
|
| 1563 |
+
825,
|
| 1564 |
+
924
|
| 1565 |
+
],
|
| 1566 |
+
"page_idx": 14
|
| 1567 |
+
},
|
| 1568 |
+
{
|
| 1569 |
+
"type": "image",
|
| 1570 |
+
"img_path": "images/7b388377adcaf83d05c83715ca45a5300a22c8267be76f9fe92a56df0c7bbc16.jpg",
|
| 1571 |
+
"image_caption": [
|
| 1572 |
+
"Figure 11: Measuring distribution of distances between representations at each layer for SGC, SGC with PAIRNORM, and SGC with PAIRNORM-SI. Supplementary results for Figure 10. "
|
| 1573 |
+
],
|
| 1574 |
+
"image_footnote": [],
|
| 1575 |
+
"bbox": [
|
| 1576 |
+
178,
|
| 1577 |
+
102,
|
| 1578 |
+
823,
|
| 1579 |
+
335
|
| 1580 |
+
],
|
| 1581 |
+
"page_idx": 15
|
| 1582 |
+
},
|
| 1583 |
+
{
|
| 1584 |
+
"type": "text",
|
| 1585 |
+
"text": "A.6.2 GCN WITH PAIRNORM AND PAIRNORM-SI ",
|
| 1586 |
+
"text_level": 1,
|
| 1587 |
+
"bbox": [
|
| 1588 |
+
174,
|
| 1589 |
+
400,
|
| 1590 |
+
532,
|
| 1591 |
+
415
|
| 1592 |
+
],
|
| 1593 |
+
"page_idx": 15
|
| 1594 |
+
},
|
| 1595 |
+
{
|
| 1596 |
+
"type": "image",
|
| 1597 |
+
"img_path": "images/59f7ec91fe51b33cfef45e58655597546a89d6fe981618538c32b87c2f03cd05.jpg",
|
| 1598 |
+
"image_caption": [
|
| 1599 |
+
"Figure 12: Measuring average distance (squared and not-squared) between representations at each layer for GCN, GCN with PAIRNORM, and GCN with PAIRNORM-SI. We trained three 12-layer GCNs with #hidden ${ \\boldsymbol { \\mathrm { \\Omega } } } = 1 2 8$ and dropout $_ { = 0 . 6 }$ in 1000 epochs. Respective test set accuracies are $3 1 . 0 9 \\%$ , $7 7 . 7 7 \\%$ , $7 5 . 0 9 \\%$ . Note that the scale of distances is not comparable across models, since they have learnable parameters that scale these distances differently. "
|
| 1600 |
+
],
|
| 1601 |
+
"image_footnote": [],
|
| 1602 |
+
"bbox": [
|
| 1603 |
+
181,
|
| 1604 |
+
435,
|
| 1605 |
+
813,
|
| 1606 |
+
678
|
| 1607 |
+
],
|
| 1608 |
+
"page_idx": 15
|
| 1609 |
+
},
|
| 1610 |
+
{
|
| 1611 |
+
"type": "text",
|
| 1612 |
+
"text": "The formal analysis for PAIRNORM and PAIRNORM-SI is based on SGC. GCN (and other GNNs) has learnable parameters, dropout layers, and activation layers, all of which complicate direct mathematical analyses. Here we perform similar empirical measurements for pairwise distances to get a rough sense of how PAIRNORM and PAIRNORM-SI work with GCN based on the Cora dataset. Figures 12 and 13 demonstrate how PAIRNORM and PAIRNORM-SI can help train a relatively deep (12 layers) GCN. ",
|
| 1613 |
+
"bbox": [
|
| 1614 |
+
174,
|
| 1615 |
+
776,
|
| 1616 |
+
825,
|
| 1617 |
+
861
|
| 1618 |
+
],
|
| 1619 |
+
"page_idx": 15
|
| 1620 |
+
},
|
| 1621 |
+
{
|
| 1622 |
+
"type": "text",
|
| 1623 |
+
"text": "Notice that oversmoothing occurs very quickly for GCN without any normalization, where both connected and random pair distances reach zero (!). In contrast, GCN with PAIRNORM or PAIRNORMSI is able to keep random pair distances relatively apart while allowing connected pair distances to shrink. As also stated in main text, using PAIRNORM-SI for GCN and GAT is relatively more stable than using PAIRNORM in general cases (notice the near-constant random pair distances in the rightmost subfigures). There are several possible explanations for why PAIRNORM-SI is more stable. First, as shown in Figure 10 and Figure 12, PAIRNORM-SI not only keeps APSD stable but also APD, further, the plots of distributions of pairwise distances (Figures 11 and 13) also show the power of PAIRNORM-SI (notice the large gap between smaller connected pairwise distances and the larger random pairwise distances). Second, we conjecture that restricting representations to reside on a sphere can make training stable and faster, which we also observe empirically by studying the training curves. Third, GCN and GAT tend to overfit easily for the SSNC problem, due to many learnable parameters across layers and limited labeled input data, therefore it is possible that adding more restriction on these models helps reduce overfitting. ",
|
| 1624 |
+
"bbox": [
|
| 1625 |
+
174,
|
| 1626 |
+
867,
|
| 1627 |
+
823,
|
| 1628 |
+
924
|
| 1629 |
+
],
|
| 1630 |
+
"page_idx": 15
|
| 1631 |
+
},
|
| 1632 |
+
{
|
| 1633 |
+
"type": "text",
|
| 1634 |
+
"text": "",
|
| 1635 |
+
"bbox": [
|
| 1636 |
+
173,
|
| 1637 |
+
103,
|
| 1638 |
+
825,
|
| 1639 |
+
242
|
| 1640 |
+
],
|
| 1641 |
+
"page_idx": 16
|
| 1642 |
+
},
|
| 1643 |
+
{
|
| 1644 |
+
"type": "image",
|
| 1645 |
+
"img_path": "images/4e87bc839305a4fe876fef59f9a350aa8fa1909a4e79ba5c49503a628a339763.jpg",
|
| 1646 |
+
"image_caption": [
|
| 1647 |
+
"Figure 13: Measuring distribution of distances between representations at each layer for GCN, GCN with PAIRNORM, and GCN with PAIRNORM-SI. Supplementary results for Figure 12. "
|
| 1648 |
+
],
|
| 1649 |
+
"image_footnote": [],
|
| 1650 |
+
"bbox": [
|
| 1651 |
+
173,
|
| 1652 |
+
257,
|
| 1653 |
+
823,
|
| 1654 |
+
492
|
| 1655 |
+
],
|
| 1656 |
+
"page_idx": 16
|
| 1657 |
+
},
|
| 1658 |
+
{
|
| 1659 |
+
"type": "text",
|
| 1660 |
+
"text": "All in all, these empirical measurements as illustrated throughout the figures in this section demonstrates that PAIRNORM and PAIRNORM-SI successfully address the oversmoothing problem for deep GNNs. Our work is the first to propose a normalization layer specifically designed for graph neural networks, which we hope will kick-start more work in this area toward training more robust and effective GNNs. ",
|
| 1661 |
+
"bbox": [
|
| 1662 |
+
174,
|
| 1663 |
+
546,
|
| 1664 |
+
825,
|
| 1665 |
+
616
|
| 1666 |
+
],
|
| 1667 |
+
"page_idx": 16
|
| 1668 |
+
}
|
| 1669 |
+
]
|
parse/train/rkecl1rtwB/rkecl1rtwB_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkecl1rtwB/rkecl1rtwB_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkl03ySYDH/rkl03ySYDH_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkl03ySYDH/rkl03ySYDH_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
vlm/test/1ikK0kHjvj/0.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/1.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/10.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/11.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/12.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/13.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/14.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/15.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/16.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/17.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/18.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/19.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/2.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/20.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/21.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/22.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/23.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/24.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/25.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/26.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/27.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/28.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/29.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/3.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/30.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/31.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/32.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/33.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/34.png
ADDED
|
Git LFS Details
|
vlm/test/1ikK0kHjvj/35.png
ADDED
|
Git LFS Details
|