ZHANGYUXUAN-zR commited on
Commit
45c1a2a
·
verified ·
1 Parent(s): 64ac10c

Add files using upload-large-folder tool

Browse files
parse/train/BJlxm30cKm/BJlxm30cKm.md ADDED
@@ -0,0 +1,314 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # AN EMPIRICAL STUDY OF EXAMPLE FORGETTING DURING DEEP NEURAL NETWORK LEARNING
2
+
3
+ Mariya Toneva∗† Carnegie Mellon University
4
+
5
+ Alessandro Sordoni∗ Microsoft Research Montreal
6
+
7
+ Remi Tachet des Combes∗ Microsoft Research Montreal
8
+
9
+ Adam Trischler Microsoft Research Montreal
10
+
11
+ Yoshua Bengio MILA, Universite de Montr ´ eal ´ CIFAR Senior Fellow
12
+
13
+ Geoffrey J. Gordon Microsoft Research Montreal Carnegie Mellon University
14
+
15
+ # ABSTRACT
16
+
17
+ Inspired by the phenomenon of catastrophic forgetting, we investigate the learning dynamics of neural networks as they train on single classification tasks. Our goal is to understand whether a related phenomenon occurs when data does not undergo a clear distributional shift. We define a “forgetting event” to have occurred when an individual training example transitions from being classified correctly to incorrectly over the course of learning. Across several benchmark data sets, we find that: (i) certain examples are forgotten with high frequency, and some not at all; (ii) a data set’s (un)forgettable examples generalize across neural architectures; and (iii) based on forgetting dynamics, a significant fraction of examples can be omitted from the training data set while still maintaining state-of-the-art generalization performance.
18
+
19
+ # 1 INTRODUCTION
20
+
21
+ Many machine learning models, in particular neural networks, cannot perform continual learning. They have a tendency to forget previously learnt information when trained on new tasks, a phenomenon usually called catastrophic forgetting (Kirkpatrick et al., 2017; Ritter et al., 2018). One of the hypothesized causes of catastrophic forgetting in neural networks is the shift in the input distribution across different tasks—e.g., a lack of common factors or structure in the inputs of different tasks might lead standard optimization techniques to converge to radically different solutions each time a new task is presented. In this paper, we draw inspiration from this phenomenon and investigate the extent to which a related forgetting process occurs as a model learns examples traditionally considered to belong to the same task.
22
+
23
+ Similarly to the continual learning setting, in stochastic gradient descent (SGD) optimization, each mini-batch can be considered as a mini-“task” presented to the network sequentially. In this context, we are interested in characterizing the learning dynamics of neural networks by analyzing (catastrophic) example forgetting events. These occur when examples that have been “learnt” (i.e., correctly classified) at some time $t$ in the optimization process are subsequently misclassified — or in other terms forgotten — at a time $t ^ { \prime } > t$ . We thus switch the focus from studying interactions between sequentially presented tasks to studying interactions between sequentially presented dataset examples during SGD optimization. Our starting point is to understand whether there exist examples that are consistently forgotten across subsequent training presentations and, conversely, examples that are never forgotten. We will call the latter unforgettable examples. We hypothesize that specific examples consistently forgotten between subsequent presentations, if they exist, must not share commonalities with other examples from the same task. We therefore analyze the proportion of forgettable/unforgettable examples for a given task and what effects these examples have on a model’s decision boundary and generalization error.
24
+
25
+ The goal of our investigation is two-fold. First, we attempt to gain insight into the optimization process by analyzing interactions among examples during learning and their influence on the final decision boundary. We are particularly interested in whether we can glean insight on the compressibility of a dataset, and thereby increase data efficiency without compromising generalization accuracy. It is a timely problem that has been the recent focus of few-shot learning approaches via meta-learning (Finn et al., 2017; Ravi & Larochelle, 2017). Second, we aim to characterize whether forgetting statistics can be used to identify “important” samples and detect outliers and examples with noisy labels (John, 1995; Brodley & Friedl, 1999; Sukhbaatar et al., 2014; Jiang et al., 2018).
26
+
27
+ Identifying important, or most informative examples is an important line of work and was extensively studied in the literature. Techniques of note — among others — are predefined curricula of examples (Bengio & LeCun, 2007), self-paced learning (Kumar et al., 2010), and more recently meta-learning (Fan et al., 2017). These research directions usually define “hardness” or “commonality” of an example as a function of the loss on that particular example at some point during training (or possibly at convergence). They do not consider whether some examples are consistently forgotten throughout learning. Very recently, Chang et al. (2017) consider re-weighting examples by accounting for the variance of their predictive distribution. This is related to our definition of forgetting events, but the authors provide little analysis of the extent to which the phenomenon occurs in their proposed tasks. Our purpose is to study this phenomenon from an empirical standpoint and characterize its prevalence in different datasets and across different model architectures.
28
+
29
+ Our experimental findings suggest that: a) there exist a large number of unforgettable examples, i.e., examples that are never forgotten once learnt, those examples are stable across seeds and strongly correlated from one neural architecture to another; b) examples with noisy labels are among the most forgotten examples, along with images with “uncommon” features, visually complicated to classify; c) training a neural network on a dataset where a very large fraction of the least forgotten examples have been removed still results in extremely competitive performance on the test set.
30
+
31
+ # 2 RELATED WORK
32
+
33
+ Curriculum Learning and Sample Weighting Curriculum learning is a paradigm that favors learning along a curriculum of examples of increasing difficulty (Bengio et al., 2009). This general idea has found success in a variety of areas since its introduction (Kumar et al., 2010; Lee & Grauman, 2011; Schaul et al., 2015). Kumar et al. (2010) implemented their curriculum by considering easy the examples with a small loss. In our experiments, we empirically validate that unforgettable examples can be safely removed without compromising generalization. Zhao & Zhang (2015); Katharopoulos & Fleuret (2018) relate sample importance to the norm of its loss gradient with respect to the parameters of the network. Fan et al. (2017); Kim & Choi (2018); Jiang et al. (2018) learn a curriculum directly from data in order to minimize the task loss. Jiang et al. (2018) also study the robustness of their method in the context of noisy examples. This relates to a rich literature on outlier detection and removal of examples with noisy labels (John, 1995; Brodley & Friedl, 1999; Sukhbaatar et al., 2014; Jiang et al., 2018). We will provide evidence that noisy examples rank higher in terms of number of forgetting events. Koh & Liang (2017) borrow influence functions from robust statistics to evaluate the impact of the training examples on a model’s predictions.
34
+
35
+ Deep Generalization The study of the generalization properties of deep neural networks when trained by stochastic gradient descent has been the focus of several recent publications (Zhang et al., 2016; Keskar et al., 2016; Chaudhari et al., 2016; Advani & Saxe, 2017). These studies suggest that the generalization error does not depend solely on the complexity of the hypothesis space. For instance, it has been demonstrated that over-parameterized models with many more parameters than training points can still achieve low test error (Huang et al., 2017; Wang et al., 2018) while being complex enough to fit a dataset with completely random labels (Zhang et al., 2016). A possible explanation for this phenomenon is a form of implicit regularization performed by stochastic gradient descent: deep neural networks trained with SGD have been recently shown to converge to the maximum margin solution in the linearly separable case (Soudry et al., 2017; Xu et al., 2018). In our work, we provide empirical evidence that generalization can be maintained when removing a substantial portion of the training examples and without restricting the complexity of the hypothesis class. This goes along the support vector interpretation provided by Soudry et al. (2017).
36
+
37
+ # 3 DEFINING AND COMPUTING EXAMPLE FORGETTING
38
+
39
+ Our general case study for example forgetting is a standard classification setting. Given a dataset $\mathbfcal { D } = ( \mathbf { x } _ { i } , y _ { i } ) _ { i }$ of observation/label pairs, we wish to learn the conditional probability distribution $p ( \boldsymbol { y } | \mathbf { x } ; \boldsymbol { \theta } )$ using a deep neural network with parameters $\theta$ . The network is trained to minimize the empirical risk $\begin{array} { r } { R = \frac { 1 } { | \mathcal { D } | } \sum _ { i } L ( p ( y _ { i } | \mathbf { x } _ { i } ; \boldsymbol { \theta } ) , \dot { y _ { i } } ) } \end{array}$ , where $L$ denotes the cross-entropy loss and $y _ { i } \in$ $1 , \ldots k$ . The minimization is performed using variations of stochastic gradient descent, starting from initial random parameters $\mathcal { \dot { \theta } } ^ { 0 }$ , and by sampling examples at random from the dataset $\mathcal { D }$ .
40
+
41
+ Forgetting and learning events We denote by $\hat { y } _ { i } ^ { t } = \arg \operatorname* { m a x } _ { k } p ( y _ { i k } | \mathbf { x } _ { i } ; \boldsymbol { \theta } ^ { t } )$ the predicted label for example $\mathbf { x } _ { i }$ obtained after $t$ steps of SGD. We also let $\operatorname { a c c } _ { i } ^ { t } = \mathbb { 1 } _ { \hat { y } _ { i } ^ { t } = y _ { i } }$ be a binary variable indicating whether the example is correctly classified at time step $t$ . Example $i$ undergoes a forgetting event when $\operatorname { a c c } _ { i } ^ { t }$ decreases between two consecutive updates: $\operatorname { a c c } _ { i } ^ { t } > \operatorname { a c c } _ { i } ^ { t + 1 }$ . In other words, example $i$ is misclassified at step $t + 1$ after having been correctly classified at step $t$ . Conversely, a learning event has occurred if $\mathrm { a c c } _ { i } ^ { t } < \mathsf { a c c } _ { i } ^ { t + 1 }$ . Statistics that will be of interest in the next sections include the distribution of forgetting events across examples and the first time a learning event occurs.
42
+
43
+ Classification margin We will also be interested in analyzing the classification margin. Our predictors have the form $p ( y _ { i } | \mathbf { x } _ { i } ; \theta ) = \sigma ( \beta ( \mathbf { x } _ { i } ) )$ , where $\sigma$ is a sigmoid (softmax) activation function in the case of binary (categorical) classification. The classification margin $m$ is defined as the difference between the logit of the correct class and the largest logit among the other classes, i.e. $m = \beta _ { k } - \arg \operatorname* { m a x } _ { k ^ { \prime } \neq k } \beta _ { k ^ { \prime } }$ , where $k$ is the index corresponding to the correct class.
44
+
45
+ Unforgettable examples We qualify examples as unforgettable if they are learnt at some point and experience no forgetting events during the whole course of training: example $i$ is unforgettable if the first time it is learnt $t ^ { * }$ verifies $t ^ { * } < \infty$ and for all $k \geq t ^ { * }$ , $\mathsf { a c c } _ { i } ^ { k } \bar { = } 1$ . Note that, according to this definition, examples that are never learnt during training do not qualify as unforgettable. We refer to examples that have been forgotten at least once as forgettable.
46
+
47
+ # 3.1 PROCEDURAL DESCRIPTION AND EXPERIMENTAL SETTING
48
+
49
+ Following the previous definitions, monitoring forgetting events entails computing the prediction for all examples in the dataset at each model update, which would be prohibitively expensive. In practice, for each example, we subsample the full sequence of forgetting events by computing forgetting statistics only when the example is included in the current mini-batch; that is, we compute forgetting across presentations of the same example in subsequent mini-batches. This gives a lower bound on the number of forgetting events an example undergoes during training.
50
+
51
+ We train a classifier on a given dataset and record the forgetting events for each example when they are sampled in the current mini-batch. For the purposes of further analysis, we then sort the dataset’s examples based on the number of forgetting events they undergo. Ties are broken at random when sampling from the ordered data. Samples that are never learnt are considered forgotten an infinite number of times for sorting purposes. Note that this estimate of example forgetting is computationally expensive; see Sec. 6 for a discussion of a cheaper method.
52
+
53
+ We perform our experimental evaluation on three datasets of increasing complexity: MNIST (LeCun et al., 1999), permuted MNIST – a version of MNIST that has the same fixed permutation applied to the pixels of all examples, and CIFAR-10 (Krizhevsky,
54
+
55
+ <table><tr><td>Algorithm1Computingforgettingstatisti</td></tr><tr><td>initialize prev_acc = O,i ∈ D initialize forgetting T[i] = O,i ∈D while not training done do B~ D # sample a minibatch</td></tr><tr><td>for example i∈ B do compute acci if prev_acc;&gt;acci then</td></tr><tr><td>T[i]=T[]+1 prev_acc = acci</td></tr><tr><td>gradient update classifier on B return T</td></tr></table>
56
+
57
+ 2009). We use various model architectures and training schemes that yield test errors comparable with the current state-of-the-art on the respective datasets. In particular, the MNIST-based experiments use a network comprised of two convolutional layers followed by a fully connected one, trained using SGD with momentum and dropout. This network achieves $0 . 8 \%$ test error. For CIFAR$I O$ , we use a ResNet with cutout (DeVries & Taylor, 2017) trained using SGD and momentum with a particular learning rate schedule. This network achieves a competitive $3 . 9 9 \%$ test error. For full experimentation details, see the Supplementary.
58
+
59
+ ![](images/5a03bcd767bb68daec7c991d4d6695a8ecad1a40539a729950f464239e4bae8f.jpg)
60
+ Figure 1: Histograms of forgetting events on (from left to right) MNIST, permutedMNIST and CIFAR-10. Insets show the zoomed-in y-axis.
61
+
62
+ # 4 CHARACTERIZING EXAMPLE FORGETTING
63
+
64
+ Number of forgetting events We estimate the number of forgetting events of all the training examples for the three different datasets (MNIST, permutedMNIST and CIFAR-10) across 5 random seeds. The histograms of forgetting events computed from one seed are shown in Figure 1. There are 55,012, 45,181 and 15,628 unforgettable examples common across 5 seeds, they represent respectively $9 1 . 7 \%$ , $7 5 . 3 \%$ , and $3 1 . 3 \%$ of the corresponding training sets. Note that datasets with less complexity and diversity of examples, such as MNIST, seem to contain significantly more unforgettable examples. permutedMNIST exhibits a complexity balanced between MNIST (easiest) and CIFAR-10 (hardest). This finding seems to suggest a correlation between forgetting statistics and the intrinsic dimension of the learning problem, as recently formalized by Li et al. (2018).
65
+
66
+ Stability across seeds To test the stability of our metric with respect to the variance generated by stochastic gradient descent, we compute the number of forgetting events per example for 10 different random seeds and measure their correlation. From one seed to another, the average Pearson correlation is $8 9 . 2 \%$ . When randomly splitting the 10 different seeds into two sets of 5, the cumulated number of forgetting events within those two sets shows a high correlation of $9 7 . 6 \%$ . We also ran the original experiment on 100 seeds to devise $9 5 \%$ confidence bounds on the average (over 5 seeds) number of forgetting events per example (see Appendix 13). The confidence interval of the least forgotten examples is tight, confirming that examples with a small number of forgetting events can be ranked confidently.
67
+
68
+ Forgetting by chance In order to quantify the possibility of forgetting occurring by chance, we additionally analyze the distribution of forgetting events obtained under the regime of random update steps instead of the true SGD steps. In order to maintain the statistics of the random updates similar to those encountered during SGD, random updates are obtained by shuffling the gradients produced by standard SGD on a main network (more details are provided in Appendix 12). We report the histogram of chance forgetting events in Supplementary Figure 13: examples are being forgotten by chance a small number of time, at most twice and most of the time less than once. The observed stability across seeds, low number of chance forgetting events and the tight confidence bounds suggest that it is unlikely for the ordering produced by the metric to be the by-product of another unrelated random cause.
69
+
70
+ First learning events We investigate whether unforgettable and forgettable examples need to be presented different numbers of times in order to be learnt for the first time (i.e. for the first learning event to occur, as defined in Section 3). The distributions of the presentation numbers at which first learning events occur across all datasets can be seen in Supplemental Figure 8. We observe that, while both unforgettable and forgettable sets contain many examples that are learnt during the first 3-4 presentations, the forgettable examples contain a larger number of examples that are first learnt later in training. The Spearman rank correlation between the first learning event presentations and the number of forgetting events across all training examples is 0.56, indicating a moderate relationship.
71
+
72
+ ![](images/52d8fc501f8a2f5ad67add3dbc30c97b89d36824664c752f3a81cbebdf27415e.jpg)
73
+ Figure 2: Pictures of unforgettable (Top) and forgettable examples (Bottom) of every CIFAR-10 class. Forgettable examples seem to exhibit peculiar or uncommon features. Additional examples are available in Supplemental Figure 15.
74
+
75
+ ![](images/9c52d8bc2ae4475b951870675a51dadacfd8a6b6f88483c03bdf697fcfc9cd16.jpg)
76
+ Figure 3: Distributions of forgetting events across training examples in CIFAR-10 when $2 0 \%$ of labels are randomly changed. Left. Comparison of forgetting events between examples with noisy and original labels. The most forgotten examples are those with noisy labels. No noisy examples are unforgettable. Right. Comparison of forgetting events between examples with noisy labels and the same examples with original labels. Examples exhibit more forgetting when their labels are changed.
77
+
78
+ Misclassification margin The definition of forgetting events is binary and as such fairly crude compared to more sophisticated estimators of example relevance (Zhao & Zhang, 2015; Chang et al., 2017). In order to qualify its validity, we compute the misclassification margin of forgetting events. The misclassification margin of an example is defined as the mean classification margin (defined in Section 3) over all its forgetting events, a negative quantity by definition. The Spearman rank correlation between an example’s number of forgetting events and its mean misclassification margin is -0.74 (computed over 5 seeds, see corresponding 2D-histogram in Supplemental Figure 9). These results suggest that examples which are frequently forgotten have a large misclassification margin.
79
+
80
+ Visual inspection We visualize some of the unforgettable examples in Figure 2 along with some examples that have been most forgotten in the CIFAR-10 dataset. Unforgettable samples are easily recognizable and contain the most obvious class attributes or centered objects, e.g., a plane on a clear sky. On the other hand, the most forgotten examples exhibit more ambiguous characteristics (as in the center image, a truck on a brown background) that may not align with the learning signal common to other examples from the same class.
81
+
82
+ Detection of noisy examples We further investigate the observation that the most forgettable examples seem to exhibit atypical characteristics. We would expect that if highly forgettable examples have atypical class characteristics, then noisily-labeled examples will undergo more forgetting events. We randomly change the labels of $2 0 \%$ of CIFAR-10 and record the number of forgetting events of both the noisy and regular examples through training. The distributions of forgetting events across noisy and regular examples are shown in Figure 3. We observe that the most forgotten examples are those with noisy labels and that no noisy examples are unforgettable. We also compare the forgetting events of the noisy examples to that of the same set of examples with original labels and observe a much higher degree of forgetting in the noisy case. The results of these synthetic experiments support the hypothesis that highly forgettable examples exhibit atypical class characteristics.
83
+
84
+ ![](images/287d6dcf4880b6293bde08d1d57bc47a87b14dc2b28efdb75ee7dcafe9b2c9d1.jpg)
85
+ Figure 4: Synthetic continual learning setup for CIFAR-10. Background color in each column indicates the training partition, curves track performance on both partitions during interleaved training. Solids lines represent the average of 5 runs and dashed lines represent the standard error. The figure highlights that examples that have been forgotten at least once can “support” those that have never been forgotten, as shown in (c.2) and (b.3).
86
+
87
+ # 4.1 CONTINUAL LEARNING SETUP
88
+
89
+ We observed that in harder tasks such as CIFAR-10, a significant portion of examples are forgotten at least once during learning. This leads us to believe that catastrophic forgetting may be observed, to some extent, even when considering examples coming from the same task distribution. To test this hypothesis, we perform an experiment inspired by the standard continual learning setup (McCloskey & Cohen, 1989; Kirkpatrick et al., 2017). We create two tasks by randomly sampling 10k examples from the CIFAR-10 training set and dividing them in two equally-sized partitions $5 \mathrm { k }$ examples each). We treat each partition as a separate ”task” even though they should follow the same distribution. We then train a classifier for 20 epochs on each partition in an alternating fashion, while tracking performance on both partitions. The results are reported in Figure 4 (a). The background color represents which of the two partitions is currently used for training. We observe some forgetting of the second task when we only train on the first task (panel (a.2)). This is somewhat surprising as the two tasks contain examples from the same underlying distribution.
90
+
91
+ We contrast the results from training on random partitions of examples with ones obtained by partitioning the examples based on forgetting statistics (Figure 4 (b)). That is, we first compute the forgetting events for all examples based on Algorithm 1 and we create our tasks by sampling 5k examples that have zero forgetting events (named f0) and 5k examples that have non-zero forgetting events (named fN). We observe that examples that have been forgotten at least once suffer a more drastic form of forgetting than those included in a random split (compare (a.2) with (b.2)). In panel (b.3) and (c.2) we can observe that examples from task f0 suffer very mild forgetting when training on task fN. This suggests that examples that have been forgotten at least once may be able to “support” those that have never been forgotten. We observe the same pattern when we investigate the opposite alternating sequence of tasks in Figure 4 (b, right).
92
+
93
+ # 5 REMOVING UNFORGETTABLE EXAMPLES
94
+
95
+ As shown in the previous section, learning on examples that have been forgotten at least once minimally impacts performance on those that are unforgettable. This appears to indicate that unforgettable examples are less informative than others, and, more generally, that the more an example is forgotten during training, the more useful it may be to the classification task. This seems to align with the observations in Chang et al. (2017), where the authors re-weight training examples by accounting for the variance of their predictive distribution. Here, we test whether it is possible to completely remove a given subset of examples during training.
96
+
97
+ ![](images/38d0869069c29705ba3fbed213eddb271e760d9a3e3cc5ac9fb0633f0eefb772.jpg)
98
+ Figure 5: Left Generalization performance on CIFAR-10 of ResNet18 where increasingly larger subsets of the training set are removed (mean $+ / -$ std error of 5 seeds). When the removed examples are selected at random, performance drops very fast. Selecting the examples according to our ordering can reduce the training set significantly without affecting generalization. The vertical line indicates the point at which all unforgettable examples are removed from the training set. Right Difference in generalization performance when contiguous chunks of 5000 increasingly forgotten examples are removed from the training set. Most important examples tend to be those that are forgotten the most.
99
+
100
+ In Fig. 5 $( L e f t )$ , we show the evolution of the generalization performance in CIFAR-10 when we artificially remove examples from the training dataset. We choose the examples to remove by increasing number of forgetting events. Each point in the figure corresponds to retraining the model from scratch on an increasingly smaller subset of the training data (with the same hyper-parameters as the base model). We observe that when removing a random subset of the dataset, performance rapidly decreases. Comparatively, by removing examples ordered by number of forgetting events, $3 0 \%$ of the dataset can be removed while maintaining comparable generalization performance as the base model trained on the full dataset, and up to $3 5 \%$ can be removed with marginal degradation (less than $0 . 2 \%$ ). The results on the other datasets are similar: a large fraction of training examples can be ignored without hurting the final generalization performance of the classifiers (Figure 6).
101
+
102
+ In Figure 5 (Right), we show the evolution of the generalization error when we remove from the dataset 5,000 examples with increasing forgetting statistics. Each point in the figure corresponds to the generalization error of a model trained on the full dataset minus 5,000 examples as a function of the average number of forgetting events in those 5,000 examples. As can be seen, removing the same number of examples with increasingly more forgetting events results in worse generalization for most of the curve. It is interesting to notice the rightmost part of the curve moving up, suggesting that some of the most forgotten examples actually hurt performance. Those could correspond to outliers or mislabeled examples (see Sec. 4). Finding a way to separate those points from very informative ones is an ancient but still active area of research (John, 1995; Jiang et al., 2018).
103
+
104
+ Support vectors Various explanations of the implicit generalization of deep neural networks (Zhang et al., 2016) have been offered: flat minima generalize better and stochastic gradient descent converges towards them (Hochreiter & Schmidhuber, 1997; Kleinberg et al., 2018), gradient descent protects against overfitting (Advani & Saxe, 2017; Tachet et al., 2018), deep networks’ structure biases learning towards simple functions (Neyshabur et al., 2014; Perez et al., 2018). But it remains a poorly understood phenomenon. An interesting direction of research is to study the convergence properties of gradient descent in terms of maximum margin classifiers. It has been shown recently (Soudry et al., 2017) that on separable data, a linear network will learn such a maximum margin classifier. This supports the idea that stochastic gradient descent implicitly converges to solutions that maximally separate the dataset, and additionally, that some data points are more relevant than others to the decision boundary learnt by the classifier. Those points play a part equivalent to support vectors in the support vector machine paradigm. Our results confirm that a significant portion of training data points have little to no influence on the generalization performance when the decision function is learnt with SGD. Forgettable training points may be considered as analogs to support vectors, important for the generalization performance of the model. The number of forgetting events of an example is a relevant metric to detect such support vectors. It also correlates well with the misclassification margin (see Sec.4) which is a proxy for the distance to the decision boundary.
105
+
106
+ ![](images/c9af5214bb1d0390f3042139c897b6c7ef5e367f89e43bb10c88ed18c72c76a7.jpg)
107
+ Figure 6: Decrease in generalization performance when fractions of the training sets are removed. When the subsets are selected appropriately, performance is maintained after removing up to $3 0 \%$ of CIFAR-10, $5 0 \%$ of permutedMNIST, and $\bar { 8 0 \% }$ of MNIST. Vertical black line indicates the point at which all unforgettable examples are removed from CIFAR-10. Right is a zoomed in version of Left.
108
+
109
+ ![](images/bdc145c23458b9c518e604d55a4223dc724bbf37980bde1f6e317882fc2ee5d2.jpg)
110
+ Figure 7: Left. Ranking of examples by forgotten events stabilizes after 75 epochs in CIFAR-10. Middle. Precision and recall of retrieving the unforgettable examples of ResNet18, using the example ordering of a simpler convolutional neural network. Right. Generalization performance on CIFAR-10 of a WideResNet using the example ordering of ResNet18.
111
+
112
+ Intrinsic dataset dimension As mentioned above, the datasets we study have various fractions of unforgettable events $( 9 1 . 7 \%$ for MNIST, $7 5 . 3 \%$ for permutedMNIST and $3 1 . 3 \%$ for CIFAR-10). We also see in Figure 6 that performance on those datasets starts to degrade at different fractions of removed examples: the number of support vectors varies from one dataset to the other, based on the complexity of the underlying data distribution. If we assume that we are in fact detecting analogs of support vectors, we can put these results in perspective with the intrinsic dataset dimension defined by Li et al. (2018) as the codimension in the parameter space of the solution set: for a given architecture, the higher the intrinsic dataset dimension, the larger the number of support vectors, and the fewer the number of unforgettable examples.
113
+
114
+ # 6 TRANSFERABLE FORGETTING EVENTS
115
+
116
+ Forgetting events rely on training a given architecture, with a given optimizer, for a given number of epochs. We investigate to what extent the forgetting statistics of examples depend on those factors.
117
+
118
+ Throughout training We compute the Spearman rank correlation between the ordering obtained at the end of training (200 epochs) and the ordering after various number of epochs. As seen in Fig. 7 (Left), the ordering is very stable after 75 epochs, and we found a reasonable number of epochs to get a good correlation to be 25 (see the Supplementary Materials for precision-recall plots).
119
+
120
+ Between architectures A limitation of our method is that it requires computing the ordering from a previous run. An interesting question is whether that ordering could be obtained from a simpler architecture than residual networks. We train a network with two convolutional layers followed by two fully connected ones (see the Supplementary for the full architecture) and compare the resulting ordering with the one obtained with ResNet18. Figure 7 (Middle) shows a precision-recall plot of the unforgettable examples computed with the residual network. We see a reasonably strong agreement between the unforgettable examples of the convolutional neural network and the ones of the ResNet18. Finally, we train a WideResNet (Zagoruyko & Komodakis, 2016) on truncated data sets using the example ordering from ResNet18. Using the same computing power (one Titan X GPU), Resnet18 requires 2 hours to train whereas WideResNet requires 8 – estimating the forgetting statistics of WideResNet via ResNet18 can save up to 6 hours of training time if the estimate is accurate. We plot WideResNet’s generalization performance using the ordering obtained by ResNet18 in Figure 7 (Right): the network still performs near optimally with $3 0 \%$ of the dataset removed. This opens up promising avenues of computing forgetting statistics with smaller architectures.
121
+
122
+ # 7 CONCLUSION AND FUTURE WORK
123
+
124
+ In this paper, inspired by the phenomenon of catastrophic forgetting, we investigate the learning dynamics of neural networks when training on single classification tasks. We show that catastrophic forgetting can occur in the context of what is usually considered to be a single task. Inspired by this result, we find that some examples within a task are more prone to being forgotten, while others are consistently unforgettable. We also find that forgetting statistics seem to be fairly stable with respect to the various characteristics of training, suggesting that they actually uncover intrinsic properties of the data rather than idiosyncrasies of the training schemes. Furthermore, the unforgettable examples seem to play little part in the final performance of the classifier as they can be removed from the training set without hurting generalization. This supports recent research interpreting deep neural networks as max margin classifiers in the linear case. Future work involves understanding forgetting events better from a theoretical perspective, exploring potential applications to other areas of supervised learning, such as speech or text and to reinforcement learning where forgetting is prevalent due to the continual shift of the underlying distribution.
125
+
126
+ # 8 ACKNOWLEDGMENTS
127
+
128
+ We acknowledge the anonymous reviewers for their insightful suggestions.
129
+
130
+ # REFERENCES
131
+
132
+ Madhu S. Advani and Andrew M. Saxe. High-dimensional dynamics of generalization error in neural networks. CoRR, abs/1710.03667, 2017.
133
+ Yoshua Bengio and Yann LeCun. Scaling learning algorithms towards AI. In Large Scale Kernel Machines. MIT Press, 2007.
134
+ Yoshua Bengio, Jer´ ome Louradour, Ronan Collobert, and Jason Weston. Curriculum learning. In ˆ Proceedings of the 26th annual international conference on machine learning, pp. 41–48. ACM, 2009.
135
+ Carla E Brodley and Mark A Friedl. Identifying mislabeled training data. Journal of artificial intelligence research, 11:131–167, 1999.
136
+ Haw-Shiuan Chang, Erik Learned-Miller, and Andrew McCallum. Active Bias: Training More Accurate Neural Networks by Emphasizing High Variance Samples. In Advances in Neural Information Processing Systems, pp. 1002–1012, 2017.
137
+ Pratik Chaudhari, Anna Choromanska, Stefano Soatto, Yann LeCun, Carlo Baldassi, Christian Borgs, Jennifer Chayes, Levent Sagun, and Riccardo Zecchina. Entropy-SGD: Biasing Gradient Descent Into Wide Valleys. ICLR ’17, 2016.
138
+ Terrance DeVries and Graham W Taylor. Improved regularization of convolutional neural networks with cutout. arXiv preprint arXiv:1708.04552, 2017.
139
+
140
+ Yang Fan, Fei Tian, Tao Qin, and Jiang Bian. Learning What Data to Learn. 2017.
141
+
142
+ Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In Proc. of ICML, 2017.
143
+
144
+ S. Hochreiter and J. Schmidhuber. Flat minima. Neural Computation, 9(1):1��42, 1997.
145
+
146
+ 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, pp. 4700–4708, 2017.
147
+
148
+ Lu Jiang, Zhengyuan Zhou, Thomas Leung, Li-Jia Li, and Li Fei-Fei. MentorNet: Learning datadriven curriculum for very deep neural networks on corrupted labels. In Proceedings of the 35th International Conference on Machine Learning. PMLR, 2018.
149
+
150
+ George H John. Robust decision trees: removing outliers from databases. In Proceedings of the First International Conference on Knowledge Discovery and Data Mining, pp. 174–179. AAAI Press, 1995.
151
+
152
+ Angelos Katharopoulos and Franois Fleuret. Not all samples are created equal: Deep learning with importance sampling. In Jennifer G. Dy and Andreas Krause (eds.), ICML, volume 80 of JMLR Workshop and Conference Proceedings, pp. 2530–2539. JMLR.org, 2018. URL http: //dblp.uni-trier.de/db/conf/icml/icml2018.html#KatharopoulosF18.
153
+
154
+ Nitish Shirish Keskar, Dheevatsa Mudigere, Jorge Nocedal, Mikhail Smelyanskiy, and Ping Tak Peter Tang. On large-batch training for deep learning: Generalization gap and sharp minima. arXiv preprint arXiv:1609.04836, 2016.
155
+
156
+ Tae-Hoon Kim and Jonghyun Choi. Screenernet: Learning curriculum for neural networks. CoRR, abs/1801.00904, 2018. URL http://dblp.uni-trier.de/db/journals/ corr/corr1801.html#abs-1801-00904.
157
+
158
+ Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization, 2014. URL http: //arxiv.org/abs/1412.6980. cite arxiv:1412.6980Comment: Published as a conference paper at the 3rd International Conference for Learning Representations, San Diego, 2015.
159
+
160
+ James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, and Others. Overcoming catastrophic forgetting in neural networks. Proceedings of the national academy of sciences, pp. 201611835, 2017.
161
+
162
+ Robert Kleinberg, Yuanzhi Li, and Yang Yuan. An alternative view: When does sgd escape local minima? CoRR, abs/1802.06175, 2018. URL http://dblp.uni-trier.de/db/ journals/corr/corr1802.html#abs-1802-06175.
163
+
164
+ Pang Wei Koh and Percy Liang. Understanding black-box predictions via influence functions. In Doina Precup and Yee Whye Teh (eds.), ICML, volume 70 of JMLR Workshop and Conference Proceedings, pp. 1885–1894. JMLR.org, 2017. URL http://dblp.uni-trier.de/db/ conf/icml/icml2017.html#KohL17.
165
+
166
+ Alex Krizhevsky. Learning multiple layers of features from tiny images. 2009. URL https: //www.cs.toronto.edu/˜kriz/learning-features-2009-TR.pdf.
167
+
168
+ M Pawan Kumar, Benjamin Packer, and Daphne Koller. Self-Paced Learning for Latent Variable Models. In Proc. of NIPS, pp. 1–9, 2010.
169
+
170
+ Y. LeCun, C. Cortes C., and C. Burges. The mnist database of handwritten digits. 1999. URL http://yann.lecun.com/exdb/mnist/.
171
+
172
+ Yong Jae Lee and Kristen Grauman. Learning the easy things first: Self-paced visual category discovery. In Computer Vision and Pattern Recognition (CVPR), 2011 IEEE Conference on, pp. 1721–1728. IEEE, 2011.
173
+
174
+ Chunyuan Li, Heerad Farkhoor, Rosanne Liu, and Jason Yosinski. Measuring the intrinsic dimension of objective landscapes. CoRR, abs/1804.08838, 2018. URL http://dblp.uni-trier. de/db/journals/corr/corr1804.html#abs-1804-08838.
175
+
176
+ Michael McCloskey and Neal J Cohen. Catastrophic interference in connectionist networks: The sequential learning problem. In Psychology of learning and motivation, volume 24, pp. 109–165. Elsevier, 1989.
177
+
178
+ Behnam Neyshabur, Ryota Tomioka, and Nathan Srebro. In search of the real inductive bias: On the role of implicit regularization in deep learning. CoRR, abs/1412.6614, 2014. URL http: //dblp.uni-trier.de/db/journals/corr/corr1412.html#NeyshaburTS14.
179
+
180
+ Guillermo Valle Perez, Chico Q. Camargo, and Ard A. Louis. Deep learning generalizes because the parameter-function map is biased towards simple functions. CoRR, abs/1805.08522, 2018. URL http://dblp.uni-trier.de/db/journals/corr/corr1805.html# abs-1805-08522.
181
+
182
+ Sachin Ravi and Hugo Larochelle. Optimization as a model for few-shot learning. In Proc. of ICLR, 2017.
183
+
184
+ Hippolyt Ritter, Aleksandar Botev, and David Barber. Online Structured Laplace Approximations For Overcoming Catastrophic Forgetting. 2018. URL http://arxiv.org/abs/1805. 07810.
185
+
186
+ Tom Schaul, John Quan, Ioannis Antonoglou, and David Silver. Prioritized experience replay. arXiv preprint arXiv:1511.05952, 2015.
187
+
188
+ Daniel Soudry, Elad Hoffer, Mor Shpigel Nacson, Suriya Gunasekar, and Nathan Srebro. The Implicit Bias of Gradient Descent on Separable Data. 2017. URL http://arxiv.org/abs/ 1710.10345.
189
+
190
+ Sainbayar Sukhbaatar, Joan Bruna, Manohar Paluri, Lubomir Bourdev, and Rob Fergus. Training convolutional networks with noisy labels. arXiv preprint arXiv:1406.2080, 2014.
191
+
192
+ R. Tachet, M. Pezeshki, S. Shabanian, A. Courville, and Y. Bengio. On the learning dynamics of deep neural networks. 2018. doi: arXiv:1809.06848v1. URL https://arxiv.org/abs/ 1809.06848.
193
+
194
+ Huan Wang, Nitish Shirish Keskar, Caiming Xiong, and Richard Socher. Identifying Generalization Properties in Neural Networks. pp. 1–23, 2018. doi: arXiv:1809.07402v1. URL http:// arxiv.org/abs/1809.07402.
195
+
196
+ Tengyu Xu, Yi Zhou, Kaiyi Ji, and Yingbin Liang. Convergence of sgd in learning relu models with separable data. CoRR, abs/1806.04339, 2018. URL http://dblp.uni-trier.de/db/ journals/corr/corr1806.html#abs-1806-04339.
197
+
198
+ Sergey Zagoruyko and Nikos Komodakis. Wide residual networks, 2016. URL http://arxiv. org/abs/1605.07146. cite arxiv:1605.07146.
199
+
200
+ Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. arXiv preprint arXiv:1611.03530, 2016.
201
+
202
+ Peilin Zhao and Tong Zhang. Stochastic Optimization with Importance Sampling for Regularized Loss Minimization. In Proc. of ICML, 2015.
203
+
204
+ # 9 EXPERIMENTATION DETAILS
205
+
206
+ # Detailed distributions
207
+
208
+ ![](images/40db3260f8868359b0a142e18935ed80deab110b3146ac564a4720b4a08426a7.jpg)
209
+ Figure 8: From left to right, distributions of the first presentation at which each unforgettable and forgettable example was learned in MNIST, permutedMNIST and CIFAR-10 respectively. Rescaled view where the number of examples have been capped between 0 and 1500 for visualization purposes. Unforgettable examples are generally learnt early during training, thus may be considered as “easy” in the sense of Kumar et al. (2010), i.e. may have a low loss during most of the training.
210
+
211
+ # Misclassification margin
212
+
213
+ ![](images/346765f78b8c8da6d80b4d9473bd330527ba0ad098006b6151e644efc6afcd48.jpg)
214
+ Figure 9: Left 2D-histogram of the number of forgetting events and mean misclassification margin across all examples of CIFAR-10. There is significant negative correlation (-0.74, Spearman rank correlation) between mean misclassification margin and the number of forgetting events.
215
+
216
+ permutedMNIST The permutedMNIST data set is obtained by applying a fixed random permutation of the pixels to all the images of the standard MNIST data set. This typically makes the data set harder to learn for convolutional neural networks as local patterns, e.g. the horizontal bar of the 7, get shuffled. This statement is supported by the two following facts:
217
+
218
+ • The number of unforgettable examples for permutedMNIST is 45181 versus 55012 for MNIST.
219
+ • The intrinsic data set dimension (Li et al., 2018) of permutedMNIST is 1400 compared to 290 for the untouched data set.
220
+
221
+ Network Architectures We use a variety of different architectures in the main text. Below are their specifications.
222
+
223
+ The architecture for the MNIST and permutedMNIST experiments is the following:
224
+
225
+ 1. a first convolutional layer with 5 by 5 filters and 10 feature maps,
226
+ 2. a second convolutional layer with 5 by 5 filters and 20 feature maps,
227
+ 3. a fully connected layer with 50 hidden units
228
+ 4. the output layer, with 10 logits, one for each class.
229
+
230
+ We apply ReLU nonlinearities to the feature maps and to the hidden layer. The last layer is passed through a softmax to output probabilities for each class of the data set.
231
+
232
+ The ResNet18 architecture used for CIFAR-10 is described thoroughly in DeVries & Taylor (2017), its implementation can be found at https://github.com/uoguelph-mlrg/Cutout.
233
+
234
+ The second one is a WideResNet (Zagoruyko & Komodakis, 2016), with a depth of 28 and a widen factor of 10. We used the implementation found at https://github.com/meliketoy/ wide-resnet.pytorch.
235
+
236
+ The convolutional architecture used in Section 6 is the following:
237
+
238
+ 1. a first convolutional layer with 5 by 5 filters and 6 feature maps,
239
+ 2. a 2 by 2 max pooling layer
240
+ 3. a second convolutional layer with 5 by 5 filters and 16 feature maps,
241
+ 4. a first fully connected layer with 120 hidden units
242
+ 5. a second fully connected layer with 84 hidden units
243
+ 6. the output layer, with 10 logits, one for each class.
244
+
245
+ # Optimization
246
+
247
+ The MNIST networks are trained to minimize the cross-entropy loss using stochastic gradient descent with a learning rate of 0.01 and a momentum of 0.5.
248
+
249
+ The ResNet18 is trained using cutout, data augmentation and stochastic gradient descent with a 0.9 Nesterov momentum and a learning rate starting at 0.1 and divided by 5 at epochs 60, 120 and 160.
250
+
251
+ The WideResNet is trained using Adam (Kingma & Ba, 2014) and a learning rate of 0.001.
252
+
253
+ # 10 STABILITY OF THE FORGETTING EVENTS
254
+
255
+ In Fig 10, we plot precision-recall diagrams for the unforgettable and most forgotten examples of CIFAR-10 obtained on ResNet18 after 200 epochs and various prior time steps. We see in particular that at 75 epochs, the examples on both side of the spectrum can be retrieved with very high precision and recall.
256
+
257
+ ![](images/d0a4f4da5ca23c1030925e3507e07d66a97018af24260ed0237910e1d8ac6e6c.jpg)
258
+ Figure 10: Right: precision and recall of retrieving the unforgettable examples from a full run of ResNet18 (200 epochs), using the example ordering after 25, 50, and 75 epochs. The unforgettable examples are retrieved with high precision and recall after 50 epochs. Left: same plot for the $1 7 \mathrm { k }$ examples with the most forgetting events.
259
+
260
+ # 11 Noising THE DATA SETS
261
+
262
+ In Section 4, we analyzed the effect of adding label noise on the distribution of forgetting events. Here, we examine the effect of adding pixel noise, i.e. noising the input distribution. We choose to corrupt the inputs with additive Gaussian noise with zero mean and we choose for its standard deviation to be a multiple of channel-wise data standard deviation (i.e., $\sigma _ { \mathrm { n o i s e } } = \lambda \sigma _ { \mathrm { d a t a } } , \lambda \in$ $\{ 0 . 5 , 1 , 2 , 1 0 \} )$ ). Note that we add the noise after applying a channel-wise standard normalization step of the training images, therefore $\sigma _ { \mathrm { { d a t a } } } = 1$ (each channel has zero mean, unit variance, this is a standard pre-processing step and has been applied throughout all the experiments in this paper).
263
+
264
+ The forgetting distributions obtained by noising all the dataset examples with increasing noise standard deviation are presented in Figure 11. We observe that adding increasing amount of noise decreases the amount of unforgettable examples and increases the amount of examples in the second mode of the forgetting distribution.
265
+
266
+ ![](images/c85d546ee783e0bdf6fbd8db022d9d0074abb33e2162f714b1d5d1390c616da9.jpg)
267
+ Figure 11: Distribution of forgetting events across all training examples in CIFAR-10 when all training images are augmented with increasing additive Gaussian noise. The presence of increasing amount of noise decreases the amount of unforgettable examples and increases the amount of examples in the second mode of the forgetting distribution.
268
+
269
+ We follow the noisy-labels experiments of Section 4 and we apply the aforementioned pixel noise to $2 0 \%$ of the training data $( \sigma _ { \mathrm { n o i s e } } = 1 0 $ ). We present the results of comparing the forgetting distribution of the $2 0 \%$ of examples before and after noise was added to the pixels in Figure 12 (Left). For ease of comparison, we report the same results in the case of label noise in Figure 12 (Right). We observe that the forgetting distribution under pixel noise resembles the one under label noise.
270
+
271
+ ![](images/a8aa943972ff1159f256e74be4eed78ea574ea1eb67e479b0ad485910b3ad749.jpg)
272
+ Figure 12: Distribution of forgetting events across all training examples in CIFAR-10 when random $2 0 \%$ of training examples undergo pixel noise $( \sigma _ { \mathrm { n o i s e } } = 1 0 $ ) (Left) or label noise (Right) (same as Figure 3). We observe that the forgetting distribution under pixel noise resembles the one under label noise.
273
+
274
+ ![](images/66ef88f7b4734f840e5f220706c67153fb836118aade5e3085872472697b01ce.jpg)
275
+ Figure 13: Histogram of forgetting events under true and random gradient steps. (Right) Zoomed-in version where the number of forgetting events is capped at 3 for visualization.
276
+
277
+ Forgetting events may happen by “chance”, i.e. some learning/forgetting events may occur even with random gradients. In order to estimate how large the effect of “chance” is, we compute the forgetting events of a classifier obtained by randomizing the update steps. To keep the statistics of the gradients similar to those encountered during SGD, we proceed as follows:
278
+
279
+ 1. Before the beginning of training, clone the “base” classifier into a new “clone” classifier with the same random weights.
280
+ 2. At each training step, shuffle the gradients computed on the base classifier and apply those to the clone (the base classifier is still optimized the same way): this ensures that the statistics of the random updates match the statistics of the true gradients during learning.
281
+ 3. Compute the forgetting events of the clone classifier on the training set exactly as is done with the base classifier.
282
+
283
+ The results can be found in Fig 13, showing the histogram of forgetting events produced by the clone network, averaged over 5 seeds. This gives an idea of the chance forgetting rate across examples. In this setting, examples are being forgotten by chance at most twice.
284
+
285
+ # 13 CONFIDENCE ON FORGETTING EVENTS FOR CIFAR-10
286
+
287
+ In order to establish confidence intervals on the number of forgetting events, we computed them on 100 seeds and formed 20 averages over 5 seeds. In Fig 14, we show the average (in green), the bottom 2.5 percentile (in blue) and top 2.5 percentile (in orange) of those 20 curves.
288
+
289
+ ![](images/4d7bfe4ea1651cd3e62eab8ae61e8d901a6c50ebcc9ce2e997271d7af7f36762.jpg)
290
+ Figure 14: $9 5 \%$ confidence interval on forgetting events averaged over 5 seeds.
291
+
292
+ # 14 VISUALIZATION OF FORGETTABLE AND UNFORGETTABLE IMAGES
293
+
294
+ See Fig 15 for additional pictures of the most unforgettable and forgettable examples of every CIFAR-10 class, when examples are sorted by number of forgetting events (ties are broken randomly).
295
+
296
+ ![](images/26c48e7533031f21b82c5abf702faf01271be63236bc94aaa98a2de018c2d84f.jpg)
297
+ Figure 15: Additional pictures of the most unforgettable (Left) and forgettable examples (Right) of every CIFAR-10 class, when examples are sorted by number of forgetting events (ties are broken randomly). Forgettable examples seem to exhibit peculiar or uncommon features.
298
+
299
+ # 15 FORGETTING IN CIFAR-100
300
+
301
+ ![](images/592d9ae138cf5d8e8b5ea0a1841eb664652b4ebd539972bbccd66b40eabb2d88.jpg)
302
+ Figure 16: Left: distribution of forgetting events in CIFAR-100. Right: distribution of forgetting events in CIFAR-10 when $2 0 \%$ of the labels are changed at random. The distribution of forgetting in CIFAR-100 is much closer to that of forgetting in the noisy CIFAR-10 than it is to forgetting in the original datasets presented in Figure 1.
303
+
304
+ The distribution of forgetting events in CIFAR-100 is shown in Figure 16. There are 3809 unforgettable examples $( 7 . 6 2 \%$ of the training set). CIFAR-100 is the hardest to classify out all of the presented datasets and exhibits the highest percentage of forgetting events. This finding further supports the idea that there may be a correlation between the forgetting statistics and the intrinsic dimension of the learning problem. Additionally, each CIFAR-100 class contains 10 times fewer examples than in CIFAR-10 or the MNIST datasets, making each image all the more useful for the learning problem.
305
+
306
+ We also observe that the distribution of forgetting in CIFAR-100 is much closer to that of forgetting in the noisy CIFAR-10 than it is to forgetting in the original datasets presented in Figure 1. Visualizing the most forgotten examples in CIFAR-100 revealed that CIFAR-100 contains several images that appear multiple times in the training set under different labels. In Figure 17, we present the 36 most forgotten examples in CIFAR-100. Note that they are all images that appear under multiple labels (not shown: the ”girl” image also appears under the label ”baby”, the ”mouse” image also appears under ”shrew”, one of the 2 images of ‘oak tree’ appears under ‘willow tree’ and the other under ’maple tree’).
307
+
308
+ ![](images/ed7978d733b2244b5413450009d4bb7a60df4ca0d6383fa95a93dd81606a5722.jpg)
309
+ Figure 17: The 36 most forgotten examples in CIFAR-100. Note that they are all images that appear under multiple labels (not pictured: the ”girl” image also appears under the label ”baby”, the ”mouse” image also appears under ”shrew”, one of the 2 images of ‘oak tree’ appears under ‘willow tree’ and the other under ’maple tree’.
310
+
311
+ We perform the same removal experiments we presented in Figure 5 for CIFAR-100. The results are shown in Figure 18. Just like with CIFAR-10, we are able to remove all unforgettable examples ( $8 \%$ of the training set) while maintaining test performance.
312
+
313
+ ![](images/3a54884d456e90cfa222191b9e16175b859ca48687f897b0d17044f4ec6df4e7.jpg)
314
+ Figure 18: Generalization performance on CIFAR-100 of ResNet18 where increasingly larger subsets of the training set are removed (mean $+ / -$ std error of 5 seeds). When the removed examples are selected at random, performance drops faster. Selecting the examples according to our ordering reduces the training set without affecting generalization.
parse/train/BJlxm30cKm/BJlxm30cKm_content_list.json ADDED
@@ -0,0 +1,1738 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "AN EMPIRICAL STUDY OF EXAMPLE FORGETTING DURING DEEP NEURAL NETWORK LEARNING ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 99,
9
+ 823,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Mariya Toneva∗† Carnegie Mellon University ",
17
+ "bbox": [
18
+ 184,
19
+ 170,
20
+ 367,
21
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Alessandro Sordoni∗ Microsoft Research Montreal ",
28
+ "bbox": [
29
+ 397,
30
+ 170,
31
+ 589,
32
+ 198
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Remi Tachet des Combes∗ Microsoft Research Montreal ",
39
+ "bbox": [
40
+ 620,
41
+ 171,
42
+ 813,
43
+ 198
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Adam Trischler Microsoft Research Montreal ",
50
+ "bbox": [
51
+ 184,
52
+ 219,
53
+ 377,
54
+ 247
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Yoshua Bengio MILA, Universite de Montr ´ eal ´ CIFAR Senior Fellow ",
61
+ "bbox": [
62
+ 397,
63
+ 219,
64
+ 598,
65
+ 261
66
+ ],
67
+ "page_idx": 0
68
+ },
69
+ {
70
+ "type": "text",
71
+ "text": "Geoffrey J. Gordon Microsoft Research Montreal Carnegie Mellon University ",
72
+ "bbox": [
73
+ 617,
74
+ 219,
75
+ 812,
76
+ 262
77
+ ],
78
+ "page_idx": 0
79
+ },
80
+ {
81
+ "type": "text",
82
+ "text": "ABSTRACT ",
83
+ "text_level": 1,
84
+ "bbox": [
85
+ 454,
86
+ 299,
87
+ 544,
88
+ 313
89
+ ],
90
+ "page_idx": 0
91
+ },
92
+ {
93
+ "type": "text",
94
+ "text": "Inspired by the phenomenon of catastrophic forgetting, we investigate the learning dynamics of neural networks as they train on single classification tasks. Our goal is to understand whether a related phenomenon occurs when data does not undergo a clear distributional shift. We define a “forgetting event” to have occurred when an individual training example transitions from being classified correctly to incorrectly over the course of learning. Across several benchmark data sets, we find that: (i) certain examples are forgotten with high frequency, and some not at all; (ii) a data set’s (un)forgettable examples generalize across neural architectures; and (iii) based on forgetting dynamics, a significant fraction of examples can be omitted from the training data set while still maintaining state-of-the-art generalization performance. ",
95
+ "bbox": [
96
+ 233,
97
+ 332,
98
+ 764,
99
+ 483
100
+ ],
101
+ "page_idx": 0
102
+ },
103
+ {
104
+ "type": "text",
105
+ "text": "1 INTRODUCTION ",
106
+ "text_level": 1,
107
+ "bbox": [
108
+ 176,
109
+ 541,
110
+ 336,
111
+ 558
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Many machine learning models, in particular neural networks, cannot perform continual learning. They have a tendency to forget previously learnt information when trained on new tasks, a phenomenon usually called catastrophic forgetting (Kirkpatrick et al., 2017; Ritter et al., 2018). One of the hypothesized causes of catastrophic forgetting in neural networks is the shift in the input distribution across different tasks—e.g., a lack of common factors or structure in the inputs of different tasks might lead standard optimization techniques to converge to radically different solutions each time a new task is presented. In this paper, we draw inspiration from this phenomenon and investigate the extent to which a related forgetting process occurs as a model learns examples traditionally considered to belong to the same task. ",
118
+ "bbox": [
119
+ 173,
120
+ 574,
121
+ 825,
122
+ 699
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "Similarly to the continual learning setting, in stochastic gradient descent (SGD) optimization, each mini-batch can be considered as a mini-“task” presented to the network sequentially. In this context, we are interested in characterizing the learning dynamics of neural networks by analyzing (catastrophic) example forgetting events. These occur when examples that have been “learnt” (i.e., correctly classified) at some time $t$ in the optimization process are subsequently misclassified — or in other terms forgotten — at a time $t ^ { \\prime } > t$ . We thus switch the focus from studying interactions between sequentially presented tasks to studying interactions between sequentially presented dataset examples during SGD optimization. Our starting point is to understand whether there exist examples that are consistently forgotten across subsequent training presentations and, conversely, examples that are never forgotten. We will call the latter unforgettable examples. We hypothesize that specific examples consistently forgotten between subsequent presentations, if they exist, must not share commonalities with other examples from the same task. We therefore analyze the proportion of forgettable/unforgettable examples for a given task and what effects these examples have on a model’s decision boundary and generalization error. ",
129
+ "bbox": [
130
+ 174,
131
+ 707,
132
+ 825,
133
+ 858
134
+ ],
135
+ "page_idx": 0
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "",
140
+ "bbox": [
141
+ 176,
142
+ 103,
143
+ 823,
144
+ 146
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "The goal of our investigation is two-fold. First, we attempt to gain insight into the optimization process by analyzing interactions among examples during learning and their influence on the final decision boundary. We are particularly interested in whether we can glean insight on the compressibility of a dataset, and thereby increase data efficiency without compromising generalization accuracy. It is a timely problem that has been the recent focus of few-shot learning approaches via meta-learning (Finn et al., 2017; Ravi & Larochelle, 2017). Second, we aim to characterize whether forgetting statistics can be used to identify “important” samples and detect outliers and examples with noisy labels (John, 1995; Brodley & Friedl, 1999; Sukhbaatar et al., 2014; Jiang et al., 2018). ",
151
+ "bbox": [
152
+ 174,
153
+ 152,
154
+ 825,
155
+ 263
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "Identifying important, or most informative examples is an important line of work and was extensively studied in the literature. Techniques of note — among others — are predefined curricula of examples (Bengio & LeCun, 2007), self-paced learning (Kumar et al., 2010), and more recently meta-learning (Fan et al., 2017). These research directions usually define “hardness” or “commonality” of an example as a function of the loss on that particular example at some point during training (or possibly at convergence). They do not consider whether some examples are consistently forgotten throughout learning. Very recently, Chang et al. (2017) consider re-weighting examples by accounting for the variance of their predictive distribution. This is related to our definition of forgetting events, but the authors provide little analysis of the extent to which the phenomenon occurs in their proposed tasks. Our purpose is to study this phenomenon from an empirical standpoint and characterize its prevalence in different datasets and across different model architectures. ",
162
+ "bbox": [
163
+ 174,
164
+ 271,
165
+ 825,
166
+ 424
167
+ ],
168
+ "page_idx": 1
169
+ },
170
+ {
171
+ "type": "text",
172
+ "text": "Our experimental findings suggest that: a) there exist a large number of unforgettable examples, i.e., examples that are never forgotten once learnt, those examples are stable across seeds and strongly correlated from one neural architecture to another; b) examples with noisy labels are among the most forgotten examples, along with images with “uncommon” features, visually complicated to classify; c) training a neural network on a dataset where a very large fraction of the least forgotten examples have been removed still results in extremely competitive performance on the test set. ",
173
+ "bbox": [
174
+ 174,
175
+ 431,
176
+ 825,
177
+ 515
178
+ ],
179
+ "page_idx": 1
180
+ },
181
+ {
182
+ "type": "text",
183
+ "text": "2 RELATED WORK ",
184
+ "text_level": 1,
185
+ "bbox": [
186
+ 176,
187
+ 537,
188
+ 343,
189
+ 554
190
+ ],
191
+ "page_idx": 1
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "Curriculum Learning and Sample Weighting Curriculum learning is a paradigm that favors learning along a curriculum of examples of increasing difficulty (Bengio et al., 2009). This general idea has found success in a variety of areas since its introduction (Kumar et al., 2010; Lee & Grauman, 2011; Schaul et al., 2015). Kumar et al. (2010) implemented their curriculum by considering easy the examples with a small loss. In our experiments, we empirically validate that unforgettable examples can be safely removed without compromising generalization. Zhao & Zhang (2015); Katharopoulos & Fleuret (2018) relate sample importance to the norm of its loss gradient with respect to the parameters of the network. Fan et al. (2017); Kim & Choi (2018); Jiang et al. (2018) learn a curriculum directly from data in order to minimize the task loss. Jiang et al. (2018) also study the robustness of their method in the context of noisy examples. This relates to a rich literature on outlier detection and removal of examples with noisy labels (John, 1995; Brodley & Friedl, 1999; Sukhbaatar et al., 2014; Jiang et al., 2018). We will provide evidence that noisy examples rank higher in terms of number of forgetting events. Koh & Liang (2017) borrow influence functions from robust statistics to evaluate the impact of the training examples on a model’s predictions. ",
196
+ "bbox": [
197
+ 174,
198
+ 571,
199
+ 825,
200
+ 766
201
+ ],
202
+ "page_idx": 1
203
+ },
204
+ {
205
+ "type": "text",
206
+ "text": "Deep Generalization The study of the generalization properties of deep neural networks when trained by stochastic gradient descent has been the focus of several recent publications (Zhang et al., 2016; Keskar et al., 2016; Chaudhari et al., 2016; Advani & Saxe, 2017). These studies suggest that the generalization error does not depend solely on the complexity of the hypothesis space. For instance, it has been demonstrated that over-parameterized models with many more parameters than training points can still achieve low test error (Huang et al., 2017; Wang et al., 2018) while being complex enough to fit a dataset with completely random labels (Zhang et al., 2016). A possible explanation for this phenomenon is a form of implicit regularization performed by stochastic gradient descent: deep neural networks trained with SGD have been recently shown to converge to the maximum margin solution in the linearly separable case (Soudry et al., 2017; Xu et al., 2018). In our work, we provide empirical evidence that generalization can be maintained when removing a substantial portion of the training examples and without restricting the complexity of the hypothesis class. This goes along the support vector interpretation provided by Soudry et al. (2017). ",
207
+ "bbox": [
208
+ 174,
209
+ 785,
210
+ 825,
211
+ 924
212
+ ],
213
+ "page_idx": 1
214
+ },
215
+ {
216
+ "type": "text",
217
+ "text": "",
218
+ "bbox": [
219
+ 176,
220
+ 103,
221
+ 825,
222
+ 146
223
+ ],
224
+ "page_idx": 2
225
+ },
226
+ {
227
+ "type": "text",
228
+ "text": "3 DEFINING AND COMPUTING EXAMPLE FORGETTING",
229
+ "text_level": 1,
230
+ "bbox": [
231
+ 176,
232
+ 167,
233
+ 642,
234
+ 183
235
+ ],
236
+ "page_idx": 2
237
+ },
238
+ {
239
+ "type": "text",
240
+ "text": "Our general case study for example forgetting is a standard classification setting. Given a dataset $\\mathbfcal { D } = ( \\mathbf { x } _ { i } , y _ { i } ) _ { i }$ of observation/label pairs, we wish to learn the conditional probability distribution $p ( \\boldsymbol { y } | \\mathbf { x } ; \\boldsymbol { \\theta } )$ using a deep neural network with parameters $\\theta$ . The network is trained to minimize the empirical risk $\\begin{array} { r } { R = \\frac { 1 } { | \\mathcal { D } | } \\sum _ { i } L ( p ( y _ { i } | \\mathbf { x } _ { i } ; \\boldsymbol { \\theta } ) , \\dot { y _ { i } } ) } \\end{array}$ , where $L$ denotes the cross-entropy loss and $y _ { i } \\in$ $1 , \\ldots k$ . The minimization is performed using variations of stochastic gradient descent, starting from initial random parameters $\\mathcal { \\dot { \\theta } } ^ { 0 }$ , and by sampling examples at random from the dataset $\\mathcal { D }$ . ",
241
+ "bbox": [
242
+ 173,
243
+ 199,
244
+ 825,
245
+ 286
246
+ ],
247
+ "page_idx": 2
248
+ },
249
+ {
250
+ "type": "text",
251
+ "text": "Forgetting and learning events We denote by $\\hat { y } _ { i } ^ { t } = \\arg \\operatorname* { m a x } _ { k } p ( y _ { i k } | \\mathbf { x } _ { i } ; \\boldsymbol { \\theta } ^ { t } )$ the predicted label for example $\\mathbf { x } _ { i }$ obtained after $t$ steps of SGD. We also let $\\operatorname { a c c } _ { i } ^ { t } = \\mathbb { 1 } _ { \\hat { y } _ { i } ^ { t } = y _ { i } }$ be a binary variable indicating whether the example is correctly classified at time step $t$ . Example $i$ undergoes a forgetting event when $\\operatorname { a c c } _ { i } ^ { t }$ decreases between two consecutive updates: $\\operatorname { a c c } _ { i } ^ { t } > \\operatorname { a c c } _ { i } ^ { t + 1 }$ . In other words, example $i$ is misclassified at step $t + 1$ after having been correctly classified at step $t$ . Conversely, a learning event has occurred if $\\mathrm { a c c } _ { i } ^ { t } < \\mathsf { a c c } _ { i } ^ { t + 1 }$ . Statistics that will be of interest in the next sections include the distribution of forgetting events across examples and the first time a learning event occurs. ",
252
+ "bbox": [
253
+ 174,
254
+ 292,
255
+ 825,
256
+ 392
257
+ ],
258
+ "page_idx": 2
259
+ },
260
+ {
261
+ "type": "text",
262
+ "text": "Classification margin We will also be interested in analyzing the classification margin. Our predictors have the form $p ( y _ { i } | \\mathbf { x } _ { i } ; \\theta ) = \\sigma ( \\beta ( \\mathbf { x } _ { i } ) )$ , where $\\sigma$ is a sigmoid (softmax) activation function in the case of binary (categorical) classification. The classification margin $m$ is defined as the difference between the logit of the correct class and the largest logit among the other classes, i.e. $m = \\beta _ { k } - \\arg \\operatorname* { m a x } _ { k ^ { \\prime } \\neq k } \\beta _ { k ^ { \\prime } }$ , where $k$ is the index corresponding to the correct class. ",
263
+ "bbox": [
264
+ 174,
265
+ 398,
266
+ 823,
267
+ 469
268
+ ],
269
+ "page_idx": 2
270
+ },
271
+ {
272
+ "type": "text",
273
+ "text": "Unforgettable examples We qualify examples as unforgettable if they are learnt at some point and experience no forgetting events during the whole course of training: example $i$ is unforgettable if the first time it is learnt $t ^ { * }$ verifies $t ^ { * } < \\infty$ and for all $k \\geq t ^ { * }$ , $\\mathsf { a c c } _ { i } ^ { k } \\bar { = } 1$ . Note that, according to this definition, examples that are never learnt during training do not qualify as unforgettable. We refer to examples that have been forgotten at least once as forgettable. ",
274
+ "bbox": [
275
+ 174,
276
+ 474,
277
+ 825,
278
+ 545
279
+ ],
280
+ "page_idx": 2
281
+ },
282
+ {
283
+ "type": "text",
284
+ "text": "3.1 PROCEDURAL DESCRIPTION AND EXPERIMENTAL SETTING ",
285
+ "text_level": 1,
286
+ "bbox": [
287
+ 176,
288
+ 563,
289
+ 627,
290
+ 577
291
+ ],
292
+ "page_idx": 2
293
+ },
294
+ {
295
+ "type": "text",
296
+ "text": "Following the previous definitions, monitoring forgetting events entails computing the prediction for all examples in the dataset at each model update, which would be prohibitively expensive. In practice, for each example, we subsample the full sequence of forgetting events by computing forgetting statistics only when the example is included in the current mini-batch; that is, we compute forgetting across presentations of the same example in subsequent mini-batches. This gives a lower bound on the number of forgetting events an example undergoes during training. ",
297
+ "bbox": [
298
+ 174,
299
+ 589,
300
+ 825,
301
+ 674
302
+ ],
303
+ "page_idx": 2
304
+ },
305
+ {
306
+ "type": "text",
307
+ "text": "We train a classifier on a given dataset and record the forgetting events for each example when they are sampled in the current mini-batch. For the purposes of further analysis, we then sort the dataset’s examples based on the number of forgetting events they undergo. Ties are broken at random when sampling from the ordered data. Samples that are never learnt are considered forgotten an infinite number of times for sorting purposes. Note that this estimate of example forgetting is computationally expensive; see Sec. 6 for a discussion of a cheaper method. ",
308
+ "bbox": [
309
+ 174,
310
+ 681,
311
+ 516,
312
+ 833
313
+ ],
314
+ "page_idx": 2
315
+ },
316
+ {
317
+ "type": "text",
318
+ "text": "We perform our experimental evaluation on three datasets of increasing complexity: MNIST (LeCun et al., 1999), permuted MNIST – a version of MNIST that has the same fixed permutation applied to the pixels of all examples, and CIFAR-10 (Krizhevsky, ",
319
+ "bbox": [
320
+ 173,
321
+ 840,
322
+ 516,
323
+ 910
324
+ ],
325
+ "page_idx": 2
326
+ },
327
+ {
328
+ "type": "table",
329
+ "img_path": "images/72911f78ac9bab499c4e9fc84d4a48ef121d6c4dec74ef214bcb58239d7f2a9c.jpg",
330
+ "table_caption": [],
331
+ "table_footnote": [],
332
+ "table_body": "<table><tr><td>Algorithm1Computingforgettingstatisti</td></tr><tr><td>initialize prev_acc = O,i ∈ D initialize forgetting T[i] = O,i ∈D while not training done do B~ D # sample a minibatch</td></tr><tr><td>for example i∈ B do compute acci if prev_acc;&gt;acci then</td></tr><tr><td>T[i]=T[]+1 prev_acc = acci</td></tr><tr><td>gradient update classifier on B return T</td></tr></table>",
333
+ "bbox": [
334
+ 531,
335
+ 696,
336
+ 823,
337
+ 880
338
+ ],
339
+ "page_idx": 2
340
+ },
341
+ {
342
+ "type": "text",
343
+ "text": "2009). We use various model architectures and training schemes that yield test errors comparable with the current state-of-the-art on the respective datasets. In particular, the MNIST-based experiments use a network comprised of two convolutional layers followed by a fully connected one, trained using SGD with momentum and dropout. This network achieves $0 . 8 \\%$ test error. For CIFAR$I O$ , we use a ResNet with cutout (DeVries & Taylor, 2017) trained using SGD and momentum with a particular learning rate schedule. This network achieves a competitive $3 . 9 9 \\%$ test error. For full experimentation details, see the Supplementary. ",
344
+ "bbox": [
345
+ 176,
346
+ 910,
347
+ 821,
348
+ 924
349
+ ],
350
+ "page_idx": 2
351
+ },
352
+ {
353
+ "type": "image",
354
+ "img_path": "images/5a03bcd767bb68daec7c991d4d6695a8ecad1a40539a729950f464239e4bae8f.jpg",
355
+ "image_caption": [
356
+ "Figure 1: Histograms of forgetting events on (from left to right) MNIST, permutedMNIST and CIFAR-10. Insets show the zoomed-in y-axis. "
357
+ ],
358
+ "image_footnote": [],
359
+ "bbox": [
360
+ 189,
361
+ 104,
362
+ 810,
363
+ 219
364
+ ],
365
+ "page_idx": 3
366
+ },
367
+ {
368
+ "type": "text",
369
+ "text": "",
370
+ "bbox": [
371
+ 174,
372
+ 296,
373
+ 825,
374
+ 381
375
+ ],
376
+ "page_idx": 3
377
+ },
378
+ {
379
+ "type": "text",
380
+ "text": "4 CHARACTERIZING EXAMPLE FORGETTING ",
381
+ "text_level": 1,
382
+ "bbox": [
383
+ 174,
384
+ 401,
385
+ 562,
386
+ 417
387
+ ],
388
+ "page_idx": 3
389
+ },
390
+ {
391
+ "type": "text",
392
+ "text": "Number of forgetting events We estimate the number of forgetting events of all the training examples for the three different datasets (MNIST, permutedMNIST and CIFAR-10) across 5 random seeds. The histograms of forgetting events computed from one seed are shown in Figure 1. There are 55,012, 45,181 and 15,628 unforgettable examples common across 5 seeds, they represent respectively $9 1 . 7 \\%$ , $7 5 . 3 \\%$ , and $3 1 . 3 \\%$ of the corresponding training sets. Note that datasets with less complexity and diversity of examples, such as MNIST, seem to contain significantly more unforgettable examples. permutedMNIST exhibits a complexity balanced between MNIST (easiest) and CIFAR-10 (hardest). This finding seems to suggest a correlation between forgetting statistics and the intrinsic dimension of the learning problem, as recently formalized by Li et al. (2018). ",
393
+ "bbox": [
394
+ 174,
395
+ 434,
396
+ 825,
397
+ 559
398
+ ],
399
+ "page_idx": 3
400
+ },
401
+ {
402
+ "type": "text",
403
+ "text": "Stability across seeds To test the stability of our metric with respect to the variance generated by stochastic gradient descent, we compute the number of forgetting events per example for 10 different random seeds and measure their correlation. From one seed to another, the average Pearson correlation is $8 9 . 2 \\%$ . When randomly splitting the 10 different seeds into two sets of 5, the cumulated number of forgetting events within those two sets shows a high correlation of $9 7 . 6 \\%$ . We also ran the original experiment on 100 seeds to devise $9 5 \\%$ confidence bounds on the average (over 5 seeds) number of forgetting events per example (see Appendix 13). The confidence interval of the least forgotten examples is tight, confirming that examples with a small number of forgetting events can be ranked confidently. ",
404
+ "bbox": [
405
+ 174,
406
+ 566,
407
+ 825,
408
+ 691
409
+ ],
410
+ "page_idx": 3
411
+ },
412
+ {
413
+ "type": "text",
414
+ "text": "Forgetting by chance In order to quantify the possibility of forgetting occurring by chance, we additionally analyze the distribution of forgetting events obtained under the regime of random update steps instead of the true SGD steps. In order to maintain the statistics of the random updates similar to those encountered during SGD, random updates are obtained by shuffling the gradients produced by standard SGD on a main network (more details are provided in Appendix 12). We report the histogram of chance forgetting events in Supplementary Figure 13: examples are being forgotten by chance a small number of time, at most twice and most of the time less than once. The observed stability across seeds, low number of chance forgetting events and the tight confidence bounds suggest that it is unlikely for the ordering produced by the metric to be the by-product of another unrelated random cause. ",
415
+ "bbox": [
416
+ 174,
417
+ 698,
418
+ 825,
419
+ 837
420
+ ],
421
+ "page_idx": 3
422
+ },
423
+ {
424
+ "type": "text",
425
+ "text": "First learning events We investigate whether unforgettable and forgettable examples need to be presented different numbers of times in order to be learnt for the first time (i.e. for the first learning event to occur, as defined in Section 3). The distributions of the presentation numbers at which first learning events occur across all datasets can be seen in Supplemental Figure 8. We observe that, while both unforgettable and forgettable sets contain many examples that are learnt during the first 3-4 presentations, the forgettable examples contain a larger number of examples that are first learnt later in training. The Spearman rank correlation between the first learning event presentations and the number of forgetting events across all training examples is 0.56, indicating a moderate relationship. ",
426
+ "bbox": [
427
+ 174,
428
+ 854,
429
+ 823,
430
+ 924
431
+ ],
432
+ "page_idx": 3
433
+ },
434
+ {
435
+ "type": "image",
436
+ "img_path": "images/52d8fc501f8a2f5ad67add3dbc30c97b89d36824664c752f3a81cbebdf27415e.jpg",
437
+ "image_caption": [
438
+ "Figure 2: Pictures of unforgettable (Top) and forgettable examples (Bottom) of every CIFAR-10 class. Forgettable examples seem to exhibit peculiar or uncommon features. Additional examples are available in Supplemental Figure 15. "
439
+ ],
440
+ "image_footnote": [],
441
+ "bbox": [
442
+ 176,
443
+ 102,
444
+ 820,
445
+ 213
446
+ ],
447
+ "page_idx": 4
448
+ },
449
+ {
450
+ "type": "image",
451
+ "img_path": "images/9c52d8bc2ae4475b951870675a51dadacfd8a6b6f88483c03bdf697fcfc9cd16.jpg",
452
+ "image_caption": [
453
+ "Figure 3: Distributions of forgetting events across training examples in CIFAR-10 when $2 0 \\%$ of labels are randomly changed. Left. Comparison of forgetting events between examples with noisy and original labels. The most forgotten examples are those with noisy labels. No noisy examples are unforgettable. Right. Comparison of forgetting events between examples with noisy labels and the same examples with original labels. Examples exhibit more forgetting when their labels are changed. "
454
+ ],
455
+ "image_footnote": [],
456
+ "bbox": [
457
+ 178,
458
+ 308,
459
+ 790,
460
+ 455
461
+ ],
462
+ "page_idx": 4
463
+ },
464
+ {
465
+ "type": "text",
466
+ "text": "",
467
+ "bbox": [
468
+ 174,
469
+ 583,
470
+ 825,
471
+ 640
472
+ ],
473
+ "page_idx": 4
474
+ },
475
+ {
476
+ "type": "text",
477
+ "text": "Misclassification margin The definition of forgetting events is binary and as such fairly crude compared to more sophisticated estimators of example relevance (Zhao & Zhang, 2015; Chang et al., 2017). In order to qualify its validity, we compute the misclassification margin of forgetting events. The misclassification margin of an example is defined as the mean classification margin (defined in Section 3) over all its forgetting events, a negative quantity by definition. The Spearman rank correlation between an example’s number of forgetting events and its mean misclassification margin is -0.74 (computed over 5 seeds, see corresponding 2D-histogram in Supplemental Figure 9). These results suggest that examples which are frequently forgotten have a large misclassification margin. ",
478
+ "bbox": [
479
+ 173,
480
+ 655,
481
+ 825,
482
+ 767
483
+ ],
484
+ "page_idx": 4
485
+ },
486
+ {
487
+ "type": "text",
488
+ "text": "Visual inspection We visualize some of the unforgettable examples in Figure 2 along with some examples that have been most forgotten in the CIFAR-10 dataset. Unforgettable samples are easily recognizable and contain the most obvious class attributes or centered objects, e.g., a plane on a clear sky. On the other hand, the most forgotten examples exhibit more ambiguous characteristics (as in the center image, a truck on a brown background) that may not align with the learning signal common to other examples from the same class. ",
489
+ "bbox": [
490
+ 174,
491
+ 782,
492
+ 825,
493
+ 866
494
+ ],
495
+ "page_idx": 4
496
+ },
497
+ {
498
+ "type": "text",
499
+ "text": "Detection of noisy examples We further investigate the observation that the most forgettable examples seem to exhibit atypical characteristics. We would expect that if highly forgettable examples have atypical class characteristics, then noisily-labeled examples will undergo more forgetting events. We randomly change the labels of $2 0 \\%$ of CIFAR-10 and record the number of forgetting events of both the noisy and regular examples through training. The distributions of forgetting events across noisy and regular examples are shown in Figure 3. We observe that the most forgotten examples are those with noisy labels and that no noisy examples are unforgettable. We also compare the forgetting events of the noisy examples to that of the same set of examples with original labels and observe a much higher degree of forgetting in the noisy case. The results of these synthetic experiments support the hypothesis that highly forgettable examples exhibit atypical class characteristics. ",
500
+ "bbox": [
501
+ 176,
502
+ 882,
503
+ 823,
504
+ 924
505
+ ],
506
+ "page_idx": 4
507
+ },
508
+ {
509
+ "type": "image",
510
+ "img_path": "images/287d6dcf4880b6293bde08d1d57bc47a87b14dc2b28efdb75ee7dcafe9b2c9d1.jpg",
511
+ "image_caption": [
512
+ "Figure 4: Synthetic continual learning setup for CIFAR-10. Background color in each column indicates the training partition, curves track performance on both partitions during interleaved training. Solids lines represent the average of 5 runs and dashed lines represent the standard error. The figure highlights that examples that have been forgotten at least once can “support” those that have never been forgotten, as shown in (c.2) and (b.3). "
513
+ ],
514
+ "image_footnote": [],
515
+ "bbox": [
516
+ 179,
517
+ 116,
518
+ 818,
519
+ 242
520
+ ],
521
+ "page_idx": 5
522
+ },
523
+ {
524
+ "type": "text",
525
+ "text": "",
526
+ "bbox": [
527
+ 174,
528
+ 348,
529
+ 825,
530
+ 446
531
+ ],
532
+ "page_idx": 5
533
+ },
534
+ {
535
+ "type": "text",
536
+ "text": "4.1 CONTINUAL LEARNING SETUP ",
537
+ "text_level": 1,
538
+ "bbox": [
539
+ 176,
540
+ 464,
541
+ 428,
542
+ 478
543
+ ],
544
+ "page_idx": 5
545
+ },
546
+ {
547
+ "type": "text",
548
+ "text": "We observed that in harder tasks such as CIFAR-10, a significant portion of examples are forgotten at least once during learning. This leads us to believe that catastrophic forgetting may be observed, to some extent, even when considering examples coming from the same task distribution. To test this hypothesis, we perform an experiment inspired by the standard continual learning setup (McCloskey & Cohen, 1989; Kirkpatrick et al., 2017). We create two tasks by randomly sampling 10k examples from the CIFAR-10 training set and dividing them in two equally-sized partitions $5 \\mathrm { k }$ examples each). We treat each partition as a separate ”task” even though they should follow the same distribution. We then train a classifier for 20 epochs on each partition in an alternating fashion, while tracking performance on both partitions. The results are reported in Figure 4 (a). The background color represents which of the two partitions is currently used for training. We observe some forgetting of the second task when we only train on the first task (panel (a.2)). This is somewhat surprising as the two tasks contain examples from the same underlying distribution. ",
549
+ "bbox": [
550
+ 174,
551
+ 489,
552
+ 825,
553
+ 656
554
+ ],
555
+ "page_idx": 5
556
+ },
557
+ {
558
+ "type": "text",
559
+ "text": "We contrast the results from training on random partitions of examples with ones obtained by partitioning the examples based on forgetting statistics (Figure 4 (b)). That is, we first compute the forgetting events for all examples based on Algorithm 1 and we create our tasks by sampling 5k examples that have zero forgetting events (named f0) and 5k examples that have non-zero forgetting events (named fN). We observe that examples that have been forgotten at least once suffer a more drastic form of forgetting than those included in a random split (compare (a.2) with (b.2)). In panel (b.3) and (c.2) we can observe that examples from task f0 suffer very mild forgetting when training on task fN. This suggests that examples that have been forgotten at least once may be able to “support” those that have never been forgotten. We observe the same pattern when we investigate the opposite alternating sequence of tasks in Figure 4 (b, right). ",
560
+ "bbox": [
561
+ 173,
562
+ 664,
563
+ 825,
564
+ 803
565
+ ],
566
+ "page_idx": 5
567
+ },
568
+ {
569
+ "type": "text",
570
+ "text": "5 REMOVING UNFORGETTABLE EXAMPLES ",
571
+ "text_level": 1,
572
+ "bbox": [
573
+ 176,
574
+ 823,
575
+ 549,
576
+ 838
577
+ ],
578
+ "page_idx": 5
579
+ },
580
+ {
581
+ "type": "text",
582
+ "text": "As shown in the previous section, learning on examples that have been forgotten at least once minimally impacts performance on those that are unforgettable. This appears to indicate that unforgettable examples are less informative than others, and, more generally, that the more an example is forgotten during training, the more useful it may be to the classification task. This seems to align with the observations in Chang et al. (2017), where the authors re-weight training examples by accounting for the variance of their predictive distribution. Here, we test whether it is possible to completely remove a given subset of examples during training. ",
583
+ "bbox": [
584
+ 174,
585
+ 854,
586
+ 823,
587
+ 924
588
+ ],
589
+ "page_idx": 5
590
+ },
591
+ {
592
+ "type": "image",
593
+ "img_path": "images/38d0869069c29705ba3fbed213eddb271e760d9a3e3cc5ac9fb0633f0eefb772.jpg",
594
+ "image_caption": [
595
+ "Figure 5: Left Generalization performance on CIFAR-10 of ResNet18 where increasingly larger subsets of the training set are removed (mean $+ / -$ std error of 5 seeds). When the removed examples are selected at random, performance drops very fast. Selecting the examples according to our ordering can reduce the training set significantly without affecting generalization. The vertical line indicates the point at which all unforgettable examples are removed from the training set. Right Difference in generalization performance when contiguous chunks of 5000 increasingly forgotten examples are removed from the training set. Most important examples tend to be those that are forgotten the most. "
596
+ ],
597
+ "image_footnote": [],
598
+ "bbox": [
599
+ 184,
600
+ 118,
601
+ 789,
602
+ 265
603
+ ],
604
+ "page_idx": 6
605
+ },
606
+ {
607
+ "type": "text",
608
+ "text": "",
609
+ "bbox": [
610
+ 173,
611
+ 416,
612
+ 821,
613
+ 444
614
+ ],
615
+ "page_idx": 6
616
+ },
617
+ {
618
+ "type": "text",
619
+ "text": "In Fig. 5 $( L e f t )$ , we show the evolution of the generalization performance in CIFAR-10 when we artificially remove examples from the training dataset. We choose the examples to remove by increasing number of forgetting events. Each point in the figure corresponds to retraining the model from scratch on an increasingly smaller subset of the training data (with the same hyper-parameters as the base model). We observe that when removing a random subset of the dataset, performance rapidly decreases. Comparatively, by removing examples ordered by number of forgetting events, $3 0 \\%$ of the dataset can be removed while maintaining comparable generalization performance as the base model trained on the full dataset, and up to $3 5 \\%$ can be removed with marginal degradation (less than $0 . 2 \\%$ ). The results on the other datasets are similar: a large fraction of training examples can be ignored without hurting the final generalization performance of the classifiers (Figure 6). ",
620
+ "bbox": [
621
+ 174,
622
+ 450,
623
+ 825,
624
+ 590
625
+ ],
626
+ "page_idx": 6
627
+ },
628
+ {
629
+ "type": "text",
630
+ "text": "In Figure 5 (Right), we show the evolution of the generalization error when we remove from the dataset 5,000 examples with increasing forgetting statistics. Each point in the figure corresponds to the generalization error of a model trained on the full dataset minus 5,000 examples as a function of the average number of forgetting events in those 5,000 examples. As can be seen, removing the same number of examples with increasingly more forgetting events results in worse generalization for most of the curve. It is interesting to notice the rightmost part of the curve moving up, suggesting that some of the most forgotten examples actually hurt performance. Those could correspond to outliers or mislabeled examples (see Sec. 4). Finding a way to separate those points from very informative ones is an ancient but still active area of research (John, 1995; Jiang et al., 2018). ",
631
+ "bbox": [
632
+ 174,
633
+ 597,
634
+ 825,
635
+ 723
636
+ ],
637
+ "page_idx": 6
638
+ },
639
+ {
640
+ "type": "text",
641
+ "text": "Support vectors Various explanations of the implicit generalization of deep neural networks (Zhang et al., 2016) have been offered: flat minima generalize better and stochastic gradient descent converges towards them (Hochreiter & Schmidhuber, 1997; Kleinberg et al., 2018), gradient descent protects against overfitting (Advani & Saxe, 2017; Tachet et al., 2018), deep networks’ structure biases learning towards simple functions (Neyshabur et al., 2014; Perez et al., 2018). But it remains a poorly understood phenomenon. An interesting direction of research is to study the convergence properties of gradient descent in terms of maximum margin classifiers. It has been shown recently (Soudry et al., 2017) that on separable data, a linear network will learn such a maximum margin classifier. This supports the idea that stochastic gradient descent implicitly converges to solutions that maximally separate the dataset, and additionally, that some data points are more relevant than others to the decision boundary learnt by the classifier. Those points play a part equivalent to support vectors in the support vector machine paradigm. Our results confirm that a significant portion of training data points have little to no influence on the generalization performance when the decision function is learnt with SGD. Forgettable training points may be considered as analogs to support vectors, important for the generalization performance of the model. The number of forgetting events of an example is a relevant metric to detect such support vectors. It also correlates well with the misclassification margin (see Sec.4) which is a proxy for the distance to the decision boundary. ",
642
+ "bbox": [
643
+ 174,
644
+ 729,
645
+ 825,
646
+ 924
647
+ ],
648
+ "page_idx": 6
649
+ },
650
+ {
651
+ "type": "image",
652
+ "img_path": "images/c9af5214bb1d0390f3042139c897b6c7ef5e367f89e43bb10c88ed18c72c76a7.jpg",
653
+ "image_caption": [
654
+ "Figure 6: Decrease in generalization performance when fractions of the training sets are removed. When the subsets are selected appropriately, performance is maintained after removing up to $3 0 \\%$ of CIFAR-10, $5 0 \\%$ of permutedMNIST, and $\\bar { 8 0 \\% }$ of MNIST. Vertical black line indicates the point at which all unforgettable examples are removed from CIFAR-10. Right is a zoomed in version of Left. "
655
+ ],
656
+ "image_footnote": [],
657
+ "bbox": [
658
+ 186,
659
+ 106,
660
+ 812,
661
+ 261
662
+ ],
663
+ "page_idx": 7
664
+ },
665
+ {
666
+ "type": "image",
667
+ "img_path": "images/bdc145c23458b9c518e604d55a4223dc724bbf37980bde1f6e317882fc2ee5d2.jpg",
668
+ "image_caption": [
669
+ "Figure 7: Left. Ranking of examples by forgotten events stabilizes after 75 epochs in CIFAR-10. Middle. Precision and recall of retrieving the unforgettable examples of ResNet18, using the example ordering of a simpler convolutional neural network. Right. Generalization performance on CIFAR-10 of a WideResNet using the example ordering of ResNet18. "
670
+ ],
671
+ "image_footnote": [],
672
+ "bbox": [
673
+ 189,
674
+ 375,
675
+ 803,
676
+ 487
677
+ ],
678
+ "page_idx": 7
679
+ },
680
+ {
681
+ "type": "text",
682
+ "text": "",
683
+ "bbox": [
684
+ 174,
685
+ 593,
686
+ 825,
687
+ 636
688
+ ],
689
+ "page_idx": 7
690
+ },
691
+ {
692
+ "type": "text",
693
+ "text": "Intrinsic dataset dimension As mentioned above, the datasets we study have various fractions of unforgettable events $( 9 1 . 7 \\%$ for MNIST, $7 5 . 3 \\%$ for permutedMNIST and $3 1 . 3 \\%$ for CIFAR-10). We also see in Figure 6 that performance on those datasets starts to degrade at different fractions of removed examples: the number of support vectors varies from one dataset to the other, based on the complexity of the underlying data distribution. If we assume that we are in fact detecting analogs of support vectors, we can put these results in perspective with the intrinsic dataset dimension defined by Li et al. (2018) as the codimension in the parameter space of the solution set: for a given architecture, the higher the intrinsic dataset dimension, the larger the number of support vectors, and the fewer the number of unforgettable examples. ",
694
+ "bbox": [
695
+ 173,
696
+ 642,
697
+ 825,
698
+ 768
699
+ ],
700
+ "page_idx": 7
701
+ },
702
+ {
703
+ "type": "text",
704
+ "text": "6 TRANSFERABLE FORGETTING EVENTS ",
705
+ "text_level": 1,
706
+ "bbox": [
707
+ 174,
708
+ 796,
709
+ 529,
710
+ 813
711
+ ],
712
+ "page_idx": 7
713
+ },
714
+ {
715
+ "type": "text",
716
+ "text": "Forgetting events rely on training a given architecture, with a given optimizer, for a given number of epochs. We investigate to what extent the forgetting statistics of examples depend on those factors. ",
717
+ "bbox": [
718
+ 174,
719
+ 832,
720
+ 823,
721
+ 861
722
+ ],
723
+ "page_idx": 7
724
+ },
725
+ {
726
+ "type": "text",
727
+ "text": "Throughout training We compute the Spearman rank correlation between the ordering obtained at the end of training (200 epochs) and the ordering after various number of epochs. As seen in Fig. 7 (Left), the ordering is very stable after 75 epochs, and we found a reasonable number of epochs to get a good correlation to be 25 (see the Supplementary Materials for precision-recall plots). ",
728
+ "bbox": [
729
+ 174,
730
+ 867,
731
+ 825,
732
+ 924
733
+ ],
734
+ "page_idx": 7
735
+ },
736
+ {
737
+ "type": "text",
738
+ "text": "Between architectures A limitation of our method is that it requires computing the ordering from a previous run. An interesting question is whether that ordering could be obtained from a simpler architecture than residual networks. We train a network with two convolutional layers followed by two fully connected ones (see the Supplementary for the full architecture) and compare the resulting ordering with the one obtained with ResNet18. Figure 7 (Middle) shows a precision-recall plot of the unforgettable examples computed with the residual network. We see a reasonably strong agreement between the unforgettable examples of the convolutional neural network and the ones of the ResNet18. Finally, we train a WideResNet (Zagoruyko & Komodakis, 2016) on truncated data sets using the example ordering from ResNet18. Using the same computing power (one Titan X GPU), Resnet18 requires 2 hours to train whereas WideResNet requires 8 – estimating the forgetting statistics of WideResNet via ResNet18 can save up to 6 hours of training time if the estimate is accurate. We plot WideResNet’s generalization performance using the ordering obtained by ResNet18 in Figure 7 (Right): the network still performs near optimally with $3 0 \\%$ of the dataset removed. This opens up promising avenues of computing forgetting statistics with smaller architectures. ",
739
+ "bbox": [
740
+ 174,
741
+ 104,
742
+ 825,
743
+ 297
744
+ ],
745
+ "page_idx": 8
746
+ },
747
+ {
748
+ "type": "text",
749
+ "text": "7 CONCLUSION AND FUTURE WORK ",
750
+ "text_level": 1,
751
+ "bbox": [
752
+ 176,
753
+ 318,
754
+ 495,
755
+ 333
756
+ ],
757
+ "page_idx": 8
758
+ },
759
+ {
760
+ "type": "text",
761
+ "text": "In this paper, inspired by the phenomenon of catastrophic forgetting, we investigate the learning dynamics of neural networks when training on single classification tasks. We show that catastrophic forgetting can occur in the context of what is usually considered to be a single task. Inspired by this result, we find that some examples within a task are more prone to being forgotten, while others are consistently unforgettable. We also find that forgetting statistics seem to be fairly stable with respect to the various characteristics of training, suggesting that they actually uncover intrinsic properties of the data rather than idiosyncrasies of the training schemes. Furthermore, the unforgettable examples seem to play little part in the final performance of the classifier as they can be removed from the training set without hurting generalization. This supports recent research interpreting deep neural networks as max margin classifiers in the linear case. Future work involves understanding forgetting events better from a theoretical perspective, exploring potential applications to other areas of supervised learning, such as speech or text and to reinforcement learning where forgetting is prevalent due to the continual shift of the underlying distribution. ",
762
+ "bbox": [
763
+ 174,
764
+ 348,
765
+ 825,
766
+ 529
767
+ ],
768
+ "page_idx": 8
769
+ },
770
+ {
771
+ "type": "text",
772
+ "text": "8 ACKNOWLEDGMENTS ",
773
+ "text_level": 1,
774
+ "bbox": [
775
+ 176,
776
+ 549,
777
+ 387,
778
+ 564
779
+ ],
780
+ "page_idx": 8
781
+ },
782
+ {
783
+ "type": "text",
784
+ "text": "We acknowledge the anonymous reviewers for their insightful suggestions. ",
785
+ "bbox": [
786
+ 174,
787
+ 579,
788
+ 663,
789
+ 594
790
+ ],
791
+ "page_idx": 8
792
+ },
793
+ {
794
+ "type": "text",
795
+ "text": "REFERENCES ",
796
+ "text_level": 1,
797
+ "bbox": [
798
+ 176,
799
+ 614,
800
+ 285,
801
+ 630
802
+ ],
803
+ "page_idx": 8
804
+ },
805
+ {
806
+ "type": "text",
807
+ "text": "Madhu S. Advani and Andrew M. Saxe. High-dimensional dynamics of generalization error in neural networks. CoRR, abs/1710.03667, 2017. \nYoshua Bengio and Yann LeCun. Scaling learning algorithms towards AI. In Large Scale Kernel Machines. MIT Press, 2007. \nYoshua Bengio, Jer´ ome Louradour, Ronan Collobert, and Jason Weston. Curriculum learning. In ˆ Proceedings of the 26th annual international conference on machine learning, pp. 41–48. ACM, 2009. \nCarla E Brodley and Mark A Friedl. Identifying mislabeled training data. Journal of artificial intelligence research, 11:131–167, 1999. \nHaw-Shiuan Chang, Erik Learned-Miller, and Andrew McCallum. Active Bias: Training More Accurate Neural Networks by Emphasizing High Variance Samples. In Advances in Neural Information Processing Systems, pp. 1002–1012, 2017. \nPratik Chaudhari, Anna Choromanska, Stefano Soatto, Yann LeCun, Carlo Baldassi, Christian Borgs, Jennifer Chayes, Levent Sagun, and Riccardo Zecchina. Entropy-SGD: Biasing Gradient Descent Into Wide Valleys. ICLR ’17, 2016. \nTerrance DeVries and Graham W Taylor. Improved regularization of convolutional neural networks with cutout. arXiv preprint arXiv:1708.04552, 2017. ",
808
+ "bbox": [
809
+ 171,
810
+ 635,
811
+ 826,
812
+ 925
813
+ ],
814
+ "page_idx": 8
815
+ },
816
+ {
817
+ "type": "text",
818
+ "text": "Yang Fan, Fei Tian, Tao Qin, and Jiang Bian. Learning What Data to Learn. 2017. ",
819
+ "bbox": [
820
+ 171,
821
+ 103,
822
+ 714,
823
+ 119
824
+ ],
825
+ "page_idx": 9
826
+ },
827
+ {
828
+ "type": "text",
829
+ "text": "Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In Proc. of ICML, 2017. ",
830
+ "bbox": [
831
+ 173,
832
+ 128,
833
+ 823,
834
+ 157
835
+ ],
836
+ "page_idx": 9
837
+ },
838
+ {
839
+ "type": "text",
840
+ "text": "S. Hochreiter and J. Schmidhuber. Flat minima. Neural Computation, 9(1):1–42, 1997. ",
841
+ "bbox": [
842
+ 173,
843
+ 167,
844
+ 746,
845
+ 184
846
+ ],
847
+ "page_idx": 9
848
+ },
849
+ {
850
+ "type": "text",
851
+ "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, pp. 4700–4708, 2017. ",
852
+ "bbox": [
853
+ 176,
854
+ 193,
855
+ 826,
856
+ 236
857
+ ],
858
+ "page_idx": 9
859
+ },
860
+ {
861
+ "type": "text",
862
+ "text": "Lu Jiang, Zhengyuan Zhou, Thomas Leung, Li-Jia Li, and Li Fei-Fei. MentorNet: Learning datadriven curriculum for very deep neural networks on corrupted labels. In Proceedings of the 35th International Conference on Machine Learning. PMLR, 2018. ",
863
+ "bbox": [
864
+ 173,
865
+ 246,
866
+ 826,
867
+ 289
868
+ ],
869
+ "page_idx": 9
870
+ },
871
+ {
872
+ "type": "text",
873
+ "text": "George H John. Robust decision trees: removing outliers from databases. In Proceedings of the First International Conference on Knowledge Discovery and Data Mining, pp. 174–179. AAAI Press, 1995. ",
874
+ "bbox": [
875
+ 173,
876
+ 299,
877
+ 826,
878
+ 342
879
+ ],
880
+ "page_idx": 9
881
+ },
882
+ {
883
+ "type": "text",
884
+ "text": "Angelos Katharopoulos and Franois Fleuret. Not all samples are created equal: Deep learning with importance sampling. In Jennifer G. Dy and Andreas Krause (eds.), ICML, volume 80 of JMLR Workshop and Conference Proceedings, pp. 2530–2539. JMLR.org, 2018. URL http: //dblp.uni-trier.de/db/conf/icml/icml2018.html#KatharopoulosF18. ",
885
+ "bbox": [
886
+ 174,
887
+ 352,
888
+ 825,
889
+ 409
890
+ ],
891
+ "page_idx": 9
892
+ },
893
+ {
894
+ "type": "text",
895
+ "text": "Nitish Shirish Keskar, Dheevatsa Mudigere, Jorge Nocedal, Mikhail Smelyanskiy, and Ping Tak Peter Tang. On large-batch training for deep learning: Generalization gap and sharp minima. arXiv preprint arXiv:1609.04836, 2016. ",
896
+ "bbox": [
897
+ 174,
898
+ 419,
899
+ 825,
900
+ 462
901
+ ],
902
+ "page_idx": 9
903
+ },
904
+ {
905
+ "type": "text",
906
+ "text": "Tae-Hoon Kim and Jonghyun Choi. Screenernet: Learning curriculum for neural networks. CoRR, abs/1801.00904, 2018. URL http://dblp.uni-trier.de/db/journals/ corr/corr1801.html#abs-1801-00904. ",
907
+ "bbox": [
908
+ 174,
909
+ 472,
910
+ 825,
911
+ 513
912
+ ],
913
+ "page_idx": 9
914
+ },
915
+ {
916
+ "type": "text",
917
+ "text": "Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization, 2014. URL http: //arxiv.org/abs/1412.6980. cite arxiv:1412.6980Comment: Published as a conference paper at the 3rd International Conference for Learning Representations, San Diego, 2015. ",
918
+ "bbox": [
919
+ 173,
920
+ 525,
921
+ 825,
922
+ 568
923
+ ],
924
+ "page_idx": 9
925
+ },
926
+ {
927
+ "type": "text",
928
+ "text": "James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, and Others. Overcoming catastrophic forgetting in neural networks. Proceedings of the national academy of sciences, pp. 201611835, 2017. ",
929
+ "bbox": [
930
+ 174,
931
+ 577,
932
+ 826,
933
+ 633
934
+ ],
935
+ "page_idx": 9
936
+ },
937
+ {
938
+ "type": "text",
939
+ "text": "Robert Kleinberg, Yuanzhi Li, and Yang Yuan. An alternative view: When does sgd escape local minima? CoRR, abs/1802.06175, 2018. URL http://dblp.uni-trier.de/db/ journals/corr/corr1802.html#abs-1802-06175. ",
940
+ "bbox": [
941
+ 173,
942
+ 645,
943
+ 825,
944
+ 686
945
+ ],
946
+ "page_idx": 9
947
+ },
948
+ {
949
+ "type": "text",
950
+ "text": "Pang Wei Koh and Percy Liang. Understanding black-box predictions via influence functions. In Doina Precup and Yee Whye Teh (eds.), ICML, volume 70 of JMLR Workshop and Conference Proceedings, pp. 1885–1894. JMLR.org, 2017. URL http://dblp.uni-trier.de/db/ conf/icml/icml2017.html#KohL17. ",
951
+ "bbox": [
952
+ 173,
953
+ 696,
954
+ 825,
955
+ 753
956
+ ],
957
+ "page_idx": 9
958
+ },
959
+ {
960
+ "type": "text",
961
+ "text": "Alex Krizhevsky. Learning multiple layers of features from tiny images. 2009. URL https: //www.cs.toronto.edu/˜kriz/learning-features-2009-TR.pdf. ",
962
+ "bbox": [
963
+ 171,
964
+ 763,
965
+ 821,
966
+ 794
967
+ ],
968
+ "page_idx": 9
969
+ },
970
+ {
971
+ "type": "text",
972
+ "text": "M Pawan Kumar, Benjamin Packer, and Daphne Koller. Self-Paced Learning for Latent Variable Models. In Proc. of NIPS, pp. 1–9, 2010. ",
973
+ "bbox": [
974
+ 168,
975
+ 803,
976
+ 825,
977
+ 833
978
+ ],
979
+ "page_idx": 9
980
+ },
981
+ {
982
+ "type": "text",
983
+ "text": "Y. LeCun, C. Cortes C., and C. Burges. The mnist database of handwritten digits. 1999. URL http://yann.lecun.com/exdb/mnist/. ",
984
+ "bbox": [
985
+ 169,
986
+ 842,
987
+ 825,
988
+ 871
989
+ ],
990
+ "page_idx": 9
991
+ },
992
+ {
993
+ "type": "text",
994
+ "text": "Yong Jae Lee and Kristen Grauman. Learning the easy things first: Self-paced visual category discovery. In Computer Vision and Pattern Recognition (CVPR), 2011 IEEE Conference on, pp. 1721–1728. IEEE, 2011. ",
995
+ "bbox": [
996
+ 176,
997
+ 882,
998
+ 825,
999
+ 924
1000
+ ],
1001
+ "page_idx": 9
1002
+ },
1003
+ {
1004
+ "type": "text",
1005
+ "text": "Chunyuan Li, Heerad Farkhoor, Rosanne Liu, and Jason Yosinski. Measuring the intrinsic dimension of objective landscapes. CoRR, abs/1804.08838, 2018. URL http://dblp.uni-trier. de/db/journals/corr/corr1804.html#abs-1804-08838. ",
1006
+ "bbox": [
1007
+ 173,
1008
+ 103,
1009
+ 823,
1010
+ 146
1011
+ ],
1012
+ "page_idx": 10
1013
+ },
1014
+ {
1015
+ "type": "text",
1016
+ "text": "Michael McCloskey and Neal J Cohen. Catastrophic interference in connectionist networks: The sequential learning problem. In Psychology of learning and motivation, volume 24, pp. 109–165. Elsevier, 1989. ",
1017
+ "bbox": [
1018
+ 176,
1019
+ 155,
1020
+ 823,
1021
+ 196
1022
+ ],
1023
+ "page_idx": 10
1024
+ },
1025
+ {
1026
+ "type": "text",
1027
+ "text": "Behnam Neyshabur, Ryota Tomioka, and Nathan Srebro. In search of the real inductive bias: On the role of implicit regularization in deep learning. CoRR, abs/1412.6614, 2014. URL http: //dblp.uni-trier.de/db/journals/corr/corr1412.html#NeyshaburTS14. ",
1028
+ "bbox": [
1029
+ 174,
1030
+ 207,
1031
+ 825,
1032
+ 250
1033
+ ],
1034
+ "page_idx": 10
1035
+ },
1036
+ {
1037
+ "type": "text",
1038
+ "text": "Guillermo Valle Perez, Chico Q. Camargo, and Ard A. Louis. Deep learning generalizes because the parameter-function map is biased towards simple functions. CoRR, abs/1805.08522, 2018. URL http://dblp.uni-trier.de/db/journals/corr/corr1805.html# abs-1805-08522. ",
1039
+ "bbox": [
1040
+ 174,
1041
+ 257,
1042
+ 825,
1043
+ 314
1044
+ ],
1045
+ "page_idx": 10
1046
+ },
1047
+ {
1048
+ "type": "text",
1049
+ "text": "Sachin Ravi and Hugo Larochelle. Optimization as a model for few-shot learning. In Proc. of ICLR, 2017. ",
1050
+ "bbox": [
1051
+ 173,
1052
+ 323,
1053
+ 823,
1054
+ 352
1055
+ ],
1056
+ "page_idx": 10
1057
+ },
1058
+ {
1059
+ "type": "text",
1060
+ "text": "Hippolyt Ritter, Aleksandar Botev, and David Barber. Online Structured Laplace Approximations For Overcoming Catastrophic Forgetting. 2018. URL http://arxiv.org/abs/1805. 07810. ",
1061
+ "bbox": [
1062
+ 173,
1063
+ 361,
1064
+ 825,
1065
+ 404
1066
+ ],
1067
+ "page_idx": 10
1068
+ },
1069
+ {
1070
+ "type": "text",
1071
+ "text": "Tom Schaul, John Quan, Ioannis Antonoglou, and David Silver. Prioritized experience replay. arXiv preprint arXiv:1511.05952, 2015. ",
1072
+ "bbox": [
1073
+ 174,
1074
+ 412,
1075
+ 823,
1076
+ 443
1077
+ ],
1078
+ "page_idx": 10
1079
+ },
1080
+ {
1081
+ "type": "text",
1082
+ "text": "Daniel Soudry, Elad Hoffer, Mor Shpigel Nacson, Suriya Gunasekar, and Nathan Srebro. The Implicit Bias of Gradient Descent on Separable Data. 2017. URL http://arxiv.org/abs/ 1710.10345. ",
1083
+ "bbox": [
1084
+ 173,
1085
+ 450,
1086
+ 823,
1087
+ 493
1088
+ ],
1089
+ "page_idx": 10
1090
+ },
1091
+ {
1092
+ "type": "text",
1093
+ "text": "Sainbayar Sukhbaatar, Joan Bruna, Manohar Paluri, Lubomir Bourdev, and Rob Fergus. Training convolutional networks with noisy labels. arXiv preprint arXiv:1406.2080, 2014. ",
1094
+ "bbox": [
1095
+ 171,
1096
+ 501,
1097
+ 823,
1098
+ 531
1099
+ ],
1100
+ "page_idx": 10
1101
+ },
1102
+ {
1103
+ "type": "text",
1104
+ "text": "R. Tachet, M. Pezeshki, S. Shabanian, A. Courville, and Y. Bengio. On the learning dynamics of deep neural networks. 2018. doi: arXiv:1809.06848v1. URL https://arxiv.org/abs/ 1809.06848. ",
1105
+ "bbox": [
1106
+ 173,
1107
+ 540,
1108
+ 825,
1109
+ 582
1110
+ ],
1111
+ "page_idx": 10
1112
+ },
1113
+ {
1114
+ "type": "text",
1115
+ "text": "Huan Wang, Nitish Shirish Keskar, Caiming Xiong, and Richard Socher. Identifying Generalization Properties in Neural Networks. pp. 1–23, 2018. doi: arXiv:1809.07402v1. URL http:// arxiv.org/abs/1809.07402. ",
1116
+ "bbox": [
1117
+ 174,
1118
+ 592,
1119
+ 825,
1120
+ 633
1121
+ ],
1122
+ "page_idx": 10
1123
+ },
1124
+ {
1125
+ "type": "text",
1126
+ "text": "Tengyu Xu, Yi Zhou, Kaiyi Ji, and Yingbin Liang. Convergence of sgd in learning relu models with separable data. CoRR, abs/1806.04339, 2018. URL http://dblp.uni-trier.de/db/ journals/corr/corr1806.html#abs-1806-04339. ",
1127
+ "bbox": [
1128
+ 173,
1129
+ 643,
1130
+ 825,
1131
+ 685
1132
+ ],
1133
+ "page_idx": 10
1134
+ },
1135
+ {
1136
+ "type": "text",
1137
+ "text": "Sergey Zagoruyko and Nikos Komodakis. Wide residual networks, 2016. URL http://arxiv. org/abs/1605.07146. cite arxiv:1605.07146. ",
1138
+ "bbox": [
1139
+ 174,
1140
+ 694,
1141
+ 820,
1142
+ 723
1143
+ ],
1144
+ "page_idx": 10
1145
+ },
1146
+ {
1147
+ "type": "text",
1148
+ "text": "Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. arXiv preprint arXiv:1611.03530, 2016. ",
1149
+ "bbox": [
1150
+ 174,
1151
+ 732,
1152
+ 821,
1153
+ 762
1154
+ ],
1155
+ "page_idx": 10
1156
+ },
1157
+ {
1158
+ "type": "text",
1159
+ "text": "Peilin Zhao and Tong Zhang. Stochastic Optimization with Importance Sampling for Regularized Loss Minimization. In Proc. of ICML, 2015. ",
1160
+ "bbox": [
1161
+ 174,
1162
+ 770,
1163
+ 823,
1164
+ 799
1165
+ ],
1166
+ "page_idx": 10
1167
+ },
1168
+ {
1169
+ "type": "text",
1170
+ "text": "9 EXPERIMENTATION DETAILS ",
1171
+ "text_level": 1,
1172
+ "bbox": [
1173
+ 174,
1174
+ 102,
1175
+ 446,
1176
+ 117
1177
+ ],
1178
+ "page_idx": 11
1179
+ },
1180
+ {
1181
+ "type": "text",
1182
+ "text": "Detailed distributions ",
1183
+ "text_level": 1,
1184
+ "bbox": [
1185
+ 174,
1186
+ 133,
1187
+ 318,
1188
+ 148
1189
+ ],
1190
+ "page_idx": 11
1191
+ },
1192
+ {
1193
+ "type": "image",
1194
+ "img_path": "images/40db3260f8868359b0a142e18935ed80deab110b3146ac564a4720b4a08426a7.jpg",
1195
+ "image_caption": [
1196
+ "Figure 8: From left to right, distributions of the first presentation at which each unforgettable and forgettable example was learned in MNIST, permutedMNIST and CIFAR-10 respectively. Rescaled view where the number of examples have been capped between 0 and 1500 for visualization purposes. Unforgettable examples are generally learnt early during training, thus may be considered as “easy” in the sense of Kumar et al. (2010), i.e. may have a low loss during most of the training. "
1197
+ ],
1198
+ "image_footnote": [],
1199
+ "bbox": [
1200
+ 214,
1201
+ 170,
1202
+ 769,
1203
+ 260
1204
+ ],
1205
+ "page_idx": 11
1206
+ },
1207
+ {
1208
+ "type": "text",
1209
+ "text": "Misclassification margin ",
1210
+ "text_level": 1,
1211
+ "bbox": [
1212
+ 174,
1213
+ 364,
1214
+ 341,
1215
+ 378
1216
+ ],
1217
+ "page_idx": 11
1218
+ },
1219
+ {
1220
+ "type": "image",
1221
+ "img_path": "images/346765f78b8c8da6d80b4d9473bd330527ba0ad098006b6151e644efc6afcd48.jpg",
1222
+ "image_caption": [
1223
+ "Figure 9: Left 2D-histogram of the number of forgetting events and mean misclassification margin across all examples of CIFAR-10. There is significant negative correlation (-0.74, Spearman rank correlation) between mean misclassification margin and the number of forgetting events. "
1224
+ ],
1225
+ "image_footnote": [],
1226
+ "bbox": [
1227
+ 375,
1228
+ 397,
1229
+ 620,
1230
+ 526
1231
+ ],
1232
+ "page_idx": 11
1233
+ },
1234
+ {
1235
+ "type": "text",
1236
+ "text": "permutedMNIST The permutedMNIST data set is obtained by applying a fixed random permutation of the pixels to all the images of the standard MNIST data set. This typically makes the data set harder to learn for convolutional neural networks as local patterns, e.g. the horizontal bar of the 7, get shuffled. This statement is supported by the two following facts: ",
1237
+ "bbox": [
1238
+ 174,
1239
+ 604,
1240
+ 825,
1241
+ 660
1242
+ ],
1243
+ "page_idx": 11
1244
+ },
1245
+ {
1246
+ "type": "text",
1247
+ "text": "• The number of unforgettable examples for permutedMNIST is 45181 versus 55012 for MNIST. \n• The intrinsic data set dimension (Li et al., 2018) of permutedMNIST is 1400 compared to 290 for the untouched data set. ",
1248
+ "bbox": [
1249
+ 215,
1250
+ 672,
1251
+ 825,
1252
+ 734
1253
+ ],
1254
+ "page_idx": 11
1255
+ },
1256
+ {
1257
+ "type": "text",
1258
+ "text": "Network Architectures We use a variety of different architectures in the main text. Below are their specifications. ",
1259
+ "bbox": [
1260
+ 173,
1261
+ 747,
1262
+ 826,
1263
+ 775
1264
+ ],
1265
+ "page_idx": 11
1266
+ },
1267
+ {
1268
+ "type": "text",
1269
+ "text": "The architecture for the MNIST and permutedMNIST experiments is the following: ",
1270
+ "bbox": [
1271
+ 176,
1272
+ 781,
1273
+ 718,
1274
+ 797
1275
+ ],
1276
+ "page_idx": 11
1277
+ },
1278
+ {
1279
+ "type": "text",
1280
+ "text": "1. a first convolutional layer with 5 by 5 filters and 10 feature maps, \n2. a second convolutional layer with 5 by 5 filters and 20 feature maps, \n3. a fully connected layer with 50 hidden units \n4. the output layer, with 10 logits, one for each class. ",
1281
+ "bbox": [
1282
+ 210,
1283
+ 808,
1284
+ 681,
1285
+ 883
1286
+ ],
1287
+ "page_idx": 11
1288
+ },
1289
+ {
1290
+ "type": "text",
1291
+ "text": "We apply ReLU nonlinearities to the feature maps and to the hidden layer. The last layer is passed through a softmax to output probabilities for each class of the data set. ",
1292
+ "bbox": [
1293
+ 173,
1294
+ 895,
1295
+ 823,
1296
+ 924
1297
+ ],
1298
+ "page_idx": 11
1299
+ },
1300
+ {
1301
+ "type": "text",
1302
+ "text": "The ResNet18 architecture used for CIFAR-10 is described thoroughly in DeVries & Taylor (2017), its implementation can be found at https://github.com/uoguelph-mlrg/Cutout. ",
1303
+ "bbox": [
1304
+ 173,
1305
+ 103,
1306
+ 823,
1307
+ 132
1308
+ ],
1309
+ "page_idx": 12
1310
+ },
1311
+ {
1312
+ "type": "text",
1313
+ "text": "The second one is a WideResNet (Zagoruyko & Komodakis, 2016), with a depth of 28 and a widen factor of 10. We used the implementation found at https://github.com/meliketoy/ wide-resnet.pytorch. ",
1314
+ "bbox": [
1315
+ 176,
1316
+ 138,
1317
+ 825,
1318
+ 181
1319
+ ],
1320
+ "page_idx": 12
1321
+ },
1322
+ {
1323
+ "type": "text",
1324
+ "text": "The convolutional architecture used in Section 6 is the following: ",
1325
+ "bbox": [
1326
+ 174,
1327
+ 188,
1328
+ 602,
1329
+ 203
1330
+ ],
1331
+ "page_idx": 12
1332
+ },
1333
+ {
1334
+ "type": "text",
1335
+ "text": "1. a first convolutional layer with 5 by 5 filters and 6 feature maps, \n2. a 2 by 2 max pooling layer \n3. a second convolutional layer with 5 by 5 filters and 16 feature maps, \n4. a first fully connected layer with 120 hidden units \n5. a second fully connected layer with 84 hidden units \n6. the output layer, with 10 logits, one for each class. ",
1336
+ "bbox": [
1337
+ 210,
1338
+ 213,
1339
+ 681,
1340
+ 327
1341
+ ],
1342
+ "page_idx": 12
1343
+ },
1344
+ {
1345
+ "type": "text",
1346
+ "text": "Optimization ",
1347
+ "text_level": 1,
1348
+ "bbox": [
1349
+ 173,
1350
+ 338,
1351
+ 269,
1352
+ 353
1353
+ ],
1354
+ "page_idx": 12
1355
+ },
1356
+ {
1357
+ "type": "text",
1358
+ "text": "The MNIST networks are trained to minimize the cross-entropy loss using stochastic gradient descent with a learning rate of 0.01 and a momentum of 0.5. ",
1359
+ "bbox": [
1360
+ 176,
1361
+ 359,
1362
+ 823,
1363
+ 387
1364
+ ],
1365
+ "page_idx": 12
1366
+ },
1367
+ {
1368
+ "type": "text",
1369
+ "text": "The ResNet18 is trained using cutout, data augmentation and stochastic gradient descent with a 0.9 Nesterov momentum and a learning rate starting at 0.1 and divided by 5 at epochs 60, 120 and 160. ",
1370
+ "bbox": [
1371
+ 176,
1372
+ 395,
1373
+ 825,
1374
+ 424
1375
+ ],
1376
+ "page_idx": 12
1377
+ },
1378
+ {
1379
+ "type": "text",
1380
+ "text": "The WideResNet is trained using Adam (Kingma & Ba, 2014) and a learning rate of 0.001. ",
1381
+ "bbox": [
1382
+ 174,
1383
+ 429,
1384
+ 771,
1385
+ 445
1386
+ ],
1387
+ "page_idx": 12
1388
+ },
1389
+ {
1390
+ "type": "text",
1391
+ "text": "10 STABILITY OF THE FORGETTING EVENTS ",
1392
+ "text_level": 1,
1393
+ "bbox": [
1394
+ 174,
1395
+ 465,
1396
+ 555,
1397
+ 482
1398
+ ],
1399
+ "page_idx": 12
1400
+ },
1401
+ {
1402
+ "type": "text",
1403
+ "text": "In Fig 10, we plot precision-recall diagrams for the unforgettable and most forgotten examples of CIFAR-10 obtained on ResNet18 after 200 epochs and various prior time steps. We see in particular that at 75 epochs, the examples on both side of the spectrum can be retrieved with very high precision and recall. ",
1404
+ "bbox": [
1405
+ 173,
1406
+ 497,
1407
+ 825,
1408
+ 553
1409
+ ],
1410
+ "page_idx": 12
1411
+ },
1412
+ {
1413
+ "type": "image",
1414
+ "img_path": "images/d0a4f4da5ca23c1030925e3507e07d66a97018af24260ed0237910e1d8ac6e6c.jpg",
1415
+ "image_caption": [
1416
+ "Figure 10: Right: precision and recall of retrieving the unforgettable examples from a full run of ResNet18 (200 epochs), using the example ordering after 25, 50, and 75 epochs. The unforgettable examples are retrieved with high precision and recall after 50 epochs. Left: same plot for the $1 7 \\mathrm { k }$ examples with the most forgetting events. "
1417
+ ],
1418
+ "image_footnote": [],
1419
+ "bbox": [
1420
+ 248,
1421
+ 570,
1422
+ 750,
1423
+ 708
1424
+ ],
1425
+ "page_idx": 12
1426
+ },
1427
+ {
1428
+ "type": "text",
1429
+ "text": "11 Noising THE DATA SETS ",
1430
+ "text_level": 1,
1431
+ "bbox": [
1432
+ 178,
1433
+ 821,
1434
+ 408,
1435
+ 838
1436
+ ],
1437
+ "page_idx": 12
1438
+ },
1439
+ {
1440
+ "type": "text",
1441
+ "text": "In Section 4, we analyzed the effect of adding label noise on the distribution of forgetting events. Here, we examine the effect of adding pixel noise, i.e. noising the input distribution. We choose to corrupt the inputs with additive Gaussian noise with zero mean and we choose for its standard deviation to be a multiple of channel-wise data standard deviation (i.e., $\\sigma _ { \\mathrm { n o i s e } } = \\lambda \\sigma _ { \\mathrm { d a t a } } , \\lambda \\in$ $\\{ 0 . 5 , 1 , 2 , 1 0 \\} )$ ). Note that we add the noise after applying a channel-wise standard normalization step of the training images, therefore $\\sigma _ { \\mathrm { { d a t a } } } = 1$ (each channel has zero mean, unit variance, this is a standard pre-processing step and has been applied throughout all the experiments in this paper). ",
1442
+ "bbox": [
1443
+ 174,
1444
+ 853,
1445
+ 825,
1446
+ 924
1447
+ ],
1448
+ "page_idx": 12
1449
+ },
1450
+ {
1451
+ "type": "text",
1452
+ "text": "",
1453
+ "bbox": [
1454
+ 169,
1455
+ 103,
1456
+ 823,
1457
+ 132
1458
+ ],
1459
+ "page_idx": 13
1460
+ },
1461
+ {
1462
+ "type": "text",
1463
+ "text": "The forgetting distributions obtained by noising all the dataset examples with increasing noise standard deviation are presented in Figure 11. We observe that adding increasing amount of noise decreases the amount of unforgettable examples and increases the amount of examples in the second mode of the forgetting distribution. ",
1464
+ "bbox": [
1465
+ 174,
1466
+ 138,
1467
+ 825,
1468
+ 194
1469
+ ],
1470
+ "page_idx": 13
1471
+ },
1472
+ {
1473
+ "type": "image",
1474
+ "img_path": "images/c85d546ee783e0bdf6fbd8db022d9d0074abb33e2162f714b1d5d1390c616da9.jpg",
1475
+ "image_caption": [
1476
+ "Figure 11: Distribution of forgetting events across all training examples in CIFAR-10 when all training images are augmented with increasing additive Gaussian noise. The presence of increasing amount of noise decreases the amount of unforgettable examples and increases the amount of examples in the second mode of the forgetting distribution. "
1477
+ ],
1478
+ "image_footnote": [],
1479
+ "bbox": [
1480
+ 357,
1481
+ 228,
1482
+ 686,
1483
+ 406
1484
+ ],
1485
+ "page_idx": 13
1486
+ },
1487
+ {
1488
+ "type": "text",
1489
+ "text": "We follow the noisy-labels experiments of Section 4 and we apply the aforementioned pixel noise to $2 0 \\%$ of the training data $( \\sigma _ { \\mathrm { n o i s e } } = 1 0 $ ). We present the results of comparing the forgetting distribution of the $2 0 \\%$ of examples before and after noise was added to the pixels in Figure 12 (Left). For ease of comparison, we report the same results in the case of label noise in Figure 12 (Right). We observe that the forgetting distribution under pixel noise resembles the one under label noise. ",
1490
+ "bbox": [
1491
+ 173,
1492
+ 498,
1493
+ 825,
1494
+ 569
1495
+ ],
1496
+ "page_idx": 13
1497
+ },
1498
+ {
1499
+ "type": "image",
1500
+ "img_path": "images/a8aa943972ff1159f256e74be4eed78ea574ea1eb67e479b0ad485910b3ad749.jpg",
1501
+ "image_caption": [
1502
+ "Figure 12: Distribution of forgetting events across all training examples in CIFAR-10 when random $2 0 \\%$ of training examples undergo pixel noise $( \\sigma _ { \\mathrm { n o i s e } } = 1 0 $ ) (Left) or label noise (Right) (same as Figure 3). We observe that the forgetting distribution under pixel noise resembles the one under label noise. "
1503
+ ],
1504
+ "image_footnote": [],
1505
+ "bbox": [
1506
+ 184,
1507
+ 587,
1508
+ 810,
1509
+ 742
1510
+ ],
1511
+ "page_idx": 13
1512
+ },
1513
+ {
1514
+ "type": "image",
1515
+ "img_path": "images/66ef88f7b4734f840e5f220706c67153fb836118aade5e3085872472697b01ce.jpg",
1516
+ "image_caption": [
1517
+ "Figure 13: Histogram of forgetting events under true and random gradient steps. (Right) Zoomed-in version where the number of forgetting events is capped at 3 for visualization. "
1518
+ ],
1519
+ "image_footnote": [],
1520
+ "bbox": [
1521
+ 186,
1522
+ 145,
1523
+ 812,
1524
+ 299
1525
+ ],
1526
+ "page_idx": 14
1527
+ },
1528
+ {
1529
+ "type": "text",
1530
+ "text": "Forgetting events may happen by “chance”, i.e. some learning/forgetting events may occur even with random gradients. In order to estimate how large the effect of “chance” is, we compute the forgetting events of a classifier obtained by randomizing the update steps. To keep the statistics of the gradients similar to those encountered during SGD, we proceed as follows: ",
1531
+ "bbox": [
1532
+ 174,
1533
+ 367,
1534
+ 825,
1535
+ 424
1536
+ ],
1537
+ "page_idx": 14
1538
+ },
1539
+ {
1540
+ "type": "text",
1541
+ "text": "1. Before the beginning of training, clone the “base” classifier into a new “clone” classifier with the same random weights. \n2. At each training step, shuffle the gradients computed on the base classifier and apply those to the clone (the base classifier is still optimized the same way): this ensures that the statistics of the random updates match the statistics of the true gradients during learning. \n3. Compute the forgetting events of the clone classifier on the training set exactly as is done with the base classifier. ",
1542
+ "bbox": [
1543
+ 210,
1544
+ 435,
1545
+ 825,
1546
+ 545
1547
+ ],
1548
+ "page_idx": 14
1549
+ },
1550
+ {
1551
+ "type": "text",
1552
+ "text": "The results can be found in Fig 13, showing the histogram of forgetting events produced by the clone network, averaged over 5 seeds. This gives an idea of the chance forgetting rate across examples. In this setting, examples are being forgotten by chance at most twice. ",
1553
+ "bbox": [
1554
+ 174,
1555
+ 558,
1556
+ 825,
1557
+ 599
1558
+ ],
1559
+ "page_idx": 14
1560
+ },
1561
+ {
1562
+ "type": "text",
1563
+ "text": "13 CONFIDENCE ON FORGETTING EVENTS FOR CIFAR-10 ",
1564
+ "text_level": 1,
1565
+ "bbox": [
1566
+ 176,
1567
+ 621,
1568
+ 663,
1569
+ 636
1570
+ ],
1571
+ "page_idx": 14
1572
+ },
1573
+ {
1574
+ "type": "text",
1575
+ "text": "In order to establish confidence intervals on the number of forgetting events, we computed them on 100 seeds and formed 20 averages over 5 seeds. In Fig 14, we show the average (in green), the bottom 2.5 percentile (in blue) and top 2.5 percentile (in orange) of those 20 curves. ",
1576
+ "bbox": [
1577
+ 173,
1578
+ 664,
1579
+ 500,
1580
+ 747
1581
+ ],
1582
+ "page_idx": 14
1583
+ },
1584
+ {
1585
+ "type": "image",
1586
+ "img_path": "images/4d7bfe4ea1651cd3e62eab8ae61e8d901a6c50ebcc9ce2e997271d7af7f36762.jpg",
1587
+ "image_caption": [
1588
+ "Figure 14: $9 5 \\%$ confidence interval on forgetting events averaged over 5 seeds. "
1589
+ ],
1590
+ "image_footnote": [],
1591
+ "bbox": [
1592
+ 517,
1593
+ 655,
1594
+ 777,
1595
+ 789
1596
+ ],
1597
+ "page_idx": 14
1598
+ },
1599
+ {
1600
+ "type": "text",
1601
+ "text": "14 VISUALIZATION OF FORGETTABLE AND UNFORGETTABLE IMAGES ",
1602
+ "text_level": 1,
1603
+ "bbox": [
1604
+ 169,
1605
+ 851,
1606
+ 764,
1607
+ 866
1608
+ ],
1609
+ "page_idx": 14
1610
+ },
1611
+ {
1612
+ "type": "text",
1613
+ "text": "See Fig 15 for additional pictures of the most unforgettable and forgettable examples of every CIFAR-10 class, when examples are sorted by number of forgetting events (ties are broken randomly). ",
1614
+ "bbox": [
1615
+ 174,
1616
+ 882,
1617
+ 823,
1618
+ 924
1619
+ ],
1620
+ "page_idx": 14
1621
+ },
1622
+ {
1623
+ "type": "image",
1624
+ "img_path": "images/26c48e7533031f21b82c5abf702faf01271be63236bc94aaa98a2de018c2d84f.jpg",
1625
+ "image_caption": [
1626
+ "Figure 15: Additional pictures of the most unforgettable (Left) and forgettable examples (Right) of every CIFAR-10 class, when examples are sorted by number of forgetting events (ties are broken randomly). Forgettable examples seem to exhibit peculiar or uncommon features. "
1627
+ ],
1628
+ "image_footnote": [],
1629
+ "bbox": [
1630
+ 181,
1631
+ 104,
1632
+ 813,
1633
+ 488
1634
+ ],
1635
+ "page_idx": 15
1636
+ },
1637
+ {
1638
+ "type": "text",
1639
+ "text": "15 FORGETTING IN CIFAR-100 ",
1640
+ "text_level": 1,
1641
+ "bbox": [
1642
+ 176,
1643
+ 575,
1644
+ 444,
1645
+ 592
1646
+ ],
1647
+ "page_idx": 15
1648
+ },
1649
+ {
1650
+ "type": "image",
1651
+ "img_path": "images/592d9ae138cf5d8e8b5ea0a1841eb664652b4ebd539972bbccd66b40eabb2d88.jpg",
1652
+ "image_caption": [
1653
+ "Figure 16: Left: distribution of forgetting events in CIFAR-100. Right: distribution of forgetting events in CIFAR-10 when $2 0 \\%$ of the labels are changed at random. The distribution of forgetting in CIFAR-100 is much closer to that of forgetting in the noisy CIFAR-10 than it is to forgetting in the original datasets presented in Figure 1. "
1654
+ ],
1655
+ "image_footnote": [],
1656
+ "bbox": [
1657
+ 186,
1658
+ 614,
1659
+ 812,
1660
+ 771
1661
+ ],
1662
+ "page_idx": 15
1663
+ },
1664
+ {
1665
+ "type": "text",
1666
+ "text": "The distribution of forgetting events in CIFAR-100 is shown in Figure 16. There are 3809 unforgettable examples $( 7 . 6 2 \\%$ of the training set). CIFAR-100 is the hardest to classify out all of the presented datasets and exhibits the highest percentage of forgetting events. This finding further supports the idea that there may be a correlation between the forgetting statistics and the intrinsic dimension of the learning problem. Additionally, each CIFAR-100 class contains 10 times fewer examples than in CIFAR-10 or the MNIST datasets, making each image all the more useful for the learning problem. ",
1667
+ "bbox": [
1668
+ 174,
1669
+ 867,
1670
+ 825,
1671
+ 924
1672
+ ],
1673
+ "page_idx": 15
1674
+ },
1675
+ {
1676
+ "type": "text",
1677
+ "text": "",
1678
+ "bbox": [
1679
+ 178,
1680
+ 103,
1681
+ 823,
1682
+ 145
1683
+ ],
1684
+ "page_idx": 16
1685
+ },
1686
+ {
1687
+ "type": "text",
1688
+ "text": "We also observe that the distribution of forgetting in CIFAR-100 is much closer to that of forgetting in the noisy CIFAR-10 than it is to forgetting in the original datasets presented in Figure 1. Visualizing the most forgotten examples in CIFAR-100 revealed that CIFAR-100 contains several images that appear multiple times in the training set under different labels. In Figure 17, we present the 36 most forgotten examples in CIFAR-100. Note that they are all images that appear under multiple labels (not shown: the ”girl” image also appears under the label ”baby”, the ”mouse” image also appears under ”shrew”, one of the 2 images of ‘oak tree’ appears under ‘willow tree’ and the other under ’maple tree’). ",
1689
+ "bbox": [
1690
+ 173,
1691
+ 152,
1692
+ 825,
1693
+ 263
1694
+ ],
1695
+ "page_idx": 16
1696
+ },
1697
+ {
1698
+ "type": "image",
1699
+ "img_path": "images/ed7978d733b2244b5413450009d4bb7a60df4ca0d6383fa95a93dd81606a5722.jpg",
1700
+ "image_caption": [
1701
+ "Figure 17: The 36 most forgotten examples in CIFAR-100. Note that they are all images that appear under multiple labels (not pictured: the ”girl” image also appears under the label ”baby”, the ”mouse” image also appears under ”shrew”, one of the 2 images of ‘oak tree’ appears under ‘willow tree’ and the other under ’maple tree’. "
1702
+ ],
1703
+ "image_footnote": [],
1704
+ "bbox": [
1705
+ 308,
1706
+ 279,
1707
+ 687,
1708
+ 599
1709
+ ],
1710
+ "page_idx": 16
1711
+ },
1712
+ {
1713
+ "type": "text",
1714
+ "text": "We perform the same removal experiments we presented in Figure 5 for CIFAR-100. The results are shown in Figure 18. Just like with CIFAR-10, we are able to remove all unforgettable examples ( $8 \\%$ of the training set) while maintaining test performance. ",
1715
+ "bbox": [
1716
+ 174,
1717
+ 686,
1718
+ 825,
1719
+ 729
1720
+ ],
1721
+ "page_idx": 16
1722
+ },
1723
+ {
1724
+ "type": "image",
1725
+ "img_path": "images/3a54884d456e90cfa222191b9e16175b859ca48687f897b0d17044f4ec6df4e7.jpg",
1726
+ "image_caption": [
1727
+ "Figure 18: Generalization performance on CIFAR-100 of ResNet18 where increasingly larger subsets of the training set are removed (mean $+ / -$ std error of 5 seeds). When the removed examples are selected at random, performance drops faster. Selecting the examples according to our ordering reduces the training set without affecting generalization. "
1728
+ ],
1729
+ "image_footnote": [],
1730
+ "bbox": [
1731
+ 313,
1732
+ 385,
1733
+ 681,
1734
+ 569
1735
+ ],
1736
+ "page_idx": 17
1737
+ }
1738
+ ]
parse/train/BJlxm30cKm/BJlxm30cKm_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BJlxm30cKm/BJlxm30cKm_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HkSZyinVG/HkSZyinVG.md ADDED
@@ -0,0 +1,250 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # IMPROVED LEARNING IN CONVOLUTIONAL NEURAL NETWORKS WITH SHIFTED EXPONENTIAL LINEAR UNITS (SHELUS)
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ The Exponential Linear Unit (ELU) has been proven to speed up learning and improve the classification performance over activation functions such as ReLU and Leaky ReLU for convolutional neural networks. The reasons behind the improved behavior are that ELU reduces the bias shift, it saturates for large negative inputs and it is continuously differentiable. However, it remains open whether ELU has the optimal shape and we address the quest for a superior activation function.
8
+
9
+ We use a new formulation to tune a piecewise linear activation function during training, to investigate the above question, and learn the shape of the locally optimal activation function. With this tuned activation function, the classification performance is improved and the resulting, learned activation function shows to be ELU-shaped irrespective if it is initialized as a RELU, LReLU or ELU. Interestingly, the learned activation function does not exactly pass through the origin indicating that a shifted ELU-shaped activation function is preferable. This observation leads us to introduce the Shifted Exponential Linear Unit (ShELU) as a new activation function.
10
+
11
+ Experiments on Cifar-100 show that the classification performance is further improved when using the ShELU activation function in comparison with ELU. The improvement is achieved when learning an individual bias shift for each neuron.
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ The classification accuracy of Convolutional Neural Networks (CNNs) has improved remarkably over the last years. The reason for the improvement is manifold: more sophisticated layer designs (Lin et al., 2013; He et al., 2016), effective regularization techniques reducing overfitting such as dropout (Srivastava et al., 2014) and batch normalization (Ioffe & Szegedy, 2015), new nonlinear activation functions (Clevert et al., 2015; Trottier et al., 2016), improved weight initialization methods (Glorot & Bengio, 2010; He et al., 2016), data augmentation and large scale data as ImageNet (Deng et al., 2009).
16
+
17
+ In this work, we focus on the nonlinear activation function and its effect on the network learning behavior. Since the introduction of the Rectified Linear Unit (ReLU) (Glorot et al., 2011), it is generally accepted that the activation should be noncontractive to avoid the vanishing gradient problem. The vanishing gradient hampered the learning for the sigmoid and tanh activations. As ReLU is not symmetric, its mean response will be non-negative and will introduce a bias shift for the units in the next layer. The Leaky Rectified Linear Unit (LReLU) (Maas et al., 2013) was proposed to alleviate this bias shift. The LReLU introduces a small linear activation for negative inputs controlled by a constant hyperparameter $\alpha$ .
18
+
19
+ Centering the activation, i.e. reducing the bias shift, is claimed to speed up learning (Le Cun et al., 1991). When the Exponential Linear Unit (ELU) was introduced by Clevert et al. (2015), one of the reason for its success and fast learning capability was claimed to be that the activation saturates for large negative inputs. ELU is also controlled by a hyperparameter that determines the saturation level. Another activation that is saturated for negative inputs is the Shifted ReLU (SReLU). Its shape is similar to ReLU, but the ”kink” is at -1 instead of 0. This reduces the bias shift while being saturated for negative inputs. ELU learns both faster and better than SReLU (Clevert et al.,
20
+
21
+ Table 1: Activation functions.
22
+
23
+ <table><tr><td>Activation</td><td>x&gt;0</td><td>x≤0</td></tr><tr><td rowspan="3">ReLU LReLU SReLU</td><td>X</td><td>0</td></tr><tr><td>X</td><td>αx</td></tr><tr><td>X</td><td>max(x,-1)</td></tr><tr><td rowspan="3">ELU PELU</td><td>X</td><td>α(exp(x)-1)</td></tr><tr><td>X</td><td>α(exp(β x)-1)</td></tr><tr><td></td><td></td></tr></table>
24
+
25
+ 2015), but it is not obvious which properties of ELU that actually create this improvement. It may be the smooth exponential decay for small negative inputs and/or the fact that it is continuously differentiable. The question also remains whether the shape of ELU is truly the optimal activation function or if there are other shapes, not yet found, that would further speed up and improve learning. And if they exist, how are they to be found. These were the type of issues that we wanted to explore when starting this work.
26
+
27
+ To improve the learning capabilities for the above mentioned activation functions, tuneable variants of them have been published where the control parameters are tuneable and learned instead of being set as a constant parameter according to their original publications. The Parametric ReLU (PReLU) was introduced by He et al. (2016) where the single control parameter $\alpha$ for LReLU is now learned during training. The Parametric ELU (PELU) was introduced by Trottier et al. (2016), also tuning the control parameters for ELU. Classification results were shown to improve with parameter tuning in both papers. The Scaled ELU (SELU)1 was defined by Klambauer et al. (2017) and is essentially a more simple variant of PELU. The activation functions mentioned so far are defined in Table 1.
28
+
29
+ Piecewise linear activation functions have previously been used by Agostinelli et al. (2014) to improve the performance compared to LReLU. In this work, we use the same concept with tuneable piecewise linear activation functions, but now with the additional objective to investigate the shape of the learned activation function. We apply this approach for nonlinear regression of the optimal activation function. We initialized the activation as linearized versions of ReLU, LReLU and ELU, and they all resulted in the same shape after tuning the network. The ReLU and LReLU activation functions are tuned into an ELU-shaped function whereas the ELU activation function retains its shape. However, we also noted that the tuned ELU-shaped activation function does not exactly pass through the origin. There is a small shift introduced around the origin while retaining the overall shape of the activation function.
30
+
31
+ Based on this observation, we introduce a shifted variant of the ELU activation function. In our experiments, we found that a horizontal shift is favorable and we call this new activation function Shifted Exponential Linear Unit (ShELU). The shift is tuneable during training and the shift is individual for each neuron. Experiments show that the classification performance is improved when allowing this shift in the activation function.
32
+
33
+ Our main contribution is the introduction of the shifted activation function ShELU. The second contribution is a new formulation of a tuneable piecewise linear activation function with constraints to make it continuous. This formulation can be used to explore for other, up to now unseen, shapes of activation functions. The third contribution is experimental support that an ELU-shaped activation function is favorable for learning; the tuneable piecewise linear activation function adapts to an ELU-shape during training, but with a small shift around the origin.
34
+
35
+ # 2 PIECEWISE LINEAR ACTIVATION FUNCTIONS
36
+
37
+ Piecewise linear activation functions were first introduced by Agostinelli et al. (2014). In this work, we use the same idea but now with the additional objective to investigate the shape of the learned activation function. If we initialize the activation function as a linearized version of ReLU, LReLU or ELU, how will the shape be changed during training?
38
+
39
+ Our formulation of a piecewise linear and continuous activation function is different from the one in Agostinelli et al. (2014) and consists of two steps: first a soft histogram is formed as in Felsberg & Granlund (2006), second, a weighted sum of the histogram outputs is computed. The piecewise linear activation functions are learned individually for each neuron.
40
+
41
+ # 2.1 SOFT HISTOGRAM
42
+
43
+ As it has been shown by Felsberg & Granlund (2006), a soft histogram can be represented by two components; one offset component and one histogram component. We use $N$ bins for positive input values and another $N$ bins for negative input values. All bins in the histogram have constant and unity width. The bin limits take integer values and the bin centers are at -0.5, 0.5, 1.5 etc. The concept of the soft histogram is illustrated in Figure 1. In the figure, $N$ is equal to 4, but in the experiments we also used more bins like $N = 8$ and 16. Within a certain activation layer, we extract the maximum and the minimum input over a minibatch. We then linearly scale the positive input values to lie in the range $[ 0 \mathrm { N } ]$ and the negative input values to lie in the range $[ - \mathbf { N } \mathbf { \Lambda } 0 ]$ . Now, as an example, consider two units with scaled input values of 2.68 and -1.80, respectively. For the first unit, the histogram component will be 1 for the bin centered at 2.5 and 0 for all other bins. The corresponding offset component will be 0.18, i.e. the signed distance from the bin center. For the second unit, the histogram component will be 1 for the bin centered at -1.5 and 0 for all other bins. The corresponding offset component will be -0.30. The output from the soft histogram for the two units will be
44
+
45
+ $$
46
+ y ( 2 . 6 8 ) = { \left[ \begin{array} { l l l l l l l l l } { 0 } & { 0 } & { 0 } & { 0 } & { 0 } & { 0 } & { 0 } & { 0 . 1 8 } & { 0 } \\ { 0 } & { 0 } & { 0 } & { 0 } & { 0 } & { 0 } & { 1 } & { 0 } \end{array} \right] }
47
+ $$
48
+
49
+ $$
50
+ y ( - 1 . 8 0 ) = { \left[ \begin{array} { l l l l l l l l l } { 0 } & { 0 } & { - 0 . 3 0 } & { 0 } & { 0 } & { 0 } & { 0 } & { 0 } \\ { 0 } & { 0 } & { 1 } & { 0 } & { 0 } & { 0 } & { 0 } & { 0 } \end{array} \right] }
51
+ $$
52
+
53
+ An analytical formulation of the soft histogram can be given as
54
+
55
+ $$
56
+ y ( x ) = \left[ { \begin{array} { c } { \left( x - { \mathrm { \mathrm { H o o r } } } ( x ) - 0 . 5 \right) m _ { \nu } ( x ) } \\ { m _ { \nu } ( x ) } \end{array} } \right] _ { 2 \times 2 \mathrm { N } } = \left[ { \begin{array} { c c c c } { o _ { 0 } } & { o _ { 1 } } & { \cdots } & { o _ { 2 \mathrm { N } - 1 } } \\ { h _ { 0 } } & { h _ { 1 } } & { \cdots } & { h _ { 2 \mathrm { N } - 1 } } \end{array} } \right] ,
57
+ $$
58
+
59
+ where $m _ { \nu } ( x )$ denotes the membership of the respective bins. The membership is 1 if the unit belongs to that bin and 0 for all other bins. The soft histogram output can alternatively be expressed with the offset and histogram components as in the right hand side of (2).
60
+
61
+ For backpropagation we need to compute the derivative of the soft histogram. In our formulation, we consider the membership $m _ { \nu } ( x )$ to be locally constant. This leads to a particular choice of subgradient that is also used in most implementations of max pooling, and it works well in practice. The derivative is computed as
62
+
63
+ $$
64
+ { \frac { d y } { d x } } = \left[ { m _ { \nu } ( x ) } \right] _ { 2 \times 2 \mathrm { N } }
65
+ $$
66
+
67
+ The output from the soft histogram is independent of the activation function, but any activation function can be represented or approximated by a weighted sum of the histogram output.
68
+
69
+ # 2.2 WEIGHTED SUM
70
+
71
+ Different piecewise linear activation functions can now be realized by varying the weights applied to the soft histogram outputs. For each activation layer, we define a matrix $W$ with weights for the
72
+
73
+ ![](images/e4055142f977a15d07dd09dea08b36b690b919c38f7be507119020b1ed4c35b8.jpg)
74
+ Figure 1: Soft histogram decomposed into rectangular and linear basis functions.
75
+
76
+ ![](images/9a446b0986253b9062618410bd089025f2f6a63688bf2ed163531420c8cc5f01.jpg)
77
+ Figure 2: Weighted sum examples, ReLU activation (left) and LReLU activation (right).
78
+
79
+ offset components and the histogram components
80
+
81
+ $$
82
+ W = \left[ { \begin{array} { l l l l } { w _ { o _ { 0 } } } & { w _ { o _ { 1 } } } & { \cdot \cdot \cdot } & { w _ { o _ { 2 \mathrm { N } - 1 } } } \\ { w _ { h _ { 0 } } } & { w _ { h _ { 1 } } } & { \cdot \cdot \cdot } & { w _ { h _ { 2 \mathrm { N } - 1 } } } \end{array} } \right] \quad .
83
+ $$
84
+
85
+ To obtain a ReLU activation function, we set all weights to 1 for the offset components on the positive side and 0 for all offset components on the negative side. The weights for the offset components correspond to the slope of the activation function for each linear piece. Further, for a ReLU, we set the weights for the histogram components to 0.5, 1.5, 2.5, etc. on the positive side and to 0 on the negative side. The weights for the histogram components correspond to the bias level at the bin centers of the activation function for each linear piece.
86
+
87
+ To obtain a LReLU activation function, the weights (slopes) for the negative offset components are set to the value for the hyperparameter $\alpha$ , e.g. to 0.1. The weights for the offset components on the positive side are the same as for ReLU. For $\alpha = 0 . 1$ , the weights for the histogram components on the negative side are set to -0.35, -0.25, -0.15 and -0.05, i.e. the bias level at the bin centers.
88
+
89
+ To summarize, the weight matrices for the ReLU and LReLU activation functions are defined as
90
+
91
+ $$
92
+ W _ { \mathrm { R e L U } } = \left[ { \begin{array} { c c c c c c c c } { 0 } & { 0 } & { 0 } & { 0 } & { 1 } & { 1 } & { 1 } & { 1 } \\ { 0 } & { 0 } & { 0 } & { 0 } & { 0 . 5 } & { 1 . 5 } & { 2 . 5 } & { 3 . 5 } \end{array} } \right]
93
+ $$
94
+
95
+ $$
96
+ W _ { \mathrm { L R e L U } } = \left[ \begin{array} { c c c c c c c c } { { 0 . 1 } } & { { 0 . 1 } } & { { 0 . 1 } } & { { 0 . 1 } } & { { 1 } } & { { 1 } } & { { 1 } } & { { 1 } } \\ { { - 0 . 3 5 } } & { { - 0 . 2 5 } } & { { - 0 . 1 5 } } & { { - 0 . 0 5 } } & { { 0 . 5 } } & { { 1 . 5 } } & { { 2 . 5 } } & { { 3 . 5 } } \end{array} \right] .
97
+ $$
98
+
99
+ The output for the weighted sum is the sum of an elementwise multiplication of the soft histogram with the weight matrix
100
+
101
+ $$
102
+ y = \sum _ { \nu } w _ { o _ { \nu } } o _ { \nu } + w _ { h _ { \nu } } h _ { \nu } .
103
+ $$
104
+
105
+ The weighted sum output for the two example units is illustrated in Figure 2. For the ReLU activation, the outputs will be $2 . 5 \times 1 + 1 \times 0 . 1 8 = 2 . 6 8$ and $0 \times 1 + 0 \times ( - 0 . 3 0 ) = 0$ , respectively. For the LReLU activation, the output for the unit with input value -1.80 will be $- 0 . 1 5 \times 1 + 0 . 1 \times ( - 0 . 3 0 ) =$ -0.18, as desired.
106
+
107
+ Our formulation will generate a piecewise linear activation function for any values chosen as weights for the offset and histogram components. However, it is obvious that constraints need to be put on the weights if a continuous activation function is to be obtained. The weights (slopes) for the offset components can be set independently but only one weight for the histogram component is independent from the other weights. Assume that $w _ { h _ { 0 } }$ is set as desired. To obtain a continuous linear function, the remaining histogram weights then need to be set as
108
+
109
+ $$
110
+ \begin{array} { r c l } { { w _ { h _ { 1 } } } } & { { = } } & { { w _ { h _ { 0 } } + 0 . 5 ( w _ { o _ { 0 } } + w _ { o _ { 1 } } ) } } \\ { { w _ { h _ { 2 } } } } & { { = } } & { { w _ { h _ { 0 } } + 0 . 5 ( w _ { o _ { 0 } } + 2 w _ { o _ { 1 } } + w _ { o _ { 2 } } ) } } \\ { { \vdots } } & { { } } & { { } } \\ { { w _ { h _ { 2 N - 1 } } } } & { { = } } & { { w _ { h _ { 0 } } + 0 . 5 ( w _ { o _ { 0 } } + 2 w _ { o _ { 1 } } + \cdots + 2 w _ { o _ { 2 N - 2 } } + w _ { o _ { 2 N - 1 } } ) . } } \end{array}
111
+ $$
112
+
113
+ The constraints in (7) must be enforced when updating the weights in the backpropagation step.
114
+
115
+ # 3 SHIFTED ACTIVATION FUNCTIONS
116
+
117
+ The results presented in section 4.1 show that an ELU-shaped activation function which is shifted around the origin seems favorable to improve learning. Hence, we introduce the ShELU activation function with horizontal shift and the SvELU activation function with vertical shift and define them as in Table 2. The hyperparameter $\alpha$ is considered to be a pre-set constant and it is not tuned during training. In our experiments, we set $\alpha = 1$ . We also define PShELU, a variant of PELU with horizontal shift. The parameters $\alpha$ and $\beta$ for PShELU are learned during training. In the experiments, they were initialized as $\alpha = \beta = 1 . 0$ , i.e. as an original ELU activation.
118
+
119
+ Table 2: Shifted activation functions.
120
+
121
+ <table><tr><td rowspan=1 colspan=1>Activation</td><td rowspan=1 colspan=1>Value</td><td rowspan=1 colspan=1>Region 1</td><td rowspan=1 colspan=1>Value</td><td rowspan=1 colspan=1>Region 2</td></tr><tr><td rowspan=1 colspan=1>ShELUSvELUPShELU</td><td rowspan=1 colspan=1>x+8x+8(c+)</td><td rowspan=1 colspan=1>x+δ&gt;0x&gt;0x+δ&gt;0</td><td rowspan=1 colspan=1>α(exp(x+δ)-1)α(exp(𝑥)-1)+δa(exp(+)-1)</td><td rowspan=1 colspan=1>x+δ≤0x≤0x+δ≤0</td></tr></table>
122
+
123
+ Note that the introduced shifts $\delta$ in Table 2 are individual for all neurons. As an example, consider the first layers in the Lenet network (LeCun et al., 1998) shown in Figure 3. The input is an image $3 2 \times 3 2 \times 3$ . In the first convolutional layer, there are 192 filters with size $5 \times 5 \times 3$ . The output from the convolutional layer consists of 192 feature maps with size $3 2 \times 3 2$ . The output includes a bias level for each feature map (each large square in the convolutional output), i.e. a total of 192 bias levels. The activation function is applied to the individual neurons resulting in an output with size $3 2 \times 3 2 \times 1 9 2$ . When we say that we introduce individual shifts for all neurons, it means that there is one tuneable shift for each of the $3 2 \times 3 2 \times 1 9 2$ neurons (all small squares in the activation output) where the activation function is applied.
124
+
125
+ In Goodfellow et al. (2016), chapter 9.5, it is stated that for CNNs it is natural to have shared biases with the same tiling pattern as the convolutional kernels, but that individual biases for each neuron ”would allow the model to correct for differences in the image statistics at different locations”. By introducing the activation function ShELU, with individual shifts for each neuron, we have indirectly created individual biases for the convolutional layer feature map output. Note that a convolutional layer with a shared bias level for each feature map output followed by a ShELU activation is equivalent with a convolutional layer with individual bias levels for each feature map output followed by an ELU activation. This equivalence was verified with experiments presented in section 4.2.1. However, frameworks as Caffe (Jia et al., 2014) and MatConvNet do not allow for individual biases in a convolutional layer but is restricted to shared biases.
126
+
127
+ # 4 EXPERIMENTS
128
+
129
+ # 4.1 EXPERIMENTS WITH PIECEWISE LINEAR ACTIVATION FUNCTIONS
130
+
131
+ To investigate the behavior of the piecewise linear activation function we made some experiments with the Lenet network and the Cifar-100 dataset (Krizhevsky & Hinton, 2009). We used the implementation of Lenet as provided when downloading the MatConvNet framework. We ran the Lenet network with the ReLU activation function, and also replaced all activation layers with LReLU and
132
+
133
+ ![](images/734540204bd74acae307f75f51cfcd193dab04a035c1cba472aea656ac1a1227.jpg)
134
+ Figure 3: Bias levels for convolutional layers and shifts for activation function. Biases/shifts can either be shared (large squares) or individual for each neuron (small squares).
135
+
136
+ Table 3: Top1error on Cifar-100 with Lenet network.
137
+
138
+ <table><tr><td>Activation</td><td>Toplerror (%)</td><td>Activation</td><td>Toplerror (%)</td><td>Activation</td><td>Toplerror (%)</td></tr><tr><td>ReLU</td><td>46.58</td><td>LReLU</td><td>45.41</td><td>ELU</td><td>44.96</td></tr><tr><td>Tuned ReLU</td><td>45.92</td><td>Tuned LReLU</td><td>45.18</td><td>Tuned ELU</td><td>44.51</td></tr></table>
139
+
140
+ ELU. We then exchanged the activation layers with the piecewise linear activation layer. We initialized the layers as a linear version of ReLU, LReLU and ELU respectively. We consistently noticed a slight improvement (a few tenths of a percent) in classification performance when using the tuneable piecewise linear activation function compared to its corresponding fixed activation function, see Table 3. Besides the slight classification improvement, it is also interesting to analyse the shape of the activation functions after tuning, see Figure 4. All three activation functions remain linear and with almost unity slope on the positive side. All three tuned activation functions exhibit a smooth exponential decay for small negative inputs and then remain fairly constant for larger negative inputs. The resulting shape after tuning for all three initializations is close to the ELU shape. However, notice that all tuned activation functions tend to return a variable but negative output for zero input and that they do not pass through the origin. These results suggest that we introduce the Shifted Exponential Linear Unit (ShELU) as an activation function. From the results it is not obvious whether the introduced shift around the origin should be vertical or horizontal. For a horizontal shift, the saturation level remains constant for large negative inputs which may seem more intuitive. For a vertical shift, the saturation level will vary depending on the shift which better matches the achieved results on the Lenet network.
141
+
142
+ # 4.2 EXPERIMENTS WITH SHIFTED ACTIVATION FUNCTIONS
143
+
144
+ # 4.2.1 EXPERIMENTS ON CIFAR-100 WITH LENET NETWORK
145
+
146
+ We now want to evaluate if the classification performance improves with the new activation functions ShELU and SvELU compared to ELU. We start with the Lenet network and replace all ELU activations with either the ShELU or the SvELU activation. The learning rate was set to 0.005 for the first 40 epochs, then lowered by a factor of 10 every 20 epochs, running a total of 80 epochs. The learning rate momentum was set to 0.9 and the weight decay to 0.0005. Image data was preprocessed with global contrast normalization and whitening (Coates et al., 2011). Note that the complete dataset was divided by a factor of 10 (compared to the preprocessing provided with the MatConvNet download) to better match the variance with Xavier initialization. During training the dataset was augmented with random horizontal flipping and by randomly cropping images from the original images zero padded with a frame of width four.
147
+
148
+ The classification errors for the training and test sets shown in Figure 5 are the average over 8 runs for each activation function. The top1errors in Table 4 are the average over the last 15 epochs for the lowest learning rate. The learning rate for the ShELU and SvELU activation layer weights was set to $2 \%$ of the base learning rate. The results show that there is a small improvement on the top1error using the ShELU and SvELU activation functions compared with the original ELU. Futhermore, the shifted activation function PShELU achieves a slightly better test results than both ELU and PELU.
149
+
150
+ ![](images/7c6f8f84144cd4adfcb451d4df972e59f449870f9218c185c74ca1a34984fe5c.jpg)
151
+ Figure 4: Initialization (red) and 20, 50 and 80 percentiles for tuned activation functions in last layer; ReLU (left), LReLU (middle) and ELU (right).
152
+
153
+ ![](images/e29872596ebdaae5e48641b096ad683df3bca8a952c9ce7e65594bdc5a32066d.jpg)
154
+ Figure 5: Training (dashed) and test (solid) errors on Cifar-100 with network Lenet (left). Test errors (final part) for ELU, SvELU and ShELU (middle), and ELU, PELU and PShELU (right).
155
+
156
+ Table 4: Top1 test errors on Cifar-100 with Lenet and Clevert-11 networks.
157
+
158
+ <table><tr><td>Activation</td><td>Lenetnetwork</td><td>Clevert-11 network</td></tr><tr><td>ELU</td><td>44.96</td><td>28.76</td></tr><tr><td>SvELU</td><td>44.70</td><td>28.85</td></tr><tr><td>ShELU</td><td>44.77</td><td>28.57</td></tr><tr><td>PELU</td><td>45.03</td><td>28.78</td></tr><tr><td>PShELU</td><td>44.76</td><td>28.74</td></tr><tr><td>ConvIndBias+ELU</td><td>44.78</td><td>1</td></tr></table>
159
+
160
+ The training behavior is very similar for all activation functions but the shifted activation functions exhibit a slightly better generalization behavior. However, the significance of these results is limited as Lenet is a rather shallow network.
161
+
162
+ We also created a network layer named ”ConvIndBias”, which is an identity mapping but it also adds an individually learned bias shift for each neuron. The results in Table 4 confirm that a ShELU activation is equivalent to the combination of a ConvIndBias layer and an ELU activation as was stated in section 3.
163
+
164
+ # 4.2.2 EXPERIMENTS ON CIFAR-100 WITH CLEVERT-11
165
+
166
+ To further evaluate the shifted activation functions in comparison with ELU, we built the 11-layer network used by Clevert et al. (2015) to replicate the experiments when ELU was introduced. We denote the network Clevert-11. Parameter settings and weight initializations were as in Clevert et al. (2015). Our results are the average over 9 runs for each activation function. Our classification results with the network Clevert-11 on the Cifar-100 dataset for the activation functions ELU, SvELU, ShELU, PELU and PShELU are presented in Figure 6 and summarized in Table 4. The results in the table are the average top1error over the last 20 epochs for each activation function. The results show that the test error for the ShELU activation function is significantly better than for ELU, whereas the error for SvELU is slightly inferior. The results suggest that a horizontal shift for the activation function is preferable to a vertical shift. The training behavior is almost identical for ELU and
167
+
168
+ ![](images/40c957922144a59f41ee058512fce98772f12a3f23dcad1324081c13d0fdb455.jpg)
169
+ Figure 6: Training (dashed) and test (solid) errors on Cifar-100 with network Clevert-11 (left). Test errors (final part) for ELU, SvELU and ShELU (middle), and ELU, PELU and PShELU (right).
170
+
171
+ ![](images/0f6b8bcf329be94f581746498dd57ad7c6a25d13c8cb97115a7239cb6f1b043f.jpg)
172
+ Figure 7: Learned shifts for ShELU activation function, relative frequency (left), kurtosis (middle) and spatial variation (right).
173
+
174
+ ShELU. We believe that the improved test result can be attributed to that ShELU adaptively learns where to set the reference level between the linear and exponential parts of the activation function.
175
+
176
+ ELU, PELU and PShELU all show very similar test errors. Note, however, that the training error is by far lower for PELU indicating pronounced overfitting compared to ELU. The training error is lower for PShELU than for ShELU but the test error is inferior. This suggests that PShELU suffers from overfitting when allowed to tune the hyperparameters $\alpha$ and $\beta$ . Note that we were able to almost exactly reproduce the results for ELU achieved in Clevert et al. (2015) who report a top1error of $2 8 . 7 5 \%$ .
177
+
178
+ # 4.3 LEARNED SHIFTS FOR SHELU
179
+
180
+ In all experments, we initialized the individual shifts for the ShELU activation from a Gaussian distribution with standard deviation 0.001. The learned shifts after training in the 10 activation layers of the Clevert-11 network are shown as normalized frequency histograms in Figure 7, together with the kurtosis and the spatial variation for the shifts.
181
+
182
+ The shape of the learned shifts is almost a perfect Gaussian distribution for all layers. This is supported by the computed kurtosis which is close to 3.0. The kurtosis increases slightly for the last three layers where the distribution tends to be somewhat skewed towards the negative side. The standard deviation for the shift is relatively constant for the first nine layers but grows considerably for the last layer.
183
+
184
+ Figure 7 shows the learned shifts for the first ShELU activation layer where the shifts for the 192 feature maps have been placed as $1 2 \times 1 6$ tiles side by side. Interestingly, the spatial variation for the learned shift seems to be completely random. Any statistical difference spatially over the image cannot be perceived.
185
+
186
+ # 5 CONCLUSIONS
187
+
188
+ We use a new formulation to tune a continuous piecewise linear activation function during training and learn the shape of the locally optimal activation function. With this tuned activation function, the classification performance for convolutional neural networks is improved and the resulting, learned activation function shows to be ELU-shaped irrespective whether it is initialized as a RELU, LReLU or ELU activation function. The learned activation function exhibits a variable shift around the origin for each neuron, indicating that a shifted ELU-shaped activation function is preferable. This observation leads us to introduce the Shifted Exponential Linear Unit (ShELU) as a new activation function.
189
+
190
+ Experiments on Cifar-100 show that the classification performance is further improved when using the ShELU activation function in comparison with ELU. Normally in a convolutional network layer, one shared bias shift is learned for each feature map output. The improvement for the ShELU activation is achieved when learning an individual bias shift for each neuron. The equivalent to the ShELU activation function would be to learn an individual bias shift for each neuron in the convolutional layer output and then apply an ELU activation, which however is not supported by commonly used deep learning frameworks. The implementation of individual biases in the activation function is therefore preferable and leads to the ShELU activation function.
191
+
192
+ # REFERENCES
193
+
194
+ Forest Agostinelli, Matthew Hoffman, Peter Sadowski, and Pierre Baldi. Learning activation functions to improve deep neural networks. arXiv preprint arXiv:1412.6830, 2014.
195
+
196
+ Djork-Arne Clevert, Thomas Unterthiner, and Sepp Hochreiter. Fast and accurate deep network ´ learning by exponential linear units (elus). arXiv preprint arXiv:1511.07289, 2015.
197
+
198
+ Adam Coates, Andrew Ng, and Honglak Lee. An analysis of single-layer networks in unsupervised feature learning. In Proceedings of the fourteenth international conference on artificial intelligence and statistics, pp. 215–223, 2011.
199
+
200
+ J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. ImageNet: A Large-Scale Hierarchical Image Database. In CVPR09, 2009.
201
+
202
+ Michael Felsberg and Gosta Granlund. P-channels: Robust multivariate m-estimation of large ¨ datasets. In Pattern Recognition, 2006. ICPR 2006. 18th International Conference on, volume 3, pp. 262–267. IEEE, 2006.
203
+
204
+ Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics, pp. 249–256, 2010.
205
+
206
+ Xavier Glorot, Antoine Bordes, and Yoshua Bengio. Deep sparse rectifier neural networks. In Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, pp. 315–323, 2011.
207
+
208
+ Ian Goodfellow, Yoshua Bengio, and Aaron Courville. Deep learning. MIT press, 2016.
209
+
210
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
211
+
212
+ Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Francis Bach and David Blei (eds.), Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pp. 448–456, Lille, France, 07–09 Jul 2015. PMLR. URL http://proceedings. mlr.press/v37/ioffe15.html.
213
+
214
+ Yangqing Jia, Evan Shelhamer, Jeff Donahue, Sergey Karayev, Jonathan Long, Ross Girshick, Sergio Guadarrama, and Trevor Darrell. Caffe: Convolutional architecture for fast feature embedding. arXiv preprint arXiv:1408.5093, 2014.
215
+
216
+ Gunter Klambauer, Thomas Unterthiner, Andreas Mayr, and Sepp Hochreiter. Self-normalizing ¨ neural networks. arXiv preprint arXiv:1706.02515, 2017.
217
+
218
+ Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. 2009.
219
+
220
+ Yann Le Cun, Ido Kanter, and Sara A Solla. Eigenvalues of covariance matrices: Application to neural-network learning. Physical Review Letters, 66(18):2396, 1991.
221
+
222
+ Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to ´ document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
223
+
224
+ Min Lin, Qiang Chen, and Shuicheng Yan. Network in network. arXiv preprint arXiv:1312.4400, 2013.
225
+
226
+ Andrew L Maas, Awni Y Hannun, and Andrew Y Ng. Rectifier nonlinearities improve neural network acoustic models. In Proc. ICML, volume 30, 2013.
227
+
228
+ MatConvNet. http://www.vlfeat.org/matconvnet/,v.beta-20.
229
+
230
+ Nitish Srivastava, Geoffrey E Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. Journal of machine learning research, 15(1):1929–1958, 2014.
231
+
232
+ Ludovic Trottier, Philippe Giguere, and Brahim Chaib-draa. Parametric exponential linear unit for \` deep convolutional neural networks. arXiv preprint arXiv:1605.09332, 2016.
233
+
234
+ # APPENDIX
235
+
236
+ # DERIVATIVES OF SHELU AND SVELU
237
+
238
+ For backpropagation, the derivates of ShELU and SvELU with respect to the input $x$ and the shift $\delta$ are computed as
239
+
240
+ $$
241
+ \begin{array} { r l } & { \frac { d \mathrm { S h E L U } } { d x } = \left\{ 1 , \mathrm { ~ i f ~ } x + \delta > 0 \right. } \\ & { \frac { d \mathrm { S h E L U } } { d \delta } = \left\{ 1 , \mathrm { ~ i f ~ } x + \delta > 0 \right. } \\ & { \frac { d \mathrm { S h E L U } } { d \delta } = \left\{ 1 , \mathrm { ~ i f ~ } x + \delta > 0 \right. } \\ & { \frac { d \mathrm { S v E L U } } { d x } = \left\{ 1 , \mathrm { ~ i f ~ } x > 0 \right. } \\ & { \frac { d \mathrm { S v E L U } } { d \delta } = \left\{ \alpha ( \exp ( x ) ) , \mathrm { i f ~ } x \leq 0 \right. } \\ & { \frac { d \mathrm { S v E L U } } { d \delta } = 1 } \end{array}
242
+ $$
243
+
244
+ # DERIVATIVES OF PSHELU
245
+
246
+ For backpropagation, the derivates of PShELU with respect to the input $x$ , the hyperparameters $\alpha$ and $\beta$ , and the shift $\delta$ are computed as
247
+
248
+ $$
249
+ \begin{array} { r l } & { \frac { d \mathrm { P S h e L U } } { d x } = \left\{ \frac { \alpha } { \beta } , \ \mathrm { i f } \ x + \delta > 0 \right. } \\ & { \frac { d \mathrm { P S h e L U } } { d \alpha } = \left\{ \frac { \alpha + \delta } { \beta } , \ \mathrm { i f } \ x + \delta > 0 \right. } \\ & { \frac { d \mathrm { P S h e L U } } { d \alpha } = \left\{ \frac { \alpha + \delta } { \beta } , \ \mathrm { i f } \ x + \delta > 0 \right. } \\ & { \frac { d \mathrm { P S h e L U } } { d \beta } = \left\{ - \frac { \alpha } { \beta ^ { 2 } } ( x + \delta ) , \ \mathrm { i f } \ x + \delta > 0 \right. } \\ & { \frac { d \mathrm { P S h e L U } } { d \beta } = \left\{ - \frac { \alpha } { \beta ^ { 2 } } ( \exp ( \frac { \alpha + \delta } { \beta } ) ) , \ \mathrm { i f } \ x + \delta \leq 0 \right. } \\ & { \frac { d \mathrm { P S h e L U } } { d \delta } = \left\{ \frac { \alpha } { \beta } , \ \mathrm { i f } \ x + \delta > 0 \right. } \end{array}
250
+ $$
parse/train/HkSZyinVG/HkSZyinVG_content_list.json ADDED
@@ -0,0 +1,1289 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "IMPROVED LEARNING IN CONVOLUTIONAL NEURAL NETWORKS WITH SHIFTED EXPONENTIAL LINEAR UNITS (SHELUS) ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 98,
9
+ 823,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 184,
19
+ 199,
20
+ 398,
21
+ 227
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 263,
32
+ 544,
33
+ 279
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "The Exponential Linear Unit (ELU) has been proven to speed up learning and improve the classification performance over activation functions such as ReLU and Leaky ReLU for convolutional neural networks. The reasons behind the improved behavior are that ELU reduces the bias shift, it saturates for large negative inputs and it is continuously differentiable. However, it remains open whether ELU has the optimal shape and we address the quest for a superior activation function. ",
40
+ "bbox": [
41
+ 233,
42
+ 294,
43
+ 764,
44
+ 377
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "We use a new formulation to tune a piecewise linear activation function during training, to investigate the above question, and learn the shape of the locally optimal activation function. With this tuned activation function, the classification performance is improved and the resulting, learned activation function shows to be ELU-shaped irrespective if it is initialized as a RELU, LReLU or ELU. Interestingly, the learned activation function does not exactly pass through the origin indicating that a shifted ELU-shaped activation function is preferable. This observation leads us to introduce the Shifted Exponential Linear Unit (ShELU) as a new activation function. ",
51
+ "bbox": [
52
+ 233,
53
+ 380,
54
+ 764,
55
+ 503
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "Experiments on Cifar-100 show that the classification performance is further improved when using the ShELU activation function in comparison with ELU. The improvement is achieved when learning an individual bias shift for each neuron. ",
62
+ "bbox": [
63
+ 232,
64
+ 506,
65
+ 766,
66
+ 547
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "1 INTRODUCTION ",
73
+ "text_level": 1,
74
+ "bbox": [
75
+ 176,
76
+ 571,
77
+ 336,
78
+ 588
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "The classification accuracy of Convolutional Neural Networks (CNNs) has improved remarkably over the last years. The reason for the improvement is manifold: more sophisticated layer designs (Lin et al., 2013; He et al., 2016), effective regularization techniques reducing overfitting such as dropout (Srivastava et al., 2014) and batch normalization (Ioffe & Szegedy, 2015), new nonlinear activation functions (Clevert et al., 2015; Trottier et al., 2016), improved weight initialization methods (Glorot & Bengio, 2010; He et al., 2016), data augmentation and large scale data as ImageNet (Deng et al., 2009). ",
85
+ "bbox": [
86
+ 174,
87
+ 603,
88
+ 825,
89
+ 700
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "In this work, we focus on the nonlinear activation function and its effect on the network learning behavior. Since the introduction of the Rectified Linear Unit (ReLU) (Glorot et al., 2011), it is generally accepted that the activation should be noncontractive to avoid the vanishing gradient problem. The vanishing gradient hampered the learning for the sigmoid and tanh activations. As ReLU is not symmetric, its mean response will be non-negative and will introduce a bias shift for the units in the next layer. The Leaky Rectified Linear Unit (LReLU) (Maas et al., 2013) was proposed to alleviate this bias shift. The LReLU introduces a small linear activation for negative inputs controlled by a constant hyperparameter $\\alpha$ . ",
96
+ "bbox": [
97
+ 174,
98
+ 708,
99
+ 825,
100
+ 819
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Centering the activation, i.e. reducing the bias shift, is claimed to speed up learning (Le Cun et al., 1991). When the Exponential Linear Unit (ELU) was introduced by Clevert et al. (2015), one of the reason for its success and fast learning capability was claimed to be that the activation saturates for large negative inputs. ELU is also controlled by a hyperparameter that determines the saturation level. Another activation that is saturated for negative inputs is the Shifted ReLU (SReLU). Its shape is similar to ReLU, but the ”kink” is at -1 instead of 0. This reduces the bias shift while being saturated for negative inputs. ELU learns both faster and better than SReLU (Clevert et al., ",
107
+ "bbox": [
108
+ 174,
109
+ 827,
110
+ 825,
111
+ 922
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "table",
117
+ "img_path": "images/9067019052aac3bfdeffde0d579b575be30ef105781fb73dbad0d697fed9c681.jpg",
118
+ "table_caption": [
119
+ "Table 1: Activation functions. "
120
+ ],
121
+ "table_footnote": [],
122
+ "table_body": "<table><tr><td>Activation</td><td>x&gt;0</td><td>x≤0</td></tr><tr><td rowspan=\"3\">ReLU LReLU SReLU</td><td>X</td><td>0</td></tr><tr><td>X</td><td>αx</td></tr><tr><td>X</td><td>max(x,-1)</td></tr><tr><td rowspan=\"3\">ELU PELU</td><td>X</td><td>α(exp(x)-1)</td></tr><tr><td>X</td><td>α(exp(β x)-1)</td></tr><tr><td></td><td></td></tr></table>",
123
+ "bbox": [
124
+ 364,
125
+ 125,
126
+ 627,
127
+ 210
128
+ ],
129
+ "page_idx": 1
130
+ },
131
+ {
132
+ "type": "text",
133
+ "text": "2015), but it is not obvious which properties of ELU that actually create this improvement. It may be the smooth exponential decay for small negative inputs and/or the fact that it is continuously differentiable. The question also remains whether the shape of ELU is truly the optimal activation function or if there are other shapes, not yet found, that would further speed up and improve learning. And if they exist, how are they to be found. These were the type of issues that we wanted to explore when starting this work. ",
134
+ "bbox": [
135
+ 174,
136
+ 237,
137
+ 825,
138
+ 320
139
+ ],
140
+ "page_idx": 1
141
+ },
142
+ {
143
+ "type": "text",
144
+ "text": "To improve the learning capabilities for the above mentioned activation functions, tuneable variants of them have been published where the control parameters are tuneable and learned instead of being set as a constant parameter according to their original publications. The Parametric ReLU (PReLU) was introduced by He et al. (2016) where the single control parameter $\\alpha$ for LReLU is now learned during training. The Parametric ELU (PELU) was introduced by Trottier et al. (2016), also tuning the control parameters for ELU. Classification results were shown to improve with parameter tuning in both papers. The Scaled ELU (SELU)1 was defined by Klambauer et al. (2017) and is essentially a more simple variant of PELU. The activation functions mentioned so far are defined in Table 1. ",
145
+ "bbox": [
146
+ 174,
147
+ 327,
148
+ 825,
149
+ 439
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "Piecewise linear activation functions have previously been used by Agostinelli et al. (2014) to improve the performance compared to LReLU. In this work, we use the same concept with tuneable piecewise linear activation functions, but now with the additional objective to investigate the shape of the learned activation function. We apply this approach for nonlinear regression of the optimal activation function. We initialized the activation as linearized versions of ReLU, LReLU and ELU, and they all resulted in the same shape after tuning the network. The ReLU and LReLU activation functions are tuned into an ELU-shaped function whereas the ELU activation function retains its shape. However, we also noted that the tuned ELU-shaped activation function does not exactly pass through the origin. There is a small shift introduced around the origin while retaining the overall shape of the activation function. ",
156
+ "bbox": [
157
+ 174,
158
+ 445,
159
+ 825,
160
+ 584
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "Based on this observation, we introduce a shifted variant of the ELU activation function. In our experiments, we found that a horizontal shift is favorable and we call this new activation function Shifted Exponential Linear Unit (ShELU). The shift is tuneable during training and the shift is individual for each neuron. Experiments show that the classification performance is improved when allowing this shift in the activation function. ",
167
+ "bbox": [
168
+ 174,
169
+ 592,
170
+ 825,
171
+ 661
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "Our main contribution is the introduction of the shifted activation function ShELU. The second contribution is a new formulation of a tuneable piecewise linear activation function with constraints to make it continuous. This formulation can be used to explore for other, up to now unseen, shapes of activation functions. The third contribution is experimental support that an ELU-shaped activation function is favorable for learning; the tuneable piecewise linear activation function adapts to an ELU-shape during training, but with a small shift around the origin. ",
178
+ "bbox": [
179
+ 174,
180
+ 669,
181
+ 825,
182
+ 752
183
+ ],
184
+ "page_idx": 1
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "2 PIECEWISE LINEAR ACTIVATION FUNCTIONS ",
189
+ "text_level": 1,
190
+ "bbox": [
191
+ 174,
192
+ 773,
193
+ 580,
194
+ 790
195
+ ],
196
+ "page_idx": 1
197
+ },
198
+ {
199
+ "type": "text",
200
+ "text": "Piecewise linear activation functions were first introduced by Agostinelli et al. (2014). In this work, we use the same idea but now with the additional objective to investigate the shape of the learned activation function. If we initialize the activation function as a linearized version of ReLU, LReLU or ELU, how will the shape be changed during training? ",
201
+ "bbox": [
202
+ 174,
203
+ 806,
204
+ 825,
205
+ 862
206
+ ],
207
+ "page_idx": 1
208
+ },
209
+ {
210
+ "type": "text",
211
+ "text": "Our formulation of a piecewise linear and continuous activation function is different from the one in Agostinelli et al. (2014) and consists of two steps: first a soft histogram is formed as in Felsberg & Granlund (2006), second, a weighted sum of the histogram outputs is computed. The piecewise linear activation functions are learned individually for each neuron. ",
212
+ "bbox": [
213
+ 176,
214
+ 869,
215
+ 823,
216
+ 897
217
+ ],
218
+ "page_idx": 1
219
+ },
220
+ {
221
+ "type": "text",
222
+ "text": "",
223
+ "bbox": [
224
+ 174,
225
+ 103,
226
+ 823,
227
+ 132
228
+ ],
229
+ "page_idx": 2
230
+ },
231
+ {
232
+ "type": "text",
233
+ "text": "2.1 SOFT HISTOGRAM ",
234
+ "text_level": 1,
235
+ "bbox": [
236
+ 176,
237
+ 150,
238
+ 339,
239
+ 162
240
+ ],
241
+ "page_idx": 2
242
+ },
243
+ {
244
+ "type": "text",
245
+ "text": "As it has been shown by Felsberg & Granlund (2006), a soft histogram can be represented by two components; one offset component and one histogram component. We use $N$ bins for positive input values and another $N$ bins for negative input values. All bins in the histogram have constant and unity width. The bin limits take integer values and the bin centers are at -0.5, 0.5, 1.5 etc. The concept of the soft histogram is illustrated in Figure 1. In the figure, $N$ is equal to 4, but in the experiments we also used more bins like $N = 8$ and 16. Within a certain activation layer, we extract the maximum and the minimum input over a minibatch. We then linearly scale the positive input values to lie in the range $[ 0 \\mathrm { N } ]$ and the negative input values to lie in the range $[ - \\mathbf { N } \\mathbf { \\Lambda } 0 ]$ . Now, as an example, consider two units with scaled input values of 2.68 and -1.80, respectively. For the first unit, the histogram component will be 1 for the bin centered at 2.5 and 0 for all other bins. The corresponding offset component will be 0.18, i.e. the signed distance from the bin center. For the second unit, the histogram component will be 1 for the bin centered at -1.5 and 0 for all other bins. The corresponding offset component will be -0.30. The output from the soft histogram for the two units will be ",
246
+ "bbox": [
247
+ 173,
248
+ 175,
249
+ 825,
250
+ 368
251
+ ],
252
+ "page_idx": 2
253
+ },
254
+ {
255
+ "type": "equation",
256
+ "img_path": "images/cb973da921676d3f0f86dabc31221254fde398b5ab35e9a30d537ec0d7f024df.jpg",
257
+ "text": "$$\ny ( 2 . 6 8 ) = { \\left[ \\begin{array} { l l l l l l l l l } { 0 } & { 0 } & { 0 } & { 0 } & { 0 } & { 0 } & { 0 } & { 0 . 1 8 } & { 0 } \\\\ { 0 } & { 0 } & { 0 } & { 0 } & { 0 } & { 0 } & { 1 } & { 0 } \\end{array} \\right] }\n$$",
258
+ "text_format": "latex",
259
+ "bbox": [
260
+ 351,
261
+ 366,
262
+ 647,
263
+ 401
264
+ ],
265
+ "page_idx": 2
266
+ },
267
+ {
268
+ "type": "equation",
269
+ "img_path": "images/287112913184e20ffae879b80a69248b57b3ed9c01505951a3be3b4a23e428a1.jpg",
270
+ "text": "$$\ny ( - 1 . 8 0 ) = { \\left[ \\begin{array} { l l l l l l l l l } { 0 } & { 0 } & { - 0 . 3 0 } & { 0 } & { 0 } & { 0 } & { 0 } & { 0 } \\\\ { 0 } & { 0 } & { 1 } & { 0 } & { 0 } & { 0 } & { 0 } & { 0 } \\end{array} \\right] }\n$$",
271
+ "text_format": "latex",
272
+ "bbox": [
273
+ 339,
274
+ 405,
275
+ 658,
276
+ 440
277
+ ],
278
+ "page_idx": 2
279
+ },
280
+ {
281
+ "type": "text",
282
+ "text": "An analytical formulation of the soft histogram can be given as ",
283
+ "bbox": [
284
+ 178,
285
+ 443,
286
+ 593,
287
+ 458
288
+ ],
289
+ "page_idx": 2
290
+ },
291
+ {
292
+ "type": "equation",
293
+ "img_path": "images/31cc3a789aa4e8e59a3966e1b8a0b2812c1b429c374957b5f399e46218a4f456.jpg",
294
+ "text": "$$\ny ( x ) = \\left[ { \\begin{array} { c } { \\left( x - { \\mathrm { \\mathrm { H o o r } } } ( x ) - 0 . 5 \\right) m _ { \\nu } ( x ) } \\\\ { m _ { \\nu } ( x ) } \\end{array} } \\right] _ { 2 \\times 2 \\mathrm { N } } = \\left[ { \\begin{array} { c c c c } { o _ { 0 } } & { o _ { 1 } } & { \\cdots } & { o _ { 2 \\mathrm { N } - 1 } } \\\\ { h _ { 0 } } & { h _ { 1 } } & { \\cdots } & { h _ { 2 \\mathrm { N } - 1 } } \\end{array} } \\right] ,\n$$",
295
+ "text_format": "latex",
296
+ "bbox": [
297
+ 258,
298
+ 464,
299
+ 738,
300
+ 501
301
+ ],
302
+ "page_idx": 2
303
+ },
304
+ {
305
+ "type": "text",
306
+ "text": "where $m _ { \\nu } ( x )$ denotes the membership of the respective bins. The membership is 1 if the unit belongs to that bin and 0 for all other bins. The soft histogram output can alternatively be expressed with the offset and histogram components as in the right hand side of (2). ",
307
+ "bbox": [
308
+ 174,
309
+ 507,
310
+ 823,
311
+ 551
312
+ ],
313
+ "page_idx": 2
314
+ },
315
+ {
316
+ "type": "text",
317
+ "text": "For backpropagation we need to compute the derivative of the soft histogram. In our formulation, we consider the membership $m _ { \\nu } ( x )$ to be locally constant. This leads to a particular choice of subgradient that is also used in most implementations of max pooling, and it works well in practice. The derivative is computed as ",
318
+ "bbox": [
319
+ 174,
320
+ 556,
321
+ 825,
322
+ 612
323
+ ],
324
+ "page_idx": 2
325
+ },
326
+ {
327
+ "type": "equation",
328
+ "img_path": "images/d7149975d3be5ac8d25b1b10a6507803a0384d449e406a171ccd0eaac9e688fb.jpg",
329
+ "text": "$$\n{ \\frac { d y } { d x } } = \\left[ { m _ { \\nu } ( x ) } \\right] _ { 2 \\times 2 \\mathrm { N } }\n$$",
330
+ "text_format": "latex",
331
+ "bbox": [
332
+ 428,
333
+ 612,
334
+ 570,
335
+ 648
336
+ ],
337
+ "page_idx": 2
338
+ },
339
+ {
340
+ "type": "text",
341
+ "text": "The output from the soft histogram is independent of the activation function, but any activation function can be represented or approximated by a weighted sum of the histogram output. ",
342
+ "bbox": [
343
+ 173,
344
+ 651,
345
+ 825,
346
+ 680
347
+ ],
348
+ "page_idx": 2
349
+ },
350
+ {
351
+ "type": "text",
352
+ "text": "2.2 WEIGHTED SUM",
353
+ "text_level": 1,
354
+ "bbox": [
355
+ 176,
356
+ 696,
357
+ 328,
358
+ 710
359
+ ],
360
+ "page_idx": 2
361
+ },
362
+ {
363
+ "type": "text",
364
+ "text": "Different piecewise linear activation functions can now be realized by varying the weights applied to the soft histogram outputs. For each activation layer, we define a matrix $W$ with weights for the ",
365
+ "bbox": [
366
+ 174,
367
+ 723,
368
+ 826,
369
+ 752
370
+ ],
371
+ "page_idx": 2
372
+ },
373
+ {
374
+ "type": "image",
375
+ "img_path": "images/e4055142f977a15d07dd09dea08b36b690b919c38f7be507119020b1ed4c35b8.jpg",
376
+ "image_caption": [
377
+ "Figure 1: Soft histogram decomposed into rectangular and linear basis functions. "
378
+ ],
379
+ "image_footnote": [],
380
+ "bbox": [
381
+ 191,
382
+ 772,
383
+ 807,
384
+ 886
385
+ ],
386
+ "page_idx": 2
387
+ },
388
+ {
389
+ "type": "image",
390
+ "img_path": "images/9a446b0986253b9062618410bd089025f2f6a63688bf2ed163531420c8cc5f01.jpg",
391
+ "image_caption": [
392
+ "Figure 2: Weighted sum examples, ReLU activation (left) and LReLU activation (right). "
393
+ ],
394
+ "image_footnote": [],
395
+ "bbox": [
396
+ 186,
397
+ 88,
398
+ 813,
399
+ 165
400
+ ],
401
+ "page_idx": 3
402
+ },
403
+ {
404
+ "type": "text",
405
+ "text": "offset components and the histogram components ",
406
+ "bbox": [
407
+ 171,
408
+ 223,
409
+ 501,
410
+ 238
411
+ ],
412
+ "page_idx": 3
413
+ },
414
+ {
415
+ "type": "equation",
416
+ "img_path": "images/f263fcf05a3e245eca7480d53c2b7ea14003cc09864fad747db683bfc258ca13.jpg",
417
+ "text": "$$\nW = \\left[ { \\begin{array} { l l l l } { w _ { o _ { 0 } } } & { w _ { o _ { 1 } } } & { \\cdot \\cdot \\cdot } & { w _ { o _ { 2 \\mathrm { N } - 1 } } } \\\\ { w _ { h _ { 0 } } } & { w _ { h _ { 1 } } } & { \\cdot \\cdot \\cdot } & { w _ { h _ { 2 \\mathrm { N } - 1 } } } \\end{array} } \\right] \\quad .\n$$",
418
+ "text_format": "latex",
419
+ "bbox": [
420
+ 374,
421
+ 244,
422
+ 622,
423
+ 279
424
+ ],
425
+ "page_idx": 3
426
+ },
427
+ {
428
+ "type": "text",
429
+ "text": "To obtain a ReLU activation function, we set all weights to 1 for the offset components on the positive side and 0 for all offset components on the negative side. The weights for the offset components correspond to the slope of the activation function for each linear piece. Further, for a ReLU, we set the weights for the histogram components to 0.5, 1.5, 2.5, etc. on the positive side and to 0 on the negative side. The weights for the histogram components correspond to the bias level at the bin centers of the activation function for each linear piece. ",
430
+ "bbox": [
431
+ 173,
432
+ 284,
433
+ 825,
434
+ 367
435
+ ],
436
+ "page_idx": 3
437
+ },
438
+ {
439
+ "type": "text",
440
+ "text": "To obtain a LReLU activation function, the weights (slopes) for the negative offset components are set to the value for the hyperparameter $\\alpha$ , e.g. to 0.1. The weights for the offset components on the positive side are the same as for ReLU. For $\\alpha = 0 . 1$ , the weights for the histogram components on the negative side are set to -0.35, -0.25, -0.15 and -0.05, i.e. the bias level at the bin centers. ",
441
+ "bbox": [
442
+ 173,
443
+ 373,
444
+ 825,
445
+ 431
446
+ ],
447
+ "page_idx": 3
448
+ },
449
+ {
450
+ "type": "text",
451
+ "text": "To summarize, the weight matrices for the ReLU and LReLU activation functions are defined as ",
452
+ "bbox": [
453
+ 171,
454
+ 436,
455
+ 803,
456
+ 452
457
+ ],
458
+ "page_idx": 3
459
+ },
460
+ {
461
+ "type": "equation",
462
+ "img_path": "images/94d3b51913ea6f0544875ab12b5bb9dfee0a8c971bdc0a3d68bb4bead8d1e6f7.jpg",
463
+ "text": "$$\nW _ { \\mathrm { R e L U } } = \\left[ { \\begin{array} { c c c c c c c c } { 0 } & { 0 } & { 0 } & { 0 } & { 1 } & { 1 } & { 1 } & { 1 } \\\\ { 0 } & { 0 } & { 0 } & { 0 } & { 0 . 5 } & { 1 . 5 } & { 2 . 5 } & { 3 . 5 } \\end{array} } \\right]\n$$",
464
+ "text_format": "latex",
465
+ "bbox": [
466
+ 334,
467
+ 457,
468
+ 660,
469
+ 492
470
+ ],
471
+ "page_idx": 3
472
+ },
473
+ {
474
+ "type": "equation",
475
+ "img_path": "images/df8485bcfbcc0bce3efc07f341a19cf2b1c5ba0fd91b3ea82ee9ccab41b69d16.jpg",
476
+ "text": "$$\nW _ { \\mathrm { L R e L U } } = \\left[ \\begin{array} { c c c c c c c c } { { 0 . 1 } } & { { 0 . 1 } } & { { 0 . 1 } } & { { 0 . 1 } } & { { 1 } } & { { 1 } } & { { 1 } } & { { 1 } } \\\\ { { - 0 . 3 5 } } & { { - 0 . 2 5 } } & { { - 0 . 1 5 } } & { { - 0 . 0 5 } } & { { 0 . 5 } } & { { 1 . 5 } } & { { 2 . 5 } } & { { 3 . 5 } } \\end{array} \\right] .\n$$",
477
+ "text_format": "latex",
478
+ "bbox": [
479
+ 258,
480
+ 497,
481
+ 738,
482
+ 534
483
+ ],
484
+ "page_idx": 3
485
+ },
486
+ {
487
+ "type": "text",
488
+ "text": "The output for the weighted sum is the sum of an elementwise multiplication of the soft histogram with the weight matrix ",
489
+ "bbox": [
490
+ 173,
491
+ 535,
492
+ 823,
493
+ 563
494
+ ],
495
+ "page_idx": 3
496
+ },
497
+ {
498
+ "type": "equation",
499
+ "img_path": "images/967f3ded16d7a5876915fd8cbbf5359621c16a2a35c1635e81266f0f66786023.jpg",
500
+ "text": "$$\ny = \\sum _ { \\nu } w _ { o _ { \\nu } } o _ { \\nu } + w _ { h _ { \\nu } } h _ { \\nu } .\n$$",
501
+ "text_format": "latex",
502
+ "bbox": [
503
+ 408,
504
+ 560,
505
+ 588,
506
+ 593
507
+ ],
508
+ "page_idx": 3
509
+ },
510
+ {
511
+ "type": "text",
512
+ "text": "The weighted sum output for the two example units is illustrated in Figure 2. For the ReLU activation, the outputs will be $2 . 5 \\times 1 + 1 \\times 0 . 1 8 = 2 . 6 8$ and $0 \\times 1 + 0 \\times ( - 0 . 3 0 ) = 0$ , respectively. For the LReLU activation, the output for the unit with input value -1.80 will be $- 0 . 1 5 \\times 1 + 0 . 1 \\times ( - 0 . 3 0 ) =$ -0.18, as desired. ",
513
+ "bbox": [
514
+ 173,
515
+ 594,
516
+ 825,
517
+ 651
518
+ ],
519
+ "page_idx": 3
520
+ },
521
+ {
522
+ "type": "text",
523
+ "text": "Our formulation will generate a piecewise linear activation function for any values chosen as weights for the offset and histogram components. However, it is obvious that constraints need to be put on the weights if a continuous activation function is to be obtained. The weights (slopes) for the offset components can be set independently but only one weight for the histogram component is independent from the other weights. Assume that $w _ { h _ { 0 } }$ is set as desired. To obtain a continuous linear function, the remaining histogram weights then need to be set as ",
524
+ "bbox": [
525
+ 174,
526
+ 657,
527
+ 823,
528
+ 742
529
+ ],
530
+ "page_idx": 3
531
+ },
532
+ {
533
+ "type": "equation",
534
+ "img_path": "images/4ee6e8cc441563e6e2ea26379349aa23a0ee5887500d89144d04254c4106a85a.jpg",
535
+ "text": "$$\n\\begin{array} { r c l } { { w _ { h _ { 1 } } } } & { { = } } & { { w _ { h _ { 0 } } + 0 . 5 ( w _ { o _ { 0 } } + w _ { o _ { 1 } } ) } } \\\\ { { w _ { h _ { 2 } } } } & { { = } } & { { w _ { h _ { 0 } } + 0 . 5 ( w _ { o _ { 0 } } + 2 w _ { o _ { 1 } } + w _ { o _ { 2 } } ) } } \\\\ { { \\vdots } } & { { } } & { { } } \\\\ { { w _ { h _ { 2 N - 1 } } } } & { { = } } & { { w _ { h _ { 0 } } + 0 . 5 ( w _ { o _ { 0 } } + 2 w _ { o _ { 1 } } + \\cdots + 2 w _ { o _ { 2 N - 2 } } + w _ { o _ { 2 N - 1 } } ) . } } \\end{array}\n$$",
536
+ "text_format": "latex",
537
+ "bbox": [
538
+ 269,
539
+ 747,
540
+ 727,
541
+ 819
542
+ ],
543
+ "page_idx": 3
544
+ },
545
+ {
546
+ "type": "text",
547
+ "text": "The constraints in (7) must be enforced when updating the weights in the backpropagation step. ",
548
+ "bbox": [
549
+ 168,
550
+ 829,
551
+ 799,
552
+ 844
553
+ ],
554
+ "page_idx": 3
555
+ },
556
+ {
557
+ "type": "text",
558
+ "text": "3 SHIFTED ACTIVATION FUNCTIONS ",
559
+ "text_level": 1,
560
+ "bbox": [
561
+ 174,
562
+ 864,
563
+ 488,
564
+ 881
565
+ ],
566
+ "page_idx": 3
567
+ },
568
+ {
569
+ "type": "text",
570
+ "text": "The results presented in section 4.1 show that an ELU-shaped activation function which is shifted around the origin seems favorable to improve learning. Hence, we introduce the ShELU activation function with horizontal shift and the SvELU activation function with vertical shift and define them as in Table 2. The hyperparameter $\\alpha$ is considered to be a pre-set constant and it is not tuned during training. In our experiments, we set $\\alpha = 1$ . We also define PShELU, a variant of PELU with horizontal shift. The parameters $\\alpha$ and $\\beta$ for PShELU are learned during training. In the experiments, they were initialized as $\\alpha = \\beta = 1 . 0$ , i.e. as an original ELU activation. ",
571
+ "bbox": [
572
+ 173,
573
+ 895,
574
+ 825,
575
+ 924
576
+ ],
577
+ "page_idx": 3
578
+ },
579
+ {
580
+ "type": "table",
581
+ "img_path": "images/d7f31327504eebfd1b0b413649def8bb16cc8bfb0241b5931e3e9e3fe10d7d80.jpg",
582
+ "table_caption": [
583
+ "Table 2: Shifted activation functions. "
584
+ ],
585
+ "table_footnote": [],
586
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Activation</td><td rowspan=1 colspan=1>Value</td><td rowspan=1 colspan=1>Region 1</td><td rowspan=1 colspan=1>Value</td><td rowspan=1 colspan=1>Region 2</td></tr><tr><td rowspan=1 colspan=1>ShELUSvELUPShELU</td><td rowspan=1 colspan=1>x+8x+8(c+)</td><td rowspan=1 colspan=1>x+δ&gt;0x&gt;0x+δ&gt;0</td><td rowspan=1 colspan=1>α(exp(x+δ)-1)α(exp(𝑥)-1)+δa(exp(+)-1)</td><td rowspan=1 colspan=1>x+δ≤0x≤0x+δ≤0</td></tr></table>",
587
+ "bbox": [
588
+ 251,
589
+ 125,
590
+ 743,
591
+ 186
592
+ ],
593
+ "page_idx": 4
594
+ },
595
+ {
596
+ "type": "text",
597
+ "text": "",
598
+ "bbox": [
599
+ 173,
600
+ 213,
601
+ 825,
602
+ 284
603
+ ],
604
+ "page_idx": 4
605
+ },
606
+ {
607
+ "type": "text",
608
+ "text": "Note that the introduced shifts $\\delta$ in Table 2 are individual for all neurons. As an example, consider the first layers in the Lenet network (LeCun et al., 1998) shown in Figure 3. The input is an image $3 2 \\times 3 2 \\times 3$ . In the first convolutional layer, there are 192 filters with size $5 \\times 5 \\times 3$ . The output from the convolutional layer consists of 192 feature maps with size $3 2 \\times 3 2$ . The output includes a bias level for each feature map (each large square in the convolutional output), i.e. a total of 192 bias levels. The activation function is applied to the individual neurons resulting in an output with size $3 2 \\times 3 2 \\times 1 9 2$ . When we say that we introduce individual shifts for all neurons, it means that there is one tuneable shift for each of the $3 2 \\times 3 2 \\times 1 9 2$ neurons (all small squares in the activation output) where the activation function is applied. ",
609
+ "bbox": [
610
+ 173,
611
+ 290,
612
+ 825,
613
+ 416
614
+ ],
615
+ "page_idx": 4
616
+ },
617
+ {
618
+ "type": "text",
619
+ "text": "In Goodfellow et al. (2016), chapter 9.5, it is stated that for CNNs it is natural to have shared biases with the same tiling pattern as the convolutional kernels, but that individual biases for each neuron ”would allow the model to correct for differences in the image statistics at different locations”. By introducing the activation function ShELU, with individual shifts for each neuron, we have indirectly created individual biases for the convolutional layer feature map output. Note that a convolutional layer with a shared bias level for each feature map output followed by a ShELU activation is equivalent with a convolutional layer with individual bias levels for each feature map output followed by an ELU activation. This equivalence was verified with experiments presented in section 4.2.1. However, frameworks as Caffe (Jia et al., 2014) and MatConvNet do not allow for individual biases in a convolutional layer but is restricted to shared biases. ",
620
+ "bbox": [
621
+ 173,
622
+ 422,
623
+ 825,
624
+ 561
625
+ ],
626
+ "page_idx": 4
627
+ },
628
+ {
629
+ "type": "text",
630
+ "text": "4 EXPERIMENTS ",
631
+ "text_level": 1,
632
+ "bbox": [
633
+ 176,
634
+ 584,
635
+ 326,
636
+ 601
637
+ ],
638
+ "page_idx": 4
639
+ },
640
+ {
641
+ "type": "text",
642
+ "text": "4.1 EXPERIMENTS WITH PIECEWISE LINEAR ACTIVATION FUNCTIONS ",
643
+ "text_level": 1,
644
+ "bbox": [
645
+ 176,
646
+ 618,
647
+ 666,
648
+ 632
649
+ ],
650
+ "page_idx": 4
651
+ },
652
+ {
653
+ "type": "text",
654
+ "text": "To investigate the behavior of the piecewise linear activation function we made some experiments with the Lenet network and the Cifar-100 dataset (Krizhevsky & Hinton, 2009). We used the implementation of Lenet as provided when downloading the MatConvNet framework. We ran the Lenet network with the ReLU activation function, and also replaced all activation layers with LReLU and ",
655
+ "bbox": [
656
+ 174,
657
+ 643,
658
+ 825,
659
+ 700
660
+ ],
661
+ "page_idx": 4
662
+ },
663
+ {
664
+ "type": "image",
665
+ "img_path": "images/734540204bd74acae307f75f51cfcd193dab04a035c1cba472aea656ac1a1227.jpg",
666
+ "image_caption": [
667
+ "Figure 3: Bias levels for convolutional layers and shifts for activation function. Biases/shifts can either be shared (large squares) or individual for each neuron (small squares). "
668
+ ],
669
+ "image_footnote": [],
670
+ "bbox": [
671
+ 207,
672
+ 726,
673
+ 792,
674
+ 873
675
+ ],
676
+ "page_idx": 4
677
+ },
678
+ {
679
+ "type": "table",
680
+ "img_path": "images/4f9b1a474667adfb8a5ada5f6dbe4fc3bfa6e6943016a4a33ddde6d8069df956.jpg",
681
+ "table_caption": [
682
+ "Table 3: Top1error on Cifar-100 with Lenet network. "
683
+ ],
684
+ "table_footnote": [],
685
+ "table_body": "<table><tr><td>Activation</td><td>Toplerror (%)</td><td>Activation</td><td>Toplerror (%)</td><td>Activation</td><td>Toplerror (%)</td></tr><tr><td>ReLU</td><td>46.58</td><td>LReLU</td><td>45.41</td><td>ELU</td><td>44.96</td></tr><tr><td>Tuned ReLU</td><td>45.92</td><td>Tuned LReLU</td><td>45.18</td><td>Tuned ELU</td><td>44.51</td></tr></table>",
686
+ "bbox": [
687
+ 173,
688
+ 127,
689
+ 830,
690
+ 171
691
+ ],
692
+ "page_idx": 5
693
+ },
694
+ {
695
+ "type": "text",
696
+ "text": "ELU. We then exchanged the activation layers with the piecewise linear activation layer. We initialized the layers as a linear version of ReLU, LReLU and ELU respectively. We consistently noticed a slight improvement (a few tenths of a percent) in classification performance when using the tuneable piecewise linear activation function compared to its corresponding fixed activation function, see Table 3. Besides the slight classification improvement, it is also interesting to analyse the shape of the activation functions after tuning, see Figure 4. All three activation functions remain linear and with almost unity slope on the positive side. All three tuned activation functions exhibit a smooth exponential decay for small negative inputs and then remain fairly constant for larger negative inputs. The resulting shape after tuning for all three initializations is close to the ELU shape. However, notice that all tuned activation functions tend to return a variable but negative output for zero input and that they do not pass through the origin. These results suggest that we introduce the Shifted Exponential Linear Unit (ShELU) as an activation function. From the results it is not obvious whether the introduced shift around the origin should be vertical or horizontal. For a horizontal shift, the saturation level remains constant for large negative inputs which may seem more intuitive. For a vertical shift, the saturation level will vary depending on the shift which better matches the achieved results on the Lenet network. ",
697
+ "bbox": [
698
+ 173,
699
+ 200,
700
+ 825,
701
+ 421
702
+ ],
703
+ "page_idx": 5
704
+ },
705
+ {
706
+ "type": "text",
707
+ "text": "4.2 EXPERIMENTS WITH SHIFTED ACTIVATION FUNCTIONS ",
708
+ "text_level": 1,
709
+ "bbox": [
710
+ 173,
711
+ 443,
712
+ 593,
713
+ 457
714
+ ],
715
+ "page_idx": 5
716
+ },
717
+ {
718
+ "type": "text",
719
+ "text": "4.2.1 EXPERIMENTS ON CIFAR-100 WITH LENET NETWORK ",
720
+ "text_level": 1,
721
+ "bbox": [
722
+ 174,
723
+ 469,
724
+ 601,
725
+ 483
726
+ ],
727
+ "page_idx": 5
728
+ },
729
+ {
730
+ "type": "text",
731
+ "text": "We now want to evaluate if the classification performance improves with the new activation functions ShELU and SvELU compared to ELU. We start with the Lenet network and replace all ELU activations with either the ShELU or the SvELU activation. The learning rate was set to 0.005 for the first 40 epochs, then lowered by a factor of 10 every 20 epochs, running a total of 80 epochs. The learning rate momentum was set to 0.9 and the weight decay to 0.0005. Image data was preprocessed with global contrast normalization and whitening (Coates et al., 2011). Note that the complete dataset was divided by a factor of 10 (compared to the preprocessing provided with the MatConvNet download) to better match the variance with Xavier initialization. During training the dataset was augmented with random horizontal flipping and by randomly cropping images from the original images zero padded with a frame of width four. ",
732
+ "bbox": [
733
+ 174,
734
+ 494,
735
+ 825,
736
+ 633
737
+ ],
738
+ "page_idx": 5
739
+ },
740
+ {
741
+ "type": "text",
742
+ "text": "The classification errors for the training and test sets shown in Figure 5 are the average over 8 runs for each activation function. The top1errors in Table 4 are the average over the last 15 epochs for the lowest learning rate. The learning rate for the ShELU and SvELU activation layer weights was set to $2 \\%$ of the base learning rate. The results show that there is a small improvement on the top1error using the ShELU and SvELU activation functions compared with the original ELU. Futhermore, the shifted activation function PShELU achieves a slightly better test results than both ELU and PELU. ",
743
+ "bbox": [
744
+ 173,
745
+ 641,
746
+ 825,
747
+ 724
748
+ ],
749
+ "page_idx": 5
750
+ },
751
+ {
752
+ "type": "image",
753
+ "img_path": "images/7c6f8f84144cd4adfcb451d4df972e59f449870f9218c185c74ca1a34984fe5c.jpg",
754
+ "image_caption": [
755
+ "Figure 4: Initialization (red) and 20, 50 and 80 percentiles for tuned activation functions in last layer; ReLU (left), LReLU (middle) and ELU (right). "
756
+ ],
757
+ "image_footnote": [],
758
+ "bbox": [
759
+ 191,
760
+ 750,
761
+ 800,
762
+ 873
763
+ ],
764
+ "page_idx": 5
765
+ },
766
+ {
767
+ "type": "image",
768
+ "img_path": "images/e29872596ebdaae5e48641b096ad683df3bca8a952c9ce7e65594bdc5a32066d.jpg",
769
+ "image_caption": [
770
+ "Figure 5: Training (dashed) and test (solid) errors on Cifar-100 with network Lenet (left). Test errors (final part) for ELU, SvELU and ShELU (middle), and ELU, PELU and PShELU (right). "
771
+ ],
772
+ "image_footnote": [],
773
+ "bbox": [
774
+ 192,
775
+ 99,
776
+ 799,
777
+ 223
778
+ ],
779
+ "page_idx": 6
780
+ },
781
+ {
782
+ "type": "table",
783
+ "img_path": "images/26923b26fef1b824843d90480e49e2def8053dc01cd651d8b60681eaa0fc7843.jpg",
784
+ "table_caption": [
785
+ "Table 4: Top1 test errors on Cifar-100 with Lenet and Clevert-11 networks. "
786
+ ],
787
+ "table_footnote": [],
788
+ "table_body": "<table><tr><td>Activation</td><td>Lenetnetwork</td><td>Clevert-11 network</td></tr><tr><td>ELU</td><td>44.96</td><td>28.76</td></tr><tr><td>SvELU</td><td>44.70</td><td>28.85</td></tr><tr><td>ShELU</td><td>44.77</td><td>28.57</td></tr><tr><td>PELU</td><td>45.03</td><td>28.78</td></tr><tr><td>PShELU</td><td>44.76</td><td>28.74</td></tr><tr><td>ConvIndBias+ELU</td><td>44.78</td><td>1</td></tr></table>",
789
+ "bbox": [
790
+ 289,
791
+ 313,
792
+ 704,
793
+ 412
794
+ ],
795
+ "page_idx": 6
796
+ },
797
+ {
798
+ "type": "text",
799
+ "text": "The training behavior is very similar for all activation functions but the shifted activation functions exhibit a slightly better generalization behavior. However, the significance of these results is limited as Lenet is a rather shallow network. ",
800
+ "bbox": [
801
+ 176,
802
+ 439,
803
+ 821,
804
+ 481
805
+ ],
806
+ "page_idx": 6
807
+ },
808
+ {
809
+ "type": "text",
810
+ "text": "We also created a network layer named ”ConvIndBias”, which is an identity mapping but it also adds an individually learned bias shift for each neuron. The results in Table 4 confirm that a ShELU activation is equivalent to the combination of a ConvIndBias layer and an ELU activation as was stated in section 3. ",
811
+ "bbox": [
812
+ 174,
813
+ 488,
814
+ 825,
815
+ 544
816
+ ],
817
+ "page_idx": 6
818
+ },
819
+ {
820
+ "type": "text",
821
+ "text": "4.2.2 EXPERIMENTS ON CIFAR-100 WITH CLEVERT-11 ",
822
+ "text_level": 1,
823
+ "bbox": [
824
+ 174,
825
+ 560,
826
+ 566,
827
+ 575
828
+ ],
829
+ "page_idx": 6
830
+ },
831
+ {
832
+ "type": "text",
833
+ "text": "To further evaluate the shifted activation functions in comparison with ELU, we built the 11-layer network used by Clevert et al. (2015) to replicate the experiments when ELU was introduced. We denote the network Clevert-11. Parameter settings and weight initializations were as in Clevert et al. (2015). Our results are the average over 9 runs for each activation function. Our classification results with the network Clevert-11 on the Cifar-100 dataset for the activation functions ELU, SvELU, ShELU, PELU and PShELU are presented in Figure 6 and summarized in Table 4. The results in the table are the average top1error over the last 20 epochs for each activation function. The results show that the test error for the ShELU activation function is significantly better than for ELU, whereas the error for SvELU is slightly inferior. The results suggest that a horizontal shift for the activation function is preferable to a vertical shift. The training behavior is almost identical for ELU and ",
834
+ "bbox": [
835
+ 173,
836
+ 585,
837
+ 825,
838
+ 726
839
+ ],
840
+ "page_idx": 6
841
+ },
842
+ {
843
+ "type": "image",
844
+ "img_path": "images/40c957922144a59f41ee058512fce98772f12a3f23dcad1324081c13d0fdb455.jpg",
845
+ "image_caption": [
846
+ "Figure 6: Training (dashed) and test (solid) errors on Cifar-100 with network Clevert-11 (left). Test errors (final part) for ELU, SvELU and ShELU (middle), and ELU, PELU and PShELU (right). "
847
+ ],
848
+ "image_footnote": [],
849
+ "bbox": [
850
+ 194,
851
+ 751,
852
+ 799,
853
+ 873
854
+ ],
855
+ "page_idx": 6
856
+ },
857
+ {
858
+ "type": "image",
859
+ "img_path": "images/0f6b8bcf329be94f581746498dd57ad7c6a25d13c8cb97115a7239cb6f1b043f.jpg",
860
+ "image_caption": [
861
+ "Figure 7: Learned shifts for ShELU activation function, relative frequency (left), kurtosis (middle) and spatial variation (right). "
862
+ ],
863
+ "image_footnote": [],
864
+ "bbox": [
865
+ 205,
866
+ 101,
867
+ 802,
868
+ 195
869
+ ],
870
+ "page_idx": 7
871
+ },
872
+ {
873
+ "type": "text",
874
+ "text": "ShELU. We believe that the improved test result can be attributed to that ShELU adaptively learns where to set the reference level between the linear and exponential parts of the activation function. ",
875
+ "bbox": [
876
+ 174,
877
+ 273,
878
+ 823,
879
+ 301
880
+ ],
881
+ "page_idx": 7
882
+ },
883
+ {
884
+ "type": "text",
885
+ "text": "ELU, PELU and PShELU all show very similar test errors. Note, however, that the training error is by far lower for PELU indicating pronounced overfitting compared to ELU. The training error is lower for PShELU than for ShELU but the test error is inferior. This suggests that PShELU suffers from overfitting when allowed to tune the hyperparameters $\\alpha$ and $\\beta$ . Note that we were able to almost exactly reproduce the results for ELU achieved in Clevert et al. (2015) who report a top1error of $2 8 . 7 5 \\%$ . ",
886
+ "bbox": [
887
+ 174,
888
+ 309,
889
+ 825,
890
+ 392
891
+ ],
892
+ "page_idx": 7
893
+ },
894
+ {
895
+ "type": "text",
896
+ "text": "4.3 LEARNED SHIFTS FOR SHELU ",
897
+ "text_level": 1,
898
+ "bbox": [
899
+ 176,
900
+ 412,
901
+ 424,
902
+ 428
903
+ ],
904
+ "page_idx": 7
905
+ },
906
+ {
907
+ "type": "text",
908
+ "text": "In all experments, we initialized the individual shifts for the ShELU activation from a Gaussian distribution with standard deviation 0.001. The learned shifts after training in the 10 activation layers of the Clevert-11 network are shown as normalized frequency histograms in Figure 7, together with the kurtosis and the spatial variation for the shifts. ",
909
+ "bbox": [
910
+ 174,
911
+ 440,
912
+ 825,
913
+ 496
914
+ ],
915
+ "page_idx": 7
916
+ },
917
+ {
918
+ "type": "text",
919
+ "text": "The shape of the learned shifts is almost a perfect Gaussian distribution for all layers. This is supported by the computed kurtosis which is close to 3.0. The kurtosis increases slightly for the last three layers where the distribution tends to be somewhat skewed towards the negative side. The standard deviation for the shift is relatively constant for the first nine layers but grows considerably for the last layer. ",
920
+ "bbox": [
921
+ 174,
922
+ 503,
923
+ 825,
924
+ 574
925
+ ],
926
+ "page_idx": 7
927
+ },
928
+ {
929
+ "type": "text",
930
+ "text": "Figure 7 shows the learned shifts for the first ShELU activation layer where the shifts for the 192 feature maps have been placed as $1 2 \\times 1 6$ tiles side by side. Interestingly, the spatial variation for the learned shift seems to be completely random. Any statistical difference spatially over the image cannot be perceived. ",
931
+ "bbox": [
932
+ 174,
933
+ 580,
934
+ 825,
935
+ 636
936
+ ],
937
+ "page_idx": 7
938
+ },
939
+ {
940
+ "type": "text",
941
+ "text": "5 CONCLUSIONS ",
942
+ "text_level": 1,
943
+ "bbox": [
944
+ 176,
945
+ 660,
946
+ 328,
947
+ 676
948
+ ],
949
+ "page_idx": 7
950
+ },
951
+ {
952
+ "type": "text",
953
+ "text": "We use a new formulation to tune a continuous piecewise linear activation function during training and learn the shape of the locally optimal activation function. With this tuned activation function, the classification performance for convolutional neural networks is improved and the resulting, learned activation function shows to be ELU-shaped irrespective whether it is initialized as a RELU, LReLU or ELU activation function. The learned activation function exhibits a variable shift around the origin for each neuron, indicating that a shifted ELU-shaped activation function is preferable. This observation leads us to introduce the Shifted Exponential Linear Unit (ShELU) as a new activation function. ",
954
+ "bbox": [
955
+ 173,
956
+ 694,
957
+ 825,
958
+ 805
959
+ ],
960
+ "page_idx": 7
961
+ },
962
+ {
963
+ "type": "text",
964
+ "text": "Experiments on Cifar-100 show that the classification performance is further improved when using the ShELU activation function in comparison with ELU. Normally in a convolutional network layer, one shared bias shift is learned for each feature map output. The improvement for the ShELU activation is achieved when learning an individual bias shift for each neuron. The equivalent to the ShELU activation function would be to learn an individual bias shift for each neuron in the convolutional layer output and then apply an ELU activation, which however is not supported by commonly used deep learning frameworks. The implementation of individual biases in the activation function is therefore preferable and leads to the ShELU activation function. ",
965
+ "bbox": [
966
+ 174,
967
+ 811,
968
+ 825,
969
+ 924
970
+ ],
971
+ "page_idx": 7
972
+ },
973
+ {
974
+ "type": "text",
975
+ "text": "REFERENCES ",
976
+ "text_level": 1,
977
+ "bbox": [
978
+ 174,
979
+ 102,
980
+ 287,
981
+ 118
982
+ ],
983
+ "page_idx": 8
984
+ },
985
+ {
986
+ "type": "text",
987
+ "text": "Forest Agostinelli, Matthew Hoffman, Peter Sadowski, and Pierre Baldi. Learning activation functions to improve deep neural networks. arXiv preprint arXiv:1412.6830, 2014. ",
988
+ "bbox": [
989
+ 174,
990
+ 126,
991
+ 821,
992
+ 155
993
+ ],
994
+ "page_idx": 8
995
+ },
996
+ {
997
+ "type": "text",
998
+ "text": "Djork-Arne Clevert, Thomas Unterthiner, and Sepp Hochreiter. Fast and accurate deep network ´ learning by exponential linear units (elus). arXiv preprint arXiv:1511.07289, 2015. ",
999
+ "bbox": [
1000
+ 171,
1001
+ 162,
1002
+ 823,
1003
+ 193
1004
+ ],
1005
+ "page_idx": 8
1006
+ },
1007
+ {
1008
+ "type": "text",
1009
+ "text": "Adam Coates, Andrew Ng, and Honglak Lee. An analysis of single-layer networks in unsupervised feature learning. In Proceedings of the fourteenth international conference on artificial intelligence and statistics, pp. 215–223, 2011. ",
1010
+ "bbox": [
1011
+ 173,
1012
+ 200,
1013
+ 823,
1014
+ 242
1015
+ ],
1016
+ "page_idx": 8
1017
+ },
1018
+ {
1019
+ "type": "text",
1020
+ "text": "J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. ImageNet: A Large-Scale Hierarchical Image Database. In CVPR09, 2009. ",
1021
+ "bbox": [
1022
+ 169,
1023
+ 251,
1024
+ 825,
1025
+ 280
1026
+ ],
1027
+ "page_idx": 8
1028
+ },
1029
+ {
1030
+ "type": "text",
1031
+ "text": "Michael Felsberg and Gosta Granlund. P-channels: Robust multivariate m-estimation of large ¨ datasets. In Pattern Recognition, 2006. ICPR 2006. 18th International Conference on, volume 3, pp. 262–267. IEEE, 2006. ",
1032
+ "bbox": [
1033
+ 173,
1034
+ 289,
1035
+ 823,
1036
+ 332
1037
+ ],
1038
+ "page_idx": 8
1039
+ },
1040
+ {
1041
+ "type": "text",
1042
+ "text": "Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics, pp. 249–256, 2010. ",
1043
+ "bbox": [
1044
+ 174,
1045
+ 339,
1046
+ 823,
1047
+ 382
1048
+ ],
1049
+ "page_idx": 8
1050
+ },
1051
+ {
1052
+ "type": "text",
1053
+ "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, pp. 315–323, 2011. ",
1054
+ "bbox": [
1055
+ 174,
1056
+ 390,
1057
+ 825,
1058
+ 434
1059
+ ],
1060
+ "page_idx": 8
1061
+ },
1062
+ {
1063
+ "type": "text",
1064
+ "text": "Ian Goodfellow, Yoshua Bengio, and Aaron Courville. Deep learning. MIT press, 2016. ",
1065
+ "bbox": [
1066
+ 171,
1067
+ 441,
1068
+ 754,
1069
+ 458
1070
+ ],
1071
+ "page_idx": 8
1072
+ },
1073
+ {
1074
+ "type": "text",
1075
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. ",
1076
+ "bbox": [
1077
+ 173,
1078
+ 465,
1079
+ 825,
1080
+ 508
1081
+ ],
1082
+ "page_idx": 8
1083
+ },
1084
+ {
1085
+ "type": "text",
1086
+ "text": "Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Francis Bach and David Blei (eds.), Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pp. 448–456, Lille, France, 07–09 Jul 2015. PMLR. URL http://proceedings. mlr.press/v37/ioffe15.html. ",
1087
+ "bbox": [
1088
+ 173,
1089
+ 517,
1090
+ 825,
1091
+ 588
1092
+ ],
1093
+ "page_idx": 8
1094
+ },
1095
+ {
1096
+ "type": "text",
1097
+ "text": "Yangqing Jia, Evan Shelhamer, Jeff Donahue, Sergey Karayev, Jonathan Long, Ross Girshick, Sergio Guadarrama, and Trevor Darrell. Caffe: Convolutional architecture for fast feature embedding. arXiv preprint arXiv:1408.5093, 2014. ",
1098
+ "bbox": [
1099
+ 174,
1100
+ 595,
1101
+ 825,
1102
+ 638
1103
+ ],
1104
+ "page_idx": 8
1105
+ },
1106
+ {
1107
+ "type": "text",
1108
+ "text": "Gunter Klambauer, Thomas Unterthiner, Andreas Mayr, and Sepp Hochreiter. Self-normalizing ¨ neural networks. arXiv preprint arXiv:1706.02515, 2017. ",
1109
+ "bbox": [
1110
+ 173,
1111
+ 647,
1112
+ 823,
1113
+ 676
1114
+ ],
1115
+ "page_idx": 8
1116
+ },
1117
+ {
1118
+ "type": "text",
1119
+ "text": "Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. 2009. ",
1120
+ "bbox": [
1121
+ 171,
1122
+ 684,
1123
+ 821,
1124
+ 700
1125
+ ],
1126
+ "page_idx": 8
1127
+ },
1128
+ {
1129
+ "type": "text",
1130
+ "text": "Yann Le Cun, Ido Kanter, and Sara A Solla. Eigenvalues of covariance matrices: Application to neural-network learning. Physical Review Letters, 66(18):2396, 1991. ",
1131
+ "bbox": [
1132
+ 176,
1133
+ 708,
1134
+ 823,
1135
+ 737
1136
+ ],
1137
+ "page_idx": 8
1138
+ },
1139
+ {
1140
+ "type": "text",
1141
+ "text": "Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to ´ document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998. ",
1142
+ "bbox": [
1143
+ 174,
1144
+ 744,
1145
+ 823,
1146
+ 775
1147
+ ],
1148
+ "page_idx": 8
1149
+ },
1150
+ {
1151
+ "type": "text",
1152
+ "text": "Min Lin, Qiang Chen, and Shuicheng Yan. Network in network. arXiv preprint arXiv:1312.4400, 2013. ",
1153
+ "bbox": [
1154
+ 174,
1155
+ 782,
1156
+ 821,
1157
+ 811
1158
+ ],
1159
+ "page_idx": 8
1160
+ },
1161
+ {
1162
+ "type": "text",
1163
+ "text": "Andrew L Maas, Awni Y Hannun, and Andrew Y Ng. Rectifier nonlinearities improve neural network acoustic models. In Proc. ICML, volume 30, 2013. ",
1164
+ "bbox": [
1165
+ 173,
1166
+ 820,
1167
+ 821,
1168
+ 849
1169
+ ],
1170
+ "page_idx": 8
1171
+ },
1172
+ {
1173
+ "type": "text",
1174
+ "text": "MatConvNet. http://www.vlfeat.org/matconvnet/,v.beta-20. ",
1175
+ "bbox": [
1176
+ 173,
1177
+ 858,
1178
+ 696,
1179
+ 873
1180
+ ],
1181
+ "page_idx": 8
1182
+ },
1183
+ {
1184
+ "type": "text",
1185
+ "text": "Nitish Srivastava, Geoffrey E Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. Journal of machine learning research, 15(1):1929–1958, 2014. ",
1186
+ "bbox": [
1187
+ 176,
1188
+ 882,
1189
+ 823,
1190
+ 924
1191
+ ],
1192
+ "page_idx": 8
1193
+ },
1194
+ {
1195
+ "type": "text",
1196
+ "text": "Ludovic Trottier, Philippe Giguere, and Brahim Chaib-draa. Parametric exponential linear unit for \\` deep convolutional neural networks. arXiv preprint arXiv:1605.09332, 2016. ",
1197
+ "bbox": [
1198
+ 173,
1199
+ 103,
1200
+ 825,
1201
+ 132
1202
+ ],
1203
+ "page_idx": 9
1204
+ },
1205
+ {
1206
+ "type": "text",
1207
+ "text": "APPENDIX ",
1208
+ "text_level": 1,
1209
+ "bbox": [
1210
+ 176,
1211
+ 159,
1212
+ 264,
1213
+ 174
1214
+ ],
1215
+ "page_idx": 9
1216
+ },
1217
+ {
1218
+ "type": "text",
1219
+ "text": "DERIVATIVES OF SHELU AND SVELU ",
1220
+ "text_level": 1,
1221
+ "bbox": [
1222
+ 176,
1223
+ 189,
1224
+ 444,
1225
+ 204
1226
+ ],
1227
+ "page_idx": 9
1228
+ },
1229
+ {
1230
+ "type": "text",
1231
+ "text": "For backpropagation, the derivates of ShELU and SvELU with respect to the input $x$ and the shift $\\delta$ are computed as ",
1232
+ "bbox": [
1233
+ 173,
1234
+ 215,
1235
+ 825,
1236
+ 246
1237
+ ],
1238
+ "page_idx": 9
1239
+ },
1240
+ {
1241
+ "type": "equation",
1242
+ "img_path": "images/959834cbc674d10c8a5d22d8290d74019130fdc968f7f39b2bb291e9a7973374.jpg",
1243
+ "text": "$$\n\\begin{array} { r l } & { \\frac { d \\mathrm { S h E L U } } { d x } = \\left\\{ 1 , \\mathrm { ~ i f ~ } x + \\delta > 0 \\right. } \\\\ & { \\frac { d \\mathrm { S h E L U } } { d \\delta } = \\left\\{ 1 , \\mathrm { ~ i f ~ } x + \\delta > 0 \\right. } \\\\ & { \\frac { d \\mathrm { S h E L U } } { d \\delta } = \\left\\{ 1 , \\mathrm { ~ i f ~ } x + \\delta > 0 \\right. } \\\\ & { \\frac { d \\mathrm { S v E L U } } { d x } = \\left\\{ 1 , \\mathrm { ~ i f ~ } x > 0 \\right. } \\\\ & { \\frac { d \\mathrm { S v E L U } } { d \\delta } = \\left\\{ \\alpha ( \\exp ( x ) ) , \\mathrm { i f ~ } x \\leq 0 \\right. } \\\\ & { \\frac { d \\mathrm { S v E L U } } { d \\delta } = 1 } \\end{array}\n$$",
1244
+ "text_format": "latex",
1245
+ "bbox": [
1246
+ 341,
1247
+ 252,
1248
+ 638,
1249
+ 400
1250
+ ],
1251
+ "page_idx": 9
1252
+ },
1253
+ {
1254
+ "type": "text",
1255
+ "text": "DERIVATIVES OF PSHELU ",
1256
+ "text_level": 1,
1257
+ "bbox": [
1258
+ 174,
1259
+ 410,
1260
+ 361,
1261
+ 425
1262
+ ],
1263
+ "page_idx": 9
1264
+ },
1265
+ {
1266
+ "type": "text",
1267
+ "text": "For backpropagation, the derivates of PShELU with respect to the input $x$ , the hyperparameters $\\alpha$ and $\\beta$ , and the shift $\\delta$ are computed as ",
1268
+ "bbox": [
1269
+ 173,
1270
+ 436,
1271
+ 821,
1272
+ 465
1273
+ ],
1274
+ "page_idx": 9
1275
+ },
1276
+ {
1277
+ "type": "equation",
1278
+ "img_path": "images/9db2b47c4cd181edffa4a7a654fca6a5c96d99f21acfaf96eed4f22d1006a74a.jpg",
1279
+ "text": "$$\n\\begin{array} { r l } & { \\frac { d \\mathrm { P S h e L U } } { d x } = \\left\\{ \\frac { \\alpha } { \\beta } , \\ \\mathrm { i f } \\ x + \\delta > 0 \\right. } \\\\ & { \\frac { d \\mathrm { P S h e L U } } { d \\alpha } = \\left\\{ \\frac { \\alpha + \\delta } { \\beta } , \\ \\mathrm { i f } \\ x + \\delta > 0 \\right. } \\\\ & { \\frac { d \\mathrm { P S h e L U } } { d \\alpha } = \\left\\{ \\frac { \\alpha + \\delta } { \\beta } , \\ \\mathrm { i f } \\ x + \\delta > 0 \\right. } \\\\ & { \\frac { d \\mathrm { P S h e L U } } { d \\beta } = \\left\\{ - \\frac { \\alpha } { \\beta ^ { 2 } } ( x + \\delta ) , \\ \\mathrm { i f } \\ x + \\delta > 0 \\right. } \\\\ & { \\frac { d \\mathrm { P S h e L U } } { d \\beta } = \\left\\{ - \\frac { \\alpha } { \\beta ^ { 2 } } ( \\exp ( \\frac { \\alpha + \\delta } { \\beta } ) ) , \\ \\mathrm { i f } \\ x + \\delta \\leq 0 \\right. } \\\\ & { \\frac { d \\mathrm { P S h e L U } } { d \\delta } = \\left\\{ \\frac { \\alpha } { \\beta } , \\ \\mathrm { i f } \\ x + \\delta > 0 \\right. } \\end{array}\n$$",
1280
+ "text_format": "latex",
1281
+ "bbox": [
1282
+ 331,
1283
+ 470,
1284
+ 650,
1285
+ 643
1286
+ ],
1287
+ "page_idx": 9
1288
+ }
1289
+ ]
parse/train/HkSZyinVG/HkSZyinVG_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HkSZyinVG/HkSZyinVG_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJiHXGWAZ/SJiHXGWAZ.md ADDED
@@ -0,0 +1,373 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DIFFUSION CONVOLUTIONAL RECURRENT NEURAL NETWORK: DATA-DRIVEN TRAFFIC FORECASTING
2
+
3
+ Yaguang $\mathbf { L i } ^ { \dagger }$ , Rose $\mathbf { V } \mathbf { u } ^ { \ddag }$ , Cyrus Shahabi†, Yan Liu† † University of Southern California, ‡ California Institute of Technology † {yaguang, shahabi, yanliu.cs}@usc.edu, ‡ rose@caltech.edu
4
+
5
+ # ABSTRACT
6
+
7
+ Spatiotemporal forecasting has various applications in neuroscience, climate and transportation domain. Traffic forecasting is one canonical example of such learning task. The task is challenging due to (1) complex spatial dependency on road networks, (2) non-linear temporal dynamics with changing road conditions and (3) inherent difficulty of long-term forecasting. To address these challenges, we propose to model the traffic flow as a diffusion process on a directed graph and introduce Diffusion Convolutional Recurrent Neural Network (DCRNN), a deep learning framework for traffic forecasting that incorporates both spatial and temporal dependency in the traffic flow. Specifically, DCRNN captures the spatial dependency using bidirectional random walks on the graph, and the temporal dependency using the encoder-decoder architecture with scheduled sampling. We evaluate the framework on two real-world large scale road network traffic datasets and observe consistent improvement of $1 2 \% - 1 5 \%$ over state-of-the-art baselines.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Spatiotemporal forecasting is a crucial task for a learning system that operates in a dynamic environment. It has a wide range of applications from autonomous vehicles operations, to energy and smart grid optimization, to logistics and supply chain management. In this paper, we study one important task: traffic forecasting on road networks, the core component of the intelligent transportation systems. The goal of traffic forecasting is to predict the future traffic speeds of a sensor network given historic traffic speeds and the underlying road networks.
12
+
13
+ This task is challenging mainly due to the complex spatiotemporal dependencies and inherent difficulty in the long term forecasting. On the one hand, traffic time series demonstrate strong temporal dynamics. Recurring incidents such as rush hours or accidents can cause nonstationarity, making it difficult to forecast longterm. On the other hand, sensors on the road network contain complex yet unique spatial correlations. Figure 1 illustrates an example. Road 1 and road 2 are correlated, while road 1 and road 3 are not. Although road 1 and road 3 are close in the Euclidean space, they demonstrate very different behaviors. Moreover, the future traffic speed is influenced more by the downstream traffic than the upstream one. This means that the spatial structure in traffic is nonEuclidean and directional.
14
+
15
+ ![](images/a52a2d9f91fcd760118256e52884cd0555ef88f1d13abd6b36decb7b19560b73.jpg)
16
+ Figure 1: Spatial correlation is dominated by road network structure. (1) Traffic speed in road 1 are similar to road 2 as they locate in the same highway. (2) Road 1 and road 3 locate in the opposite directions of the highway. Though close to each other in the Euclidean space, their road network distance is large, and their traffic speeds differ significantly.
17
+
18
+ Traffic forecasting has been studied for decades, falling into two main categories: knowledge
19
+
20
+ driven approach and data-driven approach. In transportation and operational research, knowledgedriven methods usually apply queuing theory and simulate user behaviors in traffic (Cascetta, 2013). In time series community, data-driven methods such as Auto-Regressive Integrated Moving Average (ARIMA) model and Kalman filtering remain popular (Liu et al., 2011; Lippi et al., 2013). However, simple time series models usually rely on the stationarity assumption, which is often violated by the traffic data. Most recently, deep learning models for traffic forecasting have been developed in Lv et al. (2015); Yu et al. (2017b), but without considering the spatial structure. Wu & Tan (2016) and Ma et al. (2017) model the spatial correlation with Convolutional Neural Networks (CNN), but the spatial structure is in the Euclidean space (e.g., 2D images). Bruna et al. (2014), Defferrard et al. (2016) studied graph convolution, but only for undirected graphs.
21
+
22
+ In this work, we represent the pair-wise spatial correlations between traffic sensors using a directed graph whose nodes are sensors and edge weights denote proximity between the sensor pairs measured by the road network distance. We model the dynamics of the traffic flow as a diffusion process and propose the diffusion convolution operation to capture the spatial dependency. We further propose Diffusion Convolutional Recurrent Neural Network (DCRNN) that integrates diffusion convolution, the sequence to sequence architecture and the scheduled sampling technique. When evaluated on realworld traffic datasets, DCRNN consistently outperforms state-of-the-art traffic forecasting baselines by a large margin. In summary:
23
+
24
+ • We study the traffic forecasting problem and model the spatial dependency of traffic as a diffusion process on a directed graph. We propose diffusion convolution, which has an intuitive interpretation and can be computed efficiently.
25
+ We propose Diffusion Convolutional Recurrent Neural Network (DCRNN), a holistic approach that captures both spatial and temporal dependencies among time series using diffusion convolution and the sequence to sequence learning framework together with scheduled sampling. DCRNN is not limited to transportation and is readily applicable to other spatiotemporal forecasting tasks.
26
+ We conducted extensive experiments on two large-scale real-world datasets, and the proposed approach obtains significant improvement over state-of-the-art baseline methods.
27
+
28
+ # 2 METHODOLOGY
29
+
30
+ We formalize the learning problem of spatiotemporal traffic forecasting and describe how to model the dependency structures using diffusion convolutional recurrent neural network.
31
+
32
+ # 2.1 TRAFFIC FORECASTING PROBLEM
33
+
34
+ The goal of traffic forecasting is to predict the future traffic speed given previously observed traffic flow from $N$ correlated sensors on the road network. We can represent the sensor network as a weighted directed graph $\mathcal { G } = ( \nu , \mathcal { E } , W )$ , where $\nu$ is a set of nodes $| \nu | = N$ , $\mathcal { E }$ is a set of edges and $\pmb { W } \in \mathbb { R } ^ { N \times N }$ is a weighted adjacency matrix representing the nodes proximity (e.g., a function of their road network distance). Denote the traffic flow observed on $\mathcal { G }$ as a graph signal $\pmb { X } \in \mathbb { R } ^ { N \times P }$ , where $P$ is the number of features of each node (e.g., velocity, volume). Let $\bar { X } ^ { ( t ) }$ represent the graph signal observed at time $t$ , the traffic forecasting problem aims to learn a function $h ( \cdot )$ that maps $T ^ { \prime }$ historical graph signals to future $T$ graph signals, given a graph $\mathcal { G }$ :
35
+
36
+ $$
37
+ [ \pmb { X } ^ { ( t - T ^ { \prime } + 1 ) } , \allowbreak \cdot \cdot \ , \pmb { X } ^ { ( t ) } ; \mathcal { G } ] \xrightarrow { h ( \cdot ) } [ \pmb { X } ^ { ( t + 1 ) } , \allowbreak \cdot \cdot \ , \pmb { X } ^ { ( t + T ) } ]
38
+ $$
39
+
40
+ # 2.2 SPATIAL DEPENDENCY MODELING
41
+
42
+ We model the spatial dependency by relating traffic flow to a diffusion process, which explicitly captures the stochastic nature of traffic dynamics. This diffusion process is characterized by a random walk on $\mathcal { G }$ with restart probability $\alpha \in [ 0 , 1 ]$ , and a state transition matrix $D _ { O } ^ { - 1 } W$ . Here $D _ { O } = \mathrm { d i a g } ( W 1 )$ is the out-degree diagonal matrix, and $\mathbf { 1 } \in \mathbb { R } ^ { N }$ denotes the all one vector. After many time steps, such Markov process converges to a stationary distribution $\pmb { \mathcal { P } } \in \mathbb { R } ^ { N \times N }$ whose $i$ th row $\mathbf { \bar { \mathcal { P } } } _ { i , : } \in \mathbb { R } ^ { \bar { N } }$ represents the likelihood of diffusion from node $v _ { i } \in \mathcal V$ , hence the proximity w.r.t. the node $v _ { i }$ . The following Lemma provides a closed form solution for the stationary distribution.
43
+
44
+ Lemma 2.1. (Teng et al., 2016) The stationary distribution of the diffusion process can be represented as a weighted combination of infinite random walks on the graph, and be calculated in closed form:
45
+
46
+ $$
47
+ \mathcal { P } = \sum _ { k = 0 } ^ { \infty } \alpha ( 1 - \alpha ) ^ { k } \left( D _ { \mathcal { O } } ^ { - 1 } W \right) ^ { k }
48
+ $$
49
+
50
+ where $k$ is the diffusion step. In practice, we use a finite $K$ -step truncation of the diffusion process and assign a trainable weight to each step. We also include the reversed direction diffusion process,
51
+
52
+ such that the bidirectional diffusion offers the model more flexibility to capture the influence from both the upstream and the downstream traffic.
53
+
54
+ Diffusion Convolution The resulted diffusion convolution operation over a graph signal $\boldsymbol { x } \in$ $\mathbb { R } ^ { N \times P }$ and a filter $f _ { \theta }$ is defined as:
55
+
56
+ $$
57
+ \displaystyle { X _ { : , p } \star _ { \mathcal { G } } } \ f _ { \theta } = \sum _ { k = 0 } ^ { K - 1 } \left( \theta _ { k , 1 } \left( D _ { O } ^ { - 1 } W \right) ^ { k } + \theta _ { k , 2 } \left( D _ { I } ^ { - 1 } W ^ { \top } \right) ^ { k } \right) X _ { : , p } \quad \mathrm { f o r } p \in \{ 1 , \cdots , P \}
58
+ $$
59
+
60
+ where $\pmb \theta \in \mathbb R ^ { K \times 2 }$ are the parameters for the filter and $D _ { O } ^ { - 1 } W , D _ { I } ^ { - 1 } W ^ { \intercal }$ represent the transition matrices of the diffusion process and the reverse one, respectively. In general, computing the convolution can be expensive. However, if $\mathcal { G }$ is sparse, Equation 2 can be calculated efficiently using $O ( K )$ recursive sparse-dense matrix multiplication with total time complexity $O ( K | \mathcal { E } | ) \ll \dot { O } ( N ^ { 2 } )$ . See Appendix $\mathbf { B }$ for more detail.
61
+
62
+ Diffusion Convolutional Layer With the convolution operation defined in Equation 2, we can build a diffusion convolutional layer that maps $P$ -dimensional features to $Q$ -dimensional outputs. Denote the parameter tensor as $\dot { \pmb { \Theta } } \in \mathbb { R } ^ { Q \times P \times \dot { \bf K } \times 2 } = [ \pmb { \theta } ] _ { q , p }$ , where $\Theta _ { q , p , : , : } \doteq \mathbb { R } ^ { K \times 2 }$ parameterizes the convolutional filter for the pth input and the qth output. The diffusion convolutional layer is thus:
63
+
64
+ $$
65
+ H _ { : , q } = a \left( \sum _ { p = 1 } ^ { P } X _ { : , p } \star _ { \mathcal { G } } f _ { \Theta _ { q , p ; : } } \right) \qquad { \mathrm { f o r ~ } } q \in \{ 1 , \cdots , Q \}
66
+ $$
67
+
68
+ where $\pmb { X } \in \mathbb { R } ^ { N \times P }$ is the input, $H \in \mathbb { R } ^ { N \times Q }$ is the output, $\{ f _ { \Theta _ { q , p , , : } } \}$ are the filters and $\textbf { \em a }$ is the activation function (e.g., ReLU, Sigmoid). Diffusion convolutional layer learns the representations for graph structured data and we can train it using stochastic gradient based method.
69
+
70
+ Relation with Spectral Graph Convolution Diffusion convolution is defined on both directed and undirected graphs. When applied to undirected graphs, we show that many existing graph structured convolutional operations including the popular spectral graph convolution, i.e., ChebNet (Defferrard et al., 2016), can be considered as a special case of diffusion convolution (up to a similarity transformation). Let $_ D$ denote the degree matrix, and $L = D ^ { - { \frac { 1 } { 2 } } } ( D - W ) D ^ { - { \frac { 1 } { 2 } } }$ be the normalized graph Laplacian, the following Proposition demonstrates the connection.
71
+
72
+ Proposition 2.2. The spectral graph convolution defined as
73
+
74
+ $$
75
+ X _ { : , p } \star _ { \mathcal { G } } f _ { \theta } = \Phi \ F ( \pmb \theta ) \ \Phi ^ { \intercal } X _ { : , p }
76
+ $$
77
+
78
+ with eigenvalue decomposition diffusion convolution up to a sim ${ \pmb { L } } = \pmb { \Phi } \pmb { \Lambda } \pmb { \Phi } ^ { \intercal }$ and rmat $\begin{array} { r } { F ( \pmb \theta ) = \sum _ { 0 } ^ { K - 1 } \theta _ { k } \pmb \Lambda ^ { k } } \end{array}$ , is equivalent to graphs undirected. $\mathcal { G }$
79
+
80
+ Proof. See Appendix C.
81
+
82
+ 2.3 TEMPORAL DYNAMICS MODELING
83
+
84
+ We leverage the recurrent neural networks (RNNs) to model the temporal dependency. In particular, we use Gated Recurrent Units (GRU) (Chung et al., 2014), which is a simple yet powerful variant of RNNs. We replace the matrix multiplications in GRU with the diffusion convolution, which leads to our proposed $D$ iffusion Convolutional Gated Recurrent Unit (DCGRU).
85
+
86
+ $$
87
+ \begin{array} { r l r l } & { r ^ { ( t ) } = } & { \sigma ( \Theta _ { r } \star _ { \mathcal { G } } \big [ X ^ { ( t ) } , ~ H ^ { ( t - 1 ) } \big ] + b _ { r } ) } & { u ^ { ( t ) } = \sigma \big ( \Theta _ { u } \star _ { \mathcal { G } } \big [ X ^ { ( t ) } , ~ H ^ { ( t - 1 ) } \big ] + b _ { u } \big ) } \\ & { \varsigma ^ { ( t ) } = } & { \mathrm { t a n h } \big ( \Theta _ { C } \star _ { \mathcal { G } } \big [ X ^ { ( t ) } , ~ ( r ^ { ( t ) } \odot H ^ { ( t - 1 ) } ) \big ] + b _ { c } \big ) } & { H ^ { ( t ) } = u ^ { ( t ) } \odot H ^ { ( t - 1 ) } + \big ( 1 - u ^ { ( t ) } \big ) \odot C ^ { ( t ) } } \end{array}
88
+ $$
89
+
90
+ where $\mathbf { \boldsymbol { X } } ^ { ( t ) } , \mathbf { \boldsymbol { H } } ^ { ( t ) }$ denote the input and output of at time $t$ $\mathbf { \boldsymbol { r } } ^ { ( t ) } , \mathbf { \boldsymbol { u } } ^ { ( t ) }$ are reset gate and update gate at time $t$ , respectively. $\star _ { \mathcal { G } }$ denotes the diffusion convolution defined in Equation 2 and $\Theta _ { r } , \Theta _ { u } , \Theta _ { C }$ are parameters for the corresponding filters. Similar to GRU, DCGRU can be used to build recurrent neural network layers and be trained using backpropagation through time.
91
+
92
+ In multiple step ahead forecasting, we employ the Sequence to Sequence architecture (Sutskever et al., 2014). Both the encoder and the decoder are recurrent neural networks with DCGRU. During training, we feed the historical time series into the encoder and use its final states to initialize the decoder. The decoder generates predictions given previous ground truth observations. At testing time, ground truth observations are replaced by predictions generated by the model itself. The discrepancy between the input distributions of training and testing can cause degraded performance. To mitigate this issue, we integrate scheduled sampling (Bengio et al., 2015) into the model, where we feed the model with either the ground truth observation with probability $\epsilon _ { i }$ or the prediction by the model with probability $1 - \epsilon _ { i }$ at the ith iteration. During the training process, $\epsilon _ { i }$ gradually decreases to 0 to allow the model to learn the testing distribution.
93
+
94
+ ![](images/eb10031718635a4605b29be131deb2827920cbffeb6514644c957a88e17991b3.jpg)
95
+ Figure 2: System architecture for the Diffusion Convolutional Recurrent Neural Network designed for spatiotemporal traffic forecasting. The historical time series are fed into an encoder whose final states are used to initialize the decoder. The decoder makes predictions based on either previous ground truth or the model output.
96
+
97
+ With both spatial and temporal modeling, we build a Diffusion Convolutional Recurrent Neural Network (DCRNN). The model architecture of DCRNN is shown in Figure 2. The entire network is trained by maximizing the likelihood of generating the target future time series using backpropagation through time. DCRNN is able to capture spatiotemporal dependencies among time series and can be applied to various spatiotemporal forecasting problems.
98
+
99
+ # 3 RELATED WORK
100
+
101
+ Traffic forecasting is a classic problem in transportation and operational research which are primarily based on queuing theory and simulations (Drew, 1968). Data-driven approaches for traffic forecasting have received considerable attention, and more details can be found in a recent survey paper (Vlahogianni et al., 2014) and the references therein. However, existing machine learning models either impose strong stationary assumptions on the data (e.g., auto-regressive model) or fail to account for highly non-linear temporal dependency (e.g., latent space model Yu et al. (2016); Deng et al. (2016)). Deep learning models deliver new promise for time series forecasting problem. For example, in Yu et al. (2017b); Laptev et al. (2017), the authors study time series forecasting using deep Recurrent Neural Networks (RNN). Convolutional Neural Networks (CNN) have also been applied to traffic forecasting. Zhang et al. (2016; 2017) convert the road network to a regular 2-D grid and apply traditional CNN to predict crowd flow. Cheng et al. (2017) propose DeepTransport which models the spatial dependency by explicitly collecting upstream and downstream neighborhood roads for each individual road and then conduct convolution on these neighborhoods respectively.
102
+
103
+ Recently, CNN has been generalized to arbitrary graphs based on the spectral graph theory. Graph convolutional neural networks (GCN) are first introduced in Bruna et al. (2014), which bridges the spectral graph theory and deep neural networks. Defferrard et al. (2016) propose ChebNet which improves GCN with fast localized convolutions filters. Kipf & Welling (2017) simplify ChebNet and achieve state-of-the-art performance in semi-supervised classification tasks. Seo et al. (2016) combine ChebNet with Recurrent Neural Networks (RNN) for structured sequence modeling. Yu et al. (2017a) model the sensor network as a undirected graph and applied ChebNet and convolutional sequence model (Gehring et al., 2017) to do forecasting. One limitation of the mentioned spectral based convolutions is that they generally require the graph to be undirected to calculate meaningful spectral decomposition. Going from spectral domain to vertex domain, Atwood & Towsley (2016) propose diffusion-convolutional neural network (DCNN) which defines convolution as a diffusion process across each node in a graph-structured input. Hechtlinger et al. (2017) propose GraphCNN to generalize convolution to graph by convolving every node with its $p$ nearest neighbors. However, both these methods do not consider the temporal dynamics and mainly deal with static graph settings.
104
+
105
+ Table 1: Performance comparison of different approaches for traffic speed forecasting. DCRNN achieves the best performance with all three metrics for all forecasting horizons, and the advantage becomes more evident with the increase of the forecasting horizon.
106
+
107
+ <table><tr><td></td><td>T</td><td>Metric</td><td>HA</td><td>ARIMAKal</td><td>VAR</td><td>SVR</td><td>FNN</td><td>FC-LSTM</td><td>DCRNN</td></tr><tr><td rowspan="4">PATIIA</td><td>15 min</td><td>MAE RMSE</td><td>4.16 7.80</td><td>3.99 8.21</td><td>4.42 7.89</td><td>3.99 8.45</td><td>3.99 7.94</td><td>3.44 6.30</td><td>2.77 5.38</td></tr><tr><td></td><td>MAPE MAE</td><td>13.0% 4.16</td><td>9.6% 5.15</td><td>10.2% 5.41</td><td>9.3% 5.05</td><td>9.9% 4.23</td><td>9.6% 3.77</td><td>7.3% 3.15</td></tr><tr><td>30 min</td><td>RMSE MAPE MAE</td><td>7.80 13.0% 4.16</td><td>10.45 12.7% 6.90</td><td>9.13 12.7% 6.52</td><td>10.87 12.1% 6.72</td><td>8.17 12.9% 4.49</td><td>7.23 10.9% 4.37</td><td>6.45 8.8% 3.60</td></tr><tr><td>1 hour</td><td>RMSE MAPE</td><td>7.80 13.0%</td><td>13.23 17.4%</td><td>10.11 15.8%</td><td>13.76 16.7%</td><td>8.69 14.0%</td><td>8.69 13.2%</td><td>7.59 10.5%</td></tr><tr><td rowspan="4">PPP-PPAA</td><td>15 min</td><td>MAE RMSE MAPE</td><td>2.88 5.59 6.8%</td><td>1.62 3.30 3.5%</td><td>1.74 3.16 3.6%</td><td>1.85 3.59 3.8%</td><td>2.20 4.42 5.19%</td><td>2.05 4.19</td><td>1.38 2.95</td></tr><tr><td>30 min</td><td>MAE RMSE MAPE</td><td>2.88 5.59 6.8%</td><td>2.33 4.76</td><td>2.32 4.25</td><td>2.48 5.18</td><td>2.30 4.63</td><td>4.8% 2.20 4.55</td><td>2.9% 1.74 3.97</td></tr><tr><td>1 hour</td><td>MAE RMSE</td><td>2.88 5.59</td><td>5.4% 3.38 6.50</td><td>5.0% 2.93 5.44</td><td>5.5% 3.28 7.08</td><td>5.43% 2.46</td><td>5.2% 2.37</td><td>3.9% 2.07</td></tr><tr><td></td><td>MAPE</td><td>6.8%</td><td>8.3%</td><td>6.5%</td><td>8.0%</td><td>4.98 5.89%</td><td>4.96 5.7%</td><td>4.74 4.9%</td></tr></table>
108
+
109
+ Our approach is different from all those methods due to both the problem settings and the formulation of the convolution on the graph. We model the sensor network as a weighted directed graph which is more realistic than grid or undirected graph. Besides, the proposed convolution is defined using bidirectional graph random walk and is further integrated with the sequence to sequence learning framework as well as the scheduled sampling to model the long-term temporal dependency.
110
+
111
+ # 4 EXPERIMENTS
112
+
113
+ We conduct experiments on two real-world large-scale datasets: (1) METR-LA This traffic dataset contains traffic information collected from loop detectors in the highway of Los Angeles County (Jagadish et al., 2014). We select 207 sensors and collect 4 months of data ranging from Mar 1st 2012 to Jun 30th 2012 for the experiment. (2) PEMS-BAY This traffic dataset is collected by California Transportation Agencies (CalTrans) Performance Measurement System (PeMS). We select 325 sensors in the Bay Area and collect 6 months of data ranging from Jan 1st 2017 to May 31th 2017 for the experiment. The sensor distributions of both datasets are visualized in Figure 8 in the Appendix.
114
+
115
+ In both of those datasets, we aggregate traffic speed readings into 5 minutes windows, and apply Z-Score normalization. $70 \%$ of data is used for training, $20 \%$ are used for testing while the remaining $10 \%$ for validation. To construct the sensor graph, we compute the pairwise road network distances between sensors and build the adjacency matrix using thresholded Gaussian kernel (Shuman et al., 2013). $\begin{array} { r } { W _ { i j } = \exp \left( { - \frac { \mathrm { d i s t } ( v _ { i } , v _ { j } ) ^ { 2 } } { \sigma ^ { 2 } } } \right) } \end{array}$ if $\mathrm { d i s t } ( v _ { i } , v _ { j } ) \le \kappa$ , otherwise 0, where $W _ { i j }$ represents the edge weight between sensor $v _ { i }$ and sensor $v _ { j }$ , $\mathrm { d i s t } ( v _ { i } , v _ { j } )$ denotes the road network distance from sensor $v _ { i }$ to sensor $v _ { j }$ . $\sigma$ is the standard deviation of distances and $\kappa$ is the threshold.
116
+
117
+ # 4.1 EXPERIMENTAL SETTINGS
118
+
119
+ Baselines We compare DCRNN1 with widely used time series regression models, including (1) HA: Historical Average, which models the traffic flow as a seasonal process, and uses weighted average of previous seasons as the prediction; (2) $\mathbf { A R I M A } _ { k a l }$ : Auto-Regressive Integrated Moving Average model with Kalman filter which is widely used in time series prediction; (3) VAR: Vector Auto-Regression (Hamilton, 1994). (4) SVR: Support Vector Regression which uses linear support vector machine for the regression task; The following deep neural network based approaches are also included: (5) Feed forward Neural network (FNN): Feed forward neural network with two hidden layers and L2 regularization. (6) Recurrent Neural Network with fully connected LSTM hidden units (FC-LSTM) (Sutskever et al., 2014).
120
+
121
+ ![](images/9c9781eeaafb772cc2e0c3e6403d04ad2122425790950273f62aeca104ebbc22.jpg)
122
+ Figure 3: Learning curve for DCRNN and DCRNN without diffusion convolution. Removing diffusion convolution results in much higher validation error. Moreover, DCRNN with bidirectional random walk achieves the lowest validation error.
123
+
124
+ ![](images/f13335bea7036c2e54e7045e8a2a27506d7cd7cdc37e77bb6c60c3ccbc6d61da.jpg)
125
+ Figure 4: Effects of K and the number of units in each layer of DCRNN. K corresponds to the reception field width of the filter, and the number of units corresponds to the number of filters.
126
+
127
+ All neural network based approaches are implemented using Tensorflow (Abadi et al., 2016), and trained using the Adam optimizer with learning rate annealing. The best hyperparameters are chosen using the Tree-structured Parzen Estimator (TPE) (Bergstra et al., 2011) on the validation dataset. Detailed parameter settings for DCRNN as well as baselines are available in Appendix E.
128
+
129
+ # 4.2 TRAFFIC FORECASTING PERFORMANCE COMPARISON
130
+
131
+ Table 1 shows the comparison of different approaches for 15 minutes, 30 minutes and 1 hour ahead forecasting on both datasets. These methods are evaluated based on three commonly used metrics in traffic forecasting, including (1) Mean Absolute Error (MAE), (2) Mean Absolute Percentage Error (MAPE), and (3) Root Mean Squared Error (RMSE). Missing values are excluded in calculating these metrics. Detailed formulations of these metrics are provided in Appendix E.2. We observe the following phenomenon in both of these datasets. (1) RNN-based methods, including FC-LSTM and DCRNN, generally outperform other baselines which emphasizes the importance of modeling the temporal dependency. (2) DCRNN achieves the best performance regarding all the metrics for all forecasting horizons, which suggests the effectiveness of spatiotemporal dependency modeling. (3) Deep neural network based methods including FNN, FC-LSTM and DCRNN, tend to have better performance than linear baselines for long-term forecasting, e.g., 1 hour ahead. This is because the temporal dependency becomes increasingly non-linear with the growth of the horizon. Besides, as the historical average method does not depend on short-term data, its performance is invariant to the small increases in the forecasting horizon.
132
+
133
+ Note that, traffic forecasting on the METR-LA (Los Angeles, which is known for its complicated traffic conditions) dataset is more challenging than that in the PEMS-BAY (Bay Area) dataset. Thus we use METR-LA as the default dataset for following experiments.
134
+
135
+ # 4.3 EFFECT OF SPATIAL DEPENDENCY MODELING
136
+
137
+ To further investigate the effect of spatial dependency modeling, we compare DCRNN with the following variants: (1) DCRNN-NoConv, which ignores spatial dependency by replacing the transition matrices in the diffusion convolution (Equation 2) with identity matrices. This essentially means the forecasting of a sensor can be only be inferred from its own historical readings; (2) DCRNN-UniConv, which only uses the forward random walk transition matrix for diffusion convolution; Figure 3 shows the learning curves of these three models with roughly the same number of parameters. Without diffusion convolution, DCRNN-NoConv has much higher validation error. Moreover, DCRNN achieves the lowest validation error which shows the effectiveness of using bidirectional random walk. The intuition is that the bidirectional random walk gives the model the ability and flexibility to capture the influence from both the upstream and the downstream traffic.
138
+
139
+ Table 2: Performance comparison for DCRNN and GCRNN on the METRA-LA dataset.
140
+
141
+ <table><tr><td></td><td colspan="3">15 min</td><td colspan="3">30 min</td><td colspan="3">1 hour</td></tr><tr><td></td><td>MAE</td><td>RMSE</td><td>MAPE</td><td>MAE</td><td>RMSE</td><td>MAPE</td><td>MAE</td><td>RMSE</td><td>MAPE</td></tr><tr><td>DCRNN</td><td>2.77</td><td>5.38</td><td>7.3%</td><td>3.15</td><td>6.45</td><td>8.8%</td><td>3.60</td><td>7.60</td><td>10.5%</td></tr><tr><td>GCRNN</td><td>2.80</td><td>5.51</td><td>7.5%</td><td>3.24</td><td>6.74</td><td>9.0%</td><td>3.81</td><td>8.16</td><td>10.9%</td></tr></table>
142
+
143
+ ![](images/8ca14f6afd328fb45111fa2bfa69e5ec0f337d843fd8d947a11946b48c3c105c.jpg)
144
+ Figure 5: Performance comparison for different DCRNN variants. DCRNN, with the sequence to sequence framework and scheduled sampling, achieves the lowest MAE on the validation dataset. The advantage becomes more clear with the increase of the forecasting horizon.
145
+
146
+ ![](images/0c77030ae0577be7bc3acfde78cd715a48811a60c489898910c4424f1232ec52.jpg)
147
+ Figure 6: Traffic time series forecasting visualization. DCRNN generates smooth prediction and is usually better at predict the start and end of peak hours.
148
+
149
+ To investigate the effect of graph construction, we construct a undirected graph by setting $\widehat { W } _ { i j } =$ $\widehat { W } _ { j i } = \operatorname* { m a x } ( W _ { i j } , W _ { j i } )$ , where $\widehat { W }$ is the new symmetric weight matrix. Then we develop a variant of DCRNN denotes GCRNN, which uses the sequence to sequence learning with ChebNet graph convolution (Equation 5) with roughly the same amount of parameters. Table 2 shows the comparison between DCRNN and GCRNN in the METR-LA dataset. DCRNN consistently outperforms GCRNN. The intuition is that directed graph better captures the asymmetric correlation between traffic sensors. Figure 4 shows the effects of different parameters. $K$ roughly corresponds to the size of filters’ reception fields while the number of units corresponds to the number of filters. Larger $K$ enables the model to capture broader spatial dependency at the cost of increasing learning complexity. We observe that with the increase of $K$ , the error on the validation dataset first quickly decrease, and then slightly increase. Similar behavior is observed for varying the number of units.
150
+
151
+ # 4.4 EFFECT OF TEMPORAL DEPENDENCY MODELING
152
+
153
+ To evaluate the effect of temporal modeling including the sequence to sequence framework as well as the scheduled sampling mechanism, we further design three variants of DCRNN: (1) DCNN: in which we concatenate the historical observations as a fixed length vector and feed it into stacked diffusion convolutional layers to predict the future time series. We train a single model for one step ahead prediction, and feed the previous prediction into the model as input to perform multiple steps ahead prediction. (2) DCRNN-SEQ: which uses the encoder-decoder sequence to sequence learning framework to perform multiple steps ahead forecasting. (3) DCRNN: similar to DCRNN-SEQ except for adding scheduled sampling.
154
+
155
+ ![](images/d2999efa3103b73cef388357cbb4742384fd04bd2b01b04718f2aba8b264f2ac.jpg)
156
+ Figure 7: Visualization of learned localized filters centered at different nodes with $K = 3$ on the METR-LA dataset. The star denotes the center, and the colors represent the weights. We observe that weights are localized around the center, and diffuse alongside the road network.
157
+
158
+ Figure 5 shows the comparison of those four methods with regards to MAE for different forecasting horizons. We observe that: (1) DCRNN-SEQ outperforms DCNN by a large margin which conforms the importance of modeling temporal dependency. (2) DCRNN achieves the best result, and its superiority becomes more evident with the increase of the forecasting horizon. This is mainly because the model is trained to deal with its mistakes during multiple steps ahead prediction and thus suffers less from the problem of error propagation. We also train a model that always been fed its output as input for multiple steps ahead prediction. However, its performance is much worse than all the three variants which emphasizes the importance of scheduled sampling.
159
+
160
+ # 4.5 MODEL INTERPRETATION
161
+
162
+ To better understand the model, we visualize forecasting results as well as learned filters. Figure 6 shows the visualization of 1 hour ahead forecasting. We have the following observations: (1) DCRNN generates smooth prediction of the mean when small oscillation exists in the traffic speeds (Figure 6(a)). This reflects the robustness of the model. (2) DCRNN is more likely to accurately predict abrupt changes in the traffic speed than baseline methods (e.g., FC-LSTM). As shown in Figure 6(b), DCRNN predicts the start and the end of the peak hours. This is because DCRNN captures the spatial dependency, and is able to utilize the speed changes in neighborhood sensors for more accurate forecasting. Figure 7 visualizes examples of learned filters centered at different nodes. The star denotes the center, and colors denote the weights. We can observe that (1) weights are well localized around the center, and (2) the weights diffuse based on road network distance. More visualizations are provided in Appendix F.
163
+
164
+ # 5 CONCLUSION
165
+
166
+ In this paper, we formulated the traffic prediction on road network as a spatiotemporal forecasting problem, and proposed the diffusion convolutional recurrent neural network that captures the spatiotemporal dependencies. Specifically, we use bidirectional graph random walk to model spatial dependency and recurrent neural network to capture the temporal dynamics. We further integrated the encoder-decoder architecture and the scheduled sampling technique to improve the performance for long-term forecasting. When evaluated on two large-scale real-world traffic datasets, our approach obtained significantly better prediction than baselines. For future work, we will investigate the following two aspects (1) applying the proposed model to other spatial-temporal forecasting tasks; (2) modeling the spatiotemporal dependency when the underlying graph structure is evolving, e.g., the K nearest neighbor graph for moving objects.
167
+
168
+ # ACKNOWLEDGMENTS
169
+
170
+ This research has been funded in part by NSF grants CNS-1461963, IIS-1254206, IIS-1539608, Caltrans-65A0533, the USC Integrated Media Systems Center (IMSC), and the USC METRANS Transportation Center. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of any of the sponsors such as NSF. Also, the authors would like to thank Shang-Hua Teng, Dehua Cheng and Siyang Li for helpful discussions and comments.
171
+
172
+ # REFERENCES
173
+
174
+ Mart´ın Abadi et al. Tensorflow: Large-scale machine learning on heterogeneous distributed systems. arXiv preprint arXiv:1603.04467, 2016.
175
+
176
+ James Atwood and Don Towsley. Diffusion-convolutional neural networks. In Advances in Neural Information Processing Systems, pp. 1993–2001, 2016.
177
+
178
+ Samy Bengio, Oriol Vinyals, Navdeep Jaitly, and Noam Shazeer. Scheduled sampling for sequence prediction with recurrent neural networks. In NIPS, pp. 1171–1179, 2015.
179
+
180
+ James S Bergstra, Remi Bardenet, Yoshua Bengio, and Bal ´ azs K ´ egl. Algorithms for hyper-parameter ´ optimization. In Advances in Neural Information Processing Systems, pp. 2546–2554, 2011.
181
+
182
+ Joan Bruna, Wojciech Zaremba, Arthur Szlam, and Yann LeCun. Spectral networks and locally connected networks on graphs. In ICLR, 2014.
183
+
184
+ Pinlong Cai, Yunpeng Wang, Guangquan Lu, Peng Chen, Chuan Ding, and Jianping Sun. A spatiotemporal correlative k-nearest neighbor model for short-term traffic multistep forecasting. Transportation Research Part C: Emerging Technologies, 62:21–34, 2016.
185
+
186
+ Ennio Cascetta. Transportation systems engineering: theory and methods, volume 49. Springer Science & Business Media, 2013.
187
+
188
+ Dehua Cheng, Yu Cheng, Yan Liu, Richard Peng, and Shang-Hua Teng. Efficient sampling for gaussian graphical models via spectral sparsification. In Conference on Learning Theory, pp. 364–390, 2015.
189
+
190
+ Xingyi Cheng, Ruiqing Zhang, Jie Zhou, and Wei Xu. Deeptransport: Learning spatial-temporal dependency for traffic condition forecasting. arXiv preprint arXiv:1709.09585, 2017.
191
+
192
+ Junyoung Chung, Caglar Gulcehre, KyungHyun Cho, and Yoshua Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint arXiv:1412.3555, 2014.
193
+
194
+ Michael Defferrard, Xavier Bresson, and Pierre Vandergheynst. Convolutional neural networks on ¨ graphs with fast localized spectral filtering. In NIPS, pp. 3837–3845, 2016.
195
+
196
+ Dingxiong Deng, Cyrus Shahabi, Ugur Demiryurek, Linhong Zhu, Rose Yu, and Yan Liu. Latent space model for road networks to predict time-varying traffic. In SIGKDD, pp. 1525–1534, 2016.
197
+
198
+ Donald R Drew. Traffic flow theory and control. Technical report, 1968.
199
+
200
+ Gaetano Fusco, Chiara Colombaroni, and Natalia Isaenko. Short-term speed predictions exploiting big data on large urban road networks. Transportation Research Part C: Emerging Technologies, 73:183–201, 2016.
201
+
202
+ Jonas Gehring, Michael Auli, David Grangier, Denis Yarats, and Yann N Dauphin. Convolutional sequence to sequence learning. In ICML, 2017.
203
+
204
+ Aditya Grover and Jure Leskovec. node2vec: Scalable feature learning for networks. In Proceedings of the 22nd ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 855–864. ACM, 2016.
205
+
206
+ James Douglas Hamilton. Time series analysis, volume 2. Princeton university press Princeton, 1994.
207
+
208
+ Yotam Hechtlinger, Purvasha Chakravarti, and Jining Qin. A generalization of convolutional neural networks to graph-structured data. arXiv preprint arXiv:1704.08165, 2017.
209
+
210
+ H. V. Jagadish, Johannes Gehrke, Alexandros Labrinidis, Yannis Papakonstantinou, Jignesh M. Patel, Raghu Ramakrishnan, and Cyrus Shahabi. Big data and its technical challenges. Commun. ACM, 57(7):86–94, July 2014.
211
+
212
+ Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In International Conference on Learning Representations (ICLR), 2017.
213
+
214
+ Nikolay Laptev, Jason Yosinski, Li Erran Li, and Slawek Smyl. Time-series extreme event forecasting with neural networks at Uber. In Int. Conf. on Machine Learning Time Series Workshop, 2017.
215
+
216
+ Marco Lippi, Marco Bertini, and Paolo Frasconi. Short-term traffic flow forecasting: An experimental comparison of time-series analysis and supervised learning. ITS, IEEE Transactions on, 14(2): 871–882, 2013.
217
+
218
+ Wei Liu, Yu Zheng, Sanjay Chawla, Jing Yuan, and Xie Xing. Discovering spatio-temporal causal interactions in traffic data streams. In SIGKDD, pp. 1010–1018. ACM, 2011.
219
+
220
+ Yisheng Lv, Yanjie Duan, Wenwen Kang, Zhengxi Li, and Fei-Yue Wang. Traffic flow prediction with big data: A deep learning approach. ITS, IEEE Transactions on, 16(2):865–873, 2015.
221
+
222
+ Xiaolei Ma, Zhuang Dai, Zhengbing He, Jihui Ma, Yong Wang, and Yunpeng Wang. Learning traffic as images: a deep convolutional neural network for large-scale transportation network speed prediction. Sensors, 17(4):818, 2017.
223
+
224
+ Bryan Perozzi, Rami Al-Rfou, and Steven Skiena. Deepwalk: Online learning of social representations. In Proceedings of the 20th ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 701–710. ACM, 2014.
225
+
226
+ Youngjoo Seo, Michael Defferrard, Pierre Vandergheynst, and Xavier Bresson. Structured sequence ¨ modeling with graph convolutional recurrent networks. arXiv preprint arXiv:1612.07659, 2016.
227
+
228
+ David I Shuman, Sunil K Narang, Pascal Frossard, Antonio Ortega, and Pierre Vandergheynst. The emerging field of signal processing on graphs: Extending high-dimensional data analysis to networks and other irregular domains. IEEE Signal Processing Magazine, 30(3):83–98, 2013.
229
+
230
+ Ilya Sutskever, Oriol Vinyals, and Quoc V Le. Sequence to sequence learning with neural networks. In NIPS, pp. 3104–3112, 2014.
231
+
232
+ Shang-Hua Teng et al. Scalable algorithms for data and network analysis. Foundations and Trends $\textsuperscript { \textregistered }$ in Theoretical Computer Science, 12(1–2):1–274, 2016.
233
+
234
+ Eleni I Vlahogianni, Matthew G Karlaftis, and John C Golias. Short-term traffic forecasting: Where we are and where were going. Transportation Research Part C: Emerging Technologies, 43:3–19, 2014.
235
+
236
+ Yuankai Wu and Huachun Tan. Short-term traffic flow forecasting with spatial-temporal correlation in a hybrid deep learning framework. arXiv preprint arXiv:1612.01022, 2016.
237
+
238
+ Yuanchang Xie, Kaiguang Zhao, Ying Sun, and Dawei Chen. Gaussian processes for short-term traffic volume forecasting. Transportation Research Record: Journal of the Transportation Research Board, (2165):69–78, 2010.
239
+
240
+ Bing Yu, Haoteng Yin, and Zhanxing Zhu. Spatio-temporal graph convolutional neural network: A deep learning framework for traffic forecasting. arXiv preprint arXiv:1709.04875, 2017a.
241
+
242
+ Hsiang-Fu Yu, Nikhil Rao, and Inderjit S Dhillon. Temporal regularized matrix factorization for high-dimensional time series prediction. In Advances in Neural Information Processing Systems, pp. 847–855, 2016.
243
+
244
+ Rose Yu, Yaguang Li, Cyrus Shahabi, Ugur Demiryurek, and Yan Liu. Deep learning: A generic approach for extreme condition traffic forecasting. In SIAM International Conference on Data Mining (SDM), 2017b.
245
+
246
+ Junbo Zhang, Yu Zheng, Dekang Qi, Ruiyuan Li, and Xiuwen Yi. Dnn-based prediction model for spatio-temporal data. In Proceedings of the 24th ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems, pp. 92. ACM, 2016.
247
+
248
+ Junbo Zhang, Yu Zheng, and Dekang Qi. Deep spatio-temporal residual networks for citywide crowd flows prediction. In AAAI, pp. 1655–1661, 2017.
249
+
250
+ # APPENDIX
251
+
252
+ A NOTATION
253
+
254
+ Table 3: Notation
255
+
256
+ <table><tr><td>Name g</td><td>a graph</td></tr><tr><td>V,Ui m W,Wij, D,D1,Do L Φ,△</td><td>nodes of a graph,|V|= N and the i-th node. edges of a graph weight matrix of a graph and its entries undirected degree matrix, In-degree/out-degree matrix normalized graphLaplacian eigen-vector matrix and eigen-value matrix of L X,X∈RN×P a graph signal,and the predicted graph signal. a graph signal at time t. output of the diffusion convolutional layer.</td></tr></table>
257
+
258
+ Table 3 summarizes the main notations used in the paper.
259
+
260
+ # B EFFICIENT CALCULATION OF EQUATION 2
261
+
262
+ Equation 2 can be decomposed into two parts with the same time complexity, i.e., one part with $D _ { O } ^ { - 1 } W$ and the other part with $D _ { I } ^ { - 1 } W ^ { \boldsymbol { \mathsf { T } } }$ . Thus we will only show the time complexity of the first part.
263
+
264
+ Let $T _ { k } ( { \pmb x } ) = \left( { \pmb D } _ { O } ^ { - 1 } { \pmb W } \right) ^ { k } { \pmb x }$ , The first part of Equation 2 can be rewritten as
265
+
266
+ $$
267
+ \sum _ { k = 0 } ^ { K - 1 } \theta _ { k } T _ { k } ( X _ { : , p } )
268
+ $$
269
+
270
+ As $T _ { k + 1 } ( { \pmb x } ) = D _ { O } ^ { - 1 } { \pmb W } T _ { k } ( { \pmb x } )$ and $D _ { O } ^ { - 1 } W$ is sparse, it is easy to see that Equation 4 can be calculated using ${ \cal { O } } \breve { ( } K )$ recursive sparse-dense matrix multiplication each with time complexity $O ( | \mathcal { E } | )$ . Consequently, the time complexities of both Equation 2 and Equation 4 are $O ( K | \bar { \mathcal { E } } | )$ . For dense graph, we may use spectral sparsification (Cheng et al., 2015) to make it sparse.
271
+
272
+ # C RELATION WITH SPECTRAL GRAPH CONVOLUTION
273
+
274
+ Proof. The spectral graph convolution utilizes the concept of normalized graph Laplacian $L =$ $D ^ { - { \frac { 1 } { 2 } } } ( D - \bar { W } ) D ^ { - { \frac { 1 } { 2 } } } = \Phi \Lambda \Phi ^ { \intercal }$ . ChebNet parametrizes $f _ { \theta }$ to be a $K$ order polynomial of $\pmb { \Lambda }$ , and calculates it using stable Chebyshev polynomial basis.
275
+
276
+ $$
277
+ { \cal X } _ { : , p } \star _ { \mathscr G } f _ { \theta } = \Phi \left( \sum _ { k = 0 } ^ { K - 1 } \theta _ { k } { \bf A } ^ { k } \right) \Phi ^ { \intercal } { \cal X } _ { : , p } = \sum _ { k = 0 } ^ { K - 1 } \theta _ { k } { \cal L } ^ { k } { \pmb X } _ { : , p } = \sum _ { k = 0 } ^ { K - 1 } \tilde { \theta } _ { k } T _ { k } ( { \tilde { \cal L } } ) { \pmb X } _ { : , p }
278
+ $$
279
+
280
+ where $T _ { 0 } ( x ) = 1 , T _ { 1 } ( x ) = x , T _ { k } ( x ) = x T _ { k - 1 } ( x ) - T _ { k - 2 } ( x )$ are the basis of the Cheyshev polynomial. Let $\lambda _ { m a x }$ denote the largest eigenvalue of $\pmb { L }$ , and $\begin{array} { r } { \tilde { \pmb { L } } = \frac { 2 } { \lambda _ { m a x } } \pmb { L } - \pmb { I } } \end{array}$ represents a rescaling of the graph Laplacian that maps the eigenvalues from $[ 0 , \lambda _ { m a x } ]$ to $[ - 1 , 1 ]$ since Chebyshev polynomial forms an orthogonal basis in $[ - 1 , 1 ]$ . Equation 5 can be considered as a polynomial of $\tilde { L }$ and we will show that the output of ChebNet Convolution is similar to the output of diffusion convolution up to constant scaling factor. Assume $\lambda _ { m a x } = 2$ and ${ \cal D } _ { I } = { \cal D } _ { O } = { \cal D }$ for undirected graph.
281
+
282
+ $$
283
+ \tilde { L } = D ^ { - \frac { 1 } { 2 } } ( D - W ) D ^ { - \frac { 1 } { 2 } } - I = - D ^ { - \frac { 1 } { 2 } } W D ^ { - \frac { 1 } { 2 } } \sim - D ^ { - 1 } W
284
+ $$
285
+
286
+ $\tilde { L }$ is similar to the negative random walk transition matrix, thus the output of Equation 5 is also similar to the output of Equation 2 up to constant scaling factor. □
287
+
288
+ ![](images/62960aa48867d2808dbc58d1790eafab631251035be24e20ae7b19ea1d9e802b.jpg)
289
+ Figure 8: Sensor distribution of the METR-LA and PEMS-BAY dataset.
290
+
291
+ D MORE RELATED WORK AND DISCUSSION
292
+
293
+ Xie et al. (2010) introduce a Gaussian processes (GPs) based method. GPs are hard to scale to the large dataset and are generally not suitable for relatively long-term traffic prediction like 1 hour (i.e.,12 steps ahead), as the variance can be accumulated and becomes extremely large.
294
+
295
+ Cai et al. (2016) propose to use spatiotemporal nearest neighbor for traffic forecasting (ST-KNN). Though ST-KNN considers both the spatial and the temporal dependencies, it has the following drawbacks. As shown in Fusco et al. (2016), ST-KNN performs independent forecasting for each individual road. The prediction of a road is a weighted combination of its own historical traffic speeds. This makes it hard for ST-KNN to fully utilize information from neighbors. Besides, ST-KNN is a non-parametric approach and each road is modeled and calculated separately (Cai et al., 2016), which makes it hard to generalize to unseen situations and to scale to large datasets. Finally, in ST-KNN, all the similarities are calculated using hand-designed metrics with few learnable parameters, and this may limit its representational power.
296
+
297
+ Cheng et al. (2017) propose DeepTransport which models the spatial dependency by explicitly collecting certain number of upstream and downstream roads for each individual road and then conduct convolution on these roads respectively. Comparing with Cheng et al. (2017), DCRNN models the spatial dependency in a more systematic way, i.e., generalizing convolution to the traffic sensor graph based on the diffusion nature of traffic. Besides, we derive DCRNN from the property of random walk and show that the popular spectral convolution ChebNet is a special case of our method.
298
+
299
+ The proposed approach is also related to graph embedding techniques, e.g., Deepwalk (Perozzi et al., 2014), node2vec (Grover & Leskovec, 2016) which learn a low dimension representation for each node in the graph. DCRNN also learns a representation for each node. The learned representations capture both the spatial and the temporal dependency and at the same time are optimized with regarding to the objective, e.g., future traffic speeds.
300
+
301
+ # E DETAILED EXPERIMENTAL SETTINGS
302
+
303
+ HA Historical Average, which models the traffic flow as a seasonal process, and uses weighted average of previous seasons as the prediction. The period used is 1 week, and the prediction is based on aggregated data from previous weeks. For example, the prediction for this Wednesday is the averaged traffic speeds from last four Wednesdays. As the historical average method does not depend on short-term data, its performance is invariant to the small increases in the forecasting horizon
304
+
305
+ $\mathbf { A R I M A } _ { k a l }$ : Auto-Regressive Integrated Moving Average model with Kalman filter. The orders are (3, 0, 1), and the model is implemented using the statsmodel python package.
306
+
307
+ VAR Vector Auto-regressive model (Hamilton, 1994). The number of lags is set to 3, and the model is implemented using the statsmodel python package.
308
+
309
+ SVR Linear Support Vector Regression, the penalty term $C = 0 . 1$ , the number of historical observation is 5.
310
+
311
+ The following deep neural network based approaches are also included.
312
+
313
+ FNN Feed forward neural network with two hidden layers, each layer contains 256 units. The initial learning rate is $1 e ^ { - 3 }$ , and reduces to $\frac { 1 } { 1 0 }$ every 20 epochs starting at the 50th epochs. In addition, for all hidden layers, dropout with ratio 0.5 and L2 weight decay $1 e ^ { - 2 }$ is used. The model is trained with batch size 64 and MAE as the loss function. Early stop is performed by monitoring the validation error.
314
+
315
+ FC-LSTM The Encoder-decoder framework using LSTM with peephole (Sutskever et al., 2014). Both the encoder and the decoder contain two recurrent layers. In each recurrent layer, there are 256 LSTM units, L1 weight decay is $2 e ^ { - 5 }$ , L2 weight decay $5 e ^ { - 4 }$ . The model is trained with batch size 64 and loss function MAE. The initial learning rate is 1e-4 and reduces to 110 every 10 epochs starting from the 20th epochs. Early stop is performed by monitoring the validation error.
316
+
317
+ DCRNN : Diffusion Convolutional Recurrent Neural Network. Both encoder and decoder contain two recurrent layers. In each recurrent layer, there are 64 units, the initial learning rate is $1 e ^ { - 2 }$ , and reduces to $\frac { 1 } { 1 0 }$ every 10 epochs starting at the 20th epoch and early stopping on the validation dataset is used. Besides, the maximum steps of random walks, i.e., $K$ , is set to 3. For scheduled sampling, the thresholded inverse sigmoid function is used as the probability decay:
318
+
319
+ $$
320
+ \epsilon _ { i } = \frac { \tau } { \tau + \exp \left( i / \tau \right) }
321
+ $$
322
+
323
+ where $i$ is the number of iterations while $\tau$ are parameters to control the speed of convergence. $\tau$ is set to 3,000 in the experiments. The implementation is available in https://github.com/ liyaguang/DCRNN.
324
+
325
+ # E.1 DATASET
326
+
327
+ We conduct experiments on two real-world large-scale datasets:
328
+
329
+ • METR-LA This traffic dataset contains traffic information collected from loop detectors in the highway of Los Angeles County (Jagadish et al., 2014). We select 207 sensors and collect 4 months of data ranging from Mar 1st 2012 to Jun 30th 2012 for the experiment. The total number of observed traffic data points is 6,519,002.
330
+ PEMS-BAY This traffic dataset is collected by California Transportation Agencies (CalTrans) Performance Measurement System (PeMS). We select 325 sensors in the Bay Area and collect 6 months of data ranging from Jan 1st 2017 to May 31th 2017 for the experiment. The total number of observed traffic data points is 16,937,179.
331
+
332
+ The sensor distributions of both datasets are visualized in Figure 8.
333
+
334
+ In both of those datasets, we aggregate traffic speed readings into 5 minutes windows, and apply Z-Score normalization. $70 \%$ of data is used for training, $20 \%$ are used for testing while the remaining $10 \%$ for validation. To construct the sensor graph, we compute the pairwise road network distances between sensors and build the adjacency matrix using thresholded Gaussian kernel (Shuman et al., 2013).
335
+
336
+ $$
337
+ W _ { i j } = \exp \left( - \frac { \mathrm { d i s t } ( v _ { i } , v _ { j } ) ^ { 2 } } { \sigma ^ { 2 } } \right) \quad \mathrm { i f ~ } \mathrm { d i s t } ( v _ { i } , v _ { j } ) \leq \kappa , \mathrm { o t h e r w i s e ~ } 0
338
+ $$
339
+
340
+ where $W _ { i j }$ represents the edge weight between sensor $v _ { i }$ and sensor $v _ { j }$ , $\mathrm { d i s t } ( v _ { i } , v _ { j } )$ denotes the road network distance from sensor $v _ { i }$ to sensor $v _ { j }$ . $\sigma$ is the standard deviation of distances and $\kappa$ is the threshold.
341
+
342
+ # E.2 METRICS
343
+
344
+ Suppose $\pmb { x } = x _ { 1 } , \cdots , x _ { n }$ represents the ground truth, $\hat { \pmb x } = \hat { x } _ { 1 } , \cdots , \hat { x } _ { n }$ represents the predicted values, and $\Omega$ denotes the indices of observed samples, the metrics are defined as follows.
345
+
346
+ Root Mean Square Error (RMSE)
347
+
348
+ $$
349
+ \mathrm { R M S E } ( { \pmb x } , \hat { \pmb x } ) = \sqrt { \frac { 1 } { | { \pmb \Omega } | } \sum _ { i \in \Omega } ( x _ { i } - \hat { x } _ { i } ) ^ { 2 } }
350
+ $$
351
+
352
+ Mean Absolute Percentage Error (MAPE)
353
+
354
+ $$
355
+ \mathrm { M A P E } ( \pmb { x } , \hat { \pmb { x } } ) = \frac { 1 } { | \pmb { \Omega } | } \sum _ { i \in \Omega } \left| \frac { x _ { i } - \hat { x } _ { i } } { x _ { i } } \right|
356
+ $$
357
+
358
+ Mean Absolute Error (MAE)
359
+
360
+ $$
361
+ \mathrm { M A E } ( { \pmb x } , \hat { \pmb x } ) = \frac { 1 } { | \pmb { \Omega } | } \sum _ { i \in \pmb { \Omega } } | x _ { i } - \hat { x } _ { i } |
362
+ $$
363
+
364
+ F MODEL VISUALIZATION
365
+
366
+ ![](images/b2aa0dcd43a41cbf7dc306a60997a58af83cf306db959dd2637f12504f5df574.jpg)
367
+ Figure 9: Sensor correlations between the center sensor and its neighborhoods for different forecasting horizons. The correlations are estimated using regularized VAR. We observe that the correlations are localized and closer neighborhoods usually have larger relevance, and the magnitude of correlation quickly decay with the increase of distance which is consistent with the diffusion process on the graph.
368
+
369
+ ![](images/31bdbfa746c2cd8ce1cc9ecbcfe3cd80f190ce51206ec301436e295f4a5a4e04.jpg)
370
+ Figure 10: Traffic time series forecasting visualization.
371
+
372
+ ![](images/7a6dba74782b6e903be82f579ad03fc305e95eb3093473263a5a95fc641af710.jpg)
373
+ Figure 11: Traffic time series forecasting visualization.
parse/train/SJiHXGWAZ/SJiHXGWAZ_content_list.json ADDED
@@ -0,0 +1,1959 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "DIFFUSION CONVOLUTIONAL RECURRENT NEURAL NETWORK: DATA-DRIVEN TRAFFIC FORECASTING ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 98,
9
+ 821,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Yaguang $\\mathbf { L i } ^ { \\dagger }$ , Rose $\\mathbf { V } \\mathbf { u } ^ { \\ddag }$ , Cyrus Shahabi†, Yan Liu† † University of Southern California, ‡ California Institute of Technology † {yaguang, shahabi, yanliu.cs}@usc.edu, ‡ rose@caltech.edu ",
17
+ "bbox": [
18
+ 184,
19
+ 169,
20
+ 732,
21
+ 214
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 452,
31
+ 233,
32
+ 544,
33
+ 247
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Spatiotemporal forecasting has various applications in neuroscience, climate and transportation domain. Traffic forecasting is one canonical example of such learning task. The task is challenging due to (1) complex spatial dependency on road networks, (2) non-linear temporal dynamics with changing road conditions and (3) inherent difficulty of long-term forecasting. To address these challenges, we propose to model the traffic flow as a diffusion process on a directed graph and introduce Diffusion Convolutional Recurrent Neural Network (DCRNN), a deep learning framework for traffic forecasting that incorporates both spatial and temporal dependency in the traffic flow. Specifically, DCRNN captures the spatial dependency using bidirectional random walks on the graph, and the temporal dependency using the encoder-decoder architecture with scheduled sampling. We evaluate the framework on two real-world large scale road network traffic datasets and observe consistent improvement of $1 2 \\% - 1 5 \\%$ over state-of-the-art baselines. ",
40
+ "bbox": [
41
+ 233,
42
+ 253,
43
+ 766,
44
+ 433
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 458,
55
+ 336,
56
+ 473
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Spatiotemporal forecasting is a crucial task for a learning system that operates in a dynamic environment. It has a wide range of applications from autonomous vehicles operations, to energy and smart grid optimization, to logistics and supply chain management. In this paper, we study one important task: traffic forecasting on road networks, the core component of the intelligent transportation systems. The goal of traffic forecasting is to predict the future traffic speeds of a sensor network given historic traffic speeds and the underlying road networks. ",
63
+ "bbox": [
64
+ 174,
65
+ 479,
66
+ 826,
67
+ 563
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "This task is challenging mainly due to the complex spatiotemporal dependencies and inherent difficulty in the long term forecasting. On the one hand, traffic time series demonstrate strong temporal dynamics. Recurring incidents such as rush hours or accidents can cause nonstationarity, making it difficult to forecast longterm. On the other hand, sensors on the road network contain complex yet unique spatial correlations. Figure 1 illustrates an example. Road 1 and road 2 are correlated, while road 1 and road 3 are not. Although road 1 and road 3 are close in the Euclidean space, they demonstrate very different behaviors. Moreover, the future traffic speed is influenced more by the downstream traffic than the upstream one. This means that the spatial structure in traffic is nonEuclidean and directional. ",
74
+ "bbox": [
75
+ 174,
76
+ 569,
77
+ 485,
78
+ 819
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "image",
84
+ "img_path": "images/a52a2d9f91fcd760118256e52884cd0555ef88f1d13abd6b36decb7b19560b73.jpg",
85
+ "image_caption": [
86
+ "Figure 1: Spatial correlation is dominated by road network structure. (1) Traffic speed in road 1 are similar to road 2 as they locate in the same highway. (2) Road 1 and road 3 locate in the opposite directions of the highway. Though close to each other in the Euclidean space, their road network distance is large, and their traffic speeds differ significantly. "
87
+ ],
88
+ "image_footnote": [],
89
+ "bbox": [
90
+ 508,
91
+ 583,
92
+ 815,
93
+ 712
94
+ ],
95
+ "page_idx": 0
96
+ },
97
+ {
98
+ "type": "text",
99
+ "text": "Traffic forecasting has been studied for decades, falling into two main categories: knowledge",
100
+ "bbox": [
101
+ 174,
102
+ 827,
103
+ 485,
104
+ 854
105
+ ],
106
+ "page_idx": 0
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "driven approach and data-driven approach. In transportation and operational research, knowledgedriven methods usually apply queuing theory and simulate user behaviors in traffic (Cascetta, 2013). In time series community, data-driven methods such as Auto-Regressive Integrated Moving Average (ARIMA) model and Kalman filtering remain popular (Liu et al., 2011; Lippi et al., 2013). However, simple time series models usually rely on the stationarity assumption, which is often violated by the traffic data. Most recently, deep learning models for traffic forecasting have been developed in Lv et al. (2015); Yu et al. (2017b), but without considering the spatial structure. Wu & Tan (2016) and Ma et al. (2017) model the spatial correlation with Convolutional Neural Networks (CNN), but the spatial structure is in the Euclidean space (e.g., 2D images). Bruna et al. (2014), Defferrard et al. (2016) studied graph convolution, but only for undirected graphs. ",
111
+ "bbox": [
112
+ 174,
113
+ 853,
114
+ 825,
115
+ 924
116
+ ],
117
+ "page_idx": 0
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "",
122
+ "bbox": [
123
+ 174,
124
+ 103,
125
+ 825,
126
+ 174
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "In this work, we represent the pair-wise spatial correlations between traffic sensors using a directed graph whose nodes are sensors and edge weights denote proximity between the sensor pairs measured by the road network distance. We model the dynamics of the traffic flow as a diffusion process and propose the diffusion convolution operation to capture the spatial dependency. We further propose Diffusion Convolutional Recurrent Neural Network (DCRNN) that integrates diffusion convolution, the sequence to sequence architecture and the scheduled sampling technique. When evaluated on realworld traffic datasets, DCRNN consistently outperforms state-of-the-art traffic forecasting baselines by a large margin. In summary: ",
133
+ "bbox": [
134
+ 173,
135
+ 180,
136
+ 825,
137
+ 292
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "• We study the traffic forecasting problem and model the spatial dependency of traffic as a diffusion process on a directed graph. We propose diffusion convolution, which has an intuitive interpretation and can be computed efficiently. \nWe propose Diffusion Convolutional Recurrent Neural Network (DCRNN), a holistic approach that captures both spatial and temporal dependencies among time series using diffusion convolution and the sequence to sequence learning framework together with scheduled sampling. DCRNN is not limited to transportation and is readily applicable to other spatiotemporal forecasting tasks. \nWe conducted extensive experiments on two large-scale real-world datasets, and the proposed approach obtains significant improvement over state-of-the-art baseline methods. ",
144
+ "bbox": [
145
+ 215,
146
+ 301,
147
+ 825,
148
+ 450
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "2 METHODOLOGY ",
155
+ "text_level": 1,
156
+ "bbox": [
157
+ 174,
158
+ 455,
159
+ 341,
160
+ 472
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "We formalize the learning problem of spatiotemporal traffic forecasting and describe how to model the dependency structures using diffusion convolutional recurrent neural network. ",
167
+ "bbox": [
168
+ 174,
169
+ 477,
170
+ 823,
171
+ 506
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "2.1 TRAFFIC FORECASTING PROBLEM ",
178
+ "text_level": 1,
179
+ "bbox": [
180
+ 174,
181
+ 512,
182
+ 452,
183
+ 526
184
+ ],
185
+ "page_idx": 1
186
+ },
187
+ {
188
+ "type": "text",
189
+ "text": "The goal of traffic forecasting is to predict the future traffic speed given previously observed traffic flow from $N$ correlated sensors on the road network. We can represent the sensor network as a weighted directed graph $\\mathcal { G } = ( \\nu , \\mathcal { E } , W )$ , where $\\nu$ is a set of nodes $| \\nu | = N$ , $\\mathcal { E }$ is a set of edges and $\\pmb { W } \\in \\mathbb { R } ^ { N \\times N }$ is a weighted adjacency matrix representing the nodes proximity (e.g., a function of their road network distance). Denote the traffic flow observed on $\\mathcal { G }$ as a graph signal $\\pmb { X } \\in \\mathbb { R } ^ { N \\times P }$ , where $P$ is the number of features of each node (e.g., velocity, volume). Let $\\bar { X } ^ { ( t ) }$ represent the graph signal observed at time $t$ , the traffic forecasting problem aims to learn a function $h ( \\cdot )$ that maps $T ^ { \\prime }$ historical graph signals to future $T$ graph signals, given a graph $\\mathcal { G }$ : ",
190
+ "bbox": [
191
+ 173,
192
+ 530,
193
+ 826,
194
+ 643
195
+ ],
196
+ "page_idx": 1
197
+ },
198
+ {
199
+ "type": "equation",
200
+ "img_path": "images/3ad7e05ff24691bd19de44880bcf873fe7546502fa22cf66194e838fd5069353.jpg",
201
+ "text": "$$\n[ \\pmb { X } ^ { ( t - T ^ { \\prime } + 1 ) } , \\allowbreak \\cdot \\cdot \\ , \\pmb { X } ^ { ( t ) } ; \\mathcal { G } ] \\xrightarrow { h ( \\cdot ) } [ \\pmb { X } ^ { ( t + 1 ) } , \\allowbreak \\cdot \\cdot \\ , \\pmb { X } ^ { ( t + T ) } ]\n$$",
202
+ "text_format": "latex",
203
+ "bbox": [
204
+ 315,
205
+ 646,
206
+ 681,
207
+ 670
208
+ ],
209
+ "page_idx": 1
210
+ },
211
+ {
212
+ "type": "text",
213
+ "text": "2.2 SPATIAL DEPENDENCY MODELING ",
214
+ "text_level": 1,
215
+ "bbox": [
216
+ 176,
217
+ 684,
218
+ 457,
219
+ 699
220
+ ],
221
+ "page_idx": 1
222
+ },
223
+ {
224
+ "type": "text",
225
+ "text": "We model the spatial dependency by relating traffic flow to a diffusion process, which explicitly captures the stochastic nature of traffic dynamics. This diffusion process is characterized by a random walk on $\\mathcal { G }$ with restart probability $\\alpha \\in [ 0 , 1 ]$ , and a state transition matrix $D _ { O } ^ { - 1 } W$ . Here $D _ { O } = \\mathrm { d i a g } ( W 1 )$ is the out-degree diagonal matrix, and $\\mathbf { 1 } \\in \\mathbb { R } ^ { N }$ denotes the all one vector. After many time steps, such Markov process converges to a stationary distribution $\\pmb { \\mathcal { P } } \\in \\mathbb { R } ^ { N \\times N }$ whose $i$ th row $\\mathbf { \\bar { \\mathcal { P } } } _ { i , : } \\in \\mathbb { R } ^ { \\bar { N } }$ represents the likelihood of diffusion from node $v _ { i } \\in \\mathcal V$ , hence the proximity w.r.t. the node $v _ { i }$ . The following Lemma provides a closed form solution for the stationary distribution. ",
226
+ "bbox": [
227
+ 173,
228
+ 709,
229
+ 825,
230
+ 809
231
+ ],
232
+ "page_idx": 1
233
+ },
234
+ {
235
+ "type": "text",
236
+ "text": "Lemma 2.1. (Teng et al., 2016) The stationary distribution of the diffusion process can be represented as a weighted combination of infinite random walks on the graph, and be calculated in closed form: ",
237
+ "bbox": [
238
+ 171,
239
+ 811,
240
+ 821,
241
+ 840
242
+ ],
243
+ "page_idx": 1
244
+ },
245
+ {
246
+ "type": "equation",
247
+ "img_path": "images/d5404a940bec632b62408cc8779a769e5de420e116f8446795a04d52e7934f45.jpg",
248
+ "text": "$$\n\\mathcal { P } = \\sum _ { k = 0 } ^ { \\infty } \\alpha ( 1 - \\alpha ) ^ { k } \\left( D _ { \\mathcal { O } } ^ { - 1 } W \\right) ^ { k }\n$$",
249
+ "text_format": "latex",
250
+ "bbox": [
251
+ 390,
252
+ 844,
253
+ 606,
254
+ 886
255
+ ],
256
+ "page_idx": 1
257
+ },
258
+ {
259
+ "type": "text",
260
+ "text": "where $k$ is the diffusion step. In practice, we use a finite $K$ -step truncation of the diffusion process and assign a trainable weight to each step. We also include the reversed direction diffusion process, ",
261
+ "bbox": [
262
+ 173,
263
+ 895,
264
+ 823,
265
+ 924
266
+ ],
267
+ "page_idx": 1
268
+ },
269
+ {
270
+ "type": "text",
271
+ "text": "such that the bidirectional diffusion offers the model more flexibility to capture the influence from both the upstream and the downstream traffic. ",
272
+ "bbox": [
273
+ 171,
274
+ 103,
275
+ 825,
276
+ 132
277
+ ],
278
+ "page_idx": 2
279
+ },
280
+ {
281
+ "type": "text",
282
+ "text": "Diffusion Convolution The resulted diffusion convolution operation over a graph signal $\\boldsymbol { x } \\in$ $\\mathbb { R } ^ { N \\times P }$ and a filter $f _ { \\theta }$ is defined as: ",
283
+ "bbox": [
284
+ 171,
285
+ 146,
286
+ 825,
287
+ 175
288
+ ],
289
+ "page_idx": 2
290
+ },
291
+ {
292
+ "type": "equation",
293
+ "img_path": "images/ba93ac59a3a2d8c72d493e051e520c7f24953e4fb202d51374fd328178aa3816.jpg",
294
+ "text": "$$\n\\displaystyle { X _ { : , p } \\star _ { \\mathcal { G } } } \\ f _ { \\theta } = \\sum _ { k = 0 } ^ { K - 1 } \\left( \\theta _ { k , 1 } \\left( D _ { O } ^ { - 1 } W \\right) ^ { k } + \\theta _ { k , 2 } \\left( D _ { I } ^ { - 1 } W ^ { \\top } \\right) ^ { k } \\right) X _ { : , p } \\quad \\mathrm { f o r } p \\in \\{ 1 , \\cdots , P \\}\n$$",
295
+ "text_format": "latex",
296
+ "bbox": [
297
+ 217,
298
+ 180,
299
+ 781,
300
+ 224
301
+ ],
302
+ "page_idx": 2
303
+ },
304
+ {
305
+ "type": "text",
306
+ "text": "where $\\pmb \\theta \\in \\mathbb R ^ { K \\times 2 }$ are the parameters for the filter and $D _ { O } ^ { - 1 } W , D _ { I } ^ { - 1 } W ^ { \\intercal }$ represent the transition matrices of the diffusion process and the reverse one, respectively. In general, computing the convolution can be expensive. However, if $\\mathcal { G }$ is sparse, Equation 2 can be calculated efficiently using $O ( K )$ recursive sparse-dense matrix multiplication with total time complexity $O ( K | \\mathcal { E } | ) \\ll \\dot { O } ( N ^ { 2 } )$ . See Appendix $\\mathbf { B }$ for more detail. ",
307
+ "bbox": [
308
+ 173,
309
+ 231,
310
+ 826,
311
+ 303
312
+ ],
313
+ "page_idx": 2
314
+ },
315
+ {
316
+ "type": "text",
317
+ "text": "Diffusion Convolutional Layer With the convolution operation defined in Equation 2, we can build a diffusion convolutional layer that maps $P$ -dimensional features to $Q$ -dimensional outputs. Denote the parameter tensor as $\\dot { \\pmb { \\Theta } } \\in \\mathbb { R } ^ { Q \\times P \\times \\dot { \\bf K } \\times 2 } = [ \\pmb { \\theta } ] _ { q , p }$ , where $\\Theta _ { q , p , : , : } \\doteq \\mathbb { R } ^ { K \\times 2 }$ parameterizes the convolutional filter for the pth input and the qth output. The diffusion convolutional layer is thus: ",
318
+ "bbox": [
319
+ 173,
320
+ 316,
321
+ 826,
322
+ 375
323
+ ],
324
+ "page_idx": 2
325
+ },
326
+ {
327
+ "type": "equation",
328
+ "img_path": "images/468f28b432d056a1f641c46c878f502b676a787e4708540ebdfcd3e3681077ae.jpg",
329
+ "text": "$$\nH _ { : , q } = a \\left( \\sum _ { p = 1 } ^ { P } X _ { : , p } \\star _ { \\mathcal { G } } f _ { \\Theta _ { q , p ; : } } \\right) \\qquad { \\mathrm { f o r ~ } } q \\in \\{ 1 , \\cdots , Q \\}\n$$",
330
+ "text_format": "latex",
331
+ "bbox": [
332
+ 303,
333
+ 380,
334
+ 692,
335
+ 424
336
+ ],
337
+ "page_idx": 2
338
+ },
339
+ {
340
+ "type": "text",
341
+ "text": "where $\\pmb { X } \\in \\mathbb { R } ^ { N \\times P }$ is the input, $H \\in \\mathbb { R } ^ { N \\times Q }$ is the output, $\\{ f _ { \\Theta _ { q , p , , : } } \\}$ are the filters and $\\textbf { \\em a }$ is the activation function (e.g., ReLU, Sigmoid). Diffusion convolutional layer learns the representations for graph structured data and we can train it using stochastic gradient based method. ",
342
+ "bbox": [
343
+ 174,
344
+ 429,
345
+ 825,
346
+ 474
347
+ ],
348
+ "page_idx": 2
349
+ },
350
+ {
351
+ "type": "text",
352
+ "text": "Relation with Spectral Graph Convolution Diffusion convolution is defined on both directed and undirected graphs. When applied to undirected graphs, we show that many existing graph structured convolutional operations including the popular spectral graph convolution, i.e., ChebNet (Defferrard et al., 2016), can be considered as a special case of diffusion convolution (up to a similarity transformation). Let $_ D$ denote the degree matrix, and $L = D ^ { - { \\frac { 1 } { 2 } } } ( D - W ) D ^ { - { \\frac { 1 } { 2 } } }$ be the normalized graph Laplacian, the following Proposition demonstrates the connection. ",
353
+ "bbox": [
354
+ 173,
355
+ 488,
356
+ 826,
357
+ 575
358
+ ],
359
+ "page_idx": 2
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "Proposition 2.2. The spectral graph convolution defined as ",
364
+ "bbox": [
365
+ 173,
366
+ 578,
367
+ 566,
368
+ 593
369
+ ],
370
+ "page_idx": 2
371
+ },
372
+ {
373
+ "type": "equation",
374
+ "img_path": "images/d2ee6232be1dbbfe1dba4bd30289c0c17f0adf9e45592c522aa4add28d018121.jpg",
375
+ "text": "$$\nX _ { : , p } \\star _ { \\mathcal { G } } f _ { \\theta } = \\Phi \\ F ( \\pmb \\theta ) \\ \\Phi ^ { \\intercal } X _ { : , p }\n$$",
376
+ "text_format": "latex",
377
+ "bbox": [
378
+ 395,
379
+ 599,
380
+ 601,
381
+ 617
382
+ ],
383
+ "page_idx": 2
384
+ },
385
+ {
386
+ "type": "text",
387
+ "text": "with eigenvalue decomposition diffusion convolution up to a sim ${ \\pmb { L } } = \\pmb { \\Phi } \\pmb { \\Lambda } \\pmb { \\Phi } ^ { \\intercal }$ and rmat $\\begin{array} { r } { F ( \\pmb \\theta ) = \\sum _ { 0 } ^ { K - 1 } \\theta _ { k } \\pmb \\Lambda ^ { k } } \\end{array}$ , is equivalent to graphs undirected. $\\mathcal { G }$ ",
388
+ "bbox": [
389
+ 174,
390
+ 622,
391
+ 826,
392
+ 655
393
+ ],
394
+ "page_idx": 2
395
+ },
396
+ {
397
+ "type": "text",
398
+ "text": "Proof. See Appendix C. ",
399
+ "bbox": [
400
+ 174,
401
+ 669,
402
+ 334,
403
+ 684
404
+ ],
405
+ "page_idx": 2
406
+ },
407
+ {
408
+ "type": "text",
409
+ "text": "2.3 TEMPORAL DYNAMICS MODELING ",
410
+ "bbox": [
411
+ 174,
412
+ 691,
413
+ 459,
414
+ 705
415
+ ],
416
+ "page_idx": 2
417
+ },
418
+ {
419
+ "type": "text",
420
+ "text": "We leverage the recurrent neural networks (RNNs) to model the temporal dependency. In particular, we use Gated Recurrent Units (GRU) (Chung et al., 2014), which is a simple yet powerful variant of RNNs. We replace the matrix multiplications in GRU with the diffusion convolution, which leads to our proposed $D$ iffusion Convolutional Gated Recurrent Unit (DCGRU). ",
421
+ "bbox": [
422
+ 173,
423
+ 708,
424
+ 828,
425
+ 765
426
+ ],
427
+ "page_idx": 2
428
+ },
429
+ {
430
+ "type": "equation",
431
+ "img_path": "images/9e900aa8a4184d20d2cee9e662449f27b632f7dc773923f6b1aff2df88519513.jpg",
432
+ "text": "$$\n\\begin{array} { r l r l } & { r ^ { ( t ) } = } & { \\sigma ( \\Theta _ { r } \\star _ { \\mathcal { G } } \\big [ X ^ { ( t ) } , ~ H ^ { ( t - 1 ) } \\big ] + b _ { r } ) } & { u ^ { ( t ) } = \\sigma \\big ( \\Theta _ { u } \\star _ { \\mathcal { G } } \\big [ X ^ { ( t ) } , ~ H ^ { ( t - 1 ) } \\big ] + b _ { u } \\big ) } \\\\ & { \\varsigma ^ { ( t ) } = } & { \\mathrm { t a n h } \\big ( \\Theta _ { C } \\star _ { \\mathcal { G } } \\big [ X ^ { ( t ) } , ~ ( r ^ { ( t ) } \\odot H ^ { ( t - 1 ) } ) \\big ] + b _ { c } \\big ) } & { H ^ { ( t ) } = u ^ { ( t ) } \\odot H ^ { ( t - 1 ) } + \\big ( 1 - u ^ { ( t ) } \\big ) \\odot C ^ { ( t ) } } \\end{array}\n$$",
433
+ "text_format": "latex",
434
+ "bbox": [
435
+ 181,
436
+ 770,
437
+ 839,
438
+ 813
439
+ ],
440
+ "page_idx": 2
441
+ },
442
+ {
443
+ "type": "text",
444
+ "text": "where $\\mathbf { \\boldsymbol { X } } ^ { ( t ) } , \\mathbf { \\boldsymbol { H } } ^ { ( t ) }$ denote the input and output of at time $t$ $\\mathbf { \\boldsymbol { r } } ^ { ( t ) } , \\mathbf { \\boldsymbol { u } } ^ { ( t ) }$ are reset gate and update gate at time $t$ , respectively. $\\star _ { \\mathcal { G } }$ denotes the diffusion convolution defined in Equation 2 and $\\Theta _ { r } , \\Theta _ { u } , \\Theta _ { C }$ are parameters for the corresponding filters. Similar to GRU, DCGRU can be used to build recurrent neural network layers and be trained using backpropagation through time. ",
445
+ "bbox": [
446
+ 173,
447
+ 816,
448
+ 826,
449
+ 876
450
+ ],
451
+ "page_idx": 2
452
+ },
453
+ {
454
+ "type": "text",
455
+ "text": "In multiple step ahead forecasting, we employ the Sequence to Sequence architecture (Sutskever et al., 2014). Both the encoder and the decoder are recurrent neural networks with DCGRU. During training, we feed the historical time series into the encoder and use its final states to initialize the decoder. The decoder generates predictions given previous ground truth observations. At testing time, ground truth observations are replaced by predictions generated by the model itself. The discrepancy between the input distributions of training and testing can cause degraded performance. To mitigate this issue, we integrate scheduled sampling (Bengio et al., 2015) into the model, where we feed the model with either the ground truth observation with probability $\\epsilon _ { i }$ or the prediction by the model with probability $1 - \\epsilon _ { i }$ at the ith iteration. During the training process, $\\epsilon _ { i }$ gradually decreases to 0 to allow the model to learn the testing distribution. ",
456
+ "bbox": [
457
+ 174,
458
+ 881,
459
+ 825,
460
+ 924
461
+ ],
462
+ "page_idx": 2
463
+ },
464
+ {
465
+ "type": "image",
466
+ "img_path": "images/eb10031718635a4605b29be131deb2827920cbffeb6514644c957a88e17991b3.jpg",
467
+ "image_caption": [
468
+ "Figure 2: System architecture for the Diffusion Convolutional Recurrent Neural Network designed for spatiotemporal traffic forecasting. The historical time series are fed into an encoder whose final states are used to initialize the decoder. The decoder makes predictions based on either previous ground truth or the model output. "
469
+ ],
470
+ "image_footnote": [],
471
+ "bbox": [
472
+ 214,
473
+ 99,
474
+ 782,
475
+ 292
476
+ ],
477
+ "page_idx": 3
478
+ },
479
+ {
480
+ "type": "text",
481
+ "text": "",
482
+ "bbox": [
483
+ 174,
484
+ 398,
485
+ 825,
486
+ 496
487
+ ],
488
+ "page_idx": 3
489
+ },
490
+ {
491
+ "type": "text",
492
+ "text": "With both spatial and temporal modeling, we build a Diffusion Convolutional Recurrent Neural Network (DCRNN). The model architecture of DCRNN is shown in Figure 2. The entire network is trained by maximizing the likelihood of generating the target future time series using backpropagation through time. DCRNN is able to capture spatiotemporal dependencies among time series and can be applied to various spatiotemporal forecasting problems. ",
493
+ "bbox": [
494
+ 174,
495
+ 502,
496
+ 825,
497
+ 573
498
+ ],
499
+ "page_idx": 3
500
+ },
501
+ {
502
+ "type": "text",
503
+ "text": "3 RELATED WORK ",
504
+ "text_level": 1,
505
+ "bbox": [
506
+ 176,
507
+ 587,
508
+ 344,
509
+ 603
510
+ ],
511
+ "page_idx": 3
512
+ },
513
+ {
514
+ "type": "text",
515
+ "text": "Traffic forecasting is a classic problem in transportation and operational research which are primarily based on queuing theory and simulations (Drew, 1968). Data-driven approaches for traffic forecasting have received considerable attention, and more details can be found in a recent survey paper (Vlahogianni et al., 2014) and the references therein. However, existing machine learning models either impose strong stationary assumptions on the data (e.g., auto-regressive model) or fail to account for highly non-linear temporal dependency (e.g., latent space model Yu et al. (2016); Deng et al. (2016)). Deep learning models deliver new promise for time series forecasting problem. For example, in Yu et al. (2017b); Laptev et al. (2017), the authors study time series forecasting using deep Recurrent Neural Networks (RNN). Convolutional Neural Networks (CNN) have also been applied to traffic forecasting. Zhang et al. (2016; 2017) convert the road network to a regular 2-D grid and apply traditional CNN to predict crowd flow. Cheng et al. (2017) propose DeepTransport which models the spatial dependency by explicitly collecting upstream and downstream neighborhood roads for each individual road and then conduct convolution on these neighborhoods respectively. ",
516
+ "bbox": [
517
+ 173,
518
+ 611,
519
+ 825,
520
+ 791
521
+ ],
522
+ "page_idx": 3
523
+ },
524
+ {
525
+ "type": "text",
526
+ "text": "Recently, CNN has been generalized to arbitrary graphs based on the spectral graph theory. Graph convolutional neural networks (GCN) are first introduced in Bruna et al. (2014), which bridges the spectral graph theory and deep neural networks. Defferrard et al. (2016) propose ChebNet which improves GCN with fast localized convolutions filters. Kipf & Welling (2017) simplify ChebNet and achieve state-of-the-art performance in semi-supervised classification tasks. Seo et al. (2016) combine ChebNet with Recurrent Neural Networks (RNN) for structured sequence modeling. Yu et al. (2017a) model the sensor network as a undirected graph and applied ChebNet and convolutional sequence model (Gehring et al., 2017) to do forecasting. One limitation of the mentioned spectral based convolutions is that they generally require the graph to be undirected to calculate meaningful spectral decomposition. Going from spectral domain to vertex domain, Atwood & Towsley (2016) propose diffusion-convolutional neural network (DCNN) which defines convolution as a diffusion process across each node in a graph-structured input. Hechtlinger et al. (2017) propose GraphCNN to generalize convolution to graph by convolving every node with its $p$ nearest neighbors. However, both these methods do not consider the temporal dynamics and mainly deal with static graph settings. ",
527
+ "bbox": [
528
+ 174,
529
+ 799,
530
+ 825,
531
+ 924
532
+ ],
533
+ "page_idx": 3
534
+ },
535
+ {
536
+ "type": "table",
537
+ "img_path": "images/f3f918929c2194ea92ce51a5ad92eeb3fe8115c302e4f3b004558f5cb054d12d.jpg",
538
+ "table_caption": [
539
+ "Table 1: Performance comparison of different approaches for traffic speed forecasting. DCRNN achieves the best performance with all three metrics for all forecasting horizons, and the advantage becomes more evident with the increase of the forecasting horizon. "
540
+ ],
541
+ "table_footnote": [],
542
+ "table_body": "<table><tr><td></td><td>T</td><td>Metric</td><td>HA</td><td>ARIMAKal</td><td>VAR</td><td>SVR</td><td>FNN</td><td>FC-LSTM</td><td>DCRNN</td></tr><tr><td rowspan=\"4\">PATIIA</td><td>15 min</td><td>MAE RMSE</td><td>4.16 7.80</td><td>3.99 8.21</td><td>4.42 7.89</td><td>3.99 8.45</td><td>3.99 7.94</td><td>3.44 6.30</td><td>2.77 5.38</td></tr><tr><td></td><td>MAPE MAE</td><td>13.0% 4.16</td><td>9.6% 5.15</td><td>10.2% 5.41</td><td>9.3% 5.05</td><td>9.9% 4.23</td><td>9.6% 3.77</td><td>7.3% 3.15</td></tr><tr><td>30 min</td><td>RMSE MAPE MAE</td><td>7.80 13.0% 4.16</td><td>10.45 12.7% 6.90</td><td>9.13 12.7% 6.52</td><td>10.87 12.1% 6.72</td><td>8.17 12.9% 4.49</td><td>7.23 10.9% 4.37</td><td>6.45 8.8% 3.60</td></tr><tr><td>1 hour</td><td>RMSE MAPE</td><td>7.80 13.0%</td><td>13.23 17.4%</td><td>10.11 15.8%</td><td>13.76 16.7%</td><td>8.69 14.0%</td><td>8.69 13.2%</td><td>7.59 10.5%</td></tr><tr><td rowspan=\"4\">PPP-PPAA</td><td>15 min</td><td>MAE RMSE MAPE</td><td>2.88 5.59 6.8%</td><td>1.62 3.30 3.5%</td><td>1.74 3.16 3.6%</td><td>1.85 3.59 3.8%</td><td>2.20 4.42 5.19%</td><td>2.05 4.19</td><td>1.38 2.95</td></tr><tr><td>30 min</td><td>MAE RMSE MAPE</td><td>2.88 5.59 6.8%</td><td>2.33 4.76</td><td>2.32 4.25</td><td>2.48 5.18</td><td>2.30 4.63</td><td>4.8% 2.20 4.55</td><td>2.9% 1.74 3.97</td></tr><tr><td>1 hour</td><td>MAE RMSE</td><td>2.88 5.59</td><td>5.4% 3.38 6.50</td><td>5.0% 2.93 5.44</td><td>5.5% 3.28 7.08</td><td>5.43% 2.46</td><td>5.2% 2.37</td><td>3.9% 2.07</td></tr><tr><td></td><td>MAPE</td><td>6.8%</td><td>8.3%</td><td>6.5%</td><td>8.0%</td><td>4.98 5.89%</td><td>4.96 5.7%</td><td>4.74 4.9%</td></tr></table>",
543
+ "bbox": [
544
+ 176,
545
+ 155,
546
+ 823,
547
+ 429
548
+ ],
549
+ "page_idx": 4
550
+ },
551
+ {
552
+ "type": "text",
553
+ "text": "",
554
+ "bbox": [
555
+ 174,
556
+ 455,
557
+ 825,
558
+ 526
559
+ ],
560
+ "page_idx": 4
561
+ },
562
+ {
563
+ "type": "text",
564
+ "text": "Our approach is different from all those methods due to both the problem settings and the formulation of the convolution on the graph. We model the sensor network as a weighted directed graph which is more realistic than grid or undirected graph. Besides, the proposed convolution is defined using bidirectional graph random walk and is further integrated with the sequence to sequence learning framework as well as the scheduled sampling to model the long-term temporal dependency. ",
565
+ "bbox": [
566
+ 174,
567
+ 531,
568
+ 825,
569
+ 602
570
+ ],
571
+ "page_idx": 4
572
+ },
573
+ {
574
+ "type": "text",
575
+ "text": "4 EXPERIMENTS ",
576
+ "text_level": 1,
577
+ "bbox": [
578
+ 176,
579
+ 614,
580
+ 328,
581
+ 630
582
+ ],
583
+ "page_idx": 4
584
+ },
585
+ {
586
+ "type": "text",
587
+ "text": "We conduct experiments on two real-world large-scale datasets: (1) METR-LA This traffic dataset contains traffic information collected from loop detectors in the highway of Los Angeles County (Jagadish et al., 2014). We select 207 sensors and collect 4 months of data ranging from Mar 1st 2012 to Jun 30th 2012 for the experiment. (2) PEMS-BAY This traffic dataset is collected by California Transportation Agencies (CalTrans) Performance Measurement System (PeMS). We select 325 sensors in the Bay Area and collect 6 months of data ranging from Jan 1st 2017 to May 31th 2017 for the experiment. The sensor distributions of both datasets are visualized in Figure 8 in the Appendix. ",
588
+ "bbox": [
589
+ 173,
590
+ 637,
591
+ 826,
592
+ 734
593
+ ],
594
+ "page_idx": 4
595
+ },
596
+ {
597
+ "type": "text",
598
+ "text": "In both of those datasets, we aggregate traffic speed readings into 5 minutes windows, and apply Z-Score normalization. $70 \\%$ of data is used for training, $20 \\%$ are used for testing while the remaining $10 \\%$ for validation. To construct the sensor graph, we compute the pairwise road network distances between sensors and build the adjacency matrix using thresholded Gaussian kernel (Shuman et al., 2013). $\\begin{array} { r } { W _ { i j } = \\exp \\left( { - \\frac { \\mathrm { d i s t } ( v _ { i } , v _ { j } ) ^ { 2 } } { \\sigma ^ { 2 } } } \\right) } \\end{array}$ if $\\mathrm { d i s t } ( v _ { i } , v _ { j } ) \\le \\kappa$ , otherwise 0, where $W _ { i j }$ represents the edge weight between sensor $v _ { i }$ and sensor $v _ { j }$ , $\\mathrm { d i s t } ( v _ { i } , v _ { j } )$ denotes the road network distance from sensor $v _ { i }$ to sensor $v _ { j }$ . $\\sigma$ is the standard deviation of distances and $\\kappa$ is the threshold. ",
599
+ "bbox": [
600
+ 173,
601
+ 741,
602
+ 825,
603
+ 849
604
+ ],
605
+ "page_idx": 4
606
+ },
607
+ {
608
+ "type": "text",
609
+ "text": "4.1 EXPERIMENTAL SETTINGS ",
610
+ "text_level": 1,
611
+ "bbox": [
612
+ 173,
613
+ 853,
614
+ 400,
615
+ 866
616
+ ],
617
+ "page_idx": 4
618
+ },
619
+ {
620
+ "type": "text",
621
+ "text": "Baselines We compare DCRNN1 with widely used time series regression models, including (1) HA: Historical Average, which models the traffic flow as a seasonal process, and uses weighted average of previous seasons as the prediction; (2) $\\mathbf { A R I M A } _ { k a l }$ : Auto-Regressive Integrated Moving Average model with Kalman filter which is widely used in time series prediction; (3) VAR: Vector Auto-Regression (Hamilton, 1994). (4) SVR: Support Vector Regression which uses linear support vector machine for the regression task; The following deep neural network based approaches are also included: (5) Feed forward Neural network (FNN): Feed forward neural network with two hidden layers and L2 regularization. (6) Recurrent Neural Network with fully connected LSTM hidden units (FC-LSTM) (Sutskever et al., 2014). ",
622
+ "bbox": [
623
+ 174,
624
+ 869,
625
+ 825,
626
+ 898
627
+ ],
628
+ "page_idx": 4
629
+ },
630
+ {
631
+ "type": "image",
632
+ "img_path": "images/9c9781eeaafb772cc2e0c3e6403d04ad2122425790950273f62aeca104ebbc22.jpg",
633
+ "image_caption": [
634
+ "Figure 3: Learning curve for DCRNN and DCRNN without diffusion convolution. Removing diffusion convolution results in much higher validation error. Moreover, DCRNN with bidirectional random walk achieves the lowest validation error. "
635
+ ],
636
+ "image_footnote": [],
637
+ "bbox": [
638
+ 202,
639
+ 108,
640
+ 465,
641
+ 267
642
+ ],
643
+ "page_idx": 5
644
+ },
645
+ {
646
+ "type": "image",
647
+ "img_path": "images/f13335bea7036c2e54e7045e8a2a27506d7cd7cdc37e77bb6c60c3ccbc6d61da.jpg",
648
+ "image_caption": [
649
+ "Figure 4: Effects of K and the number of units in each layer of DCRNN. K corresponds to the reception field width of the filter, and the number of units corresponds to the number of filters. "
650
+ ],
651
+ "image_footnote": [],
652
+ "bbox": [
653
+ 529,
654
+ 119,
655
+ 790,
656
+ 280
657
+ ],
658
+ "page_idx": 5
659
+ },
660
+ {
661
+ "type": "text",
662
+ "text": "",
663
+ "bbox": [
664
+ 174,
665
+ 398,
666
+ 825,
667
+ 497
668
+ ],
669
+ "page_idx": 5
670
+ },
671
+ {
672
+ "type": "text",
673
+ "text": "All neural network based approaches are implemented using Tensorflow (Abadi et al., 2016), and trained using the Adam optimizer with learning rate annealing. The best hyperparameters are chosen using the Tree-structured Parzen Estimator (TPE) (Bergstra et al., 2011) on the validation dataset. Detailed parameter settings for DCRNN as well as baselines are available in Appendix E. ",
674
+ "bbox": [
675
+ 174,
676
+ 503,
677
+ 825,
678
+ 559
679
+ ],
680
+ "page_idx": 5
681
+ },
682
+ {
683
+ "type": "text",
684
+ "text": "4.2 TRAFFIC FORECASTING PERFORMANCE COMPARISON ",
685
+ "text_level": 1,
686
+ "bbox": [
687
+ 174,
688
+ 570,
689
+ 588,
690
+ 584
691
+ ],
692
+ "page_idx": 5
693
+ },
694
+ {
695
+ "type": "text",
696
+ "text": "Table 1 shows the comparison of different approaches for 15 minutes, 30 minutes and 1 hour ahead forecasting on both datasets. These methods are evaluated based on three commonly used metrics in traffic forecasting, including (1) Mean Absolute Error (MAE), (2) Mean Absolute Percentage Error (MAPE), and (3) Root Mean Squared Error (RMSE). Missing values are excluded in calculating these metrics. Detailed formulations of these metrics are provided in Appendix E.2. We observe the following phenomenon in both of these datasets. (1) RNN-based methods, including FC-LSTM and DCRNN, generally outperform other baselines which emphasizes the importance of modeling the temporal dependency. (2) DCRNN achieves the best performance regarding all the metrics for all forecasting horizons, which suggests the effectiveness of spatiotemporal dependency modeling. (3) Deep neural network based methods including FNN, FC-LSTM and DCRNN, tend to have better performance than linear baselines for long-term forecasting, e.g., 1 hour ahead. This is because the temporal dependency becomes increasingly non-linear with the growth of the horizon. Besides, as the historical average method does not depend on short-term data, its performance is invariant to the small increases in the forecasting horizon. ",
697
+ "bbox": [
698
+ 174,
699
+ 595,
700
+ 825,
701
+ 791
702
+ ],
703
+ "page_idx": 5
704
+ },
705
+ {
706
+ "type": "text",
707
+ "text": "Note that, traffic forecasting on the METR-LA (Los Angeles, which is known for its complicated traffic conditions) dataset is more challenging than that in the PEMS-BAY (Bay Area) dataset. Thus we use METR-LA as the default dataset for following experiments. ",
708
+ "bbox": [
709
+ 174,
710
+ 797,
711
+ 825,
712
+ 839
713
+ ],
714
+ "page_idx": 5
715
+ },
716
+ {
717
+ "type": "text",
718
+ "text": "4.3 EFFECT OF SPATIAL DEPENDENCY MODELING ",
719
+ "text_level": 1,
720
+ "bbox": [
721
+ 174,
722
+ 851,
723
+ 531,
724
+ 864
725
+ ],
726
+ "page_idx": 5
727
+ },
728
+ {
729
+ "type": "text",
730
+ "text": "To further investigate the effect of spatial dependency modeling, we compare DCRNN with the following variants: (1) DCRNN-NoConv, which ignores spatial dependency by replacing the transition matrices in the diffusion convolution (Equation 2) with identity matrices. This essentially means the forecasting of a sensor can be only be inferred from its own historical readings; (2) DCRNN-UniConv, which only uses the forward random walk transition matrix for diffusion convolution; Figure 3 shows the learning curves of these three models with roughly the same number of parameters. Without diffusion convolution, DCRNN-NoConv has much higher validation error. Moreover, DCRNN achieves the lowest validation error which shows the effectiveness of using bidirectional random walk. The intuition is that the bidirectional random walk gives the model the ability and flexibility to capture the influence from both the upstream and the downstream traffic. ",
731
+ "bbox": [
732
+ 176,
733
+ 868,
734
+ 825,
735
+ 924
736
+ ],
737
+ "page_idx": 5
738
+ },
739
+ {
740
+ "type": "table",
741
+ "img_path": "images/2db3218d531b3208e011889d4d952dff09e81b8d74b80510621fa522a5038481.jpg",
742
+ "table_caption": [
743
+ "Table 2: Performance comparison for DCRNN and GCRNN on the METRA-LA dataset. "
744
+ ],
745
+ "table_footnote": [],
746
+ "table_body": "<table><tr><td></td><td colspan=\"3\">15 min</td><td colspan=\"3\">30 min</td><td colspan=\"3\">1 hour</td></tr><tr><td></td><td>MAE</td><td>RMSE</td><td>MAPE</td><td>MAE</td><td>RMSE</td><td>MAPE</td><td>MAE</td><td>RMSE</td><td>MAPE</td></tr><tr><td>DCRNN</td><td>2.77</td><td>5.38</td><td>7.3%</td><td>3.15</td><td>6.45</td><td>8.8%</td><td>3.60</td><td>7.60</td><td>10.5%</td></tr><tr><td>GCRNN</td><td>2.80</td><td>5.51</td><td>7.5%</td><td>3.24</td><td>6.74</td><td>9.0%</td><td>3.81</td><td>8.16</td><td>10.9%</td></tr></table>",
747
+ "bbox": [
748
+ 225,
749
+ 127,
750
+ 772,
751
+ 189
752
+ ],
753
+ "page_idx": 6
754
+ },
755
+ {
756
+ "type": "image",
757
+ "img_path": "images/8ca14f6afd328fb45111fa2bfa69e5ec0f337d843fd8d947a11946b48c3c105c.jpg",
758
+ "image_caption": [
759
+ "Figure 5: Performance comparison for different DCRNN variants. DCRNN, with the sequence to sequence framework and scheduled sampling, achieves the lowest MAE on the validation dataset. The advantage becomes more clear with the increase of the forecasting horizon. "
760
+ ],
761
+ "image_footnote": [],
762
+ "bbox": [
763
+ 191,
764
+ 215,
765
+ 452,
766
+ 371
767
+ ],
768
+ "page_idx": 6
769
+ },
770
+ {
771
+ "type": "image",
772
+ "img_path": "images/0c77030ae0577be7bc3acfde78cd715a48811a60c489898910c4424f1232ec52.jpg",
773
+ "image_caption": [
774
+ "Figure 6: Traffic time series forecasting visualization. DCRNN generates smooth prediction and is usually better at predict the start and end of peak hours. "
775
+ ],
776
+ "image_footnote": [],
777
+ "bbox": [
778
+ 483,
779
+ 223,
780
+ 808,
781
+ 412
782
+ ],
783
+ "page_idx": 6
784
+ },
785
+ {
786
+ "type": "text",
787
+ "text": "",
788
+ "bbox": [
789
+ 174,
790
+ 521,
791
+ 825,
792
+ 606
793
+ ],
794
+ "page_idx": 6
795
+ },
796
+ {
797
+ "type": "text",
798
+ "text": "To investigate the effect of graph construction, we construct a undirected graph by setting $\\widehat { W } _ { i j } =$ $\\widehat { W } _ { j i } = \\operatorname* { m a x } ( W _ { i j } , W _ { j i } )$ , where $\\widehat { W }$ is the new symmetric weight matrix. Then we develop a variant of DCRNN denotes GCRNN, which uses the sequence to sequence learning with ChebNet graph convolution (Equation 5) with roughly the same amount of parameters. Table 2 shows the comparison between DCRNN and GCRNN in the METR-LA dataset. DCRNN consistently outperforms GCRNN. The intuition is that directed graph better captures the asymmetric correlation between traffic sensors. Figure 4 shows the effects of different parameters. $K$ roughly corresponds to the size of filters’ reception fields while the number of units corresponds to the number of filters. Larger $K$ enables the model to capture broader spatial dependency at the cost of increasing learning complexity. We observe that with the increase of $K$ , the error on the validation dataset first quickly decrease, and then slightly increase. Similar behavior is observed for varying the number of units. ",
799
+ "bbox": [
800
+ 173,
801
+ 613,
802
+ 825,
803
+ 772
804
+ ],
805
+ "page_idx": 6
806
+ },
807
+ {
808
+ "type": "text",
809
+ "text": "4.4 EFFECT OF TEMPORAL DEPENDENCY MODELING ",
810
+ "text_level": 1,
811
+ "bbox": [
812
+ 174,
813
+ 785,
814
+ 550,
815
+ 799
816
+ ],
817
+ "page_idx": 6
818
+ },
819
+ {
820
+ "type": "text",
821
+ "text": "To evaluate the effect of temporal modeling including the sequence to sequence framework as well as the scheduled sampling mechanism, we further design three variants of DCRNN: (1) DCNN: in which we concatenate the historical observations as a fixed length vector and feed it into stacked diffusion convolutional layers to predict the future time series. We train a single model for one step ahead prediction, and feed the previous prediction into the model as input to perform multiple steps ahead prediction. (2) DCRNN-SEQ: which uses the encoder-decoder sequence to sequence learning framework to perform multiple steps ahead forecasting. (3) DCRNN: similar to DCRNN-SEQ except for adding scheduled sampling. ",
822
+ "bbox": [
823
+ 174,
824
+ 811,
825
+ 825,
826
+ 924
827
+ ],
828
+ "page_idx": 6
829
+ },
830
+ {
831
+ "type": "image",
832
+ "img_path": "images/d2999efa3103b73cef388357cbb4742384fd04bd2b01b04718f2aba8b264f2ac.jpg",
833
+ "image_caption": [
834
+ "Figure 7: Visualization of learned localized filters centered at different nodes with $K = 3$ on the METR-LA dataset. The star denotes the center, and the colors represent the weights. We observe that weights are localized around the center, and diffuse alongside the road network. "
835
+ ],
836
+ "image_footnote": [],
837
+ "bbox": [
838
+ 186,
839
+ 109,
840
+ 812,
841
+ 190
842
+ ],
843
+ "page_idx": 7
844
+ },
845
+ {
846
+ "type": "text",
847
+ "text": "Figure 5 shows the comparison of those four methods with regards to MAE for different forecasting horizons. We observe that: (1) DCRNN-SEQ outperforms DCNN by a large margin which conforms the importance of modeling temporal dependency. (2) DCRNN achieves the best result, and its superiority becomes more evident with the increase of the forecasting horizon. This is mainly because the model is trained to deal with its mistakes during multiple steps ahead prediction and thus suffers less from the problem of error propagation. We also train a model that always been fed its output as input for multiple steps ahead prediction. However, its performance is much worse than all the three variants which emphasizes the importance of scheduled sampling. ",
848
+ "bbox": [
849
+ 174,
850
+ 292,
851
+ 825,
852
+ 405
853
+ ],
854
+ "page_idx": 7
855
+ },
856
+ {
857
+ "type": "text",
858
+ "text": "4.5 MODEL INTERPRETATION ",
859
+ "text_level": 1,
860
+ "bbox": [
861
+ 176,
862
+ 426,
863
+ 392,
864
+ 439
865
+ ],
866
+ "page_idx": 7
867
+ },
868
+ {
869
+ "type": "text",
870
+ "text": "To better understand the model, we visualize forecasting results as well as learned filters. Figure 6 shows the visualization of 1 hour ahead forecasting. We have the following observations: (1) DCRNN generates smooth prediction of the mean when small oscillation exists in the traffic speeds (Figure 6(a)). This reflects the robustness of the model. (2) DCRNN is more likely to accurately predict abrupt changes in the traffic speed than baseline methods (e.g., FC-LSTM). As shown in Figure 6(b), DCRNN predicts the start and the end of the peak hours. This is because DCRNN captures the spatial dependency, and is able to utilize the speed changes in neighborhood sensors for more accurate forecasting. Figure 7 visualizes examples of learned filters centered at different nodes. The star denotes the center, and colors denote the weights. We can observe that (1) weights are well localized around the center, and (2) the weights diffuse based on road network distance. More visualizations are provided in Appendix F. ",
871
+ "bbox": [
872
+ 174,
873
+ 446,
874
+ 825,
875
+ 599
876
+ ],
877
+ "page_idx": 7
878
+ },
879
+ {
880
+ "type": "text",
881
+ "text": "5 CONCLUSION ",
882
+ "text_level": 1,
883
+ "bbox": [
884
+ 176,
885
+ 623,
886
+ 318,
887
+ 638
888
+ ],
889
+ "page_idx": 7
890
+ },
891
+ {
892
+ "type": "text",
893
+ "text": "In this paper, we formulated the traffic prediction on road network as a spatiotemporal forecasting problem, and proposed the diffusion convolutional recurrent neural network that captures the spatiotemporal dependencies. Specifically, we use bidirectional graph random walk to model spatial dependency and recurrent neural network to capture the temporal dynamics. We further integrated the encoder-decoder architecture and the scheduled sampling technique to improve the performance for long-term forecasting. When evaluated on two large-scale real-world traffic datasets, our approach obtained significantly better prediction than baselines. For future work, we will investigate the following two aspects (1) applying the proposed model to other spatial-temporal forecasting tasks; (2) modeling the spatiotemporal dependency when the underlying graph structure is evolving, e.g., the K nearest neighbor graph for moving objects. ",
894
+ "bbox": [
895
+ 174,
896
+ 654,
897
+ 825,
898
+ 792
899
+ ],
900
+ "page_idx": 7
901
+ },
902
+ {
903
+ "type": "text",
904
+ "text": "ACKNOWLEDGMENTS ",
905
+ "text_level": 1,
906
+ "bbox": [
907
+ 176,
908
+ 813,
909
+ 326,
910
+ 824
911
+ ],
912
+ "page_idx": 7
913
+ },
914
+ {
915
+ "type": "text",
916
+ "text": "This research has been funded in part by NSF grants CNS-1461963, IIS-1254206, IIS-1539608, Caltrans-65A0533, the USC Integrated Media Systems Center (IMSC), and the USC METRANS Transportation Center. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of any of the sponsors such as NSF. Also, the authors would like to thank Shang-Hua Teng, Dehua Cheng and Siyang Li for helpful discussions and comments. ",
917
+ "bbox": [
918
+ 174,
919
+ 840,
920
+ 825,
921
+ 922
922
+ ],
923
+ "page_idx": 7
924
+ },
925
+ {
926
+ "type": "text",
927
+ "text": "REFERENCES ",
928
+ "text_level": 1,
929
+ "bbox": [
930
+ 174,
931
+ 102,
932
+ 287,
933
+ 118
934
+ ],
935
+ "page_idx": 8
936
+ },
937
+ {
938
+ "type": "text",
939
+ "text": "Mart´ın Abadi et al. Tensorflow: Large-scale machine learning on heterogeneous distributed systems. arXiv preprint arXiv:1603.04467, 2016. ",
940
+ "bbox": [
941
+ 171,
942
+ 126,
943
+ 825,
944
+ 155
945
+ ],
946
+ "page_idx": 8
947
+ },
948
+ {
949
+ "type": "text",
950
+ "text": "James Atwood and Don Towsley. Diffusion-convolutional neural networks. In Advances in Neural Information Processing Systems, pp. 1993–2001, 2016. ",
951
+ "bbox": [
952
+ 169,
953
+ 164,
954
+ 825,
955
+ 194
956
+ ],
957
+ "page_idx": 8
958
+ },
959
+ {
960
+ "type": "text",
961
+ "text": "Samy Bengio, Oriol Vinyals, Navdeep Jaitly, and Noam Shazeer. Scheduled sampling for sequence prediction with recurrent neural networks. In NIPS, pp. 1171–1179, 2015. ",
962
+ "bbox": [
963
+ 171,
964
+ 202,
965
+ 823,
966
+ 232
967
+ ],
968
+ "page_idx": 8
969
+ },
970
+ {
971
+ "type": "text",
972
+ "text": "James S Bergstra, Remi Bardenet, Yoshua Bengio, and Bal ´ azs K ´ egl. Algorithms for hyper-parameter ´ optimization. In Advances in Neural Information Processing Systems, pp. 2546–2554, 2011. ",
973
+ "bbox": [
974
+ 171,
975
+ 239,
976
+ 825,
977
+ 270
978
+ ],
979
+ "page_idx": 8
980
+ },
981
+ {
982
+ "type": "text",
983
+ "text": "Joan Bruna, Wojciech Zaremba, Arthur Szlam, and Yann LeCun. Spectral networks and locally connected networks on graphs. In ICLR, 2014. ",
984
+ "bbox": [
985
+ 171,
986
+ 279,
987
+ 823,
988
+ 308
989
+ ],
990
+ "page_idx": 8
991
+ },
992
+ {
993
+ "type": "text",
994
+ "text": "Pinlong Cai, Yunpeng Wang, Guangquan Lu, Peng Chen, Chuan Ding, and Jianping Sun. A spatiotemporal correlative k-nearest neighbor model for short-term traffic multistep forecasting. Transportation Research Part C: Emerging Technologies, 62:21–34, 2016. ",
995
+ "bbox": [
996
+ 174,
997
+ 316,
998
+ 825,
999
+ 361
1000
+ ],
1001
+ "page_idx": 8
1002
+ },
1003
+ {
1004
+ "type": "text",
1005
+ "text": "Ennio Cascetta. Transportation systems engineering: theory and methods, volume 49. Springer Science & Business Media, 2013. ",
1006
+ "bbox": [
1007
+ 173,
1008
+ 369,
1009
+ 823,
1010
+ 398
1011
+ ],
1012
+ "page_idx": 8
1013
+ },
1014
+ {
1015
+ "type": "text",
1016
+ "text": "Dehua Cheng, Yu Cheng, Yan Liu, Richard Peng, and Shang-Hua Teng. Efficient sampling for gaussian graphical models via spectral sparsification. In Conference on Learning Theory, pp. 364–390, 2015. ",
1017
+ "bbox": [
1018
+ 173,
1019
+ 407,
1020
+ 826,
1021
+ 450
1022
+ ],
1023
+ "page_idx": 8
1024
+ },
1025
+ {
1026
+ "type": "text",
1027
+ "text": "Xingyi Cheng, Ruiqing Zhang, Jie Zhou, and Wei Xu. Deeptransport: Learning spatial-temporal dependency for traffic condition forecasting. arXiv preprint arXiv:1709.09585, 2017. ",
1028
+ "bbox": [
1029
+ 173,
1030
+ 459,
1031
+ 825,
1032
+ 489
1033
+ ],
1034
+ "page_idx": 8
1035
+ },
1036
+ {
1037
+ "type": "text",
1038
+ "text": "Junyoung Chung, Caglar Gulcehre, KyungHyun Cho, and Yoshua Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint arXiv:1412.3555, 2014. ",
1039
+ "bbox": [
1040
+ 173,
1041
+ 497,
1042
+ 825,
1043
+ 527
1044
+ ],
1045
+ "page_idx": 8
1046
+ },
1047
+ {
1048
+ "type": "text",
1049
+ "text": "Michael Defferrard, Xavier Bresson, and Pierre Vandergheynst. Convolutional neural networks on ¨ graphs with fast localized spectral filtering. In NIPS, pp. 3837–3845, 2016. ",
1050
+ "bbox": [
1051
+ 173,
1052
+ 536,
1053
+ 823,
1054
+ 566
1055
+ ],
1056
+ "page_idx": 8
1057
+ },
1058
+ {
1059
+ "type": "text",
1060
+ "text": "Dingxiong Deng, Cyrus Shahabi, Ugur Demiryurek, Linhong Zhu, Rose Yu, and Yan Liu. Latent space model for road networks to predict time-varying traffic. In SIGKDD, pp. 1525–1534, 2016. ",
1061
+ "bbox": [
1062
+ 174,
1063
+ 574,
1064
+ 825,
1065
+ 604
1066
+ ],
1067
+ "page_idx": 8
1068
+ },
1069
+ {
1070
+ "type": "text",
1071
+ "text": "Donald R Drew. Traffic flow theory and control. Technical report, 1968. ",
1072
+ "bbox": [
1073
+ 174,
1074
+ 613,
1075
+ 648,
1076
+ 628
1077
+ ],
1078
+ "page_idx": 8
1079
+ },
1080
+ {
1081
+ "type": "text",
1082
+ "text": "Gaetano Fusco, Chiara Colombaroni, and Natalia Isaenko. Short-term speed predictions exploiting big data on large urban road networks. Transportation Research Part C: Emerging Technologies, 73:183–201, 2016. ",
1083
+ "bbox": [
1084
+ 174,
1085
+ 637,
1086
+ 826,
1087
+ 680
1088
+ ],
1089
+ "page_idx": 8
1090
+ },
1091
+ {
1092
+ "type": "text",
1093
+ "text": "Jonas Gehring, Michael Auli, David Grangier, Denis Yarats, and Yann N Dauphin. Convolutional sequence to sequence learning. In ICML, 2017. ",
1094
+ "bbox": [
1095
+ 166,
1096
+ 689,
1097
+ 825,
1098
+ 719
1099
+ ],
1100
+ "page_idx": 8
1101
+ },
1102
+ {
1103
+ "type": "text",
1104
+ "text": "Aditya Grover and Jure Leskovec. node2vec: Scalable feature learning for networks. In Proceedings of the 22nd ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 855–864. ACM, 2016. ",
1105
+ "bbox": [
1106
+ 173,
1107
+ 727,
1108
+ 826,
1109
+ 771
1110
+ ],
1111
+ "page_idx": 8
1112
+ },
1113
+ {
1114
+ "type": "text",
1115
+ "text": "James Douglas Hamilton. Time series analysis, volume 2. Princeton university press Princeton, 1994. ",
1116
+ "bbox": [
1117
+ 173,
1118
+ 780,
1119
+ 825,
1120
+ 796
1121
+ ],
1122
+ "page_idx": 8
1123
+ },
1124
+ {
1125
+ "type": "text",
1126
+ "text": "Yotam Hechtlinger, Purvasha Chakravarti, and Jining Qin. A generalization of convolutional neural networks to graph-structured data. arXiv preprint arXiv:1704.08165, 2017. ",
1127
+ "bbox": [
1128
+ 171,
1129
+ 804,
1130
+ 825,
1131
+ 834
1132
+ ],
1133
+ "page_idx": 8
1134
+ },
1135
+ {
1136
+ "type": "text",
1137
+ "text": "H. V. Jagadish, Johannes Gehrke, Alexandros Labrinidis, Yannis Papakonstantinou, Jignesh M. Patel, Raghu Ramakrishnan, and Cyrus Shahabi. Big data and its technical challenges. Commun. ACM, 57(7):86–94, July 2014. ",
1138
+ "bbox": [
1139
+ 173,
1140
+ 843,
1141
+ 826,
1142
+ 886
1143
+ ],
1144
+ "page_idx": 8
1145
+ },
1146
+ {
1147
+ "type": "text",
1148
+ "text": "Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In International Conference on Learning Representations (ICLR), 2017. ",
1149
+ "bbox": [
1150
+ 173,
1151
+ 895,
1152
+ 825,
1153
+ 924
1154
+ ],
1155
+ "page_idx": 8
1156
+ },
1157
+ {
1158
+ "type": "text",
1159
+ "text": "Nikolay Laptev, Jason Yosinski, Li Erran Li, and Slawek Smyl. Time-series extreme event forecasting with neural networks at Uber. In Int. Conf. on Machine Learning Time Series Workshop, 2017. ",
1160
+ "bbox": [
1161
+ 171,
1162
+ 103,
1163
+ 825,
1164
+ 133
1165
+ ],
1166
+ "page_idx": 9
1167
+ },
1168
+ {
1169
+ "type": "text",
1170
+ "text": "Marco Lippi, Marco Bertini, and Paolo Frasconi. Short-term traffic flow forecasting: An experimental comparison of time-series analysis and supervised learning. ITS, IEEE Transactions on, 14(2): 871–882, 2013. ",
1171
+ "bbox": [
1172
+ 173,
1173
+ 140,
1174
+ 823,
1175
+ 183
1176
+ ],
1177
+ "page_idx": 9
1178
+ },
1179
+ {
1180
+ "type": "text",
1181
+ "text": "Wei Liu, Yu Zheng, Sanjay Chawla, Jing Yuan, and Xie Xing. Discovering spatio-temporal causal interactions in traffic data streams. In SIGKDD, pp. 1010–1018. ACM, 2011. ",
1182
+ "bbox": [
1183
+ 171,
1184
+ 193,
1185
+ 825,
1186
+ 222
1187
+ ],
1188
+ "page_idx": 9
1189
+ },
1190
+ {
1191
+ "type": "text",
1192
+ "text": "Yisheng Lv, Yanjie Duan, Wenwen Kang, Zhengxi Li, and Fei-Yue Wang. Traffic flow prediction with big data: A deep learning approach. ITS, IEEE Transactions on, 16(2):865–873, 2015. ",
1193
+ "bbox": [
1194
+ 171,
1195
+ 229,
1196
+ 823,
1197
+ 260
1198
+ ],
1199
+ "page_idx": 9
1200
+ },
1201
+ {
1202
+ "type": "text",
1203
+ "text": "Xiaolei Ma, Zhuang Dai, Zhengbing He, Jihui Ma, Yong Wang, and Yunpeng Wang. Learning traffic as images: a deep convolutional neural network for large-scale transportation network speed prediction. Sensors, 17(4):818, 2017. ",
1204
+ "bbox": [
1205
+ 174,
1206
+ 267,
1207
+ 823,
1208
+ 310
1209
+ ],
1210
+ "page_idx": 9
1211
+ },
1212
+ {
1213
+ "type": "text",
1214
+ "text": "Bryan Perozzi, Rami Al-Rfou, and Steven Skiena. Deepwalk: Online learning of social representations. In Proceedings of the 20th ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 701–710. ACM, 2014. ",
1215
+ "bbox": [
1216
+ 173,
1217
+ 319,
1218
+ 826,
1219
+ 363
1220
+ ],
1221
+ "page_idx": 9
1222
+ },
1223
+ {
1224
+ "type": "text",
1225
+ "text": "Youngjoo Seo, Michael Defferrard, Pierre Vandergheynst, and Xavier Bresson. Structured sequence ¨ modeling with graph convolutional recurrent networks. arXiv preprint arXiv:1612.07659, 2016. ",
1226
+ "bbox": [
1227
+ 173,
1228
+ 371,
1229
+ 823,
1230
+ 401
1231
+ ],
1232
+ "page_idx": 9
1233
+ },
1234
+ {
1235
+ "type": "text",
1236
+ "text": "David I Shuman, Sunil K Narang, Pascal Frossard, Antonio Ortega, and Pierre Vandergheynst. The emerging field of signal processing on graphs: Extending high-dimensional data analysis to networks and other irregular domains. IEEE Signal Processing Magazine, 30(3):83–98, 2013. ",
1237
+ "bbox": [
1238
+ 174,
1239
+ 409,
1240
+ 826,
1241
+ 452
1242
+ ],
1243
+ "page_idx": 9
1244
+ },
1245
+ {
1246
+ "type": "text",
1247
+ "text": "Ilya Sutskever, Oriol Vinyals, and Quoc V Le. Sequence to sequence learning with neural networks. In NIPS, pp. 3104–3112, 2014. ",
1248
+ "bbox": [
1249
+ 174,
1250
+ 460,
1251
+ 823,
1252
+ 489
1253
+ ],
1254
+ "page_idx": 9
1255
+ },
1256
+ {
1257
+ "type": "text",
1258
+ "text": "Shang-Hua Teng et al. Scalable algorithms for data and network analysis. Foundations and Trends $\\textsuperscript { \\textregistered }$ in Theoretical Computer Science, 12(1–2):1–274, 2016. ",
1259
+ "bbox": [
1260
+ 173,
1261
+ 498,
1262
+ 823,
1263
+ 527
1264
+ ],
1265
+ "page_idx": 9
1266
+ },
1267
+ {
1268
+ "type": "text",
1269
+ "text": "Eleni I Vlahogianni, Matthew G Karlaftis, and John C Golias. Short-term traffic forecasting: Where we are and where were going. Transportation Research Part C: Emerging Technologies, 43:3–19, 2014. ",
1270
+ "bbox": [
1271
+ 173,
1272
+ 535,
1273
+ 826,
1274
+ 579
1275
+ ],
1276
+ "page_idx": 9
1277
+ },
1278
+ {
1279
+ "type": "text",
1280
+ "text": "Yuankai Wu and Huachun Tan. Short-term traffic flow forecasting with spatial-temporal correlation in a hybrid deep learning framework. arXiv preprint arXiv:1612.01022, 2016. ",
1281
+ "bbox": [
1282
+ 174,
1283
+ 587,
1284
+ 821,
1285
+ 617
1286
+ ],
1287
+ "page_idx": 9
1288
+ },
1289
+ {
1290
+ "type": "text",
1291
+ "text": "Yuanchang Xie, Kaiguang Zhao, Ying Sun, and Dawei Chen. Gaussian processes for short-term traffic volume forecasting. Transportation Research Record: Journal of the Transportation Research Board, (2165):69–78, 2010. ",
1292
+ "bbox": [
1293
+ 174,
1294
+ 625,
1295
+ 823,
1296
+ 667
1297
+ ],
1298
+ "page_idx": 9
1299
+ },
1300
+ {
1301
+ "type": "text",
1302
+ "text": "Bing Yu, Haoteng Yin, and Zhanxing Zhu. Spatio-temporal graph convolutional neural network: A deep learning framework for traffic forecasting. arXiv preprint arXiv:1709.04875, 2017a. ",
1303
+ "bbox": [
1304
+ 169,
1305
+ 676,
1306
+ 823,
1307
+ 707
1308
+ ],
1309
+ "page_idx": 9
1310
+ },
1311
+ {
1312
+ "type": "text",
1313
+ "text": "Hsiang-Fu Yu, Nikhil Rao, and Inderjit S Dhillon. Temporal regularized matrix factorization for high-dimensional time series prediction. In Advances in Neural Information Processing Systems, pp. 847–855, 2016. ",
1314
+ "bbox": [
1315
+ 173,
1316
+ 714,
1317
+ 825,
1318
+ 757
1319
+ ],
1320
+ "page_idx": 9
1321
+ },
1322
+ {
1323
+ "type": "text",
1324
+ "text": "Rose Yu, Yaguang Li, Cyrus Shahabi, Ugur Demiryurek, and Yan Liu. Deep learning: A generic approach for extreme condition traffic forecasting. In SIAM International Conference on Data Mining (SDM), 2017b. ",
1325
+ "bbox": [
1326
+ 173,
1327
+ 765,
1328
+ 825,
1329
+ 808
1330
+ ],
1331
+ "page_idx": 9
1332
+ },
1333
+ {
1334
+ "type": "text",
1335
+ "text": "Junbo Zhang, Yu Zheng, Dekang Qi, Ruiyuan Li, and Xiuwen Yi. Dnn-based prediction model for spatio-temporal data. In Proceedings of the 24th ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems, pp. 92. ACM, 2016. ",
1336
+ "bbox": [
1337
+ 173,
1338
+ 818,
1339
+ 823,
1340
+ 861
1341
+ ],
1342
+ "page_idx": 9
1343
+ },
1344
+ {
1345
+ "type": "text",
1346
+ "text": "Junbo Zhang, Yu Zheng, and Dekang Qi. Deep spatio-temporal residual networks for citywide crowd flows prediction. In AAAI, pp. 1655–1661, 2017. ",
1347
+ "bbox": [
1348
+ 176,
1349
+ 869,
1350
+ 821,
1351
+ 898
1352
+ ],
1353
+ "page_idx": 9
1354
+ },
1355
+ {
1356
+ "type": "text",
1357
+ "text": "APPENDIX ",
1358
+ "text_level": 1,
1359
+ "bbox": [
1360
+ 176,
1361
+ 103,
1362
+ 264,
1363
+ 117
1364
+ ],
1365
+ "page_idx": 10
1366
+ },
1367
+ {
1368
+ "type": "text",
1369
+ "text": "A NOTATION ",
1370
+ "bbox": [
1371
+ 174,
1372
+ 132,
1373
+ 277,
1374
+ 147
1375
+ ],
1376
+ "page_idx": 10
1377
+ },
1378
+ {
1379
+ "type": "table",
1380
+ "img_path": "images/9636ecbc2e00d30948085c95a162764de04397f4b8ee70f24ac9df4a96549c36.jpg",
1381
+ "table_caption": [
1382
+ "Table 3: Notation "
1383
+ ],
1384
+ "table_footnote": [],
1385
+ "table_body": "<table><tr><td>Name g</td><td>a graph</td></tr><tr><td>V,Ui m W,Wij, D,D1,Do L Φ,△</td><td>nodes of a graph,|V|= N and the i-th node. edges of a graph weight matrix of a graph and its entries undirected degree matrix, In-degree/out-degree matrix normalized graphLaplacian eigen-vector matrix and eigen-value matrix of L X,X∈RN×P a graph signal,and the predicted graph signal. a graph signal at time t. output of the diffusion convolutional layer.</td></tr></table>",
1386
+ "bbox": [
1387
+ 246,
1388
+ 190,
1389
+ 746,
1390
+ 376
1391
+ ],
1392
+ "page_idx": 10
1393
+ },
1394
+ {
1395
+ "type": "text",
1396
+ "text": "Table 3 summarizes the main notations used in the paper. ",
1397
+ "bbox": [
1398
+ 173,
1399
+ 391,
1400
+ 545,
1401
+ 406
1402
+ ],
1403
+ "page_idx": 10
1404
+ },
1405
+ {
1406
+ "type": "text",
1407
+ "text": "B EFFICIENT CALCULATION OF EQUATION 2 ",
1408
+ "text_level": 1,
1409
+ "bbox": [
1410
+ 174,
1411
+ 421,
1412
+ 496,
1413
+ 438
1414
+ ],
1415
+ "page_idx": 10
1416
+ },
1417
+ {
1418
+ "type": "text",
1419
+ "text": "Equation 2 can be decomposed into two parts with the same time complexity, i.e., one part with $D _ { O } ^ { - 1 } W$ and the other part with $D _ { I } ^ { - 1 } W ^ { \\boldsymbol { \\mathsf { T } } }$ . Thus we will only show the time complexity of the first part. ",
1420
+ "bbox": [
1421
+ 173,
1422
+ 448,
1423
+ 825,
1424
+ 492
1425
+ ],
1426
+ "page_idx": 10
1427
+ },
1428
+ {
1429
+ "type": "text",
1430
+ "text": "Let $T _ { k } ( { \\pmb x } ) = \\left( { \\pmb D } _ { O } ^ { - 1 } { \\pmb W } \\right) ^ { k } { \\pmb x }$ , The first part of Equation 2 can be rewritten as ",
1431
+ "bbox": [
1432
+ 176,
1433
+ 498,
1434
+ 666,
1435
+ 517
1436
+ ],
1437
+ "page_idx": 10
1438
+ },
1439
+ {
1440
+ "type": "equation",
1441
+ "img_path": "images/3241845d1db442bc992ab23c7f5c009084401da41e2774fb6120af36cde395e4.jpg",
1442
+ "text": "$$\n\\sum _ { k = 0 } ^ { K - 1 } \\theta _ { k } T _ { k } ( X _ { : , p } )\n$$",
1443
+ "text_format": "latex",
1444
+ "bbox": [
1445
+ 444,
1446
+ 523,
1447
+ 555,
1448
+ 568
1449
+ ],
1450
+ "page_idx": 10
1451
+ },
1452
+ {
1453
+ "type": "text",
1454
+ "text": "As $T _ { k + 1 } ( { \\pmb x } ) = D _ { O } ^ { - 1 } { \\pmb W } T _ { k } ( { \\pmb x } )$ and $D _ { O } ^ { - 1 } W$ is sparse, it is easy to see that Equation 4 can be calculated using ${ \\cal { O } } \\breve { ( } K )$ recursive sparse-dense matrix multiplication each with time complexity $O ( | \\mathcal { E } | )$ . Consequently, the time complexities of both Equation 2 and Equation 4 are $O ( K | \\bar { \\mathcal { E } } | )$ . For dense graph, we may use spectral sparsification (Cheng et al., 2015) to make it sparse. ",
1455
+ "bbox": [
1456
+ 173,
1457
+ 573,
1458
+ 825,
1459
+ 631
1460
+ ],
1461
+ "page_idx": 10
1462
+ },
1463
+ {
1464
+ "type": "text",
1465
+ "text": "C RELATION WITH SPECTRAL GRAPH CONVOLUTION ",
1466
+ "text_level": 1,
1467
+ "bbox": [
1468
+ 173,
1469
+ 646,
1470
+ 560,
1471
+ 661
1472
+ ],
1473
+ "page_idx": 10
1474
+ },
1475
+ {
1476
+ "type": "text",
1477
+ "text": "Proof. The spectral graph convolution utilizes the concept of normalized graph Laplacian $L =$ $D ^ { - { \\frac { 1 } { 2 } } } ( D - \\bar { W } ) D ^ { - { \\frac { 1 } { 2 } } } = \\Phi \\Lambda \\Phi ^ { \\intercal }$ . ChebNet parametrizes $f _ { \\theta }$ to be a $K$ order polynomial of $\\pmb { \\Lambda }$ , and calculates it using stable Chebyshev polynomial basis. ",
1478
+ "bbox": [
1479
+ 174,
1480
+ 672,
1481
+ 825,
1482
+ 718
1483
+ ],
1484
+ "page_idx": 10
1485
+ },
1486
+ {
1487
+ "type": "equation",
1488
+ "img_path": "images/c7e6de6cb8090a893ae334c2efc824a3b8d40a3af33d1f53d2d67df0a0dcf6f6.jpg",
1489
+ "text": "$$\n{ \\cal X } _ { : , p } \\star _ { \\mathscr G } f _ { \\theta } = \\Phi \\left( \\sum _ { k = 0 } ^ { K - 1 } \\theta _ { k } { \\bf A } ^ { k } \\right) \\Phi ^ { \\intercal } { \\cal X } _ { : , p } = \\sum _ { k = 0 } ^ { K - 1 } \\theta _ { k } { \\cal L } ^ { k } { \\pmb X } _ { : , p } = \\sum _ { k = 0 } ^ { K - 1 } \\tilde { \\theta } _ { k } T _ { k } ( { \\tilde { \\cal L } } ) { \\pmb X } _ { : , p }\n$$",
1490
+ "text_format": "latex",
1491
+ "bbox": [
1492
+ 238,
1493
+ 722,
1494
+ 759,
1495
+ 767
1496
+ ],
1497
+ "page_idx": 10
1498
+ },
1499
+ {
1500
+ "type": "text",
1501
+ "text": "where $T _ { 0 } ( x ) = 1 , T _ { 1 } ( x ) = x , T _ { k } ( x ) = x T _ { k - 1 } ( x ) - T _ { k - 2 } ( x )$ are the basis of the Cheyshev polynomial. Let $\\lambda _ { m a x }$ denote the largest eigenvalue of $\\pmb { L }$ , and $\\begin{array} { r } { \\tilde { \\pmb { L } } = \\frac { 2 } { \\lambda _ { m a x } } \\pmb { L } - \\pmb { I } } \\end{array}$ represents a rescaling of the graph Laplacian that maps the eigenvalues from $[ 0 , \\lambda _ { m a x } ]$ to $[ - 1 , 1 ]$ since Chebyshev polynomial forms an orthogonal basis in $[ - 1 , 1 ]$ . Equation 5 can be considered as a polynomial of $\\tilde { L }$ and we will show that the output of ChebNet Convolution is similar to the output of diffusion convolution up to constant scaling factor. Assume $\\lambda _ { m a x } = 2$ and ${ \\cal D } _ { I } = { \\cal D } _ { O } = { \\cal D }$ for undirected graph. ",
1502
+ "bbox": [
1503
+ 173,
1504
+ 770,
1505
+ 825,
1506
+ 863
1507
+ ],
1508
+ "page_idx": 10
1509
+ },
1510
+ {
1511
+ "type": "equation",
1512
+ "img_path": "images/36767e8f419e515fdb38a56528d15cc38fd6ae2c267dda3fefb954de01c7be98.jpg",
1513
+ "text": "$$\n\\tilde { L } = D ^ { - \\frac { 1 } { 2 } } ( D - W ) D ^ { - \\frac { 1 } { 2 } } - I = - D ^ { - \\frac { 1 } { 2 } } W D ^ { - \\frac { 1 } { 2 } } \\sim - D ^ { - 1 } W\n$$",
1514
+ "text_format": "latex",
1515
+ "bbox": [
1516
+ 285,
1517
+ 867,
1518
+ 712,
1519
+ 887
1520
+ ],
1521
+ "page_idx": 10
1522
+ },
1523
+ {
1524
+ "type": "text",
1525
+ "text": "$\\tilde { L }$ is similar to the negative random walk transition matrix, thus the output of Equation 5 is also similar to the output of Equation 2 up to constant scaling factor. □ ",
1526
+ "bbox": [
1527
+ 173,
1528
+ 895,
1529
+ 826,
1530
+ 924
1531
+ ],
1532
+ "page_idx": 10
1533
+ },
1534
+ {
1535
+ "type": "image",
1536
+ "img_path": "images/62960aa48867d2808dbc58d1790eafab631251035be24e20ae7b19ea1d9e802b.jpg",
1537
+ "image_caption": [
1538
+ "Figure 8: Sensor distribution of the METR-LA and PEMS-BAY dataset. "
1539
+ ],
1540
+ "image_footnote": [],
1541
+ "bbox": [
1542
+ 187,
1543
+ 111,
1544
+ 812,
1545
+ 304
1546
+ ],
1547
+ "page_idx": 11
1548
+ },
1549
+ {
1550
+ "type": "text",
1551
+ "text": "D MORE RELATED WORK AND DISCUSSION ",
1552
+ "bbox": [
1553
+ 174,
1554
+ 371,
1555
+ 493,
1556
+ 385
1557
+ ],
1558
+ "page_idx": 11
1559
+ },
1560
+ {
1561
+ "type": "text",
1562
+ "text": "Xie et al. (2010) introduce a Gaussian processes (GPs) based method. GPs are hard to scale to the large dataset and are generally not suitable for relatively long-term traffic prediction like 1 hour (i.e.,12 steps ahead), as the variance can be accumulated and becomes extremely large. ",
1563
+ "bbox": [
1564
+ 174,
1565
+ 401,
1566
+ 825,
1567
+ 443
1568
+ ],
1569
+ "page_idx": 11
1570
+ },
1571
+ {
1572
+ "type": "text",
1573
+ "text": "Cai et al. (2016) propose to use spatiotemporal nearest neighbor for traffic forecasting (ST-KNN). Though ST-KNN considers both the spatial and the temporal dependencies, it has the following drawbacks. As shown in Fusco et al. (2016), ST-KNN performs independent forecasting for each individual road. The prediction of a road is a weighted combination of its own historical traffic speeds. This makes it hard for ST-KNN to fully utilize information from neighbors. Besides, ST-KNN is a non-parametric approach and each road is modeled and calculated separately (Cai et al., 2016), which makes it hard to generalize to unseen situations and to scale to large datasets. Finally, in ST-KNN, all the similarities are calculated using hand-designed metrics with few learnable parameters, and this may limit its representational power. ",
1574
+ "bbox": [
1575
+ 174,
1576
+ 450,
1577
+ 825,
1578
+ 575
1579
+ ],
1580
+ "page_idx": 11
1581
+ },
1582
+ {
1583
+ "type": "text",
1584
+ "text": "Cheng et al. (2017) propose DeepTransport which models the spatial dependency by explicitly collecting certain number of upstream and downstream roads for each individual road and then conduct convolution on these roads respectively. Comparing with Cheng et al. (2017), DCRNN models the spatial dependency in a more systematic way, i.e., generalizing convolution to the traffic sensor graph based on the diffusion nature of traffic. Besides, we derive DCRNN from the property of random walk and show that the popular spectral convolution ChebNet is a special case of our method. ",
1585
+ "bbox": [
1586
+ 174,
1587
+ 582,
1588
+ 825,
1589
+ 666
1590
+ ],
1591
+ "page_idx": 11
1592
+ },
1593
+ {
1594
+ "type": "text",
1595
+ "text": "The proposed approach is also related to graph embedding techniques, e.g., Deepwalk (Perozzi et al., 2014), node2vec (Grover & Leskovec, 2016) which learn a low dimension representation for each node in the graph. DCRNN also learns a representation for each node. The learned representations capture both the spatial and the temporal dependency and at the same time are optimized with regarding to the objective, e.g., future traffic speeds. ",
1596
+ "bbox": [
1597
+ 174,
1598
+ 672,
1599
+ 825,
1600
+ 742
1601
+ ],
1602
+ "page_idx": 11
1603
+ },
1604
+ {
1605
+ "type": "text",
1606
+ "text": "E DETAILED EXPERIMENTAL SETTINGS ",
1607
+ "text_level": 1,
1608
+ "bbox": [
1609
+ 176,
1610
+ 770,
1611
+ 462,
1612
+ 784
1613
+ ],
1614
+ "page_idx": 11
1615
+ },
1616
+ {
1617
+ "type": "text",
1618
+ "text": "HA Historical Average, which models the traffic flow as a seasonal process, and uses weighted average of previous seasons as the prediction. The period used is 1 week, and the prediction is based on aggregated data from previous weeks. For example, the prediction for this Wednesday is the averaged traffic speeds from last four Wednesdays. As the historical average method does not depend on short-term data, its performance is invariant to the small increases in the forecasting horizon ",
1619
+ "bbox": [
1620
+ 174,
1621
+ 799,
1622
+ 825,
1623
+ 869
1624
+ ],
1625
+ "page_idx": 11
1626
+ },
1627
+ {
1628
+ "type": "text",
1629
+ "text": "$\\mathbf { A R I M A } _ { k a l }$ : Auto-Regressive Integrated Moving Average model with Kalman filter. The orders are (3, 0, 1), and the model is implemented using the statsmodel python package. ",
1630
+ "bbox": [
1631
+ 173,
1632
+ 895,
1633
+ 821,
1634
+ 924
1635
+ ],
1636
+ "page_idx": 11
1637
+ },
1638
+ {
1639
+ "type": "text",
1640
+ "text": "VAR Vector Auto-regressive model (Hamilton, 1994). The number of lags is set to 3, and the model is implemented using the statsmodel python package. ",
1641
+ "bbox": [
1642
+ 171,
1643
+ 103,
1644
+ 823,
1645
+ 132
1646
+ ],
1647
+ "page_idx": 12
1648
+ },
1649
+ {
1650
+ "type": "text",
1651
+ "text": "SVR Linear Support Vector Regression, the penalty term $C = 0 . 1$ , the number of historical observation is 5. ",
1652
+ "bbox": [
1653
+ 174,
1654
+ 147,
1655
+ 825,
1656
+ 176
1657
+ ],
1658
+ "page_idx": 12
1659
+ },
1660
+ {
1661
+ "type": "text",
1662
+ "text": "The following deep neural network based approaches are also included. ",
1663
+ "bbox": [
1664
+ 174,
1665
+ 183,
1666
+ 642,
1667
+ 198
1668
+ ],
1669
+ "page_idx": 12
1670
+ },
1671
+ {
1672
+ "type": "text",
1673
+ "text": "FNN Feed forward neural network with two hidden layers, each layer contains 256 units. The initial learning rate is $1 e ^ { - 3 }$ , and reduces to $\\frac { 1 } { 1 0 }$ every 20 epochs starting at the 50th epochs. In addition, for all hidden layers, dropout with ratio 0.5 and L2 weight decay $1 e ^ { - 2 }$ is used. The model is trained with batch size 64 and MAE as the loss function. Early stop is performed by monitoring the validation error. ",
1674
+ "bbox": [
1675
+ 173,
1676
+ 213,
1677
+ 825,
1678
+ 285
1679
+ ],
1680
+ "page_idx": 12
1681
+ },
1682
+ {
1683
+ "type": "text",
1684
+ "text": "FC-LSTM The Encoder-decoder framework using LSTM with peephole (Sutskever et al., 2014). Both the encoder and the decoder contain two recurrent layers. In each recurrent layer, there are 256 LSTM units, L1 weight decay is $2 e ^ { - 5 }$ , L2 weight decay $5 e ^ { - 4 }$ . The model is trained with batch size 64 and loss function MAE. The initial learning rate is 1e-4 and reduces to 110 every 10 epochs starting from the 20th epochs. Early stop is performed by monitoring the validation error. ",
1685
+ "bbox": [
1686
+ 173,
1687
+ 301,
1688
+ 825,
1689
+ 372
1690
+ ],
1691
+ "page_idx": 12
1692
+ },
1693
+ {
1694
+ "type": "text",
1695
+ "text": "DCRNN : Diffusion Convolutional Recurrent Neural Network. Both encoder and decoder contain two recurrent layers. In each recurrent layer, there are 64 units, the initial learning rate is $1 e ^ { - 2 }$ , and reduces to $\\frac { 1 } { 1 0 }$ every 10 epochs starting at the 20th epoch and early stopping on the validation dataset is used. Besides, the maximum steps of random walks, i.e., $K$ , is set to 3. For scheduled sampling, the thresholded inverse sigmoid function is used as the probability decay: ",
1696
+ "bbox": [
1697
+ 173,
1698
+ 387,
1699
+ 825,
1700
+ 458
1701
+ ],
1702
+ "page_idx": 12
1703
+ },
1704
+ {
1705
+ "type": "equation",
1706
+ "img_path": "images/45b825196d2a67adcf2ebd0f526be91721b98174762fb38adbb1d952ddbdfffb.jpg",
1707
+ "text": "$$\n\\epsilon _ { i } = \\frac { \\tau } { \\tau + \\exp \\left( i / \\tau \\right) }\n$$",
1708
+ "text_format": "latex",
1709
+ "bbox": [
1710
+ 431,
1711
+ 463,
1712
+ 566,
1713
+ 496
1714
+ ],
1715
+ "page_idx": 12
1716
+ },
1717
+ {
1718
+ "type": "text",
1719
+ "text": "where $i$ is the number of iterations while $\\tau$ are parameters to control the speed of convergence. $\\tau$ is set to 3,000 in the experiments. The implementation is available in https://github.com/ liyaguang/DCRNN. ",
1720
+ "bbox": [
1721
+ 174,
1722
+ 501,
1723
+ 826,
1724
+ 544
1725
+ ],
1726
+ "page_idx": 12
1727
+ },
1728
+ {
1729
+ "type": "text",
1730
+ "text": "E.1 DATASET ",
1731
+ "text_level": 1,
1732
+ "bbox": [
1733
+ 174,
1734
+ 559,
1735
+ 281,
1736
+ 574
1737
+ ],
1738
+ "page_idx": 12
1739
+ },
1740
+ {
1741
+ "type": "text",
1742
+ "text": "We conduct experiments on two real-world large-scale datasets: ",
1743
+ "bbox": [
1744
+ 174,
1745
+ 583,
1746
+ 589,
1747
+ 599
1748
+ ],
1749
+ "page_idx": 12
1750
+ },
1751
+ {
1752
+ "type": "text",
1753
+ "text": "• METR-LA This traffic dataset contains traffic information collected from loop detectors in the highway of Los Angeles County (Jagadish et al., 2014). We select 207 sensors and collect 4 months of data ranging from Mar 1st 2012 to Jun 30th 2012 for the experiment. The total number of observed traffic data points is 6,519,002. \nPEMS-BAY This traffic dataset is collected by California Transportation Agencies (CalTrans) Performance Measurement System (PeMS). We select 325 sensors in the Bay Area and collect 6 months of data ranging from Jan 1st 2017 to May 31th 2017 for the experiment. The total number of observed traffic data points is 16,937,179. ",
1754
+ "bbox": [
1755
+ 215,
1756
+ 614,
1757
+ 826,
1758
+ 737
1759
+ ],
1760
+ "page_idx": 12
1761
+ },
1762
+ {
1763
+ "type": "text",
1764
+ "text": "The sensor distributions of both datasets are visualized in Figure 8. ",
1765
+ "bbox": [
1766
+ 173,
1767
+ 752,
1768
+ 611,
1769
+ 767
1770
+ ],
1771
+ "page_idx": 12
1772
+ },
1773
+ {
1774
+ "type": "text",
1775
+ "text": "In both of those datasets, we aggregate traffic speed readings into 5 minutes windows, and apply Z-Score normalization. $70 \\%$ of data is used for training, $20 \\%$ are used for testing while the remaining $10 \\%$ for validation. To construct the sensor graph, we compute the pairwise road network distances between sensors and build the adjacency matrix using thresholded Gaussian kernel (Shuman et al., 2013). ",
1776
+ "bbox": [
1777
+ 174,
1778
+ 775,
1779
+ 826,
1780
+ 843
1781
+ ],
1782
+ "page_idx": 12
1783
+ },
1784
+ {
1785
+ "type": "equation",
1786
+ "img_path": "images/8ce0bbb1d47891b0f6953861d6e71a3963ed3a812ea620c080a78bad815b2927.jpg",
1787
+ "text": "$$\nW _ { i j } = \\exp \\left( - \\frac { \\mathrm { d i s t } ( v _ { i } , v _ { j } ) ^ { 2 } } { \\sigma ^ { 2 } } \\right) \\quad \\mathrm { i f ~ } \\mathrm { d i s t } ( v _ { i } , v _ { j } ) \\leq \\kappa , \\mathrm { o t h e r w i s e ~ } 0\n$$",
1788
+ "text_format": "latex",
1789
+ "bbox": [
1790
+ 287,
1791
+ 843,
1792
+ 712,
1793
+ 878
1794
+ ],
1795
+ "page_idx": 12
1796
+ },
1797
+ {
1798
+ "type": "text",
1799
+ "text": "where $W _ { i j }$ represents the edge weight between sensor $v _ { i }$ and sensor $v _ { j }$ , $\\mathrm { d i s t } ( v _ { i } , v _ { j } )$ denotes the road network distance from sensor $v _ { i }$ to sensor $v _ { j }$ . $\\sigma$ is the standard deviation of distances and $\\kappa$ is the threshold. ",
1800
+ "bbox": [
1801
+ 174,
1802
+ 882,
1803
+ 823,
1804
+ 922
1805
+ ],
1806
+ "page_idx": 12
1807
+ },
1808
+ {
1809
+ "type": "text",
1810
+ "text": "E.2 METRICS ",
1811
+ "text_level": 1,
1812
+ "bbox": [
1813
+ 174,
1814
+ 103,
1815
+ 282,
1816
+ 117
1817
+ ],
1818
+ "page_idx": 13
1819
+ },
1820
+ {
1821
+ "type": "text",
1822
+ "text": "Suppose $\\pmb { x } = x _ { 1 } , \\cdots , x _ { n }$ represents the ground truth, $\\hat { \\pmb x } = \\hat { x } _ { 1 } , \\cdots , \\hat { x } _ { n }$ represents the predicted values, and $\\Omega$ denotes the indices of observed samples, the metrics are defined as follows. ",
1823
+ "bbox": [
1824
+ 174,
1825
+ 127,
1826
+ 825,
1827
+ 156
1828
+ ],
1829
+ "page_idx": 13
1830
+ },
1831
+ {
1832
+ "type": "text",
1833
+ "text": "Root Mean Square Error (RMSE) ",
1834
+ "bbox": [
1835
+ 174,
1836
+ 162,
1837
+ 397,
1838
+ 178
1839
+ ],
1840
+ "page_idx": 13
1841
+ },
1842
+ {
1843
+ "type": "equation",
1844
+ "img_path": "images/b31b4fbbf2f5d5b002ceb5957370a0f241bbb6387c9200d9e67f229f4d593bc8.jpg",
1845
+ "text": "$$\n\\mathrm { R M S E } ( { \\pmb x } , \\hat { \\pmb x } ) = \\sqrt { \\frac { 1 } { | { \\pmb \\Omega } | } \\sum _ { i \\in \\Omega } ( x _ { i } - \\hat { x } _ { i } ) ^ { 2 } }\n$$",
1846
+ "text_format": "latex",
1847
+ "bbox": [
1848
+ 372,
1849
+ 184,
1850
+ 625,
1851
+ 227
1852
+ ],
1853
+ "page_idx": 13
1854
+ },
1855
+ {
1856
+ "type": "text",
1857
+ "text": "Mean Absolute Percentage Error (MAPE) ",
1858
+ "bbox": [
1859
+ 176,
1860
+ 239,
1861
+ 452,
1862
+ 255
1863
+ ],
1864
+ "page_idx": 13
1865
+ },
1866
+ {
1867
+ "type": "equation",
1868
+ "img_path": "images/bfefb86c341eb11a1424227e538ba83329a0706b637c1b12055054209af7be90.jpg",
1869
+ "text": "$$\n\\mathrm { M A P E } ( \\pmb { x } , \\hat { \\pmb { x } } ) = \\frac { 1 } { | \\pmb { \\Omega } | } \\sum _ { i \\in \\Omega } \\left| \\frac { x _ { i } - \\hat { x } _ { i } } { x _ { i } } \\right|\n$$",
1870
+ "text_format": "latex",
1871
+ "bbox": [
1872
+ 382,
1873
+ 261,
1874
+ 614,
1875
+ 300
1876
+ ],
1877
+ "page_idx": 13
1878
+ },
1879
+ {
1880
+ "type": "text",
1881
+ "text": "Mean Absolute Error (MAE) ",
1882
+ "bbox": [
1883
+ 174,
1884
+ 314,
1885
+ 367,
1886
+ 329
1887
+ ],
1888
+ "page_idx": 13
1889
+ },
1890
+ {
1891
+ "type": "equation",
1892
+ "img_path": "images/a9d1bff5ef2e6cf3bab1871cf66eca36db5e28e8317d626d8f38871a450db9e8.jpg",
1893
+ "text": "$$\n\\mathrm { M A E } ( { \\pmb x } , \\hat { \\pmb x } ) = \\frac { 1 } { | \\pmb { \\Omega } | } \\sum _ { i \\in \\pmb { \\Omega } } | x _ { i } - \\hat { x } _ { i } |\n$$",
1894
+ "text_format": "latex",
1895
+ "bbox": [
1896
+ 388,
1897
+ 335,
1898
+ 607,
1899
+ 372
1900
+ ],
1901
+ "page_idx": 13
1902
+ },
1903
+ {
1904
+ "type": "text",
1905
+ "text": "F MODEL VISUALIZATION ",
1906
+ "bbox": [
1907
+ 174,
1908
+ 387,
1909
+ 370,
1910
+ 401
1911
+ ],
1912
+ "page_idx": 13
1913
+ },
1914
+ {
1915
+ "type": "image",
1916
+ "img_path": "images/b2aa0dcd43a41cbf7dc306a60997a58af83cf306db959dd2637f12504f5df574.jpg",
1917
+ "image_caption": [
1918
+ "Figure 9: Sensor correlations between the center sensor and its neighborhoods for different forecasting horizons. The correlations are estimated using regularized VAR. We observe that the correlations are localized and closer neighborhoods usually have larger relevance, and the magnitude of correlation quickly decay with the increase of distance which is consistent with the diffusion process on the graph. "
1919
+ ],
1920
+ "image_footnote": [],
1921
+ "bbox": [
1922
+ 303,
1923
+ 417,
1924
+ 692,
1925
+ 618
1926
+ ],
1927
+ "page_idx": 13
1928
+ },
1929
+ {
1930
+ "type": "image",
1931
+ "img_path": "images/31bdbfa746c2cd8ce1cc9ecbcfe3cd80f190ce51206ec301436e295f4a5a4e04.jpg",
1932
+ "image_caption": [
1933
+ "Figure 10: Traffic time series forecasting visualization. "
1934
+ ],
1935
+ "image_footnote": [],
1936
+ "bbox": [
1937
+ 235,
1938
+ 92,
1939
+ 751,
1940
+ 950
1941
+ ],
1942
+ "page_idx": 14
1943
+ },
1944
+ {
1945
+ "type": "image",
1946
+ "img_path": "images/7a6dba74782b6e903be82f579ad03fc305e95eb3093473263a5a95fc641af710.jpg",
1947
+ "image_caption": [
1948
+ "Figure 11: Traffic time series forecasting visualization. "
1949
+ ],
1950
+ "image_footnote": [],
1951
+ "bbox": [
1952
+ 241,
1953
+ 93,
1954
+ 754,
1955
+ 954
1956
+ ],
1957
+ "page_idx": 15
1958
+ }
1959
+ ]
parse/train/SJiHXGWAZ/SJiHXGWAZ_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJiHXGWAZ/SJiHXGWAZ_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SyevYxHtDB/SyevYxHtDB.md ADDED
@@ -0,0 +1,369 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # PREDICTION POISONING: TOWARDS DEFENSES AGAINST DNN MODEL STEALING ATTACKS
2
+
3
+ Tribhuvanesh Orekondy1, Bernt Schiele1, Mario Fritz2
4
+
5
+ 1 Max Planck Institute for Informatics
6
+ 2 CISPA Helmholtz Center for Information Security
7
+ Saarland Informatics Campus, Germany
8
+ {orekondy, schiele}@mpi-inf.mpg.de, fritz@cispa.saarland
9
+
10
+ # ABSTRACT
11
+
12
+ High-performance Deep Neural Networks (DNNs) are increasingly deployed in many real-world applications e.g., cloud prediction APIs. Recent advances in model functionality stealing attacks via black-box access (i.e., inputs in, predictions out) threaten the business model of such applications, which require a lot of time, money, and effort to develop. Existing defenses take a passive role against stealing attacks, such as by truncating predicted information. We find such passive defenses ineffective against DNN stealing attacks. In this paper, we propose the first defense which actively perturbs predictions targeted at poisoning the training objective of the attacker. We find our defense effective across a wide range of challenging datasets and DNN model stealing attacks, and additionally outperforms existing defenses. Our defense is the first that can withstand highly accurate model stealing attacks for tens of thousands of queries, amplifying the attacker’s error rate up to a factor of $8 5 \times$ with minimal impact on the utility for benign users.
13
+
14
+ # 1 INTRODUCTION
15
+
16
+ Effectiveness of state-of-the-art DNN models at a variety of predictive tasks has encouraged their usage in a variety of real-world applications e.g., home assistants, autonomous vehicles, commercial cloud APIs. Models in such applications are valuable intellectual property of their creators, as developing them for commercial use is a product of intense labour and monetary effort. Hence, it is vital to preemptively identify and control threats from an adversarial lens focused at such models. In this work we address model stealing, which involves an adversary attempting to counterfeit the functionality of a target victim ML model by exploiting black-box access (query inputs in, posterior predictions out).
17
+
18
+ Stealing attacks dates back to Lowd & Meek (2005), who addressed reverse-engineering linear spam classification models. Recent literature predominantly focus on DNNs (specifically CNN image classifiers), and are shown to be highly effective (Tramer et al., 2016) on complex models (Orekondy \` et al., 2019), even without knowledge of the victim’s architecture (Papernot et al., 2017b) nor the training data distribution. The attacks have also been shown to be highly effective at replicating pay-per-query image prediction APIs, for as little as $\$ 30$ (Orekondy et al., 2019).
19
+
20
+ Defending against stealing attacks however has received little attention and is lacking. Existing defense strategies aim to either detect stealing query patterns (Juuti et al., 2019), or degrade quality of predicted posterior via perturbation. Since detection makes strong assumptions on the attacker’s query distribution (e.g., small $L _ { 2 }$ distances between successive queries), our focus is on the more popular perturbation-based defenses. A common theme among such defenses is accuracypreserving posterior perturbation: the posterior distribution is manipulated while retaining the top-1 label. For instance, rounding decimals (Tramer et al., 2016), revealing only high-confidence predic- \` tions (Orekondy et al., 2019), and introducing ambiguity at the tail end of the posterior distribution (Lee et al., 2018). Such strategies benefit from preserving the accuracy metric of the defender. However, in line with previous works (Tramer et al., 2016; Orekondy et al., 2019; Lee et al., 2018), we \` find models can be effectively stolen using just the top-1 predicted label returned by the black-box. Specifically, in many cases we observe ${ < } 1 \%$ difference between attacks that use the full range of posteriors (blue line in Fig. 1) to train stolen models and the top-1 label (orange line) alone. In this paper, we work towards effective defenses (red line in Fig. 1) against DNN stealing attacks with minimal impact to defender’s accuracy.
21
+
22
+ The main insight to our approach is that unlike a benign user, a model stealing attacker additionally uses the predictions to train a replica model. By introducing controlled perturbations to predictions, our approach targets poisoning the training objective (see Fig. 2). Our approach allows for a utility-preserving defense, as well as trading-off a marginal utility cost to significantly degrade attacker’s performance. As a practical benefit, the defense involves a single hyperparameter (perturbation utility budget) and can be used with minimal overhead to any classification model without retraining or modifications.
23
+
24
+ We rigorously evaluate our approach by defending six victim models, against four recent and effective DNN stealing attack strategies (Papernot et al., 2017b; Juuti et al., 2019; Orekondy et al., 2019). Our defense consistently mitigates all stealing attacks and further shows improvements over multiple baselines. In particular, we find our defenses degrades the attacker’s query sample efficiency by 1-2 orders of magnitude. Our approach significantly reduces the attacker’s performance (e.g., $30 \%$ reduction on MNIST and 13- $28 \%$ on CUB200) at a marginal cost $( 1 - 2 \% )$ to defender’s test accuracy. Furthermore, our approach can achieve the same level of mitigation as baseline defenses, but by introducing significantly lesser perturbation.
25
+
26
+ ![](images/bff97c754b1d4700fefabc6824e8d22acec35a2800990729045a6beb9463423c.jpg)
27
+ Figure 1: We find existing defenses (orange line) ineffective against recent attacks. Our defense (red line) in contrast significantly mitigates the attacks.
28
+
29
+ Contributions. (i) We propose the first utility-constrained defense against DNN model stealing attacks; (ii) We present the first active defense which poisons the attacker’s training objective by introducing bounded perturbations; and (iii) Through extensive experiments, we find our approach consistently mitigate various attacks and additionally outperform baselines.
30
+
31
+ ![](images/7cb8f869085e7ca9b774c9b54e00d567678b3bca65d41bb38c3727bb68920ca2.jpg)
32
+ Figure 2: We perturb posterior predictions $\tilde { \pmb { y } } = \pmb { y } + \pmb { \delta }$ , with an objective of poisoning the adversary’s gradient signal.
33
+
34
+ # 2 RELATED LITERATURE
35
+
36
+ Model stealing attacks (also referred to as ‘extraction’ or ‘reverse-engineering’) in literature aim to infer hyperparameters (Oh et al., 2018; Wang & Gong, 2018), recover exact parameters (Lowd & Meek, 2005; Tramer et al., 2016; Milli et al., 2018), or extract the functionality (Correia-Silva et al., \` 2018; Orekondy et al., 2019) of a target black-box ML model. In some cases, the extracted model information is optionally used to perform evasion attacks (Lowd & Meek, 2005; Nelson et al., 2010; Papernot et al., 2017b). The focus of our work is model functionality stealing, where the attacker’s yardstick is test-set accuracy of the stolen model. Initial works on stealing simple linear models (Lowd & Meek, 2005) have been recently succeeded by attacks shown to be effective on complex CNNs (Papernot et al., 2017b; Correia-Silva et al., 2018; Orekondy et al., 2019) (see Appendix B for an exhaustive list). In this work, we works towards defenses targeting the latter line of DNN model stealing attacks.
37
+
38
+ Since ML models are often deployed in untrusted environments, a long line of work exists on guaranteeing certain (often orthogonal) properties to safeguard against malicious users. The properties include security (e.g., robustness towards adversarial evasion attacks (Biggio et al., 2013; Goodfellow et al., 2014; Madry et al., 2018)) and integrity (e.g., running in untrusted environments (Tramer & Boneh, 2019)). To prevent leakage of private attributes (e.g., identities) specific to training data in the resulting ML model, differential privacy (DP) methods (Dwork et al., 2014) introduce randomization during training (Abadi et al., 2016; Papernot et al., 2017a). In contrast, our defense objective is to provide confidentiality and protect the functionality (intellectual property) of the ML model against illicit duplication.
39
+
40
+ Model stealing defenses are limited. Existing works (which is primarily in multiclass classification settings) aim to either detect stealing attacks (Juuti et al., 2019; Kesarwani et al., 2018; Nelson et al., 2009; Zheng et al., 2019) or perturb the posterior prediction. We focus on the latter since detection involves making strong assumptions on adversarial query patterns. Perturbation-based defenses are predominantly non-randomized and accuracy-preserving (i.e., top-1 label is unchanged). Approaches include revealing probabilities only of confident classes (Orekondy et al., 2019), rounding probabilities (Tramer et al., 2016), or introducing ambiguity in posteriors (Lee et al., 2018). None \` of the existing defenses claim to mitigate model stealing, but rather they only marginally delay the attack by increasing the number of queries. Our work focuses on presenting an effective defense, significantly decreasing the attacker’s query sample efficiency within a principled utility-constrained framework.
41
+
42
+ # 3 PRELIMINARIES
43
+
44
+ Model Functionality Stealing. Model stealing attacks are cast as an interaction between two parties: a victim/defender $V$ (‘teacher’ model) and an attacker $A$ (‘student’ model). The only means of communication between the parties are via black-box queries: attacker queries inputs $\textbf { \em x } \in ~ \mathcal { X }$ and defender returns a posterior probability distribution $\dot { \pmb { y } } \in \Delta ^ { K } = P ( \pmb { y } | \pmb { x } ) = \dot { F _ { V } } ( \pmb { x } )$ , where $\Delta ^ { K } = \{ \pmb { y } \subseteq 0 , \mathbf { 1 } ^ { T } \pmb { y } = \overset { \cdot } { 1 } \}$ is the probability simplex over $K$ classes (we use $K$ instead of $K - 1$ for notational convenience). The attack occurs in two (sometimes overlapping) phases: (i) querying: the attacker uses the black-box as an oracle labeler on a set of inputs to construct a ‘transfer set’ of input-prediction pairs $\mathcal { D } ^ { \mathrm { t r a n s f e r } } = \{ ( \pmb { x } _ { i } , \pmb { y } _ { i } ) \} _ { i = 1 } ^ { B }$ ; and (ii) training: the attacker trains a model $F _ { A }$ to minimize the empirical risk on $\mathcal { D } ^ { \mathrm { t r a n s f e r } }$ . The end-goal of the attacker is to maximize accuracy on a held-out test-set (considered the same as that of the victim for evaluation purposes).
45
+
46
+ Knowledge-limited Attacker. In model stealing, attackers justifiably lack complete knowledge of the victim model $F _ { V }$ . Of specific interest are the model architecture and the input data distribution to train the victim model $P _ { V } ( X )$ that are not known to the attacker. Since prior work (Hinton et al., 2015; Papernot et al., 2016; Orekondy et al., 2019) indicates functionality largely transfers across architecture choices, we now focus on the query data used by the attacker. Existing attacks can be broadly categorized based on inputs $\{ x \sim P _ { A } ( X ) \}$ used to query the black-box: (a) independent distribution: (Tramer et al., 2016; Correia-Silva et al., 2018; Orekondy et al., 2019) samples inputs \` from some distribution (e.g., ImageNet for images, uniform noise) independent to input data used to train the victim model; and (b) synthetic set: (Papernot et al., 2017b; Juuti et al., 2019) augment a limited set of seed data by adaptively querying perturbations (e.g., using FGSM) of existing inputs. We address both attack categories in our paper.
47
+
48
+ Defense Objectives. We perturb predictions in a controlled setting: $\tilde { \pmb { y } } = F _ { V } ^ { \delta } ( \pmb { x } ) = \pmb { y } + \delta$ s.t. $\tilde { y } , y \in \Delta ^ { K }$ . The defender has two (seemingly conflicting) objectives: (i) utility: such that perturbed predictions remain useful to a benign user. We consider two utility measures: (a) $\mathsf { A c c } ( \dot { F } _ { V } ^ { \delta } , \mathcal { D } ^ { \mathrm { t e s t } } )$ : accuracy of defended model on test examples; and (b) $\mathrm { d i s t } ( { \pmb y } , \tilde { \pmb y } ) = | | { \pmb y } - \tilde { \pmb y } | | _ { p } = \epsilon$ to measure perturbation. (ii) non-replicability: to reduce the test accuracy of an attacker (denoted as $\mathsf { A c c } ( F _ { A } , \mathcal { D } ^ { \mathrm { t e s t } } ) )$ who exploits the predictions to train a replica $F _ { A }$ on $\mathcal { D } ^ { \mathrm { t r a n s f e r } }$ . For consistency, we evaluate both the defender’s and attacker’s stolen model accuracies on the same set of test examples $\mathcal { D } ^ { \mathrm { t e s t } }$ .
49
+
50
+ Defender’s Assumptions. We closely mimic an assumption-free scenario similar to existing perturbation-based defenses. The scenario entails the knowledge-limited defender: (a) unaware whether a query is malicious or benign; (b) lacking prior knowledge of the strategy used by an attacker; and (c) perturbing each prediction independently (hence circumventing Sybil attacks). For added rigor, we also study attacker’s countermeasures to our defense in Section 5.
51
+
52
+ # 4 APPROACH: MAXIMIZING ANGULAR DEVIATION BETWEEN GRADIENTS
53
+
54
+ Motivation: Targeting First-order Approximations. We identify that the attacker eventually optimizes parameters of a stolen model $F ( \cdot ; w )$ (we drop the subscript $\cdot _ { A }$ for readability) to minimize the loss on training examples $\{ ( \pmb { x } _ { i } , \tilde { \pmb { y } } _ { i } ) \}$ . Common to a majority of optimization algorithms is estimating the first-order approximation of the empirical loss, by computing the gradient of the loss
55
+
56
+ w.r.t. the model parameters ${ \pmb w } \in \mathbb { R } ^ { D }$ :
57
+
58
+ $$
59
+ \pmb { u } = - \nabla _ { \pmb { w } } L ( F ( \pmb { x } ; \pmb { w } ) , \pmb { y } )
60
+ $$
61
+
62
+ Maximizing Angular Deviation (MAD). The core idea of our approach is to perturb the posterior probabilities $\textbf { { y } }$ which results in an adversarial gradient signal that maximally deviates (see Fig. 2) from the original gradient (Eq. 1). More formally, we add targeted noise to the posteriors which results in a gradient direction:
63
+
64
+ $$
65
+ \pmb { a } = - \nabla _ { \pmb { w } } L ( F ( \pmb { x } ; \pmb { w } ) , \tilde { \pmb { y } } )
66
+ $$
67
+
68
+ to maximize the angular deviation between the original and the poisoned gradient signals:
69
+
70
+ $$
71
+ \operatorname* { m a x } _ { \mathbf { a } } \ 2 ( 1 - \cos \angle ( \mathbf { a } , \boldsymbol { u } ) ) = \operatorname* { m a x } _ { \hat { \mathbf { a } } } \ | | \hat { \boldsymbol { a } } - \hat { \boldsymbol { u } } | | _ { 2 } ^ { 2 } \qquad \quad ( \hat { \boldsymbol { a } } = \boldsymbol { a } / | | \boldsymbol { a } | | _ { 2 } , \hat { \boldsymbol { u } } = \boldsymbol { u } / | | \boldsymbol { u } | | _ { 2 } )
72
+ $$
73
+
74
+ Given that the attacker model is trained to match the posterior predictions, such as by minimizing the cross-entropy loss $\begin{array} { r } { L ( \pmb { y } , \tilde { \pmb { y } } ) = - \sum _ { k } \tilde { y } _ { k } \log y _ { k } } \end{array}$ we rewrite Equation (2) as:
75
+
76
+ $$
77
+ a = - \nabla _ { w } L ( F ( x ; w ) , \tilde { y } ) = \nabla _ { w } \sum _ { k } \tilde { y } _ { k } \log F ( x ; w ) _ { k } = \sum _ { k } \tilde { y } _ { k } \nabla _ { w } \log F ( x ; w ) _ { k } = G ^ { T } \tilde { y } _ { k } \log F ( x ; w ) _ { k } .
78
+ $$
79
+
80
+ where $G \in \mathbb { R } ^ { K \times D }$ represents the Jacobian over log-likelihood predictions $F ( \pmb { x } ; \pmb { w } )$ over $K$ classes w.r.t. parameters ${ \pmb w } \in \mathbb { R } ^ { D }$ . By similarly rewriting Equation (1), substituting them in Equation (3) and including the constraints, we arrive at our poisoning objective (Eq. 4-7) of our approach which we refer to as MAD. We can optionally enforce preserving accuracy of poisoned prediction via constraint (8), which will be discussed shortly.
81
+
82
+ $$
83
+ \begin{array} { r l r } { \underset { \tilde { y } } { \operatorname* { m a x } } } & { \left\| \frac { \boldsymbol { G } ^ { T } \tilde { \boldsymbol { y } } } { | | \boldsymbol { G } ^ { T } \tilde { \boldsymbol { y } } | | _ { 2 } } - \frac { \boldsymbol { G } ^ { T } \boldsymbol { y } } { | | \boldsymbol { G } ^ { T } \boldsymbol { y } | | _ { 2 } } \right\| _ { 2 } ^ { 2 } } \\ { \mathrm { w h e r e } } & { \boldsymbol { G } = \nabla _ { w } \log \boldsymbol { F } ( \boldsymbol { x } ; \boldsymbol { w } ) } & { ( \boldsymbol { G } \in \mathbb { R } ^ { K \times D } ) } \\ { \mathrm { s . t } } & { \boldsymbol { \tilde { y } } \in \Delta ^ { K } } & { ( \mathrm { S i m p l e x ~ c o n s t r a i n t } ) } \\ & { \mathrm { d i s t } ( \boldsymbol { y } , \boldsymbol { \tilde { y } } ) \le \epsilon } & { ( \mathrm { U i l i t y ~ c o n s t r a i n t } ) } \\ & { \mathrm { ~ a r g ~ } _ { k } } & { \mathrm { ~ ( F o r ~ v a r i a n t ~ } \mathsf { M A D - a r g m a x } ) } \end{array}
84
+ $$
85
+
86
+ The above presents a challenge of black-box optimization problem for the defense since the defender justifiably lacks access to the attacker model $F$ (Eq. 5). Apart from addressing this challenge in the next few paragraphs, we also discuss (a) solving a non-standard and non-convex constrained maximization objective; and (b) preserving accuracy of predictions via constraint (8).
87
+
88
+ Estimating $G$ . Since we lack access to adversary’s model $F$ , we estimate the jacobian ${ \pmb G } =$ $\nabla _ { \boldsymbol { w } } \log F _ { \mathrm { s u r } } ( \boldsymbol { x } ; \boldsymbol { w } )$ (Eq. 5) per input query $_ { \textbf { \em x } }$ using a surrogate model $F _ { \mathrm { s u r } }$ . We empirically determined (details in Appendix E.1) choice of architecture of $F _ { \mathrm { s u r } }$ robust to choices of adversary’s architecture $F$ . However, the initialization of $F _ { \mathrm { s u r } }$ plays a crucial role, with best results on a fixed randomly initialized model. We conjecture this occurs due to surrogate models with a high loss provide better gradient signals to guide the defender.
89
+
90
+ Heuristic Solver. Gradient-based strategies to optimize objective (Eq. 4) often leads to poor local maxima. This is in part due to the objective increasing in all directions around point $\textbf { { y } }$ (assuming $G$ is full-rank), making optimization sensitive to initialization. Consequently, we resort to a heuristic to solve for $\tilde { y }$ . Our approach is motivated by Hoffman (1981), who show that the maximum of a convex function over a compact convex set occurs at the extreme points of the set. Hence, our two-step solver: (i) searches for a maximizer $\boldsymbol { y } ^ { * }$ for (4) by iterating over the $K$ extremes ${ \bf { \nabla } } _ { \bf { { y } } _ { k } }$ (where $y _ { k } { = } 1 \rangle$ ) of the probability simplex $\Delta ^ { K }$ ; and (ii) then computes a perturbed posterior $\tilde { y }$ as a linear interpolation of the original posteriors $\textbf { { y } }$ and the maximizer $\pmb { y } ^ { * } \colon \bar { \pmb { y } } = ( 1 - \bar { \alpha } ) \pmb { y } + \alpha \pmb { y } ^ { * }$ , where $\alpha$ is selected such that the utility constraint (Eq. 7) is satisfied. We further elaborate on the solver and present a pseudocode in Appendix C.
91
+
92
+ Variant: MAD-argmax. Within our defense formulation, we encode an additional constraint (Eq. 8) to preserve the accuracy of perturbed predictions. MAD-argmax variant helps us perform accuracy-preserving perturbations similar to prior work. But in contrast, the perturbations are constrained (Eq. 7) and are specifically introduced to maximize the MAD objective. We enforce the accuracy-preserving constraint in our solver by iterating over extremes of intersection of sets Eq.(6) and (8): $\begin{array} { r } { \dot { \Delta { \phi } } _ { k } ^ { K } = \{ { \pmb y } ^ { \top } { } \subseteq 0 , { \bf 1 } ^ { T } { \pmb y } = 1 , y _ { k } \geq y _ { j } , k \} \not = j \} \subseteq \breve { \Delta } ^ { K } . } \end{array}$ .
93
+
94
+ # 5 EXPERIMENTAL RESULTS
95
+
96
+ # 5.1 EXPERIMENTAL SETUP
97
+
98
+ Victim Models and Datasets. We set up six victim models (see column ${ } ^ { \bullet } F _ { V }$ ’ in Table 1), each model trained on a popular image classification dataset. All models are trained using SGD $\mathrm { L R } =$ 0.1) with momentum (0.5) for 30 (LeNet) or 100 epochs (VGG16), with a LR decay of 0.1 performed every 50 epochs. We train and evaluate each victim model on their respective train and test sets.
99
+
100
+ Attack Strategies. We hope to broadly address all DNN model stealing strategies during our defense evaluation. To achieve this, we consider attacks that vary in query data distributions (independent and synthetic; see Section 3) and strategies (random and adaptive). Specifically, in our experiments we use the following attack models: (i) Jacobian-based Data Augmentation ‘JBDA’ (Papernot et al., 2017b);
101
+
102
+ Table 1: Victim models and Accuracies. All accuracies are w.r.t undefended victim model.
103
+
104
+ <table><tr><td>Fv</td><td>Acc(Fv)</td><td colspan="4">Acc(FA)</td></tr><tr><td></td><td></td><td>jbda</td><td>jbself</td><td>jbtop3</td><td>k.off</td></tr><tr><td>MNIST (LeNet)</td><td>99.4</td><td>89.2</td><td>89.4</td><td>87.3</td><td>99.1</td></tr><tr><td>FashionMNIST(LeNet)</td><td>92.0</td><td>38.7</td><td>45.8</td><td>68.7</td><td>69.2</td></tr><tr><td>CIFAR10 (VGG16)</td><td>92.0</td><td>28.6</td><td>20.7</td><td>73.8</td><td>78.7</td></tr><tr><td>CIFAR100 (VGG16)</td><td>72.2</td><td>5.3</td><td>2.9</td><td>39.2</td><td>51.9</td></tr><tr><td>CUB200 (VGG16)</td><td>80.4</td><td>6.8</td><td>3.9</td><td>21.5</td><td>65.1</td></tr><tr><td>Caltech256 (VGG16)</td><td>80.0</td><td>12.5</td><td>16.0</td><td>29.5</td><td>74.6</td></tr></table>
105
+
106
+ (ii,iii) ‘JB-self’ and ‘JB-top3’ (Juuti et al., 2019); and (iv) Knockoff Nets ‘knockoff’ (Orekondy et al., 2019); We follow the default configurations of the attacks where possible. A recap and implementation details of the attack models are available in Appendix D.
107
+
108
+ In all attack strategies, the adversary trains a model $F _ { A }$ to minimize the cross-entropy loss on a transfer set $( \mathcal { D } ^ { \mathrm { t r a n s f e r } } = \{ ( \pmb { x } _ { i } , \tilde { \pmb { y } } _ { i } ) \} _ { i = 1 } ^ { B } )$ obtained by using the victim model $F _ { V }$ to pseudo-label inputs $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { i } }$ (sampled or adaptively synthesized). By default, we use $B { = } 5 0 \mathrm { K }$ queries, which achieves reasonable performance for all attacks and additionally makes defense evaluation tractable. The size of the resulting transfer set $\scriptstyle B = 5 0 \mathrm { K }$ examples) is comparable (e.g., $1 \times$ for CIFAR10/100, $2 . 1 \times$ for Caltech256) to size of victim’s training set. In line with prior work (Papernot et al., 2016; Orekondy et al., 2019), we too find (Section 5.2.3) attack and defense performances are unaffected by choice of architectures, and hence use the victim architecture for the stolen model $F _ { A }$ . Due to the complex parameterization of VGG-16 $( 1 0 0 \mathbf { M } + )$ , we initialize the weights from a pretrained TinyImageNet or ImageNet model (except for the last FC layer, which is trained from scratch). All stolen models are trained using SGD $\scriptstyle \mathrm { ( L R = 0 . 1 }$ ) with momentum (0.5) for 30 epochs (LeNet) and 100 epochs (VGG16). We find choices of attacker’s architecture and optimization does not undermine the defense (discussed in Section 5.2.3).
109
+
110
+ Effectiveness of Attacks. We evaluate accuracy of resulting stolen models from the attack strategies as-is on the victim’s test set, thereby allowing for a fair head-to-head comparison with the victim model (additional details in Appendix A and D). The stolen model test accuracies, along with undefended victim model $F _ { V }$ accuracies are reported in Table 1. We observe for all six victim models, using just 50K black-box queries, attacks are able to significantly extract victim’s functionality e.g., ${ > } 8 7 \%$ on MNIST. We find the knockoff attack to be the strongest, exhibiting reasonable performance even on complex victim models e.g., $7 4 . 6 \%$ ${ \mathsf { 0 . 9 3 } } { \times } \mathsf { A c c } ( F _ { V } ) )$ on Caltech256.
111
+
112
+ How Good are Existing Defenses? Most existing defenses in literature (Tramer et al., 2016; \` Orekondy et al., 2019; Lee et al., 2018) perform some form of information truncation on the posterior probabilities e.g., rounding, returning top- $k$ labels; all strategies preserve the rank of the most confident label. We now evaluate model stealing attacks on the extreme end of information truncation, wherein the defender returns just the top-1 ‘argmax’ label. This strategy illustrates a rough lower bound on the strength of the attacker when using existing defenses. Specific to knockoff, we observe the attacker is minimally impacted on simpler datasets (e.g., $0 . 2 \%$ accuracy drop on CIFAR10; see Fig. A5 in Appendix). While this has a larger impact on more complex datasets involving numerous classes (e.g., a maximum of $2 3 . 4 \%$ drop observed on CUB200), the strategy also introduces a significant perturbation $( L _ { 1 } { = } 1 { \pm } 0 . 5 )$ to the posteriors. The results suggest existing defenses, which largely the top-1 label, are largely ineffective at mitigating model stealing attacks.
113
+
114
+ Defenses: Evaluation. We evaluate all defenses on a non-replicability vs. utility curve at various operating points $\epsilon$ of the defense. We furthermore evaluate the defenses for a large query budget (50K). We use as non-replicability the accuracy of the stolen model on held-out test data $\mathcal { D } ^ { \mathrm { t e s t } }$ .
115
+
116
+ ![](images/91902f56490f283742cc7262836c7485569b2f806b9fd672b6ec55533ca1969d.jpg)
117
+ Figure 3: Attackers vs. Our Defense. Curves are obtained by varying degree of perturbation $\epsilon$ (Eq. 7) in our defense. $\uparrow$ denotes higher numbers are better and $\downarrow$ , lower numbers are better. Non-replicability objective is presented on the $x -$ -axis and utility on the $y$ -axis.
118
+
119
+ We use two utility metrics: (a) accuracy: test-accuracy of the defended model producing perturbed predictions on $\mathcal { D } ^ { \mathrm { t e s t } }$ ; and (b) perturbation magnitude $\epsilon$ : measured as $L _ { 1 }$ distance $| | \pmb { y } - \tilde { \pmb { y } } | | _ { 1 }$ .
120
+
121
+ Defense: Baselines. We compare our approaches against three methods: (i) reverse-sigmoid (Lee et al., 2018): which softens the posterior distribution and introduces ambiguity among nonargmax probabilities. For this method, we evaluate non-replicability and utility metrics for the defense operating at various choices of their hyperparameter $\bar { \boldsymbol { \beta } } \in [ 0 , 1 ]$ , while keeping their datasetspecific hyperparameter $\gamma$ fixed (MNIST: 0.2, FashionMNIST: 0.4, CIFAR10: 0.1, rest: 0.2). (ii) random noise: For controlled random-noise, we add uniform random noise $\delta _ { z }$ on the logit prediction scores $\tilde { z } = z + \delta _ { z }$ , where $\begin{array} { r } { z = \log ( \frac { y } { 1 - y } ) } \end{array}$ ), enforce utility by projecting $\delta _ { z }$ to an $\epsilon _ { z }$ -ball (Duchi et al., 2008), and renormalize probabilities $\begin{array} { r } { \tilde { y } = \frac { 1 } { 1 + e ^ { - \tilde { z } } } } \end{array}$ 11+e−z˜ . (iii) dp-sgd: while our method and previous two baselines perturbs predictions, we also compare against introducing randomization to victim model parameters by training with the DP-SGD algorithm (Abadi et al., 2016). DP is a popular technique to protect the model against training data inference attacks. This baseline allows us to verify whether the same protection extends to model functionality.
122
+
123
+ # 5.2 RESULTS
124
+
125
+ In the follow sections, we demonstrate the effectiveness of our defense rigorously evaluated across a wide range of complex datasets, attack models, defense baselines, query, and utility budgets. For readability, we first evaluate the defense against attack models, proceed to comparing the defense against strong baselines and then provide an analysis of the defense.
126
+
127
+ # 5.2.1 MAD DEFENSE VS. ATTACKS
128
+
129
+ Figure 3 presents evaluation of our defenses MAD (Eq. 4-7) and MAD-argmax (Eq. 4-8) against the four attack models. To successfully mitigate attacks as a defender, we want the defense curves (colored solid lines with operating points denoted by thin crosses) to move away from undefended accuracies (denoted by circular discs, where $\scriptstyle \epsilon = 0 . 0$ ) to ideal defense performances (cyan cross, where $\mathsf { A c c } ( \mathsf { D e f } . )$ is unchanged and $\mathsf { A c c } ( \mathsf { A t t } . )$ is chance-level).
130
+
131
+ We observe from Figure 3 that by employing an identical defense across all datasets and attacks, the effectiveness of the attacker can be greatly reduced. Across all models, we find MAD provides reasonable operating points (above the diagonal), where defender achieves significantly higher test accuracies compared to the attacker. For instance, on MNIST, for ${ < } 1 \%$ drop in defender’s accuracy, our defense simultaneously reduces accuracy of the jbtop3 attacker by $52 \%$ $8 7 . 3 \% \to 3 5 . 7 \% )$ and knockoff by $29 \%$ $9 9 . 1 \% 6 9 . 8 \%$ ). We find similar promising results even on high-dimensional complex datasets e.g., on CUB200, a $23 \%$ $6 5 . 1 \% 4 1 . 9 \%$ ) performance drop of knockoff for $2 \%$ drop in defender’s test performance. Our results indicate effective defenses are achievable, where the defender can trade-off a marginal utility cost to drastically impede the attacker.
132
+
133
+ # 5.2.2 MAD DEFENSE VS. BASELINE DEFENSES
134
+
135
+ We now study how our approach compares to baseline defenses, by evaluating the defenses against the knockoff attack (which resulted in the strongest attack in our experiments). From Figure 4, we observe:
136
+
137
+ ![](images/1d2ec43c3846141fb8b809ed815df6405eafd30d5faf23ad174841aaccc16b44.jpg)
138
+ Figure 4: Knockoff attack vs. Ours $^ +$ Baseline Defenses (best seen magnified). Non-replicability is presented on the $x$ -axis. On $_ y$ -axis, we present two utility measures: (a) top: Utility $= L _ { 1 }$ distance (b) bottom: Utility $=$ Defender’s accuracy. Region above the diagonal indicates instances where defender outperforms the attacker.
139
+
140
+ ![](images/0870ed4a1d860ee9030cadd9e6e6bebfb275032ad733501dad3a5b9c6d49c025.jpg)
141
+ Figure 5: Attacker argmax. Follow-up to Figure 4b (CIFAR10), but with attacker using only the argmax label.
142
+
143
+ ![](images/1e4ed37a96023b47935fd50b2b4ad45e9c890c037f8d35f43163e188853ebcbd.jpg)
144
+ Figure 6: Histogram of Angular Deviations. Presented for MAD attack on CIFAR10 with various choices of $\epsilon$ .
145
+
146
+ ![](images/77d45239807b214d6e4752bb3dfc61dc7e8cf93fdf014052bc588c4d45b83eba.jpg)
147
+ Figure 7: Test loss. Visualized during training. Colours and lines correspond to $\epsilon$ values in Fig. 6.
148
+
149
+ (i) Utility objective $\mathbf { \Phi } = L _ { 1 }$ distance (Fig. 4a): Although random-noise and reverse-sigmoid reduce attacker’s accuracy, the strategies in most cases involves larger perturbations. In contrast, MAD and MAD-argmax provides similar non-replicability (i.e., $\mathsf { A c c } ( \mathsf { A t t . } ) )$ with significantly lesser perturbation, especially at lower magnitudes. For instance, on MNIST (first column), MAD $( L _ { 1 } = 0 . 9 5 )$ ) reduces the accuracy of the attacker to under $80 \%$ with $0 . 6 3 \times$ the perturbation as that of reversesigmoid and random-noise $( L _ { 1 } \approx 1 . 5 )$ .
150
+
151
+ (ii) Utility objective $=$ argmax-preserving (Fig. 4b): By setting a hard constraint on retaining the label of the predictions, we find the accuracy-preserving defenses MAD-argmax and reverse-sigmoid successfully reduce the performance of the attacker by at least $20 \%$ across all datasets. In most cases, we find MAD-argmax in addition achieves this objective by introducing lesser distortion to the predictions compared to reverse-sigmoid. For instance, in Fig. 4a, we find MAD-argmax consistently reduce the attacker accuracy to the same amount at lesser $L _ { 1 }$ distances. In reversesigmoid, we attribute the large $L _ { 1 }$ perturbations to a shift in posteriors towards a uniform distribution e.g., mean entropy of perturbed predictions is $3 . 0 2 \pm 0 . 1 6$ (max-entropy $= 3 . 3 2 )$ at $L _ { 1 } { = } 1 . 0$ for MNIST; in contrast, MAD-argmax displays a mean entropy of $1 . 7 9 \pm 0 . 1 1$ . However, common to accuracy-preserving strategies is a pitfall that the top-1 label is retained. In Figure 5 (see overlapping red and yellow cross-marks), we present the results of training the attacker using only the top-1 label. In line with previous discussions, we find that the attacker is able to significantly recover the original performance of the stolen model for accuracy-preserving defenses MAD-argmax and reverse-sigmoid.
152
+
153
+ (iii) Non-replicability vs. utility trade-off (Fig. 4b): We now compare our defense MAD (blue lines) with baselines (rand-noise and $\mathtt { d p \mathrm { - s g d ) } }$ which trade-off utility to mitigate model stealing. Our results indicate MAD offers a better defense (lower attacker accuracies for similar defender accuracies). For instance, to reduce the attacker’s accuracy to ${ < } 7 0 \%$ , while the defender’s accuracy significantly degrades using dp-sgd $( 3 9 \% )$ and rand-noise $( 5 6 . 4 \% )$ , MAD involves a marginal decrease of $1 \%$ .
154
+
155
+ ![](images/5446cf701717e6223542aa63f0e7a86ef717ea541222b0c763898d51347ed44d.jpg)
156
+ Figure 8: MAD Ablation experiments. Utility $=$ (left) $L _ { 1 }$ distance (right) defender test accuracy.
157
+
158
+ ![](images/29eeb46cfec4e89f9b656b9fba6d6e761c3a9f3b84c5207b05b216b883c097f8.jpg)
159
+ Figure 9: Subverting the Defense.
160
+
161
+ # 5.2.3 ANALYSIS
162
+
163
+ How much angular deviation does MAD introduce? To obtain insights on the angular deviation induced between the true and the perturbed gradient, we conduct an experiment by tracking the true gradient direction (which was unknown so far) at each training step. We simulate this by training an attacker model using online SGD $\mathrm { { L R } } { = } 0 . 0 0 1$ ) over $N$ iterations using $B$ distinct images to query and a batch size of 1. At each step $t$ of training, the attacker queries a randomly sampled input $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { t } }$ to the defender model and backpropogates the loss resulting from $\tilde { \mathbf { y } } _ { t }$ . In this particular experiment, the perturbation $\tilde { \mathbf { y } } _ { t }$ is crafted having exact knowledge of the attacker’s parameters. We evaluate the angular deviation between gradients with $\mathbf { \Pi } ( a )$ and without $( \pmb { u } )$ the perturbation.
164
+
165
+ In Figure 6, we visualize a histogram of deviations: $\begin{array} { r } { \theta = \operatorname { a r c c o s } { \frac { { \mathbf { \em u } } \cdot { \mathbf { \boldsymbol { a } } } } { | | { \mathbf { \em u } } | | | | | { \mathbf { \boldsymbol { a } } } | | } } } \end{array}$ , where $\pmb { u } = \nabla _ { \pmb { w } } L ( \pmb { w } _ { t } , \pmb { y } , \cdot )$ and $\pmb { a } = \nabla _ { \pmb { w } } L ( \pmb { w } _ { t } , \tilde { \pmb { y } } , \cdot )$ . We observe: (i) although our perturbation space is severely restricted (a low-dimensional probability simplex), we can introduce surprisingly high deviations $( 0 - 1 1 5 ^ { \circ } )$ in the high-dimensional parameter space of the VGG16; (ii) for $\epsilon$ values at reasonable operating points which preserves the defender’s accuracy within $10 \%$ of the undefended accuracy (e.g., $\epsilon \in [ 0 . 9 5$ , 0.99] for CIFAR10), we see deviations with mean $2 4 . 9 ^ { \circ }$ (yellow bars in Fig. 6). This indicates that the perturbed gradient on an average leads to a slower decrease in loss function; (iii) on the extreme end, with $\epsilon = \epsilon _ { \mathrm { m a x } } = 2$ , on an average, we find the perturbations successfully flips $( > 9 0 ^ { \circ } )$ the gradient direction leading to an increase on the test loss, as seen in Figure 7 (blue line). We also find the above observations reasonably transfers to a black-box attacker setting (see Appendix F.4), where the perturbations are crafted without knowledge of the attacker’s parameters. Overall, we find our approach considerably corrupts the attacker’s gradient direction.
166
+
167
+ Ablative Analysis. We present an ablation analysis of our approach in Figure 8. In this experiment, we compare our approach MAD and MAD-argmax to: (a) $G = I$ : We substitute the jacobian $G$ (Eq. 5) with a $K \times K$ identity matrix; and (b) $\mathbf { \boldsymbol { y } } ^ { * } =$ rand: Inner maximization term (Eq. 4) returns a random extreme of the simplex. Note that both (a) and (b) do not use the gradient information to perturb the posteriors.
168
+
169
+ From Figure 8, we observe: (i) poor performance of $\mathbf { \boldsymbol { y } } ^ { * } =$ rand, indicating random untargeted perturbations of the posterior probability is a poor strategy; (ii) $G = I$ , where the angular deviation is maximized between the posterior probability vectors is a slightly better strategy; (ii) MAD outperforms the above approaches. Consequently, we find using the gradient information (although a proxy to the attacker’s gradient signal) within our formulation (Equation 4) is crucial to providing better model stealing defenses.
170
+
171
+ Subverting the Defense. We now explore various strategies an attacker can use to circumvent the defense. To this end, we evaluate the following strategies: (a) argmax: attacker uses only the most-confident label during training; (b) arch- $^ *$ : attacker trains other choices of architectures; (c) nquery: attacker queries each image multiple times; (d) nquery+aug: same as (c), but with random cropping and horizontal flipping; and (e) opt- $^ *$ : attacker uses an adaptive LR optimizer e.g., ADAM (Kingma & Ba, 2014).
172
+
173
+ We present results over the subversion strategies in Figure 9. We find our defense robust to above strategies. Our results indicate that the best strategy for the attacker to circumvent our defense is to discard the probabilities and rely only on the most confident label to train the stolen model. In accuracy-preserving defenses (see Fig. 5), this previously resulted in an adversary entirely circumventing the defense (recovering up to $1 . 0 \times$ original performance). In contrast, we find MAD is nonetheless effective in spite of the strategy, maintaining a $9 \%$ absolute accuracy reduction in attacker’s stolen performance.
174
+
175
+ # 6 CONCLUSION
176
+
177
+ In this work, we were motivated by limited success of existing defenses against DNN model stealing attacks. While prior work is largely based on passive defenses focusing on information truncation, we proposed the first active defense strategy that attacks the adversary’s training objective. We found our approach effective in defending a variety of victim models and against various attack strategies. In particular, we find our attack can reduce the accuracy of the adversary by up to $65 \%$ , without significantly affecting defender’s accuracy.
178
+
179
+ Acknowledgement. This research was partially supported by the German Research Foundation (DFG CRC 1223). We thank Paul Swoboda and David Stutz for helpful discussions.
180
+
181
+ # REFERENCES
182
+
183
+ Martin Abadi, Andy Chu, Ian Goodfellow, H Brendan McMahan, Ilya Mironov, Kunal Talwar, and Li Zhang. Deep learning with differential privacy. In CCS, 2016.
184
+
185
+ Ibrahim M Alabdulmohsin, Xin Gao, and Xiangliang Zhang. Adding robustness to support vector machines against adversarial reverse engineering. In CIKM, 2014.
186
+
187
+ Battista Biggio, Igino Corona, Davide Maiorca, Blaine Nelson, Nedim Srndi ˇ c, Pavel Laskov, Gior- ´ gio Giacinto, and Fabio Roli. Evasion attacks against machine learning at test time. In ECML PKDD, 2013.
188
+
189
+ Varun Chandrasekaran, K Chaudhari, Irene Giacomelli, Somesh Jha, and Songbai Yan. Exploring connections between active learning and model extraction. arXiv preprint arXiv:1905.09165, 2019.
190
+
191
+ Jacson Rodrigues Correia-Silva, Rodrigo F Berriel, Claudine Badue, Alberto F de Souza, and Thiago Oliveira-Santos. Copycat cnn: Stealing knowledge by persuading confession with random nonlabeled data. In IJCNN, 2018.
192
+
193
+ John Duchi, Shai Shalev-Shwartz, Yoram Singer, and Tushar Chandra. Efficient projections onto the l 1-ball for learning in high dimensions. In ICML, 2008.
194
+
195
+ Cynthia Dwork, Aaron Roth, et al. The algorithmic foundations of differential privacy. Foundations and Trends $\textsuperscript { \textregistered }$ in Theoretical Computer Science, 2014.
196
+
197
+ Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014.
198
+
199
+ Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv:1503.02531, 2015.
200
+
201
+ Karla Leigh Hoffman. A method for globally minimizing concave functions over convex sets. Mathematical Programming, 20(1):22–32, 1981.
202
+
203
+ Matthew Jagielski, Nicholas Carlini, David Berthelot, Alex Kurakin, and Nicolas Papernot. Highfidelity extraction of neural network models. arXiv preprint arXiv:1909.01838, 2019.
204
+
205
+ Mika Juuti, Sebastian Szyller, Alexey Dmitrenko, Samuel Marchal, and N Asokan. Prada: Protecting against dnn model stealing attacks. In Euro S&P, 2019.
206
+
207
+ Manish Kesarwani, Bhaskar Mukhoty, Vijay Arya, and Sameep Mehta. Model extraction warning in mlaas paradigm. In ACSAC, 2018.
208
+
209
+ Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2014.
210
+
211
+ Taesung Lee, Benjamin Edwards, Ian Molloy, and Dong Su. Defending against model stealing attacks using deceptive perturbations. S&P Deep Learning and Security (DLS) Workshop, 2018.
212
+
213
+ Daniel Lowd and Christopher Meek. Adversarial learning. In KDD, 2005.
214
+
215
+ Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In ICLR, 2018.
216
+
217
+ Smitha Milli, Ludwig Schmidt, Anca D Dragan, and Moritz Hardt. Model reconstruction from model explanations. arXiv preprint arXiv:1807.05185, 2018.
218
+
219
+ Blaine Nelson, Marco Barreno, Fuching Jack Chi, Anthony D Joseph, Benjamin IP Rubinstein, Udam Saini, Charles Sutton, JD Tygar, and Kai Xia. Misleading learners: Co-opting your spam filter. In Machine learning in cyber trust. 2009.
220
+
221
+ Blaine Nelson, Benjamin Rubinstein, Ling Huang, Anthony Joseph, Shing-hon Lau, Steven Lee, Satish Rao, Anthony Tran, and Doug Tygar. Near-optimal evasion of convex-inducing classifiers. In AISTATS, 2010.
222
+
223
+ Seong Joon Oh, Max Augustin, Bernt Schiele, and Mario Fritz. Towards reverse-engineering blackbox neural networks. In ICLR, 2018.
224
+
225
+ Tribhuvanesh Orekondy, Bernt Schiele, and Mario Fritz. Knockoff nets: Stealing functionality of black-box models. In CVPR, 2019.
226
+
227
+ Soham Pal, Yash Gupta, Aditya Shukla, Aditya Kanade, Shirish Shevade, and Vinod Ganapathy. A framework for the extraction of deep neural networks by leveraging public data. arXiv preprint arXiv:1905.09165, 2019.
228
+
229
+ Nicolas Papernot, Patrick McDaniel, and Ian Goodfellow. Transferability in machine learning: from phenomena to black-box attacks using adversarial samples. arXiv preprint arXiv:1605.07277, 2016.
230
+
231
+ Nicolas Papernot, Mart´ın Abadi, Ulfar Erlingsson, Ian Goodfellow, and Kunal Talwar. Semisupervised knowledge transfer for deep learning from private training data. In ICLR, 2017a.
232
+
233
+ Nicolas Papernot, Patrick McDaniel, Ian Goodfellow, Somesh Jha, Z Berkay Celik, and Ananthram Swami. Practical black-box attacks against machine learning. In Asia CCS, 2017b.
234
+
235
+ Florian Tramer and Dan Boneh. Slalom: Fast, verifiable and private execution of neural networks in trusted hardware. In ICLR, 2019.
236
+
237
+ Florian Tramer, Fan Zhang, Ari Juels, Michael K Reiter, and Thomas Ristenpart. Stealing machine \` learning models via prediction apis. In USENIX Security, 2016.
238
+
239
+ Binghui Wang and Neil Zhenqiang Gong. Stealing hyperparameters in machine learning. In S&P, 2018.
240
+
241
+ Huadi Zheng, Qingqing Ye, Haibo Hu, Chengfang Fang, and Jie Shi. Bdpl: A boundary differentially private layer against machine learning model extraction attacks. In ESORICS, 2019.
242
+
243
+ # Appendix
244
+
245
+ A OVERVIEW AND NOTATION
246
+
247
+ ![](images/9c8cea255bdfab207e7ac96356b3570b150eece1642e7cede0bc1ad2d2e93433.jpg)
248
+ Figure A1: Overview of Attack, Defense, and Evaluation Metrics. We consider an attacker $A$ who exploits black-box access to defended model $F _ { V } ^ { \delta }$ to train a stolen model $F _ { A }$ . In this paper, we take the role of the defender who intends to minimize replicability (i.e., $\mathsf { A c c } ( F _ { A } , { \mathcal { D } } ^ { \mathrm { t e s t } } ) )$ , while maintaining utility of the predictions. We consider two notions of utility: (1) minimizing perturbations in predictions, measured here using $L _ { 1 }$ distance; and (2) maintaining accuracy of the defended model on test set $\mathrm { A c c } ( F _ { V } ^ { \delta } , { \mathcal { D } } ^ { \mathrm { t e s t } } )$ . Note that for a fair head-to-head comparison, we use the same held-out test set $\mathcal { D } ^ { \mathrm { t e s t } }$ to evaluate accuracies of both the defended model $F _ { V } ^ { \delta }$ and stolen model $F _ { A }$ . Similar to all prior work, we assume $\mathcal { D } ^ { \mathrm { t r a i n } }$ , $\mathcal { D } ^ { \mathrm { t e s t } }$ are drawn i.i.d from the same (victim) distribution $\mathcal { D } _ { V }$ . Notation used in the above figure is further elaborated in Table A1.
249
+
250
+ Table A1: Notation
251
+
252
+ <table><tr><td></td><td>x</td><td>Inputs (images ∈ RC×H×W)</td></tr><tr><td></td><td>y,y</td><td>Original, perturbed posterior predictions</td></tr><tr><td></td><td>AR</td><td>Probability simplex overK vertices</td></tr><tr><td>Attacker A</td><td>PA(X)</td><td>Attacker&#x27;s input data distribution</td></tr><tr><td></td><td>Dtransfer</td><td>Transfer set (= {(xi,yi)},where xi ~ PA(X),yi = Fv(xi))</td></tr><tr><td></td><td>FA</td><td>Attacker&#x27;s (stolen) model trained on Dtransfer</td></tr><tr><td>Victim/DefenderV</td><td>Pv(X)</td><td>Victim&#x27;s input data distribution</td></tr><tr><td></td><td>Dtrain</td><td>Training data (= {(xi,yi)},where xi ~ Pv(X))</td></tr><tr><td></td><td>Fv</td><td>Undefended model trained on Dtrain</td></tr><tr><td></td><td>F</td><td>Defended model</td></tr><tr><td></td><td>Dtest</td><td>Test set(= {(xi, yi)},where xi~Pv(X))</td></tr></table>
253
+
254
+ B RELATED WORK: EXTENSION
255
+
256
+ A summary of existing model stealing attacks and defenses is presented in Table A2.
257
+
258
+ # C DETAILED ALGORITHM
259
+
260
+ We present a detailed algorithm (see Algorithm 1) for our approach described in Section 4.
261
+
262
+ The algorithm roughly follows four steps:
263
+
264
+ (i) Predict $\mathbf { ( L } 2 )$ : Obtains posterior probability predictions $\textbf { { y } }$ for input $_ { \textbf { \em x } }$ using a victim model $F _ { V } ( { \pmb x } ; { \pmb w } _ { V } )$ .
265
+
266
+ Table A2: Existing DNN Attacks and Defenses. Complements the discussion in Section 2. $\mathbf { \Gamma } _ { \mathbf { C N N } } { } ^ { * }$ ’: Complex ImageNet-like CNN. $\cdot \cdot \cdot$ : Both. ‘P/D’: Perturbation/Detection. ‘AP’: Accuracy preserving (i.e., maintains top-1 labels of predictions). ‘AC’: Attacks considered.
267
+
268
+ <table><tr><td rowspan="2"></td><td rowspan="2">Black-box type</td><td colspan="2">Proposed Attack</td><td colspan="4">Proposed Defense</td></tr><tr><td>Input Query Data</td><td>Adapt.?</td><td>Strategy</td><td>P/D?</td><td>AP?</td><td>AC</td></tr><tr><td>1.Lowd &amp; Meek (2005)</td><td>Linear</td><td>Random Noise</td><td>√</td><td></td><td>-</td><td>-</td><td>-</td></tr><tr><td>2.Nelson et al. (2009)</td><td>Linear</td><td>Labeled Data</td><td>X</td><td>Rejection</td><td>D</td><td>X</td><td>1</td></tr><tr><td>3.Nelson et al. (2010)</td><td>Linear</td><td>Random Noise</td><td></td><td></td><td>-</td><td></td><td></td></tr><tr><td>4. Alabdulmohsin et al. (2014)</td><td>Linear</td><td>Random Noise</td><td>√</td><td>Ensembling</td><td>P</td><td>X</td><td>4</td></tr><tr><td>5.Tramer et al.(2016)</td><td>Linear, NN</td><td>Random Noise</td><td>+</td><td>Rounding</td><td>P</td><td>√</td><td>5</td></tr><tr><td>6.Milli et al. (2018)</td><td>Linear, NN</td><td>Random Noise</td><td></td><td>=</td><td>-</td><td></td><td>-</td></tr><tr><td>7.Kesarwani et al. (2018)</td><td>Decision Tree</td><td></td><td></td><td>Detection</td><td>D</td><td>√</td><td>5</td></tr><tr><td>8.Chandrasekaran et al. (2019)</td><td>Linear</td><td>Random Noise</td><td>√</td><td>Random Pert.</td><td>P</td><td>X</td><td>-</td></tr><tr><td>9.Papernot et al.(2017b)</td><td>CNN</td><td>Synth. Data</td><td>√</td><td></td><td>-</td><td></td><td>-</td></tr><tr><td>10. Correia-Silva et al. (2018)</td><td>CNN</td><td>Unlabeled Data</td><td>X</td><td></td><td></td><td>=</td><td></td></tr><tr><td>11.Pal et al. (2019)</td><td>CNN</td><td>Unlabeled Data</td><td>+</td><td></td><td>-</td><td>=</td><td>1</td></tr><tr><td>12. Orekondy et al. (2019)</td><td>CNN*</td><td>Unlabeled Data</td><td></td><td>Rounding, Top-k</td><td>P</td><td>√</td><td>12</td></tr><tr><td>13.Jagielski et al. (2019)</td><td>CNN*</td><td>Unlabeled Data</td><td>√</td><td></td><td>1</td><td>-</td><td>-</td></tr><tr><td>14. Juuti et al. (2019)</td><td>CNN</td><td>Synth. Data</td><td>√</td><td>Detection</td><td>D</td><td>√</td><td>9,14</td></tr><tr><td>15.Lee et al. (2018)</td><td>CNN</td><td></td><td></td><td>Reverse sigmoid</td><td>P</td><td>√</td><td>9</td></tr><tr><td>16. Ours</td><td>CNN*</td><td>=</td><td></td><td>Targeted Pert.</td><td>P</td><td>+</td><td>9,12,14</td></tr></table>
269
+
270
+ Algorithm 1: MAD Defense. To supplement approach in Section 4
271
+
272
+ (ii) Estimate Jacobian $G$ (L3): We estimate a $\mathbb { R } ^ { K \times D }$ jacobian matrix on a surrogate model $F$ . By default, we use as $F$ a randomly initialized model (more details in Appendix E.1). Each row of $G$ represents the gradient direction (in parameter space $\mathbb { R } ^ { D }$ ) over log likelihood of class $k$ .
273
+
274
+ (iii) Maximize MAD Objective (L4): We find the optimal direction $\boldsymbol { y } ^ { * }$ which maximizes the MAD objective (Eq. 3). To compute the arg max, we iterative over the $K$ extremes of the probability simplex $\Delta ^ { K }$ to find ${ \pmb y } ^ { * }$ which maximizes the objective. The extreme ${ \pmb y } _ { k }$ denotes a probability vector with $y _ { k } = 1$ .
275
+
276
+ (iv) Enforce Utility Constraint (L5-7): We enforce the perturbation utility constraint (Eq. 7) by considering a linear interpolation of ${ \pmb y } ^ { * }$ and $\textbf { { y } }$ . The resulting interpolation probability vector $\tilde { \pmb y } : = h ( \alpha ^ { * } )$ represents the utility-constrained perturbed prediction that is returned instead of $\textbf { { y } }$ .
277
+
278
+ 1 Function PerturbedPredict-MAD $( { \pmb x } )$ : Input: Input data $_ { \textbf { \em x } }$ , model to defend $F _ { V } ( \bf { \cdot } ; \mu \ v { v } _ { V } )$ , proxy attacker model $F ( \cdot ; w )$ Output: Perturbed posterior probability $\tilde { \pmb { y } } \in \Delta ^ { K }$ s.t. $\mathrm { d i s t } ( \tilde { \pmb { y } } , \pmb { y } ) \le \epsilon$
279
+ 2 ${ \pmb y } : = F _ { V } ( { \pmb x } ; { \pmb w } _ { V } )$ // Obtain $K$ -dim posteriors
280
+ 3 $\pmb { G } : = \nabla _ { \pmb { w } } \log F ( \pmb { x } ; \pmb { w } )$ // Pre-compute $\left( \mathbb { K } \texttt { x D } \right)$ ) Jacobian GT yk GT y 2
281
+ 4 y∗ := arg maxyk∈ext(∆K) ||GT yk||2 ||GT y||2
282
+ 5 Define $h ( \alpha ) = ( 1 - \alpha ) \pmb { y } + \alpha \pmb { y } ^ { \ast }$
283
+ 6 $\begin{array} { r } { \alpha ^ { * } : = \arg \operatorname* { m a x } _ { \alpha \in [ 0 , 1 ] , \mathrm { d i s t } ( \cdot ) \leq \epsilon } \ \mathrm { d i s t } ( h ( \alpha ) , \ y ^ { * } ) } \end{array}$ // Find optimal step-size via bisection, or OptStep(.) for $L _ { p }$ norms
284
+ 7 $\tilde { y } : = h ( \alpha ^ { * } )$ // Perturbed probabilities
285
+ 8 return $\tilde { y }$
286
+ 9
287
+ 10 Function OptStep(y, y∗, , p):
288
+ 11 α∗ := max n ||y−y∗||p , 1o
289
+ 12 return $\ b { \alpha } ^ { * }$
290
+
291
+ # D ATTACK MODELS: RECAP AND IMPLEMENTATION DETAILS
292
+
293
+ Jacobian Based Data Augmentation (jbda) (Papernot et al., 2017b). The motivation of the approach is to obtain a surrogate of the victim black-box classifier, with an end-goal of performing evasion attacks (Biggio et al., 2013; Goodfellow et al., 2014). We restrict discussions primarily to the first part of constructing the surrogate. To obtain the surrogate (the stolen model), the authors depend on an unlabeled ‘seed’ set, typically from the same distribution as that used to train the victim model. As a result, the attacker assumes (mild) knowledge of the input data distribution and the class-label of the victim.
294
+
295
+ The key idea behind the approach is to query perturbations of inputs, to obtain a reasonable approximation of the decision boundary of the victim model. The attack strategy involves performing the following steps in a repeated manner: (i) images from the substitute set (initially the seed) $\mathcal { D }$ is labeled by querying the victim model $F _ { V }$ as an oracle labeler; (ii) the surrogate model $F _ { A }$ is trained on the substitute dataset; (iii) the substitute set is augmented using perturbations of existing images: $\mathscr { D } _ { \rho + 1 } = \mathscr { D } _ { \rho } \cup \{ \pmb { x } + \lambda _ { \rho + 1 } \cdot \mathrm { s g n } ( J _ { F } [ F _ { A } ( \pmb { x } ) ] ) : \pmb { x } \in \mathscr { D } _ { \rho } \}$ , where $J$ is the jacobian function.
296
+
297
+ We use a seed set of: 100 (MNIST and FashionMNIST), 500 (CIFAR10, CUB200, Caltech256) and 1000 (CIFAR100). We use the default set of hyperparameters of Papernot et al. (2017b) in other respects.
298
+
299
+ Jacobian Based $\{ \mathbf { s e l f } , \mathbf { t o p } { \mathbf { - } } \mathbf { k } \}$ (jbself, jbtop3) (Juuti et al., 2019) . The authors generalize the above approach, by extending the manner in which the synthetic samples are produced. In jbself, the jacobian is calculated w.r.t to $k$ nearest classes and in jb-self, w.r.t the maximum a posterior class predicted by $F _ { A }$ .
300
+
301
+ Knockoff Nets (knockoff) (Orekondy et al., 2019) . Knockoff is a recent attack model, which demonstrated model stealing can be performed without access to seed samples. Rather, the queries to the black-box involve natural images (which can be unrelated to the training data of the victim model) sampled from a large independent data source e.g., ImageNet1K. Consequently, no knowledge of the input data distribution nor the class-label space of the victim model is required to perform model stealing. The paper proposes two strategies on how to sample images to query: random and adaptive. We use the random strategy in the paper, since adaptive resulted in marginal increases in an open-world setup (which we have).
302
+
303
+ As the independent data sources in our knockoff attacks, we use: EMNIST-Letters (when stealing MNIST victim model), EMNIST (FashionMNIST), CIFAR100 (CIFAR10), CIFAR10 (CIFAR100), ImageNet1k (CUB200, Caltech256). Overlap between query images and the training data of the victim models are purely co-incidental.
304
+
305
+ We use the code from the project’s public github repository.
306
+
307
+ Evaluating Attacks. The resulting replica model $F _ { A }$ from all the above attack strategies are evaluated on a held-out test set. We remark that the replica model is evaluated as-is, without additional finetuning or modifications. Similar to prior work, we evaluate the accuracies of $F _ { A }$ on the victim’s held-out test set. Evaluating both stolen and the victim model on the same test set allows for fair head-to-head comparison.
308
+
309
+ # E SUPPLEMENTARY ANALYSIS
310
+
311
+ In this section, we present additional analysis to supplement Section 5.2.3.
312
+
313
+ # E.1 ESTIMATING $G$
314
+
315
+ Central to our defense is estimating the jacobian matrix $\boldsymbol { G } = \nabla _ { w } \log \boldsymbol { F } ( \boldsymbol { x } ; \boldsymbol { w } )$ (Eq. 5), where $F ( \cdot ; w )$ is the attacker’s model. However, a defender with black-box attacker knowledge (where $F$ is unknown) requires determining $G$ by instead using a surrogate model $F _ { \mathrm { s u r } }$ . We determine choice of $F _ { \mathrm { s u r } }$ empirically by studying two factors: (a) architecture of $F _ { s u r }$ : choice of defender’s surrogate architecture robust to varying attacker architectures (see Fig. A2); and (b) initialization of $F _ { s u r }$ : initialization of the surrogate model parameters plays a crucial role in providing a better defense. We consider four choices of initialization: $\{$ ‘rand’, ‘early’, ‘mid’, ‘late $\}$ which exhibits approximately {chance-level $2 5 \%$ , $50 \%$ , $7 5 \% \}$ test accuracies respectively. We observe (see Fig. A3) that a randomly initialized model, which is far from convergence, provides better gradient signals in crafting perturbations.
316
+
317
+ ![](images/153ac1308928aa6c767d311403df37674d0d28f28f63d471fd8c6e311822d091.jpg)
318
+ Figure A2: Influence of attacker architecture choices on a fixed surrogate.
319
+
320
+ ![](images/9f9dfe314f17b55b6e6cd891bc699dc96d3b17b415a70a5a64a55af790a3daf0.jpg)
321
+ Figure A3: Influence of Initialization of a VGG16 Surrogate Model. ‘rand’ $=$ random initialization, (‘early’, ’mid’, ’late’) $= \sim ( 2 5 , 5 0 , 7 5 ) \%$ test accuracy of surrogate on test set.
322
+
323
+ <table><tr><td></td><td>Undefended</td><td>MAD</td></tr><tr><td>MNIST</td><td>0.88 ± 14.41</td><td>6.47 ±12.25</td></tr><tr><td>FashionMNIST</td><td>0.89 ±15.76</td><td>6.65 ± 14.16</td></tr><tr><td>CIFAR10</td><td>1.93 ±13.02</td><td>8.58 ±15.02</td></tr><tr><td>CIFAR100</td><td>2.15 ± 18.82</td><td>69.26 ± 21.4</td></tr><tr><td>CUBS200</td><td>4.45 ± 9.66</td><td>446.93 ± 23.87</td></tr><tr><td>Caltech256</td><td>4.93 ± 21.25</td><td>815.97 ± 30.3</td></tr></table>
324
+
325
+ Table A3: Run times (in ms). We report the mean and standard deviation of predictions of undefended and defended models, computed over 10K predictions.
326
+
327
+ # E.2 RUN-TIME ANALYSIS
328
+
329
+ We present the run-times of our defended and undefended models in Table A3. The reported numbers were summarized over 10K unique predictions performed on an Nvidia Tesla V100. We find our optimization procedure Eq. (4-7) for all models take under a second, with at most 0.8s in the case of Caltech256. The primary computational bottleneck of our defense implementation is estimating matrix $G \in \mathbb { R } ^ { K \times D }$ in Eq. 5, which currently requires performing $K$ (i.e., number of output classes) backward passes through the surrogate model. Consequently, we find that our inference times on Caltech256 can be further reduced to $0 . 3 \mathrm { s } \pm 0 . 0 4$ by using a more efficient surrogate architecture (e.g., ResNet-34).
330
+
331
+ # F ADDITIONAL PLOTS
332
+
333
+ # F.1 ATTACKER EVALUATION
334
+
335
+ We present evaluation of all attacks considered in the paper on an undefended model in Figure A4. Furthermore, specific to the knockoff attack, we analyze how training using only the top-1 label (instead of complete posterior information) affects the attacker in Figure A5.
336
+
337
+ # F.2 BUDGET VS. ACCURACY
338
+
339
+ We plot the budget (i.e., number of distinct black-box attack queries to the defender) vs. the test accuracy of the defender/attacker in Figure A6. The figure supplements Figure 1 and the discussion found in Section 5.2.1 of the main paper.
340
+
341
+ ![](images/968ed9b6fa6cf410d5fe914d5b8e15393feb3e9080191b93fd9d452e5563020c.jpg)
342
+ Figure A4: Evaluation of all attacks on undefended victim models.
343
+
344
+ ![](images/63bb498a5d948a35bd3a6147ae4418c96ac52a1153e64b56876efc2195d87af2.jpg)
345
+ Figure A5: Stolen model trained using knockoff strategy on complete posterior information $( y )$ and only the top-1 label of the posteriors (arg $\operatorname* { m a x } _ { k } y _ { k } ,$ ).
346
+
347
+ ![](images/a29287cb397358a8d7eb84c6b41de899159996bb2f98075dde89cadd0bd8a0ed.jpg)
348
+ Figure A6: Budget vs. Test Accuracy. Supplements Fig. 3c in the main paper.
349
+
350
+ ![](images/cbea626041732899afd7bc150fff641c88d6ec6f05c67a8fe5ad9c4fdcd2d5c3.jpg)
351
+ Figure A7: Attacker argmax. Supplements Fig. 4 in the main paper.
352
+
353
+ ![](images/814c5ebd205a8b527661505f8785c1172d914ec1f85919f5b6ecca8a93a8ced1.jpg)
354
+ Figure A8: Histogram of Angular Deviations (Black-box setting). Supplements Fig. 6 in the main paper. The test-loss during of the attacker model for each of the histograms (over multiple $\epsilon$ values) are provided in the bottom row.
355
+
356
+ # F.3 ATTACKER ARGMAX
357
+
358
+ In Figure A7, we perform the non-replicability vs. utility evaluation (complementing Fig. 5 in the main paper) under a special situation: the attacker discards the probabilities and only uses the top-1 Black-box s‘argmax’ label to train the stolen model. Relevant discussion can be found in Section 5.2.2.
359
+
360
+ # F.4 BLACK-BOX ANGULAR DEVIATIONS
361
+
362
+ In Figure A8, we provide the angular deviations obtained in a black-box setting over the course of training the attack model. We train the attacker model using the transfer set obtained by the knockoff approach (the strongest attacker in our experiments) for 50 epochs using a SGD $( \mathrm { l r } = 0 . 0 1 $ , momentum $= 0 . 5$ ) and a batch size of 64. The experiment compliments our previous discussion in Section 5.2.3 of the main paper under “How much angular deviation does MAD introduce?”. As before, we estimate the angular deviations as: $\begin{array} { r } { \theta = \operatorname { a r c c o s } { \frac { { \mathbf { \em u } } \cdot { \mathbf { \boldsymbol { a } } } } { | | { \mathbf { \boldsymbol { u } } } | | | | | { \mathbf { \boldsymbol { a } } } | | } } } \end{array}$ , where $\pmb { u } = \nabla _ { \pmb { w } } L ( \pmb { w } _ { t } , \pmb { y } , \cdot )$ and $\pmb { a } = \nabla _ { \pmb { w } } L ( \pmb { w } _ { t } , \tilde { \pmb { y } } , \cdot )$ . We observe from Figure A8: (i) the defensive angular deviations introduced by MAD to posterior predictions transfer to a black-box attacker setting, when crafting perturbations without access to the adversary’s model parameters; and (ii) although the setting introduces lower angular deviations at the extreme case of $\epsilon { = } 2 . 0$ (e.g., $1 1 4 . 7 ^ { \circ } 7 6 . 5 ^ { \circ }$ in CIFAR10), we observe the perturbation sufficient to maximize the attacker’s test loss. We find significant angular deviations introduced by our approach in a black-box setting as well.
363
+
364
+ # F.5 MAD ABLATION EXPERIMENTS
365
+
366
+ We present the ablation experiments covering all defender models in Figure A9. Relevant discussion is available in Section 5.2.3 of the main paper under “Ablative Analysis”.
367
+
368
+ ![](images/ebbb31ab9a0a9f8937895ef989636c604e4dbcd058782a781ec0012e2eba3820.jpg)
369
+ Figure A9: MAD ablation experiments. Supplements Fig. 8 in the main paper.
parse/train/SyevYxHtDB/SyevYxHtDB_content_list.json ADDED
@@ -0,0 +1,1914 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "PREDICTION POISONING: TOWARDS DEFENSES AGAINST DNN MODEL STEALING ATTACKS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 98,
9
+ 821,
10
+ 147
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Tribhuvanesh Orekondy1, Bernt Schiele1, Mario Fritz2 ",
17
+ "bbox": [
18
+ 186,
19
+ 169,
20
+ 576,
21
+ 184
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "1 Max Planck Institute for Informatics \n2 CISPA Helmholtz Center for Information Security \nSaarland Informatics Campus, Germany \n{orekondy, schiele}@mpi-inf.mpg.de, fritz@cispa.saarland ",
28
+ "bbox": [
29
+ 184,
30
+ 185,
31
+ 665,
32
+ 241
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 277,
43
+ 544,
44
+ 292
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "High-performance Deep Neural Networks (DNNs) are increasingly deployed in many real-world applications e.g., cloud prediction APIs. Recent advances in model functionality stealing attacks via black-box access (i.e., inputs in, predictions out) threaten the business model of such applications, which require a lot of time, money, and effort to develop. Existing defenses take a passive role against stealing attacks, such as by truncating predicted information. We find such passive defenses ineffective against DNN stealing attacks. In this paper, we propose the first defense which actively perturbs predictions targeted at poisoning the training objective of the attacker. We find our defense effective across a wide range of challenging datasets and DNN model stealing attacks, and additionally outperforms existing defenses. Our defense is the first that can withstand highly accurate model stealing attacks for tens of thousands of queries, amplifying the attacker’s error rate up to a factor of $8 5 \\times$ with minimal impact on the utility for benign users. ",
51
+ "bbox": [
52
+ 233,
53
+ 309,
54
+ 764,
55
+ 489
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 516,
66
+ 336,
67
+ 532
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Effectiveness of state-of-the-art DNN models at a variety of predictive tasks has encouraged their usage in a variety of real-world applications e.g., home assistants, autonomous vehicles, commercial cloud APIs. Models in such applications are valuable intellectual property of their creators, as developing them for commercial use is a product of intense labour and monetary effort. Hence, it is vital to preemptively identify and control threats from an adversarial lens focused at such models. In this work we address model stealing, which involves an adversary attempting to counterfeit the functionality of a target victim ML model by exploiting black-box access (query inputs in, posterior predictions out). ",
74
+ "bbox": [
75
+ 174,
76
+ 547,
77
+ 825,
78
+ 659
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Stealing attacks dates back to Lowd & Meek (2005), who addressed reverse-engineering linear spam classification models. Recent literature predominantly focus on DNNs (specifically CNN image classifiers), and are shown to be highly effective (Tramer et al., 2016) on complex models (Orekondy \\` et al., 2019), even without knowledge of the victim’s architecture (Papernot et al., 2017b) nor the training data distribution. The attacks have also been shown to be highly effective at replicating pay-per-query image prediction APIs, for as little as $\\$ 30$ (Orekondy et al., 2019). ",
85
+ "bbox": [
86
+ 174,
87
+ 666,
88
+ 823,
89
+ 750
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Defending against stealing attacks however has received little attention and is lacking. Existing defense strategies aim to either detect stealing query patterns (Juuti et al., 2019), or degrade quality of predicted posterior via perturbation. Since detection makes strong assumptions on the attacker’s query distribution (e.g., small $L _ { 2 }$ distances between successive queries), our focus is on the more popular perturbation-based defenses. A common theme among such defenses is accuracypreserving posterior perturbation: the posterior distribution is manipulated while retaining the top-1 label. For instance, rounding decimals (Tramer et al., 2016), revealing only high-confidence predic- \\` tions (Orekondy et al., 2019), and introducing ambiguity at the tail end of the posterior distribution (Lee et al., 2018). Such strategies benefit from preserving the accuracy metric of the defender. However, in line with previous works (Tramer et al., 2016; Orekondy et al., 2019; Lee et al., 2018), we \\` find models can be effectively stolen using just the top-1 predicted label returned by the black-box. Specifically, in many cases we observe ${ < } 1 \\%$ difference between attacks that use the full range of posteriors (blue line in Fig. 1) to train stolen models and the top-1 label (orange line) alone. In this paper, we work towards effective defenses (red line in Fig. 1) against DNN stealing attacks with minimal impact to defender’s accuracy. ",
96
+ "bbox": [
97
+ 174,
98
+ 757,
99
+ 825,
100
+ 922
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "",
107
+ "bbox": [
108
+ 176,
109
+ 103,
110
+ 820,
111
+ 146
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "The main insight to our approach is that unlike a benign user, a model stealing attacker additionally uses the predictions to train a replica model. By introducing controlled perturbations to predictions, our approach targets poisoning the training objective (see Fig. 2). Our approach allows for a utility-preserving defense, as well as trading-off a marginal utility cost to significantly degrade attacker’s performance. As a practical benefit, the defense involves a single hyperparameter (perturbation utility budget) and can be used with minimal overhead to any classification model without retraining or modifications. ",
118
+ "bbox": [
119
+ 174,
120
+ 154,
121
+ 614,
122
+ 291
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "We rigorously evaluate our approach by defending six victim models, against four recent and effective DNN stealing attack strategies (Papernot et al., 2017b; Juuti et al., 2019; Orekondy et al., 2019). Our defense consistently mitigates all stealing attacks and further shows improvements over multiple baselines. In particular, we find our defenses degrades the attacker’s query sample efficiency by 1-2 orders of magnitude. Our approach significantly reduces the attacker’s performance (e.g., $30 \\%$ reduction on MNIST and 13- $28 \\%$ on CUB200) at a marginal cost $( 1 - 2 \\% )$ to defender’s test accuracy. Furthermore, our approach can achieve the same level of mitigation as baseline defenses, but by introducing significantly lesser perturbation. ",
129
+ "bbox": [
130
+ 174,
131
+ 299,
132
+ 612,
133
+ 465
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "image",
139
+ "img_path": "images/bff97c754b1d4700fefabc6824e8d22acec35a2800990729045a6beb9463423c.jpg",
140
+ "image_caption": [
141
+ "Figure 1: We find existing defenses (orange line) ineffective against recent attacks. Our defense (red line) in contrast significantly mitigates the attacks. "
142
+ ],
143
+ "image_footnote": [],
144
+ "bbox": [
145
+ 632,
146
+ 147,
147
+ 820,
148
+ 255
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "Contributions. (i) We propose the first utility-constrained defense against DNN model stealing attacks; (ii) We present the first active defense which poisons the attacker’s training objective by introducing bounded perturbations; and (iii) Through extensive experiments, we find our approach consistently mitigate various attacks and additionally outperform baselines. ",
155
+ "bbox": [
156
+ 174,
157
+ 476,
158
+ 612,
159
+ 559
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "image",
165
+ "img_path": "images/7cb8f869085e7ca9b774c9b54e00d567678b3bca65d41bb38c3727bb68920ca2.jpg",
166
+ "image_caption": [
167
+ "Figure 2: We perturb posterior predictions $\\tilde { \\pmb { y } } = \\pmb { y } + \\pmb { \\delta }$ , with an objective of poisoning the adversary’s gradient signal. "
168
+ ],
169
+ "image_footnote": [],
170
+ "bbox": [
171
+ 627,
172
+ 340,
173
+ 821,
174
+ 486
175
+ ],
176
+ "page_idx": 1
177
+ },
178
+ {
179
+ "type": "text",
180
+ "text": "2 RELATED LITERATURE ",
181
+ "text_level": 1,
182
+ "bbox": [
183
+ 176,
184
+ 597,
185
+ 397,
186
+ 613
187
+ ],
188
+ "page_idx": 1
189
+ },
190
+ {
191
+ "type": "text",
192
+ "text": "Model stealing attacks (also referred to as ‘extraction’ or ‘reverse-engineering’) in literature aim to infer hyperparameters (Oh et al., 2018; Wang & Gong, 2018), recover exact parameters (Lowd & Meek, 2005; Tramer et al., 2016; Milli et al., 2018), or extract the functionality (Correia-Silva et al., \\` 2018; Orekondy et al., 2019) of a target black-box ML model. In some cases, the extracted model information is optionally used to perform evasion attacks (Lowd & Meek, 2005; Nelson et al., 2010; Papernot et al., 2017b). The focus of our work is model functionality stealing, where the attacker’s yardstick is test-set accuracy of the stolen model. Initial works on stealing simple linear models (Lowd & Meek, 2005) have been recently succeeded by attacks shown to be effective on complex CNNs (Papernot et al., 2017b; Correia-Silva et al., 2018; Orekondy et al., 2019) (see Appendix B for an exhaustive list). In this work, we works towards defenses targeting the latter line of DNN model stealing attacks. ",
193
+ "bbox": [
194
+ 174,
195
+ 638,
196
+ 825,
197
+ 791
198
+ ],
199
+ "page_idx": 1
200
+ },
201
+ {
202
+ "type": "text",
203
+ "text": "Since ML models are often deployed in untrusted environments, a long line of work exists on guaranteeing certain (often orthogonal) properties to safeguard against malicious users. The properties include security (e.g., robustness towards adversarial evasion attacks (Biggio et al., 2013; Goodfellow et al., 2014; Madry et al., 2018)) and integrity (e.g., running in untrusted environments (Tramer & Boneh, 2019)). To prevent leakage of private attributes (e.g., identities) specific to training data in the resulting ML model, differential privacy (DP) methods (Dwork et al., 2014) introduce randomization during training (Abadi et al., 2016; Papernot et al., 2017a). In contrast, our defense objective is to provide confidentiality and protect the functionality (intellectual property) of the ML model against illicit duplication. ",
204
+ "bbox": [
205
+ 173,
206
+ 797,
207
+ 825,
208
+ 924
209
+ ],
210
+ "page_idx": 1
211
+ },
212
+ {
213
+ "type": "text",
214
+ "text": "Model stealing defenses are limited. Existing works (which is primarily in multiclass classification settings) aim to either detect stealing attacks (Juuti et al., 2019; Kesarwani et al., 2018; Nelson et al., 2009; Zheng et al., 2019) or perturb the posterior prediction. We focus on the latter since detection involves making strong assumptions on adversarial query patterns. Perturbation-based defenses are predominantly non-randomized and accuracy-preserving (i.e., top-1 label is unchanged). Approaches include revealing probabilities only of confident classes (Orekondy et al., 2019), rounding probabilities (Tramer et al., 2016), or introducing ambiguity in posteriors (Lee et al., 2018). None \\` of the existing defenses claim to mitigate model stealing, but rather they only marginally delay the attack by increasing the number of queries. Our work focuses on presenting an effective defense, significantly decreasing the attacker’s query sample efficiency within a principled utility-constrained framework. ",
215
+ "bbox": [
216
+ 174,
217
+ 103,
218
+ 825,
219
+ 256
220
+ ],
221
+ "page_idx": 2
222
+ },
223
+ {
224
+ "type": "text",
225
+ "text": "3 PRELIMINARIES ",
226
+ "text_level": 1,
227
+ "bbox": [
228
+ 176,
229
+ 279,
230
+ 338,
231
+ 295
232
+ ],
233
+ "page_idx": 2
234
+ },
235
+ {
236
+ "type": "text",
237
+ "text": "Model Functionality Stealing. Model stealing attacks are cast as an interaction between two parties: a victim/defender $V$ (‘teacher’ model) and an attacker $A$ (‘student’ model). The only means of communication between the parties are via black-box queries: attacker queries inputs $\\textbf { \\em x } \\in ~ \\mathcal { X }$ and defender returns a posterior probability distribution $\\dot { \\pmb { y } } \\in \\Delta ^ { K } = P ( \\pmb { y } | \\pmb { x } ) = \\dot { F _ { V } } ( \\pmb { x } )$ , where $\\Delta ^ { K } = \\{ \\pmb { y } \\subseteq 0 , \\mathbf { 1 } ^ { T } \\pmb { y } = \\overset { \\cdot } { 1 } \\}$ is the probability simplex over $K$ classes (we use $K$ instead of $K - 1$ for notational convenience). The attack occurs in two (sometimes overlapping) phases: (i) querying: the attacker uses the black-box as an oracle labeler on a set of inputs to construct a ‘transfer set’ of input-prediction pairs $\\mathcal { D } ^ { \\mathrm { t r a n s f e r } } = \\{ ( \\pmb { x } _ { i } , \\pmb { y } _ { i } ) \\} _ { i = 1 } ^ { B }$ ; and (ii) training: the attacker trains a model $F _ { A }$ to minimize the empirical risk on $\\mathcal { D } ^ { \\mathrm { t r a n s f e r } }$ . The end-goal of the attacker is to maximize accuracy on a held-out test-set (considered the same as that of the victim for evaluation purposes). ",
238
+ "bbox": [
239
+ 173,
240
+ 315,
241
+ 825,
242
+ 455
243
+ ],
244
+ "page_idx": 2
245
+ },
246
+ {
247
+ "type": "text",
248
+ "text": "Knowledge-limited Attacker. In model stealing, attackers justifiably lack complete knowledge of the victim model $F _ { V }$ . Of specific interest are the model architecture and the input data distribution to train the victim model $P _ { V } ( X )$ that are not known to the attacker. Since prior work (Hinton et al., 2015; Papernot et al., 2016; Orekondy et al., 2019) indicates functionality largely transfers across architecture choices, we now focus on the query data used by the attacker. Existing attacks can be broadly categorized based on inputs $\\{ x \\sim P _ { A } ( X ) \\}$ used to query the black-box: (a) independent distribution: (Tramer et al., 2016; Correia-Silva et al., 2018; Orekondy et al., 2019) samples inputs \\` from some distribution (e.g., ImageNet for images, uniform noise) independent to input data used to train the victim model; and (b) synthetic set: (Papernot et al., 2017b; Juuti et al., 2019) augment a limited set of seed data by adaptively querying perturbations (e.g., using FGSM) of existing inputs. We address both attack categories in our paper. ",
249
+ "bbox": [
250
+ 174,
251
+ 465,
252
+ 825,
253
+ 619
254
+ ],
255
+ "page_idx": 2
256
+ },
257
+ {
258
+ "type": "text",
259
+ "text": "Defense Objectives. We perturb predictions in a controlled setting: $\\tilde { \\pmb { y } } = F _ { V } ^ { \\delta } ( \\pmb { x } ) = \\pmb { y } + \\delta$ s.t. $\\tilde { y } , y \\in \\Delta ^ { K }$ . The defender has two (seemingly conflicting) objectives: (i) utility: such that perturbed predictions remain useful to a benign user. We consider two utility measures: (a) $\\mathsf { A c c } ( \\dot { F } _ { V } ^ { \\delta } , \\mathcal { D } ^ { \\mathrm { t e s t } } )$ : accuracy of defended model on test examples; and (b) $\\mathrm { d i s t } ( { \\pmb y } , \\tilde { \\pmb y } ) = | | { \\pmb y } - \\tilde { \\pmb y } | | _ { p } = \\epsilon$ to measure perturbation. (ii) non-replicability: to reduce the test accuracy of an attacker (denoted as $\\mathsf { A c c } ( F _ { A } , \\mathcal { D } ^ { \\mathrm { t e s t } } ) )$ who exploits the predictions to train a replica $F _ { A }$ on $\\mathcal { D } ^ { \\mathrm { t r a n s f e r } }$ . For consistency, we evaluate both the defender’s and attacker’s stolen model accuracies on the same set of test examples $\\mathcal { D } ^ { \\mathrm { t e s t } }$ . ",
260
+ "bbox": [
261
+ 173,
262
+ 628,
263
+ 825,
264
+ 728
265
+ ],
266
+ "page_idx": 2
267
+ },
268
+ {
269
+ "type": "text",
270
+ "text": "Defender’s Assumptions. We closely mimic an assumption-free scenario similar to existing perturbation-based defenses. The scenario entails the knowledge-limited defender: (a) unaware whether a query is malicious or benign; (b) lacking prior knowledge of the strategy used by an attacker; and (c) perturbing each prediction independently (hence circumventing Sybil attacks). For added rigor, we also study attacker’s countermeasures to our defense in Section 5. ",
271
+ "bbox": [
272
+ 174,
273
+ 739,
274
+ 823,
275
+ 809
276
+ ],
277
+ "page_idx": 2
278
+ },
279
+ {
280
+ "type": "text",
281
+ "text": "4 APPROACH: MAXIMIZING ANGULAR DEVIATION BETWEEN GRADIENTS ",
282
+ "text_level": 1,
283
+ "bbox": [
284
+ 171,
285
+ 832,
286
+ 803,
287
+ 848
288
+ ],
289
+ "page_idx": 2
290
+ },
291
+ {
292
+ "type": "text",
293
+ "text": "Motivation: Targeting First-order Approximations. We identify that the attacker eventually optimizes parameters of a stolen model $F ( \\cdot ; w )$ (we drop the subscript $\\cdot _ { A }$ for readability) to minimize the loss on training examples $\\{ ( \\pmb { x } _ { i } , \\tilde { \\pmb { y } } _ { i } ) \\}$ . Common to a majority of optimization algorithms is estimating the first-order approximation of the empirical loss, by computing the gradient of the loss ",
294
+ "bbox": [
295
+ 174,
296
+ 867,
297
+ 823,
298
+ 924
299
+ ],
300
+ "page_idx": 2
301
+ },
302
+ {
303
+ "type": "text",
304
+ "text": "w.r.t. the model parameters ${ \\pmb w } \\in \\mathbb { R } ^ { D }$ : ",
305
+ "bbox": [
306
+ 174,
307
+ 103,
308
+ 419,
309
+ 118
310
+ ],
311
+ "page_idx": 3
312
+ },
313
+ {
314
+ "type": "equation",
315
+ "img_path": "images/b8c1a499cc7c7b654ff1e861848761cc42a8cc0c4797caee13dd30ed41ceada7.jpg",
316
+ "text": "$$\n\\pmb { u } = - \\nabla _ { \\pmb { w } } L ( F ( \\pmb { x } ; \\pmb { w } ) , \\pmb { y } )\n$$",
317
+ "text_format": "latex",
318
+ "bbox": [
319
+ 411,
320
+ 119,
321
+ 584,
322
+ 137
323
+ ],
324
+ "page_idx": 3
325
+ },
326
+ {
327
+ "type": "text",
328
+ "text": "Maximizing Angular Deviation (MAD). The core idea of our approach is to perturb the posterior probabilities $\\textbf { { y } }$ which results in an adversarial gradient signal that maximally deviates (see Fig. 2) from the original gradient (Eq. 1). More formally, we add targeted noise to the posteriors which results in a gradient direction: ",
329
+ "bbox": [
330
+ 173,
331
+ 147,
332
+ 825,
333
+ 204
334
+ ],
335
+ "page_idx": 3
336
+ },
337
+ {
338
+ "type": "equation",
339
+ "img_path": "images/8d0d150154021517cf46f26c68fe14f3dc4302f06c4166aea7d3b72675a8f6a4.jpg",
340
+ "text": "$$\n\\pmb { a } = - \\nabla _ { \\pmb { w } } L ( F ( \\pmb { x } ; \\pmb { w } ) , \\tilde { \\pmb { y } } )\n$$",
341
+ "text_format": "latex",
342
+ "bbox": [
343
+ 413,
344
+ 205,
345
+ 584,
346
+ 223
347
+ ],
348
+ "page_idx": 3
349
+ },
350
+ {
351
+ "type": "text",
352
+ "text": "to maximize the angular deviation between the original and the poisoned gradient signals: ",
353
+ "bbox": [
354
+ 171,
355
+ 223,
356
+ 763,
357
+ 238
358
+ ],
359
+ "page_idx": 3
360
+ },
361
+ {
362
+ "type": "equation",
363
+ "img_path": "images/a47127a58906d27c5c79ffabfb9e0f1c11bedac9a2dec13eb69e0a72521db96b.jpg",
364
+ "text": "$$\n\\operatorname* { m a x } _ { \\mathbf { a } } \\ 2 ( 1 - \\cos \\angle ( \\mathbf { a } , \\boldsymbol { u } ) ) = \\operatorname* { m a x } _ { \\hat { \\mathbf { a } } } \\ | | \\hat { \\boldsymbol { a } } - \\hat { \\boldsymbol { u } } | | _ { 2 } ^ { 2 } \\qquad \\quad ( \\hat { \\boldsymbol { a } } = \\boldsymbol { a } / | | \\boldsymbol { a } | | _ { 2 } , \\hat { \\boldsymbol { u } } = \\boldsymbol { u } / | | \\boldsymbol { u } | | _ { 2 } )\n$$",
365
+ "text_format": "latex",
366
+ "bbox": [
367
+ 223,
368
+ 238,
369
+ 771,
370
+ 262
371
+ ],
372
+ "page_idx": 3
373
+ },
374
+ {
375
+ "type": "text",
376
+ "text": "Given that the attacker model is trained to match the posterior predictions, such as by minimizing the cross-entropy loss $\\begin{array} { r } { L ( \\pmb { y } , \\tilde { \\pmb { y } } ) = - \\sum _ { k } \\tilde { y } _ { k } \\log y _ { k } } \\end{array}$ we rewrite Equation (2) as: ",
377
+ "bbox": [
378
+ 176,
379
+ 270,
380
+ 825,
381
+ 299
382
+ ],
383
+ "page_idx": 3
384
+ },
385
+ {
386
+ "type": "equation",
387
+ "img_path": "images/70c22af265c187c8c78fa1199909333d8f16b93afe436cf9df43a3b1caadfe53.jpg",
388
+ "text": "$$\na = - \\nabla _ { w } L ( F ( x ; w ) , \\tilde { y } ) = \\nabla _ { w } \\sum _ { k } \\tilde { y } _ { k } \\log F ( x ; w ) _ { k } = \\sum _ { k } \\tilde { y } _ { k } \\nabla _ { w } \\log F ( x ; w ) _ { k } = G ^ { T } \\tilde { y } _ { k } \\log F ( x ; w ) _ { k } .\n$$",
389
+ "text_format": "latex",
390
+ "bbox": [
391
+ 199,
392
+ 301,
393
+ 799,
394
+ 334
395
+ ],
396
+ "page_idx": 3
397
+ },
398
+ {
399
+ "type": "text",
400
+ "text": "where $G \\in \\mathbb { R } ^ { K \\times D }$ represents the Jacobian over log-likelihood predictions $F ( \\pmb { x } ; \\pmb { w } )$ over $K$ classes w.r.t. parameters ${ \\pmb w } \\in \\mathbb { R } ^ { D }$ . By similarly rewriting Equation (1), substituting them in Equation (3) and including the constraints, we arrive at our poisoning objective (Eq. 4-7) of our approach which we refer to as MAD. We can optionally enforce preserving accuracy of poisoned prediction via constraint (8), which will be discussed shortly. ",
401
+ "bbox": [
402
+ 174,
403
+ 335,
404
+ 825,
405
+ 406
406
+ ],
407
+ "page_idx": 3
408
+ },
409
+ {
410
+ "type": "equation",
411
+ "img_path": "images/e24dc23d9a327f4f00b95286eaea5880f866c88872a95236ce4a81c4bb2212ff.jpg",
412
+ "text": "$$\n\\begin{array} { r l r } { \\underset { \\tilde { y } } { \\operatorname* { m a x } } } & { \\left\\| \\frac { \\boldsymbol { G } ^ { T } \\tilde { \\boldsymbol { y } } } { | | \\boldsymbol { G } ^ { T } \\tilde { \\boldsymbol { y } } | | _ { 2 } } - \\frac { \\boldsymbol { G } ^ { T } \\boldsymbol { y } } { | | \\boldsymbol { G } ^ { T } \\boldsymbol { y } | | _ { 2 } } \\right\\| _ { 2 } ^ { 2 } } \\\\ { \\mathrm { w h e r e } } & { \\boldsymbol { G } = \\nabla _ { w } \\log \\boldsymbol { F } ( \\boldsymbol { x } ; \\boldsymbol { w } ) } & { ( \\boldsymbol { G } \\in \\mathbb { R } ^ { K \\times D } ) } \\\\ { \\mathrm { s . t } } & { \\boldsymbol { \\tilde { y } } \\in \\Delta ^ { K } } & { ( \\mathrm { S i m p l e x ~ c o n s t r a i n t } ) } \\\\ & { \\mathrm { d i s t } ( \\boldsymbol { y } , \\boldsymbol { \\tilde { y } } ) \\le \\epsilon } & { ( \\mathrm { U i l i t y ~ c o n s t r a i n t } ) } \\\\ & { \\mathrm { ~ a r g ~ } _ { k } } & { \\mathrm { ~ ( F o r ~ v a r i a n t ~ } \\mathsf { M A D - a r g m a x } ) } \\end{array}\n$$",
413
+ "text_format": "latex",
414
+ "bbox": [
415
+ 245,
416
+ 407,
417
+ 750,
418
+ 530
419
+ ],
420
+ "page_idx": 3
421
+ },
422
+ {
423
+ "type": "text",
424
+ "text": "The above presents a challenge of black-box optimization problem for the defense since the defender justifiably lacks access to the attacker model $F$ (Eq. 5). Apart from addressing this challenge in the next few paragraphs, we also discuss (a) solving a non-standard and non-convex constrained maximization objective; and (b) preserving accuracy of predictions via constraint (8). ",
425
+ "bbox": [
426
+ 176,
427
+ 530,
428
+ 823,
429
+ 587
430
+ ],
431
+ "page_idx": 3
432
+ },
433
+ {
434
+ "type": "text",
435
+ "text": "Estimating $G$ . Since we lack access to adversary’s model $F$ , we estimate the jacobian ${ \\pmb G } =$ $\\nabla _ { \\boldsymbol { w } } \\log F _ { \\mathrm { s u r } } ( \\boldsymbol { x } ; \\boldsymbol { w } )$ (Eq. 5) per input query $_ { \\textbf { \\em x } }$ using a surrogate model $F _ { \\mathrm { s u r } }$ . We empirically determined (details in Appendix E.1) choice of architecture of $F _ { \\mathrm { s u r } }$ robust to choices of adversary’s architecture $F$ . However, the initialization of $F _ { \\mathrm { s u r } }$ plays a crucial role, with best results on a fixed randomly initialized model. We conjecture this occurs due to surrogate models with a high loss provide better gradient signals to guide the defender. ",
436
+ "bbox": [
437
+ 173,
438
+ 595,
439
+ 825,
440
+ 680
441
+ ],
442
+ "page_idx": 3
443
+ },
444
+ {
445
+ "type": "text",
446
+ "text": "Heuristic Solver. Gradient-based strategies to optimize objective (Eq. 4) often leads to poor local maxima. This is in part due to the objective increasing in all directions around point $\\textbf { { y } }$ (assuming $G$ is full-rank), making optimization sensitive to initialization. Consequently, we resort to a heuristic to solve for $\\tilde { y }$ . Our approach is motivated by Hoffman (1981), who show that the maximum of a convex function over a compact convex set occurs at the extreme points of the set. Hence, our two-step solver: (i) searches for a maximizer $\\boldsymbol { y } ^ { * }$ for (4) by iterating over the $K$ extremes ${ \\bf { \\nabla } } _ { \\bf { { y } } _ { k } }$ (where $y _ { k } { = } 1 \\rangle$ ) of the probability simplex $\\Delta ^ { K }$ ; and (ii) then computes a perturbed posterior $\\tilde { y }$ as a linear interpolation of the original posteriors $\\textbf { { y } }$ and the maximizer $\\pmb { y } ^ { * } \\colon \\bar { \\pmb { y } } = ( 1 - \\bar { \\alpha } ) \\pmb { y } + \\alpha \\pmb { y } ^ { * }$ , where $\\alpha$ is selected such that the utility constraint (Eq. 7) is satisfied. We further elaborate on the solver and present a pseudocode in Appendix C. ",
447
+ "bbox": [
448
+ 173,
449
+ 690,
450
+ 825,
451
+ 830
452
+ ],
453
+ "page_idx": 3
454
+ },
455
+ {
456
+ "type": "text",
457
+ "text": "Variant: MAD-argmax. Within our defense formulation, we encode an additional constraint (Eq. 8) to preserve the accuracy of perturbed predictions. MAD-argmax variant helps us perform accuracy-preserving perturbations similar to prior work. But in contrast, the perturbations are constrained (Eq. 7) and are specifically introduced to maximize the MAD objective. We enforce the accuracy-preserving constraint in our solver by iterating over extremes of intersection of sets Eq.(6) and (8): $\\begin{array} { r } { \\dot { \\Delta { \\phi } } _ { k } ^ { K } = \\{ { \\pmb y } ^ { \\top } { } \\subseteq 0 , { \\bf 1 } ^ { T } { \\pmb y } = 1 , y _ { k } \\geq y _ { j } , k \\} \\not = j \\} \\subseteq \\breve { \\Delta } ^ { K } . } \\end{array}$ . ",
458
+ "bbox": [
459
+ 174,
460
+ 840,
461
+ 825,
462
+ 925
463
+ ],
464
+ "page_idx": 3
465
+ },
466
+ {
467
+ "type": "text",
468
+ "text": "5 EXPERIMENTAL RESULTS ",
469
+ "text_level": 1,
470
+ "bbox": [
471
+ 176,
472
+ 102,
473
+ 419,
474
+ 118
475
+ ],
476
+ "page_idx": 4
477
+ },
478
+ {
479
+ "type": "text",
480
+ "text": "5.1 EXPERIMENTAL SETUP ",
481
+ "text_level": 1,
482
+ "bbox": [
483
+ 176,
484
+ 135,
485
+ 375,
486
+ 150
487
+ ],
488
+ "page_idx": 4
489
+ },
490
+ {
491
+ "type": "text",
492
+ "text": "Victim Models and Datasets. We set up six victim models (see column ${ } ^ { \\bullet } F _ { V }$ ’ in Table 1), each model trained on a popular image classification dataset. All models are trained using SGD $\\mathrm { L R } =$ 0.1) with momentum (0.5) for 30 (LeNet) or 100 epochs (VGG16), with a LR decay of 0.1 performed every 50 epochs. We train and evaluate each victim model on their respective train and test sets. ",
493
+ "bbox": [
494
+ 173,
495
+ 165,
496
+ 825,
497
+ 220
498
+ ],
499
+ "page_idx": 4
500
+ },
501
+ {
502
+ "type": "text",
503
+ "text": "Attack Strategies. We hope to broadly address all DNN model stealing strategies during our defense evaluation. To achieve this, we consider attacks that vary in query data distributions (independent and synthetic; see Section 3) and strategies (random and adaptive). Specifically, in our experiments we use the following attack models: (i) Jacobian-based Data Augmentation ‘JBDA’ (Papernot et al., 2017b); ",
504
+ "bbox": [
505
+ 174,
506
+ 232,
507
+ 450,
508
+ 371
509
+ ],
510
+ "page_idx": 4
511
+ },
512
+ {
513
+ "type": "table",
514
+ "img_path": "images/d9ffb42883593789253a7cd1d21c5dd2c72b42c204feb9f19c652e8c4da069ab.jpg",
515
+ "table_caption": [
516
+ "Table 1: Victim models and Accuracies. All accuracies are w.r.t undefended victim model. "
517
+ ],
518
+ "table_footnote": [],
519
+ "table_body": "<table><tr><td>Fv</td><td>Acc(Fv)</td><td colspan=\"4\">Acc(FA)</td></tr><tr><td></td><td></td><td>jbda</td><td>jbself</td><td>jbtop3</td><td>k.off</td></tr><tr><td>MNIST (LeNet)</td><td>99.4</td><td>89.2</td><td>89.4</td><td>87.3</td><td>99.1</td></tr><tr><td>FashionMNIST(LeNet)</td><td>92.0</td><td>38.7</td><td>45.8</td><td>68.7</td><td>69.2</td></tr><tr><td>CIFAR10 (VGG16)</td><td>92.0</td><td>28.6</td><td>20.7</td><td>73.8</td><td>78.7</td></tr><tr><td>CIFAR100 (VGG16)</td><td>72.2</td><td>5.3</td><td>2.9</td><td>39.2</td><td>51.9</td></tr><tr><td>CUB200 (VGG16)</td><td>80.4</td><td>6.8</td><td>3.9</td><td>21.5</td><td>65.1</td></tr><tr><td>Caltech256 (VGG16)</td><td>80.0</td><td>12.5</td><td>16.0</td><td>29.5</td><td>74.6</td></tr></table>",
520
+ "bbox": [
521
+ 470,
522
+ 233,
523
+ 818,
524
+ 327
525
+ ],
526
+ "page_idx": 4
527
+ },
528
+ {
529
+ "type": "text",
530
+ "text": "(ii,iii) ‘JB-self’ and ‘JB-top3’ (Juuti et al., 2019); and (iv) Knockoff Nets ‘knockoff’ (Orekondy et al., 2019); We follow the default configurations of the attacks where possible. A recap and implementation details of the attack models are available in Appendix D. ",
531
+ "bbox": [
532
+ 174,
533
+ 371,
534
+ 826,
535
+ 412
536
+ ],
537
+ "page_idx": 4
538
+ },
539
+ {
540
+ "type": "text",
541
+ "text": "In all attack strategies, the adversary trains a model $F _ { A }$ to minimize the cross-entropy loss on a transfer set $( \\mathcal { D } ^ { \\mathrm { t r a n s f e r } } = \\{ ( \\pmb { x } _ { i } , \\tilde { \\pmb { y } } _ { i } ) \\} _ { i = 1 } ^ { B } )$ obtained by using the victim model $F _ { V }$ to pseudo-label inputs $\\mathbf { \\Delta } _ { \\mathbf { \\mathcal { X } } _ { i } }$ (sampled or adaptively synthesized). By default, we use $B { = } 5 0 \\mathrm { K }$ queries, which achieves reasonable performance for all attacks and additionally makes defense evaluation tractable. The size of the resulting transfer set $\\scriptstyle B = 5 0 \\mathrm { K }$ examples) is comparable (e.g., $1 \\times$ for CIFAR10/100, $2 . 1 \\times$ for Caltech256) to size of victim’s training set. In line with prior work (Papernot et al., 2016; Orekondy et al., 2019), we too find (Section 5.2.3) attack and defense performances are unaffected by choice of architectures, and hence use the victim architecture for the stolen model $F _ { A }$ . Due to the complex parameterization of VGG-16 $( 1 0 0 \\mathbf { M } + )$ , we initialize the weights from a pretrained TinyImageNet or ImageNet model (except for the last FC layer, which is trained from scratch). All stolen models are trained using SGD $\\scriptstyle \\mathrm { ( L R = 0 . 1 }$ ) with momentum (0.5) for 30 epochs (LeNet) and 100 epochs (VGG16). We find choices of attacker’s architecture and optimization does not undermine the defense (discussed in Section 5.2.3). ",
542
+ "bbox": [
543
+ 174,
544
+ 419,
545
+ 825,
546
+ 599
547
+ ],
548
+ "page_idx": 4
549
+ },
550
+ {
551
+ "type": "text",
552
+ "text": "Effectiveness of Attacks. We evaluate accuracy of resulting stolen models from the attack strategies as-is on the victim’s test set, thereby allowing for a fair head-to-head comparison with the victim model (additional details in Appendix A and D). The stolen model test accuracies, along with undefended victim model $F _ { V }$ accuracies are reported in Table 1. We observe for all six victim models, using just 50K black-box queries, attacks are able to significantly extract victim’s functionality e.g., ${ > } 8 7 \\%$ on MNIST. We find the knockoff attack to be the strongest, exhibiting reasonable performance even on complex victim models e.g., $7 4 . 6 \\%$ ${ \\mathsf { 0 . 9 3 } } { \\times } \\mathsf { A c c } ( F _ { V } ) )$ on Caltech256. ",
553
+ "bbox": [
554
+ 174,
555
+ 611,
556
+ 825,
557
+ 708
558
+ ],
559
+ "page_idx": 4
560
+ },
561
+ {
562
+ "type": "text",
563
+ "text": "How Good are Existing Defenses? Most existing defenses in literature (Tramer et al., 2016; \\` Orekondy et al., 2019; Lee et al., 2018) perform some form of information truncation on the posterior probabilities e.g., rounding, returning top- $k$ labels; all strategies preserve the rank of the most confident label. We now evaluate model stealing attacks on the extreme end of information truncation, wherein the defender returns just the top-1 ‘argmax’ label. This strategy illustrates a rough lower bound on the strength of the attacker when using existing defenses. Specific to knockoff, we observe the attacker is minimally impacted on simpler datasets (e.g., $0 . 2 \\%$ accuracy drop on CIFAR10; see Fig. A5 in Appendix). While this has a larger impact on more complex datasets involving numerous classes (e.g., a maximum of $2 3 . 4 \\%$ drop observed on CUB200), the strategy also introduces a significant perturbation $( L _ { 1 } { = } 1 { \\pm } 0 . 5 )$ to the posteriors. The results suggest existing defenses, which largely the top-1 label, are largely ineffective at mitigating model stealing attacks. ",
564
+ "bbox": [
565
+ 173,
566
+ 718,
567
+ 825,
568
+ 872
569
+ ],
570
+ "page_idx": 4
571
+ },
572
+ {
573
+ "type": "text",
574
+ "text": "Defenses: Evaluation. We evaluate all defenses on a non-replicability vs. utility curve at various operating points $\\epsilon$ of the defense. We furthermore evaluate the defenses for a large query budget (50K). We use as non-replicability the accuracy of the stolen model on held-out test data $\\mathcal { D } ^ { \\mathrm { t e s t } }$ . ",
575
+ "bbox": [
576
+ 176,
577
+ 882,
578
+ 823,
579
+ 924
580
+ ],
581
+ "page_idx": 4
582
+ },
583
+ {
584
+ "type": "image",
585
+ "img_path": "images/91902f56490f283742cc7262836c7485569b2f806b9fd672b6ec55533ca1969d.jpg",
586
+ "image_caption": [
587
+ "Figure 3: Attackers vs. Our Defense. Curves are obtained by varying degree of perturbation $\\epsilon$ (Eq. 7) in our defense. $\\uparrow$ denotes higher numbers are better and $\\downarrow$ , lower numbers are better. Non-replicability objective is presented on the $x -$ -axis and utility on the $y$ -axis. "
588
+ ],
589
+ "image_footnote": [],
590
+ "bbox": [
591
+ 176,
592
+ 99,
593
+ 823,
594
+ 209
595
+ ],
596
+ "page_idx": 5
597
+ },
598
+ {
599
+ "type": "text",
600
+ "text": "We use two utility metrics: (a) accuracy: test-accuracy of the defended model producing perturbed predictions on $\\mathcal { D } ^ { \\mathrm { t e s t } }$ ; and (b) perturbation magnitude $\\epsilon$ : measured as $L _ { 1 }$ distance $| | \\pmb { y } - \\tilde { \\pmb { y } } | | _ { 1 }$ . ",
601
+ "bbox": [
602
+ 174,
603
+ 275,
604
+ 823,
605
+ 304
606
+ ],
607
+ "page_idx": 5
608
+ },
609
+ {
610
+ "type": "text",
611
+ "text": "Defense: Baselines. We compare our approaches against three methods: (i) reverse-sigmoid (Lee et al., 2018): which softens the posterior distribution and introduces ambiguity among nonargmax probabilities. For this method, we evaluate non-replicability and utility metrics for the defense operating at various choices of their hyperparameter $\\bar { \\boldsymbol { \\beta } } \\in [ 0 , 1 ]$ , while keeping their datasetspecific hyperparameter $\\gamma$ fixed (MNIST: 0.2, FashionMNIST: 0.4, CIFAR10: 0.1, rest: 0.2). (ii) random noise: For controlled random-noise, we add uniform random noise $\\delta _ { z }$ on the logit prediction scores $\\tilde { z } = z + \\delta _ { z }$ , where $\\begin{array} { r } { z = \\log ( \\frac { y } { 1 - y } ) } \\end{array}$ ), enforce utility by projecting $\\delta _ { z }$ to an $\\epsilon _ { z }$ -ball (Duchi et al., 2008), and renormalize probabilities $\\begin{array} { r } { \\tilde { y } = \\frac { 1 } { 1 + e ^ { - \\tilde { z } } } } \\end{array}$ 11+e−z˜ . (iii) dp-sgd: while our method and previous two baselines perturbs predictions, we also compare against introducing randomization to victim model parameters by training with the DP-SGD algorithm (Abadi et al., 2016). DP is a popular technique to protect the model against training data inference attacks. This baseline allows us to verify whether the same protection extends to model functionality. ",
612
+ "bbox": [
613
+ 173,
614
+ 314,
615
+ 825,
616
+ 487
617
+ ],
618
+ "page_idx": 5
619
+ },
620
+ {
621
+ "type": "text",
622
+ "text": "5.2 RESULTS ",
623
+ "text_level": 1,
624
+ "bbox": [
625
+ 174,
626
+ 507,
627
+ 277,
628
+ 521
629
+ ],
630
+ "page_idx": 5
631
+ },
632
+ {
633
+ "type": "text",
634
+ "text": "In the follow sections, we demonstrate the effectiveness of our defense rigorously evaluated across a wide range of complex datasets, attack models, defense baselines, query, and utility budgets. For readability, we first evaluate the defense against attack models, proceed to comparing the defense against strong baselines and then provide an analysis of the defense. ",
635
+ "bbox": [
636
+ 174,
637
+ 535,
638
+ 825,
639
+ 590
640
+ ],
641
+ "page_idx": 5
642
+ },
643
+ {
644
+ "type": "text",
645
+ "text": "5.2.1 MAD DEFENSE VS. ATTACKS ",
646
+ "text_level": 1,
647
+ "bbox": [
648
+ 176,
649
+ 609,
650
+ 437,
651
+ 623
652
+ ],
653
+ "page_idx": 5
654
+ },
655
+ {
656
+ "type": "text",
657
+ "text": "Figure 3 presents evaluation of our defenses MAD (Eq. 4-7) and MAD-argmax (Eq. 4-8) against the four attack models. To successfully mitigate attacks as a defender, we want the defense curves (colored solid lines with operating points denoted by thin crosses) to move away from undefended accuracies (denoted by circular discs, where $\\scriptstyle \\epsilon = 0 . 0$ ) to ideal defense performances (cyan cross, where $\\mathsf { A c c } ( \\mathsf { D e f } . )$ is unchanged and $\\mathsf { A c c } ( \\mathsf { A t t } . )$ is chance-level). ",
658
+ "bbox": [
659
+ 174,
660
+ 635,
661
+ 825,
662
+ 705
663
+ ],
664
+ "page_idx": 5
665
+ },
666
+ {
667
+ "type": "text",
668
+ "text": "We observe from Figure 3 that by employing an identical defense across all datasets and attacks, the effectiveness of the attacker can be greatly reduced. Across all models, we find MAD provides reasonable operating points (above the diagonal), where defender achieves significantly higher test accuracies compared to the attacker. For instance, on MNIST, for ${ < } 1 \\%$ drop in defender’s accuracy, our defense simultaneously reduces accuracy of the jbtop3 attacker by $52 \\%$ $8 7 . 3 \\% \\to 3 5 . 7 \\% )$ and knockoff by $29 \\%$ $9 9 . 1 \\% 6 9 . 8 \\%$ ). We find similar promising results even on high-dimensional complex datasets e.g., on CUB200, a $23 \\%$ $6 5 . 1 \\% 4 1 . 9 \\%$ ) performance drop of knockoff for $2 \\%$ drop in defender’s test performance. Our results indicate effective defenses are achievable, where the defender can trade-off a marginal utility cost to drastically impede the attacker. ",
669
+ "bbox": [
670
+ 174,
671
+ 712,
672
+ 825,
673
+ 837
674
+ ],
675
+ "page_idx": 5
676
+ },
677
+ {
678
+ "type": "text",
679
+ "text": "5.2.2 MAD DEFENSE VS. BASELINE DEFENSES ",
680
+ "text_level": 1,
681
+ "bbox": [
682
+ 174,
683
+ 856,
684
+ 522,
685
+ 869
686
+ ],
687
+ "page_idx": 5
688
+ },
689
+ {
690
+ "type": "text",
691
+ "text": "We now study how our approach compares to baseline defenses, by evaluating the defenses against the knockoff attack (which resulted in the strongest attack in our experiments). From Figure 4, we observe: ",
692
+ "bbox": [
693
+ 176,
694
+ 882,
695
+ 823,
696
+ 922
697
+ ],
698
+ "page_idx": 5
699
+ },
700
+ {
701
+ "type": "image",
702
+ "img_path": "images/1d2ec43c3846141fb8b809ed815df6405eafd30d5faf23ad174841aaccc16b44.jpg",
703
+ "image_caption": [
704
+ "Figure 4: Knockoff attack vs. Ours $^ +$ Baseline Defenses (best seen magnified). Non-replicability is presented on the $x$ -axis. On $_ y$ -axis, we present two utility measures: (a) top: Utility $= L _ { 1 }$ distance (b) bottom: Utility $=$ Defender’s accuracy. Region above the diagonal indicates instances where defender outperforms the attacker. "
705
+ ],
706
+ "image_footnote": [],
707
+ "bbox": [
708
+ 176,
709
+ 98,
710
+ 825,
711
+ 268
712
+ ],
713
+ "page_idx": 6
714
+ },
715
+ {
716
+ "type": "image",
717
+ "img_path": "images/0870ed4a1d860ee9030cadd9e6e6bebfb275032ad733501dad3a5b9c6d49c025.jpg",
718
+ "image_caption": [
719
+ "Figure 5: Attacker argmax. Follow-up to Figure 4b (CIFAR10), but with attacker using only the argmax label. "
720
+ ],
721
+ "image_footnote": [],
722
+ "bbox": [
723
+ 178,
724
+ 332,
725
+ 351,
726
+ 463
727
+ ],
728
+ "page_idx": 6
729
+ },
730
+ {
731
+ "type": "image",
732
+ "img_path": "images/1e4ed37a96023b47935fd50b2b4ad45e9c890c037f8d35f43163e188853ebcbd.jpg",
733
+ "image_caption": [
734
+ "Figure 6: Histogram of Angular Deviations. Presented for MAD attack on CIFAR10 with various choices of $\\epsilon$ . "
735
+ ],
736
+ "image_footnote": [],
737
+ "bbox": [
738
+ 372,
739
+ 334,
740
+ 617,
741
+ 458
742
+ ],
743
+ "page_idx": 6
744
+ },
745
+ {
746
+ "type": "image",
747
+ "img_path": "images/77d45239807b214d6e4752bb3dfc61dc7e8cf93fdf014052bc588c4d45b83eba.jpg",
748
+ "image_caption": [
749
+ "Figure 7: Test loss. Visualized during training. Colours and lines correspond to $\\epsilon$ values in Fig. 6. "
750
+ ],
751
+ "image_footnote": [],
752
+ "bbox": [
753
+ 640,
754
+ 349,
755
+ 813,
756
+ 445
757
+ ],
758
+ "page_idx": 6
759
+ },
760
+ {
761
+ "type": "text",
762
+ "text": "(i) Utility objective $\\mathbf { \\Phi } = L _ { 1 }$ distance (Fig. 4a): Although random-noise and reverse-sigmoid reduce attacker’s accuracy, the strategies in most cases involves larger perturbations. In contrast, MAD and MAD-argmax provides similar non-replicability (i.e., $\\mathsf { A c c } ( \\mathsf { A t t . } ) )$ with significantly lesser perturbation, especially at lower magnitudes. For instance, on MNIST (first column), MAD $( L _ { 1 } = 0 . 9 5 )$ ) reduces the accuracy of the attacker to under $80 \\%$ with $0 . 6 3 \\times$ the perturbation as that of reversesigmoid and random-noise $( L _ { 1 } \\approx 1 . 5 )$ . ",
763
+ "bbox": [
764
+ 174,
765
+ 547,
766
+ 825,
767
+ 632
768
+ ],
769
+ "page_idx": 6
770
+ },
771
+ {
772
+ "type": "text",
773
+ "text": "(ii) Utility objective $=$ argmax-preserving (Fig. 4b): By setting a hard constraint on retaining the label of the predictions, we find the accuracy-preserving defenses MAD-argmax and reverse-sigmoid successfully reduce the performance of the attacker by at least $20 \\%$ across all datasets. In most cases, we find MAD-argmax in addition achieves this objective by introducing lesser distortion to the predictions compared to reverse-sigmoid. For instance, in Fig. 4a, we find MAD-argmax consistently reduce the attacker accuracy to the same amount at lesser $L _ { 1 }$ distances. In reversesigmoid, we attribute the large $L _ { 1 }$ perturbations to a shift in posteriors towards a uniform distribution e.g., mean entropy of perturbed predictions is $3 . 0 2 \\pm 0 . 1 6$ (max-entropy $= 3 . 3 2 )$ at $L _ { 1 } { = } 1 . 0$ for MNIST; in contrast, MAD-argmax displays a mean entropy of $1 . 7 9 \\pm 0 . 1 1$ . However, common to accuracy-preserving strategies is a pitfall that the top-1 label is retained. In Figure 5 (see overlapping red and yellow cross-marks), we present the results of training the attacker using only the top-1 label. In line with previous discussions, we find that the attacker is able to significantly recover the original performance of the stolen model for accuracy-preserving defenses MAD-argmax and reverse-sigmoid. ",
774
+ "bbox": [
775
+ 173,
776
+ 638,
777
+ 825,
778
+ 833
779
+ ],
780
+ "page_idx": 6
781
+ },
782
+ {
783
+ "type": "text",
784
+ "text": "(iii) Non-replicability vs. utility trade-off (Fig. 4b): We now compare our defense MAD (blue lines) with baselines (rand-noise and $\\mathtt { d p \\mathrm { - s g d ) } }$ which trade-off utility to mitigate model stealing. Our results indicate MAD offers a better defense (lower attacker accuracies for similar defender accuracies). For instance, to reduce the attacker’s accuracy to ${ < } 7 0 \\%$ , while the defender’s accuracy significantly degrades using dp-sgd $( 3 9 \\% )$ and rand-noise $( 5 6 . 4 \\% )$ , MAD involves a marginal decrease of $1 \\%$ . ",
785
+ "bbox": [
786
+ 174,
787
+ 840,
788
+ 825,
789
+ 922
790
+ ],
791
+ "page_idx": 6
792
+ },
793
+ {
794
+ "type": "image",
795
+ "img_path": "images/5446cf701717e6223542aa63f0e7a86ef717ea541222b0c763898d51347ed44d.jpg",
796
+ "image_caption": [
797
+ "Figure 8: MAD Ablation experiments. Utility $=$ (left) $L _ { 1 }$ distance (right) defender test accuracy. "
798
+ ],
799
+ "image_footnote": [],
800
+ "bbox": [
801
+ 189,
802
+ 109,
803
+ 508,
804
+ 233
805
+ ],
806
+ "page_idx": 7
807
+ },
808
+ {
809
+ "type": "image",
810
+ "img_path": "images/29eeb46cfec4e89f9b656b9fba6d6e761c3a9f3b84c5207b05b216b883c097f8.jpg",
811
+ "image_caption": [
812
+ "Figure 9: Subverting the Defense. "
813
+ ],
814
+ "image_footnote": [],
815
+ "bbox": [
816
+ 519,
817
+ 102,
818
+ 807,
819
+ 252
820
+ ],
821
+ "page_idx": 7
822
+ },
823
+ {
824
+ "type": "text",
825
+ "text": "5.2.3 ANALYSIS ",
826
+ "text_level": 1,
827
+ "bbox": [
828
+ 174,
829
+ 306,
830
+ 300,
831
+ 319
832
+ ],
833
+ "page_idx": 7
834
+ },
835
+ {
836
+ "type": "text",
837
+ "text": "How much angular deviation does MAD introduce? To obtain insights on the angular deviation induced between the true and the perturbed gradient, we conduct an experiment by tracking the true gradient direction (which was unknown so far) at each training step. We simulate this by training an attacker model using online SGD $\\mathrm { { L R } } { = } 0 . 0 0 1$ ) over $N$ iterations using $B$ distinct images to query and a batch size of 1. At each step $t$ of training, the attacker queries a randomly sampled input $\\mathbf { \\Delta } _ { \\mathbf { \\mathcal { X } } _ { t } }$ to the defender model and backpropogates the loss resulting from $\\tilde { \\mathbf { y } } _ { t }$ . In this particular experiment, the perturbation $\\tilde { \\mathbf { y } } _ { t }$ is crafted having exact knowledge of the attacker’s parameters. We evaluate the angular deviation between gradients with $\\mathbf { \\Pi } ( a )$ and without $( \\pmb { u } )$ the perturbation. ",
838
+ "bbox": [
839
+ 173,
840
+ 334,
841
+ 825,
842
+ 446
843
+ ],
844
+ "page_idx": 7
845
+ },
846
+ {
847
+ "type": "text",
848
+ "text": "In Figure 6, we visualize a histogram of deviations: $\\begin{array} { r } { \\theta = \\operatorname { a r c c o s } { \\frac { { \\mathbf { \\em u } } \\cdot { \\mathbf { \\boldsymbol { a } } } } { | | { \\mathbf { \\em u } } | | | | | { \\mathbf { \\boldsymbol { a } } } | | } } } \\end{array}$ , where $\\pmb { u } = \\nabla _ { \\pmb { w } } L ( \\pmb { w } _ { t } , \\pmb { y } , \\cdot )$ and $\\pmb { a } = \\nabla _ { \\pmb { w } } L ( \\pmb { w } _ { t } , \\tilde { \\pmb { y } } , \\cdot )$ . We observe: (i) although our perturbation space is severely restricted (a low-dimensional probability simplex), we can introduce surprisingly high deviations $( 0 - 1 1 5 ^ { \\circ } )$ in the high-dimensional parameter space of the VGG16; (ii) for $\\epsilon$ values at reasonable operating points which preserves the defender’s accuracy within $10 \\%$ of the undefended accuracy (e.g., $\\epsilon \\in [ 0 . 9 5$ , 0.99] for CIFAR10), we see deviations with mean $2 4 . 9 ^ { \\circ }$ (yellow bars in Fig. 6). This indicates that the perturbed gradient on an average leads to a slower decrease in loss function; (iii) on the extreme end, with $\\epsilon = \\epsilon _ { \\mathrm { m a x } } = 2$ , on an average, we find the perturbations successfully flips $( > 9 0 ^ { \\circ } )$ the gradient direction leading to an increase on the test loss, as seen in Figure 7 (blue line). We also find the above observations reasonably transfers to a black-box attacker setting (see Appendix F.4), where the perturbations are crafted without knowledge of the attacker’s parameters. Overall, we find our approach considerably corrupts the attacker’s gradient direction. ",
849
+ "bbox": [
850
+ 173,
851
+ 453,
852
+ 825,
853
+ 623
854
+ ],
855
+ "page_idx": 7
856
+ },
857
+ {
858
+ "type": "text",
859
+ "text": "Ablative Analysis. We present an ablation analysis of our approach in Figure 8. In this experiment, we compare our approach MAD and MAD-argmax to: (a) $G = I$ : We substitute the jacobian $G$ (Eq. 5) with a $K \\times K$ identity matrix; and (b) $\\mathbf { \\boldsymbol { y } } ^ { * } =$ rand: Inner maximization term (Eq. 4) returns a random extreme of the simplex. Note that both (a) and (b) do not use the gradient information to perturb the posteriors. ",
860
+ "bbox": [
861
+ 174,
862
+ 633,
863
+ 825,
864
+ 704
865
+ ],
866
+ "page_idx": 7
867
+ },
868
+ {
869
+ "type": "text",
870
+ "text": "From Figure 8, we observe: (i) poor performance of $\\mathbf { \\boldsymbol { y } } ^ { * } =$ rand, indicating random untargeted perturbations of the posterior probability is a poor strategy; (ii) $G = I$ , where the angular deviation is maximized between the posterior probability vectors is a slightly better strategy; (ii) MAD outperforms the above approaches. Consequently, we find using the gradient information (although a proxy to the attacker’s gradient signal) within our formulation (Equation 4) is crucial to providing better model stealing defenses. ",
871
+ "bbox": [
872
+ 174,
873
+ 710,
874
+ 825,
875
+ 794
876
+ ],
877
+ "page_idx": 7
878
+ },
879
+ {
880
+ "type": "text",
881
+ "text": "Subverting the Defense. We now explore various strategies an attacker can use to circumvent the defense. To this end, we evaluate the following strategies: (a) argmax: attacker uses only the most-confident label during training; (b) arch- $^ *$ : attacker trains other choices of architectures; (c) nquery: attacker queries each image multiple times; (d) nquery+aug: same as (c), but with random cropping and horizontal flipping; and (e) opt- $^ *$ : attacker uses an adaptive LR optimizer e.g., ADAM (Kingma & Ba, 2014). ",
882
+ "bbox": [
883
+ 174,
884
+ 805,
885
+ 825,
886
+ 888
887
+ ],
888
+ "page_idx": 7
889
+ },
890
+ {
891
+ "type": "text",
892
+ "text": "We present results over the subversion strategies in Figure 9. We find our defense robust to above strategies. Our results indicate that the best strategy for the attacker to circumvent our defense is to discard the probabilities and rely only on the most confident label to train the stolen model. In accuracy-preserving defenses (see Fig. 5), this previously resulted in an adversary entirely circumventing the defense (recovering up to $1 . 0 \\times$ original performance). In contrast, we find MAD is nonetheless effective in spite of the strategy, maintaining a $9 \\%$ absolute accuracy reduction in attacker’s stolen performance. ",
893
+ "bbox": [
894
+ 176,
895
+ 895,
896
+ 821,
897
+ 924
898
+ ],
899
+ "page_idx": 7
900
+ },
901
+ {
902
+ "type": "text",
903
+ "text": "",
904
+ "bbox": [
905
+ 174,
906
+ 103,
907
+ 825,
908
+ 174
909
+ ],
910
+ "page_idx": 8
911
+ },
912
+ {
913
+ "type": "text",
914
+ "text": "6 CONCLUSION ",
915
+ "text_level": 1,
916
+ "bbox": [
917
+ 176,
918
+ 194,
919
+ 318,
920
+ 210
921
+ ],
922
+ "page_idx": 8
923
+ },
924
+ {
925
+ "type": "text",
926
+ "text": "In this work, we were motivated by limited success of existing defenses against DNN model stealing attacks. While prior work is largely based on passive defenses focusing on information truncation, we proposed the first active defense strategy that attacks the adversary’s training objective. We found our approach effective in defending a variety of victim models and against various attack strategies. In particular, we find our attack can reduce the accuracy of the adversary by up to $65 \\%$ , without significantly affecting defender’s accuracy. ",
927
+ "bbox": [
928
+ 174,
929
+ 226,
930
+ 825,
931
+ 310
932
+ ],
933
+ "page_idx": 8
934
+ },
935
+ {
936
+ "type": "text",
937
+ "text": "Acknowledgement. This research was partially supported by the German Research Foundation (DFG CRC 1223). We thank Paul Swoboda and David Stutz for helpful discussions. ",
938
+ "bbox": [
939
+ 174,
940
+ 320,
941
+ 821,
942
+ 348
943
+ ],
944
+ "page_idx": 8
945
+ },
946
+ {
947
+ "type": "text",
948
+ "text": "REFERENCES ",
949
+ "text_level": 1,
950
+ "bbox": [
951
+ 174,
952
+ 369,
953
+ 285,
954
+ 385
955
+ ],
956
+ "page_idx": 8
957
+ },
958
+ {
959
+ "type": "text",
960
+ "text": "Martin Abadi, Andy Chu, Ian Goodfellow, H Brendan McMahan, Ilya Mironov, Kunal Talwar, and Li Zhang. Deep learning with differential privacy. In CCS, 2016. ",
961
+ "bbox": [
962
+ 174,
963
+ 393,
964
+ 825,
965
+ 421
966
+ ],
967
+ "page_idx": 8
968
+ },
969
+ {
970
+ "type": "text",
971
+ "text": "Ibrahim M Alabdulmohsin, Xin Gao, and Xiangliang Zhang. Adding robustness to support vector machines against adversarial reverse engineering. In CIKM, 2014. ",
972
+ "bbox": [
973
+ 173,
974
+ 430,
975
+ 821,
976
+ 460
977
+ ],
978
+ "page_idx": 8
979
+ },
980
+ {
981
+ "type": "text",
982
+ "text": "Battista Biggio, Igino Corona, Davide Maiorca, Blaine Nelson, Nedim Srndi ˇ c, Pavel Laskov, Gior- ´ gio Giacinto, and Fabio Roli. Evasion attacks against machine learning at test time. In ECML PKDD, 2013. ",
983
+ "bbox": [
984
+ 173,
985
+ 470,
986
+ 823,
987
+ 513
988
+ ],
989
+ "page_idx": 8
990
+ },
991
+ {
992
+ "type": "text",
993
+ "text": "Varun Chandrasekaran, K Chaudhari, Irene Giacomelli, Somesh Jha, and Songbai Yan. Exploring connections between active learning and model extraction. arXiv preprint arXiv:1905.09165, 2019. ",
994
+ "bbox": [
995
+ 173,
996
+ 522,
997
+ 825,
998
+ 564
999
+ ],
1000
+ "page_idx": 8
1001
+ },
1002
+ {
1003
+ "type": "text",
1004
+ "text": "Jacson Rodrigues Correia-Silva, Rodrigo F Berriel, Claudine Badue, Alberto F de Souza, and Thiago Oliveira-Santos. Copycat cnn: Stealing knowledge by persuading confession with random nonlabeled data. In IJCNN, 2018. ",
1005
+ "bbox": [
1006
+ 174,
1007
+ 574,
1008
+ 823,
1009
+ 617
1010
+ ],
1011
+ "page_idx": 8
1012
+ },
1013
+ {
1014
+ "type": "text",
1015
+ "text": "John Duchi, Shai Shalev-Shwartz, Yoram Singer, and Tushar Chandra. Efficient projections onto the l 1-ball for learning in high dimensions. In ICML, 2008. ",
1016
+ "bbox": [
1017
+ 171,
1018
+ 626,
1019
+ 823,
1020
+ 656
1021
+ ],
1022
+ "page_idx": 8
1023
+ },
1024
+ {
1025
+ "type": "text",
1026
+ "text": "Cynthia Dwork, Aaron Roth, et al. The algorithmic foundations of differential privacy. Foundations and Trends $\\textsuperscript { \\textregistered }$ in Theoretical Computer Science, 2014. ",
1027
+ "bbox": [
1028
+ 173,
1029
+ 665,
1030
+ 823,
1031
+ 695
1032
+ ],
1033
+ "page_idx": 8
1034
+ },
1035
+ {
1036
+ "type": "text",
1037
+ "text": "Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014. ",
1038
+ "bbox": [
1039
+ 171,
1040
+ 703,
1041
+ 825,
1042
+ 733
1043
+ ],
1044
+ "page_idx": 8
1045
+ },
1046
+ {
1047
+ "type": "text",
1048
+ "text": "Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv:1503.02531, 2015. ",
1049
+ "bbox": [
1050
+ 173,
1051
+ 741,
1052
+ 823,
1053
+ 771
1054
+ ],
1055
+ "page_idx": 8
1056
+ },
1057
+ {
1058
+ "type": "text",
1059
+ "text": "Karla Leigh Hoffman. A method for globally minimizing concave functions over convex sets. Mathematical Programming, 20(1):22–32, 1981. ",
1060
+ "bbox": [
1061
+ 171,
1062
+ 780,
1063
+ 823,
1064
+ 809
1065
+ ],
1066
+ "page_idx": 8
1067
+ },
1068
+ {
1069
+ "type": "text",
1070
+ "text": "Matthew Jagielski, Nicholas Carlini, David Berthelot, Alex Kurakin, and Nicolas Papernot. Highfidelity extraction of neural network models. arXiv preprint arXiv:1909.01838, 2019. ",
1071
+ "bbox": [
1072
+ 171,
1073
+ 818,
1074
+ 823,
1075
+ 848
1076
+ ],
1077
+ "page_idx": 8
1078
+ },
1079
+ {
1080
+ "type": "text",
1081
+ "text": "Mika Juuti, Sebastian Szyller, Alexey Dmitrenko, Samuel Marchal, and N Asokan. Prada: Protecting against dnn model stealing attacks. In Euro S&P, 2019. ",
1082
+ "bbox": [
1083
+ 174,
1084
+ 857,
1085
+ 820,
1086
+ 886
1087
+ ],
1088
+ "page_idx": 8
1089
+ },
1090
+ {
1091
+ "type": "text",
1092
+ "text": "Manish Kesarwani, Bhaskar Mukhoty, Vijay Arya, and Sameep Mehta. Model extraction warning in mlaas paradigm. In ACSAC, 2018. ",
1093
+ "bbox": [
1094
+ 174,
1095
+ 895,
1096
+ 820,
1097
+ 924
1098
+ ],
1099
+ "page_idx": 8
1100
+ },
1101
+ {
1102
+ "type": "text",
1103
+ "text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2014. ",
1104
+ "bbox": [
1105
+ 168,
1106
+ 103,
1107
+ 810,
1108
+ 119
1109
+ ],
1110
+ "page_idx": 9
1111
+ },
1112
+ {
1113
+ "type": "text",
1114
+ "text": "Taesung Lee, Benjamin Edwards, Ian Molloy, and Dong Su. Defending against model stealing attacks using deceptive perturbations. S&P Deep Learning and Security (DLS) Workshop, 2018. ",
1115
+ "bbox": [
1116
+ 171,
1117
+ 127,
1118
+ 821,
1119
+ 156
1120
+ ],
1121
+ "page_idx": 9
1122
+ },
1123
+ {
1124
+ "type": "text",
1125
+ "text": "Daniel Lowd and Christopher Meek. Adversarial learning. In KDD, 2005. ",
1126
+ "bbox": [
1127
+ 174,
1128
+ 165,
1129
+ 663,
1130
+ 181
1131
+ ],
1132
+ "page_idx": 9
1133
+ },
1134
+ {
1135
+ "type": "text",
1136
+ "text": "Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In ICLR, 2018. ",
1137
+ "bbox": [
1138
+ 174,
1139
+ 188,
1140
+ 820,
1141
+ 218
1142
+ ],
1143
+ "page_idx": 9
1144
+ },
1145
+ {
1146
+ "type": "text",
1147
+ "text": "Smitha Milli, Ludwig Schmidt, Anca D Dragan, and Moritz Hardt. Model reconstruction from model explanations. arXiv preprint arXiv:1807.05185, 2018. ",
1148
+ "bbox": [
1149
+ 171,
1150
+ 226,
1151
+ 823,
1152
+ 256
1153
+ ],
1154
+ "page_idx": 9
1155
+ },
1156
+ {
1157
+ "type": "text",
1158
+ "text": "Blaine Nelson, Marco Barreno, Fuching Jack Chi, Anthony D Joseph, Benjamin IP Rubinstein, Udam Saini, Charles Sutton, JD Tygar, and Kai Xia. Misleading learners: Co-opting your spam filter. In Machine learning in cyber trust. 2009. ",
1159
+ "bbox": [
1160
+ 176,
1161
+ 263,
1162
+ 825,
1163
+ 308
1164
+ ],
1165
+ "page_idx": 9
1166
+ },
1167
+ {
1168
+ "type": "text",
1169
+ "text": "Blaine Nelson, Benjamin Rubinstein, Ling Huang, Anthony Joseph, Shing-hon Lau, Steven Lee, Satish Rao, Anthony Tran, and Doug Tygar. Near-optimal evasion of convex-inducing classifiers. In AISTATS, 2010. ",
1170
+ "bbox": [
1171
+ 176,
1172
+ 315,
1173
+ 823,
1174
+ 358
1175
+ ],
1176
+ "page_idx": 9
1177
+ },
1178
+ {
1179
+ "type": "text",
1180
+ "text": "Seong Joon Oh, Max Augustin, Bernt Schiele, and Mario Fritz. Towards reverse-engineering blackbox neural networks. In ICLR, 2018. ",
1181
+ "bbox": [
1182
+ 171,
1183
+ 367,
1184
+ 823,
1185
+ 397
1186
+ ],
1187
+ "page_idx": 9
1188
+ },
1189
+ {
1190
+ "type": "text",
1191
+ "text": "Tribhuvanesh Orekondy, Bernt Schiele, and Mario Fritz. Knockoff nets: Stealing functionality of black-box models. In CVPR, 2019. ",
1192
+ "bbox": [
1193
+ 171,
1194
+ 405,
1195
+ 823,
1196
+ 434
1197
+ ],
1198
+ "page_idx": 9
1199
+ },
1200
+ {
1201
+ "type": "text",
1202
+ "text": "Soham Pal, Yash Gupta, Aditya Shukla, Aditya Kanade, Shirish Shevade, and Vinod Ganapathy. A framework for the extraction of deep neural networks by leveraging public data. arXiv preprint arXiv:1905.09165, 2019. ",
1203
+ "bbox": [
1204
+ 173,
1205
+ 443,
1206
+ 825,
1207
+ 486
1208
+ ],
1209
+ "page_idx": 9
1210
+ },
1211
+ {
1212
+ "type": "text",
1213
+ "text": "Nicolas Papernot, Patrick McDaniel, and Ian Goodfellow. Transferability in machine learning: from phenomena to black-box attacks using adversarial samples. arXiv preprint arXiv:1605.07277, 2016. ",
1214
+ "bbox": [
1215
+ 173,
1216
+ 494,
1217
+ 826,
1218
+ 537
1219
+ ],
1220
+ "page_idx": 9
1221
+ },
1222
+ {
1223
+ "type": "text",
1224
+ "text": "Nicolas Papernot, Mart´ın Abadi, Ulfar Erlingsson, Ian Goodfellow, and Kunal Talwar. Semisupervised knowledge transfer for deep learning from private training data. In ICLR, 2017a. ",
1225
+ "bbox": [
1226
+ 173,
1227
+ 545,
1228
+ 821,
1229
+ 575
1230
+ ],
1231
+ "page_idx": 9
1232
+ },
1233
+ {
1234
+ "type": "text",
1235
+ "text": "Nicolas Papernot, Patrick McDaniel, Ian Goodfellow, Somesh Jha, Z Berkay Celik, and Ananthram Swami. Practical black-box attacks against machine learning. In Asia CCS, 2017b. ",
1236
+ "bbox": [
1237
+ 176,
1238
+ 583,
1239
+ 821,
1240
+ 613
1241
+ ],
1242
+ "page_idx": 9
1243
+ },
1244
+ {
1245
+ "type": "text",
1246
+ "text": "Florian Tramer and Dan Boneh. Slalom: Fast, verifiable and private execution of neural networks in trusted hardware. In ICLR, 2019. ",
1247
+ "bbox": [
1248
+ 174,
1249
+ 621,
1250
+ 823,
1251
+ 651
1252
+ ],
1253
+ "page_idx": 9
1254
+ },
1255
+ {
1256
+ "type": "text",
1257
+ "text": "Florian Tramer, Fan Zhang, Ari Juels, Michael K Reiter, and Thomas Ristenpart. Stealing machine \\` learning models via prediction apis. In USENIX Security, 2016. ",
1258
+ "bbox": [
1259
+ 173,
1260
+ 659,
1261
+ 821,
1262
+ 689
1263
+ ],
1264
+ "page_idx": 9
1265
+ },
1266
+ {
1267
+ "type": "text",
1268
+ "text": "Binghui Wang and Neil Zhenqiang Gong. Stealing hyperparameters in machine learning. In S&P, 2018. ",
1269
+ "bbox": [
1270
+ 173,
1271
+ 696,
1272
+ 821,
1273
+ 727
1274
+ ],
1275
+ "page_idx": 9
1276
+ },
1277
+ {
1278
+ "type": "text",
1279
+ "text": "Huadi Zheng, Qingqing Ye, Haibo Hu, Chengfang Fang, and Jie Shi. Bdpl: A boundary differentially private layer against machine learning model extraction attacks. In ESORICS, 2019. ",
1280
+ "bbox": [
1281
+ 174,
1282
+ 734,
1283
+ 821,
1284
+ 765
1285
+ ],
1286
+ "page_idx": 9
1287
+ },
1288
+ {
1289
+ "type": "text",
1290
+ "text": "Appendix ",
1291
+ "text_level": 1,
1292
+ "bbox": [
1293
+ 174,
1294
+ 99,
1295
+ 294,
1296
+ 123
1297
+ ],
1298
+ "page_idx": 10
1299
+ },
1300
+ {
1301
+ "type": "text",
1302
+ "text": "A OVERVIEW AND NOTATION ",
1303
+ "bbox": [
1304
+ 176,
1305
+ 155,
1306
+ 436,
1307
+ 172
1308
+ ],
1309
+ "page_idx": 10
1310
+ },
1311
+ {
1312
+ "type": "image",
1313
+ "img_path": "images/9c8cea255bdfab207e7ac96356b3570b150eece1642e7cede0bc1ad2d2e93433.jpg",
1314
+ "image_caption": [
1315
+ "Figure A1: Overview of Attack, Defense, and Evaluation Metrics. We consider an attacker $A$ who exploits black-box access to defended model $F _ { V } ^ { \\delta }$ to train a stolen model $F _ { A }$ . In this paper, we take the role of the defender who intends to minimize replicability (i.e., $\\mathsf { A c c } ( F _ { A } , { \\mathcal { D } } ^ { \\mathrm { t e s t } } ) )$ , while maintaining utility of the predictions. We consider two notions of utility: (1) minimizing perturbations in predictions, measured here using $L _ { 1 }$ distance; and (2) maintaining accuracy of the defended model on test set $\\mathrm { A c c } ( F _ { V } ^ { \\delta } , { \\mathcal { D } } ^ { \\mathrm { t e s t } } )$ . Note that for a fair head-to-head comparison, we use the same held-out test set $\\mathcal { D } ^ { \\mathrm { t e s t } }$ to evaluate accuracies of both the defended model $F _ { V } ^ { \\delta }$ and stolen model $F _ { A }$ . Similar to all prior work, we assume $\\mathcal { D } ^ { \\mathrm { t r a i n } }$ , $\\mathcal { D } ^ { \\mathrm { t e s t } }$ are drawn i.i.d from the same (victim) distribution $\\mathcal { D } _ { V }$ . Notation used in the above figure is further elaborated in Table A1. "
1316
+ ],
1317
+ "image_footnote": [],
1318
+ "bbox": [
1319
+ 240,
1320
+ 193,
1321
+ 751,
1322
+ 377
1323
+ ],
1324
+ "page_idx": 10
1325
+ },
1326
+ {
1327
+ "type": "table",
1328
+ "img_path": "images/a5181291ea362662af5b5db72507dfe4f84f3eb4d7f1f5818abe18a2b8f46ce3.jpg",
1329
+ "table_caption": [
1330
+ "Table A1: Notation "
1331
+ ],
1332
+ "table_footnote": [],
1333
+ "table_body": "<table><tr><td></td><td>x</td><td>Inputs (images ∈ RC×H×W)</td></tr><tr><td></td><td>y,y</td><td>Original, perturbed posterior predictions</td></tr><tr><td></td><td>AR</td><td>Probability simplex overK vertices</td></tr><tr><td>Attacker A</td><td>PA(X)</td><td>Attacker&#x27;s input data distribution</td></tr><tr><td></td><td>Dtransfer</td><td>Transfer set (= {(xi,yi)},where xi ~ PA(X),yi = Fv(xi))</td></tr><tr><td></td><td>FA</td><td>Attacker&#x27;s (stolen) model trained on Dtransfer</td></tr><tr><td>Victim/DefenderV</td><td>Pv(X)</td><td>Victim&#x27;s input data distribution</td></tr><tr><td></td><td>Dtrain</td><td>Training data (= {(xi,yi)},where xi ~ Pv(X))</td></tr><tr><td></td><td>Fv</td><td>Undefended model trained on Dtrain</td></tr><tr><td></td><td>F</td><td>Defended model</td></tr><tr><td></td><td>Dtest</td><td>Test set(= {(xi, yi)},where xi~Pv(X))</td></tr></table>",
1334
+ "bbox": [
1335
+ 181,
1336
+ 512,
1337
+ 816,
1338
+ 694
1339
+ ],
1340
+ "page_idx": 10
1341
+ },
1342
+ {
1343
+ "type": "text",
1344
+ "text": "B RELATED WORK: EXTENSION ",
1345
+ "bbox": [
1346
+ 174,
1347
+ 746,
1348
+ 459,
1349
+ 763
1350
+ ],
1351
+ "page_idx": 10
1352
+ },
1353
+ {
1354
+ "type": "text",
1355
+ "text": "A summary of existing model stealing attacks and defenses is presented in Table A2. ",
1356
+ "bbox": [
1357
+ 174,
1358
+ 777,
1359
+ 728,
1360
+ 794
1361
+ ],
1362
+ "page_idx": 10
1363
+ },
1364
+ {
1365
+ "type": "text",
1366
+ "text": "C DETAILED ALGORITHM ",
1367
+ "text_level": 1,
1368
+ "bbox": [
1369
+ 176,
1370
+ 814,
1371
+ 406,
1372
+ 832
1373
+ ],
1374
+ "page_idx": 10
1375
+ },
1376
+ {
1377
+ "type": "text",
1378
+ "text": "We present a detailed algorithm (see Algorithm 1) for our approach described in Section 4. ",
1379
+ "bbox": [
1380
+ 169,
1381
+ 847,
1382
+ 767,
1383
+ 863
1384
+ ],
1385
+ "page_idx": 10
1386
+ },
1387
+ {
1388
+ "type": "text",
1389
+ "text": "The algorithm roughly follows four steps: ",
1390
+ "bbox": [
1391
+ 174,
1392
+ 868,
1393
+ 449,
1394
+ 883
1395
+ ],
1396
+ "page_idx": 10
1397
+ },
1398
+ {
1399
+ "type": "text",
1400
+ "text": "(i) Predict $\\mathbf { ( L } 2 )$ : Obtains posterior probability predictions $\\textbf { { y } }$ for input $_ { \\textbf { \\em x } }$ using a victim model $F _ { V } ( { \\pmb x } ; { \\pmb w } _ { V } )$ . ",
1401
+ "bbox": [
1402
+ 205,
1403
+ 895,
1404
+ 825,
1405
+ 925
1406
+ ],
1407
+ "page_idx": 10
1408
+ },
1409
+ {
1410
+ "type": "table",
1411
+ "img_path": "images/ce61dcd1003272525a1693e9767fc698aaebb061a5dd4610d2776175f5548e6c.jpg",
1412
+ "table_caption": [
1413
+ "Table A2: Existing DNN Attacks and Defenses. Complements the discussion in Section 2. $\\mathbf { \\Gamma } _ { \\mathbf { C N N } } { } ^ { * }$ ’: Complex ImageNet-like CNN. $\\cdot \\cdot \\cdot$ : Both. ‘P/D’: Perturbation/Detection. ‘AP’: Accuracy preserving (i.e., maintains top-1 labels of predictions). ‘AC’: Attacks considered. "
1414
+ ],
1415
+ "table_footnote": [
1416
+ "Algorithm 1: MAD Defense. To supplement approach in Section 4 "
1417
+ ],
1418
+ "table_body": "<table><tr><td rowspan=\"2\"></td><td rowspan=\"2\">Black-box type</td><td colspan=\"2\">Proposed Attack</td><td colspan=\"4\">Proposed Defense</td></tr><tr><td>Input Query Data</td><td>Adapt.?</td><td>Strategy</td><td>P/D?</td><td>AP?</td><td>AC</td></tr><tr><td>1.Lowd &amp; Meek (2005)</td><td>Linear</td><td>Random Noise</td><td>√</td><td></td><td>-</td><td>-</td><td>-</td></tr><tr><td>2.Nelson et al. (2009)</td><td>Linear</td><td>Labeled Data</td><td>X</td><td>Rejection</td><td>D</td><td>X</td><td>1</td></tr><tr><td>3.Nelson et al. (2010)</td><td>Linear</td><td>Random Noise</td><td></td><td></td><td>-</td><td></td><td></td></tr><tr><td>4. Alabdulmohsin et al. (2014)</td><td>Linear</td><td>Random Noise</td><td>√</td><td>Ensembling</td><td>P</td><td>X</td><td>4</td></tr><tr><td>5.Tramer et al.(2016)</td><td>Linear, NN</td><td>Random Noise</td><td>+</td><td>Rounding</td><td>P</td><td>√</td><td>5</td></tr><tr><td>6.Milli et al. (2018)</td><td>Linear, NN</td><td>Random Noise</td><td></td><td>=</td><td>-</td><td></td><td>-</td></tr><tr><td>7.Kesarwani et al. (2018)</td><td>Decision Tree</td><td></td><td></td><td>Detection</td><td>D</td><td>√</td><td>5</td></tr><tr><td>8.Chandrasekaran et al. (2019)</td><td>Linear</td><td>Random Noise</td><td>√</td><td>Random Pert.</td><td>P</td><td>X</td><td>-</td></tr><tr><td>9.Papernot et al.(2017b)</td><td>CNN</td><td>Synth. Data</td><td>√</td><td></td><td>-</td><td></td><td>-</td></tr><tr><td>10. Correia-Silva et al. (2018)</td><td>CNN</td><td>Unlabeled Data</td><td>X</td><td></td><td></td><td>=</td><td></td></tr><tr><td>11.Pal et al. (2019)</td><td>CNN</td><td>Unlabeled Data</td><td>+</td><td></td><td>-</td><td>=</td><td>1</td></tr><tr><td>12. Orekondy et al. (2019)</td><td>CNN*</td><td>Unlabeled Data</td><td></td><td>Rounding, Top-k</td><td>P</td><td>√</td><td>12</td></tr><tr><td>13.Jagielski et al. (2019)</td><td>CNN*</td><td>Unlabeled Data</td><td>√</td><td></td><td>1</td><td>-</td><td>-</td></tr><tr><td>14. Juuti et al. (2019)</td><td>CNN</td><td>Synth. Data</td><td>√</td><td>Detection</td><td>D</td><td>√</td><td>9,14</td></tr><tr><td>15.Lee et al. (2018)</td><td>CNN</td><td></td><td></td><td>Reverse sigmoid</td><td>P</td><td>√</td><td>9</td></tr><tr><td>16. Ours</td><td>CNN*</td><td>=</td><td></td><td>Targeted Pert.</td><td>P</td><td>+</td><td>9,12,14</td></tr></table>",
1419
+ "bbox": [
1420
+ 176,
1421
+ 101,
1422
+ 821,
1423
+ 318
1424
+ ],
1425
+ "page_idx": 11
1426
+ },
1427
+ {
1428
+ "type": "text",
1429
+ "text": "(ii) Estimate Jacobian $G$ (L3): We estimate a $\\mathbb { R } ^ { K \\times D }$ jacobian matrix on a surrogate model $F$ . By default, we use as $F$ a randomly initialized model (more details in Appendix E.1). Each row of $G$ represents the gradient direction (in parameter space $\\mathbb { R } ^ { D }$ ) over log likelihood of class $k$ . ",
1430
+ "bbox": [
1431
+ 204,
1432
+ 388,
1433
+ 825,
1434
+ 444
1435
+ ],
1436
+ "page_idx": 11
1437
+ },
1438
+ {
1439
+ "type": "text",
1440
+ "text": "(iii) Maximize MAD Objective (L4): We find the optimal direction $\\boldsymbol { y } ^ { * }$ which maximizes the MAD objective (Eq. 3). To compute the arg max, we iterative over the $K$ extremes of the probability simplex $\\Delta ^ { K }$ to find ${ \\pmb y } ^ { * }$ which maximizes the objective. The extreme ${ \\pmb y } _ { k }$ denotes a probability vector with $y _ { k } = 1$ . ",
1441
+ "bbox": [
1442
+ 200,
1443
+ 450,
1444
+ 825,
1445
+ 506
1446
+ ],
1447
+ "page_idx": 11
1448
+ },
1449
+ {
1450
+ "type": "text",
1451
+ "text": "(iv) Enforce Utility Constraint (L5-7): We enforce the perturbation utility constraint (Eq. 7) by considering a linear interpolation of ${ \\pmb y } ^ { * }$ and $\\textbf { { y } }$ . The resulting interpolation probability vector $\\tilde { \\pmb y } : = h ( \\alpha ^ { * } )$ represents the utility-constrained perturbed prediction that is returned instead of $\\textbf { { y } }$ . ",
1452
+ "bbox": [
1453
+ 202,
1454
+ 512,
1455
+ 825,
1456
+ 568
1457
+ ],
1458
+ "page_idx": 11
1459
+ },
1460
+ {
1461
+ "type": "text",
1462
+ "text": "1 Function PerturbedPredict-MAD $( { \\pmb x } )$ : Input: Input data $_ { \\textbf { \\em x } }$ , model to defend $F _ { V } ( \\bf { \\cdot } ; \\mu \\ v { v } _ { V } )$ , proxy attacker model $F ( \\cdot ; w )$ Output: Perturbed posterior probability $\\tilde { \\pmb { y } } \\in \\Delta ^ { K }$ s.t. $\\mathrm { d i s t } ( \\tilde { \\pmb { y } } , \\pmb { y } ) \\le \\epsilon$ \n2 ${ \\pmb y } : = F _ { V } ( { \\pmb x } ; { \\pmb w } _ { V } )$ // Obtain $K$ -dim posteriors \n3 $\\pmb { G } : = \\nabla _ { \\pmb { w } } \\log F ( \\pmb { x } ; \\pmb { w } )$ // Pre-compute $\\left( \\mathbb { K } \\texttt { x D } \\right)$ ) Jacobian GT yk GT y 2 \n4 y∗ := arg maxyk∈ext(∆K) ||GT yk||2 ||GT y||2 \r\r2 // Alternatively ext $( \\Delta _ { k } ^ { K } )$ for MAD-argmax \n5 Define $h ( \\alpha ) = ( 1 - \\alpha ) \\pmb { y } + \\alpha \\pmb { y } ^ { \\ast }$ \n6 $\\begin{array} { r } { \\alpha ^ { * } : = \\arg \\operatorname* { m a x } _ { \\alpha \\in [ 0 , 1 ] , \\mathrm { d i s t } ( \\cdot ) \\leq \\epsilon } \\ \\mathrm { d i s t } ( h ( \\alpha ) , \\ y ^ { * } ) } \\end{array}$ // Find optimal step-size via bisection, or OptStep(.) for $L _ { p }$ norms \n7 $\\tilde { y } : = h ( \\alpha ^ { * } )$ // Perturbed probabilities \n8 return $\\tilde { y }$ \n9 \n10 Function OptStep(y, y∗, \u000f, p): \n11 α∗ := max n \u000f||y−y∗||p , 1o \n12 return $\\ b { \\alpha } ^ { * }$ ",
1463
+ "bbox": [
1464
+ 183,
1465
+ 598,
1466
+ 816,
1467
+ 891
1468
+ ],
1469
+ "page_idx": 11
1470
+ },
1471
+ {
1472
+ "type": "text",
1473
+ "text": "D ATTACK MODELS: RECAP AND IMPLEMENTATION DETAILS ",
1474
+ "text_level": 1,
1475
+ "bbox": [
1476
+ 174,
1477
+ 102,
1478
+ 702,
1479
+ 118
1480
+ ],
1481
+ "page_idx": 12
1482
+ },
1483
+ {
1484
+ "type": "text",
1485
+ "text": "Jacobian Based Data Augmentation (jbda) (Papernot et al., 2017b). The motivation of the approach is to obtain a surrogate of the victim black-box classifier, with an end-goal of performing evasion attacks (Biggio et al., 2013; Goodfellow et al., 2014). We restrict discussions primarily to the first part of constructing the surrogate. To obtain the surrogate (the stolen model), the authors depend on an unlabeled ‘seed’ set, typically from the same distribution as that used to train the victim model. As a result, the attacker assumes (mild) knowledge of the input data distribution and the class-label of the victim. ",
1486
+ "bbox": [
1487
+ 174,
1488
+ 137,
1489
+ 825,
1490
+ 234
1491
+ ],
1492
+ "page_idx": 12
1493
+ },
1494
+ {
1495
+ "type": "text",
1496
+ "text": "The key idea behind the approach is to query perturbations of inputs, to obtain a reasonable approximation of the decision boundary of the victim model. The attack strategy involves performing the following steps in a repeated manner: (i) images from the substitute set (initially the seed) $\\mathcal { D }$ is labeled by querying the victim model $F _ { V }$ as an oracle labeler; (ii) the surrogate model $F _ { A }$ is trained on the substitute dataset; (iii) the substitute set is augmented using perturbations of existing images: $\\mathscr { D } _ { \\rho + 1 } = \\mathscr { D } _ { \\rho } \\cup \\{ \\pmb { x } + \\lambda _ { \\rho + 1 } \\cdot \\mathrm { s g n } ( J _ { F } [ F _ { A } ( \\pmb { x } ) ] ) : \\pmb { x } \\in \\mathscr { D } _ { \\rho } \\}$ , where $J$ is the jacobian function. ",
1497
+ "bbox": [
1498
+ 174,
1499
+ 242,
1500
+ 825,
1501
+ 327
1502
+ ],
1503
+ "page_idx": 12
1504
+ },
1505
+ {
1506
+ "type": "text",
1507
+ "text": "We use a seed set of: 100 (MNIST and FashionMNIST), 500 (CIFAR10, CUB200, Caltech256) and 1000 (CIFAR100). We use the default set of hyperparameters of Papernot et al. (2017b) in other respects. ",
1508
+ "bbox": [
1509
+ 174,
1510
+ 332,
1511
+ 825,
1512
+ 375
1513
+ ],
1514
+ "page_idx": 12
1515
+ },
1516
+ {
1517
+ "type": "text",
1518
+ "text": "Jacobian Based $\\{ \\mathbf { s e l f } , \\mathbf { t o p } { \\mathbf { - } } \\mathbf { k } \\}$ (jbself, jbtop3) (Juuti et al., 2019) . The authors generalize the above approach, by extending the manner in which the synthetic samples are produced. In jbself, the jacobian is calculated w.r.t to $k$ nearest classes and in jb-self, w.r.t the maximum a posterior class predicted by $F _ { A }$ . ",
1519
+ "bbox": [
1520
+ 174,
1521
+ 385,
1522
+ 825,
1523
+ 441
1524
+ ],
1525
+ "page_idx": 12
1526
+ },
1527
+ {
1528
+ "type": "text",
1529
+ "text": "Knockoff Nets (knockoff) (Orekondy et al., 2019) . Knockoff is a recent attack model, which demonstrated model stealing can be performed without access to seed samples. Rather, the queries to the black-box involve natural images (which can be unrelated to the training data of the victim model) sampled from a large independent data source e.g., ImageNet1K. Consequently, no knowledge of the input data distribution nor the class-label space of the victim model is required to perform model stealing. The paper proposes two strategies on how to sample images to query: random and adaptive. We use the random strategy in the paper, since adaptive resulted in marginal increases in an open-world setup (which we have). ",
1530
+ "bbox": [
1531
+ 174,
1532
+ 450,
1533
+ 825,
1534
+ 563
1535
+ ],
1536
+ "page_idx": 12
1537
+ },
1538
+ {
1539
+ "type": "text",
1540
+ "text": "As the independent data sources in our knockoff attacks, we use: EMNIST-Letters (when stealing MNIST victim model), EMNIST (FashionMNIST), CIFAR100 (CIFAR10), CIFAR10 (CIFAR100), ImageNet1k (CUB200, Caltech256). Overlap between query images and the training data of the victim models are purely co-incidental. ",
1541
+ "bbox": [
1542
+ 174,
1543
+ 570,
1544
+ 825,
1545
+ 626
1546
+ ],
1547
+ "page_idx": 12
1548
+ },
1549
+ {
1550
+ "type": "text",
1551
+ "text": "We use the code from the project’s public github repository. ",
1552
+ "bbox": [
1553
+ 174,
1554
+ 632,
1555
+ 565,
1556
+ 647
1557
+ ],
1558
+ "page_idx": 12
1559
+ },
1560
+ {
1561
+ "type": "text",
1562
+ "text": "Evaluating Attacks. The resulting replica model $F _ { A }$ from all the above attack strategies are evaluated on a held-out test set. We remark that the replica model is evaluated as-is, without additional finetuning or modifications. Similar to prior work, we evaluate the accuracies of $F _ { A }$ on the victim’s held-out test set. Evaluating both stolen and the victim model on the same test set allows for fair head-to-head comparison. ",
1563
+ "bbox": [
1564
+ 174,
1565
+ 657,
1566
+ 823,
1567
+ 728
1568
+ ],
1569
+ "page_idx": 12
1570
+ },
1571
+ {
1572
+ "type": "text",
1573
+ "text": "E SUPPLEMENTARY ANALYSIS ",
1574
+ "text_level": 1,
1575
+ "bbox": [
1576
+ 176,
1577
+ 750,
1578
+ 444,
1579
+ 765
1580
+ ],
1581
+ "page_idx": 12
1582
+ },
1583
+ {
1584
+ "type": "text",
1585
+ "text": "In this section, we present additional analysis to supplement Section 5.2.3. ",
1586
+ "bbox": [
1587
+ 176,
1588
+ 781,
1589
+ 660,
1590
+ 796
1591
+ ],
1592
+ "page_idx": 12
1593
+ },
1594
+ {
1595
+ "type": "text",
1596
+ "text": "E.1 ESTIMATING $G$ ",
1597
+ "text_level": 1,
1598
+ "bbox": [
1599
+ 174,
1600
+ 813,
1601
+ 321,
1602
+ 828
1603
+ ],
1604
+ "page_idx": 12
1605
+ },
1606
+ {
1607
+ "type": "text",
1608
+ "text": "Central to our defense is estimating the jacobian matrix $\\boldsymbol { G } = \\nabla _ { w } \\log \\boldsymbol { F } ( \\boldsymbol { x } ; \\boldsymbol { w } )$ (Eq. 5), where $F ( \\cdot ; w )$ is the attacker’s model. However, a defender with black-box attacker knowledge (where $F$ is unknown) requires determining $G$ by instead using a surrogate model $F _ { \\mathrm { s u r } }$ . We determine choice of $F _ { \\mathrm { s u r } }$ empirically by studying two factors: (a) architecture of $F _ { s u r }$ : choice of defender’s surrogate architecture robust to varying attacker architectures (see Fig. A2); and (b) initialization of $F _ { s u r }$ : initialization of the surrogate model parameters plays a crucial role in providing a better defense. We consider four choices of initialization: $\\{$ ‘rand’, ‘early’, ‘mid’, ‘late $\\}$ which exhibits approximately {chance-level $2 5 \\%$ , $50 \\%$ , $7 5 \\% \\}$ test accuracies respectively. We observe (see Fig. A3) that a randomly initialized model, which is far from convergence, provides better gradient signals in crafting perturbations. ",
1609
+ "bbox": [
1610
+ 174,
1611
+ 839,
1612
+ 825,
1613
+ 924
1614
+ ],
1615
+ "page_idx": 12
1616
+ },
1617
+ {
1618
+ "type": "image",
1619
+ "img_path": "images/153ac1308928aa6c767d311403df37674d0d28f28f63d471fd8c6e311822d091.jpg",
1620
+ "image_caption": [
1621
+ "Figure A2: Influence of attacker architecture choices on a fixed surrogate. "
1622
+ ],
1623
+ "image_footnote": [],
1624
+ "bbox": [
1625
+ 181,
1626
+ 102,
1627
+ 338,
1628
+ 248
1629
+ ],
1630
+ "page_idx": 13
1631
+ },
1632
+ {
1633
+ "type": "image",
1634
+ "img_path": "images/9f9dfe314f17b55b6e6cd891bc699dc96d3b17b415a70a5a64a55af790a3daf0.jpg",
1635
+ "image_caption": [
1636
+ "Figure A3: Influence of Initialization of a VGG16 Surrogate Model. ‘rand’ $=$ random initialization, (‘early’, ’mid’, ’late’) $= \\sim ( 2 5 , 5 0 , 7 5 ) \\%$ test accuracy of surrogate on test set. "
1637
+ ],
1638
+ "image_footnote": [],
1639
+ "bbox": [
1640
+ 369,
1641
+ 109,
1642
+ 815,
1643
+ 251
1644
+ ],
1645
+ "page_idx": 13
1646
+ },
1647
+ {
1648
+ "type": "table",
1649
+ "img_path": "images/0338f418c4cbb6fe069b868081f6391c941ec999b609f73e9a71c9d3c284d7a1.jpg",
1650
+ "table_caption": [],
1651
+ "table_footnote": [
1652
+ "Table A3: Run times (in ms). We report the mean and standard deviation of predictions of undefended and defended models, computed over 10K predictions. "
1653
+ ],
1654
+ "table_body": "<table><tr><td></td><td>Undefended</td><td>MAD</td></tr><tr><td>MNIST</td><td>0.88 ± 14.41</td><td>6.47 ±12.25</td></tr><tr><td>FashionMNIST</td><td>0.89 ±15.76</td><td>6.65 ± 14.16</td></tr><tr><td>CIFAR10</td><td>1.93 ±13.02</td><td>8.58 ±15.02</td></tr><tr><td>CIFAR100</td><td>2.15 ± 18.82</td><td>69.26 ± 21.4</td></tr><tr><td>CUBS200</td><td>4.45 ± 9.66</td><td>446.93 ± 23.87</td></tr><tr><td>Caltech256</td><td>4.93 ± 21.25</td><td>815.97 ± 30.3</td></tr></table>",
1655
+ "bbox": [
1656
+ 346,
1657
+ 325,
1658
+ 651,
1659
+ 431
1660
+ ],
1661
+ "page_idx": 13
1662
+ },
1663
+ {
1664
+ "type": "text",
1665
+ "text": "",
1666
+ "bbox": [
1667
+ 174,
1668
+ 491,
1669
+ 825,
1670
+ 547
1671
+ ],
1672
+ "page_idx": 13
1673
+ },
1674
+ {
1675
+ "type": "text",
1676
+ "text": "E.2 RUN-TIME ANALYSIS ",
1677
+ "text_level": 1,
1678
+ "bbox": [
1679
+ 176,
1680
+ 568,
1681
+ 364,
1682
+ 583
1683
+ ],
1684
+ "page_idx": 13
1685
+ },
1686
+ {
1687
+ "type": "text",
1688
+ "text": "We present the run-times of our defended and undefended models in Table A3. The reported numbers were summarized over 10K unique predictions performed on an Nvidia Tesla V100. We find our optimization procedure Eq. (4-7) for all models take under a second, with at most 0.8s in the case of Caltech256. The primary computational bottleneck of our defense implementation is estimating matrix $G \\in \\mathbb { R } ^ { K \\times D }$ in Eq. 5, which currently requires performing $K$ (i.e., number of output classes) backward passes through the surrogate model. Consequently, we find that our inference times on Caltech256 can be further reduced to $0 . 3 \\mathrm { s } \\pm 0 . 0 4$ by using a more efficient surrogate architecture (e.g., ResNet-34). ",
1689
+ "bbox": [
1690
+ 173,
1691
+ 595,
1692
+ 825,
1693
+ 707
1694
+ ],
1695
+ "page_idx": 13
1696
+ },
1697
+ {
1698
+ "type": "text",
1699
+ "text": "F ADDITIONAL PLOTS ",
1700
+ "text_level": 1,
1701
+ "bbox": [
1702
+ 176,
1703
+ 729,
1704
+ 375,
1705
+ 746
1706
+ ],
1707
+ "page_idx": 13
1708
+ },
1709
+ {
1710
+ "type": "text",
1711
+ "text": "F.1 ATTACKER EVALUATION ",
1712
+ "text_level": 1,
1713
+ "bbox": [
1714
+ 174,
1715
+ 763,
1716
+ 383,
1717
+ 779
1718
+ ],
1719
+ "page_idx": 13
1720
+ },
1721
+ {
1722
+ "type": "text",
1723
+ "text": "We present evaluation of all attacks considered in the paper on an undefended model in Figure A4. Furthermore, specific to the knockoff attack, we analyze how training using only the top-1 label (instead of complete posterior information) affects the attacker in Figure A5. ",
1724
+ "bbox": [
1725
+ 174,
1726
+ 791,
1727
+ 825,
1728
+ 834
1729
+ ],
1730
+ "page_idx": 13
1731
+ },
1732
+ {
1733
+ "type": "text",
1734
+ "text": "F.2 BUDGET VS. ACCURACY ",
1735
+ "text_level": 1,
1736
+ "bbox": [
1737
+ 174,
1738
+ 854,
1739
+ 387,
1740
+ 868
1741
+ ],
1742
+ "page_idx": 13
1743
+ },
1744
+ {
1745
+ "type": "text",
1746
+ "text": "We plot the budget (i.e., number of distinct black-box attack queries to the defender) vs. the test accuracy of the defender/attacker in Figure A6. The figure supplements Figure 1 and the discussion found in Section 5.2.1 of the main paper. ",
1747
+ "bbox": [
1748
+ 176,
1749
+ 882,
1750
+ 823,
1751
+ 924
1752
+ ],
1753
+ "page_idx": 13
1754
+ },
1755
+ {
1756
+ "type": "image",
1757
+ "img_path": "images/968ed9b6fa6cf410d5fe914d5b8e15393feb3e9080191b93fd9d452e5563020c.jpg",
1758
+ "image_caption": [
1759
+ "Figure A4: Evaluation of all attacks on undefended victim models. "
1760
+ ],
1761
+ "image_footnote": [],
1762
+ "bbox": [
1763
+ 176,
1764
+ 137,
1765
+ 823,
1766
+ 247
1767
+ ],
1768
+ "page_idx": 14
1769
+ },
1770
+ {
1771
+ "type": "image",
1772
+ "img_path": "images/63bb498a5d948a35bd3a6147ae4418c96ac52a1153e64b56876efc2195d87af2.jpg",
1773
+ "image_caption": [
1774
+ "Figure A5: Stolen model trained using knockoff strategy on complete posterior information $( y )$ and only the top-1 label of the posteriors (arg $\\operatorname* { m a x } _ { k } y _ { k } ,$ ). "
1775
+ ],
1776
+ "image_footnote": [],
1777
+ "bbox": [
1778
+ 176,
1779
+ 352,
1780
+ 823,
1781
+ 460
1782
+ ],
1783
+ "page_idx": 14
1784
+ },
1785
+ {
1786
+ "type": "image",
1787
+ "img_path": "images/a29287cb397358a8d7eb84c6b41de899159996bb2f98075dde89cadd0bd8a0ed.jpg",
1788
+ "image_caption": [
1789
+ "Figure A6: Budget vs. Test Accuracy. Supplements Fig. 3c in the main paper. "
1790
+ ],
1791
+ "image_footnote": [],
1792
+ "bbox": [
1793
+ 174,
1794
+ 579,
1795
+ 820,
1796
+ 861
1797
+ ],
1798
+ "page_idx": 14
1799
+ },
1800
+ {
1801
+ "type": "image",
1802
+ "img_path": "images/cbea626041732899afd7bc150fff641c88d6ec6f05c67a8fe5ad9c4fdcd2d5c3.jpg",
1803
+ "image_caption": [
1804
+ "Figure A7: Attacker argmax. Supplements Fig. 4 in the main paper. "
1805
+ ],
1806
+ "image_footnote": [],
1807
+ "bbox": [
1808
+ 176,
1809
+ 102,
1810
+ 794,
1811
+ 220
1812
+ ],
1813
+ "page_idx": 15
1814
+ },
1815
+ {
1816
+ "type": "image",
1817
+ "img_path": "images/814c5ebd205a8b527661505f8785c1172d914ec1f85919f5b6ecca8a93a8ced1.jpg",
1818
+ "image_caption": [
1819
+ "Figure A8: Histogram of Angular Deviations (Black-box setting). Supplements Fig. 6 in the main paper. The test-loss during of the attacker model for each of the histograms (over multiple $\\epsilon$ values) are provided in the bottom row. "
1820
+ ],
1821
+ "image_footnote": [],
1822
+ "bbox": [
1823
+ 171,
1824
+ 257,
1825
+ 823,
1826
+ 500
1827
+ ],
1828
+ "page_idx": 15
1829
+ },
1830
+ {
1831
+ "type": "text",
1832
+ "text": "F.3 ATTACKER ARGMAX ",
1833
+ "text_level": 1,
1834
+ "bbox": [
1835
+ 174,
1836
+ 571,
1837
+ 354,
1838
+ 585
1839
+ ],
1840
+ "page_idx": 15
1841
+ },
1842
+ {
1843
+ "type": "text",
1844
+ "text": "In Figure A7, we perform the non-replicability vs. utility evaluation (complementing Fig. 5 in the main paper) under a special situation: the attacker discards the probabilities and only uses the top-1 Black-box s‘argmax’ label to train the stolen model. Relevant discussion can be found in Section 5.2.2. ",
1845
+ "bbox": [
1846
+ 174,
1847
+ 598,
1848
+ 825,
1849
+ 638
1850
+ ],
1851
+ "page_idx": 15
1852
+ },
1853
+ {
1854
+ "type": "text",
1855
+ "text": "F.4 BLACK-BOX ANGULAR DEVIATIONS ",
1856
+ "text_level": 1,
1857
+ "bbox": [
1858
+ 176,
1859
+ 656,
1860
+ 467,
1861
+ 670
1862
+ ],
1863
+ "page_idx": 15
1864
+ },
1865
+ {
1866
+ "type": "text",
1867
+ "text": "In Figure A8, we provide the angular deviations obtained in a black-box setting over the course of training the attack model. We train the attacker model using the transfer set obtained by the knockoff approach (the strongest attacker in our experiments) for 50 epochs using a SGD $( \\mathrm { l r } = 0 . 0 1 $ , momentum $= 0 . 5$ ) and a batch size of 64. The experiment compliments our previous discussion in Section 5.2.3 of the main paper under “How much angular deviation does MAD introduce?”. As before, we estimate the angular deviations as: $\\begin{array} { r } { \\theta = \\operatorname { a r c c o s } { \\frac { { \\mathbf { \\em u } } \\cdot { \\mathbf { \\boldsymbol { a } } } } { | | { \\mathbf { \\boldsymbol { u } } } | | | | | { \\mathbf { \\boldsymbol { a } } } | | } } } \\end{array}$ , where $\\pmb { u } = \\nabla _ { \\pmb { w } } L ( \\pmb { w } _ { t } , \\pmb { y } , \\cdot )$ and $\\pmb { a } = \\nabla _ { \\pmb { w } } L ( \\pmb { w } _ { t } , \\tilde { \\pmb { y } } , \\cdot )$ . We observe from Figure A8: (i) the defensive angular deviations introduced by MAD to posterior predictions transfer to a black-box attacker setting, when crafting perturbations without access to the adversary’s model parameters; and (ii) although the setting introduces lower angular deviations at the extreme case of $\\epsilon { = } 2 . 0$ (e.g., $1 1 4 . 7 ^ { \\circ } 7 6 . 5 ^ { \\circ }$ in CIFAR10), we observe the perturbation sufficient to maximize the attacker’s test loss. We find significant angular deviations introduced by our approach in a black-box setting as well. ",
1868
+ "bbox": [
1869
+ 173,
1870
+ 683,
1871
+ 825,
1872
+ 853
1873
+ ],
1874
+ "page_idx": 15
1875
+ },
1876
+ {
1877
+ "type": "text",
1878
+ "text": "F.5 MAD ABLATION EXPERIMENTS ",
1879
+ "text_level": 1,
1880
+ "bbox": [
1881
+ 176,
1882
+ 869,
1883
+ 439,
1884
+ 883
1885
+ ],
1886
+ "page_idx": 15
1887
+ },
1888
+ {
1889
+ "type": "text",
1890
+ "text": "We present the ablation experiments covering all defender models in Figure A9. Relevant discussion is available in Section 5.2.3 of the main paper under “Ablative Analysis”. ",
1891
+ "bbox": [
1892
+ 174,
1893
+ 895,
1894
+ 823,
1895
+ 924
1896
+ ],
1897
+ "page_idx": 15
1898
+ },
1899
+ {
1900
+ "type": "image",
1901
+ "img_path": "images/ebbb31ab9a0a9f8937895ef989636c604e4dbcd058782a781ec0012e2eba3820.jpg",
1902
+ "image_caption": [
1903
+ "Figure A9: MAD ablation experiments. Supplements Fig. 8 in the main paper. "
1904
+ ],
1905
+ "image_footnote": [],
1906
+ "bbox": [
1907
+ 176,
1908
+ 387,
1909
+ 794,
1910
+ 612
1911
+ ],
1912
+ "page_idx": 16
1913
+ }
1914
+ ]
parse/train/SyevYxHtDB/SyevYxHtDB_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SyevYxHtDB/SyevYxHtDB_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rkRwGg-0Z/rkRwGg-0Z.md ADDED
@@ -0,0 +1,306 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # BEYOND WORD IMPORTANCE: CONTEXTUAL DECOMPOSITION TO EXTRACT INTERACTIONS FROM LSTMS
2
+
3
+ Peter J. Liu Google Brain Mountain View, CA
4
+
5
+ W. James Murdoch ∗ Department of Statistics University of California, Berkeley jmurdoch@berkeley.edu
6
+
7
+ Bin Yu
8
+ Department of Statistics
9
+ Department of EECS
10
+ University of California, Berkeley
11
+
12
+ # ABSTRACT
13
+
14
+ The driving force behind the recent success of LSTMs has been their ability to learn complex and non-linear relationships. Consequently, our inability to describe these relationships has led to LSTMs being characterized as black boxes. To this end, we introduce contextual decomposition (CD), an interpretation algorithm for analysing individual predictions made by standard LSTMs, without any changes to the underlying model. By decomposing the output of a LSTM, CD captures the contributions of combinations of words or variables to the final prediction of an LSTM. On the task of sentiment analysis with the Yelp and SST data sets, we show that CD is able to reliably identify words and phrases of contrasting sentiment, and how they are combined to yield the LSTM’s final prediction. Using the phrase-level labels in SST, we also demonstrate that CD is able to successfully extract positive and negative negations from an LSTM, something which has not previously been done.
15
+
16
+ # 1 INTRODUCTION
17
+
18
+ In comparison with simpler linear models, techniques from deep learning have achieved impressive accuracy by effectively learning non-linear interactions between features. However, due to our inability to describe the learned interactions, this improvement in accuracy has come at the cost of state of the art predictive algorithms being commonly regarded as black-boxes. In the domain of natural language processing (NLP), Long Short Term Memory networks (LSTMs) (Hochreiter & Schmidhuber, 1997) have become a basic building block, yielding excellent performance across a wide variety of tasks (Sutskever et al., 2014) (Rajpurkar et al., 2016) (Melis et al., 2017), while remaining largely inscrutable.
19
+
20
+ In this work, we introduce contextual decomposition (CD), a novel interpretation method for explaining individual predictions made by an LSTM without any modifications to the underlying model. CD extracts information about not only which words contributed to a LSTM’s prediction, but also how they were combined in order to yield the final prediction. By mathematically decomposing the LSTM’s output, we are able to disambiguate the contributions made at each step by different parts of the sentence.
21
+
22
+ To validate the CD interpretations extracted from an LSTM, we evaluate on the problem of sentiment analysis. In particular, we demonstrate that CD is capable of identifying words and phrases of differing sentiment within a given review. CD is also used to successfully extract positive and negative negations from an LSTM, something that has not previously been done. As a consequence of this analysis, we also show that prior interpretation methods produce scores which have document-level information built into them in complex, unspecified ways. For instance, prior work often identifies strongly negative phrases contained within positive reviews as neutral, or even positive.
23
+
24
+ # 2 RELATED WORK
25
+
26
+ The most relevant prior work on interpreting LSTMs has focused on approaches for computing word-level importance scores, with evaluation protocols varying greatly. Murdoch & Szlam (2017) introduced a decomposition of the LSTM’s output embedding into a sum over word coefficients, and demonstrated that those coefficients are meaningful by using them to distill LSTMs into rules-based classifiers. Li et al. (2016) took a more black box approach, called Leave One Out, by observing the change in log probability resulting from replacing a given word vector with a zero vector, and relied solely on anecdotal evaluation. Finally, Sundararajan et al. (2017) presents a general gradient-based technique, called Integrated Gradients, which was validated both theoretically and with empirical anecdotes. In contrast to our proposed method, this line of work has been limited to word-based importance scores, ignoring the interactions between variables which make LSTMs so accurate.
27
+
28
+ Another line of work (Karpathy et al., 2015) (Strobelt et al., 2016) has focused on analysing the movement of raw gate activations over a sequence. Karpathy et al. (2015) was able to identify some co-ordinates of the cell state that correspond to semantically meaningful attributes, such as whether the text is in quotes. However, most of the cell co-ordinates were uninterpretable, and it is not clear how these co-ordinates combine to contribute to the actual prediction.
29
+
30
+ Decomposition-based approaches to interpretation have also been applied to convolutional neural networks (CNNs) (Bach et al., 2015) (Shrikumar et al., 2017). However, they have been limited to producing pixel-level importance scores, ignoring interactions between pixels, which are clearly quite important. Our approach is similar to these in that it computes an exact decomposition, but we leverage the unique gating structure of LSTMs in order to extract interactions.
31
+
32
+ Attention based models (Bahdanau et al., 2014) offer another means of providing some interpretability. Such models have been successfully applied to many problems, yielding improved performance (Rush et al., 2015) (Xu et al., 2015). In contrast to other word importance scores, attention is limited in that it only provides an indirect indicator of importance, with no directionality, i.e. what class the word is important for. Although attention weights are often cited anecdotally, they have not been evaluated, empirically or otherwise, as an interpretation technique. As with other prior work, attention is also incapable of describing interactions between words.
33
+
34
+ # 3 CONTEXTUAL DECOMPOSITION OF LSTMS
35
+
36
+ Given an arbitrary phrase contained within an input, we present a novel decomposition of the output of an LSTM into a sum of two contributions: those resulting solely from the given phrase, and those involving other factors. The key insight behind this decomposition is that the gating dynamics unique to LSTMs are a vehicle for modeling interactions between variables.
37
+
38
+ # 3.1 LONG SHORT TERM MEMORY NETWORKS
39
+
40
+ Over the past few years, LSTMs have become a core component of neural NLP systems. Given a sequence of word embeddings $x _ { 1 } , . . . , x _ { T } \in \mathbb { R } ^ { d _ { 1 } }$ , a cell and state vector $c _ { t } , h _ { t } \in \mathbb { R } ^ { \dot { d } _ { 2 } }$ are computed for each element by iteratively applying the below equations, with initialization $h _ { 0 } = c _ { 0 } = 0$ .
41
+
42
+ $$
43
+ \begin{array} { r l } & { o _ { t } = \sigma ( W _ { o } x _ { t } + V _ { o } h _ { t - 1 } + b _ { o } ) } \\ & { f _ { t } = \sigma ( W _ { f } x _ { t } + V _ { f } h _ { t - 1 } + b _ { f } ) } \\ & { i _ { t } = \sigma ( W _ { i } x _ { t } + V _ { i } h _ { t - 1 } + b _ { i } ) } \\ & { g _ { t } = \operatorname { t a n h } ( W _ { g } x _ { t } + V _ { g } h _ { t - 1 } + b _ { g } ) } \\ & { c _ { t } = f _ { t } \odot c _ { t - 1 } + i _ { t } \odot g _ { t } } \\ & { h _ { t } = o _ { t } \odot \operatorname { t a n h } ( c _ { t } ) } \end{array}
44
+ $$
45
+
46
+ Where Wo, Wi, Wf , Wg ∈ Rd1×d2 , $V _ { o } , V _ { f } , V _ { i } , V _ { g } \in \mathbb { R } ^ { d _ { 2 } \times d _ { 2 } } , b _ { o } , b _ { g } , b _ { i } , b _ { g } \in \mathbb { R } ^ { d _ { 2 } }$ and $\odot$ denotes element-wise multiplication. $o _ { t } , f _ { t }$ and $i _ { t }$ are often referred to as output, forget and input gates, respectively, due to the fact that their values are bounded between 0 and 1, and that they are used in element-wise multiplication.
47
+
48
+ After processing the full sequence, the final state $h _ { T }$ is treated as a vector of learned features, and used as input to a multinomial logistic regression, often called SoftMax, to return a probability distribution $p$ over $C$ classes, with
49
+
50
+ $$
51
+ p _ { j } = \mathrm { S o f t M a x } ( W h _ { T } ) _ { j } = \frac { \exp ( W _ { j } h _ { T } ) } { \sum _ { k = 1 } ^ { C } \exp ( W _ { k } h _ { t } ) }
52
+ $$
53
+
54
+ # 3.2 CONTEXTUAL DECOMPOSITION OF LSTM
55
+
56
+ We now introduce contextual decomposition, our proposed method for interpreting LSTMs. Given an arbitrary phrase $x _ { q } , . . . , x _ { r }$ , where $1 \leq q \leq r \leq T$ , we now decompose each output and cell state $c _ { t } , h _ { t }$ in Equations 5 and 6 into a sum of two contributions.
57
+
58
+ $$
59
+ \begin{array} { l } { h _ { t } = \beta _ { t } + \gamma _ { t } } \\ { c _ { t } = \beta _ { t } ^ { c } + \gamma _ { t } ^ { c } } \end{array}
60
+ $$
61
+
62
+ The decomposition is constructed so that $\beta _ { t }$ corresponds to contributions made solely by the given phrase to $h _ { t }$ , and that $\gamma _ { t }$ corresponds to contributions involving, at least in part, elements outside of the phrase. $\beta _ { t } ^ { c }$ and $\gamma _ { t } ^ { c }$ represent analogous contributions to $c _ { t }$ .
63
+
64
+ Using this decomposition for the final output state $W h _ { T }$ in Equation 7 yields
65
+
66
+ $$
67
+ p = \operatorname { S o f t M a x } ( W \beta _ { T } + W \gamma _ { T } )
68
+ $$
69
+
70
+ Here $W \beta _ { T }$ provides a quantitative score for the phrase’s contribution to the LSTM’s prediction. As this score corresponds to the input to a logistic regression, it may be interpreted in the same way as a standard logistic regression coefficient.
71
+
72
+ # 3.2.1 DISAMBIGUATING INTERACTIONS BETWEEN GATES
73
+
74
+ In the cell update Equation 5, neuron values in each of $i _ { t }$ and $g _ { t }$ are independently determined by both the contribution at that step, $x _ { t }$ , as well as prior context provided by $h _ { t - 1 } = \beta _ { t - 1 } + \gamma _ { t - 1 }$ . Thus, in computing the element-wise product $i _ { t } \odot g _ { t }$ , often referred to as gating, contributions made by $x _ { t }$ to $i _ { t }$ interact with contributions made by $h _ { t }$ to $g _ { t }$ , and vice versa.
75
+
76
+ We leverage this simple insight to construct our decomposition. First, assume that we have a way of linearizing the gates and updates in Equations 2, 3, 4 so that we can write each of them as a linear sum of contributions from each of their inputs.
77
+
78
+ $$
79
+ \begin{array} { r l } & { i _ { t } = \sigma ( W _ { i } x _ { t } + V _ { i } h _ { t - 1 } + b _ { i } ) } \\ & { \quad = L _ { \sigma } ( W _ { i } x _ { t } ) + L _ { \sigma } ( V _ { i } h _ { t - 1 } ) + L _ { \sigma } ( b _ { i } ) } \end{array}
80
+ $$
81
+
82
+ When we use this linearization in the cell update Equation 5, the products between gates become products over linear sums of contributions from different factors. Upon expanding these products, the resulting cross-terms yield a natural interpretation as being interactions between variables. In particular, cross-terms can be assigned as to whether they resulted solely from the phrase, e.g. $\mathsf { \bar { L } } _ { \sigma } ( V _ { i } \beta _ { t - 1 } ) \odot L _ { \operatorname { t a n h } } ( V _ { g } \beta _ { t - 1 } )$ , from some interaction between the phrase and other factors, e.g. $L _ { \sigma } ( V _ { i } \beta _ { t - 1 } ) \odot L _ { \operatorname { t a n h } } ( V _ { g } \gamma _ { t - 1 } )$ , or purely from other factors, e.g. $L _ { \sigma } ( \bar { b } _ { i } ) \odot L _ { \mathrm { t a n h } } ( V _ { g } \gamma _ { t - 1 } )$ .
83
+
84
+ Mirroring the recurrent nature of LSTMs, the above insights allow us to recursively compute our decomposition, with the initializations $\beta _ { 0 } = \beta _ { 0 } ^ { c } = \gamma _ { 0 } = \gamma _ { 0 } ^ { c } = 0$ . We derive below the update equations for the case where $q \leq t \leq r$ , so that the current time step is contained within the phrase. The other case is similar, and the general recursion formula is provided in Appendix 6.2.
85
+
86
+ For clarity, we decompose the two products in the cell update Equation 5 separately. As discussed above, we simply linearize the gates involved, expand the resulting product of sums, and group the cross-terms according to whether or not their contributions derive solely from the specified phrase, or otherwise. Terms are determined to derive solely from the specified phrase if they involve products from some combination of $\beta _ { t - 1 } , \beta _ { t - 1 } ^ { c } , x _ { t }$ and $b _ { i }$ or $b _ { g }$ (but not both). When $t$ is not within the phrase, products involving $x _ { t }$ are treated as not deriving from the phrase.
87
+
88
+ $$
89
+ \begin{array} { r l } & { f _ { t } \odot c _ { t - 1 } = \left( L _ { \sigma } ( W _ { f } x _ { t } ) + L _ { \sigma } ( V _ { f } \beta _ { t - 1 } ) + L _ { \sigma } ( V _ { f } \gamma _ { t - 1 } ) + L _ { \sigma } ( b _ { f } ) \right) \odot \left( \beta _ { t - 1 } ^ { c } + \gamma _ { t - 1 } ^ { c } \right) } \\ & { \qquad = \left( \left[ L _ { \sigma } ( W _ { f } x _ { t } ) + L _ { \sigma } ( V _ { f } \beta _ { t - 1 } ) + L _ { \sigma } ( b _ { f } ) \right] \odot \beta _ { t - 1 } ^ { c } \right) } \\ & { \qquad + \left( L _ { \sigma } ( V _ { f } \gamma _ { t - 1 } ) \odot \beta _ { t - 1 } ^ { c } + f _ { t } \odot \gamma _ { t - 1 } ^ { c } \right) } \\ & { \qquad = \beta _ { t } ^ { f } + \gamma _ { t } ^ { f } } \end{array}
90
+ $$
91
+
92
+ $$
93
+ \begin{array} { r l } { i _ { t } \odot g _ { t } = [ L _ { \sigma } ( W _ { i } x _ { t } ) + L _ { \sigma } ( V _ { i } \beta _ { t - 1 } ) + L _ { \sigma } ( V _ { i } \gamma _ { t - 1 } ) + L _ { \sigma } ( b _ { i } ) ] } \\ { \odot [ L _ { \mathrm { t a n h } } ( W _ { g } x _ { t } ) + L _ { \mathrm { t a n h } } ( V _ { g } \beta _ { t - 1 } ) + L _ { \mathrm { t a n h } } ( V _ { g } \gamma _ { t - 1 } ) + L _ { \mathrm { t a n h } } ( b _ { g } ) ] } \\ { = [ L _ { \sigma } ( W _ { i } x _ { t } ) \odot [ L _ { \mathrm { t a n h } } ( W _ { g } x _ { t } ) + L _ { \mathrm { t a n h } } ( V _ { g } \beta _ { t - 1 } ) + L _ { \mathrm { t a n h } } ( b _ { g } ) ] } \\ { + L _ { \sigma } ( V _ { i } \beta _ { t - 1 } ) \odot [ L _ { \mathrm { t a n h } } ( W _ { g } x _ { t } ) + L _ { \mathrm { t a n h } } ( V _ { g } \beta _ { t - 1 } ) + L _ { \mathrm { t a n h } } ( b _ { g } ) ] } \\ { + L _ { \sigma } ( b _ { i } ) \odot [ L _ { \mathrm { t a n h } } ( W _ { g } x _ { t } ) + L _ { \mathrm { t a n h } } ( V _ { g } \beta _ { t - 1 } ) ] ] } \\ { + [ L _ { \sigma } ( V _ { i } \gamma _ { t - 1 } ) \odot g _ { t } + i _ { t } \odot L _ { \mathrm { t a n h } } ( V _ { g } \gamma _ { t - 1 } ) - L _ { \sigma } ( V _ { i } \gamma _ { t - 1 } ) \odot L _ { \mathrm { t a n h } } ( V _ { g } \gamma _ { t - 1 } ) } \\ { + \ell _ { \sigma } ( b _ { i } ) \odot L _ { \mathrm { t a n h } } ( b _ { g } ) ] } \\ { = \beta _ { t } ^ { u } + \gamma _ { t } ^ { u } } \end{array}
94
+ $$
95
+
96
+ Having decomposed the two components of the cell update equation, we can attain our decomposition of $c _ { t }$ by summing the two contributions.
97
+
98
+ $$
99
+ \begin{array} { l } { \beta _ { t } ^ { c } = \beta _ { t } ^ { f } + \beta _ { t } ^ { u } } \\ { \gamma _ { t } ^ { c } = \gamma _ { t } ^ { f } + \gamma _ { t } ^ { u } } \end{array}
100
+ $$
101
+
102
+ Once we have computed the decomposition of $c _ { t }$ , it is relatively simple to compute the resulting transformation of $h _ { t }$ by linearizing the tanh function in 6. Note that we could similarly decompose the output gate as we treated the forget gate above, but we empirically found this to not produce improved results.
103
+
104
+ $$
105
+ \begin{array} { r l } & { h _ { t } = o _ { t } \odot \operatorname { t a n h } ( c _ { t } ) } \\ & { \phantom { = } = o _ { t } \odot [ L _ { \operatorname { t a n h } } ( \beta _ { t } ^ { c } ) + L _ { \operatorname { t a n h } } ( \gamma _ { t } ^ { c } ) ] } \\ & { \phantom { = } = o _ { t } \odot L _ { \operatorname { t a n h } } ( \beta _ { t } ^ { c } ) + o _ { t } \odot L _ { \operatorname { t a n h } } ( \gamma _ { t } ^ { c } ) } \\ & { \phantom { = } = \beta _ { t } + \gamma _ { t } } \end{array}
106
+ $$
107
+
108
+ # 3.2.2 LINEARIZING ACTIVATION FUNCTIONS
109
+
110
+ We now describe the linearizing functions $L _ { \sigma } , L _ { \mathrm { t a n h } }$ used in the above decomposition. Formally, for arbitrary $\{ y _ { 1 } , . . . , y _ { N } \} \in \mathbb { R }$ , where $N \leq 4$ , the problem is how to write
111
+
112
+ $$
113
+ \operatorname { t a n h } ( \sum _ { i = 1 } ^ { N } y _ { i } ) = \sum _ { i = 1 } ^ { N } L _ { \operatorname { t a n h } } ( y _ { i } )
114
+ $$
115
+
116
+ In the cases where there is a natural ordering to $\{ y _ { i } \}$ , prior work (Murdoch & Szlam, 2017) has used a telescoping sum consisting of differences of partial sums as a linearization technique, which we show below.
117
+
118
+ $$
119
+ L _ { \operatorname { t a n h } } ^ { \prime } ( y _ { k } ) = \operatorname { t a n h } ( \sum _ { j = 1 } ^ { k } y _ { j } ) - \operatorname { t a n h } ( \sum _ { j = 1 } ^ { k - 1 } y _ { j } )
120
+ $$
121
+
122
+ However, in our setting $\{ y _ { i } \}$ contains terms such as $\beta _ { t - 1 }$ , $\gamma _ { t - 1 }$ and $x _ { t }$ , which have no clear ordering. Thus, there is no natural way to order the sum in Equation 26. Instead, we compute an average over all orderings. Letting $\pi _ { 1 } , . . . , \pi _ { M _ { N } }$ denote the set of all permutations of $1 , . . . , N$ , our score is given below. Note that when $\pi _ { i } ( j ) = j$ , the corresponding term is equal to equation 26.
123
+
124
+ $$
125
+ L _ { \mathrm { t a n h } } ( y _ { k } ) = { \frac { 1 } { M _ { N } } } \sum _ { i = 1 } ^ { M _ { N } } [ \mathrm { t a n h } ( \sum _ { j = 1 } ^ { \pi _ { i } ^ { - 1 } ( k ) } y _ { \pi _ { i } ( j ) } ) - \mathrm { t a n h } ( \sum _ { j = 1 } ^ { \pi _ { i } ^ { - 1 } ( k ) - 1 } y _ { \pi _ { i } ( j ) } ) ]
126
+ $$
127
+
128
+ $L _ { \sigma }$ can be analogously derived. When one of the terms in the decomposition is a bias, we saw improvements when restricting to permutations where the bias is the first term.
129
+
130
+ As $N$ only ranges between 2 and 4, this linearization generally takes very simple forms. For instance, when $N = 2$ , the contribution assigned to $y _ { 1 }$ is
131
+
132
+ $$
133
+ L _ { \operatorname { t a n h } } ( y _ { 1 } ) = { \frac { 1 } { 2 } } ( [ \operatorname { t a n h } ( y _ { 1 } ) - \operatorname { t a n h } ( 0 ) ] + [ \operatorname { t a n h } ( y _ { 2 } + y _ { 1 } ) - \operatorname { t a n h } ( y _ { 1 } ) ] )
134
+ $$
135
+
136
+ This linearization was presented in a scalar context where $y _ { i } \in \mathbb { R }$ , but trivially generalizes to the vector setting $y _ { i } \in \mathbb { R } ^ { d _ { 2 } }$ . It can also be viewed as an approximation to Shapely values, as discussed in Lundberg & Lee (2016) and Shrikumar et al. (2017).
137
+
138
+ # 4 EXPERIMENTS
139
+
140
+ We now describe our empirical validation of CD on the task of sentiment analysis. First, we verify that, on the standard problem of word-level importance scores, CD compares favorably to prior work. Then we examine the behavior of CD for word and phrase level importance in situations involving compositionality, showing that CD is able to capture the composition of phrases of differing sentiment. Finally, we show that CD is capable of extracting instances of positive and negative negation. Code for computing CD scores is available online 1.
141
+
142
+ # 4.1 TRAINING DETAILS
143
+
144
+ We first describe the process for fitting models which are used to produce interpretations. As the primary intent of this paper is not predictive accuracy, we used standard best practices without much tuning. We implemented all models in Torch using default hyperparameters for weight initializations. All models were optimized using Adam (Kingma & Ba, 2014) with the default learning rate of 0.001 using early stopping on the validation set. For the linear model, we used a bag of vectors model, where we sum pre-trained Glove vectors (Pennington et al., 2014) and add an additional linear layer from the word embedding dimension, 300, to the number of classes, 2. We fine tuned both the word vectors and linear parameters. We will use the two data sets described below to validate our new CD method.
145
+
146
+ # 4.1.1 STANFORD SENTIMENT TREEBANK
147
+
148
+ We trained an LSTM model on the binary version of the Stanford Sentiment Treebank (SST) (Socher et al., 2013), a standard NLP benchmark which consists of movie reviews ranging from 2 to 52 words long. In addition to review-level labels, it also provides labels for each phrase in the binarized constituency parse tree. Following the hyperparameter choices in Tai et al. (2015), the word and hidden representations of our LSTM were set to 300 and 168, and word vectors were initialized to pretrained Glove vectors (Pennington et al., 2014). Our LSTM attains $8 7 . 2 \%$ accuracy, and we also train a logistic regression model with bag of words features, which attains $8 3 . 2 \%$ accuracy.
149
+
150
+ # 4.1.2 YELP POLARITY
151
+
152
+ Originally introduced in Zhang et al. (2015), the Yelp review polarity dataset was obtained from the Yelp Dataset Challenge and has train and test sets of sizes 560,000 and 38,000. The task is binary prediction for whether the review is positive (four or five stars) or negative (one or two stars). The reviews are relatively long, with an average length of 160.1 words. Following the guidelines from Zhang et al. (2015), we implement an LSTM model which attains $4 . 6 \%$ error, and an ngram logistic regression model, which attains $5 . 7 \%$ error. For computational reasons, we report interpretation results on a random subset of sentences of length at most 40 words. When computing integrated gradient scores, we found that numerical issues produced unusable outputs for roughly $6 \%$ of the samples. These reviews are excluded.
153
+
154
+ # 4.1.3 INTERPRETATION BASELINES
155
+
156
+ We compare the interpretations produced by CD against four state of the art baselines: cell decomposition (Murdoch & Szlam, 2017), integrated gradients (Sundararajan et al., 2017), leave one out (Li et al., 2016), and gradient times input. We refer the reader to Section 2 for descriptions of these algorithms. For our gradient baseline, we compute the gradient of the output probability with respect to the word embeddings, and report the dot product between the word vector and its gradient. For integrated gradients, producing reasonable values required extended experimentation and communication with the creators regarding the choice of baselines and scaling issues. We ultimately used sequences of periods for our baselines, and rescaled the scores for each review by the standard deviation of the scores for that review, a trick not previously mentioned in the literature. To obtain phrase scores for word-based baselines integrated gradients, cell decomposition, and gradients, we sum the scores of the words contained within the phrase.
157
+
158
+ # 4.2 UNIGRAM (WORD) SCORES
159
+
160
+ Before examining the novel, phrase-level dynamics of CD, we first verify that it compares favorably to prior work for the standard use case of producing unigram coefficients. When sufficiently accurate in terms of prediction, logistic regression coefficients are generally treated as a gold standard for interpretability. In particular, when applied to sentiment analysis the ordering of words given by their coefficient value provides a qualitatively sensible measure of importance. Thus, when determining the validity of coefficients extracted from an LSTM, we should expect there to be a meaningful relationship between the CD scores and logistic regression coefficients.
161
+
162
+ In order to evaluate the word-level coefficients extracted by the CD method, we construct scatter plots with each point consisting of a single word in the validation set. The two values plotted correspond to the coefficient from logistic regression and importance score extracted from the LSTM. For a quantitative measure of accuracy, we use pearson correlation coefficient.
163
+
164
+ We report quantitative and qualitative results in Appendix 6.1.3. For SST, CD and integrated gradients, with correlations of 0.76 and 0.72, respectively, are substantially better than other methods, with correlations of at most 0.51. On Yelp, the gap is not as big, but CD is still very competitive, having correlation 0.52 with other methods ranging from 0.34 to 0.56. Having verified reasonably strong results in this base case, we now proceed to show the benefits of CD.
165
+
166
+ # 4.3 IDENTIFYING DISSENTING SUBPHRASES
167
+
168
+ We now show that, for phrases of at most five words, existing methods are unable to recognize subphrases with differing sentiments. For example, consider the phrase “used to be my favorite”, which is of negative sentiment. The word “favorite”, however, is strongly positive, having a logistic regression coefficient in the 93rd percentile. Nonetheless, existing methods consistently rank “favorite” as being highly negative or neutral. In contrast, as shown in Table 1, CD is able to identify “my favorite” as being strongly positive, and ”used to be” as strongly negative. A similar dynamic also occurs with the phrase “not worth the time”. The main justification for using LSTMs over simpler models is precisely that they are able to capture these kinds of interactions. Thus, it is important that an interpretation algorithm is able to properly uncover how the interactions are being handled.
169
+
170
+ ![](images/49969a54064e1166c84a579237619270f38b949b1721a19e12bb7c83d780e9bb.jpg)
171
+ Table 1: Heat maps for portion of yelp review with different attribution techniques. Only CD captures that ”favorite” is positive.
172
+
173
+ Using the above as a motivating example, we now show that a similar trend holds throughout the Yelp polarity dataset. In particular, we conduct a search for situations similar to the above, where a strongly positive/negative phrase contains a strongly dissenting subphrase. Phrases are scored using the logistic regression with n-gram features described in Section 4.1, and included if their absolute score is over 1.5. We then examine the distribution of scores for the dissenting subphrases, which are analogous to “favorite”.
174
+
175
+ For an effective interpretation algorithm, the distribution of scores for positive and negative dissenting subphrases should be significantly separate, with positive subphrases having positive scores, and vice versa. However, as can be seen in Appendix 6.1.1, for prior methods these two distributions are nearly identical. The CD distributions, on the other hand, are significantly separate, indicating that what we observed anecdotally above holds in a more general setting.
176
+
177
+ # 4.4 EXAMINING HIGH-LEVEL COMPOSITIONALITY
178
+
179
+ We now show that prior methods struggle to identify cases where a sizable portion of a review (between one and two thirds) has polarity different from the LSTM’s prediction. For instance, consider the review in Table 2, where the first phrase is clearly positive, but the second phrase causes the review to ultimately be negative. CD is the only method able to accurately capture this dynamic.
180
+
181
+ By leveraging the phrase-level labels provided in SST, we can show that this pattern holds in the general case. In particular, we conduct a search for reviews similar to the above example. The search criteria are whether a review contains a phrase labeled by SST to be of opposing sentiment to the review-level SST label, and is between one and two thirds the length of the review.
182
+
183
+ In Appendix 6.1.2, we show the distribution of the resulting positive and negative phrases for different attribution methods. A successful interpretation method would have a sizable gap between these two distributions, with positive phrases having mostly positive scores, and negative phrases mostly negative. However, prior methods struggle to satisfy these criteria. $87 \%$ of all positive phrases are labelled as negative by integrated gradients, and cell decompositions (Murdoch & Szlam, 2017) even have the distributions flipped, with negative phrases yielding more positive scores than the positive phrases. CD, on the other hand, provides a very clear difference in distributions. To quantify this separation between positive and negative distributions, we examine a two-sample KolmogorovSmirnov one-sided test statistic, a common test for the difference of distributions with values ranging from 0 to 1. CD produces a score of 0.74, indicating a strong difference between positive and negative distributions, with other methods achieving scores of 0 (cell decomposition), 0.33 (integrated gradients), 0.58 (leave one out) and 0.61 (gradient), indicating weaker distributional differences. Given that gradient and leave one out were the weakest performers in unigram scores, this provides strong evidence for the superiority of CD.
184
+
185
+ ![](images/32f52c81ca52981eca38f8ffeb69810a8328143dfd72876042d452ac88e32296.jpg)
186
+ Table 2: Heat maps for portion of review from SST with different attribution techniques. Only CD captures that the first phrase is positive.
187
+
188
+ # 4.5 CONTEXTUAL DECOMPOSITION (CD) CAPTURES NEGATION
189
+
190
+ In order to understand an LSTM’s prediction mechanism, it is important to understand not just the contribution of a phrase, but how that contribution is computed. For phrases involving negation, we now demonstrate that we can use CD to empirically show that our LSTM learns a negation mechanism.
191
+
192
+ Using the phrase labels in SST, we search over the training set for instances of negation. In particular, we search for phrases of length less than ten with the first child containing a negation phrase (such as “not” or “lacks”, full list provided in Appendix 6.3) in the first two words, and the second child having positive or negative sentiment. Due to noise in the labels, we also included phrases where the entire phrase was non-neutral, and the second child contained a non-neutral phrase. We identify both positive negation, such as “isn’t a bad film”, and negative negation, such as “isn’t very interesting”, where the direction is given by the SST-provided label of the phrase.
193
+
194
+ For a given negation phrase, we extract a negation interaction by computing the CD score of the entire phrase and subtracting the CD scores of the phrase being negated and the negation term itself. The resulting score can be interpreted as an n-gram feature. Note that, of the methods we compare against, only leave one out is capable of producing such interaction scores. For reference, we also provide the distribution of all interactions for phrases of length less than 5.
195
+
196
+ We present the distribution of extracted scores in Figure 1. For CD, we can see that there is a clear distinction between positive and negative negations, and that the negation interactions are centered on the outer edges of the distribution of interactions. Leave one out is able to capture some of the interactions, but has a noticeable overlap between positive and negative negations around zero, indicating a high rate of false negatives.
197
+
198
+ # 4.6 IDENTIFYING SIMILAR PHRASES
199
+
200
+ Another benefit of using CDs for interpretation is that, in addition to providing importance scores, it also provides dense embeddings for arbitrary phrases and interactions, in the form of $\beta _ { T }$ discussed in Section 3.2. We anecdotally show that similarity in this embedding space corresponds to semantic similarity in the context of sentiment analysis.
201
+
202
+ In particular, for all words and binary interactions, we compute the average embedding $\beta _ { T }$ produced by CD across the training and validation sets. In Table 3, we show the nearest neighbours using a cosine similarity metric. The results are qualitatively sensible for three different kinds of interactions: positive negation, negative negation and modification, as well as positive and negative words. Note that we for positive and negative words, we chose the positive/negative parts of the negations, in order to emphasize that CD can disentangle this composition.
203
+
204
+ ![](images/2088734425d47ba3059adf203cb9ddc320c4efae3748d475c3a8767b0dca7781.jpg)
205
+ Figure 1: Distribution of scores for positive and negative negation coefficients relative to all interaction coefficients. Only leave one out and CD are capable of producing these interaction scores.
206
+
207
+ Table 3: Nearest neighbours for selected unigrams and interactions using CD embeddings
208
+
209
+ <table><tr><td>not entertain- ing</td><td>not bad</td><td>very funny</td><td>entertaining</td><td>bad</td></tr><tr><td>not funny</td><td>never dull</td><td>well-put- together piece</td><td>intelligent</td><td>dull</td></tr><tr><td>not engaging</td><td>n&#x27;t drag</td><td>entertaining romp</td><td>engaging</td><td>drag</td></tr><tr><td>never satisfac- tory</td><td>never fails</td><td>very good</td><td>satisfying</td><td>awful</td></tr><tr><td>not well</td><td>without sham</td><td>surprisingly sweet</td><td>admirable</td><td>tired</td></tr><tr><td>not fit</td><td>without missing</td><td>very well- written</td><td>funny</td><td>dreary</td></tr></table>
210
+
211
+ # 5 CONCLUSION
212
+
213
+ In this paper, we have proposed contextual decomposition (CD), an algorithm for interpreting individual predictions made by LSTMs without modifying the underlying model. In both NLP and general applications of LSTMs, CD produces importance scores for words (single variables in general), phrases (several variables together) and word interactions (variable interactions). Using two sentiment analysis datasets for empirical validation, we first show that for information also produced by prior methods, such as word-level scores, our method compares favorably. More importantly, we then show that CD is capable of identifying phrases of varying sentiment, and extracting meaningful word (or variable) interactions. This movement beyond word-level importance is critical for understanding a model as complex and highly non-linear as LSTMs.
214
+
215
+ # ACKNOWLEDGMENTS
216
+
217
+ This research was started during a summer internship at Google Brain, and later supported by a postgraduate scholarship-doctoral from NSERC and a data science research award from Adobe. This work is partially supported by Center for Science of Information (CSoI), an NSF Science and
218
+
219
+ Technology Center, under grant agreement CCF-0939370, ONR grant N00014-16-1-2664 and ARO grant W911NF1710005.
220
+
221
+ # REFERENCES
222
+
223
+ Sebastian Bach, Alexander Binder, Gregoire Montavon, Frederick Klauschen, Klaus-Robert M ´ uller, ¨ and Wojciech Samek. On pixel-wise explanations for non-linear classifier decisions by layer-wise relevance propagation. PloS one, 10(7):e0130140, 2015.
224
+
225
+ Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014.
226
+
227
+ Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9(8): 1735–1780, 1997.
228
+
229
+ Andrej Karpathy, Justin Johnson, and Li Fei-Fei. Visualizing and understanding recurrent networks. arXiv preprint arXiv:1506.02078, 2015.
230
+
231
+ Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
232
+
233
+ Jiwei Li, Will Monroe, and Dan Jurafsky. Understanding neural networks through representation erasure. CoRR, abs/1612.08220, 2016. URL http://arxiv.org/abs/1612.08220.
234
+
235
+ Scott Lundberg and Su-In Lee. An unexpected unity among methods for interpreting model predictions. arXiv preprint arXiv:1611.07478, 2016.
236
+
237
+ Gabor Melis, Chris Dyer, and Phil Blunsom. On the state of the art of evaluation in neural language ´ models. CoRR, abs/1707.05589, 2017. URL http://arxiv.org/abs/1707.05589.
238
+
239
+ W James Murdoch and Arthur Szlam. Automatic rule extraction from long short term memory networks. ICLR, 2017.
240
+
241
+ Jeffrey Pennington, Richard Socher, and Christopher Manning. Glove: Global vectors for word representation. In Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), pp. 1532–1543, 2014.
242
+
243
+ Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. Squad: $1 0 0 { , } 0 0 0 { + }$ questions for machine comprehension of text. arXiv preprint arXiv:1606.05250, 2016.
244
+
245
+ Alexander M Rush, Sumit Chopra, and Jason Weston. A neural attention model for abstractive sentence summarization. arXiv preprint arXiv:1509.00685, 2015.
246
+
247
+ Avanti Shrikumar, Peyton Greenside, and Anshul Kundaje. Learning important features through propagating activation differences. arXiv preprint arXiv:1704.02685, 2017.
248
+
249
+ 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.
250
+
251
+ Hendrik Strobelt, Sebastian Gehrmann, Bernd Huber, Hanspeter Pfister, and Alexander M Rush. Visual analysis of hidden state dynamics in recurrent neural networks. arXiv preprint arXiv:1606.07461, 2016.
252
+
253
+ Mukund Sundararajan, Ankur Taly, and Qiqi Yan. Axiomatic attribution for deep networks. CoRR, abs/1703.01365, 2017. URL http://arxiv.org/abs/1703.01365.
254
+
255
+ Ilya Sutskever, Oriol Vinyals, and Quoc V Le. Sequence to sequence learning with neural networks. In Advances in neural information processing systems, pp. 3104–3112, 2014.
256
+
257
+ 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.
258
+
259
+ Table 4: Correlation coefficients between logistic regression coefficients and extracted scores.
260
+
261
+ <table><tr><td>Attribution Method</td><td>Stanford Sentiment</td><td>Yelp Polarity</td></tr><tr><td>Gradient</td><td>0.375</td><td>0.336</td></tr><tr><td>Leave one out (Li et al., 2016)</td><td>0.510</td><td>0.358</td></tr><tr><td>Cell decomposition (Murdoch &amp; Szlam, 2017)</td><td>0.490</td><td>0.560</td></tr><tr><td>Integrated gradients (Sundararajan et al., 2017)</td><td>0.724</td><td>0.471</td></tr><tr><td>Contextual decompo- sition</td><td>0.758</td><td>0.520</td></tr></table>
262
+
263
+ Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhudinov, Rich Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. In International Conference on Machine Learning, pp. 2048–2057, 2015.
264
+
265
+ Xiang Zhang, Junbo Zhao, and Yann LeCun. Character-level convolutional networks for text classification. In Advances in neural information processing systems, pp. 649–657, 2015.
266
+
267
+ # 6 APPENDIX
268
+
269
+ # 6.1 PLOTS
270
+
271
+ 6.1.1 PLOTS FOR DISSENTING SUBPHRASES
272
+
273
+ We provide here the plots described in Section 4.3.
274
+
275
+ 6.1.2 PLOTS FOR HIGH-LEVEL COMPOSITIONALITY
276
+
277
+ We provide here the plots referenced in Section 4.4.
278
+
279
+ 6.1.3 LOGISTIC REGRESSION VERSUS EXTRACTED COEFFICIENTS SCATTERPLOTS
280
+
281
+ We provide here the scatterplots and correlations referenced in section 4.2.
282
+
283
+ # 6.2 GENERAL RECURSION FORMULA
284
+
285
+ We provide here the general recursion formula referenced in Section 3.2.1. The two cases that are considered is whether the current time step is during the phrase $\ Q \leq t \leq r ,$ ) or outside of the phrase ( $t < q$ or $t > r$ ).
286
+
287
+ $$
288
+ \begin{array} { r l r } { { \beta _ { t } ^ { f } = [ L _ { \sigma } ( V _ { f } \beta _ { t - 1 } ) + L _ { \sigma } ( b _ { f } ) + L _ { \sigma } ( V _ { f } x _ { t } ) ] _ { q \le t \le r } \| \odot \beta _ { t - 1 } ^ { c } } } \\ & { r _ { t } ^ { f } = f _ { t } \odot \gamma _ { t - 1 } ^ { c } + [ L _ { \sigma } ( V _ { f } \gamma _ { t - 1 } ) + L _ { \sigma } ( V _ { f } x _ { t } ) ] _ { t > q , t \le r } ] \odot \beta _ { t - 1 } ^ { c } } & { ( 3 0 ) } \\ & { u _ { t } ^ { u } = L _ { \sigma } ( V _ { i } \beta _ { t - 1 } ^ { c } ) \odot [ L _ { \operatorname { t a n h } } ( V _ { g } \beta _ { t - 1 } ^ { c } + L _ { \operatorname { t a n h } } ( b _ { g } ) ] + L _ { \sigma } ( b _ { i } ) \odot L _ { \operatorname { t a n h } } ( V _ { g } \beta _ { t - 1 } ^ { c } ) } & { ( 3 1 ) } \\ & { + [ L _ { \sigma } ( W _ { i } x _ { t } ) \odot [ L _ { \operatorname { t a n h } } ( W _ { g } x _ { t } ) + L _ { \operatorname { t a n h } } ( V _ { g } \beta _ { t - 1 } ) + L _ { \operatorname { t a n h } } ( b _ { g } ) ] + L _ { \operatorname { t a n h } } ( b _ { g } ) ] + L _ { \sigma } ( b _ { i } ) \odot L _ { \operatorname { t a n h } } ( W _ { g } x _ { t } ) ] _ { 1 q \le t \le r } } \\ & { u _ { t } ^ { u } = L _ { \sigma } ( V _ { i } \gamma _ { t - 1 } ) \odot g _ { t } + i _ { t } \odot L _ { \operatorname { t a n h } } ( V _ { g } \gamma _ { t - 1 } ) - L _ { \sigma } ( V _ { i } \gamma _ { t - 1 } ) \odot L _ { \operatorname { t a n h } } ( V _ { g } \gamma _ { t - 1 } ) + L _ { \sigma } ( b _ { i } ) \odot L _ { \operatorname { t a n h } } ( b _ { g } ) } \end{array}
289
+ $$
290
+
291
+ $$
292
+ + \left[ L _ { \sigma } ( W _ { i } x _ { t } ) \odot [ L _ { \operatorname { t a n h } } ( W _ { g } x _ { t } ) + L _ { \operatorname { t a n h } } ( V _ { g } \beta _ { t - 1 } ) + L _ { \operatorname { t a n h } } ( b _ { g } ) ] + L _ { \sigma } ( b _ { i } ) \odot L _ { \operatorname { t a n h } } ( W _ { g } x _ { t } ) ] 1 _ { t < q , t > \tau } \right] \Biggr \} .
293
+ $$
294
+
295
+ ![](images/2be13094db20ab17a2af6d43efaa9310a114d26a21669523868eb006e4f7a539.jpg)
296
+ Figure 2: The distribution of attributions for positive (negative) sub-phrases contained within negative (positive) phrases of length at most five in the Yelp polarity dataset. The positive and negative distributions are nearly identical for all methods except CD, indicating an inability of prior methods to distinguish between positive and negative phrases when occurring in the context of a phrase of the opposite sentiment
297
+
298
+ ![](images/1401f9caffb1ae28da2c4745dc242d70c71c3bc7b612eb10d0c536a8b19ed33e.jpg)
299
+ Figure 3: Distribution of positive and negative phrases, of length between one and two thirds of the full review, in SST. The positive and negative distributions are significantly more separate for CD than other methods, indicating that even at this coarse level of granularity, other methods still struggle.
300
+
301
+ ![](images/93b4789826a95170e6dc1eb176db032062a6b60ac43b6f9cf5f6e94c689c61d3.jpg)
302
+ Figure 4: Logistic regression coefficients versus coefficients extracted from an LSTM on SST. We include a least squares regression line. Stronger linear relationships in the plots correspond to better interpretation techniques.
303
+
304
+ # 6.3 LIST OF WORDS USED TO IDENTIFY NEGATIONS
305
+
306
+ To search for negations, we used the following list of negation words: not, n’t, lacks, nobody, nor, nothing, neither, never, none, nowhere, remotely
parse/train/rkRwGg-0Z/rkRwGg-0Z_content_list.json ADDED
@@ -0,0 +1,1566 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "BEYOND WORD IMPORTANCE: CONTEXTUAL DECOMPOSITION TO EXTRACT INTERACTIONS FROM LSTMS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 98,
9
+ 823,
10
+ 170
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Peter J. Liu Google Brain Mountain View, CA ",
17
+ "bbox": [
18
+ 429,
19
+ 195,
20
+ 562,
21
+ 237
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "W. James Murdoch ∗ Department of Statistics University of California, Berkeley jmurdoch@berkeley.edu ",
28
+ "bbox": [
29
+ 184,
30
+ 195,
31
+ 408,
32
+ 251
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Bin Yu \nDepartment of Statistics \nDepartment of EECS \nUniversity of California, Berkeley ",
39
+ "bbox": [
40
+ 584,
41
+ 195,
42
+ 810,
43
+ 251
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "ABSTRACT ",
50
+ "text_level": 1,
51
+ "bbox": [
52
+ 454,
53
+ 287,
54
+ 544,
55
+ 304
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "The driving force behind the recent success of LSTMs has been their ability to learn complex and non-linear relationships. Consequently, our inability to describe these relationships has led to LSTMs being characterized as black boxes. To this end, we introduce contextual decomposition (CD), an interpretation algorithm for analysing individual predictions made by standard LSTMs, without any changes to the underlying model. By decomposing the output of a LSTM, CD captures the contributions of combinations of words or variables to the final prediction of an LSTM. On the task of sentiment analysis with the Yelp and SST data sets, we show that CD is able to reliably identify words and phrases of contrasting sentiment, and how they are combined to yield the LSTM’s final prediction. Using the phrase-level labels in SST, we also demonstrate that CD is able to successfully extract positive and negative negations from an LSTM, something which has not previously been done. ",
62
+ "bbox": [
63
+ 233,
64
+ 324,
65
+ 764,
66
+ 505
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "1 INTRODUCTION ",
73
+ "text_level": 1,
74
+ "bbox": [
75
+ 176,
76
+ 545,
77
+ 336,
78
+ 560
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "In comparison with simpler linear models, techniques from deep learning have achieved impressive accuracy by effectively learning non-linear interactions between features. However, due to our inability to describe the learned interactions, this improvement in accuracy has come at the cost of state of the art predictive algorithms being commonly regarded as black-boxes. In the domain of natural language processing (NLP), Long Short Term Memory networks (LSTMs) (Hochreiter & Schmidhuber, 1997) have become a basic building block, yielding excellent performance across a wide variety of tasks (Sutskever et al., 2014) (Rajpurkar et al., 2016) (Melis et al., 2017), while remaining largely inscrutable. ",
85
+ "bbox": [
86
+ 174,
87
+ 580,
88
+ 825,
89
+ 693
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "In this work, we introduce contextual decomposition (CD), a novel interpretation method for explaining individual predictions made by an LSTM without any modifications to the underlying model. CD extracts information about not only which words contributed to a LSTM’s prediction, but also how they were combined in order to yield the final prediction. By mathematically decomposing the LSTM’s output, we are able to disambiguate the contributions made at each step by different parts of the sentence. ",
96
+ "bbox": [
97
+ 174,
98
+ 699,
99
+ 825,
100
+ 782
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "To validate the CD interpretations extracted from an LSTM, we evaluate on the problem of sentiment analysis. In particular, we demonstrate that CD is capable of identifying words and phrases of differing sentiment within a given review. CD is also used to successfully extract positive and negative negations from an LSTM, something that has not previously been done. As a consequence of this analysis, we also show that prior interpretation methods produce scores which have document-level information built into them in complex, unspecified ways. For instance, prior work often identifies strongly negative phrases contained within positive reviews as neutral, or even positive. ",
107
+ "bbox": [
108
+ 174,
109
+ 790,
110
+ 825,
111
+ 887
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "2 RELATED WORK ",
118
+ "text_level": 1,
119
+ "bbox": [
120
+ 176,
121
+ 102,
122
+ 344,
123
+ 117
124
+ ],
125
+ "page_idx": 1
126
+ },
127
+ {
128
+ "type": "text",
129
+ "text": "The most relevant prior work on interpreting LSTMs has focused on approaches for computing word-level importance scores, with evaluation protocols varying greatly. Murdoch & Szlam (2017) introduced a decomposition of the LSTM’s output embedding into a sum over word coefficients, and demonstrated that those coefficients are meaningful by using them to distill LSTMs into rules-based classifiers. Li et al. (2016) took a more black box approach, called Leave One Out, by observing the change in log probability resulting from replacing a given word vector with a zero vector, and relied solely on anecdotal evaluation. Finally, Sundararajan et al. (2017) presents a general gradient-based technique, called Integrated Gradients, which was validated both theoretically and with empirical anecdotes. In contrast to our proposed method, this line of work has been limited to word-based importance scores, ignoring the interactions between variables which make LSTMs so accurate. ",
130
+ "bbox": [
131
+ 174,
132
+ 132,
133
+ 825,
134
+ 272
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "Another line of work (Karpathy et al., 2015) (Strobelt et al., 2016) has focused on analysing the movement of raw gate activations over a sequence. Karpathy et al. (2015) was able to identify some co-ordinates of the cell state that correspond to semantically meaningful attributes, such as whether the text is in quotes. However, most of the cell co-ordinates were uninterpretable, and it is not clear how these co-ordinates combine to contribute to the actual prediction. ",
141
+ "bbox": [
142
+ 174,
143
+ 279,
144
+ 825,
145
+ 349
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "Decomposition-based approaches to interpretation have also been applied to convolutional neural networks (CNNs) (Bach et al., 2015) (Shrikumar et al., 2017). However, they have been limited to producing pixel-level importance scores, ignoring interactions between pixels, which are clearly quite important. Our approach is similar to these in that it computes an exact decomposition, but we leverage the unique gating structure of LSTMs in order to extract interactions. ",
152
+ "bbox": [
153
+ 174,
154
+ 356,
155
+ 825,
156
+ 425
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "Attention based models (Bahdanau et al., 2014) offer another means of providing some interpretability. Such models have been successfully applied to many problems, yielding improved performance (Rush et al., 2015) (Xu et al., 2015). In contrast to other word importance scores, attention is limited in that it only provides an indirect indicator of importance, with no directionality, i.e. what class the word is important for. Although attention weights are often cited anecdotally, they have not been evaluated, empirically or otherwise, as an interpretation technique. As with other prior work, attention is also incapable of describing interactions between words. ",
163
+ "bbox": [
164
+ 174,
165
+ 433,
166
+ 825,
167
+ 530
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "3 CONTEXTUAL DECOMPOSITION OF LSTMS ",
174
+ "text_level": 1,
175
+ "bbox": [
176
+ 174,
177
+ 550,
178
+ 568,
179
+ 566
180
+ ],
181
+ "page_idx": 1
182
+ },
183
+ {
184
+ "type": "text",
185
+ "text": "Given an arbitrary phrase contained within an input, we present a novel decomposition of the output of an LSTM into a sum of two contributions: those resulting solely from the given phrase, and those involving other factors. The key insight behind this decomposition is that the gating dynamics unique to LSTMs are a vehicle for modeling interactions between variables. ",
186
+ "bbox": [
187
+ 174,
188
+ 582,
189
+ 825,
190
+ 637
191
+ ],
192
+ "page_idx": 1
193
+ },
194
+ {
195
+ "type": "text",
196
+ "text": "3.1 LONG SHORT TERM MEMORY NETWORKS",
197
+ "text_level": 1,
198
+ "bbox": [
199
+ 176,
200
+ 654,
201
+ 508,
202
+ 667
203
+ ],
204
+ "page_idx": 1
205
+ },
206
+ {
207
+ "type": "text",
208
+ "text": "Over the past few years, LSTMs have become a core component of neural NLP systems. Given a sequence of word embeddings $x _ { 1 } , . . . , x _ { T } \\in \\mathbb { R } ^ { d _ { 1 } }$ , a cell and state vector $c _ { t } , h _ { t } \\in \\mathbb { R } ^ { \\dot { d } _ { 2 } }$ are computed for each element by iteratively applying the below equations, with initialization $h _ { 0 } = c _ { 0 } = 0$ . ",
209
+ "bbox": [
210
+ 174,
211
+ 680,
212
+ 825,
213
+ 722
214
+ ],
215
+ "page_idx": 1
216
+ },
217
+ {
218
+ "type": "equation",
219
+ "img_path": "images/aefd7924d07ec12471a24c148f5c885040306860907b3dc601686fc15a4fc3e1.jpg",
220
+ "text": "$$\n\\begin{array} { r l } & { o _ { t } = \\sigma ( W _ { o } x _ { t } + V _ { o } h _ { t - 1 } + b _ { o } ) } \\\\ & { f _ { t } = \\sigma ( W _ { f } x _ { t } + V _ { f } h _ { t - 1 } + b _ { f } ) } \\\\ & { i _ { t } = \\sigma ( W _ { i } x _ { t } + V _ { i } h _ { t - 1 } + b _ { i } ) } \\\\ & { g _ { t } = \\operatorname { t a n h } ( W _ { g } x _ { t } + V _ { g } h _ { t - 1 } + b _ { g } ) } \\\\ & { c _ { t } = f _ { t } \\odot c _ { t - 1 } + i _ { t } \\odot g _ { t } } \\\\ & { h _ { t } = o _ { t } \\odot \\operatorname { t a n h } ( c _ { t } ) } \\end{array}\n$$",
221
+ "text_format": "latex",
222
+ "bbox": [
223
+ 385,
224
+ 747,
225
+ 612,
226
+ 854
227
+ ],
228
+ "page_idx": 1
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "Where Wo, Wi, Wf , Wg ∈ Rd1×d2 , $V _ { o } , V _ { f } , V _ { i } , V _ { g } \\in \\mathbb { R } ^ { d _ { 2 } \\times d _ { 2 } } , b _ { o } , b _ { g } , b _ { i } , b _ { g } \\in \\mathbb { R } ^ { d _ { 2 } }$ and $\\odot$ denotes element-wise multiplication. $o _ { t } , f _ { t }$ and $i _ { t }$ are often referred to as output, forget and input gates, respectively, due to the fact that their values are bounded between 0 and 1, and that they are used in element-wise multiplication. ",
233
+ "bbox": [
234
+ 174,
235
+ 866,
236
+ 823,
237
+ 924
238
+ ],
239
+ "page_idx": 1
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "After processing the full sequence, the final state $h _ { T }$ is treated as a vector of learned features, and used as input to a multinomial logistic regression, often called SoftMax, to return a probability distribution $p$ over $C$ classes, with ",
244
+ "bbox": [
245
+ 174,
246
+ 103,
247
+ 825,
248
+ 146
249
+ ],
250
+ "page_idx": 2
251
+ },
252
+ {
253
+ "type": "equation",
254
+ "img_path": "images/36cd6745a7a012054314ffe1ac03914d890f9de3f04d42964562d4087cd26114.jpg",
255
+ "text": "$$\np _ { j } = \\mathrm { S o f t M a x } ( W h _ { T } ) _ { j } = \\frac { \\exp ( W _ { j } h _ { T } ) } { \\sum _ { k = 1 } ^ { C } \\exp ( W _ { k } h _ { t } ) }\n$$",
256
+ "text_format": "latex",
257
+ "bbox": [
258
+ 348,
259
+ 171,
260
+ 650,
261
+ 209
262
+ ],
263
+ "page_idx": 2
264
+ },
265
+ {
266
+ "type": "text",
267
+ "text": "3.2 CONTEXTUAL DECOMPOSITION OF LSTM ",
268
+ "text_level": 1,
269
+ "bbox": [
270
+ 173,
271
+ 222,
272
+ 509,
273
+ 238
274
+ ],
275
+ "page_idx": 2
276
+ },
277
+ {
278
+ "type": "text",
279
+ "text": "We now introduce contextual decomposition, our proposed method for interpreting LSTMs. Given an arbitrary phrase $x _ { q } , . . . , x _ { r }$ , where $1 \\leq q \\leq r \\leq T$ , we now decompose each output and cell state $c _ { t } , h _ { t }$ in Equations 5 and 6 into a sum of two contributions. ",
280
+ "bbox": [
281
+ 174,
282
+ 248,
283
+ 825,
284
+ 291
285
+ ],
286
+ "page_idx": 2
287
+ },
288
+ {
289
+ "type": "equation",
290
+ "img_path": "images/155bdf1cfa391f0a697fc71730fd1232623f8de9e197585f57b26796678ee9bf.jpg",
291
+ "text": "$$\n\\begin{array} { l } { h _ { t } = \\beta _ { t } + \\gamma _ { t } } \\\\ { c _ { t } = \\beta _ { t } ^ { c } + \\gamma _ { t } ^ { c } } \\end{array}\n$$",
292
+ "text_format": "latex",
293
+ "bbox": [
294
+ 452,
295
+ 297,
296
+ 547,
297
+ 335
298
+ ],
299
+ "page_idx": 2
300
+ },
301
+ {
302
+ "type": "text",
303
+ "text": "The decomposition is constructed so that $\\beta _ { t }$ corresponds to contributions made solely by the given phrase to $h _ { t }$ , and that $\\gamma _ { t }$ corresponds to contributions involving, at least in part, elements outside of the phrase. $\\beta _ { t } ^ { c }$ and $\\gamma _ { t } ^ { c }$ represent analogous contributions to $c _ { t }$ . ",
304
+ "bbox": [
305
+ 174,
306
+ 340,
307
+ 826,
308
+ 382
309
+ ],
310
+ "page_idx": 2
311
+ },
312
+ {
313
+ "type": "text",
314
+ "text": "Using this decomposition for the final output state $W h _ { T }$ in Equation 7 yields ",
315
+ "bbox": [
316
+ 173,
317
+ 388,
318
+ 679,
319
+ 404
320
+ ],
321
+ "page_idx": 2
322
+ },
323
+ {
324
+ "type": "equation",
325
+ "img_path": "images/07d90406186bdba2b6a508b2739fe4b0af00671f9d48788c131b576800a3d699.jpg",
326
+ "text": "$$\np = \\operatorname { S o f t M a x } ( W \\beta _ { T } + W \\gamma _ { T } )\n$$",
327
+ "text_format": "latex",
328
+ "bbox": [
329
+ 400,
330
+ 431,
331
+ 598,
332
+ 449
333
+ ],
334
+ "page_idx": 2
335
+ },
336
+ {
337
+ "type": "text",
338
+ "text": "Here $W \\beta _ { T }$ provides a quantitative score for the phrase’s contribution to the LSTM’s prediction. As this score corresponds to the input to a logistic regression, it may be interpreted in the same way as a standard logistic regression coefficient. ",
339
+ "bbox": [
340
+ 173,
341
+ 463,
342
+ 825,
343
+ 506
344
+ ],
345
+ "page_idx": 2
346
+ },
347
+ {
348
+ "type": "text",
349
+ "text": "3.2.1 DISAMBIGUATING INTERACTIONS BETWEEN GATES ",
350
+ "text_level": 1,
351
+ "bbox": [
352
+ 173,
353
+ 521,
354
+ 583,
355
+ 536
356
+ ],
357
+ "page_idx": 2
358
+ },
359
+ {
360
+ "type": "text",
361
+ "text": "In the cell update Equation 5, neuron values in each of $i _ { t }$ and $g _ { t }$ are independently determined by both the contribution at that step, $x _ { t }$ , as well as prior context provided by $h _ { t - 1 } = \\beta _ { t - 1 } + \\gamma _ { t - 1 }$ . Thus, in computing the element-wise product $i _ { t } \\odot g _ { t }$ , often referred to as gating, contributions made by $x _ { t }$ to $i _ { t }$ interact with contributions made by $h _ { t }$ to $g _ { t }$ , and vice versa. ",
362
+ "bbox": [
363
+ 173,
364
+ 545,
365
+ 825,
366
+ 602
367
+ ],
368
+ "page_idx": 2
369
+ },
370
+ {
371
+ "type": "text",
372
+ "text": "We leverage this simple insight to construct our decomposition. First, assume that we have a way of linearizing the gates and updates in Equations 2, 3, 4 so that we can write each of them as a linear sum of contributions from each of their inputs. ",
373
+ "bbox": [
374
+ 174,
375
+ 608,
376
+ 825,
377
+ 651
378
+ ],
379
+ "page_idx": 2
380
+ },
381
+ {
382
+ "type": "equation",
383
+ "img_path": "images/03cabac1ec095a78bcc3ea11bcadc9d33ce12caf64e102bfe0a49b2e28128cc1.jpg",
384
+ "text": "$$\n\\begin{array} { r l } & { i _ { t } = \\sigma ( W _ { i } x _ { t } + V _ { i } h _ { t - 1 } + b _ { i } ) } \\\\ & { \\quad = L _ { \\sigma } ( W _ { i } x _ { t } ) + L _ { \\sigma } ( V _ { i } h _ { t - 1 } ) + L _ { \\sigma } ( b _ { i } ) } \\end{array}\n$$",
385
+ "text_format": "latex",
386
+ "bbox": [
387
+ 362,
388
+ 678,
389
+ 633,
390
+ 717
391
+ ],
392
+ "page_idx": 2
393
+ },
394
+ {
395
+ "type": "text",
396
+ "text": "When we use this linearization in the cell update Equation 5, the products between gates become products over linear sums of contributions from different factors. Upon expanding these products, the resulting cross-terms yield a natural interpretation as being interactions between variables. In particular, cross-terms can be assigned as to whether they resulted solely from the phrase, e.g. $\\mathsf { \\bar { L } } _ { \\sigma } ( V _ { i } \\beta _ { t - 1 } ) \\odot L _ { \\operatorname { t a n h } } ( V _ { g } \\beta _ { t - 1 } )$ , from some interaction between the phrase and other factors, e.g. $L _ { \\sigma } ( V _ { i } \\beta _ { t - 1 } ) \\odot L _ { \\operatorname { t a n h } } ( V _ { g } \\gamma _ { t - 1 } )$ , or purely from other factors, e.g. $L _ { \\sigma } ( \\bar { b } _ { i } ) \\odot L _ { \\mathrm { t a n h } } ( V _ { g } \\gamma _ { t - 1 } )$ . ",
397
+ "bbox": [
398
+ 173,
399
+ 727,
400
+ 825,
401
+ 814
402
+ ],
403
+ "page_idx": 2
404
+ },
405
+ {
406
+ "type": "text",
407
+ "text": "Mirroring the recurrent nature of LSTMs, the above insights allow us to recursively compute our decomposition, with the initializations $\\beta _ { 0 } = \\beta _ { 0 } ^ { c } = \\gamma _ { 0 } = \\gamma _ { 0 } ^ { c } = 0$ . We derive below the update equations for the case where $q \\leq t \\leq r$ , so that the current time step is contained within the phrase. The other case is similar, and the general recursion formula is provided in Appendix 6.2. ",
408
+ "bbox": [
409
+ 174,
410
+ 818,
411
+ 825,
412
+ 875
413
+ ],
414
+ "page_idx": 2
415
+ },
416
+ {
417
+ "type": "text",
418
+ "text": "For clarity, we decompose the two products in the cell update Equation 5 separately. As discussed above, we simply linearize the gates involved, expand the resulting product of sums, and group the cross-terms according to whether or not their contributions derive solely from the specified phrase, or otherwise. Terms are determined to derive solely from the specified phrase if they involve products from some combination of $\\beta _ { t - 1 } , \\beta _ { t - 1 } ^ { c } , x _ { t }$ and $b _ { i }$ or $b _ { g }$ (but not both). When $t$ is not within the phrase, products involving $x _ { t }$ are treated as not deriving from the phrase. ",
419
+ "bbox": [
420
+ 174,
421
+ 881,
422
+ 823,
423
+ 924
424
+ ],
425
+ "page_idx": 2
426
+ },
427
+ {
428
+ "type": "text",
429
+ "text": "",
430
+ "bbox": [
431
+ 174,
432
+ 103,
433
+ 823,
434
+ 146
435
+ ],
436
+ "page_idx": 3
437
+ },
438
+ {
439
+ "type": "equation",
440
+ "img_path": "images/47a911402e77f4db0e01d1bfb448ae56df0b27cd8e1107700b1c1f9f12abb249.jpg",
441
+ "text": "$$\n\\begin{array} { r l } & { f _ { t } \\odot c _ { t - 1 } = \\left( L _ { \\sigma } ( W _ { f } x _ { t } ) + L _ { \\sigma } ( V _ { f } \\beta _ { t - 1 } ) + L _ { \\sigma } ( V _ { f } \\gamma _ { t - 1 } ) + L _ { \\sigma } ( b _ { f } ) \\right) \\odot \\left( \\beta _ { t - 1 } ^ { c } + \\gamma _ { t - 1 } ^ { c } \\right) } \\\\ & { \\qquad = \\left( \\left[ L _ { \\sigma } ( W _ { f } x _ { t } ) + L _ { \\sigma } ( V _ { f } \\beta _ { t - 1 } ) + L _ { \\sigma } ( b _ { f } ) \\right] \\odot \\beta _ { t - 1 } ^ { c } \\right) } \\\\ & { \\qquad + \\left( L _ { \\sigma } ( V _ { f } \\gamma _ { t - 1 } ) \\odot \\beta _ { t - 1 } ^ { c } + f _ { t } \\odot \\gamma _ { t - 1 } ^ { c } \\right) } \\\\ & { \\qquad = \\beta _ { t } ^ { f } + \\gamma _ { t } ^ { f } } \\end{array}\n$$",
442
+ "text_format": "latex",
443
+ "bbox": [
444
+ 207,
445
+ 148,
446
+ 764,
447
+ 229
448
+ ],
449
+ "page_idx": 3
450
+ },
451
+ {
452
+ "type": "equation",
453
+ "img_path": "images/cdca94547e54e9d6d1b11579ac416c65814d7dda5fc114ea67a884471e8f7289.jpg",
454
+ "text": "$$\n\\begin{array} { r l } { i _ { t } \\odot g _ { t } = [ L _ { \\sigma } ( W _ { i } x _ { t } ) + L _ { \\sigma } ( V _ { i } \\beta _ { t - 1 } ) + L _ { \\sigma } ( V _ { i } \\gamma _ { t - 1 } ) + L _ { \\sigma } ( b _ { i } ) ] } \\\\ { \\odot [ L _ { \\mathrm { t a n h } } ( W _ { g } x _ { t } ) + L _ { \\mathrm { t a n h } } ( V _ { g } \\beta _ { t - 1 } ) + L _ { \\mathrm { t a n h } } ( V _ { g } \\gamma _ { t - 1 } ) + L _ { \\mathrm { t a n h } } ( b _ { g } ) ] } \\\\ { = [ L _ { \\sigma } ( W _ { i } x _ { t } ) \\odot [ L _ { \\mathrm { t a n h } } ( W _ { g } x _ { t } ) + L _ { \\mathrm { t a n h } } ( V _ { g } \\beta _ { t - 1 } ) + L _ { \\mathrm { t a n h } } ( b _ { g } ) ] } \\\\ { + L _ { \\sigma } ( V _ { i } \\beta _ { t - 1 } ) \\odot [ L _ { \\mathrm { t a n h } } ( W _ { g } x _ { t } ) + L _ { \\mathrm { t a n h } } ( V _ { g } \\beta _ { t - 1 } ) + L _ { \\mathrm { t a n h } } ( b _ { g } ) ] } \\\\ { + L _ { \\sigma } ( b _ { i } ) \\odot [ L _ { \\mathrm { t a n h } } ( W _ { g } x _ { t } ) + L _ { \\mathrm { t a n h } } ( V _ { g } \\beta _ { t - 1 } ) ] ] } \\\\ { + [ L _ { \\sigma } ( V _ { i } \\gamma _ { t - 1 } ) \\odot g _ { t } + i _ { t } \\odot L _ { \\mathrm { t a n h } } ( V _ { g } \\gamma _ { t - 1 } ) - L _ { \\sigma } ( V _ { i } \\gamma _ { t - 1 } ) \\odot L _ { \\mathrm { t a n h } } ( V _ { g } \\gamma _ { t - 1 } ) } \\\\ { + \\ell _ { \\sigma } ( b _ { i } ) \\odot L _ { \\mathrm { t a n h } } ( b _ { g } ) ] } \\\\ { = \\beta _ { t } ^ { u } + \\gamma _ { t } ^ { u } } \\end{array}\n$$",
455
+ "text_format": "latex",
456
+ "bbox": [
457
+ 214,
458
+ 257,
459
+ 785,
460
+ 401
461
+ ],
462
+ "page_idx": 3
463
+ },
464
+ {
465
+ "type": "text",
466
+ "text": "Having decomposed the two components of the cell update equation, we can attain our decomposition of $c _ { t }$ by summing the two contributions. ",
467
+ "bbox": [
468
+ 174,
469
+ 411,
470
+ 823,
471
+ 439
472
+ ],
473
+ "page_idx": 3
474
+ },
475
+ {
476
+ "type": "equation",
477
+ "img_path": "images/2438185f3abaf618f825a82f7cb13b0b08988d69df24b5449aecfe519343adf0.jpg",
478
+ "text": "$$\n\\begin{array} { l } { \\beta _ { t } ^ { c } = \\beta _ { t } ^ { f } + \\beta _ { t } ^ { u } } \\\\ { \\gamma _ { t } ^ { c } = \\gamma _ { t } ^ { f } + \\gamma _ { t } ^ { u } } \\end{array}\n$$",
479
+ "text_format": "latex",
480
+ "bbox": [
481
+ 449,
482
+ 462,
483
+ 549,
484
+ 506
485
+ ],
486
+ "page_idx": 3
487
+ },
488
+ {
489
+ "type": "text",
490
+ "text": "Once we have computed the decomposition of $c _ { t }$ , it is relatively simple to compute the resulting transformation of $h _ { t }$ by linearizing the tanh function in 6. Note that we could similarly decompose the output gate as we treated the forget gate above, but we empirically found this to not produce improved results. ",
491
+ "bbox": [
492
+ 174,
493
+ 515,
494
+ 823,
495
+ 571
496
+ ],
497
+ "page_idx": 3
498
+ },
499
+ {
500
+ "type": "equation",
501
+ "img_path": "images/93fd05b32803f1afa747d147b77ffd633ecc66a55d7b14fffe650d59497187a3.jpg",
502
+ "text": "$$\n\\begin{array} { r l } & { h _ { t } = o _ { t } \\odot \\operatorname { t a n h } ( c _ { t } ) } \\\\ & { \\phantom { = } = o _ { t } \\odot [ L _ { \\operatorname { t a n h } } ( \\beta _ { t } ^ { c } ) + L _ { \\operatorname { t a n h } } ( \\gamma _ { t } ^ { c } ) ] } \\\\ & { \\phantom { = } = o _ { t } \\odot L _ { \\operatorname { t a n h } } ( \\beta _ { t } ^ { c } ) + o _ { t } \\odot L _ { \\operatorname { t a n h } } ( \\gamma _ { t } ^ { c } ) } \\\\ & { \\phantom { = } = \\beta _ { t } + \\gamma _ { t } } \\end{array}\n$$",
503
+ "text_format": "latex",
504
+ "bbox": [
505
+ 367,
506
+ 597,
507
+ 630,
508
+ 670
509
+ ],
510
+ "page_idx": 3
511
+ },
512
+ {
513
+ "type": "text",
514
+ "text": "3.2.2 LINEARIZING ACTIVATION FUNCTIONS ",
515
+ "text_level": 1,
516
+ "bbox": [
517
+ 176,
518
+ 679,
519
+ 501,
520
+ 694
521
+ ],
522
+ "page_idx": 3
523
+ },
524
+ {
525
+ "type": "text",
526
+ "text": "We now describe the linearizing functions $L _ { \\sigma } , L _ { \\mathrm { t a n h } }$ used in the above decomposition. Formally, for arbitrary $\\{ y _ { 1 } , . . . , y _ { N } \\} \\in \\mathbb { R }$ , where $N \\leq 4$ , the problem is how to write ",
527
+ "bbox": [
528
+ 173,
529
+ 704,
530
+ 825,
531
+ 733
532
+ ],
533
+ "page_idx": 3
534
+ },
535
+ {
536
+ "type": "equation",
537
+ "img_path": "images/6c32997310fafdb25c48bb9a7e78db4061814ae03b705c08568bd143abf32735.jpg",
538
+ "text": "$$\n\\operatorname { t a n h } ( \\sum _ { i = 1 } ^ { N } y _ { i } ) = \\sum _ { i = 1 } ^ { N } L _ { \\operatorname { t a n h } } ( y _ { i } )\n$$",
539
+ "text_format": "latex",
540
+ "bbox": [
541
+ 397,
542
+ 755,
543
+ 599,
544
+ 800
545
+ ],
546
+ "page_idx": 3
547
+ },
548
+ {
549
+ "type": "text",
550
+ "text": "In the cases where there is a natural ordering to $\\{ y _ { i } \\}$ , prior work (Murdoch & Szlam, 2017) has used a telescoping sum consisting of differences of partial sums as a linearization technique, which we show below. ",
551
+ "bbox": [
552
+ 173,
553
+ 810,
554
+ 825,
555
+ 853
556
+ ],
557
+ "page_idx": 3
558
+ },
559
+ {
560
+ "type": "equation",
561
+ "img_path": "images/7e914f96d97aa242cfd5c6ea545367377ad38ab17c4ac04e5257b92d44050c33.jpg",
562
+ "text": "$$\nL _ { \\operatorname { t a n h } } ^ { \\prime } ( y _ { k } ) = \\operatorname { t a n h } ( \\sum _ { j = 1 } ^ { k } y _ { j } ) - \\operatorname { t a n h } ( \\sum _ { j = 1 } ^ { k - 1 } y _ { j } )\n$$",
563
+ "text_format": "latex",
564
+ "bbox": [
565
+ 356,
566
+ 877,
567
+ 642,
568
+ 921
569
+ ],
570
+ "page_idx": 3
571
+ },
572
+ {
573
+ "type": "text",
574
+ "text": "However, in our setting $\\{ y _ { i } \\}$ contains terms such as $\\beta _ { t - 1 }$ , $\\gamma _ { t - 1 }$ and $x _ { t }$ , which have no clear ordering. Thus, there is no natural way to order the sum in Equation 26. Instead, we compute an average over all orderings. Letting $\\pi _ { 1 } , . . . , \\pi _ { M _ { N } }$ denote the set of all permutations of $1 , . . . , N$ , our score is given below. Note that when $\\pi _ { i } ( j ) = j$ , the corresponding term is equal to equation 26. ",
575
+ "bbox": [
576
+ 174,
577
+ 103,
578
+ 825,
579
+ 160
580
+ ],
581
+ "page_idx": 4
582
+ },
583
+ {
584
+ "type": "equation",
585
+ "img_path": "images/1f06b2309477e35ec58e55fc63bdb55fd6c23ba69976eee967fa7634a13e5e73.jpg",
586
+ "text": "$$\nL _ { \\mathrm { t a n h } } ( y _ { k } ) = { \\frac { 1 } { M _ { N } } } \\sum _ { i = 1 } ^ { M _ { N } } [ \\mathrm { t a n h } ( \\sum _ { j = 1 } ^ { \\pi _ { i } ^ { - 1 } ( k ) } y _ { \\pi _ { i } ( j ) } ) - \\mathrm { t a n h } ( \\sum _ { j = 1 } ^ { \\pi _ { i } ^ { - 1 } ( k ) - 1 } y _ { \\pi _ { i } ( j ) } ) ]\n$$",
587
+ "text_format": "latex",
588
+ "bbox": [
589
+ 274,
590
+ 189,
591
+ 725,
592
+ 238
593
+ ],
594
+ "page_idx": 4
595
+ },
596
+ {
597
+ "type": "text",
598
+ "text": "$L _ { \\sigma }$ can be analogously derived. When one of the terms in the decomposition is a bias, we saw improvements when restricting to permutations where the bias is the first term. ",
599
+ "bbox": [
600
+ 171,
601
+ 253,
602
+ 823,
603
+ 282
604
+ ],
605
+ "page_idx": 4
606
+ },
607
+ {
608
+ "type": "text",
609
+ "text": "As $N$ only ranges between 2 and 4, this linearization generally takes very simple forms. For instance, when $N = 2$ , the contribution assigned to $y _ { 1 }$ is ",
610
+ "bbox": [
611
+ 173,
612
+ 289,
613
+ 823,
614
+ 319
615
+ ],
616
+ "page_idx": 4
617
+ },
618
+ {
619
+ "type": "equation",
620
+ "img_path": "images/b4fe02ab6e22180c2f6af664b5aa8d6ecd1ba074aadd3137f19740666ae60f82.jpg",
621
+ "text": "$$\nL _ { \\operatorname { t a n h } } ( y _ { 1 } ) = { \\frac { 1 } { 2 } } ( [ \\operatorname { t a n h } ( y _ { 1 } ) - \\operatorname { t a n h } ( 0 ) ] + [ \\operatorname { t a n h } ( y _ { 2 } + y _ { 1 } ) - \\operatorname { t a n h } ( y _ { 1 } ) ] )\n$$",
622
+ "text_format": "latex",
623
+ "bbox": [
624
+ 266,
625
+ 345,
626
+ 730,
627
+ 377
628
+ ],
629
+ "page_idx": 4
630
+ },
631
+ {
632
+ "type": "text",
633
+ "text": "This linearization was presented in a scalar context where $y _ { i } \\in \\mathbb { R }$ , but trivially generalizes to the vector setting $y _ { i } \\in \\mathbb { R } ^ { d _ { 2 } }$ . It can also be viewed as an approximation to Shapely values, as discussed in Lundberg & Lee (2016) and Shrikumar et al. (2017). ",
634
+ "bbox": [
635
+ 176,
636
+ 393,
637
+ 825,
638
+ 435
639
+ ],
640
+ "page_idx": 4
641
+ },
642
+ {
643
+ "type": "text",
644
+ "text": "4 EXPERIMENTS ",
645
+ "text_level": 1,
646
+ "bbox": [
647
+ 174,
648
+ 459,
649
+ 326,
650
+ 476
651
+ ],
652
+ "page_idx": 4
653
+ },
654
+ {
655
+ "type": "text",
656
+ "text": "We now describe our empirical validation of CD on the task of sentiment analysis. First, we verify that, on the standard problem of word-level importance scores, CD compares favorably to prior work. Then we examine the behavior of CD for word and phrase level importance in situations involving compositionality, showing that CD is able to capture the composition of phrases of differing sentiment. Finally, we show that CD is capable of extracting instances of positive and negative negation. Code for computing CD scores is available online 1. ",
657
+ "bbox": [
658
+ 174,
659
+ 492,
660
+ 825,
661
+ 577
662
+ ],
663
+ "page_idx": 4
664
+ },
665
+ {
666
+ "type": "text",
667
+ "text": "4.1 TRAINING DETAILS ",
668
+ "text_level": 1,
669
+ "bbox": [
670
+ 176,
671
+ 597,
672
+ 351,
673
+ 612
674
+ ],
675
+ "page_idx": 4
676
+ },
677
+ {
678
+ "type": "text",
679
+ "text": "We first describe the process for fitting models which are used to produce interpretations. As the primary intent of this paper is not predictive accuracy, we used standard best practices without much tuning. We implemented all models in Torch using default hyperparameters for weight initializations. All models were optimized using Adam (Kingma & Ba, 2014) with the default learning rate of 0.001 using early stopping on the validation set. For the linear model, we used a bag of vectors model, where we sum pre-trained Glove vectors (Pennington et al., 2014) and add an additional linear layer from the word embedding dimension, 300, to the number of classes, 2. We fine tuned both the word vectors and linear parameters. We will use the two data sets described below to validate our new CD method. ",
680
+ "bbox": [
681
+ 173,
682
+ 625,
683
+ 825,
684
+ 751
685
+ ],
686
+ "page_idx": 4
687
+ },
688
+ {
689
+ "type": "text",
690
+ "text": "4.1.1 STANFORD SENTIMENT TREEBANK ",
691
+ "text_level": 1,
692
+ "bbox": [
693
+ 176,
694
+ 768,
695
+ 472,
696
+ 784
697
+ ],
698
+ "page_idx": 4
699
+ },
700
+ {
701
+ "type": "text",
702
+ "text": "We trained an LSTM model on the binary version of the Stanford Sentiment Treebank (SST) (Socher et al., 2013), a standard NLP benchmark which consists of movie reviews ranging from 2 to 52 words long. In addition to review-level labels, it also provides labels for each phrase in the binarized constituency parse tree. Following the hyperparameter choices in Tai et al. (2015), the word and hidden representations of our LSTM were set to 300 and 168, and word vectors were initialized to pretrained Glove vectors (Pennington et al., 2014). Our LSTM attains $8 7 . 2 \\%$ accuracy, and we also train a logistic regression model with bag of words features, which attains $8 3 . 2 \\%$ accuracy. ",
703
+ "bbox": [
704
+ 174,
705
+ 795,
706
+ 825,
707
+ 893
708
+ ],
709
+ "page_idx": 4
710
+ },
711
+ {
712
+ "type": "text",
713
+ "text": "4.1.2 YELP POLARITY ",
714
+ "text_level": 1,
715
+ "bbox": [
716
+ 176,
717
+ 103,
718
+ 343,
719
+ 117
720
+ ],
721
+ "page_idx": 5
722
+ },
723
+ {
724
+ "type": "text",
725
+ "text": "Originally introduced in Zhang et al. (2015), the Yelp review polarity dataset was obtained from the Yelp Dataset Challenge and has train and test sets of sizes 560,000 and 38,000. The task is binary prediction for whether the review is positive (four or five stars) or negative (one or two stars). The reviews are relatively long, with an average length of 160.1 words. Following the guidelines from Zhang et al. (2015), we implement an LSTM model which attains $4 . 6 \\%$ error, and an ngram logistic regression model, which attains $5 . 7 \\%$ error. For computational reasons, we report interpretation results on a random subset of sentences of length at most 40 words. When computing integrated gradient scores, we found that numerical issues produced unusable outputs for roughly $6 \\%$ of the samples. These reviews are excluded. ",
726
+ "bbox": [
727
+ 174,
728
+ 131,
729
+ 825,
730
+ 256
731
+ ],
732
+ "page_idx": 5
733
+ },
734
+ {
735
+ "type": "text",
736
+ "text": "4.1.3 INTERPRETATION BASELINES",
737
+ "text_level": 1,
738
+ "bbox": [
739
+ 176,
740
+ 277,
741
+ 431,
742
+ 291
743
+ ],
744
+ "page_idx": 5
745
+ },
746
+ {
747
+ "type": "text",
748
+ "text": "We compare the interpretations produced by CD against four state of the art baselines: cell decomposition (Murdoch & Szlam, 2017), integrated gradients (Sundararajan et al., 2017), leave one out (Li et al., 2016), and gradient times input. We refer the reader to Section 2 for descriptions of these algorithms. For our gradient baseline, we compute the gradient of the output probability with respect to the word embeddings, and report the dot product between the word vector and its gradient. For integrated gradients, producing reasonable values required extended experimentation and communication with the creators regarding the choice of baselines and scaling issues. We ultimately used sequences of periods for our baselines, and rescaled the scores for each review by the standard deviation of the scores for that review, a trick not previously mentioned in the literature. To obtain phrase scores for word-based baselines integrated gradients, cell decomposition, and gradients, we sum the scores of the words contained within the phrase. ",
749
+ "bbox": [
750
+ 174,
751
+ 304,
752
+ 825,
753
+ 457
754
+ ],
755
+ "page_idx": 5
756
+ },
757
+ {
758
+ "type": "text",
759
+ "text": "4.2 UNIGRAM (WORD) SCORES ",
760
+ "text_level": 1,
761
+ "bbox": [
762
+ 176,
763
+ 481,
764
+ 401,
765
+ 494
766
+ ],
767
+ "page_idx": 5
768
+ },
769
+ {
770
+ "type": "text",
771
+ "text": "Before examining the novel, phrase-level dynamics of CD, we first verify that it compares favorably to prior work for the standard use case of producing unigram coefficients. When sufficiently accurate in terms of prediction, logistic regression coefficients are generally treated as a gold standard for interpretability. In particular, when applied to sentiment analysis the ordering of words given by their coefficient value provides a qualitatively sensible measure of importance. Thus, when determining the validity of coefficients extracted from an LSTM, we should expect there to be a meaningful relationship between the CD scores and logistic regression coefficients. ",
772
+ "bbox": [
773
+ 174,
774
+ 510,
775
+ 825,
776
+ 607
777
+ ],
778
+ "page_idx": 5
779
+ },
780
+ {
781
+ "type": "text",
782
+ "text": "In order to evaluate the word-level coefficients extracted by the CD method, we construct scatter plots with each point consisting of a single word in the validation set. The two values plotted correspond to the coefficient from logistic regression and importance score extracted from the LSTM. For a quantitative measure of accuracy, we use pearson correlation coefficient. ",
783
+ "bbox": [
784
+ 176,
785
+ 613,
786
+ 823,
787
+ 670
788
+ ],
789
+ "page_idx": 5
790
+ },
791
+ {
792
+ "type": "text",
793
+ "text": "We report quantitative and qualitative results in Appendix 6.1.3. For SST, CD and integrated gradients, with correlations of 0.76 and 0.72, respectively, are substantially better than other methods, with correlations of at most 0.51. On Yelp, the gap is not as big, but CD is still very competitive, having correlation 0.52 with other methods ranging from 0.34 to 0.56. Having verified reasonably strong results in this base case, we now proceed to show the benefits of CD. ",
794
+ "bbox": [
795
+ 176,
796
+ 676,
797
+ 823,
798
+ 746
799
+ ],
800
+ "page_idx": 5
801
+ },
802
+ {
803
+ "type": "text",
804
+ "text": "4.3 IDENTIFYING DISSENTING SUBPHRASES ",
805
+ "text_level": 1,
806
+ "bbox": [
807
+ 176,
808
+ 770,
809
+ 491,
810
+ 784
811
+ ],
812
+ "page_idx": 5
813
+ },
814
+ {
815
+ "type": "text",
816
+ "text": "We now show that, for phrases of at most five words, existing methods are unable to recognize subphrases with differing sentiments. For example, consider the phrase “used to be my favorite”, which is of negative sentiment. The word “favorite”, however, is strongly positive, having a logistic regression coefficient in the 93rd percentile. Nonetheless, existing methods consistently rank “favorite” as being highly negative or neutral. In contrast, as shown in Table 1, CD is able to identify “my favorite” as being strongly positive, and ”used to be” as strongly negative. A similar dynamic also occurs with the phrase “not worth the time”. The main justification for using LSTMs over simpler models is precisely that they are able to capture these kinds of interactions. Thus, it is important that an interpretation algorithm is able to properly uncover how the interactions are being handled. ",
817
+ "bbox": [
818
+ 174,
819
+ 797,
820
+ 825,
821
+ 924
822
+ ],
823
+ "page_idx": 5
824
+ },
825
+ {
826
+ "type": "image",
827
+ "img_path": "images/49969a54064e1166c84a579237619270f38b949b1721a19e12bb7c83d780e9bb.jpg",
828
+ "image_caption": [
829
+ "Table 1: Heat maps for portion of yelp review with different attribution techniques. Only CD captures that ”favorite” is positive. "
830
+ ],
831
+ "image_footnote": [],
832
+ "bbox": [
833
+ 171,
834
+ 99,
835
+ 799,
836
+ 291
837
+ ],
838
+ "page_idx": 6
839
+ },
840
+ {
841
+ "type": "text",
842
+ "text": "Using the above as a motivating example, we now show that a similar trend holds throughout the Yelp polarity dataset. In particular, we conduct a search for situations similar to the above, where a strongly positive/negative phrase contains a strongly dissenting subphrase. Phrases are scored using the logistic regression with n-gram features described in Section 4.1, and included if their absolute score is over 1.5. We then examine the distribution of scores for the dissenting subphrases, which are analogous to “favorite”. ",
843
+ "bbox": [
844
+ 174,
845
+ 361,
846
+ 825,
847
+ 444
848
+ ],
849
+ "page_idx": 6
850
+ },
851
+ {
852
+ "type": "text",
853
+ "text": "For an effective interpretation algorithm, the distribution of scores for positive and negative dissenting subphrases should be significantly separate, with positive subphrases having positive scores, and vice versa. However, as can be seen in Appendix 6.1.1, for prior methods these two distributions are nearly identical. The CD distributions, on the other hand, are significantly separate, indicating that what we observed anecdotally above holds in a more general setting. ",
854
+ "bbox": [
855
+ 174,
856
+ 450,
857
+ 825,
858
+ 521
859
+ ],
860
+ "page_idx": 6
861
+ },
862
+ {
863
+ "type": "text",
864
+ "text": "4.4 EXAMINING HIGH-LEVEL COMPOSITIONALITY ",
865
+ "text_level": 1,
866
+ "bbox": [
867
+ 174,
868
+ 551,
869
+ 534,
870
+ 564
871
+ ],
872
+ "page_idx": 6
873
+ },
874
+ {
875
+ "type": "text",
876
+ "text": "We now show that prior methods struggle to identify cases where a sizable portion of a review (between one and two thirds) has polarity different from the LSTM’s prediction. For instance, consider the review in Table 2, where the first phrase is clearly positive, but the second phrase causes the review to ultimately be negative. CD is the only method able to accurately capture this dynamic. ",
877
+ "bbox": [
878
+ 174,
879
+ 578,
880
+ 825,
881
+ 647
882
+ ],
883
+ "page_idx": 6
884
+ },
885
+ {
886
+ "type": "text",
887
+ "text": "By leveraging the phrase-level labels provided in SST, we can show that this pattern holds in the general case. In particular, we conduct a search for reviews similar to the above example. The search criteria are whether a review contains a phrase labeled by SST to be of opposing sentiment to the review-level SST label, and is between one and two thirds the length of the review. ",
888
+ "bbox": [
889
+ 174,
890
+ 655,
891
+ 825,
892
+ 710
893
+ ],
894
+ "page_idx": 6
895
+ },
896
+ {
897
+ "type": "text",
898
+ "text": "In Appendix 6.1.2, we show the distribution of the resulting positive and negative phrases for different attribution methods. A successful interpretation method would have a sizable gap between these two distributions, with positive phrases having mostly positive scores, and negative phrases mostly negative. However, prior methods struggle to satisfy these criteria. $87 \\%$ of all positive phrases are labelled as negative by integrated gradients, and cell decompositions (Murdoch & Szlam, 2017) even have the distributions flipped, with negative phrases yielding more positive scores than the positive phrases. CD, on the other hand, provides a very clear difference in distributions. To quantify this separation between positive and negative distributions, we examine a two-sample KolmogorovSmirnov one-sided test statistic, a common test for the difference of distributions with values ranging from 0 to 1. CD produces a score of 0.74, indicating a strong difference between positive and negative distributions, with other methods achieving scores of 0 (cell decomposition), 0.33 (integrated gradients), 0.58 (leave one out) and 0.61 (gradient), indicating weaker distributional differences. Given that gradient and leave one out were the weakest performers in unigram scores, this provides strong evidence for the superiority of CD. ",
899
+ "bbox": [
900
+ 173,
901
+ 718,
902
+ 825,
903
+ 912
904
+ ],
905
+ "page_idx": 6
906
+ },
907
+ {
908
+ "type": "image",
909
+ "img_path": "images/32f52c81ca52981eca38f8ffeb69810a8328143dfd72876042d452ac88e32296.jpg",
910
+ "image_caption": [
911
+ "Table 2: Heat maps for portion of review from SST with different attribution techniques. Only CD captures that the first phrase is positive. "
912
+ ],
913
+ "image_footnote": [],
914
+ "bbox": [
915
+ 173,
916
+ 101,
917
+ 826,
918
+ 383
919
+ ],
920
+ "page_idx": 7
921
+ },
922
+ {
923
+ "type": "text",
924
+ "text": "4.5 CONTEXTUAL DECOMPOSITION (CD) CAPTURES NEGATION ",
925
+ "text_level": 1,
926
+ "bbox": [
927
+ 174,
928
+ 449,
929
+ 627,
930
+ 464
931
+ ],
932
+ "page_idx": 7
933
+ },
934
+ {
935
+ "type": "text",
936
+ "text": "In order to understand an LSTM’s prediction mechanism, it is important to understand not just the contribution of a phrase, but how that contribution is computed. For phrases involving negation, we now demonstrate that we can use CD to empirically show that our LSTM learns a negation mechanism. ",
937
+ "bbox": [
938
+ 174,
939
+ 474,
940
+ 825,
941
+ 531
942
+ ],
943
+ "page_idx": 7
944
+ },
945
+ {
946
+ "type": "text",
947
+ "text": "Using the phrase labels in SST, we search over the training set for instances of negation. In particular, we search for phrases of length less than ten with the first child containing a negation phrase (such as “not” or “lacks”, full list provided in Appendix 6.3) in the first two words, and the second child having positive or negative sentiment. Due to noise in the labels, we also included phrases where the entire phrase was non-neutral, and the second child contained a non-neutral phrase. We identify both positive negation, such as “isn’t a bad film”, and negative negation, such as “isn’t very interesting”, where the direction is given by the SST-provided label of the phrase. ",
948
+ "bbox": [
949
+ 174,
950
+ 537,
951
+ 825,
952
+ 636
953
+ ],
954
+ "page_idx": 7
955
+ },
956
+ {
957
+ "type": "text",
958
+ "text": "For a given negation phrase, we extract a negation interaction by computing the CD score of the entire phrase and subtracting the CD scores of the phrase being negated and the negation term itself. The resulting score can be interpreted as an n-gram feature. Note that, of the methods we compare against, only leave one out is capable of producing such interaction scores. For reference, we also provide the distribution of all interactions for phrases of length less than 5. ",
959
+ "bbox": [
960
+ 174,
961
+ 643,
962
+ 825,
963
+ 713
964
+ ],
965
+ "page_idx": 7
966
+ },
967
+ {
968
+ "type": "text",
969
+ "text": "We present the distribution of extracted scores in Figure 1. For CD, we can see that there is a clear distinction between positive and negative negations, and that the negation interactions are centered on the outer edges of the distribution of interactions. Leave one out is able to capture some of the interactions, but has a noticeable overlap between positive and negative negations around zero, indicating a high rate of false negatives. ",
970
+ "bbox": [
971
+ 174,
972
+ 719,
973
+ 825,
974
+ 790
975
+ ],
976
+ "page_idx": 7
977
+ },
978
+ {
979
+ "type": "text",
980
+ "text": "4.6 IDENTIFYING SIMILAR PHRASES ",
981
+ "text_level": 1,
982
+ "bbox": [
983
+ 176,
984
+ 808,
985
+ 437,
986
+ 820
987
+ ],
988
+ "page_idx": 7
989
+ },
990
+ {
991
+ "type": "text",
992
+ "text": "Another benefit of using CDs for interpretation is that, in addition to providing importance scores, it also provides dense embeddings for arbitrary phrases and interactions, in the form of $\\beta _ { T }$ discussed in Section 3.2. We anecdotally show that similarity in this embedding space corresponds to semantic similarity in the context of sentiment analysis. ",
993
+ "bbox": [
994
+ 176,
995
+ 832,
996
+ 825,
997
+ 888
998
+ ],
999
+ "page_idx": 7
1000
+ },
1001
+ {
1002
+ "type": "text",
1003
+ "text": "In particular, for all words and binary interactions, we compute the average embedding $\\beta _ { T }$ produced by CD across the training and validation sets. In Table 3, we show the nearest neighbours using a cosine similarity metric. The results are qualitatively sensible for three different kinds of interactions: positive negation, negative negation and modification, as well as positive and negative words. Note that we for positive and negative words, we chose the positive/negative parts of the negations, in order to emphasize that CD can disentangle this composition. ",
1004
+ "bbox": [
1005
+ 173,
1006
+ 895,
1007
+ 823,
1008
+ 924
1009
+ ],
1010
+ "page_idx": 7
1011
+ },
1012
+ {
1013
+ "type": "image",
1014
+ "img_path": "images/2088734425d47ba3059adf203cb9ddc320c4efae3748d475c3a8767b0dca7781.jpg",
1015
+ "image_caption": [
1016
+ "Figure 1: Distribution of scores for positive and negative negation coefficients relative to all interaction coefficients. Only leave one out and CD are capable of producing these interaction scores. "
1017
+ ],
1018
+ "image_footnote": [],
1019
+ "bbox": [
1020
+ 184,
1021
+ 102,
1022
+ 861,
1023
+ 323
1024
+ ],
1025
+ "page_idx": 8
1026
+ },
1027
+ {
1028
+ "type": "table",
1029
+ "img_path": "images/a9e68e5019af543641fd69fb2d2a279ca48ab5d8275522fb198fbdc922e178dc.jpg",
1030
+ "table_caption": [
1031
+ "Table 3: Nearest neighbours for selected unigrams and interactions using CD embeddings "
1032
+ ],
1033
+ "table_footnote": [],
1034
+ "table_body": "<table><tr><td>not entertain- ing</td><td>not bad</td><td>very funny</td><td>entertaining</td><td>bad</td></tr><tr><td>not funny</td><td>never dull</td><td>well-put- together piece</td><td>intelligent</td><td>dull</td></tr><tr><td>not engaging</td><td>n&#x27;t drag</td><td>entertaining romp</td><td>engaging</td><td>drag</td></tr><tr><td>never satisfac- tory</td><td>never fails</td><td>very good</td><td>satisfying</td><td>awful</td></tr><tr><td>not well</td><td>without sham</td><td>surprisingly sweet</td><td>admirable</td><td>tired</td></tr><tr><td>not fit</td><td>without missing</td><td>very well- written</td><td>funny</td><td>dreary</td></tr></table>",
1035
+ "bbox": [
1036
+ 178,
1037
+ 385,
1038
+ 818,
1039
+ 555
1040
+ ],
1041
+ "page_idx": 8
1042
+ },
1043
+ {
1044
+ "type": "text",
1045
+ "text": "",
1046
+ "bbox": [
1047
+ 174,
1048
+ 604,
1049
+ 823,
1050
+ 660
1051
+ ],
1052
+ "page_idx": 8
1053
+ },
1054
+ {
1055
+ "type": "text",
1056
+ "text": "5 CONCLUSION ",
1057
+ "text_level": 1,
1058
+ "bbox": [
1059
+ 176,
1060
+ 685,
1061
+ 318,
1062
+ 702
1063
+ ],
1064
+ "page_idx": 8
1065
+ },
1066
+ {
1067
+ "type": "text",
1068
+ "text": "In this paper, we have proposed contextual decomposition (CD), an algorithm for interpreting individual predictions made by LSTMs without modifying the underlying model. In both NLP and general applications of LSTMs, CD produces importance scores for words (single variables in general), phrases (several variables together) and word interactions (variable interactions). Using two sentiment analysis datasets for empirical validation, we first show that for information also produced by prior methods, such as word-level scores, our method compares favorably. More importantly, we then show that CD is capable of identifying phrases of varying sentiment, and extracting meaningful word (or variable) interactions. This movement beyond word-level importance is critical for understanding a model as complex and highly non-linear as LSTMs. ",
1069
+ "bbox": [
1070
+ 174,
1071
+ 717,
1072
+ 825,
1073
+ 842
1074
+ ],
1075
+ "page_idx": 8
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "ACKNOWLEDGMENTS ",
1080
+ "text_level": 1,
1081
+ "bbox": [
1082
+ 176,
1083
+ 858,
1084
+ 326,
1085
+ 871
1086
+ ],
1087
+ "page_idx": 8
1088
+ },
1089
+ {
1090
+ "type": "text",
1091
+ "text": "This research was started during a summer internship at Google Brain, and later supported by a postgraduate scholarship-doctoral from NSERC and a data science research award from Adobe. This work is partially supported by Center for Science of Information (CSoI), an NSF Science and ",
1092
+ "bbox": [
1093
+ 176,
1094
+ 882,
1095
+ 823,
1096
+ 924
1097
+ ],
1098
+ "page_idx": 8
1099
+ },
1100
+ {
1101
+ "type": "text",
1102
+ "text": "Technology Center, under grant agreement CCF-0939370, ONR grant N00014-16-1-2664 and ARO grant W911NF1710005. ",
1103
+ "bbox": [
1104
+ 174,
1105
+ 103,
1106
+ 823,
1107
+ 132
1108
+ ],
1109
+ "page_idx": 9
1110
+ },
1111
+ {
1112
+ "type": "text",
1113
+ "text": "REFERENCES ",
1114
+ "text_level": 1,
1115
+ "bbox": [
1116
+ 174,
1117
+ 154,
1118
+ 287,
1119
+ 167
1120
+ ],
1121
+ "page_idx": 9
1122
+ },
1123
+ {
1124
+ "type": "text",
1125
+ "text": "Sebastian Bach, Alexander Binder, Gregoire Montavon, Frederick Klauschen, Klaus-Robert M ´ uller, ¨ and Wojciech Samek. On pixel-wise explanations for non-linear classifier decisions by layer-wise relevance propagation. PloS one, 10(7):e0130140, 2015. ",
1126
+ "bbox": [
1127
+ 176,
1128
+ 176,
1129
+ 823,
1130
+ 219
1131
+ ],
1132
+ "page_idx": 9
1133
+ },
1134
+ {
1135
+ "type": "text",
1136
+ "text": "Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014. ",
1137
+ "bbox": [
1138
+ 173,
1139
+ 228,
1140
+ 823,
1141
+ 257
1142
+ ],
1143
+ "page_idx": 9
1144
+ },
1145
+ {
1146
+ "type": "text",
1147
+ "text": "Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9(8): 1735–1780, 1997. ",
1148
+ "bbox": [
1149
+ 173,
1150
+ 266,
1151
+ 823,
1152
+ 295
1153
+ ],
1154
+ "page_idx": 9
1155
+ },
1156
+ {
1157
+ "type": "text",
1158
+ "text": "Andrej Karpathy, Justin Johnson, and Li Fei-Fei. Visualizing and understanding recurrent networks. arXiv preprint arXiv:1506.02078, 2015. ",
1159
+ "bbox": [
1160
+ 173,
1161
+ 304,
1162
+ 823,
1163
+ 333
1164
+ ],
1165
+ "page_idx": 9
1166
+ },
1167
+ {
1168
+ "type": "text",
1169
+ "text": "Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
1170
+ "bbox": [
1171
+ 173,
1172
+ 343,
1173
+ 823,
1174
+ 372
1175
+ ],
1176
+ "page_idx": 9
1177
+ },
1178
+ {
1179
+ "type": "text",
1180
+ "text": "Jiwei Li, Will Monroe, and Dan Jurafsky. Understanding neural networks through representation erasure. CoRR, abs/1612.08220, 2016. URL http://arxiv.org/abs/1612.08220. ",
1181
+ "bbox": [
1182
+ 173,
1183
+ 381,
1184
+ 823,
1185
+ 410
1186
+ ],
1187
+ "page_idx": 9
1188
+ },
1189
+ {
1190
+ "type": "text",
1191
+ "text": "Scott Lundberg and Su-In Lee. An unexpected unity among methods for interpreting model predictions. arXiv preprint arXiv:1611.07478, 2016. ",
1192
+ "bbox": [
1193
+ 173,
1194
+ 420,
1195
+ 820,
1196
+ 449
1197
+ ],
1198
+ "page_idx": 9
1199
+ },
1200
+ {
1201
+ "type": "text",
1202
+ "text": "Gabor Melis, Chris Dyer, and Phil Blunsom. On the state of the art of evaluation in neural language ´ models. CoRR, abs/1707.05589, 2017. URL http://arxiv.org/abs/1707.05589. ",
1203
+ "bbox": [
1204
+ 173,
1205
+ 458,
1206
+ 821,
1207
+ 487
1208
+ ],
1209
+ "page_idx": 9
1210
+ },
1211
+ {
1212
+ "type": "text",
1213
+ "text": "W James Murdoch and Arthur Szlam. Automatic rule extraction from long short term memory networks. ICLR, 2017. ",
1214
+ "bbox": [
1215
+ 173,
1216
+ 496,
1217
+ 821,
1218
+ 525
1219
+ ],
1220
+ "page_idx": 9
1221
+ },
1222
+ {
1223
+ "type": "text",
1224
+ "text": "Jeffrey Pennington, Richard Socher, and Christopher Manning. Glove: Global vectors for word representation. In Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), pp. 1532–1543, 2014. ",
1225
+ "bbox": [
1226
+ 173,
1227
+ 534,
1228
+ 825,
1229
+ 577
1230
+ ],
1231
+ "page_idx": 9
1232
+ },
1233
+ {
1234
+ "type": "text",
1235
+ "text": "Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. Squad: $1 0 0 { , } 0 0 0 { + }$ questions for machine comprehension of text. arXiv preprint arXiv:1606.05250, 2016. ",
1236
+ "bbox": [
1237
+ 173,
1238
+ 585,
1239
+ 823,
1240
+ 616
1241
+ ],
1242
+ "page_idx": 9
1243
+ },
1244
+ {
1245
+ "type": "text",
1246
+ "text": "Alexander M Rush, Sumit Chopra, and Jason Weston. A neural attention model for abstractive sentence summarization. arXiv preprint arXiv:1509.00685, 2015. ",
1247
+ "bbox": [
1248
+ 173,
1249
+ 625,
1250
+ 821,
1251
+ 654
1252
+ ],
1253
+ "page_idx": 9
1254
+ },
1255
+ {
1256
+ "type": "text",
1257
+ "text": "Avanti Shrikumar, Peyton Greenside, and Anshul Kundaje. Learning important features through propagating activation differences. arXiv preprint arXiv:1704.02685, 2017. ",
1258
+ "bbox": [
1259
+ 173,
1260
+ 661,
1261
+ 823,
1262
+ 691
1263
+ ],
1264
+ "page_idx": 9
1265
+ },
1266
+ {
1267
+ "type": "text",
1268
+ "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. ",
1269
+ "bbox": [
1270
+ 173,
1271
+ 700,
1272
+ 825,
1273
+ 757
1274
+ ],
1275
+ "page_idx": 9
1276
+ },
1277
+ {
1278
+ "type": "text",
1279
+ "text": "Hendrik Strobelt, Sebastian Gehrmann, Bernd Huber, Hanspeter Pfister, and Alexander M Rush. Visual analysis of hidden state dynamics in recurrent neural networks. arXiv preprint arXiv:1606.07461, 2016. ",
1280
+ "bbox": [
1281
+ 173,
1282
+ 766,
1283
+ 823,
1284
+ 809
1285
+ ],
1286
+ "page_idx": 9
1287
+ },
1288
+ {
1289
+ "type": "text",
1290
+ "text": "Mukund Sundararajan, Ankur Taly, and Qiqi Yan. Axiomatic attribution for deep networks. CoRR, abs/1703.01365, 2017. URL http://arxiv.org/abs/1703.01365. ",
1291
+ "bbox": [
1292
+ 173,
1293
+ 819,
1294
+ 821,
1295
+ 848
1296
+ ],
1297
+ "page_idx": 9
1298
+ },
1299
+ {
1300
+ "type": "text",
1301
+ "text": "Ilya Sutskever, Oriol Vinyals, and Quoc V Le. Sequence to sequence learning with neural networks. In Advances in neural information processing systems, pp. 3104–3112, 2014. ",
1302
+ "bbox": [
1303
+ 173,
1304
+ 857,
1305
+ 820,
1306
+ 886
1307
+ ],
1308
+ "page_idx": 9
1309
+ },
1310
+ {
1311
+ "type": "text",
1312
+ "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. ",
1313
+ "bbox": [
1314
+ 174,
1315
+ 895,
1316
+ 820,
1317
+ 924
1318
+ ],
1319
+ "page_idx": 9
1320
+ },
1321
+ {
1322
+ "type": "table",
1323
+ "img_path": "images/329c7de596e55b03cb098b1a634be098d36c304bc4c292c12c1fc1a31eb1dd19.jpg",
1324
+ "table_caption": [
1325
+ "Table 4: Correlation coefficients between logistic regression coefficients and extracted scores. "
1326
+ ],
1327
+ "table_footnote": [],
1328
+ "table_body": "<table><tr><td>Attribution Method</td><td>Stanford Sentiment</td><td>Yelp Polarity</td></tr><tr><td>Gradient</td><td>0.375</td><td>0.336</td></tr><tr><td>Leave one out (Li et al., 2016)</td><td>0.510</td><td>0.358</td></tr><tr><td>Cell decomposition (Murdoch &amp; Szlam, 2017)</td><td>0.490</td><td>0.560</td></tr><tr><td>Integrated gradients (Sundararajan et al., 2017)</td><td>0.724</td><td>0.471</td></tr><tr><td>Contextual decompo- sition</td><td>0.758</td><td>0.520</td></tr></table>",
1329
+ "bbox": [
1330
+ 253,
1331
+ 99,
1332
+ 745,
1333
+ 273
1334
+ ],
1335
+ "page_idx": 10
1336
+ },
1337
+ {
1338
+ "type": "text",
1339
+ "text": "Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhudinov, Rich Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. In International Conference on Machine Learning, pp. 2048–2057, 2015. ",
1340
+ "bbox": [
1341
+ 176,
1342
+ 325,
1343
+ 825,
1344
+ 368
1345
+ ],
1346
+ "page_idx": 10
1347
+ },
1348
+ {
1349
+ "type": "text",
1350
+ "text": "Xiang Zhang, Junbo Zhao, and Yann LeCun. Character-level convolutional networks for text classification. In Advances in neural information processing systems, pp. 649–657, 2015. ",
1351
+ "bbox": [
1352
+ 176,
1353
+ 383,
1354
+ 821,
1355
+ 412
1356
+ ],
1357
+ "page_idx": 10
1358
+ },
1359
+ {
1360
+ "type": "text",
1361
+ "text": "6 APPENDIX ",
1362
+ "text_level": 1,
1363
+ "bbox": [
1364
+ 174,
1365
+ 444,
1366
+ 294,
1367
+ 460
1368
+ ],
1369
+ "page_idx": 10
1370
+ },
1371
+ {
1372
+ "type": "text",
1373
+ "text": "6.1 PLOTS ",
1374
+ "text_level": 1,
1375
+ "bbox": [
1376
+ 174,
1377
+ 477,
1378
+ 261,
1379
+ 491
1380
+ ],
1381
+ "page_idx": 10
1382
+ },
1383
+ {
1384
+ "type": "text",
1385
+ "text": "6.1.1 PLOTS FOR DISSENTING SUBPHRASES ",
1386
+ "bbox": [
1387
+ 176,
1388
+ 503,
1389
+ 490,
1390
+ 518
1391
+ ],
1392
+ "page_idx": 10
1393
+ },
1394
+ {
1395
+ "type": "text",
1396
+ "text": "We provide here the plots described in Section 4.3. ",
1397
+ "bbox": [
1398
+ 176,
1399
+ 529,
1400
+ 504,
1401
+ 544
1402
+ ],
1403
+ "page_idx": 10
1404
+ },
1405
+ {
1406
+ "type": "text",
1407
+ "text": "6.1.2 PLOTS FOR HIGH-LEVEL COMPOSITIONALITY",
1408
+ "bbox": [
1409
+ 174,
1410
+ 563,
1411
+ 542,
1412
+ 577
1413
+ ],
1414
+ "page_idx": 10
1415
+ },
1416
+ {
1417
+ "type": "text",
1418
+ "text": "We provide here the plots referenced in Section 4.4. ",
1419
+ "bbox": [
1420
+ 174,
1421
+ 588,
1422
+ 513,
1423
+ 603
1424
+ ],
1425
+ "page_idx": 10
1426
+ },
1427
+ {
1428
+ "type": "text",
1429
+ "text": "6.1.3 LOGISTIC REGRESSION VERSUS EXTRACTED COEFFICIENTS SCATTERPLOTS ",
1430
+ "bbox": [
1431
+ 174,
1432
+ 622,
1433
+ 746,
1434
+ 636
1435
+ ],
1436
+ "page_idx": 10
1437
+ },
1438
+ {
1439
+ "type": "text",
1440
+ "text": "We provide here the scatterplots and correlations referenced in section 4.2. ",
1441
+ "bbox": [
1442
+ 176,
1443
+ 646,
1444
+ 661,
1445
+ 661
1446
+ ],
1447
+ "page_idx": 10
1448
+ },
1449
+ {
1450
+ "type": "text",
1451
+ "text": "6.2 GENERAL RECURSION FORMULA ",
1452
+ "text_level": 1,
1453
+ "bbox": [
1454
+ 174,
1455
+ 698,
1456
+ 442,
1457
+ 712
1458
+ ],
1459
+ "page_idx": 10
1460
+ },
1461
+ {
1462
+ "type": "text",
1463
+ "text": "We provide here the general recursion formula referenced in Section 3.2.1. The two cases that are considered is whether the current time step is during the phrase $\\ Q \\leq t \\leq r ,$ ) or outside of the phrase ( $t < q$ or $t > r$ ). ",
1464
+ "bbox": [
1465
+ 173,
1466
+ 724,
1467
+ 825,
1468
+ 768
1469
+ ],
1470
+ "page_idx": 10
1471
+ },
1472
+ {
1473
+ "type": "equation",
1474
+ "img_path": "images/830ac36623a2452d8a1f3ff18b7722393a8077ddd2635710f89f76c79f2a631d.jpg",
1475
+ "text": "$$\n\\begin{array} { r l r } { { \\beta _ { t } ^ { f } = [ L _ { \\sigma } ( V _ { f } \\beta _ { t - 1 } ) + L _ { \\sigma } ( b _ { f } ) + L _ { \\sigma } ( V _ { f } x _ { t } ) ] _ { q \\le t \\le r } \\| \\odot \\beta _ { t - 1 } ^ { c } } } \\\\ & { r _ { t } ^ { f } = f _ { t } \\odot \\gamma _ { t - 1 } ^ { c } + [ L _ { \\sigma } ( V _ { f } \\gamma _ { t - 1 } ) + L _ { \\sigma } ( V _ { f } x _ { t } ) ] _ { t > q , t \\le r } ] \\odot \\beta _ { t - 1 } ^ { c } } & { ( 3 0 ) } \\\\ & { u _ { t } ^ { u } = L _ { \\sigma } ( V _ { i } \\beta _ { t - 1 } ^ { c } ) \\odot [ L _ { \\operatorname { t a n h } } ( V _ { g } \\beta _ { t - 1 } ^ { c } + L _ { \\operatorname { t a n h } } ( b _ { g } ) ] + L _ { \\sigma } ( b _ { i } ) \\odot L _ { \\operatorname { t a n h } } ( V _ { g } \\beta _ { t - 1 } ^ { c } ) } & { ( 3 1 ) } \\\\ & { + [ L _ { \\sigma } ( W _ { i } x _ { t } ) \\odot [ L _ { \\operatorname { t a n h } } ( W _ { g } x _ { t } ) + L _ { \\operatorname { t a n h } } ( V _ { g } \\beta _ { t - 1 } ) + L _ { \\operatorname { t a n h } } ( b _ { g } ) ] + L _ { \\operatorname { t a n h } } ( b _ { g } ) ] + L _ { \\sigma } ( b _ { i } ) \\odot L _ { \\operatorname { t a n h } } ( W _ { g } x _ { t } ) ] _ { 1 q \\le t \\le r } } \\\\ & { u _ { t } ^ { u } = L _ { \\sigma } ( V _ { i } \\gamma _ { t - 1 } ) \\odot g _ { t } + i _ { t } \\odot L _ { \\operatorname { t a n h } } ( V _ { g } \\gamma _ { t - 1 } ) - L _ { \\sigma } ( V _ { i } \\gamma _ { t - 1 } ) \\odot L _ { \\operatorname { t a n h } } ( V _ { g } \\gamma _ { t - 1 } ) + L _ { \\sigma } ( b _ { i } ) \\odot L _ { \\operatorname { t a n h } } ( b _ { g } ) } \\end{array}\n$$",
1476
+ "text_format": "latex",
1477
+ "bbox": [
1478
+ 181,
1479
+ 795,
1480
+ 839,
1481
+ 897
1482
+ ],
1483
+ "page_idx": 10
1484
+ },
1485
+ {
1486
+ "type": "equation",
1487
+ "img_path": "images/e6ae42cadc082fb12d8a05c76dd8c3d07b56cf8af2e4665d3eb6ad7734595ae5.jpg",
1488
+ "text": "$$\n+ \\left[ L _ { \\sigma } ( W _ { i } x _ { t } ) \\odot [ L _ { \\operatorname { t a n h } } ( W _ { g } x _ { t } ) + L _ { \\operatorname { t a n h } } ( V _ { g } \\beta _ { t - 1 } ) + L _ { \\operatorname { t a n h } } ( b _ { g } ) ] + L _ { \\sigma } ( b _ { i } ) \\odot L _ { \\operatorname { t a n h } } ( W _ { g } x _ { t } ) ] 1 _ { t < q , t > \\tau } \\right] \\Biggr \\} .\n$$",
1489
+ "text_format": "latex",
1490
+ "bbox": [
1491
+ 210,
1492
+ 909,
1493
+ 856,
1494
+ 925
1495
+ ],
1496
+ "page_idx": 10
1497
+ },
1498
+ {
1499
+ "type": "image",
1500
+ "img_path": "images/2be13094db20ab17a2af6d43efaa9310a114d26a21669523868eb006e4f7a539.jpg",
1501
+ "image_caption": [
1502
+ "Figure 2: The distribution of attributions for positive (negative) sub-phrases contained within negative (positive) phrases of length at most five in the Yelp polarity dataset. The positive and negative distributions are nearly identical for all methods except CD, indicating an inability of prior methods to distinguish between positive and negative phrases when occurring in the context of a phrase of the opposite sentiment "
1503
+ ],
1504
+ "image_footnote": [],
1505
+ "bbox": [
1506
+ 232,
1507
+ 203,
1508
+ 759,
1509
+ 724
1510
+ ],
1511
+ "page_idx": 11
1512
+ },
1513
+ {
1514
+ "type": "image",
1515
+ "img_path": "images/1401f9caffb1ae28da2c4745dc242d70c71c3bc7b612eb10d0c536a8b19ed33e.jpg",
1516
+ "image_caption": [
1517
+ "Figure 3: Distribution of positive and negative phrases, of length between one and two thirds of the full review, in SST. The positive and negative distributions are significantly more separate for CD than other methods, indicating that even at this coarse level of granularity, other methods still struggle. "
1518
+ ],
1519
+ "image_footnote": [],
1520
+ "bbox": [
1521
+ 232,
1522
+ 207,
1523
+ 759,
1524
+ 733
1525
+ ],
1526
+ "page_idx": 12
1527
+ },
1528
+ {
1529
+ "type": "image",
1530
+ "img_path": "images/93b4789826a95170e6dc1eb176db032062a6b60ac43b6f9cf5f6e94c689c61d3.jpg",
1531
+ "image_caption": [
1532
+ "Figure 4: Logistic regression coefficients versus coefficients extracted from an LSTM on SST. We include a least squares regression line. Stronger linear relationships in the plots correspond to better interpretation techniques. "
1533
+ ],
1534
+ "image_footnote": [],
1535
+ "bbox": [
1536
+ 200,
1537
+ 123,
1538
+ 797,
1539
+ 808
1540
+ ],
1541
+ "page_idx": 13
1542
+ },
1543
+ {
1544
+ "type": "text",
1545
+ "text": "6.3 LIST OF WORDS USED TO IDENTIFY NEGATIONS ",
1546
+ "text_level": 1,
1547
+ "bbox": [
1548
+ 176,
1549
+ 104,
1550
+ 542,
1551
+ 117
1552
+ ],
1553
+ "page_idx": 14
1554
+ },
1555
+ {
1556
+ "type": "text",
1557
+ "text": "To search for negations, we used the following list of negation words: not, n’t, lacks, nobody, nor, nothing, neither, never, none, nowhere, remotely ",
1558
+ "bbox": [
1559
+ 171,
1560
+ 128,
1561
+ 825,
1562
+ 159
1563
+ ],
1564
+ "page_idx": 14
1565
+ }
1566
+ ]
parse/train/rkRwGg-0Z/rkRwGg-0Z_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rkRwGg-0Z/rkRwGg-0Z_model.json ADDED
The diff for this file is too large to render. See raw diff