ZHANGYUXUAN-zR commited on
Commit
b29c255
Β·
verified Β·
1 Parent(s): cf683bf

Add files using upload-large-folder tool

Browse files
parse/train/B184E5qee/B184E5qee.md ADDED
@@ -0,0 +1,257 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # IMPROVING NEURAL LANGUAGE MODELS WITH A CONTINUOUS CACHE
2
+
3
+ Edouard Grave, Armand Joulin, Nicolas Usunier Facebook AI Research {egrave,ajoulin,usunier}@fb.com
4
+
5
+ # ABSTRACT
6
+
7
+ We propose an extension to neural network language models to adapt their prediction to the recent history. Our model is a simplified version of memory augmented networks, which stores past hidden activations as memory and accesses them through a dot product with the current hidden activation. This mechanism is very efficient and scales to very large memory sizes. We also draw a link between the use of external memory in neural network and cache models used with count based language models. We demonstrate on several language model datasets that our approach performs significantly better than recent memory augmented networks.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Language models, which are probability distributions over sequences of words, have many applications such as machine translation (Brown et al., 1993), speech recognition (Bahl et al., 1983) or dialogue agents (Stolcke et al., 2000). While traditional neural networks language models have obtained state-of-the-art performance in this domain (Jozefowicz et al., 2016; Mikolov et al., 2010), they lack the capacity to adapt to their recent history, limiting their application to dynamic environments (Dodge et al., 2015). A recent approach to solve this problem is to augment these networks with an external memory (Graves et al., 2014; Grefenstette et al., 2015; Joulin & Mikolov, 2015; Sukhbaatar et al., 2015). These models can potentially use their external memory to store new information and adapt to a changing environment.
12
+
13
+ While these networks have obtained promising results on language modeling datasets (Sukhbaatar et al., 2015), they are quite computationally expensive. Typically, they have to learn a parametrizable mechanism to read or write to memory cells (Graves et al., 2014; Joulin & Mikolov, 2015). This may limit both the size of their usable memory as well as the quantity of data they can be trained on. In this work, we propose a very light-weight alternative that shares some of the properties of memory augmented networks, notably the capability to dynamically adapt over time. By minimizing the computation burden of the memory, we are able to use larger memory and scale to bigger datasets. We observe in practice that this allows us to surpass the perfomance of memory augmented networks on different language modeling tasks.
14
+
15
+ Our model share some similarities with a model proposed by Kuhn (1988), called the cache model. A cache model stores a simple representation of the recent past, often in the form of unigrams, and uses them for prediction (Kuhn & De Mori, 1990). This contextual information is quite cheap to store and can be accessed efficiently. It also does not need any training and can be appplied on top of any model. This makes this model particularly interesting for domain adaptation (Kneser & Steinbiss, 1993).
16
+
17
+ Our main contribution is to propose a continuous version of the cache model, called Neural Cache Model, that can be adapted to any neural network language model. We store recent hidden activations and use them as representation for the context. Using simply a dot-product with the current hidden activations, they turn out to be extremely informative for prediction. Our model requires no training and can be used on any pre-trained neural networks. It also scales effortlessly to thousands of memory cells. We demonstrate the quality of the Neural Cache models on several language model tasks and the LAMBADA dataset (Paperno et al., 2016).
18
+
19
+ # 2 LANGUAGE MODELING
20
+
21
+ A language model is a probability distribution over sequences of words. Let $V$ be the size of the vocabulary; each word is represented by a one-hot encoding vector $x$ in $\mathbb { R } ^ { V } = \nu$ , corresponding to its index in the vocabulary. Using the chain rule, the probability assigned to a sequence of words $x _ { 1 } , \ldots , x _ { T }$ can be factorized as
22
+
23
+ $$
24
+ p ( x _ { 1 } , . . . , x _ { T } ) = \prod _ { t = 1 } ^ { T } p ( x _ { t } \mid x _ { t - 1 } , . . . , x _ { 1 } ) .
25
+ $$
26
+
27
+ Language modeling is often framed as learning the conditional probability over words, given the history (Bahl et al., 1983).
28
+
29
+ This conditional probability is traditionally approximated with non-parameteric models based on counting statistics (Goodman, 2001). In particular, smoothed N-gram models (Katz, 1987; Kneser & Ney, 1995) achieve good performance in practice (Mikolov et al., 2011). Parametrized alternatives are either maximum entropy language models (Rosenfeld, 1996), feedforward networks (Bengio et al., 2003) or recurrent networks (Mikolov et al., 2010). In particular, recurrent networks are currently the best solution to approximate this conditional probability, achieving state-of-the-arts performance on standard language modeling benchmarks (Jozefowicz et al., 2016; Zilly et al., 2016).
30
+
31
+ Recurrent networks. Assuming that we have a vector $h _ { t } \in \mathbb { R } ^ { d }$ encoding the history $x _ { t } , . . . , x _ { 1 }$ , the conditional probability of a word $w$ can be parametrized as
32
+
33
+ $$
34
+ p _ { v o c a b } ( w \mid x _ { t } , . . . , x _ { 1 } ) \propto \exp ( h _ { t } ^ { \top } o _ { w } ) .
35
+ $$
36
+
37
+ The history vector $h _ { t }$ is computed by a recurrent network by recursively applying an equation of the form
38
+
39
+ $$
40
+ h _ { t } = \Phi \left( x _ { t } , h _ { t - 1 } \right) ,
41
+ $$
42
+
43
+ where $\Phi$ is a function depending on the architecture of the network. Several architecture for recurrent networks have been proposed, such as the Elman network (Elman, 1990), the long short-term memory (LSTM) (Hochreiter & Schmidhuber, 1997) or the gated recurrent unit (GRU) (Chung et al., 2014). One of the simplest recurrent networks is the Elman network (Elman, 1990), where
44
+
45
+ $$
46
+ h _ { t } = \sigma \left( L x _ { t } + R h _ { t - 1 } \right) ,
47
+ $$
48
+
49
+ where $\sigma$ is a non-linearity such as the logistic or tanh functions, $L \in \mathbb { R } ^ { d \times V }$ is a word embedding matrix and $R \in \mathbb { R } ^ { d \times d }$ is the recurrent matrix. The LSTM architecture is particularly interesting in the context of language modelling (Jozefowicz et al., 2016) and we refer the reader to Graves et al. (2013) for details on this architecture.
50
+
51
+ The parameters of recurrent neural network language models are learned by minimizing the negative log-likelihood of the training data. This objective function is usually minimized by using the stochastic gradient descent algorithm, or variants such as Adagrad (Duchi et al., 2011). The gradient is computed using the truncated backpropagation through time algorithm (Werbos, 1990; Williams & Peng, 1990).
52
+
53
+ Cache model. After a word appears once in a document, it is much more likely to appear again. As an example, the frequency of the word tiger on the Wikipedia page of the same name is $2 . 8 \%$ , compared to $0 . 0 0 3 7 \%$ over the whole Wikipedia. Cache models exploit this simple observation to improve $n$ -gram language models by capturing long-range dependencies in documents. More precisely, these models have a cache component, which contains the words that appeared in the recent history (either the document or a fixed number of words). A simple language model, such as a unigram or smoothed bigram model, is fitted on the words of the cache and interpolated with the static language model (trained over a larger dataset). This technique has many advantages. First, this is a very efficient way to adapt a language model to a new domain. Second, such models can predict out-of-vocabulary words (OOV words), after seeing them once. Finally, this helps capture long-range dependencies in documents, in order to generate more coherent text.
54
+
55
+ ![](images/cf4652e06ce92d3dc252856a2cd9705b2ca2a4147643ec3cc2c62263c4eaeb03.jpg)
56
+ Figure 1: The neural cache stores the previous hidden states in memory cells. They are then used as keys to retrieve their corresponding word, that is the next word. There is no transformation applied to the storage during writing and reading.
57
+
58
+ # 3 NEURAL CACHE MODEL
59
+
60
+ The Neural Cache Model adds a cache-like memory to neural network language models. It exploits the hidden representations $h _ { t }$ to define a probability distribution over the words in the cache. As illustrated Figure 1, the cache stores pairs $\left( h _ { i } , x _ { i + 1 } \right)$ of a hidden representation, and the word which was generated based on this representation (we remind the reader that the vector $h _ { i }$ encodes the history $x _ { i } , . . . , x _ { 1 } )$ . At time $t$ , we then define a probability distribution over words stored in the cache based on the stored hidden representations and the current one $h _ { t }$ as
61
+
62
+ $$
63
+ p _ { c a c h e } ( w \mid h _ { 1 . . t } , ~ x _ { 1 . . t } ) \propto \sum _ { i = 1 } ^ { t - 1 } \mathbb { 1 } _ { \{ w = x _ { i + 1 } \} } \exp ( \theta h _ { t } ^ { \top } h _ { i } )
64
+ $$
65
+
66
+ where the scalar $\theta$ is a parameter which controls the flatness of the distribution. When $\theta$ is equal to zero, the probability distribution over the history is uniform, and our model is equivalent to a unigram cache model (Kuhn & De Mori, 1990).
67
+
68
+ From the point of view of memory-augmented neural networks, the probability $p _ { c a c h e } ( w \mid h _ { 1 . . t } , \ x _ { 1 . . t } )$ given by the neural cache model can be interpreted as the probability to retrieve the word $w$ from the memory given the query $h _ { t }$ , where the desired answer is the next word $x _ { t + 1 }$ . Using previous hidden states as keys for the words in the memory, the memory lookup operator can be implemented with simple dot products between the keys and the query. In contrast to existing memory-augmented neural networks, the neural cache model avoids the need to learn the memory lookup operator. Such a cache can thus be added to a pre-trained recurrent neural language model without fine tuning of the parameters, and large cache size can be used with negligible impact on the computational cost of a prediction.
69
+
70
+ Neural cache language model. Following the standard practice in n-gram cache-based language models, the final probability of a word is given by the linear interpolation of the cache language model with the regular language model, obtaining:
71
+
72
+ $$
73
+ p ( w \mid h _ { 1 . . t } , ~ x _ { 1 . . t } ) = ( 1 - \lambda ) p _ { v o c a b } ( w \mid h _ { t } ) + \lambda p _ { c a c h e } ( w \mid h _ { 1 . . t } , x _ { 1 . . t } ) .
74
+ $$
75
+
76
+ Instead of taking a linear interpolation between the two distribution with a fixed $\lambda$ , we also consider a global normalization over the two distribution:
77
+
78
+ $$
79
+ p ( w \mid h _ { 1 . . t } , ~ x _ { 1 . . t } ) \propto \left( \exp ( h _ { t } ^ { \top } o _ { w } ) + \sum _ { i = 1 } ^ { t - 1 } \mathbb { 1 } _ { \{ w = x _ { i + 1 } \} } \exp ( \theta h _ { t } ^ { \top } h _ { i } + \alpha ) \right) .
80
+ $$
81
+
82
+ This corresponds to taking a softmax over the vocabulary and the words in the cache. The parameter $\alpha$ controls the weight of the cache component, and is the counterpart of the $\lambda$ parameter for linear interpolation.
83
+
84
+ The addition of the neural cache to a recurrent neural language model inherits the advantages of $n$ - gram caches in usual cache-based models: The probability distribution over words is updated online depending on the context, and out-of-vocabulary words can be predicted as soon as they have been seen at least once in the recent history. The neural cache also inherits the ability of the hidden states of recurrent neural networks to model longer-term contexts than small $n$ -grams, and thus allows for a finer modeling of the current context than e.g., unigram caches.
85
+
86
+ ![](images/89dee18a863e0919f58a31c0b0fced0db90e513f3d196f09ed8d2380bb79b7fb.jpg)
87
+ Figure 2: Perplexity on the validation set of Penn Tree Bank for linear interpolation (left) and global normalization (right), for various values of hyperparameters $\theta$ , $\lambda$ and $\alpha$ . We use a cache model of size 500. The base model has a validation perplexity of 86.9. The best linear interpolation has a perplexity of 74.6, while the best global normalization has a perplexity of 74.9.
88
+
89
+ Table 1: Test perplexity on the Penn Tree Bank.
90
+
91
+ <table><tr><td>Model</td><td>Test PPL</td></tr><tr><td>RNN+LSA+KN5+cache (Mikolov &amp; Zweig, 2012)</td><td>90.3</td></tr><tr><td>LSTM (Zaremba et al., 2014)</td><td>78.4</td></tr><tr><td>Variational LSTM (Gal &amp; Ghahramani, 2015)</td><td>73.4</td></tr><tr><td>Recurrent Highway Network (Zilly et al., 2016)</td><td>66.0</td></tr><tr><td>Pointer Sentinel LSTM (Merity et al.,2016)</td><td>70.9</td></tr><tr><td>LSTM (our implem.)</td><td>82.3</td></tr><tr><td>Neural cache model</td><td>72.1</td></tr></table>
92
+
93
+ Training procedure. For now, we first train the (recurrent) neural network language model, without the cache component. We only apply the cache model at test time, and choose the hyperparameters $\theta$ and $\lambda$ (or $\alpha$ ) on the validation set. A big advantage of our method is that it is very easy and cheap to apply, with already trained neural models. There is no need to perform backpropagation over large contexts, and we can thus apply our method with large cache sizes (larger than one thousand).
94
+
95
+ # 4 RELATED WORK
96
+
97
+ Cache model. Adding a cache to a language model was intoducted in the context of speech recognition(Kuhn, 1988; Kupiec, 1989; Kuhn & De Mori, 1990). These models were further extended by Jelinek et al. (1991) into a smoothed trigram language model, reporting reduction in both perplexity and word error rates. Della Pietra et al. (1992) adapt the cache to a general $n$ -gram model such that it satisfies marginal constraints obtained from the current document.
98
+
99
+ Adaptive language models. Other adaptive language models have been proposed in the past: Kneser & Steinbiss (1993) and Iyer & Ostendorf (1999) dynamically adapt the parameters of their model to the recent history using different weight interpolation schemes. Bellegarda (2000) and Coccaro & Jurafsky (1998) use latent semantic analysis to adapt their models to the current context. Similarly, topic features have been used with either maximum entropy models (Khudanpur & Wu, 2000) or recurrent networks (Mikolov & Zweig, 2012; Wang & Cho, 2015). Finally, Lau et al. (1993) proposes to use pairs of distant of words to capture long-range dependencies.
100
+
101
+ Memory augmented neural networks. In the context of sequence prediction, several memory augmented neural networks have obtained promising results (Sukhbaatar et al., 2015; Graves et al., 2014; Grefenstette et al., 2015; Joulin & Mikolov, 2015). In particular, Sukhbaatar et al. (2015) stores a representation of the recent past and accesses it using an attention mechanism Bahdanau et al. (2014). Sukhbaatar et al. (2015) shows that this reduces the perplexity for language modeling.
102
+
103
+ ![](images/1f2579aa6e9ffc10db91676682d66b0fb2f6c4f3c580061eb001161b8e41d356.jpg)
104
+ Figure 3: Perplexity on the validation set of wikitext2 for linear interpolation (left) and global normalization (right), for various values of hyperparameters $\theta$ , $\lambda$ and $\alpha$ . We use a cache model of size 2000. The base model has a validation perplexity of 104.2. The best linear interpolation has a perplexity of 72.1, while the best global normalization has a perplexity of 73.5.
105
+
106
+ <table><tr><td>Model</td><td>wikitext2</td><td>wikitext103</td></tr><tr><td>Zoneout + Variational LSTM (Merity et al.,2016)</td><td>100.9</td><td></td></tr><tr><td>Pointer Sentinel LSTM (Merity et al., 2016)</td><td>80.8</td><td>1</td></tr><tr><td>LSTM (our implementation)</td><td>99.3</td><td>48.7</td></tr><tr><td>Neural cache model (size = 100)</td><td>81.6</td><td>44.8</td></tr><tr><td>Neural cache model (size = 2,000)</td><td>68.9</td><td>40.8</td></tr></table>
107
+
108
+ Table 2: Test perplexity on the wikitext datasets. The two datasets share the same validation and test sets, making all the results comparable.
109
+
110
+ This approach has been successfully applied to question answering, when the answer is contained in a given paragraph (Chen et al., 2016; Hermann et al., 2015; Kadlec et al., 2016; Sukhbaatar et al., 2015). Similarly, Vinyals et al. (2015) explores the use of this mechanism to reorder sequences of tokens. Their network uses an attention (or β€œpointer”) over the input sequence to predict which element should be selected as the next output. Gulcehre et al. (2016) have shown that a similar mechanism called pointer softmax could be used in the context of machine translation, to decide which word to copy from the source to target.
111
+
112
+ Independently of our work, Merity et al. (2016) apply the same mechanism to recurrent network. Unlike our work, they uses the current hidden activation as a representation of the current input (while we use it to represent the output). This requires additional learning of a transformation between the current representation and those in the past. The advantage of our approach is that we can scale to very large caches effortlessly.
113
+
114
+ # 5 EXPERIMENTS
115
+
116
+ In this section, we evaluate our method on various language modeling datasets, which have different sizes and characteristics. On all datasets, we train a static recurrent neural network language model with LSTM units. We then use the hidden representations from this model to obtain our cache, which is interpolated with the static LSTM model. We also evaluate a unigram cache model interpolated with the static model as another baseline.
117
+
118
+ # 5.1 SMALL SCALE EXPERIMENTS
119
+
120
+ Datasets. In this section, we describe experiments performed on two small datasets: the Penn Tree Bank (Marcus et al., 1993) and the wikitext2 (Merity et al., 2016) datasets. The Penn Tree Bank dataset is made of articles from the Wall Street Journal, contains $9 2 9 \mathrm { k }$ training tokens and has a vocabulary size of 10k. The wikitext2 dataset is derived from Wikipedia articles, contains 2M training tokens and has a vocabulary size of 33k. These datasets contain non-shuffled documents, therefore requiring models to capture inter-sentences dependencies to perform well.
121
+
122
+ ![](images/239b837a7406cfdca609786eda77fbccc139af2404a2727b6d8c5998ce090737.jpg)
123
+ Figure 4: Test perplexity as a function of the number of words in the cache, for our method and a unigram cache baseline. We observe that our approach can uses larger caches than the baseline.
124
+
125
+ Implementation details. We train recurrent neural network language models with 1024 LSTM units, regularized with dropout (probability of dropping out units equals to 0.65). We use the Adagrad algorithm, with a learning rate of 0.2, a batchsize of 20 and initial weight uniformly sampled in the range $[ - 0 . 0 5 , 0 . 0 5 ]$ . We clip the norm of the gradient to 0.1 and unroll the network for 30 steps. We consider cache sizes on a logarithmic scale, from 50 to 10, 000, and fit the cache hyperparameters on the validation set.
126
+
127
+ Results. We report the perplexity on the validation sets in Figures 2 and 3, for various values of hyperparameters, for linear interpolation and global normalization. First, we observe that on both datasets, the linear interpolation method performs slightly better than the global normalization approach. It is also easier to apply in practice, and we thus use this method in the remainder of this paper. In Tables 1 and 2, we report the test perplexity of our approach and state-of-the-art models. Our approach is competitive with previous models, in particular with the pointer sentinel LSTM model of Merity et al. (2016). On Penn Tree Bank, we note that the improvement over the base model is similar for both methods. On the wikitext2 dataset, both methods obtain similar results when using the same cache size (100 words). Since our method is computationally cheap, it is easy to increase the cache to larger values (2, 000 words), leading to dramatic improvements ( $3 0 \%$ over the baseline, $1 2 \%$ over a small cache of 100 words).
128
+
129
+ # 5.2 MEDIUM SCALE EXPERIMENTS
130
+
131
+ Datasets and implementation details. In this section, we describe experiments performed over two medium scale datasets: text8 and wikitext103. Both datasets are derived from Wikipedia, but different pre-processing were applied. The text8 dataset contains 17M training tokens and has a vocabulary size of 44k words, while the wikitext103 dataset has a training set of size 103M, and a vocabulary size of 267k words. We use the same setting as in the previous section, except for the batchsize (we use 128) and dropout parameters (we use 0.45 for text8 and 0.25 for wikitext103). Since both datasets have large vocabularies, we use the adaptive softmax (Grave et al., 2016) for faster training.
132
+
133
+ Results. We report the test perplexity as a function of the cache size in Figure 4, for the neural cache model and a unigram cache baseline. We observe that our approach can exploits larger cache sizes, compared to the baseline. In Table 2, we observe that the improvement in perplexity of our method over the LSTM baseline on wikitext103 is smaller than for wikitext2 (approx. $1 6 \%$ v.s. $3 0 \%$ ). The fact that improvements obtained with more advanced techniques decrease when the size of training data increases has already been observed by Goodman (2001). Both wikitext datasets sharing the same test set, we also observe that the LSTM baseline, trained on 103M tokens (wikitext103), strongly outperforms more sophisticated methods, trained on 2M tokens (wikitext2). For these two reasons, we believe that it is important to evaluate and compare methods on relatively large datasets.
134
+
135
+ <table><tr><td>Model</td><td>Test</td></tr><tr><td>LSTM-500 (Mikolov et al., 2014) SCRNN (Mikolov et al., 2014)</td><td>156</td></tr><tr><td>MemNN (Sukhbaatar et al., 2015)</td><td>161 147</td></tr><tr><td>LSTM-1024 (our implem.)</td><td>121.8</td></tr><tr><td>Neural cache model</td><td>99.9</td></tr></table>
136
+
137
+ (a) text8
138
+
139
+ <table><tr><td>Model</td><td>Dev</td><td>Ctrl</td></tr><tr><td>WB5 (Paperno et al., 2016) WB5+cache (Paperno et al., 2016)</td><td>3125 768</td><td>285</td></tr><tr><td>LSTM-512 (Paperno et al., 2016)</td><td>5357</td><td>270 149</td></tr><tr><td>LSTM-1024 (our implem.)</td><td>4088</td><td>94</td></tr><tr><td>Neural cache model</td><td>138</td><td>129</td></tr></table>
140
+
141
+ (b) lambada
142
+
143
+ ![](images/3927384ae624d65f7ffe727b8d722a996fbce28ae8ec55bfda11221b9c005b0a.jpg)
144
+ Table 3: Perplexity on the text8 and lambada datasets. WB5 stands for 5-gram language model with Witten-Bell smoothing.
145
+ Figure 5: Perplexity on the development and control sets of lambada, as a function of the interpolation parameters $\lambda$ .
146
+
147
+ # 5.3 EXPERIMENTS ON THE LAMBADA DATASET
148
+
149
+ Finally, we report experiments carried on the lambada dataset, introduced by Paperno et al. (2016). This is a dataset of short passages extracted from novels. The goal is to predict the last word of the excerpt. This dataset was built so that human subjects solve the task perfectly when given the full context (approx. 4.6 sentences), but fail to do so when only given the sentence with the target word. Thus, most state-of-the-art language models fail on this dataset. The lambada training set contains approximately 200M tokens and has a vocabulary size of 93, 215. We report results for our method in Table 3, as well the performance of baselines from Paperno et al. (2016). Adding a neural cache model to the LSTM baseline strongly improves the performance on the lambada dataset. We also observe in Figure 5 that the best interpolation parameter between the static model and the cache is not the same for the development and control sets. This is due to the fact that more than $83 \%$ of passages of the development set include the target word, while this is true for only $14 \%$ of the control set. Ideally, a model should have strong results on both sets. One possible generalization of our model would be to adapt the interpolation parameter based on the current vector representation of the history $h _ { t }$ .
150
+
151
+ # 6 CONCLUSION
152
+
153
+ We presented the neural cache model to augment neural language models with a longer-term memory that dynamically updates the word probablilities based on the long-term context. A neural cache can be added on top of a pre-trained language model at negligible cost. Our experiments on both language modeling tasks and the challenging LAMBADA dataset shows that significant performance gains can be expected by adding this external memory component.
154
+
155
+ Technically, the neural cache models is similar to some recent memory-augmented neural networks such as pointer networks. However, its specific design makes it possible to avoid learning the memory lookup component. This makes the neural cache appealing since it can use larger cache sizes than memory-augment networks and can be applied as easily as traditional count-based caches.
156
+
157
+ # REFERENCES
158
+
159
+ Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014.
160
+
161
+ Lalit R Bahl, Frederick Jelinek, and Robert L Mercer. A maximum likelihood approach to continuous speech recognition. PAMI, 1983.
162
+
163
+ Jerome R Bellegarda. Exploiting latent semantic information in statistical language modeling. Proceedings of the IEEE, 2000.
164
+
165
+ Yoshua Bengio, RΓ©jean Ducharme, Pascal Vincent, and Christian Jauvin. A neural probabilistic language model. JMLR, 2003.
166
+
167
+ Peter F Brown, Vincent J Della Pietra, Stephen A Della Pietra, and Robert L Mercer. The mathematics of statistical machine translation: Parameter estimation. Computational linguistics, 1993.
168
+
169
+ Danqi Chen, Jason Bolton, and Christopher D Manning. A thorough examination of the cnn/daily mail reading comprehension task. arXiv preprint arXiv:1606.02858, 2016.
170
+
171
+ 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.
172
+
173
+ Noah Coccaro and Daniel Jurafsky. Towards better integration of semantic predictors in statistical language modeling. In ICSLP. Citeseer, 1998.
174
+
175
+ Stephen Della Pietra, Vincent Della Pietra, Robert L Mercer, and Salim Roukos. Adaptive language modeling using minimum discriminant estimation. In Proceedings of the workshop on Speech and Natural Language, 1992.
176
+
177
+ Jesse Dodge, Andreea Gane, Xiang Zhang, Antoine Bordes, Sumit Chopra, Alexander Miller, Arthur Szlam, and Jason Weston. Evaluating prerequisite qualities for learning end-to-end dialog systems. arXiv preprint arXiv:1511.06931, 2015.
178
+
179
+ John Duchi, Elad Hazan, and Yoram Singer. Adaptive subgradient methods for online learning and stochastic optimization. JMLR, 2011.
180
+
181
+ Jeffrey L Elman. Finding structure in time. Cognitive science, 1990.
182
+
183
+ Yarin Gal and Zoubin Ghahramani. A theoretically grounded application of dropout in recurrent neural networks. arXiv preprint arXiv:1512.05287, 2015.
184
+
185
+ Joshua T Goodman. A bit of progress in language modeling. Computer Speech & Language, 2001.
186
+
187
+ Edouard Grave, Armand Joulin, Moustapha CissΓ©, David Grangier, and HervΓ© JΓ©gou. Efficient softmax approximation for gpus. arXiv preprint arXiv:1609.04309, 2016.
188
+
189
+ A. Graves, A. Mohamed, and G. Hinton. Speech recognition with deep recurrent neural networks. In ICASSP, 2013.
190
+
191
+ Alex Graves, Greg Wayne, and Ivo Danihelka. Neural turing machines. arXiv preprint arXiv:1410.5401, 2014.
192
+
193
+ Edward Grefenstette, Karl Moritz Hermann, Mustafa Suleyman, and Phil Blunsom. Learning to transduce with unbounded memory. In Advances in Neural Information Processing Systems, pp. 1828–1836, 2015.
194
+
195
+ Caglar Gulcehre, Sungjin Ahn, Ramesh Nallapati, Bowen Zhou, and Yoshua Bengio. Pointing the unknown words. arXiv preprint arXiv:1603.08148, 2016.
196
+
197
+ Karl Moritz Hermann, Tomas Kocisky, Edward Grefenstette, Lasse Espeholt, Will Kay, Mustafa Suleyman, and Phil Blunsom. Teaching machines to read and comprehend. In NIPS, 2015.
198
+
199
+ Sepp Hochreiter and JΓΌrgen Schmidhuber. Long short-term memory. Neural computation, 1997.
200
+
201
+ Rukmini M Iyer and Mari Ostendorf. Modeling long distance dependence in language: Topic mixtures versus dynamic cache models. IEEE Transactions on speech and audio processing, 1999.
202
+
203
+ Frederick Jelinek, Bernard Merialdo, Salim Roukos, and Martin Strauss. A dynamic language model for speech recognition. In HLT, 1991.
204
+
205
+ Armand Joulin and Tomas Mikolov. Inferring algorithmic patterns with stack-augmented recurrent nets. In Advances in Neural Information Processing Systems, pp. 190–198, 2015.
206
+
207
+ Rafal Jozefowicz, Oriol Vinyals, Mike Schuster, Noam Shazeer, and Yonghui Wu. Exploring the limits of language modeling. arXiv preprint arXiv:1602.02410, 2016.
208
+
209
+ Rudolf Kadlec, Martin Schmid, Ondrej Bajgar, and Jan Kleindienst. Text understanding with the attention sum reader network. arXiv preprint arXiv:1603.01547, 2016.
210
+
211
+ Slava M Katz. Estimation of probabilities from sparse data for the language model component of a speech recognizer. ICASSP, 1987.
212
+
213
+ Sanjeev Khudanpur and Jun Wu. Maximum entropy techniques for exploiting syntactic, semantic and collocational dependencies in language modeling. Computer Speech & Language, 2000.
214
+
215
+ Reinhard Kneser and Hermann Ney. Improved backing-off for m-gram language modeling. In ICASSP, 1995.
216
+
217
+ Reinhard Kneser and Volker Steinbiss. On the dynamic adaptation of stochastic language models. In ICASSP, 1993.
218
+
219
+ Roland Kuhn. Speech recognition and the frequency of recently used words: A modified markov model for natural language. In Proceedings of the 12th conference on Computational linguistics-Volume 1, 1988.
220
+
221
+ Roland Kuhn and Renato De Mori. A cache-based natural language model for speech recognition. PAMI, 1990.
222
+
223
+ Julien Kupiec. Probabilistic models of short and long distance word dependencies in running text. In Proceedings of the workshop on Speech and Natural Language, 1989.
224
+
225
+ Raymond Lau, Ronald Rosenfeld, and Salim Roukos. Trigger-based language models: A maximum entropy approach. In ICASSP, 1993.
226
+
227
+ Mitchell P Marcus, Mary Ann Marcinkiewicz, and Beatrice Santorini. Building a large annotated corpus of english: The penn treebank. Computational linguistics, 1993.
228
+
229
+ Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. arXiv preprint arXiv:1609.07843, 2016.
230
+
231
+ Tomas Mikolov and Geoffrey Zweig. Context dependent recurrent neural network language model. In SLT, 2012.
232
+
233
+ Tomas Mikolov, Martin KarafiΓ‘t, Lukas Burget, Jan Cernocky, and Sanjeev Khudanpur. Recurrent neural \` network based language model. In INTERSPEECH, 2010.
234
+
235
+ Tomas Mikolov, Anoop Deoras, Stefan Kombrink, Lukas Burget, and Jan Cernocky. Empirical evaluation and \` combination of advanced language modeling techniques. In INTERSPEECH, 2011.
236
+
237
+ Tomas Mikolov, Armand Joulin, Sumit Chopra, Michael Mathieu, and Marc’Aurelio Ranzato. Learning longer memory in recurrent neural networks. arXiv preprint arXiv:1412.7753, 2014.
238
+
239
+ Denis Paperno, GermΓ‘n Kruszewski, Angeliki Lazaridou, Quan Ngoc Pham, Raffaella Bernardi, Sandro Pezzelle, Marco Baroni, Gemma Boleda, and Raquel FernΓ‘ndez. The lambada dataset: Word prediction requiring a broad discourse context. arXiv preprint arXiv:1606.06031, 2016.
240
+
241
+ Ronald Rosenfeld. A maximum entropy approach to adaptive statistical language modeling. Computer, Speech and Language, 1996.
242
+
243
+ Andreas Stolcke, Noah Coccaro, Rebecca Bates, Paul Taylor, Carol Van Ess-Dykema, Klaus Ries, Elizabeth Shriberg, Daniel Jurafsky, Rachel Martin, and Marie Meteer. Dialogue act modeling for automatic tagging and recognition of conversational speech. Computational linguistics, 2000.
244
+
245
+ Sainbayar Sukhbaatar, Szlam Arthur, Jason Weston, and Rob Fergus. End-to-end memory networks. In NIPS, 2015.
246
+
247
+ Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. Pointer networks. In NIPS, 2015.
248
+
249
+ Tian Wang and Kyunghyun Cho. Larger-context language modelling. arXiv preprint arXiv:1511.03729, 2015.
250
+
251
+ Paul J Werbos. Backpropagation through time: what it does and how to do it. 1990.
252
+
253
+ Ronald J Williams and Jing Peng. An efficient gradient-based algorithm for on-line training of recurrent network trajectories. Neural computation, 1990.
254
+
255
+ Wojciech Zaremba, Ilya Sutskever, and Oriol Vinyals. Recurrent neural network regularization. arXiv preprint arXiv:1409.2329, 2014.
256
+
257
+ Julian Georg Zilly, Rupesh Kumar Srivastava, Jan KoutnΓ­k, and JΓΌrgen Schmidhuber. Recurrent highway networks. arXiv preprint arXiv:1607.03474, 2016.
parse/train/B184E5qee/B184E5qee_content_list.json ADDED
@@ -0,0 +1,1343 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "IMPROVING NEURAL LANGUAGE MODELS WITH A CONTINUOUS CACHE ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 821,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Edouard Grave, Armand Joulin, Nicolas Usunier Facebook AI Research {egrave,ajoulin,usunier}@fb.com ",
17
+ "bbox": [
18
+ 184,
19
+ 170,
20
+ 526,
21
+ 212
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 250,
32
+ 544,
33
+ 263
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "We propose an extension to neural network language models to adapt their prediction to the recent history. Our model is a simplified version of memory augmented networks, which stores past hidden activations as memory and accesses them through a dot product with the current hidden activation. This mechanism is very efficient and scales to very large memory sizes. We also draw a link between the use of external memory in neural network and cache models used with count based language models. We demonstrate on several language model datasets that our approach performs significantly better than recent memory augmented networks. ",
40
+ "bbox": [
41
+ 233,
42
+ 282,
43
+ 764,
44
+ 407
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 438,
55
+ 336,
56
+ 454
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Language models, which are probability distributions over sequences of words, have many applications such as machine translation (Brown et al., 1993), speech recognition (Bahl et al., 1983) or dialogue agents (Stolcke et al., 2000). While traditional neural networks language models have obtained state-of-the-art performance in this domain (Jozefowicz et al., 2016; Mikolov et al., 2010), they lack the capacity to adapt to their recent history, limiting their application to dynamic environments (Dodge et al., 2015). A recent approach to solve this problem is to augment these networks with an external memory (Graves et al., 2014; Grefenstette et al., 2015; Joulin & Mikolov, 2015; Sukhbaatar et al., 2015). These models can potentially use their external memory to store new information and adapt to a changing environment. ",
63
+ "bbox": [
64
+ 174,
65
+ 470,
66
+ 825,
67
+ 597
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "While these networks have obtained promising results on language modeling datasets (Sukhbaatar et al., 2015), they are quite computationally expensive. Typically, they have to learn a parametrizable mechanism to read or write to memory cells (Graves et al., 2014; Joulin & Mikolov, 2015). This may limit both the size of their usable memory as well as the quantity of data they can be trained on. In this work, we propose a very light-weight alternative that shares some of the properties of memory augmented networks, notably the capability to dynamically adapt over time. By minimizing the computation burden of the memory, we are able to use larger memory and scale to bigger datasets. We observe in practice that this allows us to surpass the perfomance of memory augmented networks on different language modeling tasks. ",
74
+ "bbox": [
75
+ 174,
76
+ 603,
77
+ 825,
78
+ 728
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Our model share some similarities with a model proposed by Kuhn (1988), called the cache model. A cache model stores a simple representation of the recent past, often in the form of unigrams, and uses them for prediction (Kuhn & De Mori, 1990). This contextual information is quite cheap to store and can be accessed efficiently. It also does not need any training and can be appplied on top of any model. This makes this model particularly interesting for domain adaptation (Kneser & Steinbiss, 1993). ",
85
+ "bbox": [
86
+ 174,
87
+ 734,
88
+ 825,
89
+ 819
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Our main contribution is to propose a continuous version of the cache model, called Neural Cache Model, that can be adapted to any neural network language model. We store recent hidden activations and use them as representation for the context. Using simply a dot-product with the current hidden activations, they turn out to be extremely informative for prediction. Our model requires no training and can be used on any pre-trained neural networks. It also scales effortlessly to thousands of memory cells. We demonstrate the quality of the Neural Cache models on several language model tasks and the LAMBADA dataset (Paperno et al., 2016). ",
96
+ "bbox": [
97
+ 174,
98
+ 825,
99
+ 825,
100
+ 924
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "2 LANGUAGE MODELING ",
107
+ "text_level": 1,
108
+ "bbox": [
109
+ 176,
110
+ 102,
111
+ 398,
112
+ 118
113
+ ],
114
+ "page_idx": 1
115
+ },
116
+ {
117
+ "type": "text",
118
+ "text": "A language model is a probability distribution over sequences of words. Let $V$ be the size of the vocabulary; each word is represented by a one-hot encoding vector $x$ in $\\mathbb { R } ^ { V } = \\nu$ , corresponding to its index in the vocabulary. Using the chain rule, the probability assigned to a sequence of words $x _ { 1 } , \\ldots , x _ { T }$ can be factorized as ",
119
+ "bbox": [
120
+ 174,
121
+ 132,
122
+ 825,
123
+ 189
124
+ ],
125
+ "page_idx": 1
126
+ },
127
+ {
128
+ "type": "equation",
129
+ "img_path": "images/acc07e4a6c3e15f3bbe4cfe94568aefbe99a3059e2e8b12efb4c02cd4c8ea96d.jpg",
130
+ "text": "$$\np ( x _ { 1 } , . . . , x _ { T } ) = \\prod _ { t = 1 } ^ { T } p ( x _ { t } \\mid x _ { t - 1 } , . . . , x _ { 1 } ) .\n$$",
131
+ "text_format": "latex",
132
+ "bbox": [
133
+ 366,
134
+ 195,
135
+ 630,
136
+ 239
137
+ ],
138
+ "page_idx": 1
139
+ },
140
+ {
141
+ "type": "text",
142
+ "text": "Language modeling is often framed as learning the conditional probability over words, given the history (Bahl et al., 1983). ",
143
+ "bbox": [
144
+ 176,
145
+ 244,
146
+ 820,
147
+ 273
148
+ ],
149
+ "page_idx": 1
150
+ },
151
+ {
152
+ "type": "text",
153
+ "text": "This conditional probability is traditionally approximated with non-parameteric models based on counting statistics (Goodman, 2001). In particular, smoothed N-gram models (Katz, 1987; Kneser & Ney, 1995) achieve good performance in practice (Mikolov et al., 2011). Parametrized alternatives are either maximum entropy language models (Rosenfeld, 1996), feedforward networks (Bengio et al., 2003) or recurrent networks (Mikolov et al., 2010). In particular, recurrent networks are currently the best solution to approximate this conditional probability, achieving state-of-the-arts performance on standard language modeling benchmarks (Jozefowicz et al., 2016; Zilly et al., 2016). ",
154
+ "bbox": [
155
+ 173,
156
+ 280,
157
+ 825,
158
+ 378
159
+ ],
160
+ "page_idx": 1
161
+ },
162
+ {
163
+ "type": "text",
164
+ "text": "Recurrent networks. Assuming that we have a vector $h _ { t } \\in \\mathbb { R } ^ { d }$ encoding the history $x _ { t } , . . . , x _ { 1 }$ , the conditional probability of a word $w$ can be parametrized as ",
165
+ "bbox": [
166
+ 171,
167
+ 392,
168
+ 823,
169
+ 421
170
+ ],
171
+ "page_idx": 1
172
+ },
173
+ {
174
+ "type": "equation",
175
+ "img_path": "images/4c8c85ce02c3fed812b8ffc9cc7d49261d2e29dd724165813cc8b860431d7c7d.jpg",
176
+ "text": "$$\np _ { v o c a b } ( w \\mid x _ { t } , . . . , x _ { 1 } ) \\propto \\exp ( h _ { t } ^ { \\top } o _ { w } ) .\n$$",
177
+ "text_format": "latex",
178
+ "bbox": [
179
+ 375,
180
+ 428,
181
+ 620,
182
+ 448
183
+ ],
184
+ "page_idx": 1
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "The history vector $h _ { t }$ is computed by a recurrent network by recursively applying an equation of the form ",
189
+ "bbox": [
190
+ 173,
191
+ 453,
192
+ 825,
193
+ 481
194
+ ],
195
+ "page_idx": 1
196
+ },
197
+ {
198
+ "type": "equation",
199
+ "img_path": "images/01898cc49588f79d99cdd30f741fc05992c36dd8afbe5747ca8db0bb2f582f20.jpg",
200
+ "text": "$$\nh _ { t } = \\Phi \\left( x _ { t } , h _ { t - 1 } \\right) ,\n$$",
201
+ "text_format": "latex",
202
+ "bbox": [
203
+ 434,
204
+ 479,
205
+ 562,
206
+ 497
207
+ ],
208
+ "page_idx": 1
209
+ },
210
+ {
211
+ "type": "text",
212
+ "text": "where $\\Phi$ is a function depending on the architecture of the network. Several architecture for recurrent networks have been proposed, such as the Elman network (Elman, 1990), the long short-term memory (LSTM) (Hochreiter & Schmidhuber, 1997) or the gated recurrent unit (GRU) (Chung et al., 2014). One of the simplest recurrent networks is the Elman network (Elman, 1990), where ",
213
+ "bbox": [
214
+ 173,
215
+ 501,
216
+ 825,
217
+ 556
218
+ ],
219
+ "page_idx": 1
220
+ },
221
+ {
222
+ "type": "equation",
223
+ "img_path": "images/ab2c3d9dd446a4bab91926eca8341d3f0283146eb28bcd4fe45ec19154a40635.jpg",
224
+ "text": "$$\nh _ { t } = \\sigma \\left( L x _ { t } + R h _ { t - 1 } \\right) ,\n$$",
225
+ "text_format": "latex",
226
+ "bbox": [
227
+ 416,
228
+ 563,
229
+ 578,
230
+ 580
231
+ ],
232
+ "page_idx": 1
233
+ },
234
+ {
235
+ "type": "text",
236
+ "text": "where $\\sigma$ is a non-linearity such as the logistic or tanh functions, $L \\in \\mathbb { R } ^ { d \\times V }$ is a word embedding matrix and $R \\in \\mathbb { R } ^ { d \\times d }$ is the recurrent matrix. The LSTM architecture is particularly interesting in the context of language modelling (Jozefowicz et al., 2016) and we refer the reader to Graves et al. (2013) for details on this architecture. ",
237
+ "bbox": [
238
+ 174,
239
+ 587,
240
+ 825,
241
+ 643
242
+ ],
243
+ "page_idx": 1
244
+ },
245
+ {
246
+ "type": "text",
247
+ "text": "The parameters of recurrent neural network language models are learned by minimizing the negative log-likelihood of the training data. This objective function is usually minimized by using the stochastic gradient descent algorithm, or variants such as Adagrad (Duchi et al., 2011). The gradient is computed using the truncated backpropagation through time algorithm (Werbos, 1990; Williams & Peng, 1990). ",
248
+ "bbox": [
249
+ 173,
250
+ 650,
251
+ 825,
252
+ 719
253
+ ],
254
+ "page_idx": 1
255
+ },
256
+ {
257
+ "type": "text",
258
+ "text": "Cache model. After a word appears once in a document, it is much more likely to appear again. As an example, the frequency of the word tiger on the Wikipedia page of the same name is $2 . 8 \\%$ , compared to $0 . 0 0 3 7 \\%$ over the whole Wikipedia. Cache models exploit this simple observation to improve $n$ -gram language models by capturing long-range dependencies in documents. More precisely, these models have a cache component, which contains the words that appeared in the recent history (either the document or a fixed number of words). A simple language model, such as a unigram or smoothed bigram model, is fitted on the words of the cache and interpolated with the static language model (trained over a larger dataset). This technique has many advantages. First, this is a very efficient way to adapt a language model to a new domain. Second, such models can predict out-of-vocabulary words (OOV words), after seeing them once. Finally, this helps capture long-range dependencies in documents, in order to generate more coherent text. ",
259
+ "bbox": [
260
+ 173,
261
+ 734,
262
+ 825,
263
+ 888
264
+ ],
265
+ "page_idx": 1
266
+ },
267
+ {
268
+ "type": "image",
269
+ "img_path": "images/cf4652e06ce92d3dc252856a2cd9705b2ca2a4147643ec3cc2c62263c4eaeb03.jpg",
270
+ "image_caption": [
271
+ "Figure 1: The neural cache stores the previous hidden states in memory cells. They are then used as keys to retrieve their corresponding word, that is the next word. There is no transformation applied to the storage during writing and reading. "
272
+ ],
273
+ "image_footnote": [],
274
+ "bbox": [
275
+ 192,
276
+ 104,
277
+ 508,
278
+ 270
279
+ ],
280
+ "page_idx": 2
281
+ },
282
+ {
283
+ "type": "text",
284
+ "text": "3 NEURAL CACHE MODEL ",
285
+ "text_level": 1,
286
+ "bbox": [
287
+ 176,
288
+ 291,
289
+ 411,
290
+ 309
291
+ ],
292
+ "page_idx": 2
293
+ },
294
+ {
295
+ "type": "text",
296
+ "text": "The Neural Cache Model adds a cache-like memory to neural network language models. It exploits the hidden representations $h _ { t }$ to define a probability distribution over the words in the cache. As illustrated Figure 1, the cache stores pairs $\\left( h _ { i } , x _ { i + 1 } \\right)$ of a hidden representation, and the word which was generated based on this representation (we remind the reader that the vector $h _ { i }$ encodes the history $x _ { i } , . . . , x _ { 1 } )$ . At time $t$ , we then define a probability distribution over words stored in the cache based on the stored hidden representations and the current one $h _ { t }$ as ",
297
+ "bbox": [
298
+ 173,
299
+ 321,
300
+ 825,
301
+ 407
302
+ ],
303
+ "page_idx": 2
304
+ },
305
+ {
306
+ "type": "equation",
307
+ "img_path": "images/f1b7d288810d0584e3e99ae63c335fa222c148f5a440e358a3c773da9d5e6dba.jpg",
308
+ "text": "$$\np _ { c a c h e } ( w \\mid h _ { 1 . . t } , ~ x _ { 1 . . t } ) \\propto \\sum _ { i = 1 } ^ { t - 1 } \\mathbb { 1 } _ { \\{ w = x _ { i + 1 } \\} } \\exp ( \\theta h _ { t } ^ { \\top } h _ { i } )\n$$",
309
+ "text_format": "latex",
310
+ "bbox": [
311
+ 320,
312
+ 409,
313
+ 676,
314
+ 452
315
+ ],
316
+ "page_idx": 2
317
+ },
318
+ {
319
+ "type": "text",
320
+ "text": "where the scalar $\\theta$ is a parameter which controls the flatness of the distribution. When $\\theta$ is equal to zero, the probability distribution over the history is uniform, and our model is equivalent to a unigram cache model (Kuhn & De Mori, 1990). ",
321
+ "bbox": [
322
+ 176,
323
+ 454,
324
+ 823,
325
+ 497
326
+ ],
327
+ "page_idx": 2
328
+ },
329
+ {
330
+ "type": "text",
331
+ "text": "From the point of view of memory-augmented neural networks, the probability $p _ { c a c h e } ( w \\mid h _ { 1 . . t } , \\ x _ { 1 . . t } )$ given by the neural cache model can be interpreted as the probability to retrieve the word $w$ from the memory given the query $h _ { t }$ , where the desired answer is the next word $x _ { t + 1 }$ . Using previous hidden states as keys for the words in the memory, the memory lookup operator can be implemented with simple dot products between the keys and the query. In contrast to existing memory-augmented neural networks, the neural cache model avoids the need to learn the memory lookup operator. Such a cache can thus be added to a pre-trained recurrent neural language model without fine tuning of the parameters, and large cache size can be used with negligible impact on the computational cost of a prediction. ",
332
+ "bbox": [
333
+ 173,
334
+ 502,
335
+ 825,
336
+ 630
337
+ ],
338
+ "page_idx": 2
339
+ },
340
+ {
341
+ "type": "text",
342
+ "text": "Neural cache language model. Following the standard practice in n-gram cache-based language models, the final probability of a word is given by the linear interpolation of the cache language model with the regular language model, obtaining: ",
343
+ "bbox": [
344
+ 176,
345
+ 642,
346
+ 823,
347
+ 685
348
+ ],
349
+ "page_idx": 2
350
+ },
351
+ {
352
+ "type": "equation",
353
+ "img_path": "images/fba678248f6ba9ae5246555d1723736cb0a90f83870a6551296f554bd6da8797.jpg",
354
+ "text": "$$\np ( w \\mid h _ { 1 . . t } , ~ x _ { 1 . . t } ) = ( 1 - \\lambda ) p _ { v o c a b } ( w \\mid h _ { t } ) + \\lambda p _ { c a c h e } ( w \\mid h _ { 1 . . t } , x _ { 1 . . t } ) .\n$$",
355
+ "text_format": "latex",
356
+ "bbox": [
357
+ 264,
358
+ 688,
359
+ 732,
360
+ 705
361
+ ],
362
+ "page_idx": 2
363
+ },
364
+ {
365
+ "type": "text",
366
+ "text": "Instead of taking a linear interpolation between the two distribution with a fixed $\\lambda$ , we also consider a global normalization over the two distribution: ",
367
+ "bbox": [
368
+ 174,
369
+ 715,
370
+ 823,
371
+ 743
372
+ ],
373
+ "page_idx": 2
374
+ },
375
+ {
376
+ "type": "equation",
377
+ "img_path": "images/403e26b4e6492678125e29b85dc856092417258cba2a732365346b6598ee6fac.jpg",
378
+ "text": "$$\np ( w \\mid h _ { 1 . . t } , ~ x _ { 1 . . t } ) \\propto \\left( \\exp ( h _ { t } ^ { \\top } o _ { w } ) + \\sum _ { i = 1 } ^ { t - 1 } \\mathbb { 1 } _ { \\{ w = x _ { i + 1 } \\} } \\exp ( \\theta h _ { t } ^ { \\top } h _ { i } + \\alpha ) \\right) .\n$$",
379
+ "text_format": "latex",
380
+ "bbox": [
381
+ 256,
382
+ 746,
383
+ 741,
384
+ 790
385
+ ],
386
+ "page_idx": 2
387
+ },
388
+ {
389
+ "type": "text",
390
+ "text": "This corresponds to taking a softmax over the vocabulary and the words in the cache. The parameter $\\alpha$ controls the weight of the cache component, and is the counterpart of the $\\lambda$ parameter for linear interpolation. ",
391
+ "bbox": [
392
+ 174,
393
+ 791,
394
+ 825,
395
+ 833
396
+ ],
397
+ "page_idx": 2
398
+ },
399
+ {
400
+ "type": "text",
401
+ "text": "The addition of the neural cache to a recurrent neural language model inherits the advantages of $n$ - gram caches in usual cache-based models: The probability distribution over words is updated online depending on the context, and out-of-vocabulary words can be predicted as soon as they have been seen at least once in the recent history. The neural cache also inherits the ability of the hidden states of recurrent neural networks to model longer-term contexts than small $n$ -grams, and thus allows for a finer modeling of the current context than e.g., unigram caches. ",
402
+ "bbox": [
403
+ 173,
404
+ 839,
405
+ 825,
406
+ 924
407
+ ],
408
+ "page_idx": 2
409
+ },
410
+ {
411
+ "type": "image",
412
+ "img_path": "images/89dee18a863e0919f58a31c0b0fced0db90e513f3d196f09ed8d2380bb79b7fb.jpg",
413
+ "image_caption": [
414
+ "Figure 2: Perplexity on the validation set of Penn Tree Bank for linear interpolation (left) and global normalization (right), for various values of hyperparameters $\\theta$ , $\\lambda$ and $\\alpha$ . We use a cache model of size 500. The base model has a validation perplexity of 86.9. The best linear interpolation has a perplexity of 74.6, while the best global normalization has a perplexity of 74.9. "
415
+ ],
416
+ "image_footnote": [],
417
+ "bbox": [
418
+ 207,
419
+ 107,
420
+ 794,
421
+ 265
422
+ ],
423
+ "page_idx": 3
424
+ },
425
+ {
426
+ "type": "table",
427
+ "img_path": "images/543adbe3d8e87f4f1b8b8e6d36b015312b70af92a7c10e2eb7aff3c69e291e5d.jpg",
428
+ "table_caption": [
429
+ "Table 1: Test perplexity on the Penn Tree Bank. "
430
+ ],
431
+ "table_footnote": [],
432
+ "table_body": "<table><tr><td>Model</td><td>Test PPL</td></tr><tr><td>RNN+LSA+KN5+cache (Mikolov &amp; Zweig, 2012)</td><td>90.3</td></tr><tr><td>LSTM (Zaremba et al., 2014)</td><td>78.4</td></tr><tr><td>Variational LSTM (Gal &amp; Ghahramani, 2015)</td><td>73.4</td></tr><tr><td>Recurrent Highway Network (Zilly et al., 2016)</td><td>66.0</td></tr><tr><td>Pointer Sentinel LSTM (Merity et al.,2016)</td><td>70.9</td></tr><tr><td>LSTM (our implem.)</td><td>82.3</td></tr><tr><td>Neural cache model</td><td>72.1</td></tr></table>",
433
+ "bbox": [
434
+ 299,
435
+ 339,
436
+ 697,
437
+ 463
438
+ ],
439
+ "page_idx": 3
440
+ },
441
+ {
442
+ "type": "text",
443
+ "text": "Training procedure. For now, we first train the (recurrent) neural network language model, without the cache component. We only apply the cache model at test time, and choose the hyperparameters $\\theta$ and $\\lambda$ (or $\\alpha$ ) on the validation set. A big advantage of our method is that it is very easy and cheap to apply, with already trained neural models. There is no need to perform backpropagation over large contexts, and we can thus apply our method with large cache sizes (larger than one thousand). ",
444
+ "bbox": [
445
+ 173,
446
+ 515,
447
+ 825,
448
+ 599
449
+ ],
450
+ "page_idx": 3
451
+ },
452
+ {
453
+ "type": "text",
454
+ "text": "4 RELATED WORK ",
455
+ "text_level": 1,
456
+ "bbox": [
457
+ 176,
458
+ 621,
459
+ 341,
460
+ 637
461
+ ],
462
+ "page_idx": 3
463
+ },
464
+ {
465
+ "type": "text",
466
+ "text": "Cache model. Adding a cache to a language model was intoducted in the context of speech recognition(Kuhn, 1988; Kupiec, 1989; Kuhn & De Mori, 1990). These models were further extended by Jelinek et al. (1991) into a smoothed trigram language model, reporting reduction in both perplexity and word error rates. Della Pietra et al. (1992) adapt the cache to a general $n$ -gram model such that it satisfies marginal constraints obtained from the current document. ",
467
+ "bbox": [
468
+ 173,
469
+ 654,
470
+ 825,
471
+ 723
472
+ ],
473
+ "page_idx": 3
474
+ },
475
+ {
476
+ "type": "text",
477
+ "text": "Adaptive language models. Other adaptive language models have been proposed in the past: Kneser & Steinbiss (1993) and Iyer & Ostendorf (1999) dynamically adapt the parameters of their model to the recent history using different weight interpolation schemes. Bellegarda (2000) and Coccaro & Jurafsky (1998) use latent semantic analysis to adapt their models to the current context. Similarly, topic features have been used with either maximum entropy models (Khudanpur & Wu, 2000) or recurrent networks (Mikolov & Zweig, 2012; Wang & Cho, 2015). Finally, Lau et al. (1993) proposes to use pairs of distant of words to capture long-range dependencies. ",
478
+ "bbox": [
479
+ 174,
480
+ 739,
481
+ 825,
482
+ 838
483
+ ],
484
+ "page_idx": 3
485
+ },
486
+ {
487
+ "type": "text",
488
+ "text": "Memory augmented neural networks. In the context of sequence prediction, several memory augmented neural networks have obtained promising results (Sukhbaatar et al., 2015; Graves et al., 2014; Grefenstette et al., 2015; Joulin & Mikolov, 2015). In particular, Sukhbaatar et al. (2015) stores a representation of the recent past and accesses it using an attention mechanism Bahdanau et al. (2014). Sukhbaatar et al. (2015) shows that this reduces the perplexity for language modeling. ",
489
+ "bbox": [
490
+ 174,
491
+ 854,
492
+ 823,
493
+ 924
494
+ ],
495
+ "page_idx": 3
496
+ },
497
+ {
498
+ "type": "image",
499
+ "img_path": "images/1f2579aa6e9ffc10db91676682d66b0fb2f6c4f3c580061eb001161b8e41d356.jpg",
500
+ "image_caption": [
501
+ "Figure 3: Perplexity on the validation set of wikitext2 for linear interpolation (left) and global normalization (right), for various values of hyperparameters $\\theta$ , $\\lambda$ and $\\alpha$ . We use a cache model of size 2000. The base model has a validation perplexity of 104.2. The best linear interpolation has a perplexity of 72.1, while the best global normalization has a perplexity of 73.5. "
502
+ ],
503
+ "image_footnote": [],
504
+ "bbox": [
505
+ 199,
506
+ 107,
507
+ 799,
508
+ 265
509
+ ],
510
+ "page_idx": 4
511
+ },
512
+ {
513
+ "type": "table",
514
+ "img_path": "images/7ccf2bc92c623cb2c0431afc3d1302f5b0c39f3e48ebc23a341a2a6c56f498bb.jpg",
515
+ "table_caption": [],
516
+ "table_footnote": [],
517
+ "table_body": "<table><tr><td>Model</td><td>wikitext2</td><td>wikitext103</td></tr><tr><td>Zoneout + Variational LSTM (Merity et al.,2016)</td><td>100.9</td><td></td></tr><tr><td>Pointer Sentinel LSTM (Merity et al., 2016)</td><td>80.8</td><td>1</td></tr><tr><td>LSTM (our implementation)</td><td>99.3</td><td>48.7</td></tr><tr><td>Neural cache model (size = 100)</td><td>81.6</td><td>44.8</td></tr><tr><td>Neural cache model (size = 2,000)</td><td>68.9</td><td>40.8</td></tr></table>",
518
+ "bbox": [
519
+ 232,
520
+ 338,
521
+ 764,
522
+ 436
523
+ ],
524
+ "page_idx": 4
525
+ },
526
+ {
527
+ "type": "text",
528
+ "text": "Table 2: Test perplexity on the wikitext datasets. The two datasets share the same validation and test sets, making all the results comparable. ",
529
+ "bbox": [
530
+ 174,
531
+ 446,
532
+ 823,
533
+ 474
534
+ ],
535
+ "page_idx": 4
536
+ },
537
+ {
538
+ "type": "text",
539
+ "text": "This approach has been successfully applied to question answering, when the answer is contained in a given paragraph (Chen et al., 2016; Hermann et al., 2015; Kadlec et al., 2016; Sukhbaatar et al., 2015). Similarly, Vinyals et al. (2015) explores the use of this mechanism to reorder sequences of tokens. Their network uses an attention (or β€œpointer”) over the input sequence to predict which element should be selected as the next output. Gulcehre et al. (2016) have shown that a similar mechanism called pointer softmax could be used in the context of machine translation, to decide which word to copy from the source to target. ",
540
+ "bbox": [
541
+ 173,
542
+ 501,
543
+ 825,
544
+ 599
545
+ ],
546
+ "page_idx": 4
547
+ },
548
+ {
549
+ "type": "text",
550
+ "text": "Independently of our work, Merity et al. (2016) apply the same mechanism to recurrent network. Unlike our work, they uses the current hidden activation as a representation of the current input (while we use it to represent the output). This requires additional learning of a transformation between the current representation and those in the past. The advantage of our approach is that we can scale to very large caches effortlessly. ",
551
+ "bbox": [
552
+ 174,
553
+ 606,
554
+ 825,
555
+ 676
556
+ ],
557
+ "page_idx": 4
558
+ },
559
+ {
560
+ "type": "text",
561
+ "text": "5 EXPERIMENTS ",
562
+ "text_level": 1,
563
+ "bbox": [
564
+ 176,
565
+ 696,
566
+ 326,
567
+ 712
568
+ ],
569
+ "page_idx": 4
570
+ },
571
+ {
572
+ "type": "text",
573
+ "text": "In this section, we evaluate our method on various language modeling datasets, which have different sizes and characteristics. On all datasets, we train a static recurrent neural network language model with LSTM units. We then use the hidden representations from this model to obtain our cache, which is interpolated with the static LSTM model. We also evaluate a unigram cache model interpolated with the static model as another baseline. ",
574
+ "bbox": [
575
+ 174,
576
+ 727,
577
+ 825,
578
+ 796
579
+ ],
580
+ "page_idx": 4
581
+ },
582
+ {
583
+ "type": "text",
584
+ "text": "5.1 SMALL SCALE EXPERIMENTS ",
585
+ "text_level": 1,
586
+ "bbox": [
587
+ 176,
588
+ 814,
589
+ 416,
590
+ 828
591
+ ],
592
+ "page_idx": 4
593
+ },
594
+ {
595
+ "type": "text",
596
+ "text": "Datasets. In this section, we describe experiments performed on two small datasets: the Penn Tree Bank (Marcus et al., 1993) and the wikitext2 (Merity et al., 2016) datasets. The Penn Tree Bank dataset is made of articles from the Wall Street Journal, contains $9 2 9 \\mathrm { k }$ training tokens and has a vocabulary size of 10k. The wikitext2 dataset is derived from Wikipedia articles, contains 2M training tokens and has a vocabulary size of 33k. These datasets contain non-shuffled documents, therefore requiring models to capture inter-sentences dependencies to perform well. ",
597
+ "bbox": [
598
+ 174,
599
+ 840,
600
+ 825,
601
+ 924
602
+ ],
603
+ "page_idx": 4
604
+ },
605
+ {
606
+ "type": "image",
607
+ "img_path": "images/239b837a7406cfdca609786eda77fbccc139af2404a2727b6d8c5998ce090737.jpg",
608
+ "image_caption": [
609
+ "Figure 4: Test perplexity as a function of the number of words in the cache, for our method and a unigram cache baseline. We observe that our approach can uses larger caches than the baseline. "
610
+ ],
611
+ "image_footnote": [],
612
+ "bbox": [
613
+ 184,
614
+ 107,
615
+ 813,
616
+ 295
617
+ ],
618
+ "page_idx": 5
619
+ },
620
+ {
621
+ "type": "text",
622
+ "text": "Implementation details. We train recurrent neural network language models with 1024 LSTM units, regularized with dropout (probability of dropping out units equals to 0.65). We use the Adagrad algorithm, with a learning rate of 0.2, a batchsize of 20 and initial weight uniformly sampled in the range $[ - 0 . 0 5 , 0 . 0 5 ]$ . We clip the norm of the gradient to 0.1 and unroll the network for 30 steps. We consider cache sizes on a logarithmic scale, from 50 to 10, 000, and fit the cache hyperparameters on the validation set. ",
623
+ "bbox": [
624
+ 174,
625
+ 359,
626
+ 825,
627
+ 443
628
+ ],
629
+ "page_idx": 5
630
+ },
631
+ {
632
+ "type": "text",
633
+ "text": "Results. We report the perplexity on the validation sets in Figures 2 and 3, for various values of hyperparameters, for linear interpolation and global normalization. First, we observe that on both datasets, the linear interpolation method performs slightly better than the global normalization approach. It is also easier to apply in practice, and we thus use this method in the remainder of this paper. In Tables 1 and 2, we report the test perplexity of our approach and state-of-the-art models. Our approach is competitive with previous models, in particular with the pointer sentinel LSTM model of Merity et al. (2016). On Penn Tree Bank, we note that the improvement over the base model is similar for both methods. On the wikitext2 dataset, both methods obtain similar results when using the same cache size (100 words). Since our method is computationally cheap, it is easy to increase the cache to larger values (2, 000 words), leading to dramatic improvements ( $3 0 \\%$ over the baseline, $1 2 \\%$ over a small cache of 100 words). ",
634
+ "bbox": [
635
+ 174,
636
+ 460,
637
+ 825,
638
+ 612
639
+ ],
640
+ "page_idx": 5
641
+ },
642
+ {
643
+ "type": "text",
644
+ "text": "5.2 MEDIUM SCALE EXPERIMENTS ",
645
+ "text_level": 1,
646
+ "bbox": [
647
+ 176,
648
+ 631,
649
+ 428,
650
+ 645
651
+ ],
652
+ "page_idx": 5
653
+ },
654
+ {
655
+ "type": "text",
656
+ "text": "Datasets and implementation details. In this section, we describe experiments performed over two medium scale datasets: text8 and wikitext103. Both datasets are derived from Wikipedia, but different pre-processing were applied. The text8 dataset contains 17M training tokens and has a vocabulary size of 44k words, while the wikitext103 dataset has a training set of size 103M, and a vocabulary size of 267k words. We use the same setting as in the previous section, except for the batchsize (we use 128) and dropout parameters (we use 0.45 for text8 and 0.25 for wikitext103). Since both datasets have large vocabularies, we use the adaptive softmax (Grave et al., 2016) for faster training. ",
657
+ "bbox": [
658
+ 174,
659
+ 657,
660
+ 825,
661
+ 768
662
+ ],
663
+ "page_idx": 5
664
+ },
665
+ {
666
+ "type": "text",
667
+ "text": "Results. We report the test perplexity as a function of the cache size in Figure 4, for the neural cache model and a unigram cache baseline. We observe that our approach can exploits larger cache sizes, compared to the baseline. In Table 2, we observe that the improvement in perplexity of our method over the LSTM baseline on wikitext103 is smaller than for wikitext2 (approx. $1 6 \\%$ v.s. $3 0 \\%$ ). The fact that improvements obtained with more advanced techniques decrease when the size of training data increases has already been observed by Goodman (2001). Both wikitext datasets sharing the same test set, we also observe that the LSTM baseline, trained on 103M tokens (wikitext103), strongly outperforms more sophisticated methods, trained on 2M tokens (wikitext2). For these two reasons, we believe that it is important to evaluate and compare methods on relatively large datasets. ",
668
+ "bbox": [
669
+ 174,
670
+ 785,
671
+ 825,
672
+ 924
673
+ ],
674
+ "page_idx": 5
675
+ },
676
+ {
677
+ "type": "table",
678
+ "img_path": "images/e4401a09807758628869e7fe073e98e2b07cdc8d5546f26b4f8537e4f91d3d75.jpg",
679
+ "table_caption": [],
680
+ "table_footnote": [
681
+ "(a) text8 "
682
+ ],
683
+ "table_body": "<table><tr><td>Model</td><td>Test</td></tr><tr><td>LSTM-500 (Mikolov et al., 2014) SCRNN (Mikolov et al., 2014)</td><td>156</td></tr><tr><td>MemNN (Sukhbaatar et al., 2015)</td><td>161 147</td></tr><tr><td>LSTM-1024 (our implem.)</td><td>121.8</td></tr><tr><td>Neural cache model</td><td>99.9</td></tr></table>",
684
+ "bbox": [
685
+ 173,
686
+ 101,
687
+ 449,
688
+ 199
689
+ ],
690
+ "page_idx": 6
691
+ },
692
+ {
693
+ "type": "table",
694
+ "img_path": "images/21c8a1001b5deed64f6dc04ca863863ad060c729118e38a15501690e04b07843.jpg",
695
+ "table_caption": [],
696
+ "table_footnote": [
697
+ "(b) lambada "
698
+ ],
699
+ "table_body": "<table><tr><td>Model</td><td>Dev</td><td>Ctrl</td></tr><tr><td>WB5 (Paperno et al., 2016) WB5+cache (Paperno et al., 2016)</td><td>3125 768</td><td>285</td></tr><tr><td>LSTM-512 (Paperno et al., 2016)</td><td>5357</td><td>270 149</td></tr><tr><td>LSTM-1024 (our implem.)</td><td>4088</td><td>94</td></tr><tr><td>Neural cache model</td><td>138</td><td>129</td></tr></table>",
700
+ "bbox": [
701
+ 495,
702
+ 101,
703
+ 815,
704
+ 199
705
+ ],
706
+ "page_idx": 6
707
+ },
708
+ {
709
+ "type": "image",
710
+ "img_path": "images/3927384ae624d65f7ffe727b8d722a996fbce28ae8ec55bfda11221b9c005b0a.jpg",
711
+ "image_caption": [
712
+ "Table 3: Perplexity on the text8 and lambada datasets. WB5 stands for 5-gram language model with Witten-Bell smoothing. ",
713
+ "Figure 5: Perplexity on the development and control sets of lambada, as a function of the interpolation parameters $\\lambda$ . "
714
+ ],
715
+ "image_footnote": [],
716
+ "bbox": [
717
+ 282,
718
+ 284,
719
+ 715,
720
+ 444
721
+ ],
722
+ "page_idx": 6
723
+ },
724
+ {
725
+ "type": "text",
726
+ "text": "5.3 EXPERIMENTS ON THE LAMBADA DATASET ",
727
+ "text_level": 1,
728
+ "bbox": [
729
+ 174,
730
+ 512,
731
+ 511,
732
+ 526
733
+ ],
734
+ "page_idx": 6
735
+ },
736
+ {
737
+ "type": "text",
738
+ "text": "Finally, we report experiments carried on the lambada dataset, introduced by Paperno et al. (2016). This is a dataset of short passages extracted from novels. The goal is to predict the last word of the excerpt. This dataset was built so that human subjects solve the task perfectly when given the full context (approx. 4.6 sentences), but fail to do so when only given the sentence with the target word. Thus, most state-of-the-art language models fail on this dataset. The lambada training set contains approximately 200M tokens and has a vocabulary size of 93, 215. We report results for our method in Table 3, as well the performance of baselines from Paperno et al. (2016). Adding a neural cache model to the LSTM baseline strongly improves the performance on the lambada dataset. We also observe in Figure 5 that the best interpolation parameter between the static model and the cache is not the same for the development and control sets. This is due to the fact that more than $83 \\%$ of passages of the development set include the target word, while this is true for only $14 \\%$ of the control set. Ideally, a model should have strong results on both sets. One possible generalization of our model would be to adapt the interpolation parameter based on the current vector representation of the history $h _ { t }$ . ",
739
+ "bbox": [
740
+ 173,
741
+ 540,
742
+ 825,
743
+ 733
744
+ ],
745
+ "page_idx": 6
746
+ },
747
+ {
748
+ "type": "text",
749
+ "text": "6 CONCLUSION ",
750
+ "text_level": 1,
751
+ "bbox": [
752
+ 176,
753
+ 757,
754
+ 318,
755
+ 773
756
+ ],
757
+ "page_idx": 6
758
+ },
759
+ {
760
+ "type": "text",
761
+ "text": "We presented the neural cache model to augment neural language models with a longer-term memory that dynamically updates the word probablilities based on the long-term context. A neural cache can be added on top of a pre-trained language model at negligible cost. Our experiments on both language modeling tasks and the challenging LAMBADA dataset shows that significant performance gains can be expected by adding this external memory component. ",
762
+ "bbox": [
763
+ 174,
764
+ 791,
765
+ 823,
766
+ 861
767
+ ],
768
+ "page_idx": 6
769
+ },
770
+ {
771
+ "type": "text",
772
+ "text": "Technically, the neural cache models is similar to some recent memory-augmented neural networks such as pointer networks. However, its specific design makes it possible to avoid learning the memory lookup component. This makes the neural cache appealing since it can use larger cache sizes than memory-augment networks and can be applied as easily as traditional count-based caches. ",
773
+ "bbox": [
774
+ 174,
775
+ 867,
776
+ 823,
777
+ 924
778
+ ],
779
+ "page_idx": 6
780
+ },
781
+ {
782
+ "type": "text",
783
+ "text": "REFERENCES ",
784
+ "text_level": 1,
785
+ "bbox": [
786
+ 174,
787
+ 103,
788
+ 287,
789
+ 117
790
+ ],
791
+ "page_idx": 7
792
+ },
793
+ {
794
+ "type": "text",
795
+ "text": "Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014. ",
796
+ "bbox": [
797
+ 176,
798
+ 125,
799
+ 823,
800
+ 151
801
+ ],
802
+ "page_idx": 7
803
+ },
804
+ {
805
+ "type": "text",
806
+ "text": "Lalit R Bahl, Frederick Jelinek, and Robert L Mercer. A maximum likelihood approach to continuous speech recognition. PAMI, 1983. ",
807
+ "bbox": [
808
+ 173,
809
+ 159,
810
+ 820,
811
+ 185
812
+ ],
813
+ "page_idx": 7
814
+ },
815
+ {
816
+ "type": "text",
817
+ "text": "Jerome R Bellegarda. Exploiting latent semantic information in statistical language modeling. Proceedings of the IEEE, 2000. ",
818
+ "bbox": [
819
+ 174,
820
+ 193,
821
+ 823,
822
+ 220
823
+ ],
824
+ "page_idx": 7
825
+ },
826
+ {
827
+ "type": "text",
828
+ "text": "Yoshua Bengio, RΓ©jean Ducharme, Pascal Vincent, and Christian Jauvin. A neural probabilistic language model. JMLR, 2003. ",
829
+ "bbox": [
830
+ 174,
831
+ 228,
832
+ 823,
833
+ 255
834
+ ],
835
+ "page_idx": 7
836
+ },
837
+ {
838
+ "type": "text",
839
+ "text": "Peter F Brown, Vincent J Della Pietra, Stephen A Della Pietra, and Robert L Mercer. The mathematics of statistical machine translation: Parameter estimation. Computational linguistics, 1993. ",
840
+ "bbox": [
841
+ 173,
842
+ 262,
843
+ 823,
844
+ 290
845
+ ],
846
+ "page_idx": 7
847
+ },
848
+ {
849
+ "type": "text",
850
+ "text": "Danqi Chen, Jason Bolton, and Christopher D Manning. A thorough examination of the cnn/daily mail reading comprehension task. arXiv preprint arXiv:1606.02858, 2016. ",
851
+ "bbox": [
852
+ 173,
853
+ 297,
854
+ 821,
855
+ 324
856
+ ],
857
+ "page_idx": 7
858
+ },
859
+ {
860
+ "type": "text",
861
+ "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. ",
862
+ "bbox": [
863
+ 173,
864
+ 332,
865
+ 821,
866
+ 359
867
+ ],
868
+ "page_idx": 7
869
+ },
870
+ {
871
+ "type": "text",
872
+ "text": "Noah Coccaro and Daniel Jurafsky. Towards better integration of semantic predictors in statistical language modeling. In ICSLP. Citeseer, 1998. ",
873
+ "bbox": [
874
+ 173,
875
+ 367,
876
+ 821,
877
+ 393
878
+ ],
879
+ "page_idx": 7
880
+ },
881
+ {
882
+ "type": "text",
883
+ "text": "Stephen Della Pietra, Vincent Della Pietra, Robert L Mercer, and Salim Roukos. Adaptive language modeling using minimum discriminant estimation. In Proceedings of the workshop on Speech and Natural Language, 1992. ",
884
+ "bbox": [
885
+ 174,
886
+ 401,
887
+ 823,
888
+ 440
889
+ ],
890
+ "page_idx": 7
891
+ },
892
+ {
893
+ "type": "text",
894
+ "text": "Jesse Dodge, Andreea Gane, Xiang Zhang, Antoine Bordes, Sumit Chopra, Alexander Miller, Arthur Szlam, and Jason Weston. Evaluating prerequisite qualities for learning end-to-end dialog systems. arXiv preprint arXiv:1511.06931, 2015. ",
895
+ "bbox": [
896
+ 173,
897
+ 449,
898
+ 821,
899
+ 488
900
+ ],
901
+ "page_idx": 7
902
+ },
903
+ {
904
+ "type": "text",
905
+ "text": "John Duchi, Elad Hazan, and Yoram Singer. Adaptive subgradient methods for online learning and stochastic optimization. JMLR, 2011. ",
906
+ "bbox": [
907
+ 173,
908
+ 496,
909
+ 821,
910
+ 523
911
+ ],
912
+ "page_idx": 7
913
+ },
914
+ {
915
+ "type": "text",
916
+ "text": "Jeffrey L Elman. Finding structure in time. Cognitive science, 1990. ",
917
+ "bbox": [
918
+ 173,
919
+ 531,
920
+ 578,
921
+ 545
922
+ ],
923
+ "page_idx": 7
924
+ },
925
+ {
926
+ "type": "text",
927
+ "text": "Yarin Gal and Zoubin Ghahramani. A theoretically grounded application of dropout in recurrent neural networks. arXiv preprint arXiv:1512.05287, 2015. ",
928
+ "bbox": [
929
+ 171,
930
+ 553,
931
+ 821,
932
+ 580
933
+ ],
934
+ "page_idx": 7
935
+ },
936
+ {
937
+ "type": "text",
938
+ "text": "Joshua T Goodman. A bit of progress in language modeling. Computer Speech & Language, 2001. ",
939
+ "bbox": [
940
+ 171,
941
+ 587,
942
+ 761,
943
+ 603
944
+ ],
945
+ "page_idx": 7
946
+ },
947
+ {
948
+ "type": "text",
949
+ "text": "Edouard Grave, Armand Joulin, Moustapha CissΓ©, David Grangier, and HervΓ© JΓ©gou. Efficient softmax approximation for gpus. arXiv preprint arXiv:1609.04309, 2016. ",
950
+ "bbox": [
951
+ 171,
952
+ 609,
953
+ 820,
954
+ 637
955
+ ],
956
+ "page_idx": 7
957
+ },
958
+ {
959
+ "type": "text",
960
+ "text": "A. Graves, A. Mohamed, and G. Hinton. Speech recognition with deep recurrent neural networks. In ICASSP, 2013. ",
961
+ "bbox": [
962
+ 171,
963
+ 643,
964
+ 823,
965
+ 671
966
+ ],
967
+ "page_idx": 7
968
+ },
969
+ {
970
+ "type": "text",
971
+ "text": "Alex Graves, Greg Wayne, and Ivo Danihelka. Neural turing machines. arXiv preprint arXiv:1410.5401, 2014. ",
972
+ "bbox": [
973
+ 171,
974
+ 679,
975
+ 825,
976
+ 694
977
+ ],
978
+ "page_idx": 7
979
+ },
980
+ {
981
+ "type": "text",
982
+ "text": "Edward Grefenstette, Karl Moritz Hermann, Mustafa Suleyman, and Phil Blunsom. Learning to transduce with unbounded memory. In Advances in Neural Information Processing Systems, pp. 1828–1836, 2015. ",
983
+ "bbox": [
984
+ 173,
985
+ 702,
986
+ 821,
987
+ 728
988
+ ],
989
+ "page_idx": 7
990
+ },
991
+ {
992
+ "type": "text",
993
+ "text": "Caglar Gulcehre, Sungjin Ahn, Ramesh Nallapati, Bowen Zhou, and Yoshua Bengio. Pointing the unknown words. arXiv preprint arXiv:1603.08148, 2016. ",
994
+ "bbox": [
995
+ 174,
996
+ 736,
997
+ 823,
998
+ 763
999
+ ],
1000
+ "page_idx": 7
1001
+ },
1002
+ {
1003
+ "type": "text",
1004
+ "text": "Karl Moritz Hermann, Tomas Kocisky, Edward Grefenstette, Lasse Espeholt, Will Kay, Mustafa Suleyman, and Phil Blunsom. Teaching machines to read and comprehend. In NIPS, 2015. ",
1005
+ "bbox": [
1006
+ 174,
1007
+ 771,
1008
+ 823,
1009
+ 797
1010
+ ],
1011
+ "page_idx": 7
1012
+ },
1013
+ {
1014
+ "type": "text",
1015
+ "text": "Sepp Hochreiter and JΓΌrgen Schmidhuber. Long short-term memory. Neural computation, 1997. ",
1016
+ "bbox": [
1017
+ 176,
1018
+ 805,
1019
+ 745,
1020
+ 820
1021
+ ],
1022
+ "page_idx": 7
1023
+ },
1024
+ {
1025
+ "type": "text",
1026
+ "text": "Rukmini M Iyer and Mari Ostendorf. Modeling long distance dependence in language: Topic mixtures versus dynamic cache models. IEEE Transactions on speech and audio processing, 1999. ",
1027
+ "bbox": [
1028
+ 173,
1029
+ 828,
1030
+ 820,
1031
+ 854
1032
+ ],
1033
+ "page_idx": 7
1034
+ },
1035
+ {
1036
+ "type": "text",
1037
+ "text": "Frederick Jelinek, Bernard Merialdo, Salim Roukos, and Martin Strauss. A dynamic language model for speech recognition. In HLT, 1991. ",
1038
+ "bbox": [
1039
+ 174,
1040
+ 862,
1041
+ 821,
1042
+ 890
1043
+ ],
1044
+ "page_idx": 7
1045
+ },
1046
+ {
1047
+ "type": "text",
1048
+ "text": "Armand Joulin and Tomas Mikolov. Inferring algorithmic patterns with stack-augmented recurrent nets. In Advances in Neural Information Processing Systems, pp. 190–198, 2015. ",
1049
+ "bbox": [
1050
+ 173,
1051
+ 897,
1052
+ 825,
1053
+ 924
1054
+ ],
1055
+ "page_idx": 7
1056
+ },
1057
+ {
1058
+ "type": "text",
1059
+ "text": "Rafal Jozefowicz, Oriol Vinyals, Mike Schuster, Noam Shazeer, and Yonghui Wu. Exploring the limits of language modeling. arXiv preprint arXiv:1602.02410, 2016. ",
1060
+ "bbox": [
1061
+ 173,
1062
+ 103,
1063
+ 825,
1064
+ 131
1065
+ ],
1066
+ "page_idx": 8
1067
+ },
1068
+ {
1069
+ "type": "text",
1070
+ "text": "Rudolf Kadlec, Martin Schmid, Ondrej Bajgar, and Jan Kleindienst. Text understanding with the attention sum reader network. arXiv preprint arXiv:1603.01547, 2016. ",
1071
+ "bbox": [
1072
+ 176,
1073
+ 137,
1074
+ 821,
1075
+ 165
1076
+ ],
1077
+ "page_idx": 8
1078
+ },
1079
+ {
1080
+ "type": "text",
1081
+ "text": "Slava M Katz. Estimation of probabilities from sparse data for the language model component of a speech recognizer. ICASSP, 1987. ",
1082
+ "bbox": [
1083
+ 174,
1084
+ 170,
1085
+ 823,
1086
+ 196
1087
+ ],
1088
+ "page_idx": 8
1089
+ },
1090
+ {
1091
+ "type": "text",
1092
+ "text": "Sanjeev Khudanpur and Jun Wu. Maximum entropy techniques for exploiting syntactic, semantic and collocational dependencies in language modeling. Computer Speech & Language, 2000. ",
1093
+ "bbox": [
1094
+ 173,
1095
+ 204,
1096
+ 821,
1097
+ 231
1098
+ ],
1099
+ "page_idx": 8
1100
+ },
1101
+ {
1102
+ "type": "text",
1103
+ "text": "Reinhard Kneser and Hermann Ney. Improved backing-off for m-gram language modeling. In ICASSP, 1995. ",
1104
+ "bbox": [
1105
+ 171,
1106
+ 236,
1107
+ 821,
1108
+ 252
1109
+ ],
1110
+ "page_idx": 8
1111
+ },
1112
+ {
1113
+ "type": "text",
1114
+ "text": "Reinhard Kneser and Volker Steinbiss. On the dynamic adaptation of stochastic language models. In ICASSP, 1993. ",
1115
+ "bbox": [
1116
+ 173,
1117
+ 257,
1118
+ 823,
1119
+ 284
1120
+ ],
1121
+ "page_idx": 8
1122
+ },
1123
+ {
1124
+ "type": "text",
1125
+ "text": "Roland Kuhn. Speech recognition and the frequency of recently used words: A modified markov model for natural language. In Proceedings of the 12th conference on Computational linguistics-Volume 1, 1988. ",
1126
+ "bbox": [
1127
+ 173,
1128
+ 290,
1129
+ 823,
1130
+ 318
1131
+ ],
1132
+ "page_idx": 8
1133
+ },
1134
+ {
1135
+ "type": "text",
1136
+ "text": "Roland Kuhn and Renato De Mori. A cache-based natural language model for speech recognition. PAMI, 1990. ",
1137
+ "bbox": [
1138
+ 171,
1139
+ 323,
1140
+ 821,
1141
+ 338
1142
+ ],
1143
+ "page_idx": 8
1144
+ },
1145
+ {
1146
+ "type": "text",
1147
+ "text": "Julien Kupiec. Probabilistic models of short and long distance word dependencies in running text. In Proceedings of the workshop on Speech and Natural Language, 1989. ",
1148
+ "bbox": [
1149
+ 173,
1150
+ 343,
1151
+ 823,
1152
+ 371
1153
+ ],
1154
+ "page_idx": 8
1155
+ },
1156
+ {
1157
+ "type": "text",
1158
+ "text": "Raymond Lau, Ronald Rosenfeld, and Salim Roukos. Trigger-based language models: A maximum entropy approach. In ICASSP, 1993. ",
1159
+ "bbox": [
1160
+ 173,
1161
+ 377,
1162
+ 823,
1163
+ 404
1164
+ ],
1165
+ "page_idx": 8
1166
+ },
1167
+ {
1168
+ "type": "text",
1169
+ "text": "Mitchell P Marcus, Mary Ann Marcinkiewicz, and Beatrice Santorini. Building a large annotated corpus of english: The penn treebank. Computational linguistics, 1993. ",
1170
+ "bbox": [
1171
+ 173,
1172
+ 410,
1173
+ 823,
1174
+ 438
1175
+ ],
1176
+ "page_idx": 8
1177
+ },
1178
+ {
1179
+ "type": "text",
1180
+ "text": "Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. arXiv preprint arXiv:1609.07843, 2016. ",
1181
+ "bbox": [
1182
+ 173,
1183
+ 443,
1184
+ 823,
1185
+ 469
1186
+ ],
1187
+ "page_idx": 8
1188
+ },
1189
+ {
1190
+ "type": "text",
1191
+ "text": "Tomas Mikolov and Geoffrey Zweig. Context dependent recurrent neural network language model. In SLT, 2012. ",
1192
+ "bbox": [
1193
+ 173,
1194
+ 477,
1195
+ 823,
1196
+ 503
1197
+ ],
1198
+ "page_idx": 8
1199
+ },
1200
+ {
1201
+ "type": "text",
1202
+ "text": "Tomas Mikolov, Martin KarafiΓ‘t, Lukas Burget, Jan Cernocky, and Sanjeev Khudanpur. Recurrent neural \\` network based language model. In INTERSPEECH, 2010. ",
1203
+ "bbox": [
1204
+ 174,
1205
+ 508,
1206
+ 821,
1207
+ 537
1208
+ ],
1209
+ "page_idx": 8
1210
+ },
1211
+ {
1212
+ "type": "text",
1213
+ "text": "Tomas Mikolov, Anoop Deoras, Stefan Kombrink, Lukas Burget, and Jan Cernocky. Empirical evaluation and \\` combination of advanced language modeling techniques. In INTERSPEECH, 2011. ",
1214
+ "bbox": [
1215
+ 174,
1216
+ 542,
1217
+ 821,
1218
+ 570
1219
+ ],
1220
+ "page_idx": 8
1221
+ },
1222
+ {
1223
+ "type": "text",
1224
+ "text": "Tomas Mikolov, Armand Joulin, Sumit Chopra, Michael Mathieu, and Marc’Aurelio Ranzato. Learning longer memory in recurrent neural networks. arXiv preprint arXiv:1412.7753, 2014. ",
1225
+ "bbox": [
1226
+ 171,
1227
+ 575,
1228
+ 823,
1229
+ 603
1230
+ ],
1231
+ "page_idx": 8
1232
+ },
1233
+ {
1234
+ "type": "text",
1235
+ "text": "Denis Paperno, GermΓ‘n Kruszewski, Angeliki Lazaridou, Quan Ngoc Pham, Raffaella Bernardi, Sandro Pezzelle, Marco Baroni, Gemma Boleda, and Raquel FernΓ‘ndez. The lambada dataset: Word prediction requiring a broad discourse context. arXiv preprint arXiv:1606.06031, 2016. ",
1236
+ "bbox": [
1237
+ 174,
1238
+ 608,
1239
+ 823,
1240
+ 648
1241
+ ],
1242
+ "page_idx": 8
1243
+ },
1244
+ {
1245
+ "type": "text",
1246
+ "text": "Ronald Rosenfeld. A maximum entropy approach to adaptive statistical language modeling. Computer, Speech and Language, 1996. ",
1247
+ "bbox": [
1248
+ 173,
1249
+ 655,
1250
+ 823,
1251
+ 681
1252
+ ],
1253
+ "page_idx": 8
1254
+ },
1255
+ {
1256
+ "type": "text",
1257
+ "text": "Andreas Stolcke, Noah Coccaro, Rebecca Bates, Paul Taylor, Carol Van Ess-Dykema, Klaus Ries, Elizabeth Shriberg, Daniel Jurafsky, Rachel Martin, and Marie Meteer. Dialogue act modeling for automatic tagging and recognition of conversational speech. Computational linguistics, 2000. ",
1258
+ "bbox": [
1259
+ 173,
1260
+ 688,
1261
+ 825,
1262
+ 728
1263
+ ],
1264
+ "page_idx": 8
1265
+ },
1266
+ {
1267
+ "type": "text",
1268
+ "text": "Sainbayar Sukhbaatar, Szlam Arthur, Jason Weston, and Rob Fergus. End-to-end memory networks. In NIPS, 2015. ",
1269
+ "bbox": [
1270
+ 174,
1271
+ 733,
1272
+ 825,
1273
+ 761
1274
+ ],
1275
+ "page_idx": 8
1276
+ },
1277
+ {
1278
+ "type": "text",
1279
+ "text": "Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. Pointer networks. In NIPS, 2015. ",
1280
+ "bbox": [
1281
+ 171,
1282
+ 766,
1283
+ 697,
1284
+ 781
1285
+ ],
1286
+ "page_idx": 8
1287
+ },
1288
+ {
1289
+ "type": "text",
1290
+ "text": "Tian Wang and Kyunghyun Cho. Larger-context language modelling. arXiv preprint arXiv:1511.03729, 2015. ",
1291
+ "bbox": [
1292
+ 163,
1293
+ 787,
1294
+ 826,
1295
+ 801
1296
+ ],
1297
+ "page_idx": 8
1298
+ },
1299
+ {
1300
+ "type": "text",
1301
+ "text": "Paul J Werbos. Backpropagation through time: what it does and how to do it. 1990. ",
1302
+ "bbox": [
1303
+ 174,
1304
+ 808,
1305
+ 669,
1306
+ 823
1307
+ ],
1308
+ "page_idx": 8
1309
+ },
1310
+ {
1311
+ "type": "text",
1312
+ "text": "Ronald J Williams and Jing Peng. An efficient gradient-based algorithm for on-line training of recurrent network trajectories. Neural computation, 1990. ",
1313
+ "bbox": [
1314
+ 173,
1315
+ 829,
1316
+ 821,
1317
+ 856
1318
+ ],
1319
+ "page_idx": 8
1320
+ },
1321
+ {
1322
+ "type": "text",
1323
+ "text": "Wojciech Zaremba, Ilya Sutskever, and Oriol Vinyals. Recurrent neural network regularization. arXiv preprint arXiv:1409.2329, 2014. ",
1324
+ "bbox": [
1325
+ 174,
1326
+ 861,
1327
+ 823,
1328
+ 888
1329
+ ],
1330
+ "page_idx": 8
1331
+ },
1332
+ {
1333
+ "type": "text",
1334
+ "text": "Julian Georg Zilly, Rupesh Kumar Srivastava, Jan KoutnΓ­k, and JΓΌrgen Schmidhuber. Recurrent highway networks. arXiv preprint arXiv:1607.03474, 2016. ",
1335
+ "bbox": [
1336
+ 171,
1337
+ 895,
1338
+ 821,
1339
+ 921
1340
+ ],
1341
+ "page_idx": 8
1342
+ }
1343
+ ]
parse/train/B184E5qee/B184E5qee_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/B184E5qee/B184E5qee_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ByuI-mW0W/ByuI-mW0W.md ADDED
@@ -0,0 +1,262 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TOWARDS A TESTABLE NOTION OF GENERALISATION FOR GENERATIVE ADVERSARIAL NETWORKS
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ We consider the question of how to assess generative adversarial networks, in particular with respect to whether or not they generalise beyond memorising the training data. We propose a simple procedure for assessing generative adversarial network performance based on a principled consideration of what the actual goal of generalisation is. Our approach involves using a test set to estimate the Wasserstein distance between the generative distribution produced by our procedure, and the underlying data distribution. We use this procedure to assess the performance of several modern generative adversarial network architectures. We find that this procedure is sensitive to the choice of ground metric on the underlying data space, and suggest a choice of ground metric that substantially improves performance. We finally suggest that attending to the ground metric used in Wasserstein generative adversarial network training may be fruitful, and provide a concrete formulation for doing so.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Generative adversarial networks (GANs) (Goodfellow et al., 2014) have attracted significant interest as a means for generative modelling. However, recently concerns have been raised about their ability to generalise from training data and their capacity to overfit (Arora & Zhang, 2017; Arora et al., 2017). Moreover, techniques for evaluating the quality of GAN output are either ad hoc, lack theoretical rigor, or are not suitably objective – often times β€œvisual inspection” of samples is the main tool of choice for the practitioner. More fundamentally, it is sometimes unclear exactly what we want a GAN to do: what is the learning task that we are trying to achieve?
12
+
13
+ In this paper, we provide a simple formulation of the GAN training framework, which consists of using a finite dataset to estimate an underlying data distribution. The quality of GAN output is measured precisely in terms of a statistical distance $D$ between the estimated and true distribution. Within this context, we propose an intuitive notion of what it means for a GAN to generalise.
14
+
15
+ We also show how our notion of performance can be measured empirically for any GAN architecture when $D$ is chosen to be a Wasserstein distance, which – unlike other methods such as the inception score (Salimans et al., 2016) – requires no density assumptions about the data-generating distribution. We investigate this choice of $D$ empirically, finding that its performance is heavily dependent on the choice of ground metric underlying the Wasserstein distance. We suggest a novel choice of ground metric that we show performs well, and also discuss how we might otherwise use this observation to improve the design of Wasserstein GANs (WGANs) (Arjovsky et al., 2017).
16
+
17
+ # 2 THE OBJECTIVE OF GENERATIVE MODELLING
18
+
19
+ GANs promise a means for learning complex probability distributions in an unsupervised fashion. In order to assess their effectiveness, we must first define precisely what we mean by this. We seek to do so in this section, presenting a formulation of the broader goal of generative modelling that we believe is widely compatible with much present work in this area. We also provide a natural notion of generalisation that arises in our framework.
20
+
21
+ Our setup consists of the following components. We assume some distribution $\pi$ on a set $\mathcal { X }$ . For instance, $\mathcal { X }$ may be the set of $3 2 \mathrm { x } 3 2 $ colour images, and $\pi$ the distribution from which the CIFAR-10 dataset was sampled. We assume that $\pi$ is completely intractable: we do not know its density (or even if it has one), and we do not have a procedure to draw novel samples from it. However, we do suppose that we have a fixed dataset $X$ consisting of samples $x _ { 1 } , \cdot \cdot \cdot , x _ { | X | } \overset { \mathrm { i i d } } { \sim } \pi$ . Equivalently, we have the empirical distribution
22
+
23
+ $$
24
+ \hat { X } : = \frac { 1 } { | X | } \sum _ { n = 1 } ^ { | X | } \delta _ { x _ { n } } ,
25
+ $$
26
+
27
+ where $\delta$ denotes the Dirac mass.
28
+
29
+ Let $\mathcal { P } ( \mathcal { X } )$ denote the set of probability distributions on $\mathcal { X }$ . Our aim is to use $X$ to produce a distribution in $\mathcal { P } ( \mathcal { X } )$ that is as β€œclose” as possible to $\pi$ . We choose to measure closeness in terms of a function $D : \mathcal { P } ( \mathcal { X } ) \times \mathcal { P } ( \mathcal { X } ) \mathbb { R }$ . Usually $D$ will be chosen to be a statistical divergence, which means that $D ( P , Q ) \geq 0$ for all $P$ and $Q$ , with equality iff $P = Q$ . The task of a learning algorithm $\alpha$ in this context is then as follows:
30
+
31
+ $$
32
+ \boxed { \mathrm { S e l e c t } \alpha ( X ) \in \mathcal { P } ( \mathcal { X } ) \mathrm { ~ s u c h ~ t h a t ~ } D ( \alpha ( X ) , \pi ) \mathrm { ~ i s ~ a s ~ s m a l l ~ a s ~ p o s s i b l e . } }
33
+ $$
34
+
35
+ We believe (1) constitutes an intuitive and useful formulation of the problem of generative modelling that is largely in keeping with present research efforts.
36
+
37
+ Now, we can immediately see that one possibility is simply to choose $\alpha ( X ) : = { \hat { X } }$ . Moreover, in the case that $D$ is a metric for the weak topology on $\mathcal { P } ( \mathcal { X } )$ such as a Wasserstein distance, we have that $D ( \hat { X } , \pi ) \to 0$ almost surely as $| X | \to \infty$ , so that, assuming $| X |$ is large enough, we can already expect $D ( \hat { X } , \pi )$ to be small. This then suggests the following natural notion of generalisation:
38
+
39
+ $$
40
+ \Bigl | \mathrm { A ~ c h o i c e ~ o f } \alpha \mathrm { g e n e r a l i s e s ~ f o r ~ a ~ g i v e n } X \mathrm { i f } \ D ( \alpha ( X ) , \pi ) < D ( \hat { X } , \pi ) . \Bigr |
41
+ $$
42
+
43
+ In other words, using $\alpha$ here has actually achieved something: perhaps through some process of smoothing or interpolation, it has injected additional information into $\hat { X }$ that has moved us closer to $\pi$ than we were a priori.
44
+
45
+ # 3 GENERALISATION IN GANS
46
+
47
+ The previous section presented (1) as a general goal of generative modelling. In this section, we turn specifically to GANs. We begin by providing a general model for how many of the existing varieties of GAN operate, at least ideally. We then show how this model fits into our framework above, before considering the issue of generalisation in this context.
48
+
49
+ Most GAN algorithms in widespread use adhere to the following template: they take as input a distribution $P$ , from which we assume we can sample, and compute (or approximate)
50
+
51
+ $$
52
+ \Gamma ( P ) : = \underset { Q \in \mathcal { Q } } { \arg \operatorname* { m i n } } D _ { \Gamma } ( P , Q )
53
+ $$
54
+
55
+ for some choices of $\mathcal Q \subseteq \mathcal P ( \mathcal X )$ and $D _ { \Gamma } : \mathcal { P } ( \mathcal { X } ) \times \mathcal { P } ( \mathcal { X } ) \mathbb { R }$ . In other words, in the ideal case, a GAN maps $P$ to its $D _ { \Gamma }$ -projection onto $\mathcal { Q }$ . Note that we will not necessarily have that $D _ { \Gamma } = D$ : $D _ { \Gamma }$ is fixed given a particular GAN architecture, whereas the choice of $D$ is simply a feature of our problem definition (1) and is essentially ours to make.
56
+
57
+ In practice, $\mathcal { Q }$ is the set of pushforward measures $\nu \circ G ^ { - 1 }$ obtained from a fixed noise distribution $\nu$ on a noise space $\mathcal { Z }$ and some set $\mathcal { G }$ of functions $G : { \mathcal { Z } } { \mathcal { X } }$ . Precisely, $\mathcal { Q } = \left\{ \nu \circ G ^ { - 1 } : G \in \mathcal { G } \right\}$ . $\mathcal { G }$ itself usually corresponds to the set of functions realisable by some neural network architecture, and $\nu$ is some multivariate uniform or Gaussian distribution. However, numerous choices of $D _ { \Gamma }$ have been proposed: the original GAN formulation (Goodfellow et al., 2014) took $D _ { \Gamma }$ to be the Jenson-Shannon divergence, whereas the $f$ -GAN (Nowozin et al., 2016) generalised this to arbitrary $f$ -divergences, and the Wasserstein GAN (Arjovsky et al., 2017) advocated the Wasserstein distance. Many of the results proved in these papers involve showing that (usually under some assumptions, such as sufficient discriminator capacity) a proposed objective for $G$ is in fact equivalent to $\bar { D _ { \Gamma } ( P , \nu \circ }$ $G ^ { - 1 }$ ).
58
+
59
+ In terms of our framework in the previous section, using a GAN $\Gamma$ amounts to choosing
60
+
61
+ $$
62
+ \alpha ( X ) : = \Gamma ( \hat { X } ) = \underset { Q \in \mathcal { Q } } { \arg \operatorname* { m i n } } D _ { \Gamma } ( \hat { X } , Q ) .
63
+ $$
64
+
65
+ We emphasise again the important distinction between $D$ and $D _ { \Gamma }$ . In our setup, minimising $D$ defines our ultimate goal, whereas minimising $D _ { \Gamma }$ (over $\mathcal { Q }$ ) defines how we will attempt to achieve that goal. Even if $D \neq D _ { \Gamma }$ , it is still at least conceivable that $D ( \Gamma ( { \hat { X } } ) , \pi )$ might be small, and therefore this choice of $\alpha$ might be sensible. Also note that, crucially, $\Gamma$ receives $\hat { X }$ as input rather than $\pi$ itself. We only have access to a fixed number of CIFAR-10 samples, for example, not an infinite stream. Moreover, training GANs usually involves making many passes over the same dataset, so that, in effect, sampling from $P$ will repeatedly yield the same data points. We would not expect this to occur with nonzero probability if $P = \pi$ for most $\pi$ of interest.
66
+
67
+ The observation that $P$ is $\hat { X }$ rather than $\pi$ was also recently made by Arora et al. (2017). The authors argue that this introduces a problem for the ability of GANs to generalise, since, if $D _ { \Gamma }$ is a divergence (which is almost always the case), and if $\mathcal { Q }$ is too big (in particular, if it is big enough that $\hat { X } \in \mathcal { Q } ,$ ), then we trivially have that $\Gamma ( { \hat { X } } ) = { \hat { X } }$ . In other words, the GAN objective appears actively to encourage $\Gamma ( { \hat { X } } )$ to memorise the dataset $X$ , and never to produce novel samples from outside of it. The authors’ proposed remedy involves trying to find a better choice of $D _ { \Gamma }$ . The problem, they argue, is that popular choices of $D _ { \Gamma }$ do not satisfy the condition
68
+
69
+ $D _ { \Gamma } ( \pi , Q ) \approx D _ { \Gamma } ( { \hat { X } } , Q )$ with high probability given a modest number of samples in $X$ .
70
+
71
+ They point out that this is certainly violated when $D _ { \Gamma }$ is the Jensen-Shannon divergence JS, since
72
+
73
+ $$
74
+ \operatorname { J S } ( P \parallel Q ) = \log 2
75
+ $$
76
+
77
+ when one of $P$ and $Q$ is discrete and the other continuous, and give a similar result for $D _ { \Gamma }$ a Wasserstein distance in the case that $\pi$ is Gaussian. As a solution, they introduce the neural network distance $D _ { \mathrm { N N } }$ defined by
78
+
79
+ $$
80
+ D _ { \mathrm { N N } } ( P , Q ) : = \operatorname* { m a x } _ { f \in \mathcal { F } } \mathbb { E } _ { x \sim P } \left[ f ( x ) \right] - \mathbb { E } _ { x \sim Q } \left[ f ( x ) \right]
81
+ $$
82
+
83
+ for some choice of a class of functions $\mathcal { F }$ . They show that, assuming some smoothness conditions on the members of $\mathcal { F }$ , the choice $D _ { \Gamma } = D _ { \mathrm { N N } }$ satisfies (3), which means that if we minimise $D _ { \mathrm { N N } } ( \hat { X } , Q )$ in $Q$ then we can be confident that the value of $D _ { \mathrm { N N } } ( \pi , Q )$ is small also.
84
+
85
+ However, we do not believe that (3) is sufficient to ensure good generalisation behaviour for GANs. What we care about ultimately is not the value of $D _ { \Gamma }$ , but rather of $D$ , and (3) invites choosing $D _ { \Gamma }$ in such a way that gives no guarantees about $D$ at all. We see, for instance, that the degenerate choice $D _ { 0 } ( P , Q ) : = 0$ trivially satisfies (3), and indeed is also a pseudometric, just like $D _ { \mathrm { N N } }$ . It is therefore unclear what mathematical properties of $D _ { \mathrm { N N } }$ render it more suitable for estimating $\pi$ than the obviously undesirable $D _ { 0 }$ . The authors do acknowledge this shortcoming of $D _ { \mathrm { N N } }$ , pointing out that $D _ { \mathrm { N N } } ( P , Q )$ can be small even if $P$ and $Q$ are β€œquite different” in some sense.
86
+
87
+ The problematic consequences of the fact that $P = { \hat { X } }$ apply only in the case that $\mathcal { Q }$ is too large. In practice, however, $\mathcal { Q }$ is heavily restricted, since $\mathcal { G }$ is restricted via a choice of neural network architecture; hence we do not know $a$ priori whether $\boldsymbol { \Gamma } ( \boldsymbol { \hat { X } } ) = \boldsymbol { \hat { X } }$ is even possible. As such, we do not see the choice of $\alpha ( X ) = \Gamma ( \hat { X } )$ as necessarily a bad idea, and instead believe that it is an open empirical question as to how well GANs perform the task (1). In fact, this $\alpha$ falls perfectly within the framework of minimum distance estimation (Wolfowitz, 1957; Basu et al., 2011), which involves estimating an underlying distribution by minimising a distance measure to a given empirical distribution.
88
+
89
+ # 4 TESTING GANS
90
+
91
+ Our goal in this section is to assess how well GANs achieve (1) by estimating $D ( \Gamma ( X ) , \pi )$ for various $\Gamma$ and $\pi$ . This raises some difficulties, given that $\pi$ is intractable. Our approach is to take $D$ to be the first Wasserstein distance $W _ { d _ { x } }$ defined by
92
+
93
+ $$
94
+ W _ { d x } ( P , Q ) = \operatorname* { i n f } _ { \gamma \in \Pi ( P , Q ) } \int _ { \mathcal { X } \times \mathcal { X } } d _ { \mathcal { X } } ( x , y ) \mathrm { d } \gamma ( x , y ) ,
95
+ $$
96
+
97
+ where $d _ { \mathcal { X } }$ is a metric on $\mathcal { X }$ referred to as the ground metric, and $\Pi ( P , Q )$ denotes the set of joint distributions on the product space $\mathcal { X } \times \mathcal { X }$ with marginals $P$ and $Q$ . The Wasserstein distance is appealing since it is sensitive to the topology of the underlying set $\mathcal { X }$ , which we control by our choice of $d _ { \mathcal { X } }$ . Moreover, $W _ { d x }$ metricises weak convergence for the Wasserstein space $\mathcal { P } _ { d _ { \mathcal { X } } } ( \mathcal { X } )$ defined by
98
+
99
+ $$
100
+ { \mathcal { P } } _ { d _ { \mathcal { X } } } ( \mathcal { X } ) : = \left\{ P \in { \mathcal { P } } ( \mathcal { X } ) : \int _ { \mathcal { X } } d _ { \mathcal { X } } ( x _ { 0 } , y ) \mathrm { d } P ( y ) < \infty { \mathrm { ~ f o r ~ s o m e ~ } } x _ { 0 } \in \mathcal { X } \right\}
101
+ $$
102
+
103
+ (see (Villani, 2008)). Consequently, if we denote by $A$ a set of samples $a _ { 1 } , \cdots , a _ { | A | }$ iid∼ $\alpha ( X )$ and by $Y$ a set of samples (separate from $X$ ) $y _ { 1 } , \cdots , y _ { | Y | } \overset { \mathrm { i i d } } { \sim } \pi .$ , with $\hat { A }$ and $\hat { Y }$ the corresponding empirical distributions, then, provided
104
+
105
+ $$
106
+ \alpha ( X ) , \pi \in { \mathcal { P } } _ { d _ { \mathcal { X } } } ( { \mathcal { X } } ) ,
107
+ $$
108
+
109
+ we have that $D ( { \hat { A } } , { \hat { Y } } ) \to D ( \alpha ( X ) , \pi )$ almost surely as $\operatorname* { m i n } \{ | A | , | Y | \} \infty$ . Note that condition (4) holds automatically in the case that $( \mathcal { X } , d _ { \mathcal { X } } )$ is compact, since then $\mathcal { P } _ { d _ { \mathcal { X } } } ( \mathcal { X } ) = \mathcal { P } ( \mathcal { X } )$ .
110
+
111
+ As such, to estimate $D ( \alpha ( X ) , \pi )$ , for $D = W _ { d _ { x } }$ , we propose the following. Before training, we move some of our samples from $X$ into a testing set $Y$ . We next train our GAN on $X$ , obtaining $\alpha ( X )$ . We then take samples $A$ from $\alpha ( X )$ , and obtain the estimate
112
+
113
+ $$
114
+ W _ { d _ { \mathcal { X } } } ( \hat { A } , \hat { Y } ) \approx W _ { d _ { \mathcal { X } } } ( \alpha ( X ) , \pi ) ,
115
+ $$
116
+
117
+ where the left-hand side can be computed exactly by solving a linear program since both $\hat { A }$ and $\hat { Y }$ are discrete (Villani, 2003). We can also use the same methodology to estimate $W _ { d _ { \mathcal { X } } } ( \hat { X } , \pi )$ by $W _ { d x } ( \hat { X } , \hat { Y } )$ , which suggests testing if
118
+
119
+ $$
120
+ W _ { d _ { \mathcal { X } } } ( \hat { A } , \hat { Y } ) < W _ { d _ { \mathcal { X } } } ( \hat { X } , \hat { Y } ) .
121
+ $$
122
+
123
+ as a proxy for determining whether (2) holds. A summary of our procedure is given in Algorithm 1.
124
+
125
+ # Algorithm 1 Procedure for testing GANs
126
+
127
+ <table><tr><td>1: Split samples from Ο€ into a training set X and a testing set Y</td></tr><tr><td>2: Compute Ξ±(X) by training a GAN on X 3: Obtain a sample A from Ξ±(X)</td></tr></table>
128
+
129
+ # 4.1 RESULTS
130
+
131
+ We applied our methodology to test two popular GAN varieties – the DCGAN (Radford et al., 2015) and the Improved Wasserstein GAN (I-WGAN) (Gulrajani et al., 2017) – on the MNIST and CIFAR-10 datasets. In all cases when computing the relevant Wasserstein distances, our empirical distributions consisted of 10000 samples.
132
+
133
+ # 4.1.1 $L ^ { 2 }$ AS GROUND METRIC
134
+
135
+ We initially took our ground metric $d _ { \mathcal { X } }$ to be the $L ^ { 2 }$ distance. This has the appealing property of making $( \boldsymbol { \mathcal { X } } , d _ { \boldsymbol { \mathcal { X } } } )$ compact when $\mathcal { X }$ is a space of RGB or greyscale images, therefore ensuring that (4) holds.
136
+
137
+ Figure 1 shows $W _ { L ^ { 2 } } ( \hat { A } , \hat { Y } )$ plotted over multiple training runs for MNIST and CIFAR-10 when $A$ is obtained from an I-WGAN, with typical samples shown in Figures 6 and 7 in the appendix. For both datasets, $W _ { L ^ { 2 } } ( \hat { A } , \hat { Y } )$ decays towards an asymptote in a way that nicely corresponds to the visual quality of the samples produced. Moreover, $W _ { L ^ { 2 } } ( \hat { A } , \hat { Y } )$ is much closer to $W _ { L ^ { 2 } } ( \hat { X } , \hat { Y } )$ towards the tail end of training for MNIST than for CIFAR-10. This seems to reflect the fact that, visually, the eventual I-WGAN MNIST samples do seem quite close to true MNIST samples, whereas the eventual I-WGAN CIFAR-10 samples are easily identified as fake.
138
+
139
+ ![](images/a00baa7a2f8c1338c34dc16ac2b9d21542acedfe8552ef8248e5e4e39486957e.jpg)
140
+ Figure 1: Output of Algorithm 1 with $d _ { \mathcal { X } } = L ^ { 2 }$ for I-WGAN trained on MNIST (left) and CIFAR-10 (right)
141
+
142
+ ![](images/c579bf2b3cf37f9b358f5494cc533abd1bcd6e975256427480f8283fbd348944.jpg)
143
+ Figure 2: Output of Algorithm 1 with $d _ { \mathcal { X } } = L ^ { 2 }$ for DCGAN trained on CIFAR-10
144
+
145
+ However, when we re-ran the same experiment using a DCGAN on CIFAR-10, we obtained the $W _ { L ^ { 2 } } ( \hat { A } , \hat { Y } )$ trajectories shown in Figure 2. Typical examples are shown in Figure 8. Strangely, we observe that $W _ { L ^ { 2 } } ( \hat { A } , \hat { Y } ) < W _ { L ^ { 2 } } ( \hat { X } , \hat { Y } )$ very early on in training – at around batch 500 – when the samples resemble the heavily blurry Figure 8b. This raises some obvious concerns about the appropriateness of $W _ { L ^ { 2 } }$ as a metric for GAN quality.
146
+
147
+ We therefore sought to understand this strange behaviour. Motivated by the visual blurriness of the samples in Figure 8b, we explored the effect on $W _ { L ^ { p } } ( \hat { X } , \hat { Y } )$ of blurring the CIFAR-10 training set $X$ . In particular, we let $X$ and $Y$ each consist of 10000 distinct CIFAR-10 samples in $X$ . We then independently convolved each channel of each image with a Gaussian kernel having standard deviation $\sigma$ , obtaining a blurred dataset $\beta _ { \sigma } ( X )$ and corresponding empirical distribution $\hat { \beta } _ { \sigma } ( X )$ . The visual effect of this procedure is shown in Figure 9 in the appendix. We then computed $W _ { L ^ { p } } ( \hat { \beta } _ { \sigma } ( X ) , \hat { Y } )$ with $\sigma$ ranging between 0 and 10 for a variety of values of $p$ . The results of this experiment in the case $p = 2$ are shown in Figure 3, and similar results were observed for other values of $p$ : in all cases, we found that
148
+
149
+ $$
150
+ W _ { L ^ { p } } ( \hat { X } , \hat { Y } ) > W _ { L ^ { p } } ( \hat { \beta } _ { \sigma } ( X ) , \hat { Y } )
151
+ $$
152
+
153
+ whenever $\sigma > 0$ . That is, blurring $X$ by any amount brings $\hat { X }$ closer to $\hat { Y }$ in $\boldsymbol { W } _ { L ^ { p } }$ than not. This occurs even though $X$ is distributed identically to $Y$ (both being drawn from $\pi$ ), while $\beta _ { \sigma } ( X )$ (presumably) is not when $\sigma > 0$ .
154
+
155
+ ![](images/45f392895d2f6ffc598a181c84f164d1b14ef60a793bd79e85f92972b0cf924d.jpg)
156
+ Figure 3: Effect of blurring CIFAR-10 on $W _ { L ^ { 2 } }$ (left) and $W _ { L ^ { 2 } \circ \eta }$ (right)
157
+
158
+ # 4.1.2 EMBEDDED $L ^ { 2 }$ AS GROUND METRIC
159
+
160
+ To remedy these issues, we sought to replace $L ^ { 2 }$ with a choice of $d _ { \mathcal { X } }$ that is more naturally suited to the space of images in question. To this end we tried mapping $\mathcal { X }$ through a fixed pre-trained neural network $\eta$ into a feature space $\mathcal { V }$ , and then computing distances using some metric $d _ { \mathcal { Y } }$ on $\mathcal { V }$ , rather than in $\mathcal { X }$ directly. It is easily seen that, provided $\eta$ is injective, $d _ { \mathcal { V } } \circ \eta : \mathcal { X } \times \mathcal { X } \to \mathbb { R }$ defined by
161
+
162
+ $$
163
+ ( d _ { \mathcal { V } } \circ \eta ) ( x , x ^ { \prime } ) : = d _ { \mathcal { V } } ( \eta ( x ) , \eta ( x ^ { \prime } ) )
164
+ $$
165
+
166
+ is a metric. It also holds that, when $\eta$ is $( d _ { \mathcal { X } } , d _ { \mathcal { Y } } )$ -continuous, $( \mathcal { X } , d _ { \mathcal { Y } } \circ \eta )$ is compact when $( \mathcal { X } , d _ { \mathcal { X } } )$ is: given a sequence $x _ { i } \subseteq { \mathcal { X } }$ , there exists a subsequence $x _ { i ^ { \prime } }$ that converges in $d _ { \mathcal { X } }$ to some $x$ (by compactness), so that $( d \ / y \circ \eta ) ( x _ { i ^ { \prime } } , x ) = d \ / y ( \eta ( x _ { i ^ { \prime } } ) , \eta ( x ) ) 0$ by continuity of $\eta$ . Neither of these conditions on $\eta$ – injectivity and $( d _ { \mathcal { X } } , d _ { \mathcal { Y } } )$ -continuity – are unreasonable to expect from a typical neural network trained using stochastic gradient descent (at least, when $d _ { \mathcal { X } }$ and $d _ { \mathcal { Y } }$ are typical metrics such as $L ^ { p }$ distances). Consequently, $W _ { d _ { y } \circ \eta }$ constitutes a valid metric on $\mathcal { P } _ { d _ { y } \circ \eta } ( \mathcal { X } )$ , and (4) is automatically satisfied.
167
+
168
+ To test the performance of $W _ { d y \circ \eta }$ , we repeated the blurring experiment described above. We took $\eta ( x )$ to be the result of scaling $x \in \mathcal { X }$ to size $2 2 4 \mathbf { x } 2 2 4$ , mapping the result through a DenseNet-121 (Huang et al., 2016) pre-trained on ImageNet (Deng et al., 2009), and extracting features immediately before the linear output layer. Under the same experimental setup as above otherwise, we obtained the plot of $W _ { L ^ { 2 } \circ \eta } ( \beta _ { \sigma } ( \hat { X } ) , \hat { Y } )$ shown in Figure 3. Happily, we now see that this curve increases monotonically as $\sigma$ grows in accordance with the declining visual quality of $\beta _ { \sigma } ( X )$ shown in Figure 9.
169
+
170
+ Next, we computed $W _ { L ^ { 2 } \circ \eta } ( \hat { A } , \hat { Y } )$ over the course of GAN training. For the I-WGAN we obtained the results on MNIST and CIFAR-10 shown in Figure 4;1 for the DCGAN on CIFAR-10, we obtained the curve shown in Figure 5. In all cases we see that $W _ { L ^ { 2 } \circ \eta } ( \hat { A } , \hat { Y } )$ decreases monotonically towards an asymptote in a way that accurately summarises the visual quality of the samples throughout the training run. Moreover, there is always a large gap between the eventual value of $W _ { L ^ { 2 } \circ \eta } ( \hat { A } , \hat { Y } )$ and $W _ { L ^ { 2 } \circ \eta } ( \hat { X } , \hat { Y } )$ , which reflects the fact that the GAN samples are still visually distinguishable from real $\pi$ samples. In particular, we see an improvement in this respect for the I-WGAN on MNIST: in Figure 1 the asymptotic value of $W _ { L ^ { 2 } } ( \hat { \hat { A } } , \hat { Y } )$ for MNIST was barely discernible from $W _ { L ^ { 2 } } ( \hat { X } , \hat { Y } )$ , despite the fact that it is still quite easy to tell real samples from generated ones (see e.g. the various mistakes present in Figure 6).
171
+
172
+ # 5 DISCUSSION AND FUTURE WORK
173
+
174
+ We believe our work reveals two promising avenues of future inquiry. First, we suggest that $W _ { L ^ { p } \circ \eta }$ is an appealing choice of $D$ , both due to its nice theoretical properties – it metricises weak convergence, and does not require us to make any density assumptions about $\pi$ – and due to its sound empirical performance demonstrated above. It would be very interesting to use this $D$ to produce a systematic and objective comparison of the performance of all current major GAN implementations, and indeed to use this as a metric for guiding future GAN design. We also view the test (5) as potentially useful for determining whether our algorithms are overfitting. This would be particularly so if applied via a cross-validation procedure: if we consistently observe that (5) holds when training a GAN according to many different $X$ and $Y$ partitions of our total $\pi$ samples, then it seems reasonable to infer that $\alpha ( X )$ has indeed learnt something useful about $\pi$ .
175
+
176
+ ![](images/570e844b51dbee20d95f6a30d2c3878bb1d1165315288d1f52be0133d3933878.jpg)
177
+ Figure 4: Output of Algorithm 1 with $d _ { \mathcal { X } } = L ^ { 2 } \circ \eta$ for I-WGAN trained on MNIST (left) and CIFAR-10 (right)
178
+
179
+ ![](images/852317811ce1e44b66dd32c17d799d4f81b0b3e03c4c07617a867f42293c9ab6.jpg)
180
+ Figure 5: Output of Algorithm 1 with $d _ { \mathcal { X } } = L ^ { 2 } \circ \eta$ for DCGAN trained on CIFAR-10
181
+
182
+ We also believe that the empirical inadequacy of $W _ { L ^ { 2 } }$ that we observed suggests a path towards a better WGAN architecture. At present, WGAN implementations implicitly use $W _ { L ^ { 2 } }$ for their choice of $D _ { \Gamma }$ . We suspect that altering this to our suggested $W _ { L ^ { 2 } \circ \eta }$ may yield better quality samples. We briefly give here one possible way to do so that is largely compatible with existing WGAN setups. In particular, following Arjovsky et al. (2017), we take
183
+
184
+ $$
185
+ D _ { \Gamma } ( P , Q ) = \underset { f \in \mathcal { F } } { \operatorname* { m a x } } \mathbb { E } _ { x \sim P } \left[ f ( x ) \right] - \mathbb { E } _ { x \sim Q } \left[ f ( x ) \right]
186
+ $$
187
+
188
+ for a class $\mathcal { F }$ of functions $f : \mathcal { X } \mathbb { R }$ that are all $\left( L ^ { 2 } \circ \eta , d _ { \mathbb { R } } \right)$ -Lipschitz for some fixed Lipschitz constant $K$ . Here $d _ { \mathbb { R } }$ denotes the usual distance on $\mathbb { R }$ . To optimise over such an $\mathcal { F }$ in practice, we can require our discriminator $f : \mathcal { X } \to \mathbb { R }$ to have the form ${ \bar { f } } ( x ) : = h ( \eta ( x ) )$ , where $h : \mathcal { V } \to \mathbb { R }$ is $( d _ { \mathcal { Y } } , d _ { \mathbb { R } } )$ -Lipschitz, which entails that $f$ is Lipschitz provided $\eta$ is (which is almost always the case in practice). In other words, we compute
189
+
190
+ $$
191
+ D _ { \Gamma } ( P , Q ) = \operatorname* { m a x } _ { h \in \mathcal { F } ^ { \prime } } \mathbb { E } _ { x \sim P } \left[ h ( \eta ( x ) ) \right] - \mathbb { E } _ { x \sim Q } \left[ h ( \eta ( x ) ) \right] ,
192
+ $$
193
+
194
+ where ${ \mathcal { F } } ^ { \prime }$ is a class of $( d _ { \mathcal { Y } } , d _ { \mathbb { R } } )$ -Lipschitz functions. Optimising over this objective may now proceed as usual via weight-clipping like (Arjovsky et al., 2017), or via a gradient penalty like (Gulrajani et al., 2017). Note that this suggestion may be understood as training a standard WGAN with the initial layers of the discriminator fixed to the embedding $\eta$ ; our analysis here shows that this is equivalent to optimising with respect to $W _ { L ^ { 2 } \circ \eta }$ instead of $W _ { L ^ { 2 } }$ . We have begun some experimentation in this area but leave a more detailed empirical inquiry to future work.
195
+
196
+ It is also clearly important to establish better theoretical guarantees for our method. At present, we have no guarantee that the number of samples in $A$ and $Y$ are enough to ensure that
197
+
198
+ $$
199
+ D ( \hat { A } , \hat { Y } ) \approx D ( \alpha ( X ) , \hat { Y } )
200
+ $$
201
+
202
+ (perhaps with some fixed bias that is fairly independent of $\alpha$ , so that it is valid to use the value of $D ( \hat { A } , \hat { Y } )$ to compare different choices of $\alpha$ ), or that (5) entails (2) with high probability. We do however note that some recent theoretical work on the convergence rate of empirical Wasserstein estimations (Weed & Bach, 2017) does suggest that it is plausible to hope for fast convergence of $D ( \hat { A } , \hat { Y } )$ to $D ( \alpha ( X ) , { \hat { Y } } )$ . We also believe that the convincing empirical behaviour of $W _ { L ^ { 2 } \circ \eta }$ does suggest that it is possible to say something more substantial about our approach, which we leave to future work.
203
+
204
+ # 6 RELATED WORK
205
+
206
+ The maximum mean discrepancy (MMD) is another well-known notion of distance on probability distributions, which has been used for testing whether two distributions are the same or not (Gretton et al., 2012) and also for learning generative models in the style of GAN (Li et al., 2015; Dziugaite et al., 2015; Sutherland et al., 2016; Li et al., 2017). It is parameterised by a characteristic kernel $k$ , and defines the distance between probability distributions by means of the distance of $k$ ’s reproducing kernel Hilbert space (RKHS). The MMD induces the same weak topology on distributions as the one of the Wasserstein distance. Under a mild condition, the MMD between distributions $P$ and $Q$ under a kernel $k$ can be understood as the outcome of the following two-step calculation. First, we pushforward $P$ and $Q$ from their original space $\mathcal { X }$ to a Hilbert space $\mathcal { H }$ (isomorphic to $k$ ’s RKHS) using a feature function $\phi : \mathcal { X } \to \mathcal { H }$ induced by the kernel $k$ . Typically, $\mathcal { H }$ is an infinite-dimensional space, such as the set $\ell _ { 2 }$ of square-summable sequences in ${ \mathcal { R } } ^ { \infty }$ as in Mercer’s theorem. Let $P ^ { \prime }$ and $Q ^ { \prime }$ be the resulting distributions on the feature space. Second, we compute the supremum of $\mathbb { E } _ { P ^ { \prime } ( X ) } [ f ( X ) ] - \mathbb { E } _ { Q ^ { \prime } ( X ) } [ f ( X ) ]$ over all linear 1-Lipschitz functions $f : \mathcal { H } \to \mathbb { R }$ . The result of this calculation is the MMD between $P$ and $Q$ .
207
+
208
+ This two-step calculation shows the key difference between MMD and our use of Wasserstein distance and neural embedding $\eta$ . While the co-domain of the feature function $\phi$ is an infinitedimensional space (e.g. $\ell _ { 2 }$ ) in most cases, its counterpart $\eta$ in our setting uses a finite-dimensional space as co-domain. This means that the MMD possibly uses a richer feature space than our approach. On the other hand, the MMD takes the supremum over only linear functions $f$ among all 1-Lipschitz functions, whereas the Wasserstein distance considers all these 1-Lipschitz functions. These different balancing acts between the expressiveness of features and that of functions taken in the supremum affect the learning and testing of various GAN approaches as observed experimentally in the literature. One interesting future direction is to carry out systematic study on the theoretical and practical implications of these differences.
209
+
210
+ # REFERENCES
211
+
212
+ Martin Arjovsky, Soumith Chintala, and Leon Bottou. Wasserstein gan. Β΄ arXiv preprint arXiv:1701.07875, 2017.
213
+ Sanjeev Arora and Yi Zhang. Do gans actually learn the distribution? an empirical study. arXiv preprint arXiv:1706.08224, 2017.
214
+ Sanjeev Arora, Rong Ge, Yingyu Liang, Tengyu Ma, and Yi Zhang. Generalization and Equilibrium in Generative Adversarial Nets (GANs). arXiv preprint arXiv:1703.00573, 2017.
215
+ Ayanendranath Basu, Hiroyuki Shioya, and Chanseok Park. Statistical inference: the minimum distance approach. CRC Press, 2011.
216
+ Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In Computer Vision and Pattern Recognition, 2009. CVPR 2009. IEEE Conference on, pp. 248–255. IEEE, 2009.
217
+
218
+ Gintare Karolina Dziugaite, Daniel M. Roy, and Zoubin Ghahramani. Training generative neural networks via maximum mean discrepancy optimization. In Proceedings of the Thirty-First Conference on Uncertainty in Artificial Intelligence, UAI 2015, July 12-16, 2015, Amsterdam, The Netherlands, pp. 258–267, 2015.
219
+
220
+ Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014.
221
+
222
+ Arthur Gretton, Karsten M. Borgwardt, Malte J. Rasch, Bernhard Scholkopf, and Alexander J.Β¨ Smola. A kernel two-sample test. Journal of Machine Learning Research, 13:723–773, 2012.
223
+
224
+ Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron Courville. Improved training of wasserstein gans. arXiv preprint arXiv:1704.00028, 2017.
225
+
226
+ Gao Huang, Zhuang Liu, Kilian Q Weinberger, and Laurens van der Maaten. Densely connected convolutional networks. arXiv preprint arXiv:1608.06993, 2016.
227
+
228
+ Chun-Liang Li, Wei-Cheng Chang, Yu Cheng, Yiming Yang, and Barnabas P Β΄ oczos. MMD GAN: Β΄ towards deeper understanding of moment matching network. arXiv preprint arXiv:1705.08584, 2017.
229
+
230
+ Yujia Li, Kevin Swersky, and Richard S. Zemel. Generative moment matching networks. In Proceedings of the 32nd International Conference on Machine Learning, ICML 2015, Lille, France, 6-11 July 2015, pp. 1718–1727, 2015.
231
+
232
+ Sebastian Nowozin, Botond Cseke, and Ryota Tomioka. f-gan: Training generative neural samplers using variational divergence minimization. In Advances in Neural Information Processing Systems, pp. 271–279, 2016.
233
+
234
+ Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434, 2015.
235
+
236
+ Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training gans. In Advances in Neural Information Processing Systems, pp. 2234–2242, 2016.
237
+
238
+ Dougal J. Sutherland, Hsiao-Yu Fish Tung, Heiko Strathmann, Soumyajit De, Aaditya Ramdas, Alexander J. Smola, and Arthur Gretton. Generative models and model criticism via optimized maximum mean discrepancy. arXiv preprint arXiv:1611.04488, 2016.
239
+
240
+ Cedric Villani. Β΄ Topics in optimal transportation. Number 58. American Mathematical Soc., 2003.
241
+
242
+ Cedric Villani. Β΄ Optimal transport: old and new, volume 338. Springer Science & Business Media, 2008.
243
+
244
+ Jonathan Weed and Francis Bach. Sharp asymptotic and finite-sample rates of convergence of empirical measures in wasserstein distance. arXiv preprint arXiv:1707.00087, 2017.
245
+
246
+ Jacob Wolfowitz. The minimum distance method. The Annals of Mathematical Statistics, pp. 75–88, 1957.
247
+
248
+ A EXAMPLE I-WGAN SAMPLES
249
+
250
+ ![](images/299b991f8908ee02ee348dccccbb828ad8fbf9b2fe032078582a7571aa052396.jpg)
251
+ Figure 6: Samples from I-WGAN trained on MNIST
252
+
253
+ ![](images/065b6587704900cb66c309c2e9ca20f09a0a7d9d4494f91a33ebe8b5024c26b7.jpg)
254
+ Figure 7: Samples from I-WGAN trained on CIFAR-10
255
+
256
+ B EXAMPLE DCGAN SAMPLES
257
+
258
+ ![](images/b16a225d78db6b6de2a7cb0b97ef2efaa0d11a8461afc63ce1f1e2360a25339b.jpg)
259
+ Figure 8: Samples from DCGAN trained on CIFAR-10 test set
260
+
261
+ ![](images/914e843c27d498e9477ae0e3631b8a88f4623f1ce1a32b22549f33ca9bb534c5.jpg)
262
+ Figure 9: Effect of different $\sigma$ on $\beta _ { \sigma } ( X )$ , for $X$ the CIFAR-10 training set
parse/train/ByuI-mW0W/ByuI-mW0W_content_list.json ADDED
@@ -0,0 +1,1309 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "TOWARDS A TESTABLE NOTION OF GENERALISATION FOR GENERATIVE ADVERSARIAL NETWORKS ",
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": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 170,
20
+ 398,
21
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 234,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "We consider the question of how to assess generative adversarial networks, in particular with respect to whether or not they generalise beyond memorising the training data. We propose a simple procedure for assessing generative adversarial network performance based on a principled consideration of what the actual goal of generalisation is. Our approach involves using a test set to estimate the Wasserstein distance between the generative distribution produced by our procedure, and the underlying data distribution. We use this procedure to assess the performance of several modern generative adversarial network architectures. We find that this procedure is sensitive to the choice of ground metric on the underlying data space, and suggest a choice of ground metric that substantially improves performance. We finally suggest that attending to the ground metric used in Wasserstein generative adversarial network training may be fruitful, and provide a concrete formulation for doing so. ",
40
+ "bbox": [
41
+ 233,
42
+ 265,
43
+ 764,
44
+ 445
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 472,
55
+ 336,
56
+ 487
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Generative adversarial networks (GANs) (Goodfellow et al., 2014) have attracted significant interest as a means for generative modelling. However, recently concerns have been raised about their ability to generalise from training data and their capacity to overfit (Arora & Zhang, 2017; Arora et al., 2017). Moreover, techniques for evaluating the quality of GAN output are either ad hoc, lack theoretical rigor, or are not suitably objective – often times β€œvisual inspection” of samples is the main tool of choice for the practitioner. More fundamentally, it is sometimes unclear exactly what we want a GAN to do: what is the learning task that we are trying to achieve? ",
63
+ "bbox": [
64
+ 174,
65
+ 502,
66
+ 825,
67
+ 601
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "In this paper, we provide a simple formulation of the GAN training framework, which consists of using a finite dataset to estimate an underlying data distribution. The quality of GAN output is measured precisely in terms of a statistical distance $D$ between the estimated and true distribution. Within this context, we propose an intuitive notion of what it means for a GAN to generalise. ",
74
+ "bbox": [
75
+ 174,
76
+ 607,
77
+ 825,
78
+ 662
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "We also show how our notion of performance can be measured empirically for any GAN architecture when $D$ is chosen to be a Wasserstein distance, which – unlike other methods such as the inception score (Salimans et al., 2016) – requires no density assumptions about the data-generating distribution. We investigate this choice of $D$ empirically, finding that its performance is heavily dependent on the choice of ground metric underlying the Wasserstein distance. We suggest a novel choice of ground metric that we show performs well, and also discuss how we might otherwise use this observation to improve the design of Wasserstein GANs (WGANs) (Arjovsky et al., 2017). ",
85
+ "bbox": [
86
+ 174,
87
+ 670,
88
+ 825,
89
+ 767
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "2 THE OBJECTIVE OF GENERATIVE MODELLING ",
96
+ "text_level": 1,
97
+ "bbox": [
98
+ 174,
99
+ 787,
100
+ 583,
101
+ 804
102
+ ],
103
+ "page_idx": 0
104
+ },
105
+ {
106
+ "type": "text",
107
+ "text": "GANs promise a means for learning complex probability distributions in an unsupervised fashion. In order to assess their effectiveness, we must first define precisely what we mean by this. We seek to do so in this section, presenting a formulation of the broader goal of generative modelling that we believe is widely compatible with much present work in this area. We also provide a natural notion of generalisation that arises in our framework. ",
108
+ "bbox": [
109
+ 174,
110
+ 818,
111
+ 823,
112
+ 888
113
+ ],
114
+ "page_idx": 0
115
+ },
116
+ {
117
+ "type": "text",
118
+ "text": "Our setup consists of the following components. We assume some distribution $\\pi$ on a set $\\mathcal { X }$ . For instance, $\\mathcal { X }$ may be the set of $3 2 \\mathrm { x } 3 2 $ colour images, and $\\pi$ the distribution from which the CIFAR-10 dataset was sampled. We assume that $\\pi$ is completely intractable: we do not know its density (or even if it has one), and we do not have a procedure to draw novel samples from it. However, we do suppose that we have a fixed dataset $X$ consisting of samples $x _ { 1 } , \\cdot \\cdot \\cdot , x _ { | X | } \\overset { \\mathrm { i i d } } { \\sim } \\pi$ . Equivalently, we have the empirical distribution ",
119
+ "bbox": [
120
+ 174,
121
+ 895,
122
+ 823,
123
+ 924
124
+ ],
125
+ "page_idx": 0
126
+ },
127
+ {
128
+ "type": "text",
129
+ "text": "",
130
+ "bbox": [
131
+ 173,
132
+ 102,
133
+ 825,
134
+ 165
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "equation",
140
+ "img_path": "images/72db4c497a8087ecefbcaf7229a670d5054b3f17f444272d311852990706b3eb.jpg",
141
+ "text": "$$\n\\hat { X } : = \\frac { 1 } { | X | } \\sum _ { n = 1 } ^ { | X | } \\delta _ { x _ { n } } ,\n$$",
142
+ "text_format": "latex",
143
+ "bbox": [
144
+ 433,
145
+ 165,
146
+ 563,
147
+ 209
148
+ ],
149
+ "page_idx": 1
150
+ },
151
+ {
152
+ "type": "text",
153
+ "text": "where $\\delta$ denotes the Dirac mass. ",
154
+ "bbox": [
155
+ 174,
156
+ 214,
157
+ 387,
158
+ 229
159
+ ],
160
+ "page_idx": 1
161
+ },
162
+ {
163
+ "type": "text",
164
+ "text": "Let $\\mathcal { P } ( \\mathcal { X } )$ denote the set of probability distributions on $\\mathcal { X }$ . Our aim is to use $X$ to produce a distribution in $\\mathcal { P } ( \\mathcal { X } )$ that is as β€œclose” as possible to $\\pi$ . We choose to measure closeness in terms of a function $D : \\mathcal { P } ( \\mathcal { X } ) \\times \\mathcal { P } ( \\mathcal { X } ) \\mathbb { R }$ . Usually $D$ will be chosen to be a statistical divergence, which means that $D ( P , Q ) \\geq 0$ for all $P$ and $Q$ , with equality iff $P = Q$ . The task of a learning algorithm $\\alpha$ in this context is then as follows: ",
165
+ "bbox": [
166
+ 173,
167
+ 234,
168
+ 825,
169
+ 306
170
+ ],
171
+ "page_idx": 1
172
+ },
173
+ {
174
+ "type": "equation",
175
+ "img_path": "images/009a7d84dbeac365386a34b8c98073bce2ae289f8a352dd982f03a19d0f96efd.jpg",
176
+ "text": "$$\n\\boxed { \\mathrm { S e l e c t } \\alpha ( X ) \\in \\mathcal { P } ( \\mathcal { X } ) \\mathrm { ~ s u c h ~ t h a t ~ } D ( \\alpha ( X ) , \\pi ) \\mathrm { ~ i s ~ a s ~ s m a l l ~ a s ~ p o s s i b l e . } }\n$$",
177
+ "text_format": "latex",
178
+ "bbox": [
179
+ 269,
180
+ 313,
181
+ 728,
182
+ 334
183
+ ],
184
+ "page_idx": 1
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "We believe (1) constitutes an intuitive and useful formulation of the problem of generative modelling that is largely in keeping with present research efforts. ",
189
+ "bbox": [
190
+ 174,
191
+ 344,
192
+ 823,
193
+ 373
194
+ ],
195
+ "page_idx": 1
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "Now, we can immediately see that one possibility is simply to choose $\\alpha ( X ) : = { \\hat { X } }$ . Moreover, in the case that $D$ is a metric for the weak topology on $\\mathcal { P } ( \\mathcal { X } )$ such as a Wasserstein distance, we have that $D ( \\hat { X } , \\pi ) \\to 0$ almost surely as $| X | \\to \\infty$ , so that, assuming $| X |$ is large enough, we can already expect $D ( \\hat { X } , \\pi )$ to be small. This then suggests the following natural notion of generalisation: ",
200
+ "bbox": [
201
+ 173,
202
+ 381,
203
+ 825,
204
+ 444
205
+ ],
206
+ "page_idx": 1
207
+ },
208
+ {
209
+ "type": "equation",
210
+ "img_path": "images/8496faf9b293258ae7817b5b4fa65822a3552d0c9ffa65b8c6d5fa78df952a06.jpg",
211
+ "text": "$$\n\\Bigl | \\mathrm { A ~ c h o i c e ~ o f } \\alpha \\mathrm { g e n e r a l i s e s ~ f o r ~ a ~ g i v e n } X \\mathrm { i f } \\ D ( \\alpha ( X ) , \\pi ) < D ( \\hat { X } , \\pi ) . \\Bigr |\n$$",
212
+ "text_format": "latex",
213
+ "bbox": [
214
+ 267,
215
+ 453,
216
+ 727,
217
+ 476
218
+ ],
219
+ "page_idx": 1
220
+ },
221
+ {
222
+ "type": "text",
223
+ "text": "In other words, using $\\alpha$ here has actually achieved something: perhaps through some process of smoothing or interpolation, it has injected additional information into $\\hat { X }$ that has moved us closer to $\\pi$ than we were a priori. ",
224
+ "bbox": [
225
+ 174,
226
+ 486,
227
+ 826,
228
+ 531
229
+ ],
230
+ "page_idx": 1
231
+ },
232
+ {
233
+ "type": "text",
234
+ "text": "3 GENERALISATION IN GANS ",
235
+ "text_level": 1,
236
+ "bbox": [
237
+ 176,
238
+ 553,
239
+ 441,
240
+ 569
241
+ ],
242
+ "page_idx": 1
243
+ },
244
+ {
245
+ "type": "text",
246
+ "text": "The previous section presented (1) as a general goal of generative modelling. In this section, we turn specifically to GANs. We begin by providing a general model for how many of the existing varieties of GAN operate, at least ideally. We then show how this model fits into our framework above, before considering the issue of generalisation in this context. ",
247
+ "bbox": [
248
+ 173,
249
+ 585,
250
+ 825,
251
+ 642
252
+ ],
253
+ "page_idx": 1
254
+ },
255
+ {
256
+ "type": "text",
257
+ "text": "Most GAN algorithms in widespread use adhere to the following template: they take as input a distribution $P$ , from which we assume we can sample, and compute (or approximate) ",
258
+ "bbox": [
259
+ 173,
260
+ 648,
261
+ 823,
262
+ 678
263
+ ],
264
+ "page_idx": 1
265
+ },
266
+ {
267
+ "type": "equation",
268
+ "img_path": "images/e6287e635295b75a0440bbaa9f6ed0ac5714dc97966173e3f942b20fec91fa61.jpg",
269
+ "text": "$$\n\\Gamma ( P ) : = \\underset { Q \\in \\mathcal { Q } } { \\arg \\operatorname* { m i n } } D _ { \\Gamma } ( P , Q )\n$$",
270
+ "text_format": "latex",
271
+ "bbox": [
272
+ 403,
273
+ 685,
274
+ 593,
275
+ 713
276
+ ],
277
+ "page_idx": 1
278
+ },
279
+ {
280
+ "type": "text",
281
+ "text": "for some choices of $\\mathcal Q \\subseteq \\mathcal P ( \\mathcal X )$ and $D _ { \\Gamma } : \\mathcal { P } ( \\mathcal { X } ) \\times \\mathcal { P } ( \\mathcal { X } ) \\mathbb { R }$ . In other words, in the ideal case, a GAN maps $P$ to its $D _ { \\Gamma }$ -projection onto $\\mathcal { Q }$ . Note that we will not necessarily have that $D _ { \\Gamma } = D$ : $D _ { \\Gamma }$ is fixed given a particular GAN architecture, whereas the choice of $D$ is simply a feature of our problem definition (1) and is essentially ours to make. ",
282
+ "bbox": [
283
+ 173,
284
+ 720,
285
+ 825,
286
+ 779
287
+ ],
288
+ "page_idx": 1
289
+ },
290
+ {
291
+ "type": "text",
292
+ "text": "In practice, $\\mathcal { Q }$ is the set of pushforward measures $\\nu \\circ G ^ { - 1 }$ obtained from a fixed noise distribution $\\nu$ on a noise space $\\mathcal { Z }$ and some set $\\mathcal { G }$ of functions $G : { \\mathcal { Z } } { \\mathcal { X } }$ . Precisely, $\\mathcal { Q } = \\left\\{ \\nu \\circ G ^ { - 1 } : G \\in \\mathcal { G } \\right\\}$ . $\\mathcal { G }$ itself usually corresponds to the set of functions realisable by some neural network architecture, and $\\nu$ is some multivariate uniform or Gaussian distribution. However, numerous choices of $D _ { \\Gamma }$ have been proposed: the original GAN formulation (Goodfellow et al., 2014) took $D _ { \\Gamma }$ to be the Jenson-Shannon divergence, whereas the $f$ -GAN (Nowozin et al., 2016) generalised this to arbitrary $f$ -divergences, and the Wasserstein GAN (Arjovsky et al., 2017) advocated the Wasserstein distance. Many of the results proved in these papers involve showing that (usually under some assumptions, such as sufficient discriminator capacity) a proposed objective for $G$ is in fact equivalent to $\\bar { D _ { \\Gamma } ( P , \\nu \\circ }$ $G ^ { - 1 }$ ). ",
293
+ "bbox": [
294
+ 173,
295
+ 784,
296
+ 825,
297
+ 924
298
+ ],
299
+ "page_idx": 1
300
+ },
301
+ {
302
+ "type": "text",
303
+ "text": "In terms of our framework in the previous section, using a GAN $\\Gamma$ amounts to choosing ",
304
+ "bbox": [
305
+ 171,
306
+ 102,
307
+ 746,
308
+ 118
309
+ ],
310
+ "page_idx": 2
311
+ },
312
+ {
313
+ "type": "equation",
314
+ "img_path": "images/42b4cbe19df6ad9bb9f3e4c8af185b6f7569dd5ae396bf7c3c2b38e3abfcaf17.jpg",
315
+ "text": "$$\n\\alpha ( X ) : = \\Gamma ( \\hat { X } ) = \\underset { Q \\in \\mathcal { Q } } { \\arg \\operatorname* { m i n } } D _ { \\Gamma } ( \\hat { X } , Q ) .\n$$",
316
+ "text_format": "latex",
317
+ "bbox": [
318
+ 369,
319
+ 121,
320
+ 627,
321
+ 151
322
+ ],
323
+ "page_idx": 2
324
+ },
325
+ {
326
+ "type": "text",
327
+ "text": "We emphasise again the important distinction between $D$ and $D _ { \\Gamma }$ . In our setup, minimising $D$ defines our ultimate goal, whereas minimising $D _ { \\Gamma }$ (over $\\mathcal { Q }$ ) defines how we will attempt to achieve that goal. Even if $D \\neq D _ { \\Gamma }$ , it is still at least conceivable that $D ( \\Gamma ( { \\hat { X } } ) , \\pi )$ might be small, and therefore this choice of $\\alpha$ might be sensible. Also note that, crucially, $\\Gamma$ receives $\\hat { X }$ as input rather than $\\pi$ itself. We only have access to a fixed number of CIFAR-10 samples, for example, not an infinite stream. Moreover, training GANs usually involves making many passes over the same dataset, so that, in effect, sampling from $P$ will repeatedly yield the same data points. We would not expect this to occur with nonzero probability if $P = \\pi$ for most $\\pi$ of interest. ",
328
+ "bbox": [
329
+ 173,
330
+ 154,
331
+ 825,
332
+ 272
333
+ ],
334
+ "page_idx": 2
335
+ },
336
+ {
337
+ "type": "text",
338
+ "text": "The observation that $P$ is $\\hat { X }$ rather than $\\pi$ was also recently made by Arora et al. (2017). The authors argue that this introduces a problem for the ability of GANs to generalise, since, if $D _ { \\Gamma }$ is a divergence (which is almost always the case), and if $\\mathcal { Q }$ is too big (in particular, if it is big enough that $\\hat { X } \\in \\mathcal { Q } ,$ ), then we trivially have that $\\Gamma ( { \\hat { X } } ) = { \\hat { X } }$ . In other words, the GAN objective appears actively to encourage $\\Gamma ( { \\hat { X } } )$ to memorise the dataset $X$ , and never to produce novel samples from outside of it. The authors’ proposed remedy involves trying to find a better choice of $D _ { \\Gamma }$ . The problem, they argue, is that popular choices of $D _ { \\Gamma }$ do not satisfy the condition ",
339
+ "bbox": [
340
+ 173,
341
+ 277,
342
+ 826,
343
+ 382
344
+ ],
345
+ "page_idx": 2
346
+ },
347
+ {
348
+ "type": "text",
349
+ "text": "$D _ { \\Gamma } ( \\pi , Q ) \\approx D _ { \\Gamma } ( { \\hat { X } } , Q )$ with high probability given a modest number of samples in $X$ . ",
350
+ "bbox": [
351
+ 202,
352
+ 388,
353
+ 795,
354
+ 405
355
+ ],
356
+ "page_idx": 2
357
+ },
358
+ {
359
+ "type": "text",
360
+ "text": "They point out that this is certainly violated when $D _ { \\Gamma }$ is the Jensen-Shannon divergence JS, since ",
361
+ "bbox": [
362
+ 181,
363
+ 409,
364
+ 812,
365
+ 424
366
+ ],
367
+ "page_idx": 2
368
+ },
369
+ {
370
+ "type": "equation",
371
+ "img_path": "images/72f371f44c438deeaf78eed103e3ced7af6c2aa5a15ecd2a7c0f70ae5a4861db.jpg",
372
+ "text": "$$\n\\operatorname { J S } ( P \\parallel Q ) = \\log 2\n$$",
373
+ "text_format": "latex",
374
+ "bbox": [
375
+ 434,
376
+ 428,
377
+ 563,
378
+ 445
379
+ ],
380
+ "page_idx": 2
381
+ },
382
+ {
383
+ "type": "text",
384
+ "text": "when one of $P$ and $Q$ is discrete and the other continuous, and give a similar result for $D _ { \\Gamma }$ a Wasserstein distance in the case that $\\pi$ is Gaussian. As a solution, they introduce the neural network distance $D _ { \\mathrm { N N } }$ defined by ",
385
+ "bbox": [
386
+ 173,
387
+ 449,
388
+ 825,
389
+ 491
390
+ ],
391
+ "page_idx": 2
392
+ },
393
+ {
394
+ "type": "equation",
395
+ "img_path": "images/5e03cdcb6194087161d9f8eb6ddbd3167d4cb14dd86d2d360728b63f4a0ff0eb.jpg",
396
+ "text": "$$\nD _ { \\mathrm { N N } } ( P , Q ) : = \\operatorname* { m a x } _ { f \\in \\mathcal { F } } \\mathbb { E } _ { x \\sim P } \\left[ f ( x ) \\right] - \\mathbb { E } _ { x \\sim Q } \\left[ f ( x ) \\right]\n$$",
397
+ "text_format": "latex",
398
+ "bbox": [
399
+ 336,
400
+ 494,
401
+ 661,
402
+ 518
403
+ ],
404
+ "page_idx": 2
405
+ },
406
+ {
407
+ "type": "text",
408
+ "text": "for some choice of a class of functions $\\mathcal { F }$ . They show that, assuming some smoothness conditions on the members of $\\mathcal { F }$ , the choice $D _ { \\Gamma } = D _ { \\mathrm { N N } }$ satisfies (3), which means that if we minimise $D _ { \\mathrm { N N } } ( \\hat { X } , Q )$ in $Q$ then we can be confident that the value of $D _ { \\mathrm { N N } } ( \\pi , Q )$ is small also. ",
409
+ "bbox": [
410
+ 174,
411
+ 522,
412
+ 825,
413
+ 568
414
+ ],
415
+ "page_idx": 2
416
+ },
417
+ {
418
+ "type": "text",
419
+ "text": "However, we do not believe that (3) is sufficient to ensure good generalisation behaviour for GANs. What we care about ultimately is not the value of $D _ { \\Gamma }$ , but rather of $D$ , and (3) invites choosing $D _ { \\Gamma }$ in such a way that gives no guarantees about $D$ at all. We see, for instance, that the degenerate choice $D _ { 0 } ( P , Q ) : = 0$ trivially satisfies (3), and indeed is also a pseudometric, just like $D _ { \\mathrm { N N } }$ . It is therefore unclear what mathematical properties of $D _ { \\mathrm { N N } }$ render it more suitable for estimating $\\pi$ than the obviously undesirable $D _ { 0 }$ . The authors do acknowledge this shortcoming of $D _ { \\mathrm { N N } }$ , pointing out that $D _ { \\mathrm { N N } } ( P , Q )$ can be small even if $P$ and $Q$ are β€œquite different” in some sense. ",
420
+ "bbox": [
421
+ 173,
422
+ 573,
423
+ 825,
424
+ 672
425
+ ],
426
+ "page_idx": 2
427
+ },
428
+ {
429
+ "type": "text",
430
+ "text": "The problematic consequences of the fact that $P = { \\hat { X } }$ apply only in the case that $\\mathcal { Q }$ is too large. In practice, however, $\\mathcal { Q }$ is heavily restricted, since $\\mathcal { G }$ is restricted via a choice of neural network architecture; hence we do not know $a$ priori whether $\\boldsymbol { \\Gamma } ( \\boldsymbol { \\hat { X } } ) = \\boldsymbol { \\hat { X } }$ is even possible. As such, we do not see the choice of $\\alpha ( X ) = \\Gamma ( \\hat { X } )$ as necessarily a bad idea, and instead believe that it is an open empirical question as to how well GANs perform the task (1). In fact, this $\\alpha$ falls perfectly within the framework of minimum distance estimation (Wolfowitz, 1957; Basu et al., 2011), which involves estimating an underlying distribution by minimising a distance measure to a given empirical distribution. ",
431
+ "bbox": [
432
+ 173,
433
+ 679,
434
+ 825,
435
+ 797
436
+ ],
437
+ "page_idx": 2
438
+ },
439
+ {
440
+ "type": "text",
441
+ "text": "4 TESTING GANS ",
442
+ "text_level": 1,
443
+ "bbox": [
444
+ 176,
445
+ 816,
446
+ 339,
447
+ 833
448
+ ],
449
+ "page_idx": 2
450
+ },
451
+ {
452
+ "type": "text",
453
+ "text": "Our goal in this section is to assess how well GANs achieve (1) by estimating $D ( \\Gamma ( X ) , \\pi )$ for various $\\Gamma$ and $\\pi$ . This raises some difficulties, given that $\\pi$ is intractable. Our approach is to take $D$ to be the first Wasserstein distance $W _ { d _ { x } }$ defined by ",
454
+ "bbox": [
455
+ 174,
456
+ 847,
457
+ 825,
458
+ 890
459
+ ],
460
+ "page_idx": 2
461
+ },
462
+ {
463
+ "type": "equation",
464
+ "img_path": "images/7fec5d376faa6f9358aea4622c5ee4c74a4f729ecfa67147dbd8189208f07fb6.jpg",
465
+ "text": "$$\nW _ { d x } ( P , Q ) = \\operatorname* { i n f } _ { \\gamma \\in \\Pi ( P , Q ) } \\int _ { \\mathcal { X } \\times \\mathcal { X } } d _ { \\mathcal { X } } ( x , y ) \\mathrm { d } \\gamma ( x , y ) ,\n$$",
466
+ "text_format": "latex",
467
+ "bbox": [
468
+ 333,
469
+ 893,
470
+ 663,
471
+ 929
472
+ ],
473
+ "page_idx": 2
474
+ },
475
+ {
476
+ "type": "text",
477
+ "text": "where $d _ { \\mathcal { X } }$ is a metric on $\\mathcal { X }$ referred to as the ground metric, and $\\Pi ( P , Q )$ denotes the set of joint distributions on the product space $\\mathcal { X } \\times \\mathcal { X }$ with marginals $P$ and $Q$ . The Wasserstein distance is appealing since it is sensitive to the topology of the underlying set $\\mathcal { X }$ , which we control by our choice of $d _ { \\mathcal { X } }$ . Moreover, $W _ { d x }$ metricises weak convergence for the Wasserstein space $\\mathcal { P } _ { d _ { \\mathcal { X } } } ( \\mathcal { X } )$ defined by ",
478
+ "bbox": [
479
+ 173,
480
+ 102,
481
+ 825,
482
+ 174
483
+ ],
484
+ "page_idx": 3
485
+ },
486
+ {
487
+ "type": "equation",
488
+ "img_path": "images/c3ff49cd3aea245490dc11874730261c84af2d718a5f3e1ae26a6f1d5ec35c57.jpg",
489
+ "text": "$$\n{ \\mathcal { P } } _ { d _ { \\mathcal { X } } } ( \\mathcal { X } ) : = \\left\\{ P \\in { \\mathcal { P } } ( \\mathcal { X } ) : \\int _ { \\mathcal { X } } d _ { \\mathcal { X } } ( x _ { 0 } , y ) \\mathrm { d } P ( y ) < \\infty { \\mathrm { ~ f o r ~ s o m e ~ } } x _ { 0 } \\in \\mathcal { X } \\right\\}\n$$",
490
+ "text_format": "latex",
491
+ "bbox": [
492
+ 256,
493
+ 180,
494
+ 741,
495
+ 215
496
+ ],
497
+ "page_idx": 3
498
+ },
499
+ {
500
+ "type": "text",
501
+ "text": "(see (Villani, 2008)). Consequently, if we denote by $A$ a set of samples $a _ { 1 } , \\cdots , a _ { | A | }$ iid∼ $\\alpha ( X )$ and by $Y$ a set of samples (separate from $X$ ) $y _ { 1 } , \\cdots , y _ { | Y | } \\overset { \\mathrm { i i d } } { \\sim } \\pi .$ , with $\\hat { A }$ and $\\hat { Y }$ the corresponding empirical distributions, then, provided ",
502
+ "bbox": [
503
+ 173,
504
+ 224,
505
+ 825,
506
+ 276
507
+ ],
508
+ "page_idx": 3
509
+ },
510
+ {
511
+ "type": "equation",
512
+ "img_path": "images/1d8b0d0baf7751fc094514a7eb0cb14a1eb1eb94c44d3cc3807c763fecb19097.jpg",
513
+ "text": "$$\n\\alpha ( X ) , \\pi \\in { \\mathcal { P } } _ { d _ { \\mathcal { X } } } ( { \\mathcal { X } } ) ,\n$$",
514
+ "text_format": "latex",
515
+ "bbox": [
516
+ 429,
517
+ 282,
518
+ 568,
519
+ 300
520
+ ],
521
+ "page_idx": 3
522
+ },
523
+ {
524
+ "type": "text",
525
+ "text": "we have that $D ( { \\hat { A } } , { \\hat { Y } } ) \\to D ( \\alpha ( X ) , \\pi )$ almost surely as $\\operatorname* { m i n } \\{ | A | , | Y | \\} \\infty$ . Note that condition (4) holds automatically in the case that $( \\mathcal { X } , d _ { \\mathcal { X } } )$ is compact, since then $\\mathcal { P } _ { d _ { \\mathcal { X } } } ( \\mathcal { X } ) = \\mathcal { P } ( \\mathcal { X } )$ . ",
526
+ "bbox": [
527
+ 173,
528
+ 308,
529
+ 825,
530
+ 338
531
+ ],
532
+ "page_idx": 3
533
+ },
534
+ {
535
+ "type": "text",
536
+ "text": "As such, to estimate $D ( \\alpha ( X ) , \\pi )$ , for $D = W _ { d _ { x } }$ , we propose the following. Before training, we move some of our samples from $X$ into a testing set $Y$ . We next train our GAN on $X$ , obtaining $\\alpha ( X )$ . We then take samples $A$ from $\\alpha ( X )$ , and obtain the estimate ",
537
+ "bbox": [
538
+ 173,
539
+ 343,
540
+ 825,
541
+ 387
542
+ ],
543
+ "page_idx": 3
544
+ },
545
+ {
546
+ "type": "equation",
547
+ "img_path": "images/8858e5e950845cbf28c9685545c49709087cba2b02ba92305a5b9e3282c6df45.jpg",
548
+ "text": "$$\nW _ { d _ { \\mathcal { X } } } ( \\hat { A } , \\hat { Y } ) \\approx W _ { d _ { \\mathcal { X } } } ( \\alpha ( X ) , \\pi ) ,\n$$",
549
+ "text_format": "latex",
550
+ "bbox": [
551
+ 393,
552
+ 392,
553
+ 602,
554
+ 412
555
+ ],
556
+ "page_idx": 3
557
+ },
558
+ {
559
+ "type": "text",
560
+ "text": "where the left-hand side can be computed exactly by solving a linear program since both $\\hat { A }$ and $\\hat { Y }$ are discrete (Villani, 2003). We can also use the same methodology to estimate $W _ { d _ { \\mathcal { X } } } ( \\hat { X } , \\pi )$ by $W _ { d x } ( \\hat { X } , \\hat { Y } )$ , which suggests testing if ",
561
+ "bbox": [
562
+ 173,
563
+ 421,
564
+ 825,
565
+ 469
566
+ ],
567
+ "page_idx": 3
568
+ },
569
+ {
570
+ "type": "equation",
571
+ "img_path": "images/378bd542877e3aeae416ae3234fee2ba0cfeb82dbc4c5507c4142253f3932341.jpg",
572
+ "text": "$$\nW _ { d _ { \\mathcal { X } } } ( \\hat { A } , \\hat { Y } ) < W _ { d _ { \\mathcal { X } } } ( \\hat { X } , \\hat { Y } ) .\n$$",
573
+ "text_format": "latex",
574
+ "bbox": [
575
+ 403,
576
+ 476,
577
+ 593,
578
+ 496
579
+ ],
580
+ "page_idx": 3
581
+ },
582
+ {
583
+ "type": "text",
584
+ "text": "as a proxy for determining whether (2) holds. A summary of our procedure is given in Algorithm 1. ",
585
+ "bbox": [
586
+ 176,
587
+ 502,
588
+ 821,
589
+ 517
590
+ ],
591
+ "page_idx": 3
592
+ },
593
+ {
594
+ "type": "text",
595
+ "text": "Algorithm 1 Procedure for testing GANs ",
596
+ "text_level": 1,
597
+ "bbox": [
598
+ 176,
599
+ 534,
600
+ 446,
601
+ 547
602
+ ],
603
+ "page_idx": 3
604
+ },
605
+ {
606
+ "type": "table",
607
+ "img_path": "images/29945c3e790cf57aaba3e0d8dca70348a692f6df9498e926a06d75773838c9a7.jpg",
608
+ "table_caption": [],
609
+ "table_footnote": [],
610
+ "table_body": "<table><tr><td>1: Split samples from Ο€ into a training set X and a testing set Y</td></tr><tr><td>2: Compute Ξ±(X) by training a GAN on X 3: Obtain a sample A from Ξ±(X)</td></tr></table>",
611
+ "bbox": [
612
+ 179,
613
+ 553,
614
+ 673,
615
+ 699
616
+ ],
617
+ "page_idx": 3
618
+ },
619
+ {
620
+ "type": "text",
621
+ "text": "4.1 RESULTS ",
622
+ "text_level": 1,
623
+ "bbox": [
624
+ 174,
625
+ 723,
626
+ 279,
627
+ 737
628
+ ],
629
+ "page_idx": 3
630
+ },
631
+ {
632
+ "type": "text",
633
+ "text": "We applied our methodology to test two popular GAN varieties – the DCGAN (Radford et al., 2015) and the Improved Wasserstein GAN (I-WGAN) (Gulrajani et al., 2017) – on the MNIST and CIFAR-10 datasets. In all cases when computing the relevant Wasserstein distances, our empirical distributions consisted of 10000 samples. ",
634
+ "bbox": [
635
+ 173,
636
+ 748,
637
+ 825,
638
+ 805
639
+ ],
640
+ "page_idx": 3
641
+ },
642
+ {
643
+ "type": "text",
644
+ "text": "4.1.1 $L ^ { 2 }$ AS GROUND METRIC ",
645
+ "text_level": 1,
646
+ "bbox": [
647
+ 174,
648
+ 819,
649
+ 393,
650
+ 835
651
+ ],
652
+ "page_idx": 3
653
+ },
654
+ {
655
+ "type": "text",
656
+ "text": "We initially took our ground metric $d _ { \\mathcal { X } }$ to be the $L ^ { 2 }$ distance. This has the appealing property of making $( \\boldsymbol { \\mathcal { X } } , d _ { \\boldsymbol { \\mathcal { X } } } )$ compact when $\\mathcal { X }$ is a space of RGB or greyscale images, therefore ensuring that (4) holds. ",
657
+ "bbox": [
658
+ 174,
659
+ 844,
660
+ 825,
661
+ 887
662
+ ],
663
+ "page_idx": 3
664
+ },
665
+ {
666
+ "type": "text",
667
+ "text": "Figure 1 shows $W _ { L ^ { 2 } } ( \\hat { A } , \\hat { Y } )$ plotted over multiple training runs for MNIST and CIFAR-10 when $A$ is obtained from an I-WGAN, with typical samples shown in Figures 6 and 7 in the appendix. For both datasets, $W _ { L ^ { 2 } } ( \\hat { A } , \\hat { Y } )$ decays towards an asymptote in a way that nicely corresponds to the visual quality of the samples produced. Moreover, $W _ { L ^ { 2 } } ( \\hat { A } , \\hat { Y } )$ is much closer to $W _ { L ^ { 2 } } ( \\hat { X } , \\hat { Y } )$ towards the tail end of training for MNIST than for CIFAR-10. This seems to reflect the fact that, visually, the eventual I-WGAN MNIST samples do seem quite close to true MNIST samples, whereas the eventual I-WGAN CIFAR-10 samples are easily identified as fake. ",
668
+ "bbox": [
669
+ 173,
670
+ 893,
671
+ 821,
672
+ 924
673
+ ],
674
+ "page_idx": 3
675
+ },
676
+ {
677
+ "type": "image",
678
+ "img_path": "images/a00baa7a2f8c1338c34dc16ac2b9d21542acedfe8552ef8248e5e4e39486957e.jpg",
679
+ "image_caption": [
680
+ "Figure 1: Output of Algorithm 1 with $d _ { \\mathcal { X } } = L ^ { 2 }$ for I-WGAN trained on MNIST (left) and CIFAR-10 (right) "
681
+ ],
682
+ "image_footnote": [],
683
+ "bbox": [
684
+ 179,
685
+ 106,
686
+ 808,
687
+ 244
688
+ ],
689
+ "page_idx": 4
690
+ },
691
+ {
692
+ "type": "image",
693
+ "img_path": "images/c579bf2b3cf37f9b358f5494cc533abd1bcd6e975256427480f8283fbd348944.jpg",
694
+ "image_caption": [
695
+ "Figure 2: Output of Algorithm 1 with $d _ { \\mathcal { X } } = L ^ { 2 }$ for DCGAN trained on CIFAR-10 "
696
+ ],
697
+ "image_footnote": [],
698
+ "bbox": [
699
+ 179,
700
+ 309,
701
+ 815,
702
+ 498
703
+ ],
704
+ "page_idx": 4
705
+ },
706
+ {
707
+ "type": "text",
708
+ "text": "",
709
+ "bbox": [
710
+ 173,
711
+ 558,
712
+ 825,
713
+ 632
714
+ ],
715
+ "page_idx": 4
716
+ },
717
+ {
718
+ "type": "text",
719
+ "text": "However, when we re-ran the same experiment using a DCGAN on CIFAR-10, we obtained the $W _ { L ^ { 2 } } ( \\hat { A } , \\hat { Y } )$ trajectories shown in Figure 2. Typical examples are shown in Figure 8. Strangely, we observe that $W _ { L ^ { 2 } } ( \\hat { A } , \\hat { Y } ) < W _ { L ^ { 2 } } ( \\hat { X } , \\hat { Y } )$ very early on in training – at around batch 500 – when the samples resemble the heavily blurry Figure 8b. This raises some obvious concerns about the appropriateness of $W _ { L ^ { 2 } }$ as a metric for GAN quality. ",
720
+ "bbox": [
721
+ 173,
722
+ 638,
723
+ 825,
724
+ 714
725
+ ],
726
+ "page_idx": 4
727
+ },
728
+ {
729
+ "type": "text",
730
+ "text": "We therefore sought to understand this strange behaviour. Motivated by the visual blurriness of the samples in Figure 8b, we explored the effect on $W _ { L ^ { p } } ( \\hat { X } , \\hat { Y } )$ of blurring the CIFAR-10 training set $X$ . In particular, we let $X$ and $Y$ each consist of 10000 distinct CIFAR-10 samples in $X$ . We then independently convolved each channel of each image with a Gaussian kernel having standard deviation $\\sigma$ , obtaining a blurred dataset $\\beta _ { \\sigma } ( X )$ and corresponding empirical distribution $\\hat { \\beta } _ { \\sigma } ( X )$ . The visual effect of this procedure is shown in Figure 9 in the appendix. We then computed $W _ { L ^ { p } } ( \\hat { \\beta } _ { \\sigma } ( X ) , \\hat { Y } )$ with $\\sigma$ ranging between 0 and 10 for a variety of values of $p$ . The results of this experiment in the case $p = 2$ are shown in Figure 3, and similar results were observed for other values of $p$ : in all cases, we found that ",
731
+ "bbox": [
732
+ 173,
733
+ 719,
734
+ 825,
735
+ 853
736
+ ],
737
+ "page_idx": 4
738
+ },
739
+ {
740
+ "type": "equation",
741
+ "img_path": "images/49eb788026668dbe23179ba106fe5f1a7b89c7ecef90561da83199fbf9fe3b52.jpg",
742
+ "text": "$$\nW _ { L ^ { p } } ( \\hat { X } , \\hat { Y } ) > W _ { L ^ { p } } ( \\hat { \\beta } _ { \\sigma } ( X ) , \\hat { Y } )\n$$",
743
+ "text_format": "latex",
744
+ "bbox": [
745
+ 392,
746
+ 852,
747
+ 606,
748
+ 872
749
+ ],
750
+ "page_idx": 4
751
+ },
752
+ {
753
+ "type": "text",
754
+ "text": "whenever $\\sigma > 0$ . That is, blurring $X$ by any amount brings $\\hat { X }$ closer to $\\hat { Y }$ in $\\boldsymbol { W } _ { L ^ { p } }$ than not. This occurs even though $X$ is distributed identically to $Y$ (both being drawn from $\\pi$ ), while $\\beta _ { \\sigma } ( X )$ (presumably) is not when $\\sigma > 0$ . ",
755
+ "bbox": [
756
+ 174,
757
+ 881,
758
+ 823,
759
+ 924
760
+ ],
761
+ "page_idx": 4
762
+ },
763
+ {
764
+ "type": "image",
765
+ "img_path": "images/45f392895d2f6ffc598a181c84f164d1b14ef60a793bd79e85f92972b0cf924d.jpg",
766
+ "image_caption": [
767
+ "Figure 3: Effect of blurring CIFAR-10 on $W _ { L ^ { 2 } }$ (left) and $W _ { L ^ { 2 } \\circ \\eta }$ (right) "
768
+ ],
769
+ "image_footnote": [],
770
+ "bbox": [
771
+ 178,
772
+ 106,
773
+ 807,
774
+ 243
775
+ ],
776
+ "page_idx": 5
777
+ },
778
+ {
779
+ "type": "text",
780
+ "text": "4.1.2 EMBEDDED $L ^ { 2 }$ AS GROUND METRIC ",
781
+ "text_level": 1,
782
+ "bbox": [
783
+ 176,
784
+ 296,
785
+ 477,
786
+ 311
787
+ ],
788
+ "page_idx": 5
789
+ },
790
+ {
791
+ "type": "text",
792
+ "text": "To remedy these issues, we sought to replace $L ^ { 2 }$ with a choice of $d _ { \\mathcal { X } }$ that is more naturally suited to the space of images in question. To this end we tried mapping $\\mathcal { X }$ through a fixed pre-trained neural network $\\eta$ into a feature space $\\mathcal { V }$ , and then computing distances using some metric $d _ { \\mathcal { Y } }$ on $\\mathcal { V }$ , rather than in $\\mathcal { X }$ directly. It is easily seen that, provided $\\eta$ is injective, $d _ { \\mathcal { V } } \\circ \\eta : \\mathcal { X } \\times \\mathcal { X } \\to \\mathbb { R }$ defined by ",
793
+ "bbox": [
794
+ 173,
795
+ 320,
796
+ 825,
797
+ 377
798
+ ],
799
+ "page_idx": 5
800
+ },
801
+ {
802
+ "type": "equation",
803
+ "img_path": "images/fc986f31825ce97f27c30f6bea83a93cab4570a43cdf5ae563a88b9b46e2ffac.jpg",
804
+ "text": "$$\n( d _ { \\mathcal { V } } \\circ \\eta ) ( x , x ^ { \\prime } ) : = d _ { \\mathcal { V } } ( \\eta ( x ) , \\eta ( x ^ { \\prime } ) )\n$$",
805
+ "text_format": "latex",
806
+ "bbox": [
807
+ 382,
808
+ 381,
809
+ 616,
810
+ 400
811
+ ],
812
+ "page_idx": 5
813
+ },
814
+ {
815
+ "type": "text",
816
+ "text": "is a metric. It also holds that, when $\\eta$ is $( d _ { \\mathcal { X } } , d _ { \\mathcal { Y } } )$ -continuous, $( \\mathcal { X } , d _ { \\mathcal { Y } } \\circ \\eta )$ is compact when $( \\mathcal { X } , d _ { \\mathcal { X } } )$ is: given a sequence $x _ { i } \\subseteq { \\mathcal { X } }$ , there exists a subsequence $x _ { i ^ { \\prime } }$ that converges in $d _ { \\mathcal { X } }$ to some $x$ (by compactness), so that $( d \\ / y \\circ \\eta ) ( x _ { i ^ { \\prime } } , x ) = d \\ / y ( \\eta ( x _ { i ^ { \\prime } } ) , \\eta ( x ) ) 0$ by continuity of $\\eta$ . Neither of these conditions on $\\eta$ – injectivity and $( d _ { \\mathcal { X } } , d _ { \\mathcal { Y } } )$ -continuity – are unreasonable to expect from a typical neural network trained using stochastic gradient descent (at least, when $d _ { \\mathcal { X } }$ and $d _ { \\mathcal { Y } }$ are typical metrics such as $L ^ { p }$ distances). Consequently, $W _ { d _ { y } \\circ \\eta }$ constitutes a valid metric on $\\mathcal { P } _ { d _ { y } \\circ \\eta } ( \\mathcal { X } )$ , and (4) is automatically satisfied. ",
817
+ "bbox": [
818
+ 173,
819
+ 404,
820
+ 825,
821
+ 502
822
+ ],
823
+ "page_idx": 5
824
+ },
825
+ {
826
+ "type": "text",
827
+ "text": "To test the performance of $W _ { d y \\circ \\eta }$ , we repeated the blurring experiment described above. We took $\\eta ( x )$ to be the result of scaling $x \\in \\mathcal { X }$ to size $2 2 4 \\mathbf { x } 2 2 4$ , mapping the result through a DenseNet-121 (Huang et al., 2016) pre-trained on ImageNet (Deng et al., 2009), and extracting features immediately before the linear output layer. Under the same experimental setup as above otherwise, we obtained the plot of $W _ { L ^ { 2 } \\circ \\eta } ( \\beta _ { \\sigma } ( \\hat { X } ) , \\hat { Y } )$ shown in Figure 3. Happily, we now see that this curve increases monotonically as $\\sigma$ grows in accordance with the declining visual quality of $\\beta _ { \\sigma } ( X )$ shown in Figure 9. ",
828
+ "bbox": [
829
+ 173,
830
+ 508,
831
+ 825,
832
+ 608
833
+ ],
834
+ "page_idx": 5
835
+ },
836
+ {
837
+ "type": "text",
838
+ "text": "Next, we computed $W _ { L ^ { 2 } \\circ \\eta } ( \\hat { A } , \\hat { Y } )$ over the course of GAN training. For the I-WGAN we obtained the results on MNIST and CIFAR-10 shown in Figure 4;1 for the DCGAN on CIFAR-10, we obtained the curve shown in Figure 5. In all cases we see that $W _ { L ^ { 2 } \\circ \\eta } ( \\hat { A } , \\hat { Y } )$ decreases monotonically towards an asymptote in a way that accurately summarises the visual quality of the samples throughout the training run. Moreover, there is always a large gap between the eventual value of $W _ { L ^ { 2 } \\circ \\eta } ( \\hat { A } , \\hat { Y } )$ and $W _ { L ^ { 2 } \\circ \\eta } ( \\hat { X } , \\hat { Y } )$ , which reflects the fact that the GAN samples are still visually distinguishable from real $\\pi$ samples. In particular, we see an improvement in this respect for the I-WGAN on MNIST: in Figure 1 the asymptotic value of $W _ { L ^ { 2 } } ( \\hat { \\hat { A } } , \\hat { Y } )$ for MNIST was barely discernible from $W _ { L ^ { 2 } } ( \\hat { X } , \\hat { Y } )$ , despite the fact that it is still quite easy to tell real samples from generated ones (see e.g. the various mistakes present in Figure 6). ",
839
+ "bbox": [
840
+ 173,
841
+ 616,
842
+ 825,
843
+ 767
844
+ ],
845
+ "page_idx": 5
846
+ },
847
+ {
848
+ "type": "text",
849
+ "text": "5 DISCUSSION AND FUTURE WORK ",
850
+ "text_level": 1,
851
+ "bbox": [
852
+ 176,
853
+ 787,
854
+ 478,
855
+ 803
856
+ ],
857
+ "page_idx": 5
858
+ },
859
+ {
860
+ "type": "text",
861
+ "text": "We believe our work reveals two promising avenues of future inquiry. First, we suggest that $W _ { L ^ { p } \\circ \\eta }$ is an appealing choice of $D$ , both due to its nice theoretical properties – it metricises weak convergence, and does not require us to make any density assumptions about $\\pi$ – and due to its sound empirical performance demonstrated above. It would be very interesting to use this $D$ to produce a systematic and objective comparison of the performance of all current major GAN implementations, and indeed to use this as a metric for guiding future GAN design. We also view the test (5) as potentially useful for determining whether our algorithms are overfitting. This would be particularly so if applied via a cross-validation procedure: if we consistently observe that (5) holds when training a GAN according to many different $X$ and $Y$ partitions of our total $\\pi$ samples, then it seems reasonable to infer that $\\alpha ( X )$ has indeed learnt something useful about $\\pi$ . ",
862
+ "bbox": [
863
+ 174,
864
+ 818,
865
+ 825,
866
+ 888
867
+ ],
868
+ "page_idx": 5
869
+ },
870
+ {
871
+ "type": "image",
872
+ "img_path": "images/570e844b51dbee20d95f6a30d2c3878bb1d1165315288d1f52be0133d3933878.jpg",
873
+ "image_caption": [
874
+ "Figure 4: Output of Algorithm 1 with $d _ { \\mathcal { X } } = L ^ { 2 } \\circ \\eta$ for I-WGAN trained on MNIST (left) and CIFAR-10 (right) "
875
+ ],
876
+ "image_footnote": [],
877
+ "bbox": [
878
+ 178,
879
+ 106,
880
+ 808,
881
+ 244
882
+ ],
883
+ "page_idx": 6
884
+ },
885
+ {
886
+ "type": "image",
887
+ "img_path": "images/852317811ce1e44b66dd32c17d799d4f81b0b3e03c4c07617a867f42293c9ab6.jpg",
888
+ "image_caption": [
889
+ "Figure 5: Output of Algorithm 1 with $d _ { \\mathcal { X } } = L ^ { 2 } \\circ \\eta$ for DCGAN trained on CIFAR-10 "
890
+ ],
891
+ "image_footnote": [],
892
+ "bbox": [
893
+ 179,
894
+ 306,
895
+ 813,
896
+ 496
897
+ ],
898
+ "page_idx": 6
899
+ },
900
+ {
901
+ "type": "text",
902
+ "text": "",
903
+ "bbox": [
904
+ 173,
905
+ 551,
906
+ 825,
907
+ 623
908
+ ],
909
+ "page_idx": 6
910
+ },
911
+ {
912
+ "type": "text",
913
+ "text": "We also believe that the empirical inadequacy of $W _ { L ^ { 2 } }$ that we observed suggests a path towards a better WGAN architecture. At present, WGAN implementations implicitly use $W _ { L ^ { 2 } }$ for their choice of $D _ { \\Gamma }$ . We suspect that altering this to our suggested $W _ { L ^ { 2 } \\circ \\eta }$ may yield better quality samples. We briefly give here one possible way to do so that is largely compatible with existing WGAN setups. In particular, following Arjovsky et al. (2017), we take ",
914
+ "bbox": [
915
+ 173,
916
+ 628,
917
+ 825,
918
+ 699
919
+ ],
920
+ "page_idx": 6
921
+ },
922
+ {
923
+ "type": "equation",
924
+ "img_path": "images/648ca1bda995ec0da1b7e1edb3e784a917d564764576aa4e14043f1c4f1d29f0.jpg",
925
+ "text": "$$\nD _ { \\Gamma } ( P , Q ) = \\underset { f \\in \\mathcal { F } } { \\operatorname* { m a x } } \\mathbb { E } _ { x \\sim P } \\left[ f ( x ) \\right] - \\mathbb { E } _ { x \\sim Q } \\left[ f ( x ) \\right]\n$$",
926
+ "text_format": "latex",
927
+ "bbox": [
928
+ 343,
929
+ 704,
930
+ 653,
931
+ 729
932
+ ],
933
+ "page_idx": 6
934
+ },
935
+ {
936
+ "type": "text",
937
+ "text": "for a class $\\mathcal { F }$ of functions $f : \\mathcal { X } \\mathbb { R }$ that are all $\\left( L ^ { 2 } \\circ \\eta , d _ { \\mathbb { R } } \\right)$ -Lipschitz for some fixed Lipschitz constant $K$ . Here $d _ { \\mathbb { R } }$ denotes the usual distance on $\\mathbb { R }$ . To optimise over such an $\\mathcal { F }$ in practice, we can require our discriminator $f : \\mathcal { X } \\to \\mathbb { R }$ to have the form ${ \\bar { f } } ( x ) : = h ( \\eta ( x ) )$ , where $h : \\mathcal { V } \\to \\mathbb { R }$ is $( d _ { \\mathcal { Y } } , d _ { \\mathbb { R } } )$ -Lipschitz, which entails that $f$ is Lipschitz provided $\\eta$ is (which is almost always the case in practice). In other words, we compute ",
938
+ "bbox": [
939
+ 173,
940
+ 734,
941
+ 825,
942
+ 805
943
+ ],
944
+ "page_idx": 6
945
+ },
946
+ {
947
+ "type": "equation",
948
+ "img_path": "images/e1465655a529e7cf7d05755c5e7b30696835d8cec970be3979d83b287dac9eaa.jpg",
949
+ "text": "$$\nD _ { \\Gamma } ( P , Q ) = \\operatorname* { m a x } _ { h \\in \\mathcal { F } ^ { \\prime } } \\mathbb { E } _ { x \\sim P } \\left[ h ( \\eta ( x ) ) \\right] - \\mathbb { E } _ { x \\sim Q } \\left[ h ( \\eta ( x ) ) \\right] ,\n$$",
950
+ "text_format": "latex",
951
+ "bbox": [
952
+ 318,
953
+ 810,
954
+ 678,
955
+ 834
956
+ ],
957
+ "page_idx": 6
958
+ },
959
+ {
960
+ "type": "text",
961
+ "text": "where ${ \\mathcal { F } } ^ { \\prime }$ is a class of $( d _ { \\mathcal { Y } } , d _ { \\mathbb { R } } )$ -Lipschitz functions. Optimising over this objective may now proceed as usual via weight-clipping like (Arjovsky et al., 2017), or via a gradient penalty like (Gulrajani et al., 2017). Note that this suggestion may be understood as training a standard WGAN with the initial layers of the discriminator fixed to the embedding $\\eta$ ; our analysis here shows that this is equivalent to optimising with respect to $W _ { L ^ { 2 } \\circ \\eta }$ instead of $W _ { L ^ { 2 } }$ . We have begun some experimentation in this area but leave a more detailed empirical inquiry to future work. ",
962
+ "bbox": [
963
+ 173,
964
+ 839,
965
+ 825,
966
+ 924
967
+ ],
968
+ "page_idx": 6
969
+ },
970
+ {
971
+ "type": "text",
972
+ "text": "It is also clearly important to establish better theoretical guarantees for our method. At present, we have no guarantee that the number of samples in $A$ and $Y$ are enough to ensure that ",
973
+ "bbox": [
974
+ 171,
975
+ 103,
976
+ 823,
977
+ 132
978
+ ],
979
+ "page_idx": 7
980
+ },
981
+ {
982
+ "type": "equation",
983
+ "img_path": "images/ada0393c46af90c360ac7efbf614a765263589887854562610a2da8297df75a3.jpg",
984
+ "text": "$$\nD ( \\hat { A } , \\hat { Y } ) \\approx D ( \\alpha ( X ) , \\hat { Y } )\n$$",
985
+ "text_format": "latex",
986
+ "bbox": [
987
+ 413,
988
+ 140,
989
+ 584,
990
+ 160
991
+ ],
992
+ "page_idx": 7
993
+ },
994
+ {
995
+ "type": "text",
996
+ "text": "(perhaps with some fixed bias that is fairly independent of $\\alpha$ , so that it is valid to use the value of $D ( \\hat { A } , \\hat { Y } )$ to compare different choices of $\\alpha$ ), or that (5) entails (2) with high probability. We do however note that some recent theoretical work on the convergence rate of empirical Wasserstein estimations (Weed & Bach, 2017) does suggest that it is plausible to hope for fast convergence of $D ( \\hat { A } , \\hat { Y } )$ to $D ( \\alpha ( X ) , { \\hat { Y } } )$ . We also believe that the convincing empirical behaviour of $W _ { L ^ { 2 } \\circ \\eta }$ does suggest that it is possible to say something more substantial about our approach, which we leave to future work. ",
997
+ "bbox": [
998
+ 173,
999
+ 167,
1000
+ 826,
1001
+ 271
1002
+ ],
1003
+ "page_idx": 7
1004
+ },
1005
+ {
1006
+ "type": "text",
1007
+ "text": "6 RELATED WORK ",
1008
+ "text_level": 1,
1009
+ "bbox": [
1010
+ 174,
1011
+ 292,
1012
+ 344,
1013
+ 309
1014
+ ],
1015
+ "page_idx": 7
1016
+ },
1017
+ {
1018
+ "type": "text",
1019
+ "text": "The maximum mean discrepancy (MMD) is another well-known notion of distance on probability distributions, which has been used for testing whether two distributions are the same or not (Gretton et al., 2012) and also for learning generative models in the style of GAN (Li et al., 2015; Dziugaite et al., 2015; Sutherland et al., 2016; Li et al., 2017). It is parameterised by a characteristic kernel $k$ , and defines the distance between probability distributions by means of the distance of $k$ ’s reproducing kernel Hilbert space (RKHS). The MMD induces the same weak topology on distributions as the one of the Wasserstein distance. Under a mild condition, the MMD between distributions $P$ and $Q$ under a kernel $k$ can be understood as the outcome of the following two-step calculation. First, we pushforward $P$ and $Q$ from their original space $\\mathcal { X }$ to a Hilbert space $\\mathcal { H }$ (isomorphic to $k$ ’s RKHS) using a feature function $\\phi : \\mathcal { X } \\to \\mathcal { H }$ induced by the kernel $k$ . Typically, $\\mathcal { H }$ is an infinite-dimensional space, such as the set $\\ell _ { 2 }$ of square-summable sequences in ${ \\mathcal { R } } ^ { \\infty }$ as in Mercer’s theorem. Let $P ^ { \\prime }$ and $Q ^ { \\prime }$ be the resulting distributions on the feature space. Second, we compute the supremum of $\\mathbb { E } _ { P ^ { \\prime } ( X ) } [ f ( X ) ] - \\mathbb { E } _ { Q ^ { \\prime } ( X ) } [ f ( X ) ]$ over all linear 1-Lipschitz functions $f : \\mathcal { H } \\to \\mathbb { R }$ . The result of this calculation is the MMD between $P$ and $Q$ . ",
1020
+ "bbox": [
1021
+ 173,
1022
+ 325,
1023
+ 825,
1024
+ 520
1025
+ ],
1026
+ "page_idx": 7
1027
+ },
1028
+ {
1029
+ "type": "text",
1030
+ "text": "This two-step calculation shows the key difference between MMD and our use of Wasserstein distance and neural embedding $\\eta$ . While the co-domain of the feature function $\\phi$ is an infinitedimensional space (e.g. $\\ell _ { 2 }$ ) in most cases, its counterpart $\\eta$ in our setting uses a finite-dimensional space as co-domain. This means that the MMD possibly uses a richer feature space than our approach. On the other hand, the MMD takes the supremum over only linear functions $f$ among all 1-Lipschitz functions, whereas the Wasserstein distance considers all these 1-Lipschitz functions. These different balancing acts between the expressiveness of features and that of functions taken in the supremum affect the learning and testing of various GAN approaches as observed experimentally in the literature. One interesting future direction is to carry out systematic study on the theoretical and practical implications of these differences. ",
1031
+ "bbox": [
1032
+ 173,
1033
+ 526,
1034
+ 825,
1035
+ 666
1036
+ ],
1037
+ "page_idx": 7
1038
+ },
1039
+ {
1040
+ "type": "text",
1041
+ "text": "REFERENCES ",
1042
+ "text_level": 1,
1043
+ "bbox": [
1044
+ 176,
1045
+ 690,
1046
+ 285,
1047
+ 704
1048
+ ],
1049
+ "page_idx": 7
1050
+ },
1051
+ {
1052
+ "type": "text",
1053
+ "text": "Martin Arjovsky, Soumith Chintala, and Leon Bottou. Wasserstein gan. Β΄ arXiv preprint arXiv:1701.07875, 2017. \nSanjeev Arora and Yi Zhang. Do gans actually learn the distribution? an empirical study. arXiv preprint arXiv:1706.08224, 2017. \nSanjeev Arora, Rong Ge, Yingyu Liang, Tengyu Ma, and Yi Zhang. Generalization and Equilibrium in Generative Adversarial Nets (GANs). arXiv preprint arXiv:1703.00573, 2017. \nAyanendranath Basu, Hiroyuki Shioya, and Chanseok Park. Statistical inference: the minimum distance approach. CRC Press, 2011. \nJia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In Computer Vision and Pattern Recognition, 2009. CVPR 2009. IEEE Conference on, pp. 248–255. IEEE, 2009. ",
1054
+ "bbox": [
1055
+ 169,
1056
+ 714,
1057
+ 826,
1058
+ 924
1059
+ ],
1060
+ "page_idx": 7
1061
+ },
1062
+ {
1063
+ "type": "text",
1064
+ "text": "Gintare Karolina Dziugaite, Daniel M. Roy, and Zoubin Ghahramani. Training generative neural networks via maximum mean discrepancy optimization. In Proceedings of the Thirty-First Conference on Uncertainty in Artificial Intelligence, UAI 2015, July 12-16, 2015, Amsterdam, The Netherlands, pp. 258–267, 2015. ",
1065
+ "bbox": [
1066
+ 173,
1067
+ 103,
1068
+ 825,
1069
+ 160
1070
+ ],
1071
+ "page_idx": 8
1072
+ },
1073
+ {
1074
+ "type": "text",
1075
+ "text": "Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014. ",
1076
+ "bbox": [
1077
+ 173,
1078
+ 167,
1079
+ 821,
1080
+ 212
1081
+ ],
1082
+ "page_idx": 8
1083
+ },
1084
+ {
1085
+ "type": "text",
1086
+ "text": "Arthur Gretton, Karsten M. Borgwardt, Malte J. Rasch, Bernhard Scholkopf, and Alexander J.Β¨ Smola. A kernel two-sample test. Journal of Machine Learning Research, 13:723–773, 2012. ",
1087
+ "bbox": [
1088
+ 173,
1089
+ 219,
1090
+ 820,
1091
+ 250
1092
+ ],
1093
+ "page_idx": 8
1094
+ },
1095
+ {
1096
+ "type": "text",
1097
+ "text": "Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron Courville. Improved training of wasserstein gans. arXiv preprint arXiv:1704.00028, 2017. ",
1098
+ "bbox": [
1099
+ 174,
1100
+ 257,
1101
+ 820,
1102
+ 287
1103
+ ],
1104
+ "page_idx": 8
1105
+ },
1106
+ {
1107
+ "type": "text",
1108
+ "text": "Gao Huang, Zhuang Liu, Kilian Q Weinberger, and Laurens van der Maaten. Densely connected convolutional networks. arXiv preprint arXiv:1608.06993, 2016. ",
1109
+ "bbox": [
1110
+ 174,
1111
+ 295,
1112
+ 821,
1113
+ 325
1114
+ ],
1115
+ "page_idx": 8
1116
+ },
1117
+ {
1118
+ "type": "text",
1119
+ "text": "Chun-Liang Li, Wei-Cheng Chang, Yu Cheng, Yiming Yang, and Barnabas P Β΄ oczos. MMD GAN: Β΄ towards deeper understanding of moment matching network. arXiv preprint arXiv:1705.08584, 2017. ",
1120
+ "bbox": [
1121
+ 173,
1122
+ 333,
1123
+ 826,
1124
+ 376
1125
+ ],
1126
+ "page_idx": 8
1127
+ },
1128
+ {
1129
+ "type": "text",
1130
+ "text": "Yujia Li, Kevin Swersky, and Richard S. Zemel. Generative moment matching networks. In Proceedings of the 32nd International Conference on Machine Learning, ICML 2015, Lille, France, 6-11 July 2015, pp. 1718–1727, 2015. ",
1131
+ "bbox": [
1132
+ 174,
1133
+ 385,
1134
+ 825,
1135
+ 428
1136
+ ],
1137
+ "page_idx": 8
1138
+ },
1139
+ {
1140
+ "type": "text",
1141
+ "text": "Sebastian Nowozin, Botond Cseke, and Ryota Tomioka. f-gan: Training generative neural samplers using variational divergence minimization. In Advances in Neural Information Processing Systems, pp. 271–279, 2016. ",
1142
+ "bbox": [
1143
+ 174,
1144
+ 436,
1145
+ 825,
1146
+ 479
1147
+ ],
1148
+ "page_idx": 8
1149
+ },
1150
+ {
1151
+ "type": "text",
1152
+ "text": "Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434, 2015. ",
1153
+ "bbox": [
1154
+ 173,
1155
+ 488,
1156
+ 823,
1157
+ 517
1158
+ ],
1159
+ "page_idx": 8
1160
+ },
1161
+ {
1162
+ "type": "text",
1163
+ "text": "Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training gans. In Advances in Neural Information Processing Systems, pp. 2234–2242, 2016. ",
1164
+ "bbox": [
1165
+ 174,
1166
+ 525,
1167
+ 823,
1168
+ 569
1169
+ ],
1170
+ "page_idx": 8
1171
+ },
1172
+ {
1173
+ "type": "text",
1174
+ "text": "Dougal J. Sutherland, Hsiao-Yu Fish Tung, Heiko Strathmann, Soumyajit De, Aaditya Ramdas, Alexander J. Smola, and Arthur Gretton. Generative models and model criticism via optimized maximum mean discrepancy. arXiv preprint arXiv:1611.04488, 2016. ",
1175
+ "bbox": [
1176
+ 176,
1177
+ 577,
1178
+ 823,
1179
+ 621
1180
+ ],
1181
+ "page_idx": 8
1182
+ },
1183
+ {
1184
+ "type": "text",
1185
+ "text": "Cedric Villani. Β΄ Topics in optimal transportation. Number 58. American Mathematical Soc., 2003. ",
1186
+ "bbox": [
1187
+ 173,
1188
+ 628,
1189
+ 816,
1190
+ 645
1191
+ ],
1192
+ "page_idx": 8
1193
+ },
1194
+ {
1195
+ "type": "text",
1196
+ "text": "Cedric Villani. Β΄ Optimal transport: old and new, volume 338. Springer Science & Business Media, 2008. ",
1197
+ "bbox": [
1198
+ 173,
1199
+ 652,
1200
+ 823,
1201
+ 683
1202
+ ],
1203
+ "page_idx": 8
1204
+ },
1205
+ {
1206
+ "type": "text",
1207
+ "text": "Jonathan Weed and Francis Bach. Sharp asymptotic and finite-sample rates of convergence of empirical measures in wasserstein distance. arXiv preprint arXiv:1707.00087, 2017. ",
1208
+ "bbox": [
1209
+ 171,
1210
+ 690,
1211
+ 823,
1212
+ 720
1213
+ ],
1214
+ "page_idx": 8
1215
+ },
1216
+ {
1217
+ "type": "text",
1218
+ "text": "Jacob Wolfowitz. The minimum distance method. The Annals of Mathematical Statistics, pp. 75–88, 1957. ",
1219
+ "bbox": [
1220
+ 173,
1221
+ 728,
1222
+ 823,
1223
+ 757
1224
+ ],
1225
+ "page_idx": 8
1226
+ },
1227
+ {
1228
+ "type": "text",
1229
+ "text": "A EXAMPLE I-WGAN SAMPLES ",
1230
+ "bbox": [
1231
+ 176,
1232
+ 102,
1233
+ 460,
1234
+ 118
1235
+ ],
1236
+ "page_idx": 9
1237
+ },
1238
+ {
1239
+ "type": "image",
1240
+ "img_path": "images/299b991f8908ee02ee348dccccbb828ad8fbf9b2fe032078582a7571aa052396.jpg",
1241
+ "image_caption": [
1242
+ "Figure 6: Samples from I-WGAN trained on MNIST "
1243
+ ],
1244
+ "image_footnote": [],
1245
+ "bbox": [
1246
+ 207,
1247
+ 246,
1248
+ 790,
1249
+ 895
1250
+ ],
1251
+ "page_idx": 9
1252
+ },
1253
+ {
1254
+ "type": "image",
1255
+ "img_path": "images/065b6587704900cb66c309c2e9ca20f09a0a7d9d4494f91a33ebe8b5024c26b7.jpg",
1256
+ "image_caption": [
1257
+ "Figure 7: Samples from I-WGAN trained on CIFAR-10 "
1258
+ ],
1259
+ "image_footnote": [],
1260
+ "bbox": [
1261
+ 192,
1262
+ 93,
1263
+ 805,
1264
+ 816
1265
+ ],
1266
+ "page_idx": 10
1267
+ },
1268
+ {
1269
+ "type": "text",
1270
+ "text": "B EXAMPLE DCGAN SAMPLES ",
1271
+ "bbox": [
1272
+ 176,
1273
+ 102,
1274
+ 452,
1275
+ 118
1276
+ ],
1277
+ "page_idx": 11
1278
+ },
1279
+ {
1280
+ "type": "image",
1281
+ "img_path": "images/b16a225d78db6b6de2a7cb0b97ef2efaa0d11a8461afc63ce1f1e2360a25339b.jpg",
1282
+ "image_caption": [
1283
+ "Figure 8: Samples from DCGAN trained on CIFAR-10 test set "
1284
+ ],
1285
+ "image_footnote": [],
1286
+ "bbox": [
1287
+ 196,
1288
+ 167,
1289
+ 802,
1290
+ 893
1291
+ ],
1292
+ "page_idx": 11
1293
+ },
1294
+ {
1295
+ "type": "image",
1296
+ "img_path": "images/914e843c27d498e9477ae0e3631b8a88f4623f1ce1a32b22549f33ca9bb534c5.jpg",
1297
+ "image_caption": [
1298
+ "Figure 9: Effect of different $\\sigma$ on $\\beta _ { \\sigma } ( X )$ , for $X$ the CIFAR-10 training set "
1299
+ ],
1300
+ "image_footnote": [],
1301
+ "bbox": [
1302
+ 235,
1303
+ 138,
1304
+ 763,
1305
+ 849
1306
+ ],
1307
+ "page_idx": 12
1308
+ }
1309
+ ]
parse/train/ByuI-mW0W/ByuI-mW0W_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ByuI-mW0W/ByuI-mW0W_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HJx0U64FwS/HJx0U64FwS.md ADDED
@@ -0,0 +1,652 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # A MECHANISM OF IMPLICIT REGULARIZATION IN DEEP LEARNING
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Despite a lot of theoretical efforts, very little is known about mechanisms of implicit regularization by which the low complexity contributes to generalization in deep learning. In particular, causality between the generalization performance, implicit regularization and nonlinearity of activation functions is one of the basic mysteries of deep neural networks (DNNs). In this work, we introduce a novel technique for DNNs called β€œrandom walk analysis” and reveal a mechanism of the implicit regularization caused by nonlinearity of ReLU activation. Surprisingly, our theoretical results suggest that the learned DNNs interpolate almost linearly between data points, which leads to the low complexity solutions in the over-parameterized regime. As a result, we prove that stochastic gradient descent can learn a class of continuously differentiable functions with generalization bounds of the order of $O ( n ^ { - 2 } )$ $\scriptstyle { n }$ : the number of samples). Furthermore, our analysis is independent of the kernel methods, including neural tangent kernels.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Deep Neural Networks (DNNs) have demonstrated dominating performance in numerous machine learning tasks, and it shows great generalization performance in the over-parameterized regime. Theoretically, mechanisms of implicit regularization, which is considered as an important factor of such generalization performance in over-parameterized DNNs, still remain unknown (Zhang et al., 2016; Neyshabur, 2017). In the over-parameterized regime, recent studies report that generalization bounds for DNNs can be obtained by replacing the neural network with its linear approximation model with respect to weight parameters at initialization. Most of these studies rely on the connection between deep learning and neural tangent kernels (NTKs) (Daniely et al., 2016; Jacot et al., 2018; Arora et al., 2019b), which characterizes the dynamics of network outputs throughout gradient descent training in the infinite width limit. However, a source of implicit regularization in over-parameterized DNNs has not been identified. Recent empirical and theoretical results indicate that generalization performance and implicit regularization of over-parameterized DNNs cannot be captured by NTK analysis (Wei et al., 2018; Allen-Zhu & Li, 2019; Woodworth et al., 2019; Geiger et al., 2019). Understanding how implicit regularization properly controls the superfluous expressive power of over-parameterized DNNs gives us new insights into the theoretical analysis in deep learning. This leads to the first question:
12
+
13
+ # Question 1. What kind of low complexity is caused by implicit regularization in deep learning?
14
+
15
+ Linear networks without activation functions are important subject, and there are a number of theoretical works on the implicit regularization in over-parameterized neural networks mainly focusing on linear models (Ji & Telgarsky, 2018; Gidel et al., 2019; Arora et al., 2019a). In contrast, whole properties of over-parameterized DNNs that may result from nonlinearity of activation functions cannot be captured by the approximated linear models, specifically, the kernel regression predictor using the NTK. However, some mechanisms of the implicit regularization can depend on nonlinearity. This leads to the next question:
16
+
17
+ # Question 2. Can we identify a mechanism of implicit regularization that depends on nonlinearity of activation functions?
18
+
19
+ Now for optimization algorithms, the training dynamics of full batch gradient descent (GD) is better understood although GD is too expensive for most applications and one often uses stochastic gradient decent (SGD) instead. In most cases, the authors used GD to derive their results by the NTK analysis. Recent work showed that without any structural assumptions about the data distribution, two-layer or three-layer over-parameterized networks trained by SGD can learn $C ^ { \infty }$ -class functions (Allen-Zhu et al., 2018a; Arora et al., 2019c). However, it is not clear the relation between generalization and implicit regularization for DNNs optimized by SGD. Towards this end, the following question is also unsolved:
20
+
21
+ ![](images/9f9cbbdd08d6e1887780e2fcf92f642c78f14744f8f0f7ba7fe82cfad0b64f15.jpg)
22
+ Figure 1: Random walks having a step size distributed according to $\mathcal { N } ( 0 , 2 / m )$ $\mathbf { \zeta } _ { m } = 1 0 ^ { 3 }$ ) after $\alpha$ steps. The smaller the number of steps $\alpha$ is, the more straight. For visibility, we transformed the random walk sequence $\{ \mathrm { y } _ { i } \} _ { i = 0 } ^ { \alpha }$ into $\{ \bar { z _ { i } } \} _ { i = 0 } ^ { \alpha }$ defined by $\mathbf { z } _ { i } : = \bar { ( } \mathbf { y } _ { i } - \mathbf { y } _ { 0 } ) - ( i / \alpha ) ( \mathbf { y } _ { \alpha } - \mathbf { y } _ { 0 } )$ .
23
+
24
+ # Question 3. Is it possible to obtain provable generalization bounds based on the implicit regularization for DNNs optimized by SGD?
25
+
26
+ To answer these questions, we introduce a novel analysis for DNNs and characterize a mechanism of implicit regularization that caused by nonlinearity of ReLU activation. Our results indicate that the DNNs (trained by SGD) interpolate almost linearly between data points, which leads to the low complexity solutions in the over-parameterized regime. Accordingly, we prove that SGD with random initialization can learn a class of continuously differentiable functions with generalization error bounds of the order of $O ( n ^ { - 2 } )$ ( $\scriptstyle { n }$ : the number of samples), which is independent of the NTK analysis.
27
+
28
+ In order to introduce our analysis for implicit regularization, let us focus on the DNN output on a one-dimensional linear path between training points. We define it as $\pmb { x } ( s ) : = ( 1 - s ) \pmb { x } ^ { ( p ) } + s \pmb { x } ^ { ( q ) }$ $( s \in [ 0 , 1 ] )$ , where $\pmb { x } ^ { ( p ) }$ and $\pmb { x } ^ { ( q ) }$ are training points. The corresponding function of the DNN with ReLU (ReLU DNN) is continuous piecewise linear on the linear path $\pmb { x } ( s )$ . In the hidden layer, the corresponding function $g ^ { l } ( \pmb { x } )$ of each unit in the $l$ -th layer is also continuous piecewise linear on the linear path $\pmb { x } ( s )$ , that is, a composite function $( g ^ { l } \circ \pmb { x } ) ( \bar { s } )$ is continuous piecewise linear. Since DNN nonlinearity is linked to breakpoints, which is caused by ReLU activation, the set of the breakpoints plays a key role in the network behavior. These kind of breakpoints are also known as kinks or knots (Steinwart, 2019). Since $( g ^ { l } \circ \pmb { x } ) ( s )$ is continuous piecewise linear, the gradient of $( g ^ { l } \circ \pmb { x } ) ( s )$ has gaps at the breakpoints, which we call gradient gaps. We focus on gradient gaps with respect to the parameter $s$ .1 Our key finding is that the gradient gaps are a constant multiple of independent Gaussian random variables according to $\mathcal { N } ( 0 , \bar { 2 } / m )$ , where $m$ is the number of units in the hidden layer. Since the gradient of the unit $( g ^ { l } \circ \pmb { x } ) ( s )$ is the sum of the gradient gaps, it is a β€œGaussian random walk”2 (see Step 2 in the proof of Lemma 3). The relation between the step size variance and the number of steps determines the Gaussian random walk behavior. In the corresponding function of the DNN, the step size variance is the variance of weights, and the number of steps is the number of breakpoints. In a regime where ( the number of steps $\times$ the step size variance) $\le \ { \cal O } ( 1 )$ , the Gaussian random walk strolls little from the origin with high probability (see Figure 1). Our results show that the ReLU DNN is in the same regime and β€œsimplicity” of the gradient depends crucially on the number of breakpoints. Hanin & Rolnick (2019) proves that the average number of breakpoints is linear in the number of hidden units at initialization, and we also give a proof of an upper bound on the number of breakpoints even after training (see $\ S 3 . 1 \rrangle$ .
29
+
30
+ In this work, we prove a priori generalization estimates, which is independent of the posterior data distribution, by analyzing the behavior of DNNs on the linear path $\pmb { x } ( s )$ . In other words, we show that in Theorem 2, the difference between the network output function and its linear interpolation is evaluated only from the amount of the weight change. We note that in Theorem 2, we dose not use the properties of the trained neural networks. Our key analysis is that the gradient of unit $( g ^ { l } \circ \pmb { x } ) ( s )$ is a β€œGaussian random walk” and approximately equal to a straight line on the linear path $\pmb { x } ( s )$ , which we call random walk analysis. Our technique is based on a priori estimates that variation of the gradients between data points is extremely small and depends essentially on the value of the number of breakpoints times the variance of weights.
31
+
32
+ Difference from NTK. Interestingly, our analysis idea is different from other previous work based on NTK. Our findings are some novel aspects as follows:
33
+
34
+ β€’ The NTK is defined using the gradient of the DNN output with respect to weight parameter space. In contrast, the linear approximation (Lemma 3 in this paper) is defined using the gradient of the DNN output with respect to input parameter space. In other words, the variables to be differentiated are different. The random walk analysis indicates that over-parameterized ReLU DNNs interpolate almost linearly between the data points. For ReLU activation, since the NTK kernel mapping is not Lipschitz but $1 / 2$ -Holder, it is difficult to obtain such a result in the NTK analysis Β¨ without a tradeoff between smoothness and approximation (Bietti & Mairal, 2019).
35
+
36
+ Our Contributions. In this work, we consider an $L$ -layer over-parameterized ReLU neural network with $l ^ { 2 }$ regression task using SGD from random initialization. We show the constitutive relation between implicit regularization and generalization, which enables us to provide new insights on the role of implicit regularization in deep learning. Our main contributions are as follows:
37
+
38
+ Our random walk analysis provides a priori estimates of low complexity in overparameterized deep neural networks, and directly indicates that the unit output between data points is properly controlled by weight initialization and SGD to keep connecting the data points almost straight, which is one of the underlying mechanisms of implicit regularization in the over-parameterized regime.
39
+ β€’ Our result suggests that implicit regularization is attributed to the nonlinearity of ReLU DNN, which is indicated by the fact that variance of weight and the number of breakpoints determine the Gaussian random walk behavior. We also prove that in one-dimensional input case, SGD with random initialization can learn $C ^ { 1 }$ -class functions. Our generalization estimates are based on the implicit regularization.
40
+
41
+ # 2 PRELIMINARIES AND NOTATION
42
+
43
+ Notation. For $n \in \mathbb N$ , we let $[ n ] = \{ 1 , 2 , \dots , n \}$ . We use ${ \mathcal { N } } ( \mu , \sigma ^ { 2 } )$ to denote the Gaussian distribution of mean $\mu$ and variance $\sigma ^ { 2 }$ . We use $\lVert \pmb { v } \rVert _ { 2 }$ to denote the Euclidean norm of a vector $\pmb { v }$ , use $\| \pmb { v } \| _ { F }$ to denote the Frobenius norm of a vector $\textbf { { v } }$ . When $\mathbf { Z }$ is a sub-Gaussian random variable, we let $\| \mathbf { z } \| _ { \psi _ { 2 } } = \operatorname* { i n f } \{ t > 0 \mid \mathbb { E } [ \exp ( \mathbf { z } ^ { 2 } / t ^ { 2 } ) ] \leq 2 \}$ to denote sub-Gaussian norm (Vershynin, 2018). 2For a vector $\textbf { { v } }$ , we denote by $[ { \pmb v } ] _ { i }$ or $v _ { i }$ the $i$ -th element of $\textbf { { v } }$ . For a matrix $M$ , we denote by $[ M ] _ { i , j }$ or $M _ { i , j }$ the entry in the $i$ -th row and $j$ -th column of $M$ , and we denote by $[ M ] _ { i }$ the $i$ -th row vector of $M$ . We denote by $\mathbf { 1 } _ { \{ E \} }$ the indicator function for the event $E$ . ReLU activation is given by $\phi ( x ) = \operatorname* { m a x } \{ 0 , x \}$ , and for a vector $\mathbf { \pmb { a } } \in \mathbb { R } ^ { n }$ , we define $\boldsymbol { \phi } ( \mathbf { a } ) = \bigl ( \phi ( a _ { 1 } ) , \phi ( a _ { 2 } ) , \dots , \phi ( a _ { n } ) \bigr )$ .
44
+
45
+ Network structure. In this work, an $L$ -layer fully-connected feed-forward ReLU neural network with $m$ units in each hidden layer is given by $f : \mathbb { R } ^ { \dot { d } } \mathbb { R } ^ { c }$ . For input $\pmb { x } \in \mathbb { R } ^ { d }$ , unit output $g ^ { l } ( \pmb { x } )$ of each layer $l \in [ L ]$ and network output $f ( { \pmb x } )$ are given by the following functions:
46
+
47
+ $$
48
+ \begin{array} { r } { g ^ { 0 } ( \pmb { x } ) : = \mathbf { A } \pmb { x } , \qquad g ^ { l } ( \pmb { x } ) : = \mathbf { W } ^ { l } \phi ( g ^ { l - 1 } ( \pmb { x } ) ) \quad ( l \in [ L ] ) , \qquad f ( \pmb { x } ) : = \mathbf { B } \phi ( g ^ { L } ( \pmb { x } ) ) , } \end{array}
49
+ $$
50
+
51
+ where $\mathbf { A } \in \mathbb { R } ^ { m \times d }$ , $\mathbf { W } ^ { l } \in \mathbb { R } ^ { m \times m }$ $( l \in L )$ , and $\mathbf { B } \in \mathbb { R } ^ { c \times m }$ are weight matrices. We assume the following Gaussian initialization: $\mathbf { A } _ { i , j } \sim { \mathcal { N } } ( 0 , 2 / m )$ , $\mathbf { W } _ { i , j } ^ { l } \sim { \mathcal { N } } ( 0 , 2 / m )$ , and $\mathbf { B } _ { i , j } \sim \mathcal { N } ( 0 , 2 / c )$ . For input $_ { \textbf { \em x } }$ and weight matrices $\overrightarrow { \mathbf { W } } : = ( \mathbf { W } ^ { 1 } , \mathbf { W } ^ { 2 } , \ldots , \mathbf { W } ^ { L } )$ , the network output $f ( { \pmb x } )$ is also denoted by $f ( \overrightarrow { \mathbf { W } } , \boldsymbol { x } )$ . In this work, we only update weights in $\overrightarrow { \bf W }$ and leave $\mathbf { A }$ and $\mathbf { B }$ at the random initialization. For input $\textbf { \em x } \in \mathbb { R } ^ { d }$ and $l \in \ [ L ]$ , we denote by $\mathbf { G } ^ { l } ( \pmb { x } )$ a diagonal matrix, which represents the activation pattern of the $l .$ -th layer, which we call an indicator matrix. More precisely, we define the $i$ -th diagonal element as $[ \mathbf { G } ^ { l } ( \pmb { x } ) ] _ { i , i } : = \mathbf { 1 } _ { \{ g _ { i } ^ { l } ( \pmb { x } ) \geq 0 \} }$ . Since the ReLU activation is positive homogeneous, we obtain the following equality: $\partial ^ { \aa } ( { \pmb x } ) = { \bf \tilde { W } } ^ { l } { \bf G } ^ { l - 1 } ( { \pmb x } ) g ^ { l - 1 } ( { \pmb x } )$ .
52
+
53
+ Dataset and loss function. The data are generated from an unknown distribution $\mathcal { D }$ over $( { \pmb x } , { \pmb y } ) \in$ $\mathbb { R } ^ { d } \times \mathbb { R } ^ { c }$ , where $_ { \textbf { \em x } }$ is the input data point and $\textbf { { y } }$ is the label associated with this data point. We assume without loss of generality that for each input $\pmb { x } = ( x _ { 1 } , \dots , x _ { d } )$ , using additional coordinates $( x _ { d + 1 } , x _ { d + 2 } )$ , the replacement input √ $\pmb { x } ^ { \prime \prime } : = ( x _ { 1 } , \ldots , x _ { d } , x _ { d + 1 } , x _ { d + 2 } )$ is normalized so that $\| x ^ { \prime \prime } \| _ { 2 } =$ 1 and its last coordinate $x _ { d + 2 } = 1 / \sqrt { 2 } .$ . 3 we also use $_ { \textbf { \em x } }$ to denote the replacement input $\pmb { x } ^ { \prime \prime } \in \mathbb { R } ^ { d + 2 }$ . The training data $\mathbb { Z } : = \{ ( \pmb { x } ^ { ( 1 ) } , \pmb { y } ^ { ( 1 ) } ) , \ldots , ( \pmb { x } ^ { ( n ) } , \pmb { y } ^ { ( n ) } ) \}$ is given as $n$ i.i.d. samples from $\mathcal { D }$ . We define the minimum distance of the training data: $\delta : = \operatorname* { m i n } \{ \| { \pmb x } ^ { ( i ) } - { \pmb x } ^ { ( j ) } \| _ { 2 } : \forall i , j \in [ n ] , i \neq j \} > 0$ . For the $l ^ { 2 }$ regression loss $\begin{array} { r } { \ell ( \hat { \pmb y } , \pmb y ) : = \frac { 1 } { 2 } \| \hat { \pmb y } - \pmb y \| _ { 2 } ^ { 2 } } \end{array}$ and a subset of training data $\mathbb { Z } ^ { ( \tau ) } \subset \mathbb { Z }$ , we define our regression objective as follows: $\bar { \mathcal { L } } _ { \mathbb { Z } ^ { ( \tau ) } } ( \overrightarrow { \mathbf { W } } ) : = \mathbb { E } _ { ( \mathbf { x } , \mathbf { y } ) \sim \mathbb { Z } ^ { ( \tau ) } } [ \ell ( f ( \overrightarrow { \mathbf { W } } , \mathbf { x } ) , \mathbf { y } ) ]$ .
54
+
55
+ Stochastic gradient descent with Gaussian initialization. We use mini-batch SGD to train the network with a constant learning rate $\eta ~ > ~ 0$ , a batch size $b$ and iteration number $T$ . Let $\begin{array} { r } { \vec { \mathbf { W } } ^ { ( 0 ) } : = ( \mathbf { W } ^ { 1 , ( 0 ) } , \mathbf { W } ^ { 2 , ( 0 ) } , \dots , \mathbf { W } ^ { L , ( 0 ) } ) , } \end{array}$ , A, $\mathbf { B }$ be weight matrices generated from the above Gaussian initialization. Suppose we start at $\overrightarrow { \mathbf { W } ^ { ( 0 ) } }$ and for each $l \in [ L ]$ and $t = 0 , 1 , \dots , T - 1$ ,
56
+
57
+ $$
58
+ \mathbf { W } ^ { l , ( t + 1 ) } = \mathbf { W } ^ { l , ( t ) } - \eta \cdot \nabla _ { \mathbf { W } ^ { l } } \mathcal { L } _ { \mathbb { Z } ^ { ( t ) } } ( \overrightarrow { \mathbf { W } } ^ { ( t ) } ) ,
59
+ $$
60
+
61
+ where $\mathbb { Z } ^ { ( t ) } \subset \mathbb { Z }$ is a mini-batch of size $b$ . For input $_ { \textbf { \em x } }$ , each layer $l \in [ L ]$ and each step $t \in [ T ]$ , we denote by $g ^ { l , ( t ) } ( \pmb { x } )$ the unit output, $f ^ { ( t ) } ( { \pmb x } )$ the network output, $\mathbf { W } ^ { l , ( t ) }$ the weight matrix, and $G ^ { l , ( t ) } ( { \pmb x } )$ the indicator matrix.
62
+
63
+ In the above setting, recent paper (Allen-Zhu et al., 2018b) shows that SGD can allow an overparameterized multi-layer network to attain arbitrarily low training error as follows:
64
+
65
+ (Co and of , let 0, $ \varepsilon ~ \in ~ ( 0 , 1 ] , ~ \delta ~ \in ~$ $( 0 , { \cal O } ( 1 / L ) ]$ $b \in [ n ]$ $\begin{array} { r } { m \ \geq \ \widetilde \Omega \left( \frac { \mathsf { p o l y } ( n , L , \delta ^ { - 1 } ) d } { b } \right) } \end{array}$ $\begin{array} { r } { \eta \ : = \ \Theta \left( \frac { b \delta d } { \mathsf { p o l y } ( n , L ) m \log ^ { 2 } m } \right) ^ { \cdot } , } \end{array}$ $T =$ $\begin{array} { r } { \Theta \left( \frac { \mathsf { p o l y } ( n , L ) \log ^ { 2 } m } { b \delta ^ { 2 } } \log \left( \frac { n \log m } { \varepsilon } \right) \right) } \end{array}$ $\overrightarrow { \mathbf { W } } ^ { ( 0 ) } , \mathbf { A } , \mathbf { B }$ are at r zation. Then, it satisfies $1 - e ^ { - \Omega ( \log ^ { 2 } m ) }$ $\mathbb { Z } ^ { ( 1 ) } , \ldots \mathbb { Z } ^ { ( T ) }$ $\begin{array} { r } { ( \dot { \overrightarrow { \mathbf { W } } } ) \leq \varepsilon , \| \mathbf { W } ^ { l , ( t ) } - \mathbf { W } ^ { l , ( 0 ) } \| _ { F } \leq O \left( \lambda \frac { \log m } { \sqrt { m } } \right) , \| [ \mathbf { W } ^ { l , ( t ) } ] _ { i } - [ \mathbf { W } ^ { l , ( 0 ) } ] _ { i } \| _ { 2 } \leq O \left( \lambda \frac { \log m } { m } \right) } \end{array}$ (βˆ€t ∈ [T ]), where Ξ» := n3.5√cδ√b .
66
+
67
+ Our results on generalization also crucially depend on this analysis.
68
+
69
+ # 3 RANDOM WALK ANALYSIS
70
+
71
+ In this work, we consider the behavior of the unit output in each layer on a one-dimensional linear path between two data points, which we denote by $\pmb { x } ( s )$ $( s \in [ 0 , 1 ] )$ ). In this section, for notational simplicity, we drop the superscript with respect to $( t )$ , which is the $t$ -th iteration.
72
+
73
+ Definition 3.1 (One-dimensional Linear Path). For each pair of data points $\pmb { x } ^ { ( p ) }$ and $\pmb { x } ^ { ( q ) } \left( p \neq q \right)$ , We define $\pmb { x } ( s ) : = ( 1 - s ) \pmb { x } ^ { ( p ) } + s \pmb { x } ^ { ( q ) } , s \in [$ $s \in [ 0 , 1 ]$ , and denote by $\pmb { v } : = \pmb { x } ^ { ( q ) } - \pmb { x } ^ { ( p ) }$ the direction vector.
74
+
75
+ Note that the unit output $g _ { i } ^ { l } ( { \pmb x } ( s ) )$ and the network output $f _ { i } ( { \pmb x } ( s ) )$ are continuous piecewise linear functions on $s \in [ 0 , 1 ]$ , and the network output can be expressed as follows:
76
+
77
+ $$
78
+ f ( \pmb { x } ( s ) ) = \mathbf { B } \mathbf { G } ^ { L } ( \pmb { x } ( s ) ) \mathbf { W } ^ { L } \mathbf { G } ^ { L - 1 } ( \pmb { x } ( s ) ) \mathbf { W } ^ { L - 1 } \cdot \cdot \mathbf { G } ^ { 1 } ( \pmb { x } ( s ) ) \mathbf { W } ^ { 1 } \mathbf { G } ^ { 0 } ( \pmb { x } ( s ) ) \mathbf { A } \pmb { x } ( s ) .
79
+ $$
80
+
81
+ Note that $g _ { i } ^ { l } ( { \pmb x } ( s ) )$ and $f _ { i } ( { \pmb x } ( s ) )$ have linear approximations at the point $s = 0$ as follows4:
82
+
83
+ $$
84
+ \tilde { g } _ { i } ^ { l } ( s ) : = g _ { i } ^ { l } ( { \pmb x } ( 0 ) ) + s \cdot \left[ \frac { d } { d s } g _ { i } ^ { l } ( { \pmb x } ( s ) ) \right] _ { s = 0 } , \tilde { f } _ { i } ( s ) : = f _ { i } ( { \pmb x } ( 0 ) ) + s \cdot \left[ \frac { d } { d s } f _ { i } ( { \pmb x } ( s ) ) \right] _ { s = 0 } .
85
+ $$
86
+
87
+ We prove that these piecewise linear functions are almost straight, which contributes to the generalization of NN. In other words, the unit output $g _ { i } ^ { l } ( { \pmb x } ( s ) )$ can be approximated by a linear function with high accuracy. Moreover, the small difference between $g _ { i } ^ { l } ( { \pmb x } ( s ) )$ and $\widetilde { g } _ { i } ^ { l } ( s )$ indicates the low complexity of the unit output.
88
+
89
+ Theorem 2 (A Priori Estimates for Implicit Regularization). Under the same setting as Theorem $^ { l }$ , with probability at least $1 - e ^ { - \Omega ( \log ^ { 2 } { \bar { m } } ) }$ , for every $\pmb { x } ^ { ( p ) }$ , $\pmb { x } ^ { ( q ) }$ $p , q \in [ n ]$ , $p \neq q$ ), $t \in [ T ] , l \in [ L ]$ $i \in [ m ]$ and $j \in [ c ]$ , we have
90
+
91
+ $$
92
+ \begin{array} { r l r } & { } & { \underset { 0 \leq s \leq 1 } { \operatorname* { s u p } } \Big \vert g _ { i } ^ { l , ( t ) } ( { \pmb x } ( s ) ) - \tilde { g } _ { i } ^ { l , ( t ) } ( s ) \Big \vert \leq { \cal O } \left( \frac { \log ^ { l } m } { \sqrt { m } } \right) \| { \pmb v } \| _ { 2 } , } \\ & { } & { \underset { 0 \leq s \leq 1 } { \operatorname* { s u p } } \Big \vert f _ { j } ^ { ( t ) } ( { \pmb x } ( s ) ) - \tilde { f } _ { j } ^ { ( t ) } ( s ) \Big \vert \leq { \cal O } \left( \frac { \log ^ { L + 1 } m } { \sqrt { c } } \right) \| { \pmb v } \| _ { 2 } . } \end{array}
93
+ $$
94
+
95
+ # 3.1 INTUITION BEHIND IMPLICIT REGULARIZATION
96
+
97
+ To prove Theorem 2, we introduce our key analysis that the gradient of $g ^ { l , ( t ) } ( \pmb { x } ( s ) )$ is β€œGaussian random walk” and nearly equal to a straight line on the linear path $\pmb { x } ( s )$ , which we call random walk analysis. For simplicity, we explain the outline of the proof for the initial state of the network (i.e. $t = 0$ ). All proofs are given in the Supplementary Material (including $0 \leq t \leq T$ ).
98
+
99
+ To state our key Lemma, we define the following function: $\breve { g } ^ { l } ( s ) : = \mathbf { W } ^ { l } \phi ( \tilde { g } ^ { l - 1 } ( s ) )$ , which is an analogue of the unit output $g ^ { l } ( \pmb { x } ( s ) ) = \mathbf { W } ^ { l } \phi ( g ^ { l - \tilde { 1 } } ( \pmb { x } ( s ) ) )$ . In other words, $\breve { g } ^ { l } ( s )$ is the one in which $g ^ { l - 1 } ( \mathbf { \bar { x } } ( s ) )$ is replaced by $\tilde { g } ^ { l - 1 } ( \boldsymbol { s } )$ . Next, Lemma 3 shows that each $\breve { g } _ { i } ^ { l }$ can be well approximated by a linear function $\tilde { g } _ { i } ^ { l } ( s )$ with high probability.
100
+
101
+ Lemma 3 (Linear Approximation Analogue). With probability at least $1 - e ^ { - \Omega ( \log ^ { 2 } m ) }$ , for every $\pmb { x } ^ { ( p ) } , \pmb { x } ^ { ( q ) } \ ( p , q \in [ n ] , p \neq q )$ , $t \in [ T ]$ and $l \in [ L ]$ , we have
102
+
103
+ $$
104
+ \begin{array} { r l r } { \displaystyle \operatorname* { s u p } _ { 0 \leq s \leq 1 } \left. \check { g } _ { i } ^ { l , ( t ) } ( s ) - \tilde { g } _ { i } ^ { l , ( t ) } ( s ) \right. \leq O \left( \frac { \log ^ { 2 } m } { \sqrt { m } } \right) \| { \pmb v } \| _ { 2 } , } & { ( \forall i \in [ m ] ) , } & \\ { \displaystyle \operatorname* { s u p } _ { 0 \leq s \leq 1 } \left. \check { f } _ { j } ^ { ( t ) } ( s ) - \tilde { f } _ { j } ^ { ( t ) } ( s ) \right. \leq O \left( \frac { \log ^ { 2 } m } { \sqrt { c } } \right) \| { \pmb v } \| _ { 2 } , } & { ( \forall j \in [ c ] ) . } & \end{array}
105
+ $$
106
+
107
+ The purpose of this subsection is to give an intuitive explanation of the proof of Lemma 3, which can be divided into two steps. The first step gives estimates of the number of breakpoints. We show that the number of breakpoints of the piecewise linear function $\breve { g } _ { i } ^ { l } ( s )$ is less than or equal to the number of units in the layer (i.e. $m$ ).
108
+
109
+ The second step gives estimates of gradient gaps of $\breve { g } _ { i } ^ { l } ( s )$ . We show that the gradient gaps are independent Gaussian random variables and the gradient of $\breve { g } ^ { l } ( s )$ is the sum of the gradient gaps, which indicates that the gradient is a β€œGaussian random walk”. Note that in this setting, the number of breakpoints is equal to the total number of steps of the random walk.
110
+
111
+ Step 1. By the definition of $\breve { g } ^ { l } ( s )$ , we may write
112
+
113
+ $$
114
+ \check { g } _ { i } ^ { \ l } ( s ) = \sum _ { j = 1 } ^ { m } [ \mathbf { W } ^ { l } ] _ { i , j } \ \phi ( \tilde { g } _ { j } ^ { \ l - 1 } ( s ) ) \ .
115
+ $$
116
+
117
+ Note that the input to the above $\phi$ , that is $\tilde { g } _ { j } ^ { \ l - 1 } ( s )$ , is a linear function on $s \in [ 0 , 1 ]$ . For each $j \in [ m ]$ , the linear equation $\tilde { g } _ { j } ^ { l - 1 } ( s ) = 0$ has at most one solution $\boldsymbol { s } = \boldsymbol { s } ^ { * }$ ). If the solution $s = s ^ { * }$ satisfies $0 ~ < ~ s ^ { * } ~ < ~ 1$ , then $\breve { g } _ { i } { } ^ { l } ( s )$ has a breakpoint at $s \ = \ s ^ { * }$ . This shows that the number of breakpoints of $\breve { g } _ { i } { } ^ { l } ( s )$ is bounded by the number of the linear equations $\{ \widetilde { g } _ { j } ^ { \ l - 1 } ( s ) = 0 \} _ { j \in [ m ] }$ , which is equal to $m$ . We denote by $0 < s _ { 1 } < s _ { 2 } < \dots < s _ { \alpha } < 1$ breakpoints of $\breve { g } _ { i } { } ^ { l } ( s )$ , where $\alpha$ is the number of breakpoints. For $\beta \in [ \alpha ]$ , we set an open interval of breakpoints $\mathbb { I } _ { \beta } : = \left( s _ { \beta } , s _ { \beta + 1 } \right)$ .
118
+
119
+ Step 2. To give an intuition that the gradient of $\smile \breve { g } _ { i } ^ { l } ( s ) - \tilde { g } _ { i } ^ { \ l } ( s )$ is β€œGaussian random walk”, we fix some notation. For $\beta \in [ \alpha ]$ , we define the gradient $\nabla _ { \beta }$ :
120
+
121
+ $$
122
+ \nabla _ { \beta } : = \frac { d } { d s } \Big ( \check { g } _ { i } ^ { l } ( s ) - \tilde { g } _ { i } ^ { l } ( s ) \Big ) \bigg | _ { s \in \mathbb { I } _ { \beta } } .
123
+ $$
124
+
125
+ Note that $\tilde { g } _ { i } { } ^ { l } ( s )$ is a linear function, and there is no breakpoints for $\breve { g } _ { i } ^ { l } ( s )$ on $\mathbb { I } _ { \beta }$ . Note also that since $\smile \breve { g } _ { i } ^ { l } ( s ) - \tilde { g } _ { i } ^ { \ l } ( s )$ is linear on $\mathbb { I } _ { \beta }$ , the gradient is constant on $\mathbb { I } _ { \beta }$ . For $\beta \in [ \alpha ]$ , we define a gradient gap: $\mathbf { x } _ { \beta } : = \nabla _ { \beta } - \nabla _ { \beta - 1 }$ , and we have the following estimate with probability at least $1 - e ^ { - \Omega ( \log ^ { 2 } m ) }$ :
126
+
127
+ $$
128
+ \mathbf { x } _ { \beta } = S \omega _ { \beta } \mathrm { w h e r e } \omega _ { \beta } \sim \mathcal { N } ( 0 , 2 / m ) , \quad | S | \leq \frac { \log m } { \sqrt { m } } \| \pmb { v } \| _ { 2 } .
129
+ $$
130
+
131
+ Note that $\omega _ { \beta }$ is an element of the weight matrix $\mathbf { W } ^ { l }$ . Thus, $\{ \mathbf { { x } } _ { \beta } \}$ are independent Gaussian random variables, and $\nabla _ { \beta }$ is the sum of $\mathbf { X } _ { \beta }$ , that is
132
+
133
+ $$
134
+ \nabla _ { \beta } = \sum _ { \gamma = 1 } ^ { \beta } \mathbf { x } _ { \gamma } , ~ ( \beta \in [ \alpha ] ) .
135
+ $$
136
+
137
+ This shows that the gradient $\nabla _ { \beta }$ is a β€œGaussian random walk” and depends essentially on the number of breakpoints $\alpha$ and the variance of weights $2 / m$ . Using the randomness of $\mathbf { W } ^ { l }$ and general Hoeffding’s inequality (Vershynin, 2018), we have
138
+
139
+ $$
140
+ \mathbb { P } \bigg [ \Big \vert \sum _ { \gamma = 1 } ^ { \beta } S \omega _ { \gamma } \Big \vert \leq \varepsilon \bigg ] \geq 1 - e ^ { - \Omega \left( \frac { m ^ { 2 } \varepsilon ^ { 2 } } { \alpha \| v \| _ { 2 } ^ { 2 } \log ^ { 2 } m } \right) } .
141
+ $$
142
+
143
+ According to Step 1, the number of breakpoints $\alpha$ is less than or equal to $m$ . Thus, $\nabla _ { \beta }$ is bounded by hav ${ \frac { \log ^ { 2 } m } { \sqrt { m } } } \| \pmb { v } \| _ { 2 }$ $1 - e ^ { - \Omega ( \log ^ { 2 } m ) }$ . Therefore, with the same probabilihus, integrating this inequality from $\begin{array} { r } { \left| \frac { d } { d s } \big ( \check { g } _ { i } ^ { l } ( s ) - \tilde { g } _ { i } ^ { l } ( s ) \big ) \right| \leq \frac { \log m } { \sqrt { m } } \| \pmb { v } \| _ { 2 } , ( \forall s \in [ 0 , 1 ] ) . } \end{array}$ $s = 0$ to $s = 1$ shows the estimates of (7) in Lemma 3. Note that the proof of (8) in Lemma 3 is idential to the above proof, except the fact that each entry of $\mathbf { B }$ follows from $\mathcal { N } ( 0 , 2 / c )$ insted of $\mathcal { N } ( 0 , 2 / m )$ .
144
+
145
+ Note that as illustrated in Figure 1, for sufficiently large $m$ , the gradient $\nabla _ { \beta }$ can be made arbitrarily small, which means that the networks interpolate almost linearly between the data points.
146
+
147
+ # 3.2 PROOF THEOREM 2
148
+
149
+ The purpose of this subsection is to give the proof of Theorem 2. We proceed by induction on the layer $l$ . Note that since $g ^ { 0 } ( { \pmb x } ( s ) ) = { \bf A } { \pmb x } ( s )$ is linear and $\tilde { g } ^ { 0 } ( s ) = g ^ { \dot { 0 } } ( { \pmb x } ( s ) ) , \breve { g } ^ { \dot { 1 } } ( s )$ is identically equal to $g ^ { 1 } ( { \pmb x } ( s ) ) = \mathbf { W } ^ { 1 } \phi ( A { \pmb x } ( s ) )$ . Thus, the case $l = 1$ is true. Assume the theorem holds for any layer $l = k$ , and let us prove it for $l = k + 1$ . Using the triangle inequality, we have
150
+
151
+ $$
152
+ \left| g _ { i } ^ { k + 1 } ( { \pmb x } ( s ) ) - \tilde { g } _ { i } ^ { k + 1 } ( s ) \right| \leq \left| g _ { i } ^ { k + 1 } ( { \pmb x } ( s ) ) - \check { g } _ { i } ^ { k + 1 } ( s ) \right| + \left| \check { g } _ { i } ^ { k + 1 } ( s ) - \tilde { g } _ { i } ^ { k + 1 } ( s ) \right| .
153
+ $$
154
+
155
+ By Proposition 11.3 of (Allen-Zhu et al., 2018b), for any $y , \tilde { y } \in \mathbb { R } ^ { m }$ , there exists a diagonal matrix $\vec { D } \in \bar { \mathbb { R } ^ { m \times m } }$ such that $| D _ { j , j } | \leq 1$ and $\phi ( { \pmb y } ) - \phi ( \tilde { \pmb y } ) = D ( { \pmb y } - \tilde { \pmb y } )$ . Thus, for the first term on the RHS, we may write
156
+
157
+ $$
158
+ \begin{array} { r l } & { \quad \displaystyle \left| g _ { i } ^ { k + 1 } ( \pmb { x } ( s ) ) - \check { g } _ { i } ^ { k + 1 } ( s ) \right| = \left| \left[ \mathbf { W } ^ { k + 1 } \phi \big ( g ^ { k } ( \pmb { x } ( s ) ) \big ) \right] _ { i } - \left[ \mathbf { W } ^ { k + 1 } \phi \big ( \tilde { g } ^ { k } ( s ) \big ) \right] _ { i } \right| } \\ & { = \displaystyle \left| \left[ \mathbf { W } ^ { k + 1 } D \big ( g ^ { k } ( \pmb { x } ( s ) ) - \tilde { g } ^ { k } ( s ) \big ) \right] _ { i } \right| = \displaystyle \left| \sum _ { \rho = 1 } ^ { m } [ \mathbf { W } ^ { k } ] _ { i , \rho } D _ { \rho , \rho } \big ( g _ { \rho } ^ { k } ( \pmb { x } ( s ) ) - \tilde { g } _ { \rho } ^ { k } ( s ) \big ) \right| } \\ & { \leq \displaystyle \left\| g ^ { k } ( \pmb { x } ( s ) ) - \tilde { g } ^ { k } ( s ) \right\| _ { 2 } \frac { \log m } { \sqrt { m } } . } \end{array}
159
+ $$
160
+
161
+ In the last inequality, we use general Hoeffding’s inequality (Vershynin, 2018), and this inequality holds with probability at least $1 - e ^ { - \Omega ( \log ^ { 2 } m ) }$ . We can now apply our induction hypothesis to the above estimate. Thus, applying (7) in Lemma 3 to the second term on the RHS of (14) shows the estimates of (5) in Theorem 2. Next, Using the triangle inequality for $f _ { j } ^ { ( t ) }$ , we have
162
+
163
+ $$
164
+ \left| f _ { j } ^ { ( t ) } ( \pmb { x } ( s ) ) - \tilde { f } _ { j } ^ { ( t ) } ( s ) \right| \leq \left| f _ { j } ^ { ( t ) } ( \pmb { x } ( s ) ) - \check { f } _ { j } ^ { ( t ) } ( s ) \right| + \left| \check { f } _ { j } ^ { ( t ) } ( s ) - \tilde { f } _ { j } ^ { ( t ) } ( s ) \right| .
165
+ $$
166
+
167
+ In a similar way, using the randomness of $\mathbf { B }$ (recall each entry of $\mathbf { B }$ follows from $\mathcal { N } ( 0 , 2 / c ) )$ , with probability at least $1 - e ^ { - \Omega ( \log ^ { 2 } m ) }$ , we have
168
+
169
+ $$
170
+ \Big | f _ { j } ^ { ( t ) } ( x ( s ) ) - \check { f } _ { j } ^ { ( t ) } ( s ) \Big | \le \big \| g ^ { L } ( x ( s ) ) - \tilde { g } ^ { L } ( s ) \big \| _ { 2 } \sqrt { \frac { m } { c } } \log m \le O \left( \frac { \log ^ { 3 } m } { \sqrt { c } } \right) \| v \| _ { 2 } .
171
+ $$
172
+
173
+ In the last inequality, we use (7) in Lemma 3. Thus, applying (8) in Lemma 3 to the second term on the RHS of (18) shows the estimates of (6) in Theorem 2. We complete the proof.
174
+
175
+ # 4 GENERALIZATION
176
+
177
+ In this section, considering the mechanism of implicit regularization revealed by random walk analysis, we provide a priori estimates for the generalization performance of over-parameterized deep neural networks, in an $l ^ { 2 }$ regression task on a one-dimensional input-space. Since the network is over-parameterized, the expressive power of the network is rich enough to considerably overfit the data. Nevertheless, it is known empirically that properly initialized over-parameterized deep neural networks can achieve the good generalization performance while fitting all training data. We estimate the low complexity of over-parameterized deep networks and show that the error between a trained over-parameterized neural network and the target function can be uniformly bounded by an arbitrarily small positive number.
178
+
179
+ Setting. We propose a new type of generalization bounds (Theorem 4), and prove this theorem in models with one dimensional input: $d = 1$ . In the following, we restrict ourselves to a onedimensional regression task on an interval $[ 0 , \nu ] \subset \mathbb { R }$ . The training dataset $\{ \left( \boldsymbol { x } ^ { ( i ) } , \boldsymbol { y } ^ { ( i ) } \right) \} _ { i \in [ n ] }$ is given as $n$ i.i.d. samples from some unknown distribution $\mathcal { D }$ . We assume that the corresponding target function for the regression task $f ^ { * } : [ 0 , \nu ] \ \to \ \mathbb { R } ^ { c }$ is a $C ^ { 1 }$ - class function. This implies that $\pmb { y } ^ { ( i ) } = f ^ { * } ( \pmb { x } ^ { ( i ) } )$ . Without loss of generality, we may assume that the input data $\{ x ^ { ( i ) } \} _ { i \in [ n ] }$ follow a uniform distribution on $[ 0 , \nu ]$ , and after relabeling, we may assume that the data points $\{ x ^ { ( 1 ) } , \ldots , x ^ { ( n ) } \}$ are ordered by index: $0 < x ^ { ( 1 ) } < \cdots < x ^ { ( n ) } < \nu$ . We define $( x ^ { ( 0 ) } , y ^ { ( 0 ) } ) : =$ $( 0 , f ^ { * } ( x ^ { ( 0 ) } ) )$ , $( \bar { x } ^ { ( n + 1 ) } , y ^ { ( n + 1 ) } ) : = ( \nu , f ^ { * } ( \nu ) )$ and $\begin{array} { r } { \mathcal { T } : = \operatorname* { s u p } _ { k \in [ n + 1 ] } \left( x ^ { ( k ) } - x ^ { ( k - 1 ) } \right) } \end{array}$ . We denote by ${ \hat { f } } : [ 0 , \nu ] \to \mathbb { R }$ the linear interpolation of the data points $\{ \left( x ^ { ( i ) } , f ^ { * } ( x ^ { ( i ) } ) \right) \} _ { i \in [ n ] }$ .
180
+
181
+ A priori generalization bounds. Now, we introduce a novel approach for $a$ priori generalization bounds, which is based on random walk analysis in the over-parameterized regime. This can be interpreted as the significant expressive power of over-parameterized neural networks is controlled by implicit regularization.
182
+
183
+ Theorem 4. Suppose $f ^ { * } ( x )$ is a $C ^ { 1 }$ - class function on $[ 0 , \nu ]$ . Under the same setting as Theorem 1, for $\delta \in ( 0 , 1 / 2 ]$ , then with probability at least $1 - ( \delta + e ^ { - \Omega ( \log ^ { 2 } m ) } )$ , we have
184
+
185
+ $$
186
+ \mathbb { E } _ { ( x , y ) \sim \mathcal { D } } \left[ \ell \left( f ^ { ( T ) } ( x ) , y \right) \right] \leq O \left( \frac { \nu ^ { 2 } c } { n ^ { 2 } \delta ^ { 2 } } \right) .
187
+ $$
188
+
189
+ Proof sketch of generalization. The purpose of this paragraph is to give an intuitive explanation of the proof of Theorem 4 for one-dimensional output $c = 1$ . All proofs are given in the Supplementary Material.
190
+
191
+ To estimate $\mathbb { E } _ { ( x , y ) \sim \mathcal { D } } \left[ \ell \left( f ^ { ( T ) } ( x ) , y \right) \right]$ , we evaluate $\left\| f ^ { ( T ) } ( x ) - f ^ { * } ( x ) \right\| _ { 2 }$ , which we may write as
192
+
193
+ $$
194
+ \left\| f ^ { ( T ) } ( x ) - f ^ { * } ( x ) \right\| _ { 2 } \leq \left| f ^ { ( T ) } ( x ) - { \hat { f } } ( x ) \right| + \left| { \hat { f } } ( x ) - f ^ { * } ( x ) \right|
195
+ $$
196
+
197
+ The first term of the RHS of (21) represents an error between the trained network output $f ^ { ( T ) } ( x )$ and the piecewise linear function ${ \hat { f } } ( x )$ . We can use the results of random walk analysis to evaluate this critical term as follows. Theorem 2 provides that the linear approximation error of the network output, which we denote by $ { \varepsilon } _ { f ^ { ( T ) } }$ , is small in each interval $[ x ^ { ( k - 1 ) } , x ^ { ( k ) } ]$ , and hence in each interval $[ x ^ { ( k - 1 ) } , x ^ { ( k ) } ]$ , the difference between $f ^ { ( T ) } ( x )$ and ${ \hat { f } } ( x )$ falls within the error $\mathcal { E } _ { f ^ { ( T ) } }$ . This suggests that the network output between adjacent training points is properly controlled by weight initialization and SGD to keep connecting the points almost straight, which results in low complexity of over-parameterized neural networks. This statement can be extended to the interval $[ 0 , \nu ]$ . Fix $\varepsilon > 0$ , and suppose $m \geq \widetilde { O } \left( \mathcal { T } ^ { 6 } / \varepsilon ^ { 3 } \right)$ . Then with high probability at least $1 - e ^ { - \Omega ( \log ^ { 2 } m ) }$ , we have
198
+
199
+ $$
200
+ \operatorname* { s u p } _ { x \in [ 0 , \nu ] } \left| f ^ { ( T ) } ( x ) - { \hat { f } } ( x ) \right| \leq { \sqrt { \frac { \varepsilon } { 2 } } }
201
+ $$
202
+
203
+ The second term of RHS of (21) is the error of the piecewise linear approximation of $f ^ { * } ( x )$ by ${ \hat { f } } ( x )$ on the interval $[ 0 , \nu ]$ . Note that the error can be reduced by increasing $n$ . Hence, for any fixed $\varepsilon > 0$ , there exists $\delta > 0$ such that if $\begin{array} { r } { n \geq O \left( \frac { \nu } { \sqrt { \varepsilon } \delta } \right) } \end{array}$ , with probability at least $1 - \delta$ , we have $\begin{array} { r } { \operatorname* { s u p } _ { x \in [ 0 , \nu ] } | \hat { f } ( x ) - f ^ { * } ( x ) | \leq \sqrt { \frac { \varepsilon } { 2 } } , } \end{array}$ . Thus, from (21), for $m$ and $n$ sufficiently large, the error between the trained network output and the target function is uniformly bounded by $\varepsilon$ on the interval $[ 0 , \nu ]$ with probability at least $1 - \left( e ^ { - \Omega ( \log ^ { 2 } m ) } + \delta \right)$ . This gives a priori estimates for the generalization performance of over-parameterized neural networks.
204
+
205
+ # 5 RELATED WORK
206
+
207
+ Implicit regularization in neural networks has recently become an active area of research in machine learning. A number of works have focused on the behavior of gradient descent on overparameterized neural networks (Neyshabur et al., 2014; Lin et al., 2016; Zhang et al., 2016; Soudry et al., 2018; Rahaman et al., 2018). In order to get a handle on implicit regularization in deep neural networks, the majority of theoretical attention has been devoted to linear neural networks (Ji & Telgarsky, 2018; Gidel et al., 2019; Arora et al., 2019a).
208
+
209
+ Many works try to explain generalization of over-parameterized neural networks. Recent works have shown that on sufficiently over-parameterized neural networks, the learning dynamics of gradient descent are governed by the NTK (Daniely et al., 2016; Jacot et al., 2018; Du et al., 2018; AllenZhu et al., 2018b; Lee et al., 2019; Arora et al., 2019b). In these settings, the implicit regularization and the generalization error of the resulting network can be analyzed via NTK and the reproducing kernel Hilbert space (RKHS) (Bietti & Mairal, 2019; Nakkiran et al., 2019). To extend it to SGD, Hayou et al. (2019) introduce a stochastic differential equation dependent on the NTK. Closely related work Cao & Gu (2019) showed that the expected 0-1 loss of a wide enough ReLU network trained with SGD and random initialization can be bounded by the training loss of a random feature model induced by the network gradient at initialization.
210
+
211
+ This contrasts with other recent results that show a provable separation between the generalization error obtained by neural networks and kernel methods (Wei et al., 2018; Allen-Zhu et al., 2018a;
212
+
213
+ Allen-Zhu & Li, 2019). Several papers suggest that training deep models with gradient descent can behave differently from kernel methods, and have much richer implicit regularization (Chizat et al., 2019; Woodworth et al., 2019; Yehudai & Shamir, 2019; Geiger et al., 2019).
214
+
215
+ # 6 CONCLUSION
216
+
217
+ In this work, probability estimates for the network output behavior (i.e. random walk analysis) provide a priori generalization estimates for $l ^ { 2 }$ regression problems. We prove that even after training, network gradients between the data points are approximately Gaussian random walks, and the variation of the gradients between the data points is extremely small and depends essentially on the number of breakpoints and the variance of weights. To the best of our knowledge, this paper is the first to show a mechanism of implicit regularization and to prove the generalization bounds by using the implicit regularization for deep (three or more layer) neural networks with ReLU activation. As a result, we also show that over-parameterized deep neural networks can learn $C ^ { 1 }$ - class functions. Importantly, our analysis is independent of the kernel generalization analysis, and the generalization bounds are different from the NTK inductive bias of the RKHS norm.
218
+
219
+ # REFERENCES
220
+
221
+ Zeyuan Allen-Zhu and Yuanzhi Li. What can resnet learn efficiently, going beyond kernels? arXiv preprint arXiv:1905.10337, 2019.
222
+ Zeyuan Allen-Zhu, Yuanzhi Li, and Yingyu Liang. Learning and generalization in overparameterized neural networks, going beyond two layers. arXiv preprint arXiv:1811.04918, 2018a.
223
+ Zeyuan Allen-Zhu, Yuanzhi Li, and Zhao Song. A convergence theory for deep learning via overparameterization. arXiv preprint arXiv:1811.03962, 2018b.
224
+ Sanjeev Arora, Nadav Cohen, Wei Hu, and Yuping Luo. Implicit regularization in deep matrix factorization. arXiv preprint arXiv:1905.13655, 2019a.
225
+ Sanjeev Arora, Simon S Du, Wei Hu, Zhiyuan Li, Ruslan Salakhutdinov, and Ruosong Wang. On exact computation with an infinitely wide neural net. arXiv preprint arXiv:1904.11955, 2019b.
226
+ Sanjeev Arora, Simon S Du, Wei Hu, Zhiyuan Li, and Ruosong Wang. Fine-grained analysis of optimization and generalization for overparameterized two-layer neural networks. arXiv preprint arXiv:1901.08584, 2019c.
227
+ Alberto Bietti and Julien Mairal. On the inductive bias of neural tangent kernels. arXiv preprint arXiv:1905.12173, 2019.
228
+ Yuan Cao and Quanquan Gu. Generalization bounds of stochastic gradient descent for wide and deep neural networks. arXiv preprint arXiv:1905.13210, 2019.
229
+ Lenaic Chizat, Edouard Oyallon, and Francis Bach. On lazy training in differentiable programming. arXiv preprint arXiv:1812.07956, 2019.
230
+ Daryl J Daley and David Vere-Jones. An introduction to the theory of point processes: volume II: general theory and structure. Springer Science & Business Media, 2007.
231
+ Amit Daniely, Roy Frostig, and Yoram Singer. Toward deeper understanding of neural networks: The power of initialization and a dual view on expressivity. In Advances In Neural Information Processing Systems, pp. 2253–2261, 2016.
232
+ Simon S Du, Xiyu Zhai, Barnabas Poczos, and Aarti Singh. Gradient descent provably optimizes over-parameterized neural networks. arXiv preprint arXiv:1810.02054, 2018.
233
+ Mario Geiger, Stefano Spigler, Arthur Jacot, and Matthieu Wyart. Disentangling feature and lazy learning in deep neural networks: an empirical study. arXiv preprint arXiv:1906.08034, 2019.
234
+ Gauthier Gidel, Francis Bach, and Simon Lacoste-Julien. Implicit regularization of discrete gradient dynamics in deep linear neural networks. arXiv preprint arXiv:1904.13262, 2019.
235
+
236
+ Boris Hanin and David Rolnick. Complexity of linear regions in deep networks. arXiv preprint arXiv:1901.09021, 2019.
237
+
238
+ Soufiane Hayou, Arnaud Doucet, and Judith Rousseau. Training dynamics of deep networks using stochastic gradient descent via neural tangent kernel. arXiv preprint arXiv:1905.13654, 2019.
239
+
240
+ Arthur Jacot, Franck Gabriel, and Clement Hongler. Neural tangent kernel: Convergence and gen- Β΄ eralization in neural networks. In Advances in neural information processing systems, pp. 8571– 8580, 2018.
241
+
242
+ Ziwei Ji and Matus Telgarsky. Gradient descent aligns the layers of deep linear networks. arXiv preprint arXiv:1810.02032, 2018.
243
+
244
+ Jaehoon Lee, Lechao Xiao, Samuel S Schoenholz, Yasaman Bahri, Jascha Sohl-Dickstein, and Jeffrey Pennington. Wide neural networks of any depth evolve as linear models under gradient descent. arXiv preprint arXiv:1902.06720, 2019.
245
+
246
+ Junhong Lin, Raffaello Camoriano, and Lorenzo Rosasco. Generalization properties and implicit regularization for multiple passes sgm. In International Conference on Machine Learning, pp. 2340–2348, 2016.
247
+
248
+ Preetum Nakkiran, Gal Kaplun, Dimitris Kalimeris, Tristan Yang, Benjamin L Edelman, Fred Zhang, and Boaz Barak. Sgd on neural networks learns functions of increasing complexity. arXiv preprint arXiv:1905.11604, 2019.
249
+
250
+ Behnam Neyshabur. Implicit regularization in deep learning. arXiv preprint arXiv:1709.01953, 2017.
251
+
252
+ Behnam Neyshabur, Ryota Tomioka, and Nathan Srebro. In search of the real inductive bias: On the role of implicit regularization in deep learning. arXiv preprint arXiv:1412.6614, 2014.
253
+
254
+ Nasim Rahaman, Devansh Arpit, Aristide Baratin, Felix Draxler, Min Lin, Fred A Hamprecht, Yoshua Bengio, and Aaron Courville. On the spectral bias of deep neural networks. arXiv preprint arXiv:1806.08734, 2018.
255
+
256
+ Daniel Soudry, Elad Hoffer, Mor Shpigel Nacson, Suriya Gunasekar, and Nathan Srebro. The implicit bias of gradient descent on separable data. Journal of Machine Learning Research, 19(70), 2018.
257
+
258
+ Ingo Steinwart. A sober look at neural network initializations. arXiv preprint arXiv:1903.11482, 2019.
259
+
260
+ Roman Vershynin. High-dimensional probability: an introduction with applications in data science. Number 47 in Cambridge series in statistical and probabilistic mathematics. Cambridge University Press, Cambridge, 2018. ISBN 978-1-108-41519-4.
261
+
262
+ Colin Wei, Qiang Lee, Jason D.and Liu, and Tengyu Ma. Regularization matters: Generalization and optimization of neural nets v.s. their induced kernel. arXiv preprint arXiv:1810.05369, 2018.
263
+
264
+ Blake Woodworth, Suriya Gunasekar, Jason Lee, Daniel Soudry, and Nathan Srebro. Kernel and deep regimes in overparametrized models. arXiv preprint arXiv:1906.05827, 2019.
265
+
266
+ Gilad Yehudai and Ohad Shamir. On the power and limitations of random features for understanding neural networks. arXiv preprint arXiv:1904.00687, 2019.
267
+
268
+ Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. arXiv preprint arXiv:1611.03530, 2016.
269
+
270
+ # A PROOFS
271
+
272
+ A.1 PROOF OF LEMMA 3
273
+
274
+ Lemma 3 (reshown, see $\ S 3 . 1 \ r .$ ). With probability at least $1 - e ^ { - \Omega ( \log ^ { 2 } m ) }$ , for every $\pmb { x } ^ { ( p ) }$ , $\pmb { x } ^ { ( q ) } \left( p , q \in \right.$ $[ n ] , p \neq q ) , t \in [ T ]$ and $l \in [ L ]$ , we have
275
+
276
+ $$
277
+ \begin{array} { r l r } { \displaystyle \operatorname* { s u p } _ { 0 \leq s \leq 1 } \left. \check { g } _ { i } ^ { l , ( t ) } ( s ) - \tilde { g } _ { i } ^ { l , ( t ) } ( s ) \right. \leq O \left( \frac { \log ^ { 2 } m } { \sqrt { m } } \right) \| { \pmb v } \| _ { 2 } , } & { ( \forall i \in [ m ] ) , } & \\ { \displaystyle \operatorname* { s u p } _ { 0 \leq s \leq 1 } \left. \check { f } _ { j } ^ { ( t ) } ( s ) - \tilde { f } _ { j } ^ { ( t ) } ( s ) \right. \leq O \left( \frac { \log ^ { 2 } m } { \sqrt { c } } \right) \| { \pmb v } \| _ { 2 } , } & { ( \forall j \in [ c ] ) . } & \end{array}
278
+ $$
279
+
280
+ Proof. We prove Lemma 3 for a fixed $l \in [ L ]$ and $t \in [ T ]$ every pair of data points ${ \pmb x } ^ { ( p ) } , { \pmb x } ^ { ( q ) }$ $( p , q \in [ n ] , \mathbf { \bar { \psi } } p \neq q )$ , because we can apply union bound at the end.
281
+
282
+ Recall the definition $g ^ { l , ( t ) } ( x )$ (the unit output), $\mathbf { G } ^ { l , ( t ) } ( x )$ (the indicator matrix function) and $\pmb { x } ( s ) =$ $( 1 - s ) \pmb { x } ^ { ( p ) } + s \pmb { x } ^ { ( q ) }$ , $s \in [ 0 , 1 ]$ (a linearly interpolating path between data points $\pmb { x } ^ { ( p ) } , \pmb { x } ^ { ( q ) } )$ , we have
283
+
284
+ $$
285
+ g ^ { l , ( t ) } ( \pmb { x } ( s ) ) = \mathbf { W } ^ { l , ( t ) } \mathbf { G } ^ { l - 1 , ( t ) } ( \pmb { x } ( s ) ) \mathbf { W } ^ { l - 1 , ( t ) } \cdot \cdot \mathbf { \nabla } \mathbf { W } ^ { 1 , ( t ) } \mathbf { G } ^ { 0 , ( t ) } ( \pmb { x } ( s ) ) \mathbf { A } \pmb { x } ( s ) .
286
+ $$
287
+
288
+ Using the definition of $\widetilde { g } ^ { l , ( t ) } ( s )$ and $\breve { g } ^ { \ l , ( t ) } ( s )$ , we also have
289
+
290
+ $$
291
+ \begin{array} { r } { \widetilde { g } ^ { l , ( t ) } ( s ) = \mathbf { W } ^ { l , ( t ) } \mathbf { G } ^ { l - 1 , ( t ) } ( \boldsymbol { x } ( 0 ) ) \mathbf { W } ^ { l - 1 , ( t ) } \cdot \cdot \cdot \mathbf { W } ^ { 1 , ( t ) } \mathbf { G } ^ { 0 , ( t ) } ( \boldsymbol { x } ( 0 ) ) \mathbf { A } \boldsymbol { x } ( s ) , } \end{array}
292
+ $$
293
+
294
+ $$
295
+ \begin{array} { r l r } & { \check { g } ^ { \mathit { l } , ( t ) } ( s ) = \mathbf { W } ^ { l , ( t ) } \phi ( \widetilde { g } ^ { \mathit { l } - 1 , ( t ) } ( s ) ) } & { ( 2 ) } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad ( 2 ) } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad = \mathbf { W } ^ { l , ( t ) } \widetilde { \mathbf { G } } ^ { \mathit { l } - 1 , ( t ) } ( s ) \mathbf { W } ^ { l - 1 , ( t ) } \mathbf { G } ^ { l - 2 , ( t ) } ( { \pmb x } ( 0 ) ) \mathbf { W } ^ { l - 2 , ( t ) } \cdots \mathbf { W } ^ { 1 , ( t ) } \mathbf { G } ^ { 0 , ( t ) } ( { \pmb x } ( 0 ) ) \mathbf { A } { \pmb x } ( s ) , } & \end{array}
296
+ $$
297
+
298
+ where $\widetilde { \mathbf { G } } ^ { l - 1 , ( t ) } ( s )$ is an indicator diagonal matrix for $s \in [ 0 , 1 ]$ as follows:
299
+
300
+ $$
301
+ [ \widetilde { \mathbf { G } } ^ { l - 1 , ( t ) } ( s ) ] _ { i , i } : = \mathbf { 1 } _ { \left\{ \widetilde { g } _ { i } ^ { \iota - 1 , ( t ) } ( s ) \geq 0 \right\} } , \quad [ \widetilde { \mathbf { G } } ^ { l - 1 , ( t ) } ( s ) ] _ { i , j } : = 0 \ ( i \neq j ) .
302
+ $$
303
+
304
+ We begin by proving that the number of breakpoints of the function $\breve { g } _ { i } ^ { ~ l , ( t ) } ( s )$ in the interval [0.1] is bounded by $m$ . For fixed $i \in [ m ]$ , we have
305
+
306
+ $$
307
+ \begin{array} { l } { \check { g } _ { i } ^ { \ l , ( t ) } ( s ) = [ \mathbf { W } ^ { l , ( t ) } \phi ( \widetilde { g } ^ { \ l - 1 , ( t ) } ( s ) ) ] _ { i } } \\ { = \displaystyle \sum _ { j = 1 } ^ { m } [ \mathbf { W } ^ { l , ( t ) } ] _ { i , j } \ \phi ( \widetilde { g } _ { j } ^ { l - 1 , ( t ) } ( s ) ) } \\ { = \displaystyle \sum _ { j = 1 } ^ { m } [ \mathbf { W } ^ { l , ( t ) } ] _ { i , j } \ \widetilde { g } _ { j } ^ { \ l - 1 , ( t ) } ( s ) \mathbf { 1 } _ { \left\{ \widetilde { g } _ { j } ^ { \ l - 1 , ( t ) } ( s ) \geq 0 \right\} } } \end{array}
308
+ $$
309
+
310
+ Note that the input to the above $\phi$ , that is g lβˆ’1,(t)j (s), is a linear function on s ∈ [0, 1]. For each $j \in [ m ]$ , the linear equation $\widetilde { g } _ { j } ^ { l - 1 , ( t ) } ( s ) = 0$ has at most one solution $s = s ^ { * }$ .5 If the solution $s = s ^ { * }$ satisfies inequality $0 < s ^ { * } < 1$ , then $\breve { g } _ { i } ^ { ~ l , ( t ) } ( s )$ has a breakpoint at $s = s ^ { * }$ . This shows that the number of breakpoints of $\breve { g } _ { i } ^ { ~ l , ( t ) } ( s )$ is bounded by the number of the linear equations
311
+
312
+ $$
313
+ \begin{array} { r } { \widetilde { g } _ { j } ^ { l - 1 , ( t ) } ( s ) = 0 ( j \in [ m ] ) , } \end{array}
314
+ $$
315
+
316
+ which is clearly equal to $m$ .
317
+
318
+ We denote by 0 < s1 < s2 < Β· Β· Β· < sΞ± < 1 all breakpoints of g˘ l,(t)i (s), where Ξ± is the number of breakpoints. For notational simplicity, we set $s _ { 0 } = 0$ and $s _ { \alpha + 1 } = 1$ . Note that, with probability 1, breakpoints are all distinct from each other. Each breakpoint $s _ { \beta }$ $\beta \in [ \alpha ] )$ corresponds to a linear equation g lβˆ’1,(t)j (s) = 0 for some j ∈ [m]. In other words, for each breakpoint sΞ² (Ξ² ∈ [Ξ±]), there exists a unique element $j \in [ m ]$ such that g lβˆ’1,(t)j (s) = 0. Therefore, for s = sΞ² , we set j = jΞ² (Ξ² ∈ [Ξ±]) then we have g lβˆ’jΞ² 1,(t)(sΞ² ) = 0.
319
+
320
+ It is easy to verify $\begin{array} { r } { \frac { d } { d s } \pmb { x } ( s ) = \pmb { x } ^ { ( q ) } - \pmb { x } ^ { ( p ) } = : \pmb { v } } \end{array}$ . Therefore,
321
+
322
+ $$
323
+ \begin{array} { r l } & { \cfrac { d } { d s } \widetilde { g } ^ { l , ( t ) } ( s ) = \mathbf { W } ^ { l , ( t ) } \mathbf { G } ^ { l - 1 , ( t ) } ( { \pmb x } ( 0 ) ) \mathbf { W } ^ { l - 1 , ( t ) } \mathbf { G } ^ { l - 2 , ( t ) } ( { \pmb x } ( 0 ) ) \mathbf { W } ^ { l - 2 , ( t ) } \cdot \cdot \cdot \mathbf { W } ^ { 1 , ( t ) } \mathbf { G } ^ { 0 , ( t ) } ( { \pmb x } ( 0 ) ) \mathbf { A } { \pmb v } } \\ & { \qquad ( 3 5 } \\ & { \cfrac { d } { d s } \widetilde { g } ^ { l , ( t ) } ( s ) = \mathbf { W } ^ { l , ( t ) } \widetilde { \mathbf { G } } ^ { l - 1 , ( t ) } ( s ) \mathbf { W } ^ { l - 1 , ( t ) } \mathbf { G } ^ { l - 2 , ( t ) } ( { \pmb x } ( 0 ) ) \mathbf { W } ^ { l - 2 , ( t ) } \cdot \cdot \cdot \mathbf { W } ^ { 1 , ( t ) } \mathbf { G } ^ { 0 , ( t ) } ( { \pmb x } ( 0 ) ) \mathbf { A } { \pmb v } . } \end{array}
324
+ $$
325
+
326
+ This implies,
327
+
328
+ $$
329
+ \begin{array} { r l r } { { \frac { d } { d s } \check { g } ^ { l , ( t ) } ( s ) - \frac { d } { d s } \widetilde { g } ^ { l , ( t ) } ( s ) } } \\ & { } & { = \mathbf { W } ^ { l , ( t ) } ( \widetilde { \mathbf { G } } ^ { l - 1 , ( t ) } ( s ) - \mathbf { G } ^ { l - 1 , ( t ) } ( { \boldsymbol x } ( 0 ) ) ) \mathbf { W } ^ { l - 1 , ( t ) } \mathbf { G } ^ { l - 2 , ( t ) } ( { \boldsymbol x } ( 0 ) ) \cdot \cdot \cdot \mathbf { W } ^ { 1 , ( t ) } \mathbf { G } ^ { 0 , ( t ) } ( { \boldsymbol x } ( 0 ) ) \mathbf { A } \boldsymbol { v } . } \end{array}
330
+ $$
331
+
332
+ Note that from the definition of the indicator matrix, [Glβˆ’1,(t)(x(0))]i,i = 1{[glβˆ’1,(t)(x(0))]iβ‰₯0}, and from the definition of the linear approximation, $\widetilde { g } ^ { l - 1 , ( t ) } ( 0 ) = g ^ { l - 1 , ( t ) } ( \pmb { x } ( 0 ) )$ , which says that $\widetilde { \mathbf { G } } ^ { l - 1 , ( t ) } ( 0 )$ equals $\mathbf { G } ^ { l - 1 , ( t ) } ( \pmb { x } ( 0 ) )$ .
333
+
334
+ For each $i \in [ m ]$ , we may write
335
+
336
+ $$
337
+ \frac { d } { d s } \check { g } _ { i } ^ { \ l , ( t ) } ( s ) - \frac { d } { d s } \widetilde { g } _ { i } ^ { \ l , ( t ) } ( s ) = \sum _ { j = 1 } ^ { m } [ \mathbf { W } ^ { l , ( t ) } ] _ { i , j } [ \mathbf { M } ^ { ( t ) } \pmb { v } ] _ { j } \widetilde { \lambda } _ { j } ,
338
+ $$
339
+
340
+ where $\mathbf { M } ^ { ( t ) }$ is a matrix:
341
+
342
+ $$
343
+ \mathbf { M } ^ { ( t ) } : = \mathbf { W } ^ { l - 1 , ( t ) } \mathbf { G } ^ { l - 2 , ( t ) } ( \pmb { x } ( 0 ) ) \mathbf { W } ^ { l - 2 , ( t ) } \cdot \cdot \mathbf { \nabla } \mathbf { \cdot } \mathbf { W } ^ { 1 , ( t ) } \mathbf { G } ^ { 0 , ( t ) } ( \pmb { x } ( 0 ) ) \mathbf { A }
344
+ $$
345
+
346
+ and $\widetilde { \lambda } _ { j }$ is the difference of indicator functions:
347
+
348
+ $$
349
+ \widetilde { \lambda } _ { j } : = \mathbf { 1 } _ { \left\{ \widetilde { g } _ { j } ^ { \ l - 1 , ( t ) } ( s ) \geq 0 \right\} } - \mathbf { 1 } _ { \left\{ \widetilde { g } _ { j } ^ { \ l - 1 , ( t ) } ( 0 ) \geq 0 \right\} } .
350
+ $$
351
+
352
+ For $\beta \in [ \alpha ]$ , we set an open interval of breakpoints $\mathbb { I } _ { \beta } : = ( s _ { \beta } , s _ { \beta + 1 } )$ , and recall the notation of the gradient $\nabla _ { \beta }$
353
+
354
+ $$
355
+ \nabla _ { \beta } : = \left. \frac { d } { d s } \left( \check { g } _ { i } ^ { l , ( t ) } ( s ) - \tilde { g } _ { i } ^ { l , ( t ) } ( s ) \right) \right. _ { s \in \mathbb { I } _ { \beta } } ,
356
+ $$
357
+
358
+ and the gradient gap $\mathbf { x } _ { \beta } : = \nabla _ { \beta } - \nabla _ { \beta - 1 }$ . Note that since there is not a breakpoint in $\mathbb { I } _ { \beta }$ , the gradient $\nabla _ { \beta }$ is constant in $\mathbb { I } _ { \beta }$ .
359
+
360
+ Hence, for $\beta \in [ \alpha ]$ and $s \in \mathbb { I } _ { \beta }$ , we may write
361
+
362
+ $$
363
+ \frac { d } { d s } \check { g } _ { i } ^ { \ l , ( t ) } ( s ) - \frac { d } { d s } \widetilde { g } _ { i } ^ { \ l , ( t ) } ( s ) = \sum _ { \gamma = 1 } ^ { \beta } \mathbf { x } _ { \gamma } .
364
+ $$
365
+
366
+ Note that the gradient gap $\mathbf { X } _ { \gamma }$ $( \gamma \in [ \alpha ] )$ can be rewritten as
367
+
368
+ $$
369
+ \mathbf { x } _ { \gamma } = [ \mathbf { W } ^ { l , ( t ) } ] _ { i j _ { \gamma } } [ \mathbf { M } ^ { ( t ) } v ] _ { j _ { \gamma } } \widetilde { \zeta } _ { \gamma } ,
370
+ $$
371
+
372
+ where $\widetilde { \zeta } _ { \gamma }$ is a difference of indicator functions:
373
+
374
+ $$
375
+ \widetilde { \zeta } _ { \gamma } : = \mathbf { 1 } _ { \left\{ \widetilde { g } _ { j _ { \gamma } } ^ { \imath - 1 , ( \mathfrak { t } ) } ( d _ { \gamma } ) \geq 0 \right\} } - \mathbf { 1 } _ { \left\{ \widetilde { g } _ { j _ { \gamma } } ^ { \imath - 1 , ( \mathfrak { t } ) } ( d _ { \gamma - 1 } ) \geq 0 \right\} } , \quad \ \forall d _ { \gamma - 1 } \in \mathbb { I } _ { \gamma - 1 } \mathrm { a n d } \forall d _ { \gamma } \in \mathbb { I } _ { \gamma } .
376
+ $$
377
+
378
+ Note that $\widetilde { \zeta } _ { \gamma }$ is independent of the choice of $d _ { \gamma - 1 }$ and $d _ { \gamma }$ . Note also that since the linear function g lβˆ’1,(t)jΞ³ (s) switches the sign at s = sΞ³, we have ΞΆeΞ³ = Β±1.
379
+
380
+ We begin by proving the upper bound on $\scriptstyle \sum _ { \gamma = 1 } ^ { \beta } \mathbf { x } _ { \gamma }$ . For notational simplicity, we use $\mathbf { W } ^ { l }$ to denote $\mathbf { W } ^ { l , ( 0 ) }$ , and for $l \in [ L ]$ we set
381
+
382
+ $$
383
+ \mathbf { d W } ^ { l } : = \mathbf { W } ^ { l , ( t ) } - \mathbf { W } ^ { l , ( 0 ) } = \mathbf { W } ^ { l , ( t ) } - \mathbf { W } ^ { l } ,
384
+ $$
385
+
386
+ then we may write for $\gamma \in [ \alpha ]$ ,
387
+
388
+ $$
389
+ \begin{array} { r l } { \displaystyle [ \mathbf { M } ^ { ( t ) } \pmb { v } ] _ { j _ { \gamma } } = [ \mathbf { W } ^ { l - 1 , ( t ) } \mathbf { G } ^ { l - 2 , ( t ) } ( \pmb { x } ( 0 ) ) \mathbf { W } ^ { l - 2 , ( t ) } \cdot \cdot \mathbf { W } ^ { 1 , ( t ) } \mathbf { G } ^ { 0 , ( t ) } ( \pmb { x } ( 0 ) ) \mathbf { A } \pmb { v } ] _ { j _ { \gamma } } } & { } \\ { = \displaystyle \sum _ { \rho = 1 } ^ { m } [ \mathbf { W } ^ { l - 1 , ( t ) } ] _ { j _ { \gamma } , \rho } [ \mathbf { N } \pmb { v } ] _ { \rho } } & { } \\ { = \displaystyle \sum _ { \rho = 1 } ^ { m } [ \mathbf { W } ^ { l - 1 } ] _ { j _ { \gamma } , \rho } [ \mathbf { N } \pmb { v } ] _ { \rho } + \displaystyle \sum _ { \rho = 1 } ^ { m } [ \mathbf { d } \mathbf { W } ^ { l - 1 } ] _ { j _ { \gamma } , \rho } [ \mathbf { N } \pmb { v } ] _ { \rho } } & { } \\ { = : \mathbf { h } _ { \gamma } + \mathbf { d } \mathbf { h } _ { \gamma } , } \end{array}
390
+ $$
391
+
392
+ Therefore, we have
393
+
394
+ $$
395
+ \begin{array} { r l } & { \mathbf { x } _ { \gamma } \ = \ \widetilde { \zeta } _ { \gamma } [ \mathbf { W } ^ { l , ( t ) } ] _ { i , j _ { \gamma } } [ \mathbf { M } ^ { ( t ) } \pmb { v } ] _ { j _ { \gamma } } } \\ & { \quad = \ \widetilde { \zeta } _ { \gamma } \left( [ \mathbf { W } ^ { l } ] _ { i , j _ { \gamma } } + [ \mathbf { d W } ^ { l } ] _ { i , j _ { \gamma } } \right) \left( \mathbf { h } _ { \gamma } + \mathbf { d h } _ { \gamma } \right) } \\ & { \quad = \ \widetilde { \zeta } _ { \gamma } [ \mathbf { W } ^ { l } ] _ { i , j _ { \gamma } } \mathbf { h } _ { \gamma } + \widetilde { \zeta } _ { \gamma } [ \mathbf { d W } ^ { l } ] _ { i , j _ { \gamma } } \mathbf { h } _ { \gamma } + \widetilde { \zeta } _ { \gamma } [ \mathbf { W } ^ { l } ] _ { i , j _ { \gamma } } \mathbf { d h } _ { \gamma } + \widetilde { \zeta } _ { \gamma } [ \mathbf { d W } ^ { l } ] _ { i , j _ { \gamma } } \mathbf { d h } _ { \gamma } } \\ & { \quad = : \ \mathbf { x } _ { \gamma } ^ { ( 0 ) } + \mathbf { x } _ { \gamma } ^ { ( 1 ) } + \mathbf { x } _ { \gamma } ^ { ( 2 ) } + \mathbf { x } _ { \gamma } ^ { ( 3 ) } . } \end{array}
396
+ $$
397
+
398
+ In order to estimate $\mathbf { N v }$ , we use the following estimate (see Lemma 7.1 and Claim 11.2 in (AllenZhu et al., 2018b)):
399
+
400
+ Lemma. If $\varepsilon \in ( 0 , 1 ]$ , with probability at least $1 - e ^ { - \Omega ( m \varepsilon ^ { 2 } / L ) }$ , for a fixed vector $_ z$ and $l \in [ L ]$ , we have
401
+
402
+ $$
403
+ \| \mathbf { G } ^ { l , ( t ) } ( \pmb { x } ( 0 ) ) \mathbf { W } ^ { l , ( t ) } \cdot \cdot \cdot \mathbf { W } ^ { 1 , ( t ) } \mathbf { G } ^ { 0 , ( t ) } ( \pmb { x } ( 0 ) ) \mathbf { A } \pmb { z } \| _ { 2 } \le ( 1 + \varepsilon ) \| \pmb { z } \| _ { 2 } .
404
+ $$
405
+
406
+ This Lemma implies that with probability at least $1 - e ^ { - \Omega ( m / L ) }$ , we have
407
+
408
+ $$
409
+ \| \mathbf { N } \pmb { v } \| _ { 2 } = \| \mathbf { G } ^ { l - 2 , ( t ) } ( \pmb { x } ( 0 ) ) \mathbf { W } ^ { l - 2 , ( t ) } \cdot \cdot \cdot \mathbf { W } ^ { 1 , ( t ) } \mathbf { G } ^ { 0 , ( t ) } ( \pmb { x } ( 0 ) ) \mathbf { A } \pmb { v } \| _ { 2 } \le 2 \| \pmb { v } \| _ { 2 } .
410
+ $$
411
+
412
+ We will estimate the 1st term $\mathbf { x } _ { \gamma } ^ { ( 0 ) }$ . Conditioning on this event (56) happens, using the randomness of $\mathbf { W } ^ { l - 1 }$ and general Hoeffding’s inequality (Vershynin, 2018), for each fixed vector $\textbf { { v } }$ , we have
413
+
414
+ $$
415
+ \mathbb { P } \left\{ | \mathbf { h } _ { \gamma } | > \tau \right\} \leq 2 \exp \left( - \frac { C \tau ^ { 2 } } { ( 2 / m ) \| \mathbf { N } \pmb { v } \| _ { 2 } ^ { 2 } } \right) .
416
+ $$
417
+
418
+ Choose $\begin{array} { r } { \tau : = \frac { \log m } { \sqrt { m } } \| \mathbf { N } \pmb { v } \| _ { 2 } } \end{array}$ . Then, with probability at least $1 - e ^ { - \Omega ( \log ^ { 2 } m ) }$ , we have
419
+
420
+ $$
421
+ | \mathbf { h } _ { \gamma } | \leq \frac { \log m } { \sqrt { m } } \| \mathbf { N } \pmb { v } \| _ { 2 } .
422
+ $$
423
+
424
+ We set $\mathbf { u } _ { \gamma } ^ { ( 0 ) } : = \widetilde { \zeta } _ { \gamma } \mathbf { h } _ { \gamma }$ and ${ \bf u } ^ { ( 0 ) } = ( { \bf u } _ { 1 } ^ { ( 0 ) } , \ldots , { \bf u } _ { \beta } ^ { ( 0 ) } )$ . Note that since $\widetilde { \zeta } _ { \gamma } = \pm 1$ , we have $\left| \mathbf { u } _ { \gamma } ^ { ( 0 ) } \right| =$ $\begin{array} { r } { \left| \widetilde { \zeta } _ { \gamma } \mathbf { h } _ { \gamma } \right| \leq \frac { \log m } { \sqrt { m } } \left\| \mathbf { N } \pmb { v } \right\| _ { 2 } } \end{array}$ . The set of the gradient gaps $\{ \mathbf { x } _ { \gamma } ^ { ( 0 ) } \} = \{ \mathbf { u } _ { \gamma } ^ { ( 0 ) } [ \mathbf { W } ^ { l } ] _ { i , j _ { \gamma } } \}$ are a sequence of independent Gaussian random variables. Hence, $\textstyle \sum _ { \gamma = 1 } ^ { \beta } \mathbf { x } _ { \gamma } ^ { ( 0 ) }$ is a β€œGaussian random walk” (12). Thus, using the randomness of $\mathbf { W } ^ { l }$ , conditioning on the above event (58), fixing any $\textbf { { v } }$ , with probability at
425
+
426
+ least $1 - e ^ { - \Omega ( \log ^ { 2 } m ) }$ , we have
427
+
428
+ $$
429
+ \begin{array} { r l r } { { | \sum _ { \gamma = 1 } ^ { \beta } \mathbf { x } _ { \gamma } ^ { ( 0 ) } | \leq \frac { \log m } { \sqrt { m } } \| \mathbf { u } ^ { ( 0 ) } \| _ { 2 } } } \\ & { } & { \leq \frac { \log m } { \sqrt { m } } ( \sum _ { \gamma = 1 } ^ { \beta } ( \frac { \log m } { \sqrt { m } } \| \mathbf { N } v \| _ { 2 } ) ^ { 2 } ) ^ { 1 / 2 } } \\ & { } & { \leq 2 \frac { \log ^ { 2 } m } { \sqrt { m } } \| v \| _ { 2 } . } \end{array}
430
+ $$
431
+
432
+ Therefore, we have the estimate of $\mathbf { X } _ { \gamma } ^ { ( 0 ) }$
433
+
434
+ Next, we will estimate the 2nd term $\mathbf { X } _ { \gamma } ^ { ( 1 ) }$ . By definition, we may write
435
+
436
+ $$
437
+ \sum _ { \gamma = 1 } ^ { \beta } \mathbf { x } _ { \gamma } ^ { ( 1 ) } = \sum _ { \gamma = 1 } ^ { \beta } \widetilde { \zeta } _ { \gamma } [ \mathbf { d W } ^ { l } ] _ { i , j _ { \gamma } } \mathbf { h } _ { \gamma } .
438
+ $$
439
+
440
+ Note that we use Theorem 1 (the convergence theorem) to write
441
+
442
+ $$
443
+ \| [ \mathbf { d W } ^ { l } ] _ { i } \| _ { 2 } = \| [ \mathbf { W } ^ { l , ( t ) } ] _ { i } - [ \mathbf { W } ^ { l } ] _ { i } \| _ { 2 } \leq O \left( \lambda \frac { \log m } { m } \right) .
444
+ $$
445
+
446
+ Thus, applying the estimate of $\mathsf { h } _ { \gamma }$ to eq. (58), we have
447
+
448
+ $$
449
+ \begin{array} { r l r } { { \sum _ { \gamma = 1 } ^ { \beta } \mathbf { x } _ { \gamma } ^ { ( 1 ) } \leq \ 2 \sum _ { \gamma = 1 } ^ { \beta } ( \frac { \log m } { \sqrt { m } } \| \pmb { v } \| _ { 2 } ) [ \mathbf { d } \mathbf { W } ^ { l } ] _ { i , j _ { \gamma } } } } \\ & { } & { \leq \ \frac { \log m } { \sqrt { m } } \| \pmb { v } \| _ { 2 } \cdot \sqrt { \beta } \ \| [ \mathbf { d } \mathbf { W } ^ { l } ] _ { i } \| _ { 2 } } \\ & { } & { \leq C \lambda \frac { \log ^ { 2 } m } { m } \| \pmb { v } \| _ { 2 } \leq \frac { \log ^ { 2 } m } { \sqrt { m } } \| \pmb { v } \| _ { 2 } . } \end{array}
450
+ $$
451
+
452
+ The last inequality uses $\lambda \leq o ( { \sqrt { m } } )$ , which is indicated by the result of Theorem 1, therefore we have the estimate of $\mathbf { X } _ { \gamma } ^ { ( 1 ) }$ .
453
+
454
+ Next, we will estimate the 3rd term $\mathbf { X } _ { \gamma } ^ { ( 2 ) }$ . By definition, we may write
455
+
456
+ $$
457
+ \sum _ { \gamma = 1 } ^ { \beta } \mathbf { x } _ { \gamma } ^ { ( 2 ) } = \sum _ { \gamma = 1 } ^ { \beta } \widetilde { \zeta } _ { \gamma } [ \mathbf { W } ^ { l } ] _ { i , j _ { \gamma } } \mathbf { d } \mathbf { h } _ { \gamma } .
458
+ $$
459
+
460
+ We set ${ \bf u } _ { \gamma } ^ { ( 2 ) } : = \tilde { \zeta } _ { \gamma } { \bf d } { \bf h } _ { \gamma }$ and $\mathbf { u } ^ { ( 2 ) } : = ( \mathbf { u } _ { 1 } ^ { ( 2 ) } , \ldots , \mathbf { u } _ { \beta } ^ { ( 2 ) } )$ . Using the randomness of $\mathbf { W } ^ { l }$ and general Hoeffding’s inequality (Vershynin, 2018), for each fixed vector $\textbf { { v } }$ , we have
461
+
462
+ $$
463
+ \begin{array} { r } { \mathbb { P } \left\{ \left| \displaystyle \sum _ { \gamma = 1 } ^ { \beta } \mathbf { u } _ { \gamma } ^ { ( 2 ) } [ \mathbf { W } ^ { l } ] _ { i , j _ { \gamma } } \right| > \tau \right\} \leq ~ 2 \exp \left( - \frac { C \tau ^ { 2 } } { \| \mathbf { u } ^ { ( 2 ) } \| _ { 2 } ^ { 2 } ~ \operatorname* { m a x } _ { \gamma } ^ { 2 } \| [ \mathbf { W } ^ { l } ] _ { i , j _ { \gamma } } \| _ { \psi _ { 2 } } } \right) } \\ { \leq ~ 2 \exp \left( - \frac { C m \tau ^ { 2 } } { 2 \| \mathbf { u } ^ { ( 2 ) } \| _ { 2 } ^ { 2 } } \right) ~ } \end{array}
464
+ $$
465
+
466
+ Note that
467
+
468
+ $$
469
+ \mathrm { \bf d h } _ { \gamma } = \sum _ { \rho = 1 } ^ { m } [ { \bf d W } ^ { l - 1 } ] _ { j _ { \gamma } , \rho } [ { \bf N } { \pmb v } ] _ { \rho } ,
470
+ $$
471
+
472
+ and choose $\begin{array} { r } { \tau : = \frac { \log m } { \sqrt { m } } \| \mathbf { u } ^ { ( 2 ) } \| _ { 2 } } \end{array}$ , with probability $1 - e ^ { - \Omega ( \log ^ { 2 } m ) }$ , we have
473
+
474
+ $$
475
+ \begin{array} { r l r } { { | \sum _ { \gamma = 1 } ^ { \beta } \mathbf { x } _ { \gamma } ^ { ( 2 ) } | \le \frac { \log m } { \sqrt { m } } \| \mathbf { u } ^ { ( 2 ) } \| _ { 2 } \le \frac { \log m } { \sqrt { m } } \{ \displaystyle \sum _ { \gamma = 1 } ^ { \beta } ( \sum _ { \rho = 1 } ^ { m } [ \mathbf { d W } ^ { l - 1 } ] _ { j _ { \gamma , \rho } } [ \mathbf { N } v ] _ { \rho } ) ^ { 2 } \} ^ { 1 / 2 } } } \\ & { } & { \le \frac { \log m } { \sqrt { m } } ( \displaystyle \sum _ { \gamma = 1 } ^ { \beta } \| [ \mathbf { d W } ^ { l - 1 } ] _ { j _ { \gamma } } \| _ { 2 } ^ { 2 } \| v \| _ { 2 } ^ { 2 } ) ^ { 1 / 2 } \le \frac { \log m } { \sqrt { m } } \| \mathbf { d W } ^ { l - 1 } \| _ { F } \| v \| _ { 2 } } \\ & { } & { \le \frac { \log ^ { 2 } m } { \sqrt { m } } \| v \| _ { 2 } . } \end{array}
476
+ $$
477
+
478
+ The last inequality uses $\lambda \leq o ( { \sqrt { m } } )$ and the result of Theorem 1:
479
+
480
+ $$
481
+ \| \mathbf { d W } ^ { l - 1 } \| _ { F } = \| \mathbf { W } ^ { l - 1 , ( t ) } - \mathbf { W } ^ { l - 1 } \| _ { F } \leq O \left( \lambda { \frac { \log m } { \sqrt { m } } } \right) .
482
+ $$
483
+
484
+ Therefore, we have the estimate of $\mathbf { X } _ { \gamma } ^ { ( 2 ) }$
485
+
486
+ Next, we will estimate the last term $\mathbf { X } _ { \gamma } ^ { ( 3 ) }$ . Note that since $\widetilde { \zeta } _ { \gamma } = \pm 1$ , we have $| \widetilde { \zeta } _ { \gamma } | = 1$ , and conditioning on this event (56) happens, we may write
487
+
488
+ $$
489
+ \begin{array} { r l } & { \displaystyle \sum _ { \gamma = 1 } ^ { \beta } \mathbf { x } _ { \gamma } ^ { ( 3 ) } \bigg \vert = \left. \displaystyle \sum _ { \gamma = 1 } ^ { \beta } \widetilde { \zeta } _ { \gamma } [ \mathbf { d W } ^ { l } ] _ { : , j _ { \gamma } } \mathbf { d h } _ { \gamma } \right. } \\ & { \qquad \leq \| [ \mathbf { d W } ^ { l } ] _ { : } \| _ { 2 } \left\{ \displaystyle \sum _ { \gamma = 1 } ^ { \beta } \left( \displaystyle \sum _ { \rho = 1 } ^ { m } [ \mathbf { d W } ^ { l - 1 } ] _ { j _ { \gamma } , \rho } [ \mathbf { N } \mathbf { v } ] _ { \rho } \right) ^ { 2 } \right\} ^ { 1 / 2 } } \\ & { \qquad \leq \| [ \mathbf { d W } ^ { l } ] _ { i } \| _ { 2 } \left( \displaystyle \sum _ { \gamma = 1 } ^ { \beta } \| [ \mathbf { d W } ^ { l - 1 } ] _ { j _ { \gamma } } \| _ { 2 } ^ { 2 } \| \mathbf { v } \| _ { 2 } ^ { 2 } \right) ^ { 1 / 2 } } \\ & { \qquad \leq \| [ \mathbf { d W } ^ { l } ] _ { i } \| _ { 2 } \| _ { 2 } \| \mathbf { d W } ^ { l - 1 } \| _ { F } \| \mathbf { v } \| _ { 2 } \leq \ \frac { \log ^ { 2 } m } { \sqrt { m } } \| \mathbf { v } \| _ { 2 } . } \end{array}
490
+ $$
491
+
492
+ Putting this all together, with probability $1 - e ^ { - \Omega ( \log ^ { 2 } m ) }$ , we have
493
+
494
+ $$
495
+ \left| { \frac { d } { d s } } { \check { g } } _ { i } ^ { \iota } ( s ) - { \frac { d } { d s } } { \widetilde { g } } _ { i } ^ { \iota } ( s ) \right| = \left| \sum _ { \gamma = 1 } ^ { \beta } \mathbf { x } _ { \gamma } \right| \leq 4 { \frac { \log ^ { 2 } m } { \sqrt { m } } } \| { \pmb v } \| _ { 2 } .
496
+ $$
497
+
498
+ Therefore, we have
499
+
500
+ $$
501
+ \begin{array} { r l r } & { } & { \displaystyle \left. \check { g } _ { i } ^ { l } ( s ) - \widetilde { g } _ { i } ^ { l } ( s ) \right. \le \displaystyle \int _ { 0 } ^ { s } \left. \frac { d } { d s } \check { g } _ { i } ^ { l } ( s ) - \frac { d } { d s } \widetilde { g } _ { i } ^ { l } ( s ) \right. d s } \\ & { } & { \displaystyle \le 4 s \frac { \log ^ { 2 } m } { \sqrt { m } } \lVert \pmb { v } \rVert _ { 2 } \quad ( 0 \le \forall s \le 1 ) . } \end{array}
502
+ $$
503
+
504
+ This finishes the proof of (7) in Lemma 3. Finally, the proof of (8) in Lemma 3 is idential to the above proof, except the fact that each entry of $\mathbf { B }$ follows from $\mathcal { N } ( 0 , 2 / c )$ insted of $\mathcal { N } ( 0 , 2 / m )$ . We complete the proof.
505
+
506
+ # A.2 PROOF OF GENERALIZATION THEOREM
507
+
508
+ Theorem 2 (reshown, see $\ S 3$ ). Under the same setting as Theorem $^ { l }$ , with probability at least $1 - e ^ { - \Omega ( \log ^ { 2 } m ) }$ , for every $\pmb { x } ^ { ( p ) }$ , $\pmb { x } ^ { ( q ) }$ ( $p , q \in \left[ n \right] p \neq q ,$ ), $t \in [ T ]$ , $l \in [ L ]$ , $i \in [ m ]$ and $j \in [ c ]$ , we
509
+
510
+ have
511
+
512
+ $$
513
+ \begin{array} { r l r } & { } & { \underset { 0 \leq s \leq 1 } { \operatorname* { s u p } } \Big \vert g _ { i } ^ { l , ( t ) } ( { \pmb x } ( s ) ) - \tilde { g } _ { i } ^ { l , ( t ) } ( s ) \Big \vert \leq { \cal O } \left( \frac { \log ^ { l } m } { \sqrt { m } } \right) \| { \pmb v } \| _ { 2 } , } \\ & { } & { \underset { 0 \leq s \leq 1 } { \operatorname* { s u p } } \Big \vert f _ { j } ^ { ( t ) } ( { \pmb x } ( s ) ) - \tilde { f } _ { j } ^ { ( t ) } ( s ) \Big \vert \leq { \cal O } \left( \frac { \log ^ { L + 1 } m } { \sqrt { c } } \right) \| { \pmb v } \| _ { 2 } . } \end{array}
514
+ $$
515
+
516
+ In order to give provable guarantees for the generalization performance of over-parameterized deep networks in the ${ \bar { l } } ^ { 2 }$ regression task on the one-dimensional input-space, we apply the above Theorem 2 to bound the error between the trained network output $f ^ { ( T ) } ( x )$ and the piecewise linear function $\hat { f } ( { \pmb x } )$ . Note that if we apply Theorem 1 to this case (one-dimensional models), simple preprocessing is needed: It just consider a mapping $[ 0 , \nu ] S _ { + } ^ { 1 }$ (a half circle).
517
+
518
+ $$
519
+ S _ { + } ^ { 1 } = \{ x = ( x _ { 1 } , x _ { 2 } ) \in \mathbb { R } ^ { 2 } : \| x \| _ { 2 } = 1 , x _ { 2 } \geq 1 \}
520
+ $$
521
+
522
+ It is apparent that there exists a $C ^ { \infty }$ diffeomorphism from $[ 0 , \nu ]$ to $S _ { + } ^ { 1 }$ . Under this setting, the input from $S _ { + } ^ { 1 }$ is the two-dimension. More precisely, the input needs another axis of coordinates to express the biases term. This procedure is written in the subsection of Dataset and loss function in the paper p.4. As a result, we deal with not the case of $d = 1$ but the case of $d = 3$ in Theorem 1.
523
+
524
+ Lemma 5. Under the same setting as Theorem $^ { l }$ and 2, for $\delta \in ( 0 , 1 / 2 ]$ , then with probability at least $1 - ( \delta + e ^ { - \Omega ( \log ^ { 2 } m ) } )$ , we have
525
+
526
+ $$
527
+ \operatorname* { s u p } _ { x \in [ 0 , \nu ] } \left. f _ { j } ^ { ( T ) } ( x ) - \hat { f } _ { j } ( x ) \right. \leq O \left( \frac { \log ^ { L + 1 } m } { m ^ { 1 / 6 } } \cdot \frac { \nu } { n \delta } \right) .
528
+ $$
529
+
530
+ Proof. Without loss of generality, we may assume that the entry of the weight matrix $\begin{array} { r l } { \mathrm { B } _ { i , j } \sim } \end{array}$ $\mathcal { N } ( 0 , 2 / \mathfrak { c } )$ , where ${ \mathfrak { c } } = \Theta \left( m ^ { 1 / 3 } \right)$ . 6
531
+
532
+ For $k \in [ n + 1 ]$ , we denote by $\left| \mathbb { I } _ { k } \right|$ the length of the interval $\mathbb { I } _ { k } = \left[ \boldsymbol { x } ^ { ( k - 1 ) } , \boldsymbol { x } ^ { ( k ) } \right]$ . We set $c = { \mathfrak { c } } =$ $m ^ { 1 / 3 }$ in Theorem 2, with probability at least $1 - e ^ { - \Omega ( \log ^ { 2 } m ) }$ , we have
533
+
534
+ $$
535
+ \operatorname* { s u p } _ { x \in \mathbb { I } _ { k } } \left. f _ { j } ^ { ( T ) } ( x ) - \tilde { f } _ { j } ^ { ( T ) } ( x ) \right. \leq C _ { j } \frac { \log ^ { L + 1 } m } { m ^ { 1 / 6 } } \left( \operatorname* { s u p } _ { k \in [ n + 1 ] } \left. x ^ { ( k ) } - x ^ { ( k - 1 ) } \right. \right) = C _ { j } \frac { \log ^ { L + 1 } m } { m ^ { 1 / 6 } } \mathcal { T }
536
+ $$
537
+
538
+ where $C _ { j }$ is a constant, and $\begin{array} { r } { \mathcal { T } : = \operatorname* { s u p } _ { k \in [ n + 1 ] } \left| x ^ { ( k ) } - x ^ { ( k - 1 ) } \right| } \end{array}$ . Here we set $\begin{array} { r } { \varepsilon : = C _ { j } \frac { \log ^ { L + 1 } m } { m ^ { 1 / 6 } } \mathcal { T } } \end{array}$
539
+
540
+ Note that $f _ { j } ^ { ( T ) } ( x ^ { ( k - 1 ) } ) = \hat { f } _ { j } ( x ^ { ( k - 1 ) } )$ and $f _ { j } ^ { ( T ) } ( x ^ { ( k ) } ) = \hat { f } _ { j } ( x ^ { ( k ) } )$ , by eq. (85) we have
541
+
542
+ $$
543
+ \left| \tilde { f } _ { j } ^ { ( T ) } ( x ^ { ( k - 1 ) } ) - \hat { f } _ { j } ( x ^ { ( k - 1 ) } ) \right| \le \varepsilon \quad \mathrm { ~ a n d ~ } \quad \left| \tilde { f } _ { j } ^ { ( T ) } ( x ^ { ( k ) } ) - \hat { f } _ { j } ( x ^ { ( k ) } ) \right| \le \varepsilon .
544
+ $$
545
+
546
+ Note that the piecewise linear function $\hat { f } _ { j }$ linearly connects $\left( x ^ { ( k - 1 ) } , \hat { f } _ { j } ( x ^ { ( k - 1 ) } ) \right)$ and $\Big ( x ^ { ( k ) } , \hat { f } _ { j } ( x ^ { ( k ) } ) \Big )$ . Thus, the following inequality holds.
547
+
548
+ $$
549
+ \operatorname* { s u p } _ { x \in \mathbb { I } _ { k } } \left. \tilde { f } _ { j } ^ { ( T ) } ( x ) - \hat { f } _ { j } ( x ) \right. \leq \varepsilon
550
+ $$
551
+
552
+ We use eq. (85) and eq. (87) to see that
553
+
554
+ $$
555
+ \operatorname* { s u p } _ { x \in \mathbb { I } _ { k } } \left. f _ { j } ^ { ( T ) } ( x ) - \hat { f } _ { j } ( x ) \right. \leq \operatorname* { s u p } _ { x \in \mathbb { I } _ { k } } \left. f _ { j } ^ { ( T ) } ( x ) - \tilde { f } _ { j } ^ { ( T ) } ( x ) \right. + \operatorname* { s u p } _ { x \in \mathbb { I } _ { k } } \left. \tilde { f } _ { j } ^ { ( T ) } ( x ) - \hat { f } _ { j } ( x ) \right. \leq 2 \varepsilon .
556
+ $$
557
+
558
+ Note that $\varepsilon$ is not dependent on $k$ . Thus, we have
559
+
560
+ $$
561
+ \operatorname* { s u p } _ { x \in [ 0 , \nu ] } \left. f _ { j } ^ { ( T ) } ( x ) - \hat { f } _ { j } ( x ) \right. \leq 2 \varepsilon .
562
+ $$
563
+
564
+ Next, we evaluate $\begin{array} { r } { \mathcal { T } = \operatorname* { s u p } _ { k \in [ n + 1 ] } \left| x ^ { ( k ) } - x ^ { ( k - 1 ) } \right| . } \end{array}$ Recall that the training dataset $\{ x ^ { ( k ) } \} _ { k \in [ n ] }$ is generated from the uniform distribution in the interval $[ 0 , \nu ]$ . We denote by $\mu : = n / \nu$ the density of training samples. In this setting, it is well known that for every $r > 0$ $( r < \nu )$ , the number of training samples in the interval $[ 0 , r ]$ follows the Poisson distribution with mean $\mu r$ , then the sequence of inter-sample distances is independent and identically distributed exponential random variables having mean $1 / \mu \left( = \textstyle { \frac { \nu } { n } } \right)$ (Daley & Vere-Jones, 2007). Define $\Delta$ to be the above exponential distribution having mean $\nu / n$ , which is the inter-sample distance. Then, using Markov’s inequality, for $\tau > 0$ , we have
565
+
566
+ $$
567
+ \mathbb { P } [ \Delta \ge \tau ] \le \frac { \mathbb { E } [ \Delta ] } { \tau } = \frac { \nu } { n \tau } .
568
+ $$
569
+
570
+ $\textstyle { \tau : = { \frac { \nu } { n \tau } } }$ $1 - \delta$
571
+
572
+ $$
573
+ \mathcal { T } \leq \frac { \nu } { n \delta } .
574
+ $$
575
+
576
+ Combining this with eq. (89), with probability at least $1 - ( \delta + e ^ { - \Omega ( \log ^ { 2 } m ) } )$ , we have
577
+
578
+ $$
579
+ \operatorname* { s u p } _ { x \in [ 0 , \nu ] } \left. f _ { j } ^ { ( T ) } ( x ) - \hat { f } _ { j } ( x ) \right. \leq 2 C _ { j } \frac { \log ^ { L + 1 } m } { m ^ { 1 / 6 } } \mathcal { T } \leq 2 C _ { j } \frac { \log ^ { L + 1 } m } { m ^ { 1 / 6 } } \frac { \nu } { n \delta } .
580
+ $$
581
+
582
+ We complete the proof of the Lemma 5.
583
+
584
+ Lemma 6. Suppose $f _ { j } ^ { * } ( x )$ is a $C ^ { 1 }$ - class function on $[ 0 , \nu ]$ and $\hat { f } _ { j } ( x )$ is the linear interpolation of the data points $\{ \left( \boldsymbol { x } ^ { ( i ) } , \boldsymbol { f } _ { j } ^ { * } ( \boldsymbol { x } ^ { ( i ) } ) \right) \} _ { i \in [ n ] }$ . For $\delta \in ( 0 , 1 / 2 ]$ , with probability at least $1 - \delta$ , we have
585
+
586
+ $$
587
+ \operatorname* { s u p } _ { x \in [ 0 , \nu ] } \left| \hat { f } _ { j } ( x ) - f _ { j } ^ { * } ( x ) \right| \leq O \left( \frac { \nu } { n \delta } \right) .
588
+ $$
589
+
590
+ Proof. We use $f _ { j } ^ { * } { ' } ( x )$ to denote the first derivative of $f _ { j } ^ { * } ( x )$ . Since $f _ { j } ^ { * }$ is a $C ^ { 1 }$ - class function on the compact set $[ 0 , \nu ]$ , $f _ { j } ^ { * \prime }$ is a bounded function. Thus, we can define $\mathcal { S } ^ { ( k ) }$ and $s$ as follows:
591
+
592
+ $$
593
+ S ^ { ( k ) } : = \operatorname* { s u p } _ { x \in \mathbb { I } _ { k } } \left| f _ { j } ^ { * \prime } ( x ) \right| , \quad S : = \operatorname* { s u p } _ { k \in [ n + 1 ] } S ^ { ( k ) } .
594
+ $$
595
+
596
+ Since $f _ { j } ^ { * } ( x )$ and $\hat { f } _ { j } ( x )$ are continuous functions, there exists ${ \mathfrak { h } } ^ { ( k ) } ( 0 \leq { \mathfrak { h } } ^ { ( k ) } \leq x ^ { ( k ) } - x ^ { ( k - 1 ) } )$ such that
597
+
598
+ $$
599
+ \operatorname* { s u p } _ { x \in I _ { k } } \left| f _ { j } ^ { * } ( x ) - \hat { f } _ { j } ( x ) \right| = \left| f _ { j } ^ { * } ( x ^ { ( k - 1 ) } + \mathfrak { h } _ { k } ) - \hat { f } _ { j } ( x ^ { ( k - 1 ) } + \mathfrak { h } _ { k } ) \right| .
600
+ $$
601
+
602
+ By the mean value theorem, there exists a real number ${ \mathfrak { c } } ^ { ( k ) } \in \mathbb { I } _ { k }$ such that,
603
+
604
+ $$
605
+ \hat { f } _ { j } ( x ^ { ( k - 1 ) } + \mathfrak { h } ^ { ( k ) } ) = f _ { j } ^ { * \prime } ( \mathfrak { c } ^ { ( k ) } ) \mathfrak { h } ^ { ( k ) } + f _ { j } ^ { * } ( x ^ { ( k - 1 ) } ) .
606
+ $$
607
+
608
+ Note that by the definition of $\hat { f } _ { j }$ , we have $f _ { j } ^ { * } ( x ^ { ( k - 1 ) } ) = { \hat { f } } _ { j } ( x ^ { ( k - 1 ) } )$ , therefore, we also have that
609
+
610
+ $$
611
+ \begin{array} { r l } { \Big | f _ { j } ^ { * } \big ( x ^ { ( k - 1 ) } + \mathfrak { h } ^ { ( k ) } \big ) - \hat { f } _ { j } \big ( x ^ { ( k - 1 ) } + \mathfrak { h } ^ { ( k ) } \big ) \Big | = \Big | f _ { j } ^ { * } \big ( x ^ { ( k - 1 ) } + \mathfrak { h } ^ { ( k ) } \big ) - f _ { j } ^ { * } \big ( x ^ { ( k - 1 ) } \big ) - f _ { j } ^ { * \prime } \big ( \mathfrak { c } ^ { ( k ) } \big ) \mathfrak { h } ^ { ( k ) } \Big | ^ { 2 } } & { \quad \mathrm { ~ f ~ o ~ r ~ } \quad \mathfrak { z } _ { j } ^ { * } = 0 , } \\ & { \le \displaystyle \int _ { x ^ { ( k - 1 ) } } ^ { x ^ { ( k - 1 ) } + \mathfrak { h } ^ { ( k ) } } \Big | f _ { j } ^ { * \prime } \big ( x \big ) - f _ { j } ^ { * \prime } \big ( \mathfrak { c } ^ { ( k ) } \big ) \Big | d \mathfrak { x } } \\ & { \le 2 \mathfrak { h } ^ { ( k ) } \mathcal { S } ^ { ( k ) } . } \end{array}
612
+ $$
613
+
614
+ By considering whole interval $[ 0 , \nu ]$ , we have
615
+
616
+ $$
617
+ \operatorname* { s u p } _ { x \in [ 0 , \nu ] } \left| \hat { f } _ { j } ( x ) - f _ { j } ^ { * } ( x ) \right| = \operatorname* { s u p } _ { k \in [ n + 1 ] } \bigg ( \operatorname* { s u p } _ { x \in I _ { k } } \left| f _ { j } ^ { * } ( x ) - \hat { f } _ { j } ( x ) \right| \bigg ) \leq 2 7 \mathcal S
618
+ $$
619
+
620
+ Now we apply the estimate of $\tau$ from eq. (91). We may therefore rewrite eq. (100) as
621
+
622
+ $$
623
+ \operatorname* { s u p } _ { x \in [ 0 , \nu ] } \left| \hat { f } _ { j } ( x ) - f _ { j } ^ { * } ( x ) \right| \leq O \left( \frac { \nu } { n \delta } \right) .
624
+ $$
625
+
626
+ We complete the proof of Lemma 6.
627
+
628
+ # Proof of Theorem 4 (Generalization)
629
+
630
+ Proof. From eq. (89) and eq. (93), with probability at least $1 - ( \delta + e ^ { - \Omega ( \log ^ { 2 } m ) } )$ , we have for every $j = 1 , 2 , \cdots , c$ ,
631
+
632
+ $$
633
+ \begin{array} { r l r } & { } & { \bigg \vert f _ { j } ^ { ( T ) } ( x ) - f _ { j } ^ { * } ( x ) \bigg \vert \leq \bigg \vert f _ { j } ^ { ( T ) } ( x ) - \hat { f } _ { j } ( x ) \bigg \vert + \bigg \vert \hat { f } _ { j } ( x ) - f _ { j } ^ { * } ( x ) \bigg \vert } \\ & { } & { \leq C _ { j } \frac { \nu } { n \delta } \left( 1 + \frac { \log ^ { L + 1 } m } { m ^ { 1 / 6 } } \right) \qquad ( \forall x \in [ 0 , \nu ] ) . } \end{array}
634
+ $$
635
+
636
+ Using the triangle inequality, this gives
637
+
638
+ $$
639
+ \begin{array} { r l r } & { } & { \ell \left( f _ { j } ^ { ( T ) } ( x ) , y \right) = \displaystyle \frac { 1 } { 2 } \left\| f ^ { ( T ) } ( x ) - f ^ { * } ( x ) \right\| _ { 2 } ^ { 2 } = \displaystyle \frac { 1 } { 2 } \sum _ { j = 1 } ^ { c } \left\| f _ { j } ^ { ( T ) } ( x ) - f _ { j } ^ { * } ( x ) \right\| ^ { 2 } } \\ & { } & { \leq \displaystyle \frac { 1 } { 2 } C ^ { \prime 2 } c \frac { \nu ^ { 2 } } { n ^ { 2 } \delta ^ { 2 } } \left( 1 + \frac { \log ^ { L + 1 } m } { m ^ { 1 / 6 } } \right) ^ { 2 } \quad \mathrm { ( } \forall x \in [ 0 , \nu ] \mathrm { ) } . } \end{array}
640
+ $$
641
+
642
+ where $C ^ { \prime } : = \operatorname* { m a x } _ { j = 1 , \cdots , c } C _ { j }$
643
+
644
+ Thus, we have the following estimate:
645
+
646
+ With probability at least $1 - ( \delta + e ^ { - \Omega ( \log ^ { 2 } m ) } )$ , we have
647
+
648
+ $$
649
+ \begin{array} { r l } { \mathbb { E } _ { ( x , y ) \sim \mathcal { D } } \left[ \ell \left( f ^ { ( T ) } ( x ) , y \right) \right] = } & { \frac { 1 } { \nu } \int _ { 0 } ^ { \nu } \frac { 1 } { 2 } \left\| f ^ { ( T ) } ( x ) - f ^ { * } ( x ) \right\| ^ { 2 } d x } \\ { \leq } & { \frac { 1 } { 2 } C ^ { \prime 2 } c \frac { \nu ^ { 2 } } { n ^ { 2 } \delta ^ { 2 } } \left( 1 + \frac { \log ^ { L + 1 } m } { m ^ { 1 / 6 } } \right) ^ { 2 } . } \end{array}
650
+ $$
651
+
652
+ We complete the proof.
parse/train/HJx0U64FwS/HJx0U64FwS_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HJx0U64FwS/HJx0U64FwS_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HJx0U64FwS/HJx0U64FwS_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/RmuXDtjDhG/RmuXDtjDhG.md ADDED
@@ -0,0 +1,292 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Causal Abstractions of Neural Networks
2
+
3
+ Atticus Geigerβˆ—, Hanson Luβˆ—, Thomas Icard, and Christopher Potts Stanford Stanford, CA 94305-2150 {atticusg, hansonlu, icard, cgpotts}@stanford.edu
4
+
5
+ # Abstract
6
+
7
+ Structural analysis methods (e.g., probing and feature attribution) are increasingly important tools for neural network analysis. We propose a new structural analysis method grounded in a formal theory of causal abstraction that provides rich characterizations of model-internal representations and their roles in input/output behavior. In this method, neural representations are aligned with variables in interpretable causal models, and then interchange interventions are used to experimentally verify that the neural representations have the causal properties of their aligned variables. We apply this method in a case study to analyze neural models trained on Multiply Quantified Natural Language Inference (MQNLI) corpus, a highly complex NLI dataset that was constructed with a tree-structured natural logic causal model. We discover that a BERT-based model with state-of-the-art performance successfully realizes parts of the natural logic model’s causal structure, whereas a simpler baseline model fails to show any such structure, demonstrating that BERT representations encode the compositional structure of MQNLI.
8
+
9
+ # 1 Introduction
10
+
11
+ Explainability and interpretability have long been central issues for neural networks, and they have taken on renewed importance as such models are now ubiquitous in research and technology. Recent structural evaluation methods seek to reveal the internal structure of these β€œblack box” models. Structural methods include probes, attributions (feature importance methods), and interventions (manipulations of model-internal states). These methods can complement standard behavioral techniques (e.g., performance on gold evaluation sets), and they can yield insights into how and why models make the predictions they do. However, these tools have their limitations, and it has often been assumed that more ambitious and systematic causal analysis of such models is beyond reach.
12
+
13
+ Although there is a sense in which neural networks are β€œblack boxes”, they have the virtue of being completely closed and controlled systems. This means that standard empirical challenges of causal inference due to lack of observability simply do not arise. The challenge is rather to identify high-level causal regularities that abstract away from irrelevant (but arbitrarily observable and manipulable) low-level details. Our contribution in this paper is to show that this challenge can be met. Drawing on recent innovations in the formal theory of causal abstraction [1, 2, 5, 22], we offer a methodology for meaningful causal explanations of neural network behavior.
14
+
15
+ Our methodology causal abstraction analysis2 consists of three stages. (1) Formulate a hypothesis by defining a causal model that might explain network behavior. Candidate causal models can be naturally adapted from theoretical and empirical modeling work in linguistics and cognitive sciences. (2) Search for an alignment between neural representations in the network and variables in the high-level causal model. (3) Verify experimentally that the neural representations have the same causal properties as their aligned high-level variables using the interchange intervention method of Geiger et al. [11].
16
+
17
+ As a case study, we apply this methodology to LSTM-based and BERT-based natural language inference (NLI) models trained on the logically complex Multiply Quantified NLI (MQNLI) dataset of Geiger et al. [10]. This challenging dataset was constructed with a tree-structured natural logic causal model [17, 29, 14]. Our BERT-based model has the structure of a standard NLI classifier, and yet it is able to perform well on MQNLI $( 8 8 \% )$ , a result Geiger et al. achieved only with highly customized task-specific models. By contrast, our LSTM-based model is much less successful $(46 \% )$ .
18
+
19
+ The obvious scientific question in this case study is what drives the success of the BERT-based model on this challenging task. To answer this we employ our methodology. (1) We formulate hypotheses by defining simplified variants of the natural logic causal model. (2) We search over potential alignments between neural representations in BERT and variables in our high-level causal models. (3) We perform interchange interventions on the BERT model for each alignment. We find that our BERT model partially realizes the causal structure of the natural logic causal model; crucially, the LSTM model does not. High-level causal explanation for system behavior is often considered a gold standard for interpretability, one that may be thought quixotic for complex neural models [16]. The point of our case study is to show that this high standard can be achieved.
20
+
21
+ We conclude by comparing our methodology to probing and the attribution method of integrated gradients [27]. We argue probing is unable to provide a causal characterization of models. We show formally that attribution methods do measure causal properties, and in that way they are similar to the tool of interchange interventions. However, our methodology of causal abstraction analysis provides a framework for systematically measuring and aggregating such causal properties in order to evaluate a precise hypothesis about abstract causal structure.
22
+
23
+ # 2 Related Work
24
+
25
+ Probes Probes are generally supervised models trained on the internal representations of networks with the goal of determining what those internal representations encode [7, 13, 20, 28]. Probes are fundamentally unable to directly measure causal properties of neural representations, and Ravichander et al. [21], Elazar et al. [9], and Geiger et al. [11] have argued that probes are limited in their ability to provide even indirect evidence of causal properties.
26
+
27
+ We now present an analytic example in which probing identifies seemingly crucial information in representations that have no causal impact on behavior. We assume the structure of the simple addition network $N _ { + }$ in Figure 1. For our embedding, we simply map every integer $i$ in $\mathbb { N } _ { 9 }$ to the 1-dimensional vector [i]. The weight matrices are
28
+
29
+ $$
30
+ W _ { 1 } = { \left( \begin{array} { l } { 1 } \\ { 1 } \\ { 0 } \end{array} \right) } \quad W _ { 2 } = { \left( \begin{array} { l } { 1 } \\ { 1 } \\ { 1 } \end{array} \right) } \quad W _ { 3 } = { \left( \begin{array} { l } { 0 } \\ { 0 } \\ { 1 } \end{array} \right) } \quad \mathbf { w } = { \left( \begin{array} { l } { 0 } \\ { 1 } \\ { 0 } \end{array} \right) }
31
+ $$
32
+
33
+ The output for an input sequence $\mathbf { x } = ( i , j , k )$ is given by $\left( \mathbf { x } W _ { 1 } ; \mathbf { x } W _ { 2 } ; \mathbf { x } W _ { 3 } \right) \mathbf { w } .$ .
34
+
35
+ In this network, $\mathbf { x } W _ { 1 }$ perfectly encodes $i + j$ , and $\mathbf { x } W _ { 3 }$ perfectly encodes $k$ . Thus, the identity model probe will be perfect in probing those representations for this information. However, neither representation plays a causal role in the network behavior; only $\mathbf { x } W _ { 2 }$ contributes to the output.
36
+
37
+ Attribution Methods Attribution methods aim to quantify the degree to which a network representation contributes to the output prediction of the model, for a specific example or set of examples [3, 24, 26, 27, 32]. In contrast to probing, the well known integrated gradients method (IG) can be given an unambiguous causal interpretation. Following [27] we define the vector $I G ( \mathbf { x } )$ , for an input $\mathbf { x }$ relative to a baseline b, to have ith component $I G _ { i } ( \mathbf { x } )$ given by the expression on the left:
38
+
39
+ $$
40
+ \left( x _ { i } - b _ { i } \right) \cdot \int _ { \alpha = 0 } ^ { 1 } \frac { \partial F ( \alpha \mathbf { x } + ( 1 - \alpha ) \mathbf { b } ) } { \partial x _ { i } } d \alpha = \left( x _ { i } - b _ { i } \right) \cdot \int _ { \alpha = 0 } ^ { 1 } \operatorname* { l i m } _ { \epsilon \to 0 } \frac { F ( \mathbf { x } ^ { \alpha , \epsilon } ) - F ( \mathbf { x } ^ { \alpha } ) } { \epsilon } d \alpha
41
+ $$
42
+
43
+ Abbreviating the weighted average $\alpha { \mathbf { x } } + ( 1 - \alpha ) { \mathbf { b } }$ by $\mathbf { x } ^ { \alpha }$ , letting $\mathbf { x } ^ { \alpha , \epsilon }$ be the vector that differs from $\mathbf { x } ^ { \alpha }$ in that the ith coordinate is increased by $\epsilon$ , and then expanding the definition of partial derivative, this can be written in the form given on the right. The difference $F ( \mathbf { x } ^ { \alpha , \epsilon } ) - F ( \mathbf { x } ^ { \alpha } )$ is known in the (a) The causal model $C _ { + }$ (right) that first computes $S _ { 1 } = X + Y$ and $W = Z$ , before computing the final output $S _ { 2 } = W + S _ { 1 }$ aligned with the neural network $N _ { + }$ (left) with $L _ { 1 }$ highlighted as the hypothesized location encoding $S _ { 1 } = X + Y$ and $L _ { 2 }$ as the location encoding $W = Z$ .
44
+
45
+ ![](images/e49109d1609a9c954cfc856da49b3385d339e102b0552dcca5c4500592d22457.jpg)
46
+
47
+ ![](images/e335832fbeda3931c2fa44e5cf03db667825ddc14116bfb99e3fc5af8c82b463.jpg)
48
+
49
+ (b) Low-level neural network interchange intervention. The network processes two different input sequences. The neural representation created at $L _ { 1 }$ for input sequence $( 1 , 2 , { \bar { 3 } } )$ is replaced by the corresponding representation created for input sequence $( 4 , 5 , 6 )$ .
50
+
51
+ (c) High-level symbolic computation interchange intervention. The computation processes two different input sequences. The sum at $S _ { 1 }$ for input sequence $( 1 , 2 , 3 )$ is replaced by the corresponding representation created for input sequence $( 4 , 5 , 6 )$ .
52
+
53
+ Figure 1: Our motivating example where we hypothesis that a symbolic computation $C _ { + }$ is a causal abstraction of a neural network $N _ { + }$ under a particular alignment (top). We can experimentally confirm this hypothesis by conducting an interchange intervention on both the network and the computation with every pair of inputs and evaluating whether the intervened network and intervened computation have the same counterfactual output behavior. We schematically depict an interchange intervention on the network $N _ { + }$ (bottom left) and the computation $C _ { + }$ (bottom right) with the base input $( 1 , 2 , 3 )$ and the source input $( 4 , 5 , 6 )$ . Observe that the output of the intervened neural network matches the output of the intervened symbolic computation, so we have success for this pair of inputs.
54
+
55
+ causal literature as the (individual) causal effect on the output (e.g., [15]) of increasing neuron $i$ by $\epsilon$ relative to the fixed input $\mathbf { x } ^ { \alpha }$ . So, essentially, $I G _ { i } ( \mathbf { x } )$ is measuring the average β€œlimiting” causal effect of increasing neuron $i$ along the straight line from the baseline vector to the input vector $\mathbf { x }$ , weighted by the difference at $i$ between input and baseline. More recently, Chattopadhyay et al. [6] develop an attribution method that explicitly treats neural models as structured causal models and directly computes the individual causal effect of a feature to determine its attribution.
56
+
57
+ Attribution methods can measure causal properties, and, in that way, they are similar to the tool of interchange interventions. However, our methodology of causal abstraction analysis provides a framework for systematically measuring and aggregating such causal properties in order to evaluate a precise hypothesis about abstract causal structure.
58
+
59
+ Causal Abstraction Our goal is to evaluate whether the internal structure of a neural network realizes an abstract causal process. To concretize this, we turn to formal, broadly interventionist theories of causality [25, 19], in which causal processes are characterized by effects of interventions, and theories of abstraction [1, 2, 5, 22] where relationships between two causal processes are determined by the presence of systematic correspondences between the effects of interventions.
60
+
61
+ The notion of abstraction that we employ here is a relatively simple one called constructive abstraction [1]. Informally, a high-level model is a constructive abstraction of a low-level model if there is a way to partition the variables in the low-level model where each high-level variable can be assigned to a low-level partition cell, such that there is a systematic correspondence between interventions on the low-level partition cells and interventions on the high-level variables.
62
+
63
+ There are two properties of constructive abstraction that make it ideal for neural network analysis. First, the information content of partition cells of low-level variables can be determined by the high-level variables that they correspond to. For neural networks, the partition cells of low-level variables are sets of neurons, and our method supports reasoning at the level of vector representations (sets of neurons). Second, the causal dependencies between partitions of low-level variables are not necessarily preserved as causal dependencies between the high-level variables corresponding to these partitions. For example, the low-level model might be a fully connected neural network, whereas the high-level model might have much sparser connections. For neural network analysis, this means we can find causal abstractions that have far simpler causal structures than the underlying neural networks. We provide an example in the next section.
64
+
65
+ # 3 Causal Abstraction Analysis of Neural Networks
66
+
67
+ We now describe our methodology in more detail, illustrating the relevant concepts with an example of a neural network performing basic arithmetic. Specifically, suppose that we have a neural network $N _ { + }$ that takes in three vector representations $D _ { x } , D _ { y } , D _ { z }$ representing the integers $x , y .$ , and $z$ , and outputs the sum of the three inputs: $N _ { + } ( D _ { x } , D _ { y } , D _ { z } ) = x + y + z$ . We seek an informative causal explanation of this network’s behavior.
68
+
69
+ Formulating a Hypothesis A human performing this task might follow an algorithm in which they add together the first two numbers and then add that sum to the third number. We can hypothesize that the behavior of $N _ { + }$ is explained by this symbolic computation. Specifically, the network combines $D _ { x }$ and $D _ { y }$ to create an internal representation at some location $L _ { 1 }$ encoding $x + y$ ; it encodes $z$ at some location $L _ { 2 }$ ; and $L _ { 1 }$ and $L _ { 2 }$ are composed to encode $a + z$ at the location of the output representation. This hypothesis is given schematically in Figure 1a.
70
+
71
+ Following our methodology, we first define the causal model $C _ { + }$ in Figure 1a. Our informal hypothesis that a neural network’s behavior is explained by a simple algorithm can then be restated more formally: $C _ { + }$ is a constructive abstraction of the neural network $N _ { + }$ .
72
+
73
+ Alignment Search Now that we have hypothesized that the causal model $C _ { + }$ is a causal abstraction of the network $N _ { + }$ , the next step is to align the neural representations in $N _ { + }$ with the variables in $C _ { + }$ . The input embeddings $D _ { x }$ , $D _ { y }$ , and $D _ { z }$ must be aligned with the input variables $X , Y$ , and $Z$ and the output neuron $O$ must be aligned with the output variable $S _ { 2 }$ . That leaves the intermediate variables $S _ { 1 }$ and $W$ to be aligned with neural representations at some undetermined locations $L _ { 1 }$ and $L _ { 2 }$ . If this were an actual experiment (see below), we would perform an alignment search to consider many possible values for $L _ { 1 }$ and $L _ { 2 }$ . Each alignment is a hypothesis about where the network $N _ { + }$ stores and uses the values of $S _ { 1 }$ and $W$ . For the example, we assume the alignment in Figure 1a.
74
+
75
+ Interchange Interventions Finally, for a given alignment, we experimentally determine whether the neural representations at $L _ { 1 }$ and $L _ { 2 }$ have the same causal properties as $S _ { 1 }$ and $W$ . The basic experimental technique is an interchange intervention, in which a neural representation created during prediction on a β€œbase” input is interchanged with the representation created for a β€œsource” input [11]. We now show informally that this method can be used to prove that the causal model $C _ { + }$ is a constructive abstraction of the neural network $N _ { + }$ (Appendix $\mathbf { G }$ has formal details).
76
+
77
+ We first intervene on the causal model. Consider two inputs a, $\mathbf { a } ^ { \prime } \in ( \mathbb { N } _ { 9 } ) ^ { 3 }$ where $\mathbb { N } _ { 9 }$ is the set of integers 0–9. Let $\mathbf { a } = ( x , y , z )$ be the base input and $\mathbf { a } ^ { \prime } = \left( x ^ { \prime } , y ^ { \prime } , z ^ { \prime } \right)$ be the source input. Define
78
+
79
+ $$
80
+ C _ { + } ^ { S _ { 1 } \mathbf { a } ^ { \prime } } ( \mathbf { a } ) = x ^ { \prime } + y ^ { \prime } + z
81
+ $$
82
+
83
+ to be the output provided by $C _ { + }$ when $S _ { 1 }$ , the variable representing the intermediate sum, is intervened on and set to the value $x ^ { \prime } + y ^ { \prime }$ . Thus, for example, if the base input is $C _ { + } ( 1 , 2 , 3 ) = 6$ , and the source input is ${ \bf a } ^ { \prime } = ( 4 , 5 , 6 )$ , then $C _ { + } ^ { S _ { 1 } \mathbf { a } ^ { \prime } } ( 1 , 2 , 3 ) = 4 + 5 + 3 = 1 2$ . This process is depicted in Figure 1c. Next, we intervene on the neural network $N _ { + }$ . Let $\mathbf { D }$ be an embedding space that provides unique representations for $\mathbb { N } _ { 9 }$ , and consider two inputs $\boldsymbol { D } = ( D _ { x } , D _ { y } , D _ { z } )$ and $D ^ { \prime } = \bar { ( } D _ { x ^ { \prime } } , D _ { y ^ { \prime } } , \bar { D _ { z ^ { \prime } } } )$ , where all $D _ { i }$ and $D _ { i ^ { \prime } }$ are drawn from $\mathbf { D }$ . In parallel with (1), define
84
+
85
+ $$
86
+ N _ { + } ^ { L _ { 1 } D ^ { \prime } } ( D )
87
+ $$
88
+
89
+ to be the output provided by $N _ { + }$ processing the input $D$ when the representation at location $L _ { 1 }$ is replaced with the representation at location $L _ { 1 }$ created when $N _ { + }$ is processing the input $D ^ { \prime }$ . This process is depicted in Figure 1b.
90
+
91
+ With these two definitions, we can define what it means to test the hypothesis that $N _ { + }$ computes $x + y$ at position $L _ { 1 }$ . Where $D _ { \mathbf { a } }$ is an embedding for a and $D _ { \mathbf { a ^ { \prime } } }$ is an embedding for $\mathbf { a } ^ { \prime }$ , we test:
92
+
93
+ $$
94
+ C _ { + } ^ { S _ { 1 } \mathbf { a } ^ { \prime } } ( \mathbf { a } ) = N _ { + } ^ { L _ { 1 } D _ { \mathbf { a } ^ { \prime } } } ( D _ { \mathbf { a } } )
95
+ $$
96
+
97
+ If this equality holds for all source and base inputs a and $\mathbf { a } ^ { \prime }$ , then we can conclude that, for every intervention on $S _ { 1 }$ , there is an equivalent intervention on $L _ { 1 }$ . If we can establish a corresponding claim for $W$ and $L _ { 2 }$ , then we have shown that $C _ { + }$ is a constructive abstraction of $N _ { + }$ , since the inputs’ relationships are established by our embedding and there are no other interventions on $C _ { + }$ to test.
98
+
99
+ Analysis Suppose that all of our intervention experiments verify our hypothesis that $C _ { + }$ is a constructive abstraction of $N _ { + }$ with variables $S _ { 1 }$ and $W$ aligned to neural representations at $L _ { 1 }$ and $L _ { 2 }$ . This explains network behavior by resolving two crucial questions.
100
+
101
+ First, we learn what information is encoded in the representations $L _ { 1 }$ and $L _ { 2 }$ . Neural representations encode the values of the high-level variables they are aligned with. The location $L _ { 1 }$ encodes the variable $S _ { 1 }$ and the location $L _ { 2 }$ encodes the variable $W$ . This is similar to what probing achieves. However, our method is crucially different from probing. In probing, information content is established through purely correlational properties, meaning a neural representation with no causal role in network behavior can be successfully probed, as we showed in Section 2. In causal abstraction analysis, information content is established through purely causal properties, ensuring that the neural representation is actually implicated in model behavior.
102
+
103
+ Second, we learn what causal role $L _ { 1 }$ and $L _ { 2 }$ play in network behavior. Neural representations play a parallel causal role to their aligned high-level variables. At the location $L _ { 1 }$ , $D _ { x }$ and $D _ { y }$ are composed to form a neural representation with content $x + y$ that is then composed with $L _ { 2 }$ to create an output. The fact that $S _ { 1 }$ doesn’t depend on $z$ tells us that while $L _ { 1 }$ depends on $D _ { z }$ and representations at $L _ { 1 }$ may even correlate with $z$ , the information about $z$ is not causally represented at $L _ { 1 }$ . At the location $L _ { 2 }$ , the value of $z$ is simply repeated and then composed with $L _ { 1 }$ to create a final output.
104
+
105
+ Our method assigns causally impactful information content, but also identifies the abstract causal structure along which representations are composed. It thus encompasses and improves on both correlational (probing) and attribution methods.
106
+
107
+ # 4 The Natural Language Inference Task and Models
108
+
109
+ Multiply Quantified NLI Dataset The Multiply Quantified NLI (MQNLI) dataset of Geiger et al. [10] contains templatically generated English-language NLI examples that involve very complex interactions between quantifiers, negation, and modifiers. We provide a few examples in Figure 2b; the empty-string symbol $\varepsilon$ ensures perfect alignments at the token level both between premises and hypotheses and across all examples.
110
+
111
+ The MQNLI examples are labeled using an algorithmic implementation of the natural logic of MacCartney and Manning [18] over tree structures, and MQNLI has train/dev/test splits that vary in their difficulty. In the hardest setting, the train set is provably the minimal set of examples required to ensure that the dev and test sets can be perfectly solved by a simple symbolic model; in the easier settings, the train set redundantly encodes necessary information, which might allow a model to perform perfectly in assessment by memorization despite not having found a truly general solution. For a fuller review of the dataset, see Appendix A.
112
+
113
+ MQNLI is a fitting benchmark given our goals for a few reasons. First, we can focus on the hardest splits that can be generated, which will stress-test our NLI architectures in a standard behavioral way. Second, the MQNLI labeling algorithm itself suggests an appropriate causal model of the data-generating process. Figure 2a summarizes this model in tree form, and it is presented in full detail in Geiger et al. [10]. This allows us to rigorously assess whether a neural network has learned to implement variants of this causal model. The complexity of the MQNLI examples creates many opportunities to do this in linguistically interesting ways.
114
+
115
+ ![](images/0cb3d60b262f4095536b9b0c886f7ffd2120462b64ededc66c7b1b8302c8ce7b.jpg)
116
+ (a) The causal structure of the high-level natural logic causal model $C _ { N a t L o g }$ that performs inference on MQNLI. The superscripts $P$ and $H$ stand for β€˜premise’ and β€˜hypothesis’ and the subscripts β€˜Subj’ and β€˜Obj’ stand for β€˜Subject’ and β€˜Object’. The node labels are used to explain the experimental results in Section 5
117
+
118
+ $\varepsilon$ every $\varepsilon$ baker $\varepsilon \varepsilon \varepsilon$ eats $\varepsilon$ no $\varepsilon$ bread
119
+ contradiction
120
+ $\varepsilon$ no angry baker $\varepsilon \varepsilon \varepsilon$ eats $\varepsilon$ no $\varepsilon$ bread
121
+ $\varepsilon$ every silly professor $\varepsilon \varepsilon \varepsilon$ sells not every $\varepsilon$ book
122
+ neutral
123
+ $\varepsilon$ every silly professor $\varepsilon \varepsilon \varepsilon$ sells not every $\varepsilon$ chair
124
+ not every sad baker $\varepsilon \varepsilon$ fairly admits not every odd idea
125
+ entailment
126
+ $\varepsilon$ some $\varepsilon$ baker does not $\varepsilon$ admits $\varepsilon$ no $\varepsilon$ idea
127
+
128
+ (b) MQNLI examples. The $\varepsilon$ token serves as padding (but still attended to by the model) and ensures a perfect alignment between both premises and hypotheses and across all examples. It is semantically an identity element.
129
+
130
+ <table><tr><td>Model</td><td>Train</td><td>Dev</td><td>Test</td></tr><tr><td>CBoW</td><td>88.04</td><td>54.18</td><td>53.99</td></tr><tr><td>TreeNN</td><td>67.01</td><td>54.01</td><td>53.73</td></tr><tr><td>CompTreeNN</td><td>99.65</td><td>80.17</td><td>80.21</td></tr><tr><td>BiLSTM</td><td>99.42</td><td>46.41</td><td>46.32</td></tr><tr><td>BERT</td><td>99.99</td><td>88.25</td><td>88.50</td></tr></table>
131
+
132
+ (c) MQNLI results. The first three models are from Geiger et al. 10, where the CompTreeNN is a taskspecific model not suitable for general NLI and functions as an idealized upperbound. Our results show that BERT-based models can surpass this without such alignments.
133
+
134
+ Figure 2: The natural logic causal model (top), MQNLI examples (left) and MQNLI results (right).
135
+
136
+ Models We evaluated two models on MQNLI: a randomly initialized multilayered Bidirectional LSTM (BiLSTM; [23]) and a BERT-based classifier model in which the English bert-base parameters [8] are fine-tuned on the MQNLI train set. Output predictions are computed using the final representation above the [CLS] token. Models are trained to predict the relation of every pair of aligned phrases in Figure 2a. Additional model and training details are given in Appendix B.
137
+
138
+ Results Figure 2c summarizes the results of our BERT and BiLSTM models on the hardest fair generalization task Geiger et al. [10] creates with MQNLI. We find that our BiLSTM model is not able to learn this task, and that our BERT model is able to achieve high accuracy. The only models in Geiger et al. [10] able to achieve above $50 \%$ accuracy were task-specific tree-structured models with the structure of the tree in Figure 2a. Thus, our BERT-based model is the first general-purpose model able to achieve good performance on this hard generalization task. Without pretraining, the BERT-based model achieves ${ \approx } 4 9 . 1 \%$ , confirming that pretraining is essential, as expected.
139
+
140
+ A natural hypothesis is that the BERT-based model achieves this high performance because it has in effect induced some approximation to the tree-like structure of the data-generating process in its own internal layers. With causal abstraction analysis, we are actually in a position to test this hypothesis.
141
+
142
+ # 5 A Case Study in Structural Neural Network Analysis
143
+
144
+ # 5.1 Causal Abstractions of Neural NLI models
145
+
146
+ Formulating Our Hypotheses We proceed just as we did for the simple motivating example in Section 3, except that we are now seeking to assess the extent to which the natural logic algebra in Figure 2a is a causal abstraction of the trained neural models in the above section.
147
+
148
+ The hallmark of Figure 2a is that it defines an alignment between premise and hypothesis at both lexical and phrasal levels. This pway. For a given non-leaf node $N$ mits us to run intein Figure 2a, let $C _ { N a t L o g } ^ { N }$ interventions in a nbe a submodel of $\boldsymbol { C } _ { N a t L o g }$ compositionalthat computes the relation between the aligned phrases under and uses them to compute the final output relation between premise and hypothesis. For example, let $C _ { N a t L o g } ^ { \mathrm { N P _ { O b j } } }$ be the submodel of $\boldsymbol { C } _ { N a t L o g }$ that computes the relation between the two aligned object noun phrases and then uses that relation in computing the final output relation between premise and hypothesis (see Figure 3 right). We would like to ask whether our trained neural models also compute this relation between object noun phrases and use it to make a final prediction. We can pose this same question for other nodes which correspond to a pair of aligned subphrases.
149
+
150
+ ![](images/091a108d0acc3c4c953e97f27659d8f183813696f3f905ddb228de930349f9aa.jpg)
151
+ Figure 3: A BERT-based NLI model (left) aligned with the natural logic causal model $C _ { N a t L o g } ^ { \mathrm { N P _ { O b j } } }$ (right), where the fourth vector representation above the $\mathrm { A d j } _ { \mathrm { O b j } } ^ { P }$ token in the network is aligned with $\mathrm { N P _ { O b j } }$ , the variable representing the relation between the object noun phrases. When analyzing a sample of 1000 examples, we found a subset of 383 where $C _ { N a t L o g } ^ { \mathrm { N P _ { O b j } } }$ is an abstraction of $N _ { N L I }$ under this alignment.
152
+
153
+ nd the variable causal model., we consider a $N$ . In principle, any location in the network could bry hypothesis in this space would be intractable. t of hidden representations based on the identity of he right oneus, for each. The BERT $N _ { N L I }$ $N$ $C _ { N a t L o g } ^ { N }$ ${ C _ { N a t L o g } ^ { N } } ^ { N }$ $N$ model we use has 12 Transformer layers [30], meaning that there are 12 hidden representations for each input token. Each alignment search considers aligning the intermediate high-level variable with dozens of possible locations in the grid of BERT representations. Specifically, the following locations were considered for each $N$ :
154
+
155
+ $\mathrm { Q _ { S u b j } }$ , $\mathrm { \Delta \ A j _ { \mathrm { S u b j } } }$ , $\mathrm { N _ { S u b j } }$ , Neg, Adv, V, $\mathrm { Q _ { O b j } }$ , $\mathrm { \Delta A d j _ { O b j } }$ , $\mathrm { N _ { O b j } }$ : hidden representations above the two descendant leaf tokens. β€’ $\mathrm { N P _ { S u b j } }$ , VP, and $\mathrm { N P _ { O b j } }$ : same but above the four descendant leaf tokens.
156
+
157
+ $\mathrm { Q P _ { O b j } }$ idden representations above . $\mathrm { Q } _ { \mathrm { 0 b j } } ^ { P }$ $\mathrm { Q } _ { \mathrm { O b j } } ^ { H }$
158
+ . NegP: same but above $\mathrm { N e g } ^ { P }$ and $\mathrm { N e g } ^ { H }$ .
159
+ All nodes (for BERT): same but above
160
+ [CLS] and [SEP].
161
+
162
+ For each alignment considered, we performed a full causal abstraction analysis. We report the results from the best alignments in Table 1, and we summarize the results from all alignments in Appendix D.
163
+
164
+ Interchange Interventions We first focus on our high-level causal models. Consider a non-leaf node $N$ from Figure 2a and two input token sequences $e$ and $e ^ { \prime }$ from MQNLI. Define
165
+
166
+ $$
167
+ C _ { N a t L o g } ^ { N e ^ { \prime } } ( e )
168
+ $$
169
+
170
+ to be the output provided by the causal mode $C _ { N a t L o g } ^ { N }$ when processing input $e$ where the relation $N$ is changed to the relation between those subphrases
171
+ in $e ^ { \prime }$ . For example, simplifying for the sake of exposition, suppose $e$ is (some happy baker, no $\epsilon$
172
+ baker), which has output label contradiction, and suppose $e ^ { \prime }$ is (every happy person, some happy
173
+ aker), which has output label , the noun phrase relation is e ntailment.ailment; in e wish to intervene on the noun, it is reverse entailment. Thus, $N = \mathrm { N P }$ . In the
174
+ $e$ $e ^ { \prime }$ $C _ { N a t L o g } ^ { \mathrm { N P } e ^ { \prime } } ( e )$ $e$ to entailment while holding everything else about $e$ constant. This
175
+ results in the output label for the example (some happy person, no $\epsilon$ baker), which is neutral.
176
+
177
+ Next, we consider interventions in a neural model $N _ { N L I }$ . Define
178
+
179
+ $$
180
+ N _ { N L I } ^ { L e ^ { \prime } } ( e )
181
+ $$
182
+
183
+ Table 1: Largest subsets of examples on which specific models $C _ { N a t L o g } ^ { N }$ are abstractions of an LSTM and BERT model trained on MQNLI. We record the size of such subsets as a percentage of the total 1000 examples. On this subset, we know that the neural models compute a representation of the relation between the aligned subphrases under $N$ and use this information to make a final prediction.
184
+
185
+ <table><tr><td>Nodesadded</td><td>BERT</td></tr><tr><td>Adsubj</td><td>30.5</td></tr><tr><td>Nsub</td><td>37.2</td></tr><tr><td>Negp</td><td>14.9</td></tr><tr><td>AdvP</td><td>26.9</td></tr><tr><td>VP</td><td>35.6</td></tr><tr><td>Q</td><td>16.2</td></tr><tr><td>Adjsubj H</td><td>13.4</td></tr><tr><td>Nsub</td><td>12.0</td></tr><tr><td>NegH</td><td>34.4</td></tr><tr><td>AdvH</td><td>16.2</td></tr><tr><td>VH</td><td>13.4</td></tr><tr><td>Qbi</td><td>12.0</td></tr></table>
186
+
187
+ <table><tr><td>Causal Model</td><td>LSTM</td><td>BERT</td></tr><tr><td>Qsubj</td><td>0.7</td><td>13.1</td></tr><tr><td>Qobj</td><td>0.9</td><td>7.3</td></tr><tr><td>Neg</td><td>0.7</td><td>21.4</td></tr><tr><td>Adjsubj</td><td>2.5</td><td>6.7</td></tr><tr><td>Nsubj</td><td>1.2</td><td>5.5</td></tr><tr><td>Adjobj</td><td>0.9</td><td>14.1</td></tr><tr><td>Nobj</td><td>0.7</td><td>8.8</td></tr><tr><td>V</td><td>0.4</td><td>11.4</td></tr><tr><td>Adv</td><td>1.4</td><td>7.9</td></tr><tr><td>NPsubj</td><td>1.0</td><td>6.7</td></tr><tr><td>NPobj</td><td>0.7</td><td>38.3</td></tr><tr><td>VP</td><td>0.4</td><td>11.4</td></tr><tr><td>NegP</td><td>0.9</td><td>11.8</td></tr></table>
188
+
189
+ <table><tr><td>Nodes removed</td><td>BERT</td></tr><tr><td></td><td>31.9</td></tr><tr><td>A N</td><td>15.7</td></tr><tr><td></td><td>33.8</td></tr><tr><td>A</td><td>15.8 31.9</td></tr><tr><td></td><td>14.1</td></tr><tr><td>A</td><td>32.2</td></tr><tr><td></td><td>31.6</td></tr><tr><td></td><td>8.8</td></tr><tr><td></td><td></td></tr><tr><td>,Abj</td><td>32.1</td></tr></table>
190
+
191
+ (a) Main results (clique sizes) for nonleaf nodes of the tree in Figure 2a. The hypothesis we have most evidence for is that the BERT model computes a representation of the $\mathrm { N P _ { O b j } }$ node with the alignment shown in Figure 3. Remarkably, with 1000 examples sampled, we found a subset of 383 examples where $C _ { N a t L o g } ^ { \mathrm { N P _ { O b j } } }$ is an abstraction of BERT.
192
+
193
+ (b) Detailed results (clique sizes) for Altein a β€œneighborhood” around the model $C _ { N a t L o g } ^ { \mathrm { N P _ { O b j } } }$ causal models, which has a single intermediate variable composed of four lexical items (See Figure 3). At left, we have alternative causal models where one or two of those lexical items are removed from the composition. At right, we have alternatives obtained by adding one lexical item to the composition. We observe that no alternative hypothesis about causal structure considered has more evidence.
194
+
195
+ to be the output provided by $N _ { N L I }$ processing the input $e$ when the representation at location $L$ is replaced with the representation at location $L$ created when $N _ { N L I }$ is processing $e ^ { \prime }$ . This is exactly the process depicted in Figure 1, except now the networks are the complex trained networks of Section 4.
196
+
197
+ Our hypothesis linking Figure 2a with a model $N _ { N L I }$ takes the same form as (3). The causal model $C _ { N a t L o g } ^ { N }$ is a constructive abstraction of $N _ { N L I }$ when, for some representation location $L$ , it is the case that, for all MQNLI examples $e$ and $e ^ { \prime }$ , we have
198
+
199
+ $$
200
+ C _ { N a t L o g } ^ { N e ^ { \prime } } ( e ) = N _ { N L I } ^ { L e ^ { \prime } } ( e )
201
+ $$
202
+
203
+ This asserts a correspondence between interventions on the representations at $L$ in network $N _ { N L I }$ and interventions on the variable $N$ in the causal model $C _ { N a t L o g } ^ { N }$ . If it holds, then $N _ { N L I }$ computes the relation between the aligned phrases under the node $N$ and uses this information to compute the relation between the premise and hypothesis.
204
+
205
+ We call a pair of examples $( e , e ^ { \prime } )$ successful if it satisfies equation (6), i.e., interventions in both the target causal model and neural model produce equal results. In addition, to isolate the causal impact of our interventions, we specifically focus on pairs $( e , e ^ { \prime } )$ for which performing the intervention produces a different output value than without the intervention. We call a pair $( e , e ^ { \prime } )$ impactful if:
206
+
207
+ $$
208
+ C _ { N a t L o g } ^ { N e ^ { \prime } } ( e ) \neq C _ { N a t L o g } ^ { N } ( e )
209
+ $$
210
+
211
+ Quantifying Partial Success Equation (6) universally quantifies over all examples. We do not expect this kind of perfect correspondence to emerge in practice for real problems: neural network training is often approximate and variable in nature, and even our best model does not achieve perfect performance. However, we can still ask how to find the largest subset of MQNLI on which $C _ { N a t L o g } ^ { N }$ (6) holds for a given model. To do this, we seekis an abstraction of our neural models, for each non-leaf node N in CNatLog.
212
+
213
+ More specifically, considering each example in MQNLI as a vertex in a graph, we add an undirected edge between two examples $e _ { i }$ and $e _ { j }$ if and only if both the ordered pairs $( e _ { i } , e _ { j } )$ and $( e _ { j } , e _ { i } )$ satisfy (6). In other words, if and only if all ex $C _ { N a t L o g } ^ { N }$ isin n abstraction of a neural model on a subset of examples form a clique. $S$ of MQNLI $S$
214
+
215
+ The number of interventions we need to run scales quadratically with the number of inputs we consider, so we sample 1000 MQNLI examples, producing a total of $1 0 0 0 ^ { 2 } = 1 \mathbf { M }$ ordered pairs. We only consider examples for which the neural network outputs a correct label. For each node $N$ and each of its corresponding neural network locations $L$ , we perform interventions on all of these pairs.
216
+
217
+ We choose to measure the largest clique with at least one impactful edge, because (1) the causal abstraction relation holds with full force on that clique, but other measures such as the total number of connections lack this theoretical grounding, and (2) if a clique has at least one impactful edge, that guarantees the high-level variable is being used.
218
+
219
+ Results and Analysis For each target causal model node $N$ and neural network representation location $L$ , we construct a graph as described above with 1000 examples as vertices and add an edge between two examples $e _ { i }$ and $e _ { j }$ if and only if both $( e _ { i } , e _ { j } )$ and $( e _ { j } , e _ { i } )$ are successful. We then find the largest clique in this graph with at least one impactful edge and record its size.
220
+
221
+ Table 1a shows, for each causal model node $N$ , the maximum size of cliques found among all neural locations. With this stricter impactful criterion (as opposed to simply using intervention success), our results show that, for almost all nodes abstraction of BERT on a significant numb $N$ , our target causal model of examples in our datase $C _ { N a t L o g } ^ { \widetilde { N } }$ is indeed a causale subsets are much smaller for the BiLSTM model.
222
+
223
+ We also investigated alternative high-level causal structures that are not variants of $\boldsymbol { C } _ { N a t L o g }$ from Figure 2a. Specifically, we consider alternative models in a β€œneighborhood” around the model CNPObjNatLog that can be obtained by adding one leaf, or by removing one or two leaves to the composition. These results are in Table 1b. Remarkably, all of these alternative models result in smaller clique sizes, significantly so for many of them. This further supports the significance of our results.
224
+
225
+ This analysis is simtwo crucial differenis an abstraction of o the analysis of our hirst, for each variable , whereas in the addit $N$ othetical addition example in Section 3, ex, we are hypothesizing that the causal model example there was only one model. To inv ${ \dot { C } } _ { N a t L o g } ^ { N }$ $N _ { N L I }$
226
+ this difference, we take $N = \mathrm { N P _ { O b j } }$ as a paradigm case, as it is the model with the strongest results. (The results for other nodes are in Appendix D.) Second, we only achieved partial experimental success, whereas in the addition example we assumed complete success. Crucially, this means that the following analysis will be valid only on subsets of the input space on which the abstraction relation holds between NNLI and CNPObjNatLog.
227
+
228
+ We visualize the results of our intervention experiments for the node $\mathrm { N P _ { O b j } }$ in Figure 4. The alignment with the largest subset of inputs aligns the NPObj variable in CNPObjNatLog with the neural representation on the fourth layer of BERT above the $\mathrm { A d j } _ { \mathrm { O b j } } ^ { P }$ token (see Figure 3). Because neural representations encode the value of their aligned variables and play a parallel causal role to their high-level variables, we know that, on this subset of input examples, at the fourth neural representation above the $\mathrm { A d j } _ { \mathrm { O b j } } ^ { P }$ token, the four input embeddings for the object nouns and adjectives in the premise and hypothesis are composed to form a neural representation with information content of the relation between the object noun phrases in the premise and hypothesis. Then this representation is composed with the other input-embeddings to create an output representing the relation between the premise and hypothesis.
229
+
230
+ # 5.2 Comparison with Other Structural Analysis Methods
231
+
232
+ Probes We probed neural representation locations for the relation between aligned subexpressions on a subset of 12,800 randomly selected MQNLI examples. For a pair of aligned subexpressions below a node $N$ in Figure 2a, we probe the columns above the same set of restricted class of tokens as described in Section 5.1.
233
+
234
+ To evaluate these probes, we report accuracy as well as selectivity as defined by Hewitt and Liang [12]: probe accuracy minus control accuracy, where control accuracy is the train set accuracy of a probe with the same architecture but trained on a control task to factor out probe success that can be attributed to the probe model itself. Our control task is to learn a random mapping from node types to semantic relations; see Appendix C for full details on how this task was constructed.
235
+
236
+ ![](images/c313e3750ef3c4775c2304d720db7884b4f4d011c838d444e19be0b735a6a5ed.jpg)
237
+ Figure 4: Interchange intervention and probing results for the $\mathrm { N P _ { O b j } }$ position. Vertical axes denote layers of BERT and horizontal axes denote the token position of hidden representations. The intervention success rates reported here are calculated based on intervention experiments with a change in the output label. Clique sizes are reported as $\%$ of 1000 examples.
238
+
239
+ Figure 4 summarizes our probing results for $N = \mathrm { N P _ { O b j } }$ , along with corresponding interchange intervention results for comparison. Probes tell us that information about the relation between the aligned noun phrases is encoded in nearly all of the locations we considered, and using the selectivity metric does not result in any qualitative change. In contrast, our intervention heatmaps indicate only a small number of locations store this information in a causally relevant way. Clearly, our intervention experiments are far more discriminating than probes. Appendix D provides examples involving other variables along with the intervention experiments, where the general trend of interchange interventions being more discriminating holds.
240
+
241
+ Integrated Gradients Attribution methods that estimate feature importance can measure causal properties of neural representations, but a single feature importance method is an impoverished characterization of a representation’s role in network behavior. Whereas our interchange interventions gave us high-level information about how a neural representation is composed and what it is composed into, attribution methods simply tell us β€œhow much” a representation contributes to the network output on a give input. Moreover, intervention interchanges provide a rich, high-level characterization of causal structure on a space of inputs.
242
+
243
+ We use integrated gradients on our models to verify the intuitive hypothesis that if a premise and hypothesis differ by a single token, then the neural representations above that token should be more causally responsible for the network output than other representations. For example, given premise β€˜Every sleepy cat meows’ and hypothesis β€˜Some hungry cat meows’, the attributive modifier position is different and the rest are matched. The neural representations above the adjective tokens sleepy and hungry should be more important for the network output than others, because if those adjectives were the same, the example label would change from neutral to entailment. We summarize the results of our integrated gradient experiments in Appendix E, where we confirm our intuitive hypothesis.
244
+
245
+ # 6 Conclusion
246
+
247
+ We have introduced a methodology for deriving interpretable causal explanations of neural network behaviors, grounded in a formal theory of causal abstraction. The methodology involves first formulating a hypothesis in the form of a high-level, interpretable causal model, then searching for an alignment between the neural network and the causal model, and finally verifying experimentally that the neural representations encode the same causal properties and information content as the corresponding components of the high-level causal model. As a case study demonstrating the feasibility of the approach, we analyzed neural models trained on the semantically formidable MQNLI dataset. Guided by the intuition that success on this challenging task may call for a way of recapitulating the causal structure of the natural logic model that generates the MQNLI data, we were able to verify the hypothesis that a state-of-the-art BERT-based model partially realizes this structure, whereas baseline models that do not perform as well fail to do so. This suggestive case study demonstrates that our theoretically grounded methodology can work in practice.
248
+
249
+ # Acknowledgments and Disclosure of Funding
250
+
251
+ Our thanks to Amir Feder, Noah Goodman, Elisa Kreiss, Josh Rozner, Zhengxuan Wu, and our anonymous reviewers. This research is supported in part by grants from Facebook and Google.
252
+
253
+ References
254
+ [1] S. Beckers and J. Y. Halpern. Abstracting causal models. Proceedings of the AAAI Conference on Artificial Intelligence, 33(01):2678–2685, Jul. 2019. doi: 10.1609/aaai.v33i01.33012678. URL https://ojs.aaai.org/index.php/AAAI/article/view/4117.
255
+ [2] S. Beckers, F. Eberhardt, and J. Y. Halpern. Approximate causal abstractions. In R. P. Adams and V. Gogate, editors, Proceedings of The 35th Uncertainty in Artificial Intelligence Conference, volume 115 of Proceedings of Machine Learning Research, pages 606–615, Tel Aviv, Israel, 22–25 Jul 2020. PMLR. URL http://proceedings.mlr.press/v115/beckers20a.html.
256
+ [3] A. Binder, G. Montavon, S. Bach, K. MΓΌller, and W. Samek. Layer-wise relevance propagation for neural networks with local renormalization layers. CoRR, abs/1604.00825, 2016. URL http://arxiv.org/abs/1604.00825.
257
+ [4] S. Bongers, P. ForrΓ©, J. Peters, B. SchΓΆlkopf, and J. M. Mooij. Foundations of structural causal models with cycles and latent variables. arXiv.org preprint, arXiv:1611.06221v4 [stat.ME], Oct. 2020. URL https://arxiv.org/abs/1611.06221v4.
258
+ [5] K. Chalupka, F. Eberhardt, and P. Perona. Multi-level cause-effect systems. In A. Gretton and C. C. Robert, editors, Proceedings of the 19th International Conference on Artificial Intelligence and Statistics, volume 51 of Proceedings of Machine Learning Research, pages 361–369, Cadiz, Spain, 09–11 May 2016. PMLR. URL http://proceedings.mlr.press/v51/chalupka16. html.
259
+ [6] A. Chattopadhyay, P. Manupriya, A. Sarkar, and V. N. Balasubramanian. Neural network attributions: A causal perspective. In K. Chaudhuri and R. Salakhutdinov, editors, Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pages 981–990, Long Beach, California, USA, 09–15 Jun 2019. PMLR. URL http://proceedings.mlr.press/v97/chattopadhyay19a.html.
260
+ [7] K. Clark, U. Khandelwal, O. Levy, and C. D. Manning. What does BERT look at? an analysis of BERT’s attention. In Proceedings of the 2019 ACL Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP, pages 276–286, Florence, Italy, Aug. 2019. Association for Computational Linguistics. doi: 10.18653/v1/W19-4828. URL https: //www.aclweb.org/anthology/W19-4828.
261
+ [8] J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171–4186, Minneapolis, Minnesota, June 2019. Association for Computational Linguistics. doi: 10.18653/v1/N19-1423. URL https://www.aclweb.org/anthology/N19-1423.
262
+ [9] Y. Elazar, S. Ravfogel, A. Jacovi, and Y. Goldberg. Amnesic probing: Behavioral explanation with amnesic counterfactuals. In Proceedings of the 2020 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP. Association for Computational Linguistics, Nov. 2020. doi: 10.18653/v1/W18-5426.
263
+ [10] A. Geiger, I. Cases, L. Karttunen, and C. Potts. Posing fair generalization tasks for natural language inference. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 4475–4485, Stroudsburg, PA, November 2019. Association for Computational Linguistics. doi: 10.18653/v1/D19-1456. URL https://www.aclweb.org/anthology/D19-1456.
264
+ [11] A. Geiger, K. Richardson, and C. Potts. Neural natural language inference models partially embed theories of lexical entailment and negation. In Proceedings of the Third BlackboxNLP Workshop on Analyzing and Interpreting Neural Networks for NLP, pages 163–173, Online, Nov. 2020. Association for Computational Linguistics. doi: 10.18653/v1/2020.blackboxnlp-1.16. URL https://www.aclweb.org/anthology/2020.blackboxnlp-1.16.
265
+ [12] J. Hewitt and P. Liang. Designing and interpreting probes with control tasks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 2733–2743, Hong Kong, China, Nov. 2019. Association for Computational Linguistics. doi: 10.18653/v1/D19-1275. URL https://www.aclweb.org/anthology/D19-1275.
266
+ [13] D. Hupkes, S. Bouwmeester, and R. FernΓ‘ndez. Analysing the potential of seq-to-seq models for incremental interpretation in task-oriented dialogue. In Proceedings of the 2018 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP, pages 165–174, Brussels, Belgium, Nov. 2018. Association for Computational Linguistics. doi: 10.18653/v1/ W18-5419. URL https://www.aclweb.org/anthology/W18-5419.
267
+ [14] T. F. Icard and L. S. Moss. Recent progress on monotonicity. Linguistic Issues in Language Technology, 9(7):1–31, January 2013.
268
+ [15] G. W. Imbens and D. B. Rubin. Causal inference in statistics, social, and biomedical sciences. Cambridge University Press, 2015.
269
+ [16] T. P. Lillicrap and K. P. Kording. What does it mean to understand a neural network?, 2019.
270
+ [17] B. MacCartney and C. D. Manning. Natural logic for textual inference. In Proceedings of the ACL-PASCAL Workshop on Textual Entailment and Paraphrasing, RTE ’07, pages 193–200, Stroudsburg, PA, USA, 2007. Association for Computational Linguistics. URL http://dl.acm.org/citation.cfm?id=1654536.1654575.
271
+ [18] B. MacCartney and C. D. Manning. An extended model of natural logic. In Proceedings of the Eight International Conference on Computational Semantics, pages 140–156, Tilburg, The Netherlands, Jan. 2009. Association for Computational Linguistics. URL https://www. aclweb.org/anthology/W09-3714.
272
+ [19] J. Pearl. Direct and indirect effects. In Proceedings of the Seventeenth Conference on Uncertainty in Artificial Intelligence, UAI’01, page 411–420, San Francisco, CA, USA, 2001. Morgan Kaufmann Publishers Inc. ISBN 1558608001.
273
+ [20] M. Peters, M. Neumann, L. Zettlemoyer, and W.-t. Yih. Dissecting contextual word embeddings: Architecture and representation. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 1499–1509, Brussels, Belgium, Oct.- Nov. 2018. Association for Computational Linguistics. doi: 10.18653/v1/D18-1179. URL https://www.aclweb.org/anthology/D18-1179.
274
+ [21] A. Ravichander, Y. Belinkov, and E. Hovy. Probing the probing paradigm: Does probing accuracy entail task relevance?, 2020.
275
+ [22] P. K. Rubenstein, S. Weichwald, S. Bongers, J. M. Mooij, D. Janzing, M. Grosse-Wentrup, and B. SchΓΆlkopf. Causal consistency of structural equation models. In Proceedings of the 33rd Conference on Uncertainty in Artificial Intelligence (UAI). Association for Uncertainty in Artificial Intelligence (AUAI), Aug. 2017. URL http://auai.org/uai2017/proceedings/ papers/11.pdf. \*equal contribution.
276
+ [23] M. Schuster and K. K. Paliwal. Bidirectional recurrent neural networks. IEEE transactions on Signal Processing, 45(11):2673–2681, 1997.
277
+ [24] A. Shrikumar, P. Greenside, A. Shcherbina, and A. Kundaje. Not just a black box: Learning important features through propagating activation differences. CoRR, abs/1605.01713, 2016. URL http://arxiv.org/abs/1605.01713.
278
+ [25] P. Spirtes, C. N. Glymour, and R. Scheines. Causation, Prediction, and Search. MIT Press, 2nd edition, 2001. ISBN 9780262194402.
279
+
280
+ [26] J. Springenberg, A. Dosovitskiy, T. Brox, and M. Riedmiller. Striving for simplicity: The all convolutional net. CoRR, 12 2014.
281
+
282
+ [27] M. Sundararajan, A. Taly, and Q. Yan. Axiomatic attribution for deep networks. In D. Precup and Y. W. Teh, editors, Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages 3319–3328, International Convention Centre, Sydney, Australia, 06–11 Aug 2017. PMLR. URL http://proceedings. mlr.press/v70/sundararajan17a.html.
283
+
284
+ [28] I. Tenney, D. Das, and E. Pavlick. BERT rediscovers the classical NLP pipeline. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 4593– 4601, Florence, Italy, July 2019. Association for Computational Linguistics. doi: 10.18653/v1/ P19-1452. URL https://www.aclweb.org/anthology/P19-1452.
285
+
286
+ [29] J. van Benthem. A brief history of natural logic. In M. Chakraborty, B. LΓΆwe, M. Nath Mitra, and S. Sarukki, editors, Logic, Navya-Nyaya and Applications: Homage to Bimal Matilal, 2008.
287
+
288
+ [30] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. u. Kaiser, and I. Polosukhin. Attention is all you need. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett, editors, Advances in Neural Information Processing Systems 30, pages 5998–6008. Curran Associates, Inc., 2017. URL http://papers.nips.cc/ paper/7181-attention-is-all-you-need.pdf.
289
+
290
+ [31] T. Wolf, L. Debut, V. Sanh, J. Chaumond, C. Delangue, A. Moi, P. Cistac, T. Rault, R. Louf, M. Funtowicz, and J. Brew. Huggingface’s transformers: State-of-the-art natural language processing. ArXiv, abs/1910.03771, 2019.
291
+
292
+ [32] M. D. Zeiler and R. Fergus. Visualizing and understanding convolutional networks. In D. Fleet, T. Pajdla, B. Schiele, and T. Tuytelaars, editors, Computer Vision – ECCV 2014, pages 818–833, Cham, 2014. Springer International Publishing. ISBN 978-3-319-10590-1.
parse/train/RmuXDtjDhG/RmuXDtjDhG_content_list.json ADDED
@@ -0,0 +1,1370 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Causal Abstractions of Neural Networks ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 253,
8
+ 122,
9
+ 745,
10
+ 147
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Atticus Geigerβˆ—, Hanson Luβˆ—, Thomas Icard, and Christopher Potts Stanford Stanford, CA 94305-2150 {atticusg, hansonlu, icard, cgpotts}@stanford.edu ",
17
+ "bbox": [
18
+ 271,
19
+ 195,
20
+ 728,
21
+ 253
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 462,
31
+ 287,
32
+ 535,
33
+ 304
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Structural analysis methods (e.g., probing and feature attribution) are increasingly important tools for neural network analysis. We propose a new structural analysis method grounded in a formal theory of causal abstraction that provides rich characterizations of model-internal representations and their roles in input/output behavior. In this method, neural representations are aligned with variables in interpretable causal models, and then interchange interventions are used to experimentally verify that the neural representations have the causal properties of their aligned variables. We apply this method in a case study to analyze neural models trained on Multiply Quantified Natural Language Inference (MQNLI) corpus, a highly complex NLI dataset that was constructed with a tree-structured natural logic causal model. We discover that a BERT-based model with state-of-the-art performance successfully realizes parts of the natural logic model’s causal structure, whereas a simpler baseline model fails to show any such structure, demonstrating that BERT representations encode the compositional structure of MQNLI. ",
40
+ "bbox": [
41
+ 233,
42
+ 320,
43
+ 766,
44
+ 513
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 Introduction ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 174,
54
+ 540,
55
+ 310,
56
+ 558
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Explainability and interpretability have long been central issues for neural networks, and they have taken on renewed importance as such models are now ubiquitous in research and technology. Recent structural evaluation methods seek to reveal the internal structure of these β€œblack box” models. Structural methods include probes, attributions (feature importance methods), and interventions (manipulations of model-internal states). These methods can complement standard behavioral techniques (e.g., performance on gold evaluation sets), and they can yield insights into how and why models make the predictions they do. However, these tools have their limitations, and it has often been assumed that more ambitious and systematic causal analysis of such models is beyond reach. ",
63
+ "bbox": [
64
+ 174,
65
+ 573,
66
+ 825,
67
+ 683
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Although there is a sense in which neural networks are β€œblack boxes”, they have the virtue of being completely closed and controlled systems. This means that standard empirical challenges of causal inference due to lack of observability simply do not arise. The challenge is rather to identify high-level causal regularities that abstract away from irrelevant (but arbitrarily observable and manipulable) low-level details. Our contribution in this paper is to show that this challenge can be met. Drawing on recent innovations in the formal theory of causal abstraction [1, 2, 5, 22], we offer a methodology for meaningful causal explanations of neural network behavior. ",
74
+ "bbox": [
75
+ 174,
76
+ 689,
77
+ 825,
78
+ 786
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Our methodology causal abstraction analysis2 consists of three stages. (1) Formulate a hypothesis by defining a causal model that might explain network behavior. Candidate causal models can be naturally adapted from theoretical and empirical modeling work in linguistics and cognitive sciences. (2) Search for an alignment between neural representations in the network and variables in the high-level causal model. (3) Verify experimentally that the neural representations have the same causal properties as their aligned high-level variables using the interchange intervention method of Geiger et al. [11]. ",
85
+ "bbox": [
86
+ 174,
87
+ 792,
88
+ 825,
89
+ 849
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 176,
98
+ 90,
99
+ 823,
100
+ 133
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "As a case study, we apply this methodology to LSTM-based and BERT-based natural language inference (NLI) models trained on the logically complex Multiply Quantified NLI (MQNLI) dataset of Geiger et al. [10]. This challenging dataset was constructed with a tree-structured natural logic causal model [17, 29, 14]. Our BERT-based model has the structure of a standard NLI classifier, and yet it is able to perform well on MQNLI $( 8 8 \\% )$ , a result Geiger et al. achieved only with highly customized task-specific models. By contrast, our LSTM-based model is much less successful $(46 \\% )$ . ",
107
+ "bbox": [
108
+ 173,
109
+ 138,
110
+ 825,
111
+ 223
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "The obvious scientific question in this case study is what drives the success of the BERT-based model on this challenging task. To answer this we employ our methodology. (1) We formulate hypotheses by defining simplified variants of the natural logic causal model. (2) We search over potential alignments between neural representations in BERT and variables in our high-level causal models. (3) We perform interchange interventions on the BERT model for each alignment. We find that our BERT model partially realizes the causal structure of the natural logic causal model; crucially, the LSTM model does not. High-level causal explanation for system behavior is often considered a gold standard for interpretability, one that may be thought quixotic for complex neural models [16]. The point of our case study is to show that this high standard can be achieved. ",
118
+ "bbox": [
119
+ 173,
120
+ 228,
121
+ 825,
122
+ 354
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "We conclude by comparing our methodology to probing and the attribution method of integrated gradients [27]. We argue probing is unable to provide a causal characterization of models. We show formally that attribution methods do measure causal properties, and in that way they are similar to the tool of interchange interventions. However, our methodology of causal abstraction analysis provides a framework for systematically measuring and aggregating such causal properties in order to evaluate a precise hypothesis about abstract causal structure. ",
129
+ "bbox": [
130
+ 174,
131
+ 359,
132
+ 825,
133
+ 443
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "2 Related Work ",
140
+ "text_level": 1,
141
+ "bbox": [
142
+ 174,
143
+ 462,
144
+ 321,
145
+ 479
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "Probes Probes are generally supervised models trained on the internal representations of networks with the goal of determining what those internal representations encode [7, 13, 20, 28]. Probes are fundamentally unable to directly measure causal properties of neural representations, and Ravichander et al. [21], Elazar et al. [9], and Geiger et al. [11] have argued that probes are limited in their ability to provide even indirect evidence of causal properties. ",
152
+ "bbox": [
153
+ 173,
154
+ 493,
155
+ 825,
156
+ 564
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "We now present an analytic example in which probing identifies seemingly crucial information in representations that have no causal impact on behavior. We assume the structure of the simple addition network $N _ { + }$ in Figure 1. For our embedding, we simply map every integer $i$ in $\\mathbb { N } _ { 9 }$ to the 1-dimensional vector [i]. The weight matrices are ",
163
+ "bbox": [
164
+ 173,
165
+ 569,
166
+ 825,
167
+ 625
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "equation",
173
+ "img_path": "images/f4fb190d061a2d6bf4f25a8d3bc06bae1190dcd637ae68107dc3fd6ff0f722f1.jpg",
174
+ "text": "$$\nW _ { 1 } = { \\left( \\begin{array} { l } { 1 } \\\\ { 1 } \\\\ { 0 } \\end{array} \\right) } \\quad W _ { 2 } = { \\left( \\begin{array} { l } { 1 } \\\\ { 1 } \\\\ { 1 } \\end{array} \\right) } \\quad W _ { 3 } = { \\left( \\begin{array} { l } { 0 } \\\\ { 0 } \\\\ { 1 } \\end{array} \\right) } \\quad \\mathbf { w } = { \\left( \\begin{array} { l } { 0 } \\\\ { 1 } \\\\ { 0 } \\end{array} \\right) }\n$$",
175
+ "text_format": "latex",
176
+ "bbox": [
177
+ 285,
178
+ 628,
179
+ 712,
180
+ 672
181
+ ],
182
+ "page_idx": 1
183
+ },
184
+ {
185
+ "type": "text",
186
+ "text": "The output for an input sequence $\\mathbf { x } = ( i , j , k )$ is given by $\\left( \\mathbf { x } W _ { 1 } ; \\mathbf { x } W _ { 2 } ; \\mathbf { x } W _ { 3 } \\right) \\mathbf { w } .$ . ",
187
+ "bbox": [
188
+ 174,
189
+ 676,
190
+ 700,
191
+ 693
192
+ ],
193
+ "page_idx": 1
194
+ },
195
+ {
196
+ "type": "text",
197
+ "text": "In this network, $\\mathbf { x } W _ { 1 }$ perfectly encodes $i + j$ , and $\\mathbf { x } W _ { 3 }$ perfectly encodes $k$ . Thus, the identity model probe will be perfect in probing those representations for this information. However, neither representation plays a causal role in the network behavior; only $\\mathbf { x } W _ { 2 }$ contributes to the output. ",
198
+ "bbox": [
199
+ 174,
200
+ 696,
201
+ 825,
202
+ 739
203
+ ],
204
+ "page_idx": 1
205
+ },
206
+ {
207
+ "type": "text",
208
+ "text": "Attribution Methods Attribution methods aim to quantify the degree to which a network representation contributes to the output prediction of the model, for a specific example or set of examples [3, 24, 26, 27, 32]. In contrast to probing, the well known integrated gradients method (IG) can be given an unambiguous causal interpretation. Following [27] we define the vector $I G ( \\mathbf { x } )$ , for an input $\\mathbf { x }$ relative to a baseline b, to have ith component $I G _ { i } ( \\mathbf { x } )$ given by the expression on the left: ",
209
+ "bbox": [
210
+ 173,
211
+ 753,
212
+ 825,
213
+ 824
214
+ ],
215
+ "page_idx": 1
216
+ },
217
+ {
218
+ "type": "equation",
219
+ "img_path": "images/39732885457ef5cb11d4d2c4eafaf50b2afb79af77929088cc288e40fc0ff5ab.jpg",
220
+ "text": "$$\n\\left( x _ { i } - b _ { i } \\right) \\cdot \\int _ { \\alpha = 0 } ^ { 1 } \\frac { \\partial F ( \\alpha \\mathbf { x } + ( 1 - \\alpha ) \\mathbf { b } ) } { \\partial x _ { i } } d \\alpha = \\left( x _ { i } - b _ { i } \\right) \\cdot \\int _ { \\alpha = 0 } ^ { 1 } \\operatorname* { l i m } _ { \\epsilon \\to 0 } \\frac { F ( \\mathbf { x } ^ { \\alpha , \\epsilon } ) - F ( \\mathbf { x } ^ { \\alpha } ) } { \\epsilon } d \\alpha\n$$",
221
+ "text_format": "latex",
222
+ "bbox": [
223
+ 200,
224
+ 829,
225
+ 797,
226
+ 866
227
+ ],
228
+ "page_idx": 1
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "Abbreviating the weighted average $\\alpha { \\mathbf { x } } + ( 1 - \\alpha ) { \\mathbf { b } }$ by $\\mathbf { x } ^ { \\alpha }$ , letting $\\mathbf { x } ^ { \\alpha , \\epsilon }$ be the vector that differs from $\\mathbf { x } ^ { \\alpha }$ in that the ith coordinate is increased by $\\epsilon$ , and then expanding the definition of partial derivative, this can be written in the form given on the right. The difference $F ( \\mathbf { x } ^ { \\alpha , \\epsilon } ) - F ( \\mathbf { x } ^ { \\alpha } )$ is known in the (a) The causal model $C _ { + }$ (right) that first computes $S _ { 1 } = X + Y$ and $W = Z$ , before computing the final output $S _ { 2 } = W + S _ { 1 }$ aligned with the neural network $N _ { + }$ (left) with $L _ { 1 }$ highlighted as the hypothesized location encoding $S _ { 1 } = X + Y$ and $L _ { 2 }$ as the location encoding $W = Z$ . ",
233
+ "bbox": [
234
+ 174,
235
+ 868,
236
+ 825,
237
+ 912
238
+ ],
239
+ "page_idx": 1
240
+ },
241
+ {
242
+ "type": "image",
243
+ "img_path": "images/e49109d1609a9c954cfc856da49b3385d339e102b0552dcca5c4500592d22457.jpg",
244
+ "image_caption": [],
245
+ "image_footnote": [],
246
+ "bbox": [
247
+ 302,
248
+ 87,
249
+ 694,
250
+ 200
251
+ ],
252
+ "page_idx": 2
253
+ },
254
+ {
255
+ "type": "text",
256
+ "text": "",
257
+ "bbox": [
258
+ 186,
259
+ 209,
260
+ 810,
261
+ 248
262
+ ],
263
+ "page_idx": 2
264
+ },
265
+ {
266
+ "type": "image",
267
+ "img_path": "images/e335832fbeda3931c2fa44e5cf03db667825ddc14116bfb99e3fc5af8c82b463.jpg",
268
+ "image_caption": [],
269
+ "image_footnote": [],
270
+ "bbox": [
271
+ 176,
272
+ 250,
273
+ 826,
274
+ 372
275
+ ],
276
+ "page_idx": 2
277
+ },
278
+ {
279
+ "type": "text",
280
+ "text": "(b) Low-level neural network interchange intervention. The network processes two different input sequences. The neural representation created at $L _ { 1 }$ for input sequence $( 1 , 2 , { \\bar { 3 } } )$ is replaced by the corresponding representation created for input sequence $( 4 , 5 , 6 )$ . ",
281
+ "bbox": [
282
+ 173,
283
+ 382,
284
+ 490,
285
+ 446
286
+ ],
287
+ "page_idx": 2
288
+ },
289
+ {
290
+ "type": "text",
291
+ "text": "(c) High-level symbolic computation interchange intervention. The computation processes two different input sequences. The sum at $S _ { 1 }$ for input sequence $( 1 , 2 , 3 )$ is replaced by the corresponding representation created for input sequence $( 4 , 5 , 6 )$ . ",
292
+ "bbox": [
293
+ 509,
294
+ 382,
295
+ 825,
296
+ 446
297
+ ],
298
+ "page_idx": 2
299
+ },
300
+ {
301
+ "type": "text",
302
+ "text": "Figure 1: Our motivating example where we hypothesis that a symbolic computation $C _ { + }$ is a causal abstraction of a neural network $N _ { + }$ under a particular alignment (top). We can experimentally confirm this hypothesis by conducting an interchange intervention on both the network and the computation with every pair of inputs and evaluating whether the intervened network and intervened computation have the same counterfactual output behavior. We schematically depict an interchange intervention on the network $N _ { + }$ (bottom left) and the computation $C _ { + }$ (bottom right) with the base input $( 1 , 2 , 3 )$ and the source input $( 4 , 5 , 6 )$ . Observe that the output of the intervened neural network matches the output of the intervened symbolic computation, so we have success for this pair of inputs. ",
303
+ "bbox": [
304
+ 173,
305
+ 454,
306
+ 825,
307
+ 565
308
+ ],
309
+ "page_idx": 2
310
+ },
311
+ {
312
+ "type": "text",
313
+ "text": "causal literature as the (individual) causal effect on the output (e.g., [15]) of increasing neuron $i$ by $\\epsilon$ relative to the fixed input $\\mathbf { x } ^ { \\alpha }$ . So, essentially, $I G _ { i } ( \\mathbf { x } )$ is measuring the average β€œlimiting” causal effect of increasing neuron $i$ along the straight line from the baseline vector to the input vector $\\mathbf { x }$ , weighted by the difference at $i$ between input and baseline. More recently, Chattopadhyay et al. [6] develop an attribution method that explicitly treats neural models as structured causal models and directly computes the individual causal effect of a feature to determine its attribution. ",
314
+ "bbox": [
315
+ 174,
316
+ 598,
317
+ 825,
318
+ 683
319
+ ],
320
+ "page_idx": 2
321
+ },
322
+ {
323
+ "type": "text",
324
+ "text": "Attribution methods can measure causal properties, and, in that way, they are similar to the tool of interchange interventions. However, our methodology of causal abstraction analysis provides a framework for systematically measuring and aggregating such causal properties in order to evaluate a precise hypothesis about abstract causal structure. ",
325
+ "bbox": [
326
+ 174,
327
+ 688,
328
+ 825,
329
+ 743
330
+ ],
331
+ "page_idx": 2
332
+ },
333
+ {
334
+ "type": "text",
335
+ "text": "Causal Abstraction Our goal is to evaluate whether the internal structure of a neural network realizes an abstract causal process. To concretize this, we turn to formal, broadly interventionist theories of causality [25, 19], in which causal processes are characterized by effects of interventions, and theories of abstraction [1, 2, 5, 22] where relationships between two causal processes are determined by the presence of systematic correspondences between the effects of interventions. ",
336
+ "bbox": [
337
+ 174,
338
+ 766,
339
+ 825,
340
+ 835
341
+ ],
342
+ "page_idx": 2
343
+ },
344
+ {
345
+ "type": "text",
346
+ "text": "The notion of abstraction that we employ here is a relatively simple one called constructive abstraction [1]. Informally, a high-level model is a constructive abstraction of a low-level model if there is a way to partition the variables in the low-level model where each high-level variable can be assigned to a low-level partition cell, such that there is a systematic correspondence between interventions on the low-level partition cells and interventions on the high-level variables. ",
347
+ "bbox": [
348
+ 174,
349
+ 842,
350
+ 823,
351
+ 911
352
+ ],
353
+ "page_idx": 2
354
+ },
355
+ {
356
+ "type": "text",
357
+ "text": "There are two properties of constructive abstraction that make it ideal for neural network analysis. First, the information content of partition cells of low-level variables can be determined by the high-level variables that they correspond to. For neural networks, the partition cells of low-level variables are sets of neurons, and our method supports reasoning at the level of vector representations (sets of neurons). Second, the causal dependencies between partitions of low-level variables are not necessarily preserved as causal dependencies between the high-level variables corresponding to these partitions. For example, the low-level model might be a fully connected neural network, whereas the high-level model might have much sparser connections. For neural network analysis, this means we can find causal abstractions that have far simpler causal structures than the underlying neural networks. We provide an example in the next section. ",
358
+ "bbox": [
359
+ 173,
360
+ 90,
361
+ 825,
362
+ 229
363
+ ],
364
+ "page_idx": 3
365
+ },
366
+ {
367
+ "type": "text",
368
+ "text": "3 Causal Abstraction Analysis of Neural Networks ",
369
+ "text_level": 1,
370
+ "bbox": [
371
+ 173,
372
+ 251,
373
+ 611,
374
+ 268
375
+ ],
376
+ "page_idx": 3
377
+ },
378
+ {
379
+ "type": "text",
380
+ "text": "We now describe our methodology in more detail, illustrating the relevant concepts with an example of a neural network performing basic arithmetic. Specifically, suppose that we have a neural network $N _ { + }$ that takes in three vector representations $D _ { x } , D _ { y } , D _ { z }$ representing the integers $x , y .$ , and $z$ , and outputs the sum of the three inputs: $N _ { + } ( D _ { x } , D _ { y } , D _ { z } ) = x + y + z$ . We seek an informative causal explanation of this network’s behavior. ",
381
+ "bbox": [
382
+ 174,
383
+ 282,
384
+ 825,
385
+ 353
386
+ ],
387
+ "page_idx": 3
388
+ },
389
+ {
390
+ "type": "text",
391
+ "text": "Formulating a Hypothesis A human performing this task might follow an algorithm in which they add together the first two numbers and then add that sum to the third number. We can hypothesize that the behavior of $N _ { + }$ is explained by this symbolic computation. Specifically, the network combines $D _ { x }$ and $D _ { y }$ to create an internal representation at some location $L _ { 1 }$ encoding $x + y$ ; it encodes $z$ at some location $L _ { 2 }$ ; and $L _ { 1 }$ and $L _ { 2 }$ are composed to encode $a + z$ at the location of the output representation. This hypothesis is given schematically in Figure 1a. ",
392
+ "bbox": [
393
+ 174,
394
+ 369,
395
+ 825,
396
+ 453
397
+ ],
398
+ "page_idx": 3
399
+ },
400
+ {
401
+ "type": "text",
402
+ "text": "Following our methodology, we first define the causal model $C _ { + }$ in Figure 1a. Our informal hypothesis that a neural network’s behavior is explained by a simple algorithm can then be restated more formally: $C _ { + }$ is a constructive abstraction of the neural network $N _ { + }$ . ",
403
+ "bbox": [
404
+ 174,
405
+ 459,
406
+ 825,
407
+ 501
408
+ ],
409
+ "page_idx": 3
410
+ },
411
+ {
412
+ "type": "text",
413
+ "text": "Alignment Search Now that we have hypothesized that the causal model $C _ { + }$ is a causal abstraction of the network $N _ { + }$ , the next step is to align the neural representations in $N _ { + }$ with the variables in $C _ { + }$ . The input embeddings $D _ { x }$ , $D _ { y }$ , and $D _ { z }$ must be aligned with the input variables $X , Y$ , and $Z$ and the output neuron $O$ must be aligned with the output variable $S _ { 2 }$ . That leaves the intermediate variables $S _ { 1 }$ and $W$ to be aligned with neural representations at some undetermined locations $L _ { 1 }$ and $L _ { 2 }$ . If this were an actual experiment (see below), we would perform an alignment search to consider many possible values for $L _ { 1 }$ and $L _ { 2 }$ . Each alignment is a hypothesis about where the network $N _ { + }$ stores and uses the values of $S _ { 1 }$ and $W$ . For the example, we assume the alignment in Figure 1a. ",
414
+ "bbox": [
415
+ 173,
416
+ 517,
417
+ 825,
418
+ 630
419
+ ],
420
+ "page_idx": 3
421
+ },
422
+ {
423
+ "type": "text",
424
+ "text": "Interchange Interventions Finally, for a given alignment, we experimentally determine whether the neural representations at $L _ { 1 }$ and $L _ { 2 }$ have the same causal properties as $S _ { 1 }$ and $W$ . The basic experimental technique is an interchange intervention, in which a neural representation created during prediction on a β€œbase” input is interchanged with the representation created for a β€œsource” input [11]. We now show informally that this method can be used to prove that the causal model $C _ { + }$ is a constructive abstraction of the neural network $N _ { + }$ (Appendix $\\mathbf { G }$ has formal details). ",
425
+ "bbox": [
426
+ 173,
427
+ 645,
428
+ 825,
429
+ 729
430
+ ],
431
+ "page_idx": 3
432
+ },
433
+ {
434
+ "type": "text",
435
+ "text": "We first intervene on the causal model. Consider two inputs a, $\\mathbf { a } ^ { \\prime } \\in ( \\mathbb { N } _ { 9 } ) ^ { 3 }$ where $\\mathbb { N } _ { 9 }$ is the set of integers 0–9. Let $\\mathbf { a } = ( x , y , z )$ be the base input and $\\mathbf { a } ^ { \\prime } = \\left( x ^ { \\prime } , y ^ { \\prime } , z ^ { \\prime } \\right)$ be the source input. Define ",
436
+ "bbox": [
437
+ 174,
438
+ 734,
439
+ 823,
440
+ 763
441
+ ],
442
+ "page_idx": 3
443
+ },
444
+ {
445
+ "type": "equation",
446
+ "img_path": "images/eee030f7cec19567993dfd45c278e9ed326a662ff8f5006cb8ff7726c0548403.jpg",
447
+ "text": "$$\nC _ { + } ^ { S _ { 1 } \\mathbf { a } ^ { \\prime } } ( \\mathbf { a } ) = x ^ { \\prime } + y ^ { \\prime } + z\n$$",
448
+ "text_format": "latex",
449
+ "bbox": [
450
+ 411,
451
+ 768,
452
+ 586,
453
+ 790
454
+ ],
455
+ "page_idx": 3
456
+ },
457
+ {
458
+ "type": "text",
459
+ "text": "to be the output provided by $C _ { + }$ when $S _ { 1 }$ , the variable representing the intermediate sum, is intervened on and set to the value $x ^ { \\prime } + y ^ { \\prime }$ . Thus, for example, if the base input is $C _ { + } ( 1 , 2 , 3 ) = 6$ , and the source input is ${ \\bf a } ^ { \\prime } = ( 4 , 5 , 6 )$ , then $C _ { + } ^ { S _ { 1 } \\mathbf { a } ^ { \\prime } } ( 1 , 2 , 3 ) = 4 + 5 + 3 = 1 2$ . This process is depicted in Figure 1c. Next, we intervene on the neural network $N _ { + }$ . Let $\\mathbf { D }$ be an embedding space that provides unique representations for $\\mathbb { N } _ { 9 }$ , and consider two inputs $\\boldsymbol { D } = ( D _ { x } , D _ { y } , D _ { z } )$ and $D ^ { \\prime } = \\bar { ( } D _ { x ^ { \\prime } } , D _ { y ^ { \\prime } } , \\bar { D _ { z ^ { \\prime } } } )$ , where all $D _ { i }$ and $D _ { i ^ { \\prime } }$ are drawn from $\\mathbf { D }$ . In parallel with (1), define ",
460
+ "bbox": [
461
+ 173,
462
+ 792,
463
+ 825,
464
+ 888
465
+ ],
466
+ "page_idx": 3
467
+ },
468
+ {
469
+ "type": "equation",
470
+ "img_path": "images/cdf06eca5e4bb9e9784197ed9d10435952f54e3bfd086d9d97df903c822ee313.jpg",
471
+ "text": "$$\nN _ { + } ^ { L _ { 1 } D ^ { \\prime } } ( D )\n$$",
472
+ "text_format": "latex",
473
+ "bbox": [
474
+ 454,
475
+ 892,
476
+ 544,
477
+ 914
478
+ ],
479
+ "page_idx": 3
480
+ },
481
+ {
482
+ "type": "text",
483
+ "text": "to be the output provided by $N _ { + }$ processing the input $D$ when the representation at location $L _ { 1 }$ is replaced with the representation at location $L _ { 1 }$ created when $N _ { + }$ is processing the input $D ^ { \\prime }$ . This process is depicted in Figure 1b. ",
484
+ "bbox": [
485
+ 173,
486
+ 90,
487
+ 825,
488
+ 133
489
+ ],
490
+ "page_idx": 4
491
+ },
492
+ {
493
+ "type": "text",
494
+ "text": "With these two definitions, we can define what it means to test the hypothesis that $N _ { + }$ computes $x + y$ at position $L _ { 1 }$ . Where $D _ { \\mathbf { a } }$ is an embedding for a and $D _ { \\mathbf { a ^ { \\prime } } }$ is an embedding for $\\mathbf { a } ^ { \\prime }$ , we test: ",
495
+ "bbox": [
496
+ 173,
497
+ 140,
498
+ 823,
499
+ 167
500
+ ],
501
+ "page_idx": 4
502
+ },
503
+ {
504
+ "type": "equation",
505
+ "img_path": "images/7baa1af9e3e2d97223ff44888e4ce42913da81501480d44b95c98355215d9293.jpg",
506
+ "text": "$$\nC _ { + } ^ { S _ { 1 } \\mathbf { a } ^ { \\prime } } ( \\mathbf { a } ) = N _ { + } ^ { L _ { 1 } D _ { \\mathbf { a } ^ { \\prime } } } ( D _ { \\mathbf { a } } )\n$$",
507
+ "text_format": "latex",
508
+ "bbox": [
509
+ 398,
510
+ 172,
511
+ 599,
512
+ 194
513
+ ],
514
+ "page_idx": 4
515
+ },
516
+ {
517
+ "type": "text",
518
+ "text": "If this equality holds for all source and base inputs a and $\\mathbf { a } ^ { \\prime }$ , then we can conclude that, for every intervention on $S _ { 1 }$ , there is an equivalent intervention on $L _ { 1 }$ . If we can establish a corresponding claim for $W$ and $L _ { 2 }$ , then we have shown that $C _ { + }$ is a constructive abstraction of $N _ { + }$ , since the inputs’ relationships are established by our embedding and there are no other interventions on $C _ { + }$ to test. ",
519
+ "bbox": [
520
+ 173,
521
+ 196,
522
+ 825,
523
+ 267
524
+ ],
525
+ "page_idx": 4
526
+ },
527
+ {
528
+ "type": "text",
529
+ "text": "Analysis Suppose that all of our intervention experiments verify our hypothesis that $C _ { + }$ is a constructive abstraction of $N _ { + }$ with variables $S _ { 1 }$ and $W$ aligned to neural representations at $L _ { 1 }$ and $L _ { 2 }$ . This explains network behavior by resolving two crucial questions. ",
530
+ "bbox": [
531
+ 174,
532
+ 284,
533
+ 825,
534
+ 327
535
+ ],
536
+ "page_idx": 4
537
+ },
538
+ {
539
+ "type": "text",
540
+ "text": "First, we learn what information is encoded in the representations $L _ { 1 }$ and $L _ { 2 }$ . Neural representations encode the values of the high-level variables they are aligned with. The location $L _ { 1 }$ encodes the variable $S _ { 1 }$ and the location $L _ { 2 }$ encodes the variable $W$ . This is similar to what probing achieves. However, our method is crucially different from probing. In probing, information content is established through purely correlational properties, meaning a neural representation with no causal role in network behavior can be successfully probed, as we showed in Section 2. In causal abstraction analysis, information content is established through purely causal properties, ensuring that the neural representation is actually implicated in model behavior. ",
541
+ "bbox": [
542
+ 174,
543
+ 332,
544
+ 825,
545
+ 443
546
+ ],
547
+ "page_idx": 4
548
+ },
549
+ {
550
+ "type": "text",
551
+ "text": "Second, we learn what causal role $L _ { 1 }$ and $L _ { 2 }$ play in network behavior. Neural representations play a parallel causal role to their aligned high-level variables. At the location $L _ { 1 }$ , $D _ { x }$ and $D _ { y }$ are composed to form a neural representation with content $x + y$ that is then composed with $L _ { 2 }$ to create an output. The fact that $S _ { 1 }$ doesn’t depend on $z$ tells us that while $L _ { 1 }$ depends on $D _ { z }$ and representations at $L _ { 1 }$ may even correlate with $z$ , the information about $z$ is not causally represented at $L _ { 1 }$ . At the location $L _ { 2 }$ , the value of $z$ is simply repeated and then composed with $L _ { 1 }$ to create a final output. ",
552
+ "bbox": [
553
+ 174,
554
+ 449,
555
+ 825,
556
+ 534
557
+ ],
558
+ "page_idx": 4
559
+ },
560
+ {
561
+ "type": "text",
562
+ "text": "Our method assigns causally impactful information content, but also identifies the abstract causal structure along which representations are composed. It thus encompasses and improves on both correlational (probing) and attribution methods. ",
563
+ "bbox": [
564
+ 176,
565
+ 539,
566
+ 823,
567
+ 580
568
+ ],
569
+ "page_idx": 4
570
+ },
571
+ {
572
+ "type": "text",
573
+ "text": "4 The Natural Language Inference Task and Models ",
574
+ "text_level": 1,
575
+ "bbox": [
576
+ 174,
577
+ 602,
578
+ 625,
579
+ 619
580
+ ],
581
+ "page_idx": 4
582
+ },
583
+ {
584
+ "type": "text",
585
+ "text": "Multiply Quantified NLI Dataset The Multiply Quantified NLI (MQNLI) dataset of Geiger et al. [10] contains templatically generated English-language NLI examples that involve very complex interactions between quantifiers, negation, and modifiers. We provide a few examples in Figure 2b; the empty-string symbol $\\varepsilon$ ensures perfect alignments at the token level both between premises and hypotheses and across all examples. ",
586
+ "bbox": [
587
+ 174,
588
+ 635,
589
+ 825,
590
+ 704
591
+ ],
592
+ "page_idx": 4
593
+ },
594
+ {
595
+ "type": "text",
596
+ "text": "The MQNLI examples are labeled using an algorithmic implementation of the natural logic of MacCartney and Manning [18] over tree structures, and MQNLI has train/dev/test splits that vary in their difficulty. In the hardest setting, the train set is provably the minimal set of examples required to ensure that the dev and test sets can be perfectly solved by a simple symbolic model; in the easier settings, the train set redundantly encodes necessary information, which might allow a model to perform perfectly in assessment by memorization despite not having found a truly general solution. For a fuller review of the dataset, see Appendix A. ",
597
+ "bbox": [
598
+ 174,
599
+ 710,
600
+ 825,
601
+ 808
602
+ ],
603
+ "page_idx": 4
604
+ },
605
+ {
606
+ "type": "text",
607
+ "text": "MQNLI is a fitting benchmark given our goals for a few reasons. First, we can focus on the hardest splits that can be generated, which will stress-test our NLI architectures in a standard behavioral way. Second, the MQNLI labeling algorithm itself suggests an appropriate causal model of the data-generating process. Figure 2a summarizes this model in tree form, and it is presented in full detail in Geiger et al. [10]. This allows us to rigorously assess whether a neural network has learned to implement variants of this causal model. The complexity of the MQNLI examples creates many opportunities to do this in linguistically interesting ways. ",
608
+ "bbox": [
609
+ 174,
610
+ 814,
611
+ 825,
612
+ 911
613
+ ],
614
+ "page_idx": 4
615
+ },
616
+ {
617
+ "type": "image",
618
+ "img_path": "images/0cb3d60b262f4095536b9b0c886f7ffd2120462b64ededc66c7b1b8302c8ce7b.jpg",
619
+ "image_caption": [
620
+ "(a) The causal structure of the high-level natural logic causal model $C _ { N a t L o g }$ that performs inference on MQNLI. The superscripts $P$ and $H$ stand for β€˜premise’ and β€˜hypothesis’ and the subscripts β€˜Subj’ and β€˜Obj’ stand for β€˜Subject’ and β€˜Object’. The node labels are used to explain the experimental results in Section 5 "
621
+ ],
622
+ "image_footnote": [],
623
+ "bbox": [
624
+ 267,
625
+ 88,
626
+ 715,
627
+ 194
628
+ ],
629
+ "page_idx": 5
630
+ },
631
+ {
632
+ "type": "text",
633
+ "text": "$\\varepsilon$ every $\\varepsilon$ baker $\\varepsilon \\varepsilon \\varepsilon$ eats $\\varepsilon$ no $\\varepsilon$ bread \ncontradiction \n$\\varepsilon$ no angry baker $\\varepsilon \\varepsilon \\varepsilon$ eats $\\varepsilon$ no $\\varepsilon$ bread \n$\\varepsilon$ every silly professor $\\varepsilon \\varepsilon \\varepsilon$ sells not every $\\varepsilon$ book \nneutral \n$\\varepsilon$ every silly professor $\\varepsilon \\varepsilon \\varepsilon$ sells not every $\\varepsilon$ chair \nnot every sad baker $\\varepsilon \\varepsilon$ fairly admits not every odd idea \nentailment \n$\\varepsilon$ some $\\varepsilon$ baker does not $\\varepsilon$ admits $\\varepsilon$ no $\\varepsilon$ idea ",
634
+ "bbox": [
635
+ 196,
636
+ 260,
637
+ 496,
638
+ 376
639
+ ],
640
+ "page_idx": 5
641
+ },
642
+ {
643
+ "type": "text",
644
+ "text": "(b) MQNLI examples. The $\\varepsilon$ token serves as padding (but still attended to by the model) and ensures a perfect alignment between both premises and hypotheses and across all examples. It is semantically an identity element. ",
645
+ "bbox": [
646
+ 173,
647
+ 382,
648
+ 521,
649
+ 433
650
+ ],
651
+ "page_idx": 5
652
+ },
653
+ {
654
+ "type": "table",
655
+ "img_path": "images/a3217b34c03e6b7650696c71c3292504141d7340933a212b8aebbb5d6abc08fb.jpg",
656
+ "table_caption": [],
657
+ "table_footnote": [],
658
+ "table_body": "<table><tr><td>Model</td><td>Train</td><td>Dev</td><td>Test</td></tr><tr><td>CBoW</td><td>88.04</td><td>54.18</td><td>53.99</td></tr><tr><td>TreeNN</td><td>67.01</td><td>54.01</td><td>53.73</td></tr><tr><td>CompTreeNN</td><td>99.65</td><td>80.17</td><td>80.21</td></tr><tr><td>BiLSTM</td><td>99.42</td><td>46.41</td><td>46.32</td></tr><tr><td>BERT</td><td>99.99</td><td>88.25</td><td>88.50</td></tr></table>",
659
+ "bbox": [
660
+ 532,
661
+ 256,
662
+ 818,
663
+ 357
664
+ ],
665
+ "page_idx": 5
666
+ },
667
+ {
668
+ "type": "text",
669
+ "text": "(c) MQNLI results. The first three models are from Geiger et al. 10, where the CompTreeNN is a taskspecific model not suitable for general NLI and functions as an idealized upperbound. Our results show that BERT-based models can surpass this without such alignments. ",
670
+ "bbox": [
671
+ 529,
672
+ 362,
673
+ 825,
674
+ 438
675
+ ],
676
+ "page_idx": 5
677
+ },
678
+ {
679
+ "type": "text",
680
+ "text": "Figure 2: The natural logic causal model (top), MQNLI examples (left) and MQNLI results (right). ",
681
+ "bbox": [
682
+ 173,
683
+ 446,
684
+ 820,
685
+ 462
686
+ ],
687
+ "page_idx": 5
688
+ },
689
+ {
690
+ "type": "text",
691
+ "text": "Models We evaluated two models on MQNLI: a randomly initialized multilayered Bidirectional LSTM (BiLSTM; [23]) and a BERT-based classifier model in which the English bert-base parameters [8] are fine-tuned on the MQNLI train set. Output predictions are computed using the final representation above the [CLS] token. Models are trained to predict the relation of every pair of aligned phrases in Figure 2a. Additional model and training details are given in Appendix B. ",
692
+ "bbox": [
693
+ 174,
694
+ 486,
695
+ 825,
696
+ 556
697
+ ],
698
+ "page_idx": 5
699
+ },
700
+ {
701
+ "type": "text",
702
+ "text": "Results Figure 2c summarizes the results of our BERT and BiLSTM models on the hardest fair generalization task Geiger et al. [10] creates with MQNLI. We find that our BiLSTM model is not able to learn this task, and that our BERT model is able to achieve high accuracy. The only models in Geiger et al. [10] able to achieve above $50 \\%$ accuracy were task-specific tree-structured models with the structure of the tree in Figure 2a. Thus, our BERT-based model is the first general-purpose model able to achieve good performance on this hard generalization task. Without pretraining, the BERT-based model achieves ${ \\approx } 4 9 . 1 \\%$ , confirming that pretraining is essential, as expected. ",
703
+ "bbox": [
704
+ 174,
705
+ 570,
706
+ 825,
707
+ 667
708
+ ],
709
+ "page_idx": 5
710
+ },
711
+ {
712
+ "type": "text",
713
+ "text": "A natural hypothesis is that the BERT-based model achieves this high performance because it has in effect induced some approximation to the tree-like structure of the data-generating process in its own internal layers. With causal abstraction analysis, we are actually in a position to test this hypothesis. ",
714
+ "bbox": [
715
+ 174,
716
+ 674,
717
+ 825,
718
+ 715
719
+ ],
720
+ "page_idx": 5
721
+ },
722
+ {
723
+ "type": "text",
724
+ "text": "5 A Case Study in Structural Neural Network Analysis ",
725
+ "text_level": 1,
726
+ "bbox": [
727
+ 176,
728
+ 734,
729
+ 647,
730
+ 752
731
+ ],
732
+ "page_idx": 5
733
+ },
734
+ {
735
+ "type": "text",
736
+ "text": "5.1 Causal Abstractions of Neural NLI models ",
737
+ "text_level": 1,
738
+ "bbox": [
739
+ 173,
740
+ 765,
741
+ 509,
742
+ 780
743
+ ],
744
+ "page_idx": 5
745
+ },
746
+ {
747
+ "type": "text",
748
+ "text": "Formulating Our Hypotheses We proceed just as we did for the simple motivating example in Section 3, except that we are now seeking to assess the extent to which the natural logic algebra in Figure 2a is a causal abstraction of the trained neural models in the above section. ",
749
+ "bbox": [
750
+ 174,
751
+ 790,
752
+ 823,
753
+ 833
754
+ ],
755
+ "page_idx": 5
756
+ },
757
+ {
758
+ "type": "text",
759
+ "text": "The hallmark of Figure 2a is that it defines an alignment between premise and hypothesis at both lexical and phrasal levels. This pway. For a given non-leaf node $N$ mits us to run intein Figure 2a, let $C _ { N a t L o g } ^ { N }$ interventions in a nbe a submodel of $\\boldsymbol { C } _ { N a t L o g }$ compositionalthat computes the relation between the aligned phrases under and uses them to compute the final output relation between premise and hypothesis. For example, let $C _ { N a t L o g } ^ { \\mathrm { N P _ { O b j } } }$ be the submodel of $\\boldsymbol { C } _ { N a t L o g }$ that computes the relation between the two aligned object noun phrases and then uses that relation in computing the final output relation between premise and hypothesis (see Figure 3 right). We would like to ask whether our trained neural models also compute this relation between object noun phrases and use it to make a final prediction. We can pose this same question for other nodes which correspond to a pair of aligned subphrases. ",
760
+ "bbox": [
761
+ 174,
762
+ 838,
763
+ 823,
764
+ 912
765
+ ],
766
+ "page_idx": 5
767
+ },
768
+ {
769
+ "type": "image",
770
+ "img_path": "images/091a108d0acc3c4c953e97f27659d8f183813696f3f905ddb228de930349f9aa.jpg",
771
+ "image_caption": [
772
+ "Figure 3: A BERT-based NLI model (left) aligned with the natural logic causal model $C _ { N a t L o g } ^ { \\mathrm { N P _ { O b j } } }$ (right), where the fourth vector representation above the $\\mathrm { A d j } _ { \\mathrm { O b j } } ^ { P }$ token in the network is aligned with $\\mathrm { N P _ { O b j } }$ , the variable representing the relation between the object noun phrases. When analyzing a sample of 1000 examples, we found a subset of 383 where $C _ { N a t L o g } ^ { \\mathrm { N P _ { O b j } } }$ is an abstraction of $N _ { N L I }$ under this alignment. "
773
+ ],
774
+ "image_footnote": [],
775
+ "bbox": [
776
+ 176,
777
+ 87,
778
+ 810,
779
+ 227
780
+ ],
781
+ "page_idx": 6
782
+ },
783
+ {
784
+ "type": "text",
785
+ "text": "",
786
+ "bbox": [
787
+ 173,
788
+ 344,
789
+ 825,
790
+ 415
791
+ ],
792
+ "page_idx": 6
793
+ },
794
+ {
795
+ "type": "text",
796
+ "text": "nd the variable causal model., we consider a $N$ . In principle, any location in the network could bry hypothesis in this space would be intractable. t of hidden representations based on the identity of he right oneus, for each. The BERT $N _ { N L I }$ $N$ $C _ { N a t L o g } ^ { N }$ ${ C _ { N a t L o g } ^ { N } } ^ { N }$ $N$ model we use has 12 Transformer layers [30], meaning that there are 12 hidden representations for each input token. Each alignment search considers aligning the intermediate high-level variable with dozens of possible locations in the grid of BERT representations. Specifically, the following locations were considered for each $N$ : ",
797
+ "bbox": [
798
+ 173,
799
+ 431,
800
+ 825,
801
+ 542
802
+ ],
803
+ "page_idx": 6
804
+ },
805
+ {
806
+ "type": "text",
807
+ "text": "$\\mathrm { Q _ { S u b j } }$ , $\\mathrm { \\Delta \\ A j _ { \\mathrm { S u b j } } }$ , $\\mathrm { N _ { S u b j } }$ , Neg, Adv, V, $\\mathrm { Q _ { O b j } }$ , $\\mathrm { \\Delta A d j _ { O b j } }$ , $\\mathrm { N _ { O b j } }$ : hidden representations above the two descendant leaf tokens. β€’ $\\mathrm { N P _ { S u b j } }$ , VP, and $\\mathrm { N P _ { O b j } }$ : same but above the four descendant leaf tokens. ",
808
+ "bbox": [
809
+ 173,
810
+ 547,
811
+ 477,
812
+ 636
813
+ ],
814
+ "page_idx": 6
815
+ },
816
+ {
817
+ "type": "text",
818
+ "text": "$\\mathrm { Q P _ { O b j } }$ idden representations above . $\\mathrm { Q } _ { \\mathrm { 0 b j } } ^ { P }$ $\\mathrm { Q } _ { \\mathrm { O b j } } ^ { H }$ \n. NegP: same but above $\\mathrm { N e g } ^ { P }$ and $\\mathrm { N e g } ^ { H }$ . \nAll nodes (for BERT): same but above \n[CLS] and [SEP]. ",
819
+ "bbox": [
820
+ 521,
821
+ 547,
822
+ 825,
823
+ 637
824
+ ],
825
+ "page_idx": 6
826
+ },
827
+ {
828
+ "type": "text",
829
+ "text": "For each alignment considered, we performed a full causal abstraction analysis. We report the results from the best alignments in Table 1, and we summarize the results from all alignments in Appendix D. ",
830
+ "bbox": [
831
+ 173,
832
+ 648,
833
+ 825,
834
+ 678
835
+ ],
836
+ "page_idx": 6
837
+ },
838
+ {
839
+ "type": "text",
840
+ "text": "Interchange Interventions We first focus on our high-level causal models. Consider a non-leaf node $N$ from Figure 2a and two input token sequences $e$ and $e ^ { \\prime }$ from MQNLI. Define ",
841
+ "bbox": [
842
+ 171,
843
+ 694,
844
+ 823,
845
+ 723
846
+ ],
847
+ "page_idx": 6
848
+ },
849
+ {
850
+ "type": "equation",
851
+ "img_path": "images/d4c7228daaaa32940d8648a0c44c008433ce8d5493441c18f3f3e1a97148d235.jpg",
852
+ "text": "$$\nC _ { N a t L o g } ^ { N e ^ { \\prime } } ( e )\n$$",
853
+ "text_format": "latex",
854
+ "bbox": [
855
+ 462,
856
+ 727,
857
+ 535,
858
+ 748
859
+ ],
860
+ "page_idx": 6
861
+ },
862
+ {
863
+ "type": "text",
864
+ "text": "to be the output provided by the causal mode $C _ { N a t L o g } ^ { N }$ when processing input $e$ where the relation $N$ is changed to the relation between those subphrases \nin $e ^ { \\prime }$ . For example, simplifying for the sake of exposition, suppose $e$ is (some happy baker, no $\\epsilon$ \nbaker), which has output label contradiction, and suppose $e ^ { \\prime }$ is (every happy person, some happy \naker), which has output label , the noun phrase relation is e ntailment.ailment; in e wish to intervene on the noun, it is reverse entailment. Thus, $N = \\mathrm { N P }$ . In the \n$e$ $e ^ { \\prime }$ $C _ { N a t L o g } ^ { \\mathrm { N P } e ^ { \\prime } } ( e )$ $e$ to entailment while holding everything else about $e$ constant. This \nresults in the output label for the example (some happy person, no $\\epsilon$ baker), which is neutral. ",
865
+ "bbox": [
866
+ 173,
867
+ 753,
868
+ 825,
869
+ 869
870
+ ],
871
+ "page_idx": 6
872
+ },
873
+ {
874
+ "type": "text",
875
+ "text": "Next, we consider interventions in a neural model $N _ { N L I }$ . Define ",
876
+ "bbox": [
877
+ 173,
878
+ 873,
879
+ 591,
880
+ 888
881
+ ],
882
+ "page_idx": 6
883
+ },
884
+ {
885
+ "type": "equation",
886
+ "img_path": "images/d559ae0772c879936317fe1c73a5c69e9586ef874de37d00f537ebfe86448777.jpg",
887
+ "text": "$$\nN _ { N L I } ^ { L e ^ { \\prime } } ( e )\n$$",
888
+ "text_format": "latex",
889
+ "bbox": [
890
+ 464,
891
+ 892,
892
+ 534,
893
+ 912
894
+ ],
895
+ "page_idx": 6
896
+ },
897
+ {
898
+ "type": "table",
899
+ "img_path": "images/bbd2a8666e8a0bbd6ba2f39edda9103a8eb96b0868b41a8f823e0ed3852f7fc8.jpg",
900
+ "table_caption": [
901
+ "Table 1: Largest subsets of examples on which specific models $C _ { N a t L o g } ^ { N }$ are abstractions of an LSTM and BERT model trained on MQNLI. We record the size of such subsets as a percentage of the total 1000 examples. On this subset, we know that the neural models compute a representation of the relation between the aligned subphrases under $N$ and use this information to make a final prediction. "
902
+ ],
903
+ "table_footnote": [],
904
+ "table_body": "<table><tr><td>Nodesadded</td><td>BERT</td></tr><tr><td>Adsubj</td><td>30.5</td></tr><tr><td>Nsub</td><td>37.2</td></tr><tr><td>Negp</td><td>14.9</td></tr><tr><td>AdvP</td><td>26.9</td></tr><tr><td>VP</td><td>35.6</td></tr><tr><td>Q</td><td>16.2</td></tr><tr><td>Adjsubj H</td><td>13.4</td></tr><tr><td>Nsub</td><td>12.0</td></tr><tr><td>NegH</td><td>34.4</td></tr><tr><td>AdvH</td><td>16.2</td></tr><tr><td>VH</td><td>13.4</td></tr><tr><td>Qbi</td><td>12.0</td></tr></table>",
905
+ "bbox": [
906
+ 668,
907
+ 160,
908
+ 825,
909
+ 357
910
+ ],
911
+ "page_idx": 7
912
+ },
913
+ {
914
+ "type": "table",
915
+ "img_path": "images/4d5a984f5213cc2e8395c78234cc73879de45696198156d2cb41806147e363cb.jpg",
916
+ "table_caption": [],
917
+ "table_footnote": [],
918
+ "table_body": "<table><tr><td>Causal Model</td><td>LSTM</td><td>BERT</td></tr><tr><td>Qsubj</td><td>0.7</td><td>13.1</td></tr><tr><td>Qobj</td><td>0.9</td><td>7.3</td></tr><tr><td>Neg</td><td>0.7</td><td>21.4</td></tr><tr><td>Adjsubj</td><td>2.5</td><td>6.7</td></tr><tr><td>Nsubj</td><td>1.2</td><td>5.5</td></tr><tr><td>Adjobj</td><td>0.9</td><td>14.1</td></tr><tr><td>Nobj</td><td>0.7</td><td>8.8</td></tr><tr><td>V</td><td>0.4</td><td>11.4</td></tr><tr><td>Adv</td><td>1.4</td><td>7.9</td></tr><tr><td>NPsubj</td><td>1.0</td><td>6.7</td></tr><tr><td>NPobj</td><td>0.7</td><td>38.3</td></tr><tr><td>VP</td><td>0.4</td><td>11.4</td></tr><tr><td>NegP</td><td>0.9</td><td>11.8</td></tr></table>",
919
+ "bbox": [
920
+ 176,
921
+ 161,
922
+ 400,
923
+ 357
924
+ ],
925
+ "page_idx": 7
926
+ },
927
+ {
928
+ "type": "table",
929
+ "img_path": "images/12cb2c08af89e5c77bc8f6afb5e129ff597b6b75a2c7d3b302f5078d9f7c7d6e.jpg",
930
+ "table_caption": [],
931
+ "table_footnote": [],
932
+ "table_body": "<table><tr><td>Nodes removed</td><td>BERT</td></tr><tr><td></td><td>31.9</td></tr><tr><td>A N</td><td>15.7</td></tr><tr><td></td><td>33.8</td></tr><tr><td>A</td><td>15.8 31.9</td></tr><tr><td></td><td>14.1</td></tr><tr><td>A</td><td>32.2</td></tr><tr><td></td><td>31.6</td></tr><tr><td></td><td>8.8</td></tr><tr><td></td><td></td></tr><tr><td>,Abj</td><td>32.1</td></tr></table>",
933
+ "bbox": [
934
+ 450,
935
+ 189,
936
+ 624,
937
+ 357
938
+ ],
939
+ "page_idx": 7
940
+ },
941
+ {
942
+ "type": "text",
943
+ "text": "(a) Main results (clique sizes) for nonleaf nodes of the tree in Figure 2a. The hypothesis we have most evidence for is that the BERT model computes a representation of the $\\mathrm { N P _ { O b j } }$ node with the alignment shown in Figure 3. Remarkably, with 1000 examples sampled, we found a subset of 383 examples where $C _ { N a t L o g } ^ { \\mathrm { N P _ { O b j } } }$ is an abstraction of BERT. ",
944
+ "bbox": [
945
+ 173,
946
+ 364,
947
+ 405,
948
+ 483
949
+ ],
950
+ "page_idx": 7
951
+ },
952
+ {
953
+ "type": "text",
954
+ "text": "(b) Detailed results (clique sizes) for Altein a β€œneighborhood” around the model $C _ { N a t L o g } ^ { \\mathrm { N P _ { O b j } } }$ causal models, which has a single intermediate variable composed of four lexical items (See Figure 3). At left, we have alternative causal models where one or two of those lexical items are removed from the composition. At right, we have alternatives obtained by adding one lexical item to the composition. We observe that no alternative hypothesis about causal structure considered has more evidence. ",
955
+ "bbox": [
956
+ 450,
957
+ 364,
958
+ 825,
959
+ 469
960
+ ],
961
+ "page_idx": 7
962
+ },
963
+ {
964
+ "type": "text",
965
+ "text": "to be the output provided by $N _ { N L I }$ processing the input $e$ when the representation at location $L$ is replaced with the representation at location $L$ created when $N _ { N L I }$ is processing $e ^ { \\prime }$ . This is exactly the process depicted in Figure 1, except now the networks are the complex trained networks of Section 4. ",
966
+ "bbox": [
967
+ 174,
968
+ 529,
969
+ 823,
970
+ 571
971
+ ],
972
+ "page_idx": 7
973
+ },
974
+ {
975
+ "type": "text",
976
+ "text": "Our hypothesis linking Figure 2a with a model $N _ { N L I }$ takes the same form as (3). The causal model $C _ { N a t L o g } ^ { N }$ is a constructive abstraction of $N _ { N L I }$ when, for some representation location $L$ , it is the case that, for all MQNLI examples $e$ and $e ^ { \\prime }$ , we have ",
977
+ "bbox": [
978
+ 174,
979
+ 577,
980
+ 825,
981
+ 622
982
+ ],
983
+ "page_idx": 7
984
+ },
985
+ {
986
+ "type": "equation",
987
+ "img_path": "images/4744fd6ee432b685118e8febf69bcb388251fe1bfc500dfbd6c1a2214e68ab27.jpg",
988
+ "text": "$$\nC _ { N a t L o g } ^ { N e ^ { \\prime } } ( e ) = N _ { N L I } ^ { L e ^ { \\prime } } ( e )\n$$",
989
+ "text_format": "latex",
990
+ "bbox": [
991
+ 416,
992
+ 626,
993
+ 581,
994
+ 648
995
+ ],
996
+ "page_idx": 7
997
+ },
998
+ {
999
+ "type": "text",
1000
+ "text": "This asserts a correspondence between interventions on the representations at $L$ in network $N _ { N L I }$ and interventions on the variable $N$ in the causal model $C _ { N a t L o g } ^ { N }$ . If it holds, then $N _ { N L I }$ computes the relation between the aligned phrases under the node $N$ and uses this information to compute the relation between the premise and hypothesis. ",
1001
+ "bbox": [
1002
+ 173,
1003
+ 651,
1004
+ 825,
1005
+ 707
1006
+ ],
1007
+ "page_idx": 7
1008
+ },
1009
+ {
1010
+ "type": "text",
1011
+ "text": "We call a pair of examples $( e , e ^ { \\prime } )$ successful if it satisfies equation (6), i.e., interventions in both the target causal model and neural model produce equal results. In addition, to isolate the causal impact of our interventions, we specifically focus on pairs $( e , e ^ { \\prime } )$ for which performing the intervention produces a different output value than without the intervention. We call a pair $( e , e ^ { \\prime } )$ impactful if: ",
1012
+ "bbox": [
1013
+ 173,
1014
+ 713,
1015
+ 825,
1016
+ 770
1017
+ ],
1018
+ "page_idx": 7
1019
+ },
1020
+ {
1021
+ "type": "equation",
1022
+ "img_path": "images/eb795cef2be9c9e3b11f7e1634161a259d5eb3445bc58ececca30bc45818a55e.jpg",
1023
+ "text": "$$\nC _ { N a t L o g } ^ { N e ^ { \\prime } } ( e ) \\neq C _ { N a t L o g } ^ { N } ( e )\n$$",
1024
+ "text_format": "latex",
1025
+ "bbox": [
1026
+ 418,
1027
+ 773,
1028
+ 580,
1029
+ 796
1030
+ ],
1031
+ "page_idx": 7
1032
+ },
1033
+ {
1034
+ "type": "text",
1035
+ "text": "Quantifying Partial Success Equation (6) universally quantifies over all examples. We do not expect this kind of perfect correspondence to emerge in practice for real problems: neural network training is often approximate and variable in nature, and even our best model does not achieve perfect performance. However, we can still ask how to find the largest subset of MQNLI on which $C _ { N a t L o g } ^ { N }$ (6) holds for a given model. To do this, we seekis an abstraction of our neural models, for each non-leaf node N in CNatLog. ",
1036
+ "bbox": [
1037
+ 174,
1038
+ 827,
1039
+ 825,
1040
+ 912
1041
+ ],
1042
+ "page_idx": 7
1043
+ },
1044
+ {
1045
+ "type": "text",
1046
+ "text": "More specifically, considering each example in MQNLI as a vertex in a graph, we add an undirected edge between two examples $e _ { i }$ and $e _ { j }$ if and only if both the ordered pairs $( e _ { i } , e _ { j } )$ and $( e _ { j } , e _ { i } )$ satisfy (6). In other words, if and only if all ex $C _ { N a t L o g } ^ { N }$ isin n abstraction of a neural model on a subset of examples form a clique. $S$ of MQNLI $S$ ",
1047
+ "bbox": [
1048
+ 174,
1049
+ 90,
1050
+ 825,
1051
+ 148
1052
+ ],
1053
+ "page_idx": 8
1054
+ },
1055
+ {
1056
+ "type": "text",
1057
+ "text": "The number of interventions we need to run scales quadratically with the number of inputs we consider, so we sample 1000 MQNLI examples, producing a total of $1 0 0 0 ^ { 2 } = 1 \\mathbf { M }$ ordered pairs. We only consider examples for which the neural network outputs a correct label. For each node $N$ and each of its corresponding neural network locations $L$ , we perform interventions on all of these pairs. ",
1058
+ "bbox": [
1059
+ 174,
1060
+ 155,
1061
+ 825,
1062
+ 210
1063
+ ],
1064
+ "page_idx": 8
1065
+ },
1066
+ {
1067
+ "type": "text",
1068
+ "text": "We choose to measure the largest clique with at least one impactful edge, because (1) the causal abstraction relation holds with full force on that clique, but other measures such as the total number of connections lack this theoretical grounding, and (2) if a clique has at least one impactful edge, that guarantees the high-level variable is being used. ",
1069
+ "bbox": [
1070
+ 174,
1071
+ 217,
1072
+ 825,
1073
+ 272
1074
+ ],
1075
+ "page_idx": 8
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "Results and Analysis For each target causal model node $N$ and neural network representation location $L$ , we construct a graph as described above with 1000 examples as vertices and add an edge between two examples $e _ { i }$ and $e _ { j }$ if and only if both $( e _ { i } , e _ { j } )$ and $( e _ { j } , e _ { i } )$ are successful. We then find the largest clique in this graph with at least one impactful edge and record its size. ",
1080
+ "bbox": [
1081
+ 174,
1082
+ 289,
1083
+ 825,
1084
+ 344
1085
+ ],
1086
+ "page_idx": 8
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "Table 1a shows, for each causal model node $N$ , the maximum size of cliques found among all neural locations. With this stricter impactful criterion (as opposed to simply using intervention success), our results show that, for almost all nodes abstraction of BERT on a significant numb $N$ , our target causal model of examples in our datase $C _ { N a t L o g } ^ { \\widetilde { N } }$ is indeed a causale subsets are much smaller for the BiLSTM model. ",
1091
+ "bbox": [
1092
+ 174,
1093
+ 351,
1094
+ 825,
1095
+ 420
1096
+ ],
1097
+ "page_idx": 8
1098
+ },
1099
+ {
1100
+ "type": "text",
1101
+ "text": "We also investigated alternative high-level causal structures that are not variants of $\\boldsymbol { C } _ { N a t L o g }$ from Figure 2a. Specifically, we consider alternative models in a β€œneighborhood” around the model CNPObjNatLog that can be obtained by adding one leaf, or by removing one or two leaves to the composition. These results are in Table 1b. Remarkably, all of these alternative models result in smaller clique sizes, significantly so for many of them. This further supports the significance of our results. ",
1102
+ "bbox": [
1103
+ 174,
1104
+ 426,
1105
+ 825,
1106
+ 501
1107
+ ],
1108
+ "page_idx": 8
1109
+ },
1110
+ {
1111
+ "type": "text",
1112
+ "text": "This analysis is simtwo crucial differenis an abstraction of o the analysis of our hirst, for each variable , whereas in the addit $N$ othetical addition example in Section 3, ex, we are hypothesizing that the causal model example there was only one model. To inv ${ \\dot { C } } _ { N a t L o g } ^ { N }$ $N _ { N L I }$ \nthis difference, we take $N = \\mathrm { N P _ { O b j } }$ as a paradigm case, as it is the model with the strongest results. (The results for other nodes are in Appendix D.) Second, we only achieved partial experimental success, whereas in the addition example we assumed complete success. Crucially, this means that the following analysis will be valid only on subsets of the input space on which the abstraction relation holds between NNLI and CNPObjNatLog. ",
1113
+ "bbox": [
1114
+ 174,
1115
+ 506,
1116
+ 825,
1117
+ 622
1118
+ ],
1119
+ "page_idx": 8
1120
+ },
1121
+ {
1122
+ "type": "text",
1123
+ "text": "We visualize the results of our intervention experiments for the node $\\mathrm { N P _ { O b j } }$ in Figure 4. The alignment with the largest subset of inputs aligns the NPObj variable in CNPObjNatLog with the neural representation on the fourth layer of BERT above the $\\mathrm { A d j } _ { \\mathrm { O b j } } ^ { P }$ token (see Figure 3). Because neural representations encode the value of their aligned variables and play a parallel causal role to their high-level variables, we know that, on this subset of input examples, at the fourth neural representation above the $\\mathrm { A d j } _ { \\mathrm { O b j } } ^ { P }$ token, the four input embeddings for the object nouns and adjectives in the premise and hypothesis are composed to form a neural representation with information content of the relation between the object noun phrases in the premise and hypothesis. Then this representation is composed with the other input-embeddings to create an output representing the relation between the premise and hypothesis. ",
1124
+ "bbox": [
1125
+ 173,
1126
+ 626,
1127
+ 825,
1128
+ 763
1129
+ ],
1130
+ "page_idx": 8
1131
+ },
1132
+ {
1133
+ "type": "text",
1134
+ "text": "5.2 Comparison with Other Structural Analysis Methods ",
1135
+ "text_level": 1,
1136
+ "bbox": [
1137
+ 173,
1138
+ 781,
1139
+ 583,
1140
+ 796
1141
+ ],
1142
+ "page_idx": 8
1143
+ },
1144
+ {
1145
+ "type": "text",
1146
+ "text": "Probes We probed neural representation locations for the relation between aligned subexpressions on a subset of 12,800 randomly selected MQNLI examples. For a pair of aligned subexpressions below a node $N$ in Figure 2a, we probe the columns above the same set of restricted class of tokens as described in Section 5.1. ",
1147
+ "bbox": [
1148
+ 174,
1149
+ 808,
1150
+ 825,
1151
+ 863
1152
+ ],
1153
+ "page_idx": 8
1154
+ },
1155
+ {
1156
+ "type": "text",
1157
+ "text": "To evaluate these probes, we report accuracy as well as selectivity as defined by Hewitt and Liang [12]: probe accuracy minus control accuracy, where control accuracy is the train set accuracy of a probe with the same architecture but trained on a control task to factor out probe success that can be attributed to the probe model itself. Our control task is to learn a random mapping from node types to semantic relations; see Appendix C for full details on how this task was constructed. ",
1158
+ "bbox": [
1159
+ 174,
1160
+ 869,
1161
+ 825,
1162
+ 911
1163
+ ],
1164
+ "page_idx": 8
1165
+ },
1166
+ {
1167
+ "type": "image",
1168
+ "img_path": "images/c313e3750ef3c4775c2304d720db7884b4f4d011c838d444e19be0b735a6a5ed.jpg",
1169
+ "image_caption": [
1170
+ "Figure 4: Interchange intervention and probing results for the $\\mathrm { N P _ { O b j } }$ position. Vertical axes denote layers of BERT and horizontal axes denote the token position of hidden representations. The intervention success rates reported here are calculated based on intervention experiments with a change in the output label. Clique sizes are reported as $\\%$ of 1000 examples. "
1171
+ ],
1172
+ "image_footnote": [],
1173
+ "bbox": [
1174
+ 173,
1175
+ 85,
1176
+ 825,
1177
+ 212
1178
+ ],
1179
+ "page_idx": 9
1180
+ },
1181
+ {
1182
+ "type": "text",
1183
+ "text": "",
1184
+ "bbox": [
1185
+ 171,
1186
+ 306,
1187
+ 823,
1188
+ 334
1189
+ ],
1190
+ "page_idx": 9
1191
+ },
1192
+ {
1193
+ "type": "text",
1194
+ "text": "Figure 4 summarizes our probing results for $N = \\mathrm { N P _ { O b j } }$ , along with corresponding interchange intervention results for comparison. Probes tell us that information about the relation between the aligned noun phrases is encoded in nearly all of the locations we considered, and using the selectivity metric does not result in any qualitative change. In contrast, our intervention heatmaps indicate only a small number of locations store this information in a causally relevant way. Clearly, our intervention experiments are far more discriminating than probes. Appendix D provides examples involving other variables along with the intervention experiments, where the general trend of interchange interventions being more discriminating holds. ",
1195
+ "bbox": [
1196
+ 174,
1197
+ 340,
1198
+ 825,
1199
+ 452
1200
+ ],
1201
+ "page_idx": 9
1202
+ },
1203
+ {
1204
+ "type": "text",
1205
+ "text": "Integrated Gradients Attribution methods that estimate feature importance can measure causal properties of neural representations, but a single feature importance method is an impoverished characterization of a representation’s role in network behavior. Whereas our interchange interventions gave us high-level information about how a neural representation is composed and what it is composed into, attribution methods simply tell us β€œhow much” a representation contributes to the network output on a give input. Moreover, intervention interchanges provide a rich, high-level characterization of causal structure on a space of inputs. ",
1206
+ "bbox": [
1207
+ 174,
1208
+ 472,
1209
+ 825,
1210
+ 569
1211
+ ],
1212
+ "page_idx": 9
1213
+ },
1214
+ {
1215
+ "type": "text",
1216
+ "text": "We use integrated gradients on our models to verify the intuitive hypothesis that if a premise and hypothesis differ by a single token, then the neural representations above that token should be more causally responsible for the network output than other representations. For example, given premise β€˜Every sleepy cat meows’ and hypothesis β€˜Some hungry cat meows’, the attributive modifier position is different and the rest are matched. The neural representations above the adjective tokens sleepy and hungry should be more important for the network output than others, because if those adjectives were the same, the example label would change from neutral to entailment. We summarize the results of our integrated gradient experiments in Appendix E, where we confirm our intuitive hypothesis. ",
1217
+ "bbox": [
1218
+ 173,
1219
+ 575,
1220
+ 825,
1221
+ 685
1222
+ ],
1223
+ "page_idx": 9
1224
+ },
1225
+ {
1226
+ "type": "text",
1227
+ "text": "6 Conclusion ",
1228
+ "text_level": 1,
1229
+ "bbox": [
1230
+ 174,
1231
+ 710,
1232
+ 297,
1233
+ 728
1234
+ ],
1235
+ "page_idx": 9
1236
+ },
1237
+ {
1238
+ "type": "text",
1239
+ "text": "We have introduced a methodology for deriving interpretable causal explanations of neural network behaviors, grounded in a formal theory of causal abstraction. The methodology involves first formulating a hypothesis in the form of a high-level, interpretable causal model, then searching for an alignment between the neural network and the causal model, and finally verifying experimentally that the neural representations encode the same causal properties and information content as the corresponding components of the high-level causal model. As a case study demonstrating the feasibility of the approach, we analyzed neural models trained on the semantically formidable MQNLI dataset. Guided by the intuition that success on this challenging task may call for a way of recapitulating the causal structure of the natural logic model that generates the MQNLI data, we were able to verify the hypothesis that a state-of-the-art BERT-based model partially realizes this structure, whereas baseline models that do not perform as well fail to do so. This suggestive case study demonstrates that our theoretically grounded methodology can work in practice. ",
1240
+ "bbox": [
1241
+ 173,
1242
+ 746,
1243
+ 825,
1244
+ 911
1245
+ ],
1246
+ "page_idx": 9
1247
+ },
1248
+ {
1249
+ "type": "text",
1250
+ "text": "Acknowledgments and Disclosure of Funding ",
1251
+ "text_level": 1,
1252
+ "bbox": [
1253
+ 174,
1254
+ 88,
1255
+ 553,
1256
+ 107
1257
+ ],
1258
+ "page_idx": 10
1259
+ },
1260
+ {
1261
+ "type": "text",
1262
+ "text": "Our thanks to Amir Feder, Noah Goodman, Elisa Kreiss, Josh Rozner, Zhengxuan Wu, and our anonymous reviewers. This research is supported in part by grants from Facebook and Google. ",
1263
+ "bbox": [
1264
+ 174,
1265
+ 121,
1266
+ 826,
1267
+ 150
1268
+ ],
1269
+ "page_idx": 10
1270
+ },
1271
+ {
1272
+ "type": "text",
1273
+ "text": "References \n[1] S. Beckers and J. Y. Halpern. Abstracting causal models. Proceedings of the AAAI Conference on Artificial Intelligence, 33(01):2678–2685, Jul. 2019. doi: 10.1609/aaai.v33i01.33012678. URL https://ojs.aaai.org/index.php/AAAI/article/view/4117. \n[2] S. Beckers, F. Eberhardt, and J. Y. Halpern. Approximate causal abstractions. In R. P. Adams and V. Gogate, editors, Proceedings of The 35th Uncertainty in Artificial Intelligence Conference, volume 115 of Proceedings of Machine Learning Research, pages 606–615, Tel Aviv, Israel, 22–25 Jul 2020. PMLR. URL http://proceedings.mlr.press/v115/beckers20a.html. \n[3] A. Binder, G. Montavon, S. Bach, K. MΓΌller, and W. Samek. Layer-wise relevance propagation for neural networks with local renormalization layers. CoRR, abs/1604.00825, 2016. URL http://arxiv.org/abs/1604.00825. \n[4] S. Bongers, P. ForrΓ©, J. Peters, B. SchΓΆlkopf, and J. M. Mooij. Foundations of structural causal models with cycles and latent variables. arXiv.org preprint, arXiv:1611.06221v4 [stat.ME], Oct. 2020. URL https://arxiv.org/abs/1611.06221v4. \n[5] K. Chalupka, F. Eberhardt, and P. Perona. Multi-level cause-effect systems. In A. Gretton and C. C. Robert, editors, Proceedings of the 19th International Conference on Artificial Intelligence and Statistics, volume 51 of Proceedings of Machine Learning Research, pages 361–369, Cadiz, Spain, 09–11 May 2016. PMLR. URL http://proceedings.mlr.press/v51/chalupka16. html. \n[6] A. Chattopadhyay, P. Manupriya, A. Sarkar, and V. N. Balasubramanian. Neural network attributions: A causal perspective. In K. Chaudhuri and R. Salakhutdinov, editors, Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pages 981–990, Long Beach, California, USA, 09–15 Jun 2019. PMLR. URL http://proceedings.mlr.press/v97/chattopadhyay19a.html. \n[7] K. Clark, U. Khandelwal, O. Levy, and C. D. Manning. What does BERT look at? an analysis of BERT’s attention. In Proceedings of the 2019 ACL Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP, pages 276–286, Florence, Italy, Aug. 2019. Association for Computational Linguistics. doi: 10.18653/v1/W19-4828. URL https: //www.aclweb.org/anthology/W19-4828. \n[8] J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171–4186, Minneapolis, Minnesota, June 2019. Association for Computational Linguistics. doi: 10.18653/v1/N19-1423. URL https://www.aclweb.org/anthology/N19-1423. \n[9] Y. Elazar, S. Ravfogel, A. Jacovi, and Y. Goldberg. Amnesic probing: Behavioral explanation with amnesic counterfactuals. In Proceedings of the 2020 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP. Association for Computational Linguistics, Nov. 2020. doi: 10.18653/v1/W18-5426. \n[10] A. Geiger, I. Cases, L. Karttunen, and C. Potts. Posing fair generalization tasks for natural language inference. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 4475–4485, Stroudsburg, PA, November 2019. Association for Computational Linguistics. doi: 10.18653/v1/D19-1456. URL https://www.aclweb.org/anthology/D19-1456. \n[11] A. Geiger, K. Richardson, and C. Potts. Neural natural language inference models partially embed theories of lexical entailment and negation. In Proceedings of the Third BlackboxNLP Workshop on Analyzing and Interpreting Neural Networks for NLP, pages 163–173, Online, Nov. 2020. Association for Computational Linguistics. doi: 10.18653/v1/2020.blackboxnlp-1.16. URL https://www.aclweb.org/anthology/2020.blackboxnlp-1.16. \n[12] J. Hewitt and P. Liang. Designing and interpreting probes with control tasks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 2733–2743, Hong Kong, China, Nov. 2019. Association for Computational Linguistics. doi: 10.18653/v1/D19-1275. URL https://www.aclweb.org/anthology/D19-1275. \n[13] D. Hupkes, S. Bouwmeester, and R. FernΓ‘ndez. Analysing the potential of seq-to-seq models for incremental interpretation in task-oriented dialogue. In Proceedings of the 2018 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP, pages 165–174, Brussels, Belgium, Nov. 2018. Association for Computational Linguistics. doi: 10.18653/v1/ W18-5419. URL https://www.aclweb.org/anthology/W18-5419. \n[14] T. F. Icard and L. S. Moss. Recent progress on monotonicity. Linguistic Issues in Language Technology, 9(7):1–31, January 2013. \n[15] G. W. Imbens and D. B. Rubin. Causal inference in statistics, social, and biomedical sciences. Cambridge University Press, 2015. \n[16] T. P. Lillicrap and K. P. Kording. What does it mean to understand a neural network?, 2019. \n[17] B. MacCartney and C. D. Manning. Natural logic for textual inference. In Proceedings of the ACL-PASCAL Workshop on Textual Entailment and Paraphrasing, RTE ’07, pages 193–200, Stroudsburg, PA, USA, 2007. Association for Computational Linguistics. URL http://dl.acm.org/citation.cfm?id=1654536.1654575. \n[18] B. MacCartney and C. D. Manning. An extended model of natural logic. In Proceedings of the Eight International Conference on Computational Semantics, pages 140–156, Tilburg, The Netherlands, Jan. 2009. Association for Computational Linguistics. URL https://www. aclweb.org/anthology/W09-3714. \n[19] J. Pearl. Direct and indirect effects. In Proceedings of the Seventeenth Conference on Uncertainty in Artificial Intelligence, UAI’01, page 411–420, San Francisco, CA, USA, 2001. Morgan Kaufmann Publishers Inc. ISBN 1558608001. \n[20] M. Peters, M. Neumann, L. Zettlemoyer, and W.-t. Yih. Dissecting contextual word embeddings: Architecture and representation. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 1499–1509, Brussels, Belgium, Oct.- Nov. 2018. Association for Computational Linguistics. doi: 10.18653/v1/D18-1179. URL https://www.aclweb.org/anthology/D18-1179. \n[21] A. Ravichander, Y. Belinkov, and E. Hovy. Probing the probing paradigm: Does probing accuracy entail task relevance?, 2020. \n[22] P. K. Rubenstein, S. Weichwald, S. Bongers, J. M. Mooij, D. Janzing, M. Grosse-Wentrup, and B. SchΓΆlkopf. Causal consistency of structural equation models. In Proceedings of the 33rd Conference on Uncertainty in Artificial Intelligence (UAI). Association for Uncertainty in Artificial Intelligence (AUAI), Aug. 2017. URL http://auai.org/uai2017/proceedings/ papers/11.pdf. \\*equal contribution. \n[23] M. Schuster and K. K. Paliwal. Bidirectional recurrent neural networks. IEEE transactions on Signal Processing, 45(11):2673–2681, 1997. \n[24] A. Shrikumar, P. Greenside, A. Shcherbina, and A. Kundaje. Not just a black box: Learning important features through propagating activation differences. CoRR, abs/1605.01713, 2016. URL http://arxiv.org/abs/1605.01713. \n[25] P. Spirtes, C. N. Glymour, and R. Scheines. Causation, Prediction, and Search. MIT Press, 2nd edition, 2001. ISBN 9780262194402. ",
1274
+ "bbox": [
1275
+ 174,
1276
+ 146,
1277
+ 828,
1278
+ 922
1279
+ ],
1280
+ "page_idx": 10
1281
+ },
1282
+ {
1283
+ "type": "text",
1284
+ "text": "",
1285
+ "bbox": [
1286
+ 171,
1287
+ 71,
1288
+ 828,
1289
+ 917
1290
+ ],
1291
+ "page_idx": 11
1292
+ },
1293
+ {
1294
+ "type": "text",
1295
+ "text": "[26] J. Springenberg, A. Dosovitskiy, T. Brox, and M. Riedmiller. Striving for simplicity: The all convolutional net. CoRR, 12 2014. ",
1296
+ "bbox": [
1297
+ 168,
1298
+ 90,
1299
+ 825,
1300
+ 119
1301
+ ],
1302
+ "page_idx": 12
1303
+ },
1304
+ {
1305
+ "type": "text",
1306
+ "text": "[27] M. Sundararajan, A. Taly, and Q. Yan. Axiomatic attribution for deep networks. In D. Precup and Y. W. Teh, editors, Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages 3319–3328, International Convention Centre, Sydney, Australia, 06–11 Aug 2017. PMLR. URL http://proceedings. mlr.press/v70/sundararajan17a.html. ",
1307
+ "bbox": [
1308
+ 174,
1309
+ 128,
1310
+ 823,
1311
+ 198
1312
+ ],
1313
+ "page_idx": 12
1314
+ },
1315
+ {
1316
+ "type": "text",
1317
+ "text": "[28] I. Tenney, D. Das, and E. Pavlick. BERT rediscovers the classical NLP pipeline. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 4593– 4601, Florence, Italy, July 2019. Association for Computational Linguistics. doi: 10.18653/v1/ P19-1452. URL https://www.aclweb.org/anthology/P19-1452. ",
1318
+ "bbox": [
1319
+ 173,
1320
+ 207,
1321
+ 828,
1322
+ 263
1323
+ ],
1324
+ "page_idx": 12
1325
+ },
1326
+ {
1327
+ "type": "text",
1328
+ "text": "[29] J. van Benthem. A brief history of natural logic. In M. Chakraborty, B. LΓΆwe, M. Nath Mitra, and S. Sarukki, editors, Logic, Navya-Nyaya and Applications: Homage to Bimal Matilal, 2008. ",
1329
+ "bbox": [
1330
+ 173,
1331
+ 272,
1332
+ 825,
1333
+ 303
1334
+ ],
1335
+ "page_idx": 12
1336
+ },
1337
+ {
1338
+ "type": "text",
1339
+ "text": "[30] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. u. Kaiser, and I. Polosukhin. Attention is all you need. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett, editors, Advances in Neural Information Processing Systems 30, pages 5998–6008. Curran Associates, Inc., 2017. URL http://papers.nips.cc/ paper/7181-attention-is-all-you-need.pdf. ",
1340
+ "bbox": [
1341
+ 174,
1342
+ 309,
1343
+ 828,
1344
+ 381
1345
+ ],
1346
+ "page_idx": 12
1347
+ },
1348
+ {
1349
+ "type": "text",
1350
+ "text": "[31] T. Wolf, L. Debut, V. Sanh, J. Chaumond, C. Delangue, A. Moi, P. Cistac, T. Rault, R. Louf, M. Funtowicz, and J. Brew. Huggingface’s transformers: State-of-the-art natural language processing. ArXiv, abs/1910.03771, 2019. ",
1351
+ "bbox": [
1352
+ 171,
1353
+ 388,
1354
+ 823,
1355
+ 431
1356
+ ],
1357
+ "page_idx": 12
1358
+ },
1359
+ {
1360
+ "type": "text",
1361
+ "text": "[32] M. D. Zeiler and R. Fergus. Visualizing and understanding convolutional networks. In D. Fleet, T. Pajdla, B. Schiele, and T. Tuytelaars, editors, Computer Vision – ECCV 2014, pages 818–833, Cham, 2014. Springer International Publishing. ISBN 978-3-319-10590-1. ",
1362
+ "bbox": [
1363
+ 176,
1364
+ 440,
1365
+ 825,
1366
+ 483
1367
+ ],
1368
+ "page_idx": 12
1369
+ }
1370
+ ]
parse/train/RmuXDtjDhG/RmuXDtjDhG_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/RmuXDtjDhG/RmuXDtjDhG_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Rx9dBZaV_IP/Rx9dBZaV_IP.md ADDED
@@ -0,0 +1,263 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Conformal Time-Series Forecasting
2
+
3
+ Kamile Stankevi˙ ciˇ ut¯ e˙ University of Oxford University of Cambridge ks830@cam.ac.uk
4
+
5
+ Ahmed M. Alaa University of California, Los Angeles ahmedmalaa@ucla.edu
6
+
7
+ Mihaela van der Schaar University of Cambridge University of California, Los Angeles The Alan Turing Institute mv472@cam.ac.uk
8
+
9
+ # Abstract
10
+
11
+ Current approaches for (multi-horizon) time-series forecasting using recurrent neural networks (RNNs) focus on issuing point estimates, which are insufficient for informing decision-making in critical application domains wherein uncertainty estimates are also required. Existing methods for uncertainty quantification in RNNbased time-series forecasts are limited as they may require significant alterations to the underlying architecture, may be computationally complex, may be difficult to calibrate, may incur high sample complexity, and may not provide theoretical validity guarantees for the issued uncertainty intervals. In this work, we extend the inductive conformal prediction framework to the time-series forecasting setup, and propose a lightweight uncertainty estimation procedure to address the above limitations. With minimal exchangeability assumptions, our approach provides uncertainty intervals with theoretical guarantees on frequentist coverage for any multi-horizon forecast predictor and any dataset. We demonstrate the effectiveness of the conformal forecasting framework by comparing it with existing baselines on a variety of synthetic and real-world datasets.
12
+
13
+ # 1 Introduction
14
+
15
+ Time-series forecasting tasks are central to a broad range of application domains, including stock price predictions [1, 2], service demand forecasting [3, 4], and medical prognoses [5–7]. Recurrent neural networks (RNNs) and their variants (e.g., LSTM, GRU, etc.) constitute an instrumental class of models that are most commonly used to carry out time-series forecasting tasks [8, 9]. These models, however, are usually used to issue point predictionsβ€”i.e., singular estimates of the future values of a time-series. In many high-stakes applicationsβ€”such as finance and medicineβ€”these are not enough; estimates of uncertainty are also required for accurate risk assessment and decision-making [10]. For example, clinical practitioners need to make treatment decisions accounting for all potential scenarios, where less likely scenarios may have graver consequences and require more care compared to the more likely scenarios [11, 12].
16
+
17
+ While various methods for uncertainty estimation in standard feed-forward neural networks have been recently proposed [13–15], equivalent methods for RNN-based time-series models are still under-explored. Existing solutions include Bayesian recurrent neural networks [16–18], quantile regression models [3, 19], latent variable models with deep state-space architectures [6, 20], and post-hoc uncertainty estimates using bootstrapping, jackknife or other ensembling procedures [21– 23]. Each of these solutions has its own limitations: Bayesian models may be difficult to calibrate, quantile predictors may β€œoverfit” their uncertainty estimates, and bootstrapping methods scale poorly for RNNs with large number of parameters. Almost all existing methods share at least one of the two major drawbacks: (1) they require substantial modifications to the underlying model architecture, and (2) they provide no theoretical guarantees on frequentist coverage, any of the exceptions being computationally intractable.
18
+
19
+ We aim to address the above limitations by adapting conformal prediction (CP) [24, 25]β€”a framework used to derive prediction intervals with guaranteed finite-sample frequentist coverageβ€”to the timeseries forecasting setup. CP has originally been designed to construct prediction intervals for scalar targets; on the other hand, observations and predictions in time-series forecasting involve temporally dependent, potentially multivariate sequences that are not, in general, directly comparable due to differences in observation lengths, irregular frequencies, non-stationarity, and other variations in temporal dynamics (comparison between training points being a key step in CP). We extend CP to a novel, computationally efficient conformal forecasting framework that can leverage any underlying point forecasting model to produce multi-step prediction intervals with coverage guarantees across the prediction horizon. We focus on RNN-based conformal forecasting architectures, which we call conformal forecasting RNNs (CF-RNNs), and explore their effectiveness in providing valid and efficient coverage intervals.
20
+
21
+ # 2 Related Work
22
+
23
+ Most previous work in the area of uncertainty quantification in deep learning focuses on feed-forward neural network models. Much less work has been done on uncertainty estimation for time-series models. In what follows, we discuss previous methods developed for uncertainty estimation for RNNs, which we also summarise in Table 1.
24
+
25
+ Table 1: Overview of the most popular RNN-based probabilistic forecasting methods.
26
+
27
+ <table><tr><td>Method</td><td>Paradigm</td><td>Architecture</td><td>Time-series observations</td><td>Frequentist coverage</td></tr><tr><td>Bayesian RNNs [16-18]</td><td>Bayesian</td><td>Built-in</td><td>Multiple</td><td></td></tr><tr><td>Monte Carlo dropout [26]</td><td>Bayesian (approx.)</td><td>Built-in</td><td>Multiple</td><td></td></tr><tr><td>MQ-[3], SQF-RNN [19]</td><td></td><td>Built-in</td><td>Multiple</td><td>δΈ€</td></tr><tr><td>BJ-RNN [21]</td><td>Frequentist</td><td>Post-hoc</td><td>Multiple</td><td>1-2Ξ±</td></tr><tr><td>EnbPI [27]</td><td>Frequentist (approx.)</td><td>Ensemble</td><td>Single</td><td>1-Ξ±</td></tr><tr><td>CF-RNN (proposed)</td><td>Frequentist</td><td>Post-hoc</td><td>Multiple</td><td>1-Ξ±</td></tr></table>
28
+
29
+ Bayesian RNNs [16–18] extend the ideas of Bayesian inference to RNN models, expressing the model (epistemic1) uncertainty through distributions on model parameters [28, 29]. Exact Bayesian inference quickly becomes infeasible, however; various approximations based on Markov chain Monte Carlo [30–33] or variational inference [34–37] are needed. Bayesian neural networks depend on significant changes in the underlying model architecture (at least doubling the number of parameters), and rely on a good choice of prior (which may be challenging in practice). While simplifying techniques such as Monte Carlo dropout [26] (with RNN-specific adaptation in Gal and Ghahramani [38]) exist, they are often difficult to calibrate [21].
30
+
31
+ Quantile RNNs can be viewed as a deep neural network extension of quantile regression [39] for sequential data: instead of returning a series of point estimates across the prediction horizon, quantile RNNs learn the prediction intervals directly, with upper and lower bounds of the forecast as separate prediction targets. The standard approach to achieve this is to use the appropriate pinball loss function as the objective. While successful applications of this approach in time-series forecasting exist [3], naively learning individual bounds may have problems such as quantile crossing; more recent approaches Gasthaus et al. [19] resolve this by fitting the entire quantile function. Quantile RNNs are additionally at risk of quantile overfitting due to poor sample complexity [21].
32
+
33
+ Ensembles are based on the principle of training and combining multiple models, e.g. deep ensembles trained on different random initialisations [40, 41], or models retrained on partial datasets (jackknife or bootstrap resampling-based RNNs, [22, 21]). Deep neural network ensembles are in general not mathematically principled for uncertainty quantification [42]; while resampling-based models resolve this and provide post-hoc frequentist coverage guarantees, they are instead limited in their time and space complexity. For example, exact inference on the state-of-the-art blockwise jackknife RNN (BJ-RNN) model [21] takes ${ \cal O } ( P ^ { 3 } )$ time for $P$ parameters, and even with simplifying approximationsβ€”which in turn deteriorate accuracyβ€”the model does not scale beyond small datasets.
34
+
35
+ ![](images/2485dd58fe846731adacaec3932cb398c702ae29f62851100eddf4b91bd8c219.jpg)
36
+ Figure 1: Time-series observation paradigms. (Left) The dataset is assumed to comprise a single timeseries, with observations being individual time-steps within the time-series. These observations are temporally dependent. (Right) The dataset consists of a set of independent time-series, where the entire series is treated as an observation. Independence of time-series implies their exchangeability.
37
+
38
+ Conformal prediction (CP) For a given significance level (error rate) $\alpha$ , the goal of CP [24, 25] is to return a prediction region $\varGamma ^ { \alpha }$ that is guaranteed to contain the true value with probability of at least $( 1 - \alpha )$ . In regression problems (such as time-series forecasting), CP is modified to work inductively using an additional calibration set and an underlying modelβ€”an approach called inductive conformal prediction (ICP) [43, 44]. Little work has been done applying (I)CP methods for time-series forecasting; the main challenge is that CP assumes exchangeability, where any permutation of the dataset observations is equiprobable. However, the time-steps within a time-series are inherently non-exchangeable due to temporal dependencies (Figure 1, left); naively applying CP to derive forecast intervals from a given time-series is therefore not methodologically valid and lacks the validity guarantees. One notable exception is the EnbPI model [27], which bypasses the exchangeability assumption (introducing some others) and uses an ensemble of bootstrapped estimators to provide approximately valid intervals. However, we argue that learning from a single time-seriesβ€”while useful in cases where indeed only one time-series is availableβ€”may not be optimal in settings where datasets contain multiple time-series, the shared patterns of which could potentially be exploited (Figure 1, right). To the best of our knowledge, no existing method has applied CP to the latter forecasting setting (despite it being more methodologically grounded); yet the datasets of multiple time-series are increasingly common and useful [45].
39
+
40
+ # 3 Conformal forecasting RNNs (CF-RNNs)
41
+
42
+ In this Section, we introduce the conformal forecasting RNN (CF-RNN) model. We start off by formalizing the multi-horizon time-series forecasting problem in Section 3.1, and providing the necessary background on inductive conformal prediction (ICP) for regression tasks in Section 3.2. We introduce the details of the conformal forecasting procedure in Section 3.3.
43
+
44
+ # 3.1 Multi-horizon time-series forecasting
45
+
46
+ Let $y _ { t : t ^ { \prime } } = ( y _ { t } , y _ { t + 1 } \ldots , y _ { t ^ { \prime } } )$ be a time-series of $d$ -dimensional observations $y _ { t } , \ldots , y _ { t ^ { \prime } } \in \mathbb R ^ { d }$ that start at time step $t$ and end at time step $t ^ { \prime }$ . A multi-horizon time-series forecast predicts future values
47
+
48
+ $$
49
+ \hat { y } _ { ( t ^ { \prime } + 1 ) : ( t ^ { \prime } + H ) } = \left( \hat { y } _ { t ^ { \prime } + 1 } , \ldots , \hat { y } _ { t ^ { \prime } + H } \right) \in \mathbb { R } ^ { H \times d } ,
50
+ $$
51
+
52
+ given the history of observed values $y _ { 1 : t ^ { \prime } }$ , where $H$ is the number of steps to be predicted (the prediction horizon). For critical applications, we are interested in the uncertainty associated with the forecastβ€”for each time step $h$ in the prediction horizon, we would like to obtain prediction intervals of the form $[ \hat { y } _ { t + h } ^ { L } , \hat { y } _ { t + h } ^ { U } ]$ , $h \in \{ 1 , \ldots , H \}$ , so that the ground truth value $y _ { t + h }$ is contained in the interval with a sufficiently high probability. We fix a desired significance level (or error rate) $\alpha$ , such that the ground-truth values of the entire time-series trajectory are contained within the intervals; i.e.,
53
+
54
+ $$
55
+ \mathbb { P } \left[ y _ { t + h } \in [ \hat { y } _ { t + h } ^ { L } , \hat { y } _ { t + h } ^ { U } ] , \forall h \in \{ 1 , \dots , H \} \right] \geq 1 - \alpha .
56
+ $$
57
+
58
+ # 3.2 Inductive conformal prediction (ICP)
59
+
60
+ Given a set of observations $\mathcal { D } = \{ ( \mathbf { x } ^ { ( i ) } , y ^ { ( i ) } ) \} _ { i = 1 } ^ { l }$ and a new example $\mathbf { x } ^ { ( l + 1 ) }$ , the ICP procedure [24, 46, 47] returns a prediction interval $\varGamma ^ { \alpha }$ such that the property of validity is satisfied:
61
+
62
+ Property 1. (Validity) Under the exhangeability assumption, any conformal predictor will return the prediction region $\begin{array} { r } { \dot { T } ^ { \alpha } ( \mathbf { x } ^ { ( i ) } ) } \end{array}$ such that the probability of error $y ^ { ( l + 1 ) } \not \in { \Gamma } ^ { \alpha } ( \dot { \mathbf { x } } ^ { ( l + 1 ) } )$ is not greater than $\alpha$ . Alternatively:
63
+
64
+ $$
65
+ \mathbb { P } [ y ^ { ( l + 1 ) } \in { \Gamma } ^ { \alpha } ( \mathbf { x } ^ { ( l + 1 ) } ) \mid \mathcal { D } ] \geq 1 - \alpha .
66
+ $$
67
+
68
+ The conformal prediction framework is distribution-free (i.e. it does not have any assumptions on the distribution of the underlying data $\mathcal { D }$ ), and applies to any underlying predictive model as long as the exchangeability assumption is satisfied:
69
+
70
+ Assumption 1. (Exchangeability) In a dataset of l observations $\{ ( \mathbf { x } ^ { ( i ) } , y ^ { ( i ) } ) \} _ { i = 1 } ^ { l }$ , any of its $l !$ permutations are equiprobable. Note that independent identically distributed (iid) observations satisfy exchangeability.
71
+
72
+ The inductive2 variant of CP operates by splitting the training set into the proper training set of size $n$ and a calibration set of size $m$ : $\mathcal { D } = \mathcal { D } _ { \mathrm { t r a i n } } \cup \mathcal { D } _ { \mathrm { c a l } }$ . The proper training set is used to train the underlying (auxiliary) model $M$ , and the calibration set is used to obtain the nonconformity scores, which measure how unusual is the given example compared to previously observed data. While CP guarantees validity for any nonconformity score (including a random number generator), the most commonly used nonconformity score in regression is of the form
73
+
74
+ $$
75
+ R _ { i } = A ( \mathcal D , ( { \mathbf x } ^ { ( i ) } , y ^ { ( i ) } ) ) = A ( M ( { \mathbf x } ^ { ( i ) } | \mathcal D ) , y ^ { ( i ) } ) ,
76
+ $$
77
+
78
+ where $\varDelta$ is some distance metric. While any choice for $M$ is valid, the best architecture depends on the dataset and the problem. When $\varDelta ( \hat { y } , y ) = | \hat { y } - y |$ , the nonconformity score $R _ { i } = | \hat { y } ^ { ( i ) } - y ^ { ( i ) } |$ corresponds to the residual error between the prediction of the underlying model and the true label.
79
+
80
+ The resulting empirical nonconformity score distribution $\{ R _ { i } \} _ { i = 1 } ^ { l }$ is used to compute a critical nonconformity score $\hat { \varepsilon }$ , which corresponds to the $\lceil ( m + 1 ) ( \mathrm { i } - \bar { \alpha } ) \rceil$ -th smallest residual [48]. For a new example $\mathbf { x } ^ { ( l + 1 ) }$ , the prediction interval is then:
81
+
82
+ $$
83
+ \Gamma ^ { \alpha } ( \mathbf { x } ^ { ( l + 1 ) } ) = [ \hat { y } ^ { ( l + 1 ) } - \hat { \varepsilon } , \hat { y } ^ { ( l + 1 ) } + \hat { \varepsilon } ] ,
84
+ $$
85
+
86
+ with $\hat { y } ^ { ( l + 1 ) } = M ( \mathbf { x } ^ { ( l + 1 ) } )$ .
87
+
88
+ # 3.3 CF-RNN: ICP for multi-horizon RNNs
89
+
90
+ So far we have considered the case when the labels $y \in \mathbb R$ are scalar, but multi-horizon time-series forecasts return $H$ $d$ -dimensional) values (in this work, we focus on $d = 1$ ; extending the results to multivariate time-series is left for future work). We extend the ICP framework to handle the multi-horizon forecasting setup, while maintaining the validity of the resulting multi-horizon forecast intervalsβ€”we call this the conformal forecasting framework.
91
+
92
+ ![](images/ca21b6032dc890cbc6c6b27dcd47cf9ac7c544e4d236e7afc42c06fe26532770.jpg)
93
+ Figure 2: CF-RNN uncertainty estimation procedure. (a) The calibration set is used to obtain the empirical distribution of nonconformity scores $\hat { \varepsilon } _ { h }$ , and its appropriate quantile is selected depending on the desired target coverage level. (b) Critical nonconformity scores are used to obtain the prediction interval.
94
+
95
+ Let $\mathcal { D }$ be the set of exchangeable observations of the form $\left( y _ { 1 : T } , y _ { T + 1 : T + H } \right)$ , where $y _ { 1 : T }$ is the time-series consisting of $T$ observed steps, and $y _ { T + 1 : T + H }$ is the $H$ -step forecast. Note that the label $y _ { T + 1 : T + H }$ is now an $H$ -dimensional value, in contrast with the scalar $y$ value from before. Due to the sequential nature of the task, we will use an RNN as the underlying model $M$ . We set $M$ to produce multi-horizon forecasts directly (where at each time step $t$ , all values of the $H$ -step target $y _ { t + 1 : t + H }$ are predicted at the same time from a single embedding) rather than recursively (where a single prediction is obtained at a time, and successive values are obtained by iteratively feeding them back into the RNN). We motivate our choice of the direct strategy by its robustness to error accumulation [50, 3], and conditionally independent predictions given the state of $M$ (which will be important for theoretical guarantees as discussed below). We now replace the single-dimensional nonconformity score defined earlier by its $H$ -dimensional counterpart,
96
+
97
+ $$
98
+ R _ { i } = \left[ | y _ { t + 1 } ^ { ( i ) } - \hat { y } _ { t + 1 } ^ { ( i ) } | , \dots , | y _ { t + H } ^ { ( i ) } - \hat { y } _ { t + H } ^ { ( i ) } | \right] ^ { \top } ,
99
+ $$
100
+
101
+ where $\left[ \widehat { y } _ { t + 1 } ^ { ( i ) } , \ldots , \widehat { y } _ { t + H } ^ { ( i ) } \right] ^ { \top } = M ( y _ { 1 : t } ^ { ( i ) } )$ . Since the $H$ conditionally independent predictions are obtained from the same embedding, we apply Bonferroni correction to the critical calibration scores in order to maintain the desired error rate $\alpha$ . In particular, the original $\alpha$ is divided by $H$ , so that the critical nonconformity scores $\hat { \varepsilon } _ { 1 } , \dots , \hat { \varepsilon } _ { H }$ become the $\lceil ( m + 1 ) ( 1 - \alpha / H ) \rceil$ -th smallest residuals in the corresponding nonconformity score distributions. The resulting set of prediction intervals is therefore
102
+
103
+ $$
104
+ \begin{array} { r } { \int _ { 1 } ^ { \alpha } \left( y _ { ( 1 : t ) } ^ { ( l + 1 ) } \right) , \ldots , \int _ { H } ^ { \alpha } \left( y _ { ( 1 : t ) } ^ { ( l + 1 ) } \right) , } \end{array}
105
+ $$
106
+
107
+ where
108
+
109
+ $$
110
+ \begin{array} { r } { T _ { h } ^ { \alpha } \left( y _ { ( 1 : t ) } ^ { ( l + 1 ) } \right) = \left[ \hat { y } _ { t + h } ^ { ( l + 1 ) } - \hat { \varepsilon } _ { h } , \hat { y } _ { t + h } ^ { ( l + 1 ) } + \hat { \varepsilon } _ { h } \right] \quad \forall h \in \{ 1 , \ldots , H \} . } \end{array}
111
+ $$
112
+
113
+ In summary, the conformal forecasting RNN (CF-RNN) model consists of an RNN issuing point forecasts, and a conformal forecasting procedure to derive the uncertainty. The entire procedure for constructing prediction intervals in CF-RNN is illustrated in Figure 2 and summarized in Algorithm 1. Finally, we show the theoretical motivations behind our approach via the following Theorem, which provides validity for intervals obtained with the conformal forecasting procedure.
114
+
115
+ Theorem 1. (Conformal forecasting validity) Let $\mathcal { D } = \left\{ \left( y _ { 1 : t } ^ { ( i ) } , y _ { t + 1 : t + H } ^ { ( i ) } \right) \right\} _ { i = 1 } ^ { l }$ be the dataset of exchangeable time-series observations and their i=1-step forecasts obtained from the same underlying probability distribution. Let M be the recurrent neural network predicting $H$ -step forecasts using the direct strategy. For any significance level $\alpha \in [ 0 , 1 ]$ , the intervals obtained with the ICP-based conformal forecasting algorithm will have the error rate of at most $\alpha$ ; alternatively,
116
+
117
+ $$
118
+ \mathbb { P } \left( \forall h \in \{ 1 , \dots , H \} . y _ { t + h } \in \left[ \hat { y } _ { t + h } - \hat { \varepsilon } _ { h } , \hat { y } _ { t + h } + \hat { \varepsilon } _ { h } \right] \right) \geq 1 - \alpha .
119
+ $$
120
+
121
+ The proof follows from conditional validity of ICP in Vovk [51] and Boole’s inequality. The full statement and detailed proof is provided in Appendix A.
122
+
123
+ # Algorithm 1 Conformal forecasting RNN (CF-RNN)
124
+
125
+ <table><tr><td>1:Input: A trained model M producing H-step forecasts,</td><td>m</td></tr><tr><td>2: 3:</td><td>,target error rate Ξ±. i=1 Output: Critical nonconformity scores Ξ΅1,., H.</td></tr><tr><td>4:</td><td>InitializeΞ΅1={,...,Ξ΅H={.</td></tr><tr><td>5:</td><td>fori=1 to m do</td></tr><tr><td>6:</td><td>yt+1:t+H ← M(yi). (i)</td></tr><tr><td>7:</td><td>forh=1 to H do</td></tr><tr><td>8:</td><td>(i) (i)</td></tr><tr><td>9:</td><td>end for</td></tr><tr><td>10: 11:</td><td>end for for h=1toHdo</td></tr><tr><td>12:</td><td>(Bonferroni and finite sample correction)</td></tr><tr><td>13:</td><td>Ξ΅h ←[(m+1)(1-Ξ±/H)]-th smallest residual in Ξ΅h.</td></tr><tr><td>14:</td><td>end for</td></tr><tr><td>15:</td><td>return Ξ΅1,...,€H.</td></tr><tr><td>16:</td><td>For a new time-series example y*:t:</td></tr><tr><td></td><td></td></tr><tr><td>17:</td><td>Yt+1:t+H ←M(yi:t).</td></tr><tr><td>18:</td><td>return intervals 9t+1 Β±Ξ΅1,... 9t+H Β±Ξ΅H.</td></tr></table>
126
+
127
+ # 4 Experiments
128
+
129
+ In this section, we showcase the performance of the conformal forecasting RNN (CF-RNN) model against three baselines: the frequentist blockwise jackknife RNN (BJ-RNN) [21], the multi-quantile RNN (MQ-RNN) [3], and the Monte Carlo dropout-based RNN (DP-RNN) [26]. We chose these baselines as the most popular and representative examples of the different paradigms for uncertainty estimation (frequentist, quantile prediction and Bayesian uncertainty estimation for BJ-RNN, MQRNN and DP-RNN respectively). All architectures use LSTM as the underlying recurrent neural network, and are adapted to produce direct multi-horizon forecasts. We first present the performance of CF-RNNs on synthetic data with controlled properties. Since BJ-RNNs do not scale to larger real datasets, we use smaller synthetic datasets to provide the comparison of BJ-RNNs with the other methods. Finally, we compare the performance of CF-RNNs with the remaining two baselines on three real-world medical datasets. The code is available at github.com/kamilest/conformal-rnn.
130
+
131
+ # 4.1 Synthetic data
132
+
133
+ We first generate the synthetic time-series consisting of two components: the autoregressive process determining the trend of the time-series, and the noise process representing the inherent uncertainty of the dataset.3 For a time-series of length $T$ , this is expressed mathematically as:
134
+
135
+ $$
136
+ y _ { t } = \sum _ { k = 0 } ^ { t } a ^ { k } \cdot x _ { k } + \epsilon _ { t } , \forall k \in \{ 1 , \ldots , T \} ,
137
+ $$
138
+
139
+ where $x _ { t } \sim \mathcal { N } ( \mu _ { x } , \sigma _ { x } ^ { 2 } )$ , $a = 0 . 9$ is the memory parameter and $\epsilon _ { t } \sim \mathcal { N } ( 0 , \sigma _ { t } ^ { 2 } )$ is the noise process. We consider five time-dependent noise variance profiles, $\sigma _ { t } ^ { 2 } = 0 . 1 t n$ and five static noise variance profiles $\sigma _ { t } ^ { 2 } = 0 . 1 n$ , for $\bar { n = \{ 1 , \ldots , 5 \} }$ .
140
+
141
+ # 4.2 Results
142
+
143
+ We train the models on 2000 training sequences (with CF-RNNs splitting this dataset into 1000 true training and 1000 calibration sequences) for the two noise variance profiles. We aim to forecast prediction intervals for $H$ future values $y _ { T + 1 : T + H }$ for a default coverage rate of $90 \%$ $\alpha = 0 . 1 $ ). Here, $T = 1 5$ and $H = 5$ . The RNN hyperparameters for the networks underlying the uncertainty estimation models are fixed in order to ensure fair comparison, and largely follow those provided in previous work [21]. These are detailed in the Appendix B along with the time-series model parameters. Where possible,4 we repeat the experiments five times with a new randomly generated dataset, reporting the variation in empirical joint coverage over the different realisations.
144
+
145
+ Table 2: Comparison of joint coverages produced by CF-RNNs and competing baselines on autoregressive series with static or time-dependent noise profiles. Where possible, empirical joint coverages are aggregated over repeated trials with randomly generated datasets.
146
+
147
+ <table><tr><td rowspan="2" colspan="2">Noise mode</td><td colspan="4">Empirical joint coverage</td></tr><tr><td>CF-RNN</td><td>BJ-RNN</td><td>MQ-RNN</td><td>DP-RNN</td></tr><tr><td rowspan="5">Static =0.1n</td><td>n=1</td><td>92.8 Β± 0.8%</td><td>100%</td><td>65.0 Β± 2.7%</td><td>5.4 Β± 0.5%</td></tr><tr><td>n=2</td><td>94.0 Β± 0.4%</td><td>100%</td><td>65.6 Β± 3.4%</td><td>5.6 Β± 1.0%</td></tr><tr><td>n=3</td><td>94.6 Β± 1.6%</td><td>100%</td><td>66.4 Β± 1.9%</td><td>5.0 Β± 0.9%</td></tr><tr><td>n=4</td><td>94.3 Β± 1.4%</td><td>100%</td><td>65.2 Β± 4.4%</td><td>4.7 Β± 1.0%</td></tr><tr><td>n=5</td><td>94.3 Β± 1.4%</td><td>100%</td><td>67.2 Β± 1.6%</td><td>4.2 Β± 1.0%</td></tr><tr><td rowspan="5">Time-dependent Β²=0.1tn</td><td>n=1</td><td>92.7 Β± 1.3%</td><td>99.4%</td><td>63.4 Β± 1.5%</td><td>2.5 Β± 1.1%</td></tr><tr><td>n=2</td><td>92.4 Β± 0.9%</td><td>100%</td><td>60.9 Β± 1.9%</td><td>0.4 Β± 0.2%</td></tr><tr><td>n=3</td><td>90.9 Β± 1.3%</td><td>100%</td><td>57.2 Β± 2.1%</td><td>0.3 Β± 0.2%</td></tr><tr><td>n=4</td><td>90.6 Β± 1.2%</td><td>97.0%</td><td>57.1 Β± 3.7%</td><td>0.0 Β± 0.1%</td></tr><tr><td>n=5</td><td>91.1 Β± 0.7%</td><td>99.4%</td><td>58.6 Β± 2.1%</td><td>0.1 Β± 0.1%</td></tr></table>
148
+
149
+ Table 3: Prediction interval widths of CF-RNNs and competing baselines on synthetic datasets of autoregressive time-series with static or time-dependent noise profiles. The mean and standard deviation are reported over all prediction horizons and random seeds.
150
+
151
+ <table><tr><td rowspan="2" colspan="2">Noise mode</td><td colspan="4">Interval widths</td></tr><tr><td>CF-RNN</td><td>BJ-RNN</td><td>MQ-RNN</td><td>DP-RNN</td></tr><tr><td rowspan="5">Static 8=0.1n</td><td>n=1</td><td></td><td>16.45 Β± 3.69</td><td>98.45 Β± 25.95</td><td>9.47 Β± 1.99</td><td>2.82 Β± 0.33</td></tr><tr><td></td><td>n=2</td><td>16.97 Β± 3.34</td><td>32.53 Β± 2.92</td><td>9.63 Β± 1.85</td><td>2.95Β± 0.37</td></tr><tr><td></td><td>n=3</td><td>17.12 Β± 3.50</td><td>35.82 Β± 1.59</td><td>9.72 Β± 1.92</td><td>2.77 Β± 0.37</td></tr><tr><td></td><td>n=4</td><td>17.34 Β± 3.77</td><td>33.83 Β± 2.49</td><td>9.71 Β± 1.80</td><td>2.87 Β± 0.35</td></tr><tr><td>n=5</td><td></td><td>16.97 Β± 3.27</td><td>51.23 Β± 3.21</td><td>9.84 Β± 1.99</td><td>2.85 Β± 0.38</td></tr><tr><td rowspan="5">Time-dependent Β²=0.1tn</td><td></td><td>n=1</td><td>19.80 Β± 3.61</td><td>27.09 Β± 1.16</td><td>11.50 Β± 1.66</td><td>3.01 Β± 0.35</td></tr><tr><td>n=2</td><td></td><td>25.74 Β± 3.32</td><td>104.85 Β± 5.68</td><td>15.45 Β± 1.68</td><td>3.15 Β± 0.37</td></tr><tr><td>n=3</td><td></td><td>32.70 Β± 3.97</td><td>36.45 Β± 1.25</td><td>20.05 Β± 2.02</td><td>3.62 Β± 0.33</td></tr><tr><td></td><td>n=4</td><td>40.74 Β± 4.10</td><td>33.24 Β± 2.32</td><td>25.02 Β± 2.11</td><td>3.91 Β± 0.45</td></tr><tr><td>n=5</td><td></td><td>49.00 Β± 5.58</td><td>51.45 Β± 5.37</td><td>30.55 Β± 2.54</td><td>4.15 Β± 0.57</td></tr></table>
152
+
153
+ Tables 2 and 3 compare the joint coverage uncertainty intervals of the models. Both CF-RNN and BJ-RNN empirically surpass the target joint coverage of $90 \%$ $\alpha = 0 . 1$ ) in both static and timedependent noise settings, satisfying the finite-sample frequentist coverage guarantees as required.
154
+
155
+ ![](images/346fc75b4c5b7c33b8e95f69509eb0ef5ede033153eb203a54f9a8a5fc222b26.jpg)
156
+ Figure 3: Trade-offs between the dataset size, joint coverage and interval widths. (Left and Middle) The relationship between the training dataset size, joint coverage rate (left) and average interval width (middle) for CF-RNN, MQ-RNN and DP-RNN baselines. (Right) The trade-off between the coverage rate and prediction horizon for a fixed prediction interval width in CF-RNN models with different types of the underlying RNN.
157
+
158
+ Table 3 additionally illustrates that CF-RNN intervals adapt to the properties of the temporal dynamics of the dataset: when the noise is static (and the time-series more predictable), CF-RNN prediction interval widths do not change much with increasing base variance; on the other hand, when the noise profile is time-dependentβ€”so that inherent noise of the time-series accumulates in addition to uncertainty of the model itselfβ€”the average intervals get wider with increasing dataset uncertainty. The other frequentist baselineβ€”BJ-RNNβ€”has markedly wider intervals than those of CF-RNN. This might be important to maintain the perfect coverage; however, we argue that as long as the coverage rate surpasses target coverage, the intervals should be as efficient (narrow) as possible to be the most informative for decision making. (Consider that infinite intervals would have perfect coverage but would not be informative.) In addition, BJ-RNNs take prohibitively long to compute (the reason for which they contain only a single seed and will also be excluded from the comparisons on real data). Conversely, the ICP procedure only requires running the trained RNN model on a calibration set (where the model can be calibrated for any desired coverage simultaneously, with no additional computational cost), at which point adding uncertainty intervals to a prediction takes constant time. On the other hand, baselines following the alternative (non-frequentist) paradigmsβ€”MQ-RNN and DP-RNNβ€”both fail to achieve target coverage, sometimes reporting coverage rates as low as zero. For this reason, while the two models also come with narrower (more efficient) intervals, lack of coverage guarantees makes them less useful in high stakes real-world applications.
159
+
160
+ Experiments on the data with controlled properties provide additional insight on the trade-offs between the desired coverage rate and how far into the future can the predictions be reliably made. These trade-offs are shown in Figure 3 as applied to the datasets with time-dependent noise variance profile $\sigma _ { t } ^ { 2 } = 0 . 1 t$ . The left and middle panels show the average performance of the CF-RNN, MQ-RNN and DP-RNN baselines depending on the training dataset size. CF-RNN is the only model to achieve and maintain the required joint coverage rate with finite number of examples; additionally, with more data (larger calibration datasets), the distribution of nonconformity scores can be specified more accurately, so the width of the intervals decreases. Finally, in the panel on the right we fix the prediction interval width and for each horizon $H$ compute the largest coverage level $1 - \alpha$ maintained by CF-RNN. As shown in the Figure, low target coverage levels allow us to make valid predictions far into the future, and ideal coverage levels can only be achieved with horizons near the prediction point. The overall trend is maintained for every recurrent neural network model $M$ .
161
+
162
+ # 4.3 Experiments on real data
163
+
164
+ We now demonstrate the effectiveness of our procedure on real-world time-series. We train the proposed CF-RNN architecture as well as the MQ-RNN and DP-RNN baselines on three datasets summarised in Table 4. For the first task, we use the data from the Medical Information Mart for Intensive Care (MIMIC-III) [52] dataset, where we forecast daily observations of white blood cell counts of varying lengths. For the second task, we use the electroencephalography (EEG) dataset from the UCI machine learning repository [53], where we forecast trajectories of downsampled EEG signals obtained from healthy subjects exposed to three types of visual stimuli. For the final task, we forecast daily COVID-19 cases within the United Kingdom local authority districts. All datasets are publicly available and the medical data is anonymised. We selected these datasets to represent a variety of scenarios of real time-series: the numbers of available training instances span different orders of magnitude (from hundreds to tens of thousands), the datasets have varying observation sequence lengths, different stationarity properties (e.g. the COVID-19 time-series are synchronousβ€”each time step representing the same point in timeβ€”the others are not), different noise profiles (e.g. EEG signal data will inherently have higher frequencies than MIMIC-III white blood cell count data), and different target prediction horizons. We note that COVID-19 dataset is especially challenging as the forecasts contain a wave of infections and lockdowns, with the wave starting at different points for every region. Details on datasets and their preprocessing are provided in Appendix C.
165
+
166
+ Table 4: Dataset properties. The number in parentheses under the training example column indicates how many examples were used for training when a calibration set was required, such as in the case of CF-RNNs.
167
+
168
+ <table><tr><td>Dataset</td><td># Training sequences</td><td>Window length T</td><td>Prediction horizon H</td></tr><tr><td>MIMIC-III [52]</td><td>3823 (2000)</td><td>[3,47]</td><td>2</td></tr><tr><td>EEG [53]</td><td>19200 (15360)</td><td>40</td><td>10</td></tr><tr><td>COVID-19 [54]</td><td>300 (200)</td><td>100</td><td>50</td></tr></table>
169
+
170
+ Table 5: Uncertainty forecasting model performance on three real-world datasets. Coverage refers to joint coverage (higher is better), and is averaged over the random splits of the dataset and training seeds. Prediction interval lengths (lower is better) are averaged over the prediction horizons and random seeds.
171
+
172
+ <table><tr><td rowspan="2">Model</td><td colspan="2">MIMIC-III</td><td colspan="2">EEG</td><td colspan="2">COVID-19</td></tr><tr><td>Coverage</td><td>CI/PI lengths</td><td>Coverage</td><td>CI/PI lengths</td><td>Coverage</td><td>CI/PI lengths</td></tr><tr><td>DP-RNN</td><td>40.2 Β± 13.9%</td><td>3.59 Β± 0.90</td><td>3.3 Β± 0.7%</td><td>7.39 Β± 0.74</td><td>0.0 Β±0.0%</td><td>61.18 Β± 32.37</td></tr><tr><td>MQ-RNN</td><td>89.3 Β± 1.2%</td><td>16.16 Β± 3.92</td><td>48.0 Β±4.0%</td><td>21.39 Β± 2.36</td><td>15.0 Β± 5.9%</td><td>136.56 Β± 63.32</td></tr><tr><td>CF-RNN</td><td>94.0 Β± 1.2%</td><td>20.59 Β± 3.10</td><td>96.5 Β± 1.0%</td><td>61.86 Β± 18.02</td><td>89.7Β±5.3%</td><td>733.95 Β± 582.52</td></tr></table>
173
+
174
+ Performance of the models is summarised in Table 5. We note that the underlying LSTM model of the proposed CF-RNN architecture had the same hyperparameters as the competing baselines, yet fewer training instances (as some of the examples are used for the calibration procedure). Despite this, CF-RNN obtains the highest coverage for all datasets, and is the only model to empirically achieve the target joint coverage rates. While this seems to disproportionately affect the efficiency of CF-RNN intervals (as these are the widest), the predictions are indeed reliable across the range of datasets and scenarios. On the other hand, the baseline models seem to have competitive coverage with better efficiency in some settings (e.g. MIMIC-III), yet revert to unreliable predictions in less certain scenarios (e.g. COVID-19). In other words, CF-RNN adapts its prediction interval widths to reliably match the required target coverage, increasing the width for unpredictable datasets.
175
+
176
+ Finally, we briefly explore the importance of and motivation behind the Bonferroni correction of the error rate in the CF-RNN calibration procedure. Table 6 shows that calibration scores without Bonferroni correction generally lead to poor joint coverage, even though independent coverage rates normally achieve the target coverage (most notable exception being the COVID-19 dataset selected for its forecasting difficulty).
177
+
178
+ Table 6: Bonferroni-corrected and uncorrected empirical coverages of the CF-RNN model. Joint coverage is aggregated over the different random seeds; independent coverages present the range of observed values across all horizons and all random seeds.
179
+
180
+ <table><tr><td rowspan="2">Model</td><td colspan="2">MIMIC-III</td><td colspan="2">EEG</td><td colspan="2">COVID-19</td></tr><tr><td>Joint</td><td>Independent</td><td>Joint</td><td>Independent</td><td>Joint</td><td>Independent</td></tr><tr><td>CF-RNN</td><td>94.0 Β± 1.2%</td><td>[93.8%, 96.8%]</td><td>96.5 Β± 1.0%</td><td>[98.3%,99.8%]</td><td>89.7 Β± 5.3%</td><td>[87.5%,100.0%]</td></tr><tr><td>Uncorrected</td><td>89.0 Β± 1.4%</td><td>[89.0%,91.4%]</td><td>59.4 Β± 2.4%</td><td>[85.5%,91.6%]</td><td>55.5Β±8.0%</td><td>[77.5%,98.8%]</td></tr></table>
181
+
182
+ # 5 Conclusion
183
+
184
+ In this paper, we extended the ICP framework to the multi-horizon time-series forecasting problem, providing a lightweight algorithm with theoretical guarantees for frequentist coverage. Extending from the initial investigation presented in Appendix D, future work would focus on increasing the overall efficiency of prediction intervals by reducing their width, which would involve making them more adaptive to individual observations.
185
+
186
+ # Acknowledgments
187
+
188
+ The authors would like to thank the reviewers for their helpful comments. This work was supported by AstraZeneca, the US Office of Naval Research (ONR) and the National Science Foundation (NSF, grant number 1722516).
189
+
190
+ References
191
+ [1] Sreelekshmy Selvin, R Vinayakumar, EA Gopalakrishnan, Vijay Krishna Menon, and KP Soman. Stock price prediction using lstm, rnn and cnn-sliding window model. In 2017 International Conference on Advances in Computing, Communications and Informatics (ICACCI), pages 1643–1647. IEEE, 2017.
192
+ [2] Wei Bao, Jun Yue, and Yulei Rao. A deep learning framework for financial time series using stacked autoencoders and long-short term memory. PloS one, 12(7):e0180944, 2017.
193
+ [3] Ruofeng Wen, Kari Torkkola, Balakrishnan Narayanaswamy, and Dhruv Madeka. A multihorizon quantile recurrent forecaster. arXiv preprint arXiv:1711.11053, 2017.
194
+ [4] Lingxue Zhu and Nikolay Laptev. Deep and confident prediction for time series at uber. In 2017 IEEE International Conference on Data Mining Workshops (ICDMW), pages 103–110. IEEE, 2017.
195
+ [5] Bryan Lim, Ahmed Alaa, and Mihaela van der Schaar. Forecasting treatment responses over time using recurrent marginal structural networks. In Proceedings of the 32nd International Conference on Neural Information Processing Systems, pages 7494–7504, 2018.
196
+ [6] Ahmed M Alaa and Mihaela van der Schaar. Attentive state-space modeling of disease progression. In Advances in Neural Information Processing Systems, pages 11334–11344, 2019.
197
+ [7] Benjamin Shickel, Patrick James Tighe, Azra Bihorac, and Parisa Rashidi. Deep ehr: a survey of recent advances in deep learning techniques for electronic health record (ehr) analysis. IEEE journal of biomedical and health informatics, 22(5):1589–1604, 2017.
198
+ [8] Martin Sundermeyer, Ralf SchlΓΌter, and Hermann Ney. Lstm neural networks for language modeling. In Thirteenth annual conference of the international speech communication association, 2012.
199
+ [9] Nal Kalchbrenner and Phil Blunsom. Recurrent continuous translation models. In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pages 1700–1709, 2013.
200
+ [10] Christian Gollier. The economics of risk and uncertainty. Edward Elgar Publishing Limited, 2018.
201
+ [11] Michael W Dusenberry, Dustin Tran, Edward Choi, Jonas Kemp, Jeremy Nixon, Ghassen Jerfel, Katherine Heller, and Andrew M Dai. Analyzing the role of model uncertainty for electronic health records. In Proceedings of the ACM Conference on Health, Inference, and Learning, pages 204–213, 2020.
202
+ [12] Alex Kendall and Yarin Gal. What uncertainties do we need in bayesian deep learning for computer vision? arXiv preprint arXiv:1703.04977, 2017.
203
+ [13] Wesley Maddox, Timur Garipov, Pavel Izmailov, Dmitry Vetrov, and Andrew Gordon Wilson. A simple baseline for bayesian uncertainty in deep learning. arXiv preprint arXiv:1902.02476, 2019.
204
+ [14] Andrey Malinin and Mark Gales. Predictive uncertainty estimation via prior networks. In Advances in Neural Information Processing Systems, pages 7047–7058, 2018.
205
+ [15] Balaji Lakshminarayanan, Alexander Pritzel, and Charles Blundell. Simple and scalable predictive uncertainty estimation using deep ensembles. In Advances in Neural Information Processing Systems (NeurIPS), pages 6402–6413, 2017.
206
+
207
+ [16] Meire Fortunato, Charles Blundell, and Oriol Vinyals. Bayesian recurrent neural networks. arXiv preprint arXiv:1704.02798, 2017.
208
+
209
+ [17] Jen-Tzung Chien and Yuan-Chu Ku. Bayesian recurrent neural network for language modeling. IEEE transactions on neural networks and learning systems, 27(2):361–374, 2015.
210
+
211
+ [18] Derrick T Mirikitani and Nikolay Nikolaev. Recursive bayesian recurrent neural networks for time-series modeling. IEEE Transactions on Neural Networks, 21(2):262–274, 2009.
212
+
213
+ [19] Jan Gasthaus, Konstantinos Benidis, Yuyang Wang, Syama Sundar Rangapuram, David Salinas, Valentin Flunkert, and Tim Januschowski. Probabilistic forecasting with spline quantile function rnns. In The 22nd international conference on artificial intelligence and statistics, pages 1901–1910. PMLR, 2019.
214
+
215
+ [20] Syama Sundar Rangapuram, Matthias W Seeger, Jan Gasthaus, Lorenzo Stella, Yuyang Wang, and Tim Januschowski. Deep state space models for time series forecasting. Advances in neural information processing systems, 31:7785–7794, 2018.
216
+
217
+ [21] Ahmed Alaa and Mihaela van der Schaar. Frequentist uncertainty in recurrent neural networks via blockwise influence functions. In International Conference on Machine Learning, pages 175–190. PMLR, 2020.
218
+
219
+ [22] Ahmed Alaa and Mihaela van der Schaar. Discriminative jackknife: Quantifying uncertainty in deep learning via higher-order influence functions. In International Conference on Machine Learning, pages 165–174. PMLR, 2020.
220
+
221
+ [23] Chen Xu and Yao Xie. Conformal prediction interval for dynamic time-series. International Conference on Machine Learning, 2021.
222
+
223
+ [24] Vladimir Vovk, Alex Gammerman, and Glenn Shafer. Algorithmic learning in a random world. Springer Science & Business Media, 2005.
224
+
225
+ [25] Glenn Shafer and Vladimir Vovk. A tutorial on conformal prediction. Journal of Machine Learning Research, 9(3), 2008.
226
+
227
+ [26] Yarin Gal and Zoubin Ghahramani. Dropout as a bayesian approximation: Representing model uncertainty in deep learning. In international conference on machine learning, pages 1050–1059. PMLR, 2016.
228
+
229
+ [27] Chen Xu and Yao Xie. Conformal prediction interval for dynamic time-series. In International Conference on Machine Learning, pages 11559–11569. PMLR, 2021.
230
+
231
+ [28] David JC MacKay. A practical bayesian framework for backpropagation networks. Neural computation, 4(3):448–472, 1992.
232
+
233
+ [29] Radford M Neal. Bayesian learning for neural networks, volume 118. Springer Science & Business Media, 2012.
234
+
235
+ [30] Radford M Neal. Bayesian learning via stochastic dynamics. In Advances in neural information processing systems, pages 475–482, 1993.
236
+
237
+ [31] Radford M Neal et al. Mcmc using hamiltonian dynamics. Handbook of markov chain monte carlo, 2(11):2, 2011.
238
+
239
+ [32] Max Welling and Yee W Teh. Bayesian learning via stochastic gradient langevin dynamics. In Proceedings of the 28th international conference on machine learning (ICML-11), pages 681–688. Citeseer, 2011.
240
+
241
+ [33] Tianqi Chen, Emily Fox, and Carlos Guestrin. Stochastic gradient hamiltonian monte carlo. In International conference on machine learning, pages 1683–1691. PMLR, 2014.
242
+
243
+ [34] Alex Graves. Practical variational inference for neural networks. Advances in neural information processing systems, 24, 2011.
244
+
245
+ [35] Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013.
246
+ [36] Matthew D Hoffman, David M Blei, Chong Wang, and John Paisley. Stochastic variational inference. Journal of Machine Learning Research, 14(5), 2013.
247
+ [37] Charles Blundell, Julien Cornebise, Koray Kavukcuoglu, and Daan Wierstra. Weight uncertainty in neural network. In International Conference on Machine Learning, pages 1613–1622. PMLR, 2015.
248
+ [38] Yarin Gal and Zoubin Ghahramani. A theoretically grounded application of dropout in recurrent neural networks. Advances in neural information processing systems, 29:1019–1027, 2016.
249
+ [39] Roger Koenker and Kevin F Hallock. Quantile regression. Journal of economic perspectives, 15(4):143–156, 2001.
250
+ [40] Stanislav Fort, Huiyi Hu, and Balaji Lakshminarayanan. Deep ensembles: A loss landscape perspective. arXiv preprint arXiv:1912.02757, 2019.
251
+ [41] Xueheng Qiu, Le Zhang, Ye Ren, Ponnuthurai N Suganthan, and Gehan Amaratunga. Ensemble deep learning for regression and time series forecasting. In 2014 IEEE symposium on computational intelligence in ensemble learning (CIEL), pages 1–6. IEEE, 2014.
252
+ [42] Tim Pearce, Felix Leibfried, and Alexandra Brintrup. Uncertainty in neural networks: Approximately bayesian ensembling. In International conference on artificial intelligence and statistics, pages 234–244. PMLR, 2020.
253
+ [43] Anastasios Angelopoulos, Stephen Bates, Jitendra Malik, and Michael I Jordan. Uncertainty sets for image classifiers using conformal prediction. International Conference on Learning Representations, 2021.
254
+ [44] Harris Papadopoulos. Inductive conformal prediction: Theory and application to neural networks. In Tools in artificial intelligence. Citeseer, 2008.
255
+ [45] David Salinas, Valentin Flunkert, Jan Gasthaus, and Tim Januschowski. Deepar: Probabilistic forecasting with autoregressive recurrent networks. International Journal of Forecasting, 36(3): 1181–1191, 2020.
256
+ [46] Harris Papadopoulos and Haris Haralambous. Reliable prediction intervals with regression neural networks. Neural Networks, 24(8):842–851, 2011.
257
+ [47] Harris Papadopoulos, Kostas Proedrou, Volodya Vovk, and Alex Gammerman. Inductive confidence machines for regression. In European Conference on Machine Learning, pages 345–356. Springer, 2002.
258
+ [48] Gianluca Zeni, Matteo Fontana, and Simone Vantini. Conformal prediction: a unified review of theory and new challenges. arXiv preprint arXiv:2005.07972, 2020.
259
+ [49] Vladimir Vovk. Transductive conformal predictors. In IFIP International Conference on Artificial Intelligence Applications and Innovations, pages 348–360. Springer, 2013.
260
+ [50] Souhaib Ben Taieb and Amir F Atiya. A bias and variance analysis for multistep-ahead time series forecasting. IEEE transactions on neural networks and learning systems, 27(1):62–76, 2015.
261
+ [51] Vladimir Vovk. Conditional validity of inductive conformal predictors. In Asian conference on machine learning, pages 475–490. PMLR, 2012.
262
+ [52] Alistair EW Johnson, Tom J Pollard, Lu Shen, H Lehman Li-Wei, Mengling Feng, Mohammad Ghassemi, Benjamin Moody, Peter Szolovits, Leo Anthony Celi, and Roger G Mark. Mimic-iii, a freely accessible critical care database. Scientific data, 3(1):1–9, 2016.
263
+ [53] Catherine Blake. Uci repository of machine learning databases. http://www. ics. uci. edu/˜ mlearn/MLRepository. html, 1998.
parse/train/Rx9dBZaV_IP/Rx9dBZaV_IP_content_list.json ADDED
@@ -0,0 +1,1215 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Conformal Time-Series Forecasting ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 282,
8
+ 122,
9
+ 717,
10
+ 147
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Kamile Stankevi˙ ciˇ ut¯ e˙ University of Oxford University of Cambridge ks830@cam.ac.uk ",
17
+ "bbox": [
18
+ 251,
19
+ 200,
20
+ 415,
21
+ 256
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Ahmed M. Alaa University of California, Los Angeles ahmedmalaa@ucla.edu ",
28
+ "bbox": [
29
+ 498,
30
+ 200,
31
+ 748,
32
+ 242
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Mihaela van der Schaar University of Cambridge University of California, Los Angeles The Alan Turing Institute mv472@cam.ac.uk ",
39
+ "bbox": [
40
+ 374,
41
+ 277,
42
+ 622,
43
+ 347
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Abstract ",
50
+ "text_level": 1,
51
+ "bbox": [
52
+ 462,
53
+ 382,
54
+ 535,
55
+ 400
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "Current approaches for (multi-horizon) time-series forecasting using recurrent neural networks (RNNs) focus on issuing point estimates, which are insufficient for informing decision-making in critical application domains wherein uncertainty estimates are also required. Existing methods for uncertainty quantification in RNNbased time-series forecasts are limited as they may require significant alterations to the underlying architecture, may be computationally complex, may be difficult to calibrate, may incur high sample complexity, and may not provide theoretical validity guarantees for the issued uncertainty intervals. In this work, we extend the inductive conformal prediction framework to the time-series forecasting setup, and propose a lightweight uncertainty estimation procedure to address the above limitations. With minimal exchangeability assumptions, our approach provides uncertainty intervals with theoretical guarantees on frequentist coverage for any multi-horizon forecast predictor and any dataset. We demonstrate the effectiveness of the conformal forecasting framework by comparing it with existing baselines on a variety of synthetic and real-world datasets. ",
62
+ "bbox": [
63
+ 233,
64
+ 412,
65
+ 766,
66
+ 619
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "1 Introduction ",
73
+ "text_level": 1,
74
+ "bbox": [
75
+ 174,
76
+ 643,
77
+ 310,
78
+ 661
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Time-series forecasting tasks are central to a broad range of application domains, including stock price predictions [1, 2], service demand forecasting [3, 4], and medical prognoses [5–7]. Recurrent neural networks (RNNs) and their variants (e.g., LSTM, GRU, etc.) constitute an instrumental class of models that are most commonly used to carry out time-series forecasting tasks [8, 9]. These models, however, are usually used to issue point predictionsβ€”i.e., singular estimates of the future values of a time-series. In many high-stakes applicationsβ€”such as finance and medicineβ€”these are not enough; estimates of uncertainty are also required for accurate risk assessment and decision-making [10]. For example, clinical practitioners need to make treatment decisions accounting for all potential scenarios, where less likely scenarios may have graver consequences and require more care compared to the more likely scenarios [11, 12]. ",
85
+ "bbox": [
86
+ 174,
87
+ 674,
88
+ 825,
89
+ 814
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "While various methods for uncertainty estimation in standard feed-forward neural networks have been recently proposed [13–15], equivalent methods for RNN-based time-series models are still under-explored. Existing solutions include Bayesian recurrent neural networks [16–18], quantile regression models [3, 19], latent variable models with deep state-space architectures [6, 20], and post-hoc uncertainty estimates using bootstrapping, jackknife or other ensembling procedures [21– 23]. Each of these solutions has its own limitations: Bayesian models may be difficult to calibrate, quantile predictors may β€œoverfit” their uncertainty estimates, and bootstrapping methods scale poorly for RNNs with large number of parameters. Almost all existing methods share at least one of the two major drawbacks: (1) they require substantial modifications to the underlying model architecture, and (2) they provide no theoretical guarantees on frequentist coverage, any of the exceptions being computationally intractable. ",
96
+ "bbox": [
97
+ 174,
98
+ 819,
99
+ 825,
100
+ 902
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "",
107
+ "bbox": [
108
+ 174,
109
+ 92,
110
+ 825,
111
+ 160
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "We aim to address the above limitations by adapting conformal prediction (CP) [24, 25]β€”a framework used to derive prediction intervals with guaranteed finite-sample frequentist coverageβ€”to the timeseries forecasting setup. CP has originally been designed to construct prediction intervals for scalar targets; on the other hand, observations and predictions in time-series forecasting involve temporally dependent, potentially multivariate sequences that are not, in general, directly comparable due to differences in observation lengths, irregular frequencies, non-stationarity, and other variations in temporal dynamics (comparison between training points being a key step in CP). We extend CP to a novel, computationally efficient conformal forecasting framework that can leverage any underlying point forecasting model to produce multi-step prediction intervals with coverage guarantees across the prediction horizon. We focus on RNN-based conformal forecasting architectures, which we call conformal forecasting RNNs (CF-RNNs), and explore their effectiveness in providing valid and efficient coverage intervals. ",
118
+ "bbox": [
119
+ 173,
120
+ 166,
121
+ 825,
122
+ 333
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "2 Related Work ",
129
+ "text_level": 1,
130
+ "bbox": [
131
+ 174,
132
+ 352,
133
+ 321,
134
+ 369
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "Most previous work in the area of uncertainty quantification in deep learning focuses on feed-forward neural network models. Much less work has been done on uncertainty estimation for time-series models. In what follows, we discuss previous methods developed for uncertainty estimation for RNNs, which we also summarise in Table 1. ",
141
+ "bbox": [
142
+ 174,
143
+ 382,
144
+ 825,
145
+ 438
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "table",
151
+ "img_path": "images/a6a69d10e31e7a2dd6634f491c13b0db50f7733b32f3d37ea46813179edc6c6f.jpg",
152
+ "table_caption": [
153
+ "Table 1: Overview of the most popular RNN-based probabilistic forecasting methods. "
154
+ ],
155
+ "table_footnote": [],
156
+ "table_body": "<table><tr><td>Method</td><td>Paradigm</td><td>Architecture</td><td>Time-series observations</td><td>Frequentist coverage</td></tr><tr><td>Bayesian RNNs [16-18]</td><td>Bayesian</td><td>Built-in</td><td>Multiple</td><td></td></tr><tr><td>Monte Carlo dropout [26]</td><td>Bayesian (approx.)</td><td>Built-in</td><td>Multiple</td><td></td></tr><tr><td>MQ-[3], SQF-RNN [19]</td><td></td><td>Built-in</td><td>Multiple</td><td>δΈ€</td></tr><tr><td>BJ-RNN [21]</td><td>Frequentist</td><td>Post-hoc</td><td>Multiple</td><td>1-2Ξ±</td></tr><tr><td>EnbPI [27]</td><td>Frequentist (approx.)</td><td>Ensemble</td><td>Single</td><td>1-Ξ±</td></tr><tr><td>CF-RNN (proposed)</td><td>Frequentist</td><td>Post-hoc</td><td>Multiple</td><td>1-Ξ±</td></tr></table>",
157
+ "bbox": [
158
+ 223,
159
+ 473,
160
+ 774,
161
+ 584
162
+ ],
163
+ "page_idx": 1
164
+ },
165
+ {
166
+ "type": "text",
167
+ "text": "Bayesian RNNs [16–18] extend the ideas of Bayesian inference to RNN models, expressing the model (epistemic1) uncertainty through distributions on model parameters [28, 29]. Exact Bayesian inference quickly becomes infeasible, however; various approximations based on Markov chain Monte Carlo [30–33] or variational inference [34–37] are needed. Bayesian neural networks depend on significant changes in the underlying model architecture (at least doubling the number of parameters), and rely on a good choice of prior (which may be challenging in practice). While simplifying techniques such as Monte Carlo dropout [26] (with RNN-specific adaptation in Gal and Ghahramani [38]) exist, they are often difficult to calibrate [21]. ",
168
+ "bbox": [
169
+ 173,
170
+ 598,
171
+ 825,
172
+ 709
173
+ ],
174
+ "page_idx": 1
175
+ },
176
+ {
177
+ "type": "text",
178
+ "text": "Quantile RNNs can be viewed as a deep neural network extension of quantile regression [39] for sequential data: instead of returning a series of point estimates across the prediction horizon, quantile RNNs learn the prediction intervals directly, with upper and lower bounds of the forecast as separate prediction targets. The standard approach to achieve this is to use the appropriate pinball loss function as the objective. While successful applications of this approach in time-series forecasting exist [3], naively learning individual bounds may have problems such as quantile crossing; more recent approaches Gasthaus et al. [19] resolve this by fitting the entire quantile function. Quantile RNNs are additionally at risk of quantile overfitting due to poor sample complexity [21]. ",
179
+ "bbox": [
180
+ 173,
181
+ 715,
182
+ 825,
183
+ 827
184
+ ],
185
+ "page_idx": 1
186
+ },
187
+ {
188
+ "type": "text",
189
+ "text": "Ensembles are based on the principle of training and combining multiple models, e.g. deep ensembles trained on different random initialisations [40, 41], or models retrained on partial datasets (jackknife or bootstrap resampling-based RNNs, [22, 21]). Deep neural network ensembles are in general not mathematically principled for uncertainty quantification [42]; while resampling-based models resolve this and provide post-hoc frequentist coverage guarantees, they are instead limited in their time and space complexity. For example, exact inference on the state-of-the-art blockwise jackknife RNN (BJ-RNN) model [21] takes ${ \\cal O } ( P ^ { 3 } )$ time for $P$ parameters, and even with simplifying approximationsβ€”which in turn deteriorate accuracyβ€”the model does not scale beyond small datasets. ",
190
+ "bbox": [
191
+ 174,
192
+ 833,
193
+ 825,
194
+ 888
195
+ ],
196
+ "page_idx": 1
197
+ },
198
+ {
199
+ "type": "image",
200
+ "img_path": "images/2485dd58fe846731adacaec3932cb398c702ae29f62851100eddf4b91bd8c219.jpg",
201
+ "image_caption": [
202
+ "Figure 1: Time-series observation paradigms. (Left) The dataset is assumed to comprise a single timeseries, with observations being individual time-steps within the time-series. These observations are temporally dependent. (Right) The dataset consists of a set of independent time-series, where the entire series is treated as an observation. Independence of time-series implies their exchangeability. "
203
+ ],
204
+ "image_footnote": [],
205
+ "bbox": [
206
+ 266,
207
+ 106,
208
+ 740,
209
+ 284
210
+ ],
211
+ "page_idx": 2
212
+ },
213
+ {
214
+ "type": "text",
215
+ "text": "",
216
+ "bbox": [
217
+ 174,
218
+ 390,
219
+ 825,
220
+ 445
221
+ ],
222
+ "page_idx": 2
223
+ },
224
+ {
225
+ "type": "text",
226
+ "text": "Conformal prediction (CP) For a given significance level (error rate) $\\alpha$ , the goal of CP [24, 25] is to return a prediction region $\\varGamma ^ { \\alpha }$ that is guaranteed to contain the true value with probability of at least $( 1 - \\alpha )$ . In regression problems (such as time-series forecasting), CP is modified to work inductively using an additional calibration set and an underlying modelβ€”an approach called inductive conformal prediction (ICP) [43, 44]. Little work has been done applying (I)CP methods for time-series forecasting; the main challenge is that CP assumes exchangeability, where any permutation of the dataset observations is equiprobable. However, the time-steps within a time-series are inherently non-exchangeable due to temporal dependencies (Figure 1, left); naively applying CP to derive forecast intervals from a given time-series is therefore not methodologically valid and lacks the validity guarantees. One notable exception is the EnbPI model [27], which bypasses the exchangeability assumption (introducing some others) and uses an ensemble of bootstrapped estimators to provide approximately valid intervals. However, we argue that learning from a single time-seriesβ€”while useful in cases where indeed only one time-series is availableβ€”may not be optimal in settings where datasets contain multiple time-series, the shared patterns of which could potentially be exploited (Figure 1, right). To the best of our knowledge, no existing method has applied CP to the latter forecasting setting (despite it being more methodologically grounded); yet the datasets of multiple time-series are increasingly common and useful [45]. ",
227
+ "bbox": [
228
+ 173,
229
+ 463,
230
+ 825,
231
+ 699
232
+ ],
233
+ "page_idx": 2
234
+ },
235
+ {
236
+ "type": "text",
237
+ "text": "3 Conformal forecasting RNNs (CF-RNNs) ",
238
+ "text_level": 1,
239
+ "bbox": [
240
+ 174,
241
+ 719,
242
+ 547,
243
+ 738
244
+ ],
245
+ "page_idx": 2
246
+ },
247
+ {
248
+ "type": "text",
249
+ "text": "In this Section, we introduce the conformal forecasting RNN (CF-RNN) model. We start off by formalizing the multi-horizon time-series forecasting problem in Section 3.1, and providing the necessary background on inductive conformal prediction (ICP) for regression tasks in Section 3.2. We introduce the details of the conformal forecasting procedure in Section 3.3. ",
250
+ "bbox": [
251
+ 174,
252
+ 753,
253
+ 825,
254
+ 810
255
+ ],
256
+ "page_idx": 2
257
+ },
258
+ {
259
+ "type": "text",
260
+ "text": "3.1 Multi-horizon time-series forecasting ",
261
+ "text_level": 1,
262
+ "bbox": [
263
+ 174,
264
+ 829,
265
+ 470,
266
+ 844
267
+ ],
268
+ "page_idx": 2
269
+ },
270
+ {
271
+ "type": "text",
272
+ "text": "Let $y _ { t : t ^ { \\prime } } = ( y _ { t } , y _ { t + 1 } \\ldots , y _ { t ^ { \\prime } } )$ be a time-series of $d$ -dimensional observations $y _ { t } , \\ldots , y _ { t ^ { \\prime } } \\in \\mathbb R ^ { d }$ that start at time step $t$ and end at time step $t ^ { \\prime }$ . A multi-horizon time-series forecast predicts future values ",
273
+ "bbox": [
274
+ 171,
275
+ 856,
276
+ 823,
277
+ 885
278
+ ],
279
+ "page_idx": 2
280
+ },
281
+ {
282
+ "type": "equation",
283
+ "img_path": "images/8da51189ca7397e7a2eb219be1e7ea8c476e9bf96454cc959f8ca832528be0b7.jpg",
284
+ "text": "$$\n\\hat { y } _ { ( t ^ { \\prime } + 1 ) : ( t ^ { \\prime } + H ) } = \\left( \\hat { y } _ { t ^ { \\prime } + 1 } , \\ldots , \\hat { y } _ { t ^ { \\prime } + H } \\right) \\in \\mathbb { R } ^ { H \\times d } ,\n$$",
285
+ "text_format": "latex",
286
+ "bbox": [
287
+ 346,
288
+ 895,
289
+ 650,
290
+ 914
291
+ ],
292
+ "page_idx": 2
293
+ },
294
+ {
295
+ "type": "text",
296
+ "text": "given the history of observed values $y _ { 1 : t ^ { \\prime } }$ , where $H$ is the number of steps to be predicted (the prediction horizon). For critical applications, we are interested in the uncertainty associated with the forecastβ€”for each time step $h$ in the prediction horizon, we would like to obtain prediction intervals of the form $[ \\hat { y } _ { t + h } ^ { L } , \\hat { y } _ { t + h } ^ { U } ]$ , $h \\in \\{ 1 , \\ldots , H \\}$ , so that the ground truth value $y _ { t + h }$ is contained in the interval with a sufficiently high probability. We fix a desired significance level (or error rate) $\\alpha$ , such that the ground-truth values of the entire time-series trajectory are contained within the intervals; i.e., ",
297
+ "bbox": [
298
+ 173,
299
+ 90,
300
+ 826,
301
+ 175
302
+ ],
303
+ "page_idx": 3
304
+ },
305
+ {
306
+ "type": "equation",
307
+ "img_path": "images/6d1b3096321f0a0a28163339a2753a5b3079e3674e7f0c9b1785878612dc0f94.jpg",
308
+ "text": "$$\n\\mathbb { P } \\left[ y _ { t + h } \\in [ \\hat { y } _ { t + h } ^ { L } , \\hat { y } _ { t + h } ^ { U } ] , \\forall h \\in \\{ 1 , \\dots , H \\} \\right] \\geq 1 - \\alpha .\n$$",
309
+ "text_format": "latex",
310
+ "bbox": [
311
+ 323,
312
+ 193,
313
+ 673,
314
+ 213
315
+ ],
316
+ "page_idx": 3
317
+ },
318
+ {
319
+ "type": "text",
320
+ "text": "3.2 Inductive conformal prediction (ICP) ",
321
+ "text_level": 1,
322
+ "bbox": [
323
+ 174,
324
+ 228,
325
+ 473,
326
+ 243
327
+ ],
328
+ "page_idx": 3
329
+ },
330
+ {
331
+ "type": "text",
332
+ "text": "Given a set of observations $\\mathcal { D } = \\{ ( \\mathbf { x } ^ { ( i ) } , y ^ { ( i ) } ) \\} _ { i = 1 } ^ { l }$ and a new example $\\mathbf { x } ^ { ( l + 1 ) }$ , the ICP procedure [24, 46, 47] returns a prediction interval $\\varGamma ^ { \\alpha }$ such that the property of validity is satisfied: ",
333
+ "bbox": [
334
+ 171,
335
+ 252,
336
+ 823,
337
+ 284
338
+ ],
339
+ "page_idx": 3
340
+ },
341
+ {
342
+ "type": "text",
343
+ "text": "Property 1. (Validity) Under the exhangeability assumption, any conformal predictor will return the prediction region $\\begin{array} { r } { \\dot { T } ^ { \\alpha } ( \\mathbf { x } ^ { ( i ) } ) } \\end{array}$ such that the probability of error $y ^ { ( l + 1 ) } \\not \\in { \\Gamma } ^ { \\alpha } ( \\dot { \\mathbf { x } } ^ { ( l + 1 ) } )$ is not greater than $\\alpha$ . Alternatively: ",
344
+ "bbox": [
345
+ 173,
346
+ 297,
347
+ 825,
348
+ 340
349
+ ],
350
+ "page_idx": 3
351
+ },
352
+ {
353
+ "type": "equation",
354
+ "img_path": "images/e860b463fb8c5e30099042fbe9c0d09e3d47e8fc942cbb8151b2b0d9c430b9de.jpg",
355
+ "text": "$$\n\\mathbb { P } [ y ^ { ( l + 1 ) } \\in { \\Gamma } ^ { \\alpha } ( \\mathbf { x } ^ { ( l + 1 ) } ) \\mid \\mathcal { D } ] \\geq 1 - \\alpha .\n$$",
356
+ "text_format": "latex",
357
+ "bbox": [
358
+ 372,
359
+ 358,
360
+ 624,
361
+ 378
362
+ ],
363
+ "page_idx": 3
364
+ },
365
+ {
366
+ "type": "text",
367
+ "text": "The conformal prediction framework is distribution-free (i.e. it does not have any assumptions on the distribution of the underlying data $\\mathcal { D }$ ), and applies to any underlying predictive model as long as the exchangeability assumption is satisfied: ",
368
+ "bbox": [
369
+ 174,
370
+ 388,
371
+ 825,
372
+ 431
373
+ ],
374
+ "page_idx": 3
375
+ },
376
+ {
377
+ "type": "text",
378
+ "text": "Assumption 1. (Exchangeability) In a dataset of l observations $\\{ ( \\mathbf { x } ^ { ( i ) } , y ^ { ( i ) } ) \\} _ { i = 1 } ^ { l }$ , any of its $l !$ permutations are equiprobable. Note that independent identically distributed (iid) observations satisfy exchangeability. ",
379
+ "bbox": [
380
+ 174,
381
+ 446,
382
+ 825,
383
+ 491
384
+ ],
385
+ "page_idx": 3
386
+ },
387
+ {
388
+ "type": "text",
389
+ "text": "The inductive2 variant of CP operates by splitting the training set into the proper training set of size $n$ and a calibration set of size $m$ : $\\mathcal { D } = \\mathcal { D } _ { \\mathrm { t r a i n } } \\cup \\mathcal { D } _ { \\mathrm { c a l } }$ . The proper training set is used to train the underlying (auxiliary) model $M$ , and the calibration set is used to obtain the nonconformity scores, which measure how unusual is the given example compared to previously observed data. While CP guarantees validity for any nonconformity score (including a random number generator), the most commonly used nonconformity score in regression is of the form ",
390
+ "bbox": [
391
+ 173,
392
+ 496,
393
+ 825,
394
+ 580
395
+ ],
396
+ "page_idx": 3
397
+ },
398
+ {
399
+ "type": "equation",
400
+ "img_path": "images/58b2fdc6ed98ad07fd2c015e4209e3ee04c0a1cf34a885146d451224aa368cdd.jpg",
401
+ "text": "$$\nR _ { i } = A ( \\mathcal D , ( { \\mathbf x } ^ { ( i ) } , y ^ { ( i ) } ) ) = A ( M ( { \\mathbf x } ^ { ( i ) } | \\mathcal D ) , y ^ { ( i ) } ) ,\n$$",
402
+ "text_format": "latex",
403
+ "bbox": [
404
+ 341,
405
+ 598,
406
+ 655,
407
+ 618
408
+ ],
409
+ "page_idx": 3
410
+ },
411
+ {
412
+ "type": "text",
413
+ "text": "where $\\varDelta$ is some distance metric. While any choice for $M$ is valid, the best architecture depends on the dataset and the problem. When $\\varDelta ( \\hat { y } , y ) = | \\hat { y } - y |$ , the nonconformity score $R _ { i } = | \\hat { y } ^ { ( i ) } - y ^ { ( i ) } |$ corresponds to the residual error between the prediction of the underlying model and the true label. ",
414
+ "bbox": [
415
+ 174,
416
+ 628,
417
+ 825,
418
+ 672
419
+ ],
420
+ "page_idx": 3
421
+ },
422
+ {
423
+ "type": "text",
424
+ "text": "The resulting empirical nonconformity score distribution $\\{ R _ { i } \\} _ { i = 1 } ^ { l }$ is used to compute a critical nonconformity score $\\hat { \\varepsilon }$ , which corresponds to the $\\lceil ( m + 1 ) ( \\mathrm { i } - \\bar { \\alpha } ) \\rceil$ -th smallest residual [48]. For a new example $\\mathbf { x } ^ { ( l + 1 ) }$ , the prediction interval is then: ",
425
+ "bbox": [
426
+ 174,
427
+ 678,
428
+ 825,
429
+ 723
430
+ ],
431
+ "page_idx": 3
432
+ },
433
+ {
434
+ "type": "equation",
435
+ "img_path": "images/05ae12ab301dba8a2e60ae4ffe6faa4986e645efdb1677ca5346bc8fc84d13fc.jpg",
436
+ "text": "$$\n\\Gamma ^ { \\alpha } ( \\mathbf { x } ^ { ( l + 1 ) } ) = [ \\hat { y } ^ { ( l + 1 ) } - \\hat { \\varepsilon } , \\hat { y } ^ { ( l + 1 ) } + \\hat { \\varepsilon } ] ,\n$$",
437
+ "text_format": "latex",
438
+ "bbox": [
439
+ 367,
440
+ 741,
441
+ 630,
442
+ 761
443
+ ],
444
+ "page_idx": 3
445
+ },
446
+ {
447
+ "type": "text",
448
+ "text": "with $\\hat { y } ^ { ( l + 1 ) } = M ( \\mathbf { x } ^ { ( l + 1 ) } )$ . ",
449
+ "bbox": [
450
+ 174,
451
+ 771,
452
+ 346,
453
+ 787
454
+ ],
455
+ "page_idx": 3
456
+ },
457
+ {
458
+ "type": "text",
459
+ "text": "3.3 CF-RNN: ICP for multi-horizon RNNs ",
460
+ "text_level": 1,
461
+ "bbox": [
462
+ 174,
463
+ 804,
464
+ 483,
465
+ 820
466
+ ],
467
+ "page_idx": 3
468
+ },
469
+ {
470
+ "type": "text",
471
+ "text": "So far we have considered the case when the labels $y \\in \\mathbb R$ are scalar, but multi-horizon time-series forecasts return $H$ $d$ -dimensional) values (in this work, we focus on $d = 1$ ; extending the results to multivariate time-series is left for future work). We extend the ICP framework to handle the multi-horizon forecasting setup, while maintaining the validity of the resulting multi-horizon forecast intervalsβ€”we call this the conformal forecasting framework. ",
472
+ "bbox": [
473
+ 174,
474
+ 830,
475
+ 825,
476
+ 873
477
+ ],
478
+ "page_idx": 3
479
+ },
480
+ {
481
+ "type": "image",
482
+ "img_path": "images/ca21b6032dc890cbc6c6b27dcd47cf9ac7c544e4d236e7afc42c06fe26532770.jpg",
483
+ "image_caption": [
484
+ "Figure 2: CF-RNN uncertainty estimation procedure. (a) The calibration set is used to obtain the empirical distribution of nonconformity scores $\\hat { \\varepsilon } _ { h }$ , and its appropriate quantile is selected depending on the desired target coverage level. (b) Critical nonconformity scores are used to obtain the prediction interval. "
485
+ ],
486
+ "image_footnote": [],
487
+ "bbox": [
488
+ 189,
489
+ 108,
490
+ 812,
491
+ 267
492
+ ],
493
+ "page_idx": 4
494
+ },
495
+ {
496
+ "type": "text",
497
+ "text": "",
498
+ "bbox": [
499
+ 171,
500
+ 329,
501
+ 823,
502
+ 358
503
+ ],
504
+ "page_idx": 4
505
+ },
506
+ {
507
+ "type": "text",
508
+ "text": "Let $\\mathcal { D }$ be the set of exchangeable observations of the form $\\left( y _ { 1 : T } , y _ { T + 1 : T + H } \\right)$ , where $y _ { 1 : T }$ is the time-series consisting of $T$ observed steps, and $y _ { T + 1 : T + H }$ is the $H$ -step forecast. Note that the label $y _ { T + 1 : T + H }$ is now an $H$ -dimensional value, in contrast with the scalar $y$ value from before. Due to the sequential nature of the task, we will use an RNN as the underlying model $M$ . We set $M$ to produce multi-horizon forecasts directly (where at each time step $t$ , all values of the $H$ -step target $y _ { t + 1 : t + H }$ are predicted at the same time from a single embedding) rather than recursively (where a single prediction is obtained at a time, and successive values are obtained by iteratively feeding them back into the RNN). We motivate our choice of the direct strategy by its robustness to error accumulation [50, 3], and conditionally independent predictions given the state of $M$ (which will be important for theoretical guarantees as discussed below). We now replace the single-dimensional nonconformity score defined earlier by its $H$ -dimensional counterpart, ",
509
+ "bbox": [
510
+ 173,
511
+ 364,
512
+ 825,
513
+ 517
514
+ ],
515
+ "page_idx": 4
516
+ },
517
+ {
518
+ "type": "equation",
519
+ "img_path": "images/eda5553a131e2f0ad32af957b2965c12a3266706b8c8153f06114aec3c645c3d.jpg",
520
+ "text": "$$\nR _ { i } = \\left[ | y _ { t + 1 } ^ { ( i ) } - \\hat { y } _ { t + 1 } ^ { ( i ) } | , \\dots , | y _ { t + H } ^ { ( i ) } - \\hat { y } _ { t + H } ^ { ( i ) } | \\right] ^ { \\top } ,\n$$",
521
+ "text_format": "latex",
522
+ "bbox": [
523
+ 346,
524
+ 531,
525
+ 648,
526
+ 563
527
+ ],
528
+ "page_idx": 4
529
+ },
530
+ {
531
+ "type": "text",
532
+ "text": "where $\\left[ \\widehat { y } _ { t + 1 } ^ { ( i ) } , \\ldots , \\widehat { y } _ { t + H } ^ { ( i ) } \\right] ^ { \\top } = M ( y _ { 1 : t } ^ { ( i ) } )$ . Since the $H$ conditionally independent predictions are obtained from the same embedding, we apply Bonferroni correction to the critical calibration scores in order to maintain the desired error rate $\\alpha$ . In particular, the original $\\alpha$ is divided by $H$ , so that the critical nonconformity scores $\\hat { \\varepsilon } _ { 1 } , \\dots , \\hat { \\varepsilon } _ { H }$ become the $\\lceil ( m + 1 ) ( 1 - \\alpha / H ) \\rceil$ -th smallest residuals in the corresponding nonconformity score distributions. The resulting set of prediction intervals is therefore ",
533
+ "bbox": [
534
+ 173,
535
+ 571,
536
+ 825,
537
+ 667
538
+ ],
539
+ "page_idx": 4
540
+ },
541
+ {
542
+ "type": "equation",
543
+ "img_path": "images/43afa778d4f7daf5aab2d40d30f8c6cd31ef653a234e86544d229f3f7173d1a8.jpg",
544
+ "text": "$$\n\\begin{array} { r } { \\int _ { 1 } ^ { \\alpha } \\left( y _ { ( 1 : t ) } ^ { ( l + 1 ) } \\right) , \\ldots , \\int _ { H } ^ { \\alpha } \\left( y _ { ( 1 : t ) } ^ { ( l + 1 ) } \\right) , } \\end{array}\n$$",
545
+ "text_format": "latex",
546
+ "bbox": [
547
+ 388,
548
+ 684,
549
+ 607,
550
+ 710
551
+ ],
552
+ "page_idx": 4
553
+ },
554
+ {
555
+ "type": "text",
556
+ "text": "where ",
557
+ "bbox": [
558
+ 173,
559
+ 720,
560
+ 215,
561
+ 734
562
+ ],
563
+ "page_idx": 4
564
+ },
565
+ {
566
+ "type": "equation",
567
+ "img_path": "images/5fb460f11a325e5a04ddf499e9dac22e284dbbcd48cf04b940718abff9ad42a1.jpg",
568
+ "text": "$$\n\\begin{array} { r } { T _ { h } ^ { \\alpha } \\left( y _ { ( 1 : t ) } ^ { ( l + 1 ) } \\right) = \\left[ \\hat { y } _ { t + h } ^ { ( l + 1 ) } - \\hat { \\varepsilon } _ { h } , \\hat { y } _ { t + h } ^ { ( l + 1 ) } + \\hat { \\varepsilon } _ { h } \\right] \\quad \\forall h \\in \\{ 1 , \\ldots , H \\} . } \\end{array}\n$$",
569
+ "text_format": "latex",
570
+ "bbox": [
571
+ 287,
572
+ 750,
573
+ 710,
574
+ 777
575
+ ],
576
+ "page_idx": 4
577
+ },
578
+ {
579
+ "type": "text",
580
+ "text": "In summary, the conformal forecasting RNN (CF-RNN) model consists of an RNN issuing point forecasts, and a conformal forecasting procedure to derive the uncertainty. The entire procedure for constructing prediction intervals in CF-RNN is illustrated in Figure 2 and summarized in Algorithm 1. Finally, we show the theoretical motivations behind our approach via the following Theorem, which provides validity for intervals obtained with the conformal forecasting procedure. ",
581
+ "bbox": [
582
+ 173,
583
+ 785,
584
+ 825,
585
+ 857
586
+ ],
587
+ "page_idx": 4
588
+ },
589
+ {
590
+ "type": "text",
591
+ "text": "Theorem 1. (Conformal forecasting validity) Let $\\mathcal { D } = \\left\\{ \\left( y _ { 1 : t } ^ { ( i ) } , y _ { t + 1 : t + H } ^ { ( i ) } \\right) \\right\\} _ { i = 1 } ^ { l }$ be the dataset of exchangeable time-series observations and their i=1-step forecasts obtained from the same underlying probability distribution. Let M be the recurrent neural network predicting $H$ -step forecasts using the direct strategy. For any significance level $\\alpha \\in [ 0 , 1 ]$ , the intervals obtained with the ICP-based conformal forecasting algorithm will have the error rate of at most $\\alpha$ ; alternatively, ",
592
+ "bbox": [
593
+ 174,
594
+ 871,
595
+ 826,
596
+ 912
597
+ ],
598
+ "page_idx": 4
599
+ },
600
+ {
601
+ "type": "text",
602
+ "text": "",
603
+ "bbox": [
604
+ 173,
605
+ 90,
606
+ 823,
607
+ 133
608
+ ],
609
+ "page_idx": 5
610
+ },
611
+ {
612
+ "type": "equation",
613
+ "img_path": "images/8f99c0c718d9daf997cce4b36b75c87403443f44e2d40bf8be39e08f35d1334f.jpg",
614
+ "text": "$$\n\\mathbb { P } \\left( \\forall h \\in \\{ 1 , \\dots , H \\} . y _ { t + h } \\in \\left[ \\hat { y } _ { t + h } - \\hat { \\varepsilon } _ { h } , \\hat { y } _ { t + h } + \\hat { \\varepsilon } _ { h } \\right] \\right) \\geq 1 - \\alpha .\n$$",
615
+ "text_format": "latex",
616
+ "bbox": [
617
+ 289,
618
+ 157,
619
+ 709,
620
+ 175
621
+ ],
622
+ "page_idx": 5
623
+ },
624
+ {
625
+ "type": "text",
626
+ "text": "The proof follows from conditional validity of ICP in Vovk [51] and Boole’s inequality. The full statement and detailed proof is provided in Appendix A. ",
627
+ "bbox": [
628
+ 173,
629
+ 189,
630
+ 823,
631
+ 218
632
+ ],
633
+ "page_idx": 5
634
+ },
635
+ {
636
+ "type": "text",
637
+ "text": "Algorithm 1 Conformal forecasting RNN (CF-RNN) ",
638
+ "text_level": 1,
639
+ "bbox": [
640
+ 173,
641
+ 237,
642
+ 526,
643
+ 252
644
+ ],
645
+ "page_idx": 5
646
+ },
647
+ {
648
+ "type": "table",
649
+ "img_path": "images/6ef8b73f34343949b2945823d9748960cfe7114470bda97bfb2ab7e4888ab3ab.jpg",
650
+ "table_caption": [],
651
+ "table_footnote": [],
652
+ "table_body": "<table><tr><td>1:Input: A trained model M producing H-step forecasts,</td><td>m</td></tr><tr><td>2: 3:</td><td>,target error rate Ξ±. i=1 Output: Critical nonconformity scores Ξ΅1,., H.</td></tr><tr><td>4:</td><td>InitializeΞ΅1={,...,Ξ΅H={.</td></tr><tr><td>5:</td><td>fori=1 to m do</td></tr><tr><td>6:</td><td>yt+1:t+H ← M(yi). (i)</td></tr><tr><td>7:</td><td>forh=1 to H do</td></tr><tr><td>8:</td><td>(i) (i)</td></tr><tr><td>9:</td><td>end for</td></tr><tr><td>10: 11:</td><td>end for for h=1toHdo</td></tr><tr><td>12:</td><td>(Bonferroni and finite sample correction)</td></tr><tr><td>13:</td><td>Ξ΅h ←[(m+1)(1-Ξ±/H)]-th smallest residual in Ξ΅h.</td></tr><tr><td>14:</td><td>end for</td></tr><tr><td>15:</td><td>return Ξ΅1,...,€H.</td></tr><tr><td>16:</td><td>For a new time-series example y*:t:</td></tr><tr><td></td><td></td></tr><tr><td>17:</td><td>Yt+1:t+H ←M(yi:t).</td></tr><tr><td>18:</td><td>return intervals 9t+1 Β±Ξ΅1,... 9t+H Β±Ξ΅H.</td></tr></table>",
653
+ "bbox": [
654
+ 178,
655
+ 255,
656
+ 702,
657
+ 556
658
+ ],
659
+ "page_idx": 5
660
+ },
661
+ {
662
+ "type": "text",
663
+ "text": "4 Experiments ",
664
+ "text_level": 1,
665
+ "bbox": [
666
+ 174,
667
+ 592,
668
+ 312,
669
+ 609
670
+ ],
671
+ "page_idx": 5
672
+ },
673
+ {
674
+ "type": "text",
675
+ "text": "In this section, we showcase the performance of the conformal forecasting RNN (CF-RNN) model against three baselines: the frequentist blockwise jackknife RNN (BJ-RNN) [21], the multi-quantile RNN (MQ-RNN) [3], and the Monte Carlo dropout-based RNN (DP-RNN) [26]. We chose these baselines as the most popular and representative examples of the different paradigms for uncertainty estimation (frequentist, quantile prediction and Bayesian uncertainty estimation for BJ-RNN, MQRNN and DP-RNN respectively). All architectures use LSTM as the underlying recurrent neural network, and are adapted to produce direct multi-horizon forecasts. We first present the performance of CF-RNNs on synthetic data with controlled properties. Since BJ-RNNs do not scale to larger real datasets, we use smaller synthetic datasets to provide the comparison of BJ-RNNs with the other methods. Finally, we compare the performance of CF-RNNs with the remaining two baselines on three real-world medical datasets. The code is available at github.com/kamilest/conformal-rnn. ",
676
+ "bbox": [
677
+ 174,
678
+ 626,
679
+ 825,
680
+ 777
681
+ ],
682
+ "page_idx": 5
683
+ },
684
+ {
685
+ "type": "text",
686
+ "text": "4.1 Synthetic data ",
687
+ "text_level": 1,
688
+ "bbox": [
689
+ 174,
690
+ 799,
691
+ 312,
692
+ 813
693
+ ],
694
+ "page_idx": 5
695
+ },
696
+ {
697
+ "type": "text",
698
+ "text": "We first generate the synthetic time-series consisting of two components: the autoregressive process determining the trend of the time-series, and the noise process representing the inherent uncertainty of the dataset.3 For a time-series of length $T$ , this is expressed mathematically as: ",
699
+ "bbox": [
700
+ 174,
701
+ 825,
702
+ 825,
703
+ 867
704
+ ],
705
+ "page_idx": 5
706
+ },
707
+ {
708
+ "type": "equation",
709
+ "img_path": "images/fa18ffaa78c773ea9920d7e7acfb11e3b75334cd3cae2c729249a5fd27ad0232.jpg",
710
+ "text": "$$\ny _ { t } = \\sum _ { k = 0 } ^ { t } a ^ { k } \\cdot x _ { k } + \\epsilon _ { t } , \\forall k \\in \\{ 1 , \\ldots , T \\} ,\n$$",
711
+ "text_format": "latex",
712
+ "bbox": [
713
+ 366,
714
+ 101,
715
+ 632,
716
+ 145
717
+ ],
718
+ "page_idx": 6
719
+ },
720
+ {
721
+ "type": "text",
722
+ "text": "where $x _ { t } \\sim \\mathcal { N } ( \\mu _ { x } , \\sigma _ { x } ^ { 2 } )$ , $a = 0 . 9$ is the memory parameter and $\\epsilon _ { t } \\sim \\mathcal { N } ( 0 , \\sigma _ { t } ^ { 2 } )$ is the noise process. We consider five time-dependent noise variance profiles, $\\sigma _ { t } ^ { 2 } = 0 . 1 t n$ and five static noise variance profiles $\\sigma _ { t } ^ { 2 } = 0 . 1 n$ , for $\\bar { n = \\{ 1 , \\ldots , 5 \\} }$ . ",
723
+ "bbox": [
724
+ 174,
725
+ 152,
726
+ 825,
727
+ 196
728
+ ],
729
+ "page_idx": 6
730
+ },
731
+ {
732
+ "type": "text",
733
+ "text": "4.2 Results ",
734
+ "text_level": 1,
735
+ "bbox": [
736
+ 174,
737
+ 212,
738
+ 264,
739
+ 226
740
+ ],
741
+ "page_idx": 6
742
+ },
743
+ {
744
+ "type": "text",
745
+ "text": "We train the models on 2000 training sequences (with CF-RNNs splitting this dataset into 1000 true training and 1000 calibration sequences) for the two noise variance profiles. We aim to forecast prediction intervals for $H$ future values $y _ { T + 1 : T + H }$ for a default coverage rate of $90 \\%$ $\\alpha = 0 . 1 $ ). Here, $T = 1 5$ and $H = 5$ . The RNN hyperparameters for the networks underlying the uncertainty estimation models are fixed in order to ensure fair comparison, and largely follow those provided in previous work [21]. These are detailed in the Appendix B along with the time-series model parameters. Where possible,4 we repeat the experiments five times with a new randomly generated dataset, reporting the variation in empirical joint coverage over the different realisations. ",
746
+ "bbox": [
747
+ 173,
748
+ 236,
749
+ 825,
750
+ 348
751
+ ],
752
+ "page_idx": 6
753
+ },
754
+ {
755
+ "type": "table",
756
+ "img_path": "images/0331e56ed22881bfbee26a2114badde042dc7044f8a0bb5f357ec781d9bd5707.jpg",
757
+ "table_caption": [
758
+ "Table 2: Comparison of joint coverages produced by CF-RNNs and competing baselines on autoregressive series with static or time-dependent noise profiles. Where possible, empirical joint coverages are aggregated over repeated trials with randomly generated datasets. "
759
+ ],
760
+ "table_footnote": [],
761
+ "table_body": "<table><tr><td rowspan=\"2\" colspan=\"2\">Noise mode</td><td colspan=\"4\">Empirical joint coverage</td></tr><tr><td>CF-RNN</td><td>BJ-RNN</td><td>MQ-RNN</td><td>DP-RNN</td></tr><tr><td rowspan=\"5\">Static =0.1n</td><td>n=1</td><td>92.8 Β± 0.8%</td><td>100%</td><td>65.0 Β± 2.7%</td><td>5.4 Β± 0.5%</td></tr><tr><td>n=2</td><td>94.0 Β± 0.4%</td><td>100%</td><td>65.6 Β± 3.4%</td><td>5.6 Β± 1.0%</td></tr><tr><td>n=3</td><td>94.6 Β± 1.6%</td><td>100%</td><td>66.4 Β± 1.9%</td><td>5.0 Β± 0.9%</td></tr><tr><td>n=4</td><td>94.3 Β± 1.4%</td><td>100%</td><td>65.2 Β± 4.4%</td><td>4.7 Β± 1.0%</td></tr><tr><td>n=5</td><td>94.3 Β± 1.4%</td><td>100%</td><td>67.2 Β± 1.6%</td><td>4.2 Β± 1.0%</td></tr><tr><td rowspan=\"5\">Time-dependent Β²=0.1tn</td><td>n=1</td><td>92.7 Β± 1.3%</td><td>99.4%</td><td>63.4 Β± 1.5%</td><td>2.5 Β± 1.1%</td></tr><tr><td>n=2</td><td>92.4 Β± 0.9%</td><td>100%</td><td>60.9 Β± 1.9%</td><td>0.4 Β± 0.2%</td></tr><tr><td>n=3</td><td>90.9 Β± 1.3%</td><td>100%</td><td>57.2 Β± 2.1%</td><td>0.3 Β± 0.2%</td></tr><tr><td>n=4</td><td>90.6 Β± 1.2%</td><td>97.0%</td><td>57.1 Β± 3.7%</td><td>0.0 Β± 0.1%</td></tr><tr><td>n=5</td><td>91.1 Β± 0.7%</td><td>99.4%</td><td>58.6 Β± 2.1%</td><td>0.1 Β± 0.1%</td></tr></table>",
762
+ "bbox": [
763
+ 214,
764
+ 409,
765
+ 782,
766
+ 587
767
+ ],
768
+ "page_idx": 6
769
+ },
770
+ {
771
+ "type": "table",
772
+ "img_path": "images/73d7fd1aa0dda7f2aae8ebc66d9557a3a8828a67967e15473314a458527d0ade.jpg",
773
+ "table_caption": [
774
+ "Table 3: Prediction interval widths of CF-RNNs and competing baselines on synthetic datasets of autoregressive time-series with static or time-dependent noise profiles. The mean and standard deviation are reported over all prediction horizons and random seeds. "
775
+ ],
776
+ "table_footnote": [],
777
+ "table_body": "<table><tr><td rowspan=\"2\" colspan=\"2\">Noise mode</td><td colspan=\"4\">Interval widths</td></tr><tr><td>CF-RNN</td><td>BJ-RNN</td><td>MQ-RNN</td><td>DP-RNN</td></tr><tr><td rowspan=\"5\">Static 8=0.1n</td><td>n=1</td><td></td><td>16.45 Β± 3.69</td><td>98.45 Β± 25.95</td><td>9.47 Β± 1.99</td><td>2.82 Β± 0.33</td></tr><tr><td></td><td>n=2</td><td>16.97 Β± 3.34</td><td>32.53 Β± 2.92</td><td>9.63 Β± 1.85</td><td>2.95Β± 0.37</td></tr><tr><td></td><td>n=3</td><td>17.12 Β± 3.50</td><td>35.82 Β± 1.59</td><td>9.72 Β± 1.92</td><td>2.77 Β± 0.37</td></tr><tr><td></td><td>n=4</td><td>17.34 Β± 3.77</td><td>33.83 Β± 2.49</td><td>9.71 Β± 1.80</td><td>2.87 Β± 0.35</td></tr><tr><td>n=5</td><td></td><td>16.97 Β± 3.27</td><td>51.23 Β± 3.21</td><td>9.84 Β± 1.99</td><td>2.85 Β± 0.38</td></tr><tr><td rowspan=\"5\">Time-dependent Β²=0.1tn</td><td></td><td>n=1</td><td>19.80 Β± 3.61</td><td>27.09 Β± 1.16</td><td>11.50 Β± 1.66</td><td>3.01 Β± 0.35</td></tr><tr><td>n=2</td><td></td><td>25.74 Β± 3.32</td><td>104.85 Β± 5.68</td><td>15.45 Β± 1.68</td><td>3.15 Β± 0.37</td></tr><tr><td>n=3</td><td></td><td>32.70 Β± 3.97</td><td>36.45 Β± 1.25</td><td>20.05 Β± 2.02</td><td>3.62 Β± 0.33</td></tr><tr><td></td><td>n=4</td><td>40.74 Β± 4.10</td><td>33.24 Β± 2.32</td><td>25.02 Β± 2.11</td><td>3.91 Β± 0.45</td></tr><tr><td>n=5</td><td></td><td>49.00 Β± 5.58</td><td>51.45 Β± 5.37</td><td>30.55 Β± 2.54</td><td>4.15 Β± 0.57</td></tr></table>",
778
+ "bbox": [
779
+ 192,
780
+ 654,
781
+ 803,
782
+ 833
783
+ ],
784
+ "page_idx": 6
785
+ },
786
+ {
787
+ "type": "text",
788
+ "text": "Tables 2 and 3 compare the joint coverage uncertainty intervals of the models. Both CF-RNN and BJ-RNN empirically surpass the target joint coverage of $90 \\%$ $\\alpha = 0 . 1$ ) in both static and timedependent noise settings, satisfying the finite-sample frequentist coverage guarantees as required. ",
789
+ "bbox": [
790
+ 174,
791
+ 845,
792
+ 826,
793
+ 888
794
+ ],
795
+ "page_idx": 6
796
+ },
797
+ {
798
+ "type": "image",
799
+ "img_path": "images/346fc75b4c5b7c33b8e95f69509eb0ef5ede033153eb203a54f9a8a5fc222b26.jpg",
800
+ "image_caption": [
801
+ "Figure 3: Trade-offs between the dataset size, joint coverage and interval widths. (Left and Middle) The relationship between the training dataset size, joint coverage rate (left) and average interval width (middle) for CF-RNN, MQ-RNN and DP-RNN baselines. (Right) The trade-off between the coverage rate and prediction horizon for a fixed prediction interval width in CF-RNN models with different types of the underlying RNN. "
802
+ ],
803
+ "image_footnote": [],
804
+ "bbox": [
805
+ 205,
806
+ 90,
807
+ 792,
808
+ 193
809
+ ],
810
+ "page_idx": 7
811
+ },
812
+ {
813
+ "type": "text",
814
+ "text": "Table 3 additionally illustrates that CF-RNN intervals adapt to the properties of the temporal dynamics of the dataset: when the noise is static (and the time-series more predictable), CF-RNN prediction interval widths do not change much with increasing base variance; on the other hand, when the noise profile is time-dependentβ€”so that inherent noise of the time-series accumulates in addition to uncertainty of the model itselfβ€”the average intervals get wider with increasing dataset uncertainty. The other frequentist baselineβ€”BJ-RNNβ€”has markedly wider intervals than those of CF-RNN. This might be important to maintain the perfect coverage; however, we argue that as long as the coverage rate surpasses target coverage, the intervals should be as efficient (narrow) as possible to be the most informative for decision making. (Consider that infinite intervals would have perfect coverage but would not be informative.) In addition, BJ-RNNs take prohibitively long to compute (the reason for which they contain only a single seed and will also be excluded from the comparisons on real data). Conversely, the ICP procedure only requires running the trained RNN model on a calibration set (where the model can be calibrated for any desired coverage simultaneously, with no additional computational cost), at which point adding uncertainty intervals to a prediction takes constant time. On the other hand, baselines following the alternative (non-frequentist) paradigmsβ€”MQ-RNN and DP-RNNβ€”both fail to achieve target coverage, sometimes reporting coverage rates as low as zero. For this reason, while the two models also come with narrower (more efficient) intervals, lack of coverage guarantees makes them less useful in high stakes real-world applications. ",
815
+ "bbox": [
816
+ 174,
817
+ 267,
818
+ 825,
819
+ 517
820
+ ],
821
+ "page_idx": 7
822
+ },
823
+ {
824
+ "type": "text",
825
+ "text": "Experiments on the data with controlled properties provide additional insight on the trade-offs between the desired coverage rate and how far into the future can the predictions be reliably made. These trade-offs are shown in Figure 3 as applied to the datasets with time-dependent noise variance profile $\\sigma _ { t } ^ { 2 } = 0 . 1 t$ . The left and middle panels show the average performance of the CF-RNN, MQ-RNN and DP-RNN baselines depending on the training dataset size. CF-RNN is the only model to achieve and maintain the required joint coverage rate with finite number of examples; additionally, with more data (larger calibration datasets), the distribution of nonconformity scores can be specified more accurately, so the width of the intervals decreases. Finally, in the panel on the right we fix the prediction interval width and for each horizon $H$ compute the largest coverage level $1 - \\alpha$ maintained by CF-RNN. As shown in the Figure, low target coverage levels allow us to make valid predictions far into the future, and ideal coverage levels can only be achieved with horizons near the prediction point. The overall trend is maintained for every recurrent neural network model $M$ . ",
826
+ "bbox": [
827
+ 174,
828
+ 523,
829
+ 825,
830
+ 689
831
+ ],
832
+ "page_idx": 7
833
+ },
834
+ {
835
+ "type": "text",
836
+ "text": "4.3 Experiments on real data ",
837
+ "text_level": 1,
838
+ "bbox": [
839
+ 174,
840
+ 707,
841
+ 387,
842
+ 720
843
+ ],
844
+ "page_idx": 7
845
+ },
846
+ {
847
+ "type": "text",
848
+ "text": "We now demonstrate the effectiveness of our procedure on real-world time-series. We train the proposed CF-RNN architecture as well as the MQ-RNN and DP-RNN baselines on three datasets summarised in Table 4. For the first task, we use the data from the Medical Information Mart for Intensive Care (MIMIC-III) [52] dataset, where we forecast daily observations of white blood cell counts of varying lengths. For the second task, we use the electroencephalography (EEG) dataset from the UCI machine learning repository [53], where we forecast trajectories of downsampled EEG signals obtained from healthy subjects exposed to three types of visual stimuli. For the final task, we forecast daily COVID-19 cases within the United Kingdom local authority districts. All datasets are publicly available and the medical data is anonymised. We selected these datasets to represent a variety of scenarios of real time-series: the numbers of available training instances span different orders of magnitude (from hundreds to tens of thousands), the datasets have varying observation sequence lengths, different stationarity properties (e.g. the COVID-19 time-series are synchronousβ€”each time step representing the same point in timeβ€”the others are not), different noise profiles (e.g. EEG signal data will inherently have higher frequencies than MIMIC-III white blood cell count data), and different target prediction horizons. We note that COVID-19 dataset is especially challenging as the forecasts contain a wave of infections and lockdowns, with the wave starting at different points for every region. Details on datasets and their preprocessing are provided in Appendix C. ",
849
+ "bbox": [
850
+ 174,
851
+ 731,
852
+ 825,
853
+ 911
854
+ ],
855
+ "page_idx": 7
856
+ },
857
+ {
858
+ "type": "text",
859
+ "text": "",
860
+ "bbox": [
861
+ 174,
862
+ 90,
863
+ 825,
864
+ 160
865
+ ],
866
+ "page_idx": 8
867
+ },
868
+ {
869
+ "type": "table",
870
+ "img_path": "images/c338bc044a1540abb85ab945cca85c32be381a6942b1b198c0600d3eca7122ff.jpg",
871
+ "table_caption": [
872
+ "Table 4: Dataset properties. The number in parentheses under the training example column indicates how many examples were used for training when a calibration set was required, such as in the case of CF-RNNs. "
873
+ ],
874
+ "table_footnote": [],
875
+ "table_body": "<table><tr><td>Dataset</td><td># Training sequences</td><td>Window length T</td><td>Prediction horizon H</td></tr><tr><td>MIMIC-III [52]</td><td>3823 (2000)</td><td>[3,47]</td><td>2</td></tr><tr><td>EEG [53]</td><td>19200 (15360)</td><td>40</td><td>10</td></tr><tr><td>COVID-19 [54]</td><td>300 (200)</td><td>100</td><td>50</td></tr></table>",
876
+ "bbox": [
877
+ 246,
878
+ 209,
879
+ 748,
880
+ 270
881
+ ],
882
+ "page_idx": 8
883
+ },
884
+ {
885
+ "type": "table",
886
+ "img_path": "images/4e96b3f7fe978254b1c7e30c975cb464948a7b7c175dd77166bb864e6fdaf658.jpg",
887
+ "table_caption": [
888
+ "Table 5: Uncertainty forecasting model performance on three real-world datasets. Coverage refers to joint coverage (higher is better), and is averaged over the random splits of the dataset and training seeds. Prediction interval lengths (lower is better) are averaged over the prediction horizons and random seeds. "
889
+ ],
890
+ "table_footnote": [],
891
+ "table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"2\">MIMIC-III</td><td colspan=\"2\">EEG</td><td colspan=\"2\">COVID-19</td></tr><tr><td>Coverage</td><td>CI/PI lengths</td><td>Coverage</td><td>CI/PI lengths</td><td>Coverage</td><td>CI/PI lengths</td></tr><tr><td>DP-RNN</td><td>40.2 Β± 13.9%</td><td>3.59 Β± 0.90</td><td>3.3 Β± 0.7%</td><td>7.39 Β± 0.74</td><td>0.0 Β±0.0%</td><td>61.18 Β± 32.37</td></tr><tr><td>MQ-RNN</td><td>89.3 Β± 1.2%</td><td>16.16 Β± 3.92</td><td>48.0 Β±4.0%</td><td>21.39 Β± 2.36</td><td>15.0 Β± 5.9%</td><td>136.56 Β± 63.32</td></tr><tr><td>CF-RNN</td><td>94.0 Β± 1.2%</td><td>20.59 Β± 3.10</td><td>96.5 Β± 1.0%</td><td>61.86 Β± 18.02</td><td>89.7Β±5.3%</td><td>733.95 Β± 582.52</td></tr></table>",
892
+ "bbox": [
893
+ 178,
894
+ 338,
895
+ 818,
896
+ 416
897
+ ],
898
+ "page_idx": 8
899
+ },
900
+ {
901
+ "type": "text",
902
+ "text": "Performance of the models is summarised in Table 5. We note that the underlying LSTM model of the proposed CF-RNN architecture had the same hyperparameters as the competing baselines, yet fewer training instances (as some of the examples are used for the calibration procedure). Despite this, CF-RNN obtains the highest coverage for all datasets, and is the only model to empirically achieve the target joint coverage rates. While this seems to disproportionately affect the efficiency of CF-RNN intervals (as these are the widest), the predictions are indeed reliable across the range of datasets and scenarios. On the other hand, the baseline models seem to have competitive coverage with better efficiency in some settings (e.g. MIMIC-III), yet revert to unreliable predictions in less certain scenarios (e.g. COVID-19). In other words, CF-RNN adapts its prediction interval widths to reliably match the required target coverage, increasing the width for unpredictable datasets. ",
903
+ "bbox": [
904
+ 173,
905
+ 429,
906
+ 825,
907
+ 569
908
+ ],
909
+ "page_idx": 8
910
+ },
911
+ {
912
+ "type": "text",
913
+ "text": "Finally, we briefly explore the importance of and motivation behind the Bonferroni correction of the error rate in the CF-RNN calibration procedure. Table 6 shows that calibration scores without Bonferroni correction generally lead to poor joint coverage, even though independent coverage rates normally achieve the target coverage (most notable exception being the COVID-19 dataset selected for its forecasting difficulty). ",
914
+ "bbox": [
915
+ 173,
916
+ 574,
917
+ 825,
918
+ 645
919
+ ],
920
+ "page_idx": 8
921
+ },
922
+ {
923
+ "type": "table",
924
+ "img_path": "images/91ef56010eff78edfeec48263082ff30ca55c7158e5aa579f432e95950d0033a.jpg",
925
+ "table_caption": [
926
+ "Table 6: Bonferroni-corrected and uncorrected empirical coverages of the CF-RNN model. Joint coverage is aggregated over the different random seeds; independent coverages present the range of observed values across all horizons and all random seeds. "
927
+ ],
928
+ "table_footnote": [],
929
+ "table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"2\">MIMIC-III</td><td colspan=\"2\">EEG</td><td colspan=\"2\">COVID-19</td></tr><tr><td>Joint</td><td>Independent</td><td>Joint</td><td>Independent</td><td>Joint</td><td>Independent</td></tr><tr><td>CF-RNN</td><td>94.0 Β± 1.2%</td><td>[93.8%, 96.8%]</td><td>96.5 Β± 1.0%</td><td>[98.3%,99.8%]</td><td>89.7 Β± 5.3%</td><td>[87.5%,100.0%]</td></tr><tr><td>Uncorrected</td><td>89.0 Β± 1.4%</td><td>[89.0%,91.4%]</td><td>59.4 Β± 2.4%</td><td>[85.5%,91.6%]</td><td>55.5Β±8.0%</td><td>[77.5%,98.8%]</td></tr></table>",
930
+ "bbox": [
931
+ 174,
932
+ 704,
933
+ 834,
934
+ 771
935
+ ],
936
+ "page_idx": 8
937
+ },
938
+ {
939
+ "type": "text",
940
+ "text": "5 Conclusion ",
941
+ "text_level": 1,
942
+ "bbox": [
943
+ 173,
944
+ 799,
945
+ 299,
946
+ 815
947
+ ],
948
+ "page_idx": 8
949
+ },
950
+ {
951
+ "type": "text",
952
+ "text": "In this paper, we extended the ICP framework to the multi-horizon time-series forecasting problem, providing a lightweight algorithm with theoretical guarantees for frequentist coverage. Extending from the initial investigation presented in Appendix D, future work would focus on increasing the overall efficiency of prediction intervals by reducing their width, which would involve making them more adaptive to individual observations. ",
953
+ "bbox": [
954
+ 174,
955
+ 829,
956
+ 825,
957
+ 900
958
+ ],
959
+ "page_idx": 8
960
+ },
961
+ {
962
+ "type": "text",
963
+ "text": "Acknowledgments ",
964
+ "text_level": 1,
965
+ "bbox": [
966
+ 174,
967
+ 92,
968
+ 303,
969
+ 106
970
+ ],
971
+ "page_idx": 9
972
+ },
973
+ {
974
+ "type": "text",
975
+ "text": "The authors would like to thank the reviewers for their helpful comments. This work was supported by AstraZeneca, the US Office of Naval Research (ONR) and the National Science Foundation (NSF, grant number 1722516). ",
976
+ "bbox": [
977
+ 174,
978
+ 114,
979
+ 823,
980
+ 156
981
+ ],
982
+ "page_idx": 9
983
+ },
984
+ {
985
+ "type": "text",
986
+ "text": "References \n[1] Sreelekshmy Selvin, R Vinayakumar, EA Gopalakrishnan, Vijay Krishna Menon, and KP Soman. Stock price prediction using lstm, rnn and cnn-sliding window model. In 2017 International Conference on Advances in Computing, Communications and Informatics (ICACCI), pages 1643–1647. IEEE, 2017. \n[2] Wei Bao, Jun Yue, and Yulei Rao. A deep learning framework for financial time series using stacked autoencoders and long-short term memory. PloS one, 12(7):e0180944, 2017. \n[3] Ruofeng Wen, Kari Torkkola, Balakrishnan Narayanaswamy, and Dhruv Madeka. A multihorizon quantile recurrent forecaster. arXiv preprint arXiv:1711.11053, 2017. \n[4] Lingxue Zhu and Nikolay Laptev. Deep and confident prediction for time series at uber. In 2017 IEEE International Conference on Data Mining Workshops (ICDMW), pages 103–110. IEEE, 2017. \n[5] Bryan Lim, Ahmed Alaa, and Mihaela van der Schaar. Forecasting treatment responses over time using recurrent marginal structural networks. In Proceedings of the 32nd International Conference on Neural Information Processing Systems, pages 7494–7504, 2018. \n[6] Ahmed M Alaa and Mihaela van der Schaar. Attentive state-space modeling of disease progression. In Advances in Neural Information Processing Systems, pages 11334–11344, 2019. \n[7] Benjamin Shickel, Patrick James Tighe, Azra Bihorac, and Parisa Rashidi. Deep ehr: a survey of recent advances in deep learning techniques for electronic health record (ehr) analysis. IEEE journal of biomedical and health informatics, 22(5):1589–1604, 2017. \n[8] Martin Sundermeyer, Ralf SchlΓΌter, and Hermann Ney. Lstm neural networks for language modeling. In Thirteenth annual conference of the international speech communication association, 2012. \n[9] Nal Kalchbrenner and Phil Blunsom. Recurrent continuous translation models. In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pages 1700–1709, 2013. \n[10] Christian Gollier. The economics of risk and uncertainty. Edward Elgar Publishing Limited, 2018. \n[11] Michael W Dusenberry, Dustin Tran, Edward Choi, Jonas Kemp, Jeremy Nixon, Ghassen Jerfel, Katherine Heller, and Andrew M Dai. Analyzing the role of model uncertainty for electronic health records. In Proceedings of the ACM Conference on Health, Inference, and Learning, pages 204–213, 2020. \n[12] Alex Kendall and Yarin Gal. What uncertainties do we need in bayesian deep learning for computer vision? arXiv preprint arXiv:1703.04977, 2017. \n[13] Wesley Maddox, Timur Garipov, Pavel Izmailov, Dmitry Vetrov, and Andrew Gordon Wilson. A simple baseline for bayesian uncertainty in deep learning. arXiv preprint arXiv:1902.02476, 2019. \n[14] Andrey Malinin and Mark Gales. Predictive uncertainty estimation via prior networks. In Advances in Neural Information Processing Systems, pages 7047–7058, 2018. \n[15] Balaji Lakshminarayanan, Alexander Pritzel, and Charles Blundell. Simple and scalable predictive uncertainty estimation using deep ensembles. In Advances in Neural Information Processing Systems (NeurIPS), pages 6402–6413, 2017. ",
987
+ "bbox": [
988
+ 171,
989
+ 176,
990
+ 828,
991
+ 911
992
+ ],
993
+ "page_idx": 9
994
+ },
995
+ {
996
+ "type": "text",
997
+ "text": "[16] Meire Fortunato, Charles Blundell, and Oriol Vinyals. Bayesian recurrent neural networks. arXiv preprint arXiv:1704.02798, 2017. ",
998
+ "bbox": [
999
+ 171,
1000
+ 90,
1001
+ 826,
1002
+ 119
1003
+ ],
1004
+ "page_idx": 10
1005
+ },
1006
+ {
1007
+ "type": "text",
1008
+ "text": "[17] Jen-Tzung Chien and Yuan-Chu Ku. Bayesian recurrent neural network for language modeling. IEEE transactions on neural networks and learning systems, 27(2):361–374, 2015. ",
1009
+ "bbox": [
1010
+ 173,
1011
+ 128,
1012
+ 825,
1013
+ 159
1014
+ ],
1015
+ "page_idx": 10
1016
+ },
1017
+ {
1018
+ "type": "text",
1019
+ "text": "[18] Derrick T Mirikitani and Nikolay Nikolaev. Recursive bayesian recurrent neural networks for time-series modeling. IEEE Transactions on Neural Networks, 21(2):262–274, 2009. ",
1020
+ "bbox": [
1021
+ 173,
1022
+ 167,
1023
+ 825,
1024
+ 196
1025
+ ],
1026
+ "page_idx": 10
1027
+ },
1028
+ {
1029
+ "type": "text",
1030
+ "text": "[19] Jan Gasthaus, Konstantinos Benidis, Yuyang Wang, Syama Sundar Rangapuram, David Salinas, Valentin Flunkert, and Tim Januschowski. Probabilistic forecasting with spline quantile function rnns. In The 22nd international conference on artificial intelligence and statistics, pages 1901–1910. PMLR, 2019. ",
1031
+ "bbox": [
1032
+ 173,
1033
+ 207,
1034
+ 826,
1035
+ 263
1036
+ ],
1037
+ "page_idx": 10
1038
+ },
1039
+ {
1040
+ "type": "text",
1041
+ "text": "[20] Syama Sundar Rangapuram, Matthias W Seeger, Jan Gasthaus, Lorenzo Stella, Yuyang Wang, and Tim Januschowski. Deep state space models for time series forecasting. Advances in neural information processing systems, 31:7785–7794, 2018. ",
1042
+ "bbox": [
1043
+ 173,
1044
+ 272,
1045
+ 823,
1046
+ 316
1047
+ ],
1048
+ "page_idx": 10
1049
+ },
1050
+ {
1051
+ "type": "text",
1052
+ "text": "[21] Ahmed Alaa and Mihaela van der Schaar. Frequentist uncertainty in recurrent neural networks via blockwise influence functions. In International Conference on Machine Learning, pages 175–190. PMLR, 2020. ",
1053
+ "bbox": [
1054
+ 174,
1055
+ 325,
1056
+ 823,
1057
+ 368
1058
+ ],
1059
+ "page_idx": 10
1060
+ },
1061
+ {
1062
+ "type": "text",
1063
+ "text": "[22] Ahmed Alaa and Mihaela van der Schaar. Discriminative jackknife: Quantifying uncertainty in deep learning via higher-order influence functions. In International Conference on Machine Learning, pages 165–174. PMLR, 2020. ",
1064
+ "bbox": [
1065
+ 173,
1066
+ 377,
1067
+ 823,
1068
+ 420
1069
+ ],
1070
+ "page_idx": 10
1071
+ },
1072
+ {
1073
+ "type": "text",
1074
+ "text": "[23] Chen Xu and Yao Xie. Conformal prediction interval for dynamic time-series. International Conference on Machine Learning, 2021. ",
1075
+ "bbox": [
1076
+ 173,
1077
+ 429,
1078
+ 825,
1079
+ 459
1080
+ ],
1081
+ "page_idx": 10
1082
+ },
1083
+ {
1084
+ "type": "text",
1085
+ "text": "[24] Vladimir Vovk, Alex Gammerman, and Glenn Shafer. Algorithmic learning in a random world. Springer Science & Business Media, 2005. ",
1086
+ "bbox": [
1087
+ 173,
1088
+ 468,
1089
+ 823,
1090
+ 498
1091
+ ],
1092
+ "page_idx": 10
1093
+ },
1094
+ {
1095
+ "type": "text",
1096
+ "text": "[25] Glenn Shafer and Vladimir Vovk. A tutorial on conformal prediction. Journal of Machine Learning Research, 9(3), 2008. ",
1097
+ "bbox": [
1098
+ 174,
1099
+ 507,
1100
+ 823,
1101
+ 536
1102
+ ],
1103
+ "page_idx": 10
1104
+ },
1105
+ {
1106
+ "type": "text",
1107
+ "text": "[26] Yarin Gal and Zoubin Ghahramani. Dropout as a bayesian approximation: Representing model uncertainty in deep learning. In international conference on machine learning, pages 1050–1059. PMLR, 2016. ",
1108
+ "bbox": [
1109
+ 173,
1110
+ 545,
1111
+ 826,
1112
+ 588
1113
+ ],
1114
+ "page_idx": 10
1115
+ },
1116
+ {
1117
+ "type": "text",
1118
+ "text": "[27] Chen Xu and Yao Xie. Conformal prediction interval for dynamic time-series. In International Conference on Machine Learning, pages 11559–11569. PMLR, 2021. ",
1119
+ "bbox": [
1120
+ 173,
1121
+ 598,
1122
+ 823,
1123
+ 628
1124
+ ],
1125
+ "page_idx": 10
1126
+ },
1127
+ {
1128
+ "type": "text",
1129
+ "text": "[28] David JC MacKay. A practical bayesian framework for backpropagation networks. Neural computation, 4(3):448–472, 1992. ",
1130
+ "bbox": [
1131
+ 173,
1132
+ 637,
1133
+ 823,
1134
+ 666
1135
+ ],
1136
+ "page_idx": 10
1137
+ },
1138
+ {
1139
+ "type": "text",
1140
+ "text": "[29] Radford M Neal. Bayesian learning for neural networks, volume 118. Springer Science & Business Media, 2012. ",
1141
+ "bbox": [
1142
+ 174,
1143
+ 675,
1144
+ 823,
1145
+ 705
1146
+ ],
1147
+ "page_idx": 10
1148
+ },
1149
+ {
1150
+ "type": "text",
1151
+ "text": "[30] Radford M Neal. Bayesian learning via stochastic dynamics. In Advances in neural information processing systems, pages 475–482, 1993. ",
1152
+ "bbox": [
1153
+ 173,
1154
+ 713,
1155
+ 825,
1156
+ 744
1157
+ ],
1158
+ "page_idx": 10
1159
+ },
1160
+ {
1161
+ "type": "text",
1162
+ "text": "[31] Radford M Neal et al. Mcmc using hamiltonian dynamics. Handbook of markov chain monte carlo, 2(11):2, 2011. ",
1163
+ "bbox": [
1164
+ 173,
1165
+ 752,
1166
+ 823,
1167
+ 782
1168
+ ],
1169
+ "page_idx": 10
1170
+ },
1171
+ {
1172
+ "type": "text",
1173
+ "text": "[32] Max Welling and Yee W Teh. Bayesian learning via stochastic gradient langevin dynamics. In Proceedings of the 28th international conference on machine learning (ICML-11), pages 681–688. Citeseer, 2011. ",
1174
+ "bbox": [
1175
+ 173,
1176
+ 791,
1177
+ 825,
1178
+ 834
1179
+ ],
1180
+ "page_idx": 10
1181
+ },
1182
+ {
1183
+ "type": "text",
1184
+ "text": "[33] Tianqi Chen, Emily Fox, and Carlos Guestrin. Stochastic gradient hamiltonian monte carlo. In International conference on machine learning, pages 1683–1691. PMLR, 2014. ",
1185
+ "bbox": [
1186
+ 173,
1187
+ 844,
1188
+ 821,
1189
+ 873
1190
+ ],
1191
+ "page_idx": 10
1192
+ },
1193
+ {
1194
+ "type": "text",
1195
+ "text": "[34] Alex Graves. Practical variational inference for neural networks. Advances in neural information processing systems, 24, 2011. ",
1196
+ "bbox": [
1197
+ 171,
1198
+ 882,
1199
+ 825,
1200
+ 911
1201
+ ],
1202
+ "page_idx": 10
1203
+ },
1204
+ {
1205
+ "type": "text",
1206
+ "text": "[35] Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. \n[36] Matthew D Hoffman, David M Blei, Chong Wang, and John Paisley. Stochastic variational inference. Journal of Machine Learning Research, 14(5), 2013. \n[37] Charles Blundell, Julien Cornebise, Koray Kavukcuoglu, and Daan Wierstra. Weight uncertainty in neural network. In International Conference on Machine Learning, pages 1613–1622. PMLR, 2015. \n[38] Yarin Gal and Zoubin Ghahramani. A theoretically grounded application of dropout in recurrent neural networks. Advances in neural information processing systems, 29:1019–1027, 2016. \n[39] Roger Koenker and Kevin F Hallock. Quantile regression. Journal of economic perspectives, 15(4):143–156, 2001. \n[40] Stanislav Fort, Huiyi Hu, and Balaji Lakshminarayanan. Deep ensembles: A loss landscape perspective. arXiv preprint arXiv:1912.02757, 2019. \n[41] Xueheng Qiu, Le Zhang, Ye Ren, Ponnuthurai N Suganthan, and Gehan Amaratunga. Ensemble deep learning for regression and time series forecasting. In 2014 IEEE symposium on computational intelligence in ensemble learning (CIEL), pages 1–6. IEEE, 2014. \n[42] Tim Pearce, Felix Leibfried, and Alexandra Brintrup. Uncertainty in neural networks: Approximately bayesian ensembling. In International conference on artificial intelligence and statistics, pages 234–244. PMLR, 2020. \n[43] Anastasios Angelopoulos, Stephen Bates, Jitendra Malik, and Michael I Jordan. Uncertainty sets for image classifiers using conformal prediction. International Conference on Learning Representations, 2021. \n[44] Harris Papadopoulos. Inductive conformal prediction: Theory and application to neural networks. In Tools in artificial intelligence. Citeseer, 2008. \n[45] David Salinas, Valentin Flunkert, Jan Gasthaus, and Tim Januschowski. Deepar: Probabilistic forecasting with autoregressive recurrent networks. International Journal of Forecasting, 36(3): 1181–1191, 2020. \n[46] Harris Papadopoulos and Haris Haralambous. Reliable prediction intervals with regression neural networks. Neural Networks, 24(8):842–851, 2011. \n[47] Harris Papadopoulos, Kostas Proedrou, Volodya Vovk, and Alex Gammerman. Inductive confidence machines for regression. In European Conference on Machine Learning, pages 345–356. Springer, 2002. \n[48] Gianluca Zeni, Matteo Fontana, and Simone Vantini. Conformal prediction: a unified review of theory and new challenges. arXiv preprint arXiv:2005.07972, 2020. \n[49] Vladimir Vovk. Transductive conformal predictors. In IFIP International Conference on Artificial Intelligence Applications and Innovations, pages 348–360. Springer, 2013. \n[50] Souhaib Ben Taieb and Amir F Atiya. A bias and variance analysis for multistep-ahead time series forecasting. IEEE transactions on neural networks and learning systems, 27(1):62–76, 2015. \n[51] Vladimir Vovk. Conditional validity of inductive conformal predictors. In Asian conference on machine learning, pages 475–490. PMLR, 2012. \n[52] Alistair EW Johnson, Tom J Pollard, Lu Shen, H Lehman Li-Wei, Mengling Feng, Mohammad Ghassemi, Benjamin Moody, Peter Szolovits, Leo Anthony Celi, and Roger G Mark. Mimic-iii, a freely accessible critical care database. Scientific data, 3(1):1–9, 2016. \n[53] Catherine Blake. Uci repository of machine learning databases. http://www. ics. uci. edu/˜ mlearn/MLRepository. html, 1998. ",
1207
+ "bbox": [
1208
+ 169,
1209
+ 66,
1210
+ 828,
1211
+ 919
1212
+ ],
1213
+ "page_idx": 11
1214
+ }
1215
+ ]
parse/train/Rx9dBZaV_IP/Rx9dBZaV_IP_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Rx9dBZaV_IP/Rx9dBZaV_IP_model.json ADDED
The diff for this file is too large to render. See raw diff